﻿:root {
  --brand-blue: #2e92d6;
  --brand-blue-deep: #1e78c8;
  --brand-orange: #ed6f25;
  --brand-gray: #b5b5b5;
  --text: #2b3641;
  --easing: cubic-bezier(0.65, 0.05, 0.36, 1);
}

/* ===== Site Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 120;
  pointer-events: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header > * {
  pointer-events: auto;
}

.site-header .site-logo {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.32s ease, transform 0.32s ease;
  pointer-events: none;
}

.site-header.is-pinned {
  background: transparent;
}

.site-header.is-pinned .site-logo {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hide the header logo when the global menu is open so the drawer covers it.
   The menu trigger stays visible because it has its own .is-open state. */
body.menu-open .site-header .site-logo {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.site-logo {
  display: inline-flex;
  align-items: center;
}

.site-logo__text {
  font-family: "Nunito", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  color: var(--brand-blue);
}

.site-logo__goal {
  color: var(--brand-blue);
}

.site-logo__s {
  color: var(--brand-orange);
}

.site-logo__kill {
  color: #eaa152;
  font-weight: 800;
}

.kv__logo {
  display: inline-flex;
  margin-bottom: 28px;
}

.kv__logo .site-logo__text {
  font-size: 48px;
}

/* ===== Hamburger Menu Trigger ===== */
.menu-trigger {
  position: relative;
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  background: var(--brand-blue);
  cursor: pointer;
  transition: background-color 0.4s var(--easing);
  z-index: 110;
}

.menu-trigger .line,
.menu-trigger .dot {
  position: absolute;
  top: 50%;
  left: 50%;
  background: #fff;
  transition: transform 0.5s var(--easing), background-color 0.4s var(--easing);
}

.menu-trigger .line {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  transform-origin: 50% 50%;
}

.menu-trigger .line:nth-of-type(1) {
  transform: translate(-3px, -7px);
}
.menu-trigger .line:nth-of-type(2) {
  transform: translate(-3px, 4px);
}

.menu-trigger .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}
.menu-trigger .dot:nth-of-type(3) {
  transform: translate(-14px, -7px);
}
.menu-trigger .dot:nth-of-type(4) {
  transform: translate(-14px, 4px);
}

.menu-trigger.is-open {
  background: #ffffff;
}

.menu-trigger.is-open .line {
  background: var(--brand-blue);
  width: 24px;
}
.menu-trigger.is-open .line:nth-of-type(1) {
  transform: translate(-12px, -2px) rotate(45deg);
}
.menu-trigger.is-open .line:nth-of-type(2) {
  transform: translate(-12px, -1px) rotate(-45deg);
}
.menu-trigger.is-open .dot {
  transform: translate(-7px, -2px) scale(0);
}

/* ===== Global Menu (Drawer) ===== */
.global-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  z-index: 105;
  pointer-events: none;
  visibility: hidden;
}

.global-menu.is-open {
  pointer-events: auto;
  visibility: visible;
}

.global-menu__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.global-menu__circle {
  position: absolute;
  top: 52px;
  right: 64px;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--brand-blue);
  transform: translate(50%, -50%);
  transition: width 0.7s var(--easing), height 0.7s var(--easing);
}

.global-menu.is-open .global-menu__circle {
  width: 260vmax;
  height: 260vmax;
}

.global-menu__inner {
  position: relative;
  z-index: 1;
  padding: 140px 80px 80px;
  color: #ffffff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--easing) 0.25s, transform 0.45s var(--easing) 0.25s;
}

.global-menu.is-open .global-menu__inner {
  opacity: 1;
  transform: translateY(0);
}

.global-menu__list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 48px;
}

.global-menu__list a {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
  padding: 4px 0;
  transition: opacity 0.2s ease;
}

.global-menu__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.4s var(--easing);
}

.global-menu__list a:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

/* ===== Language Switch ===== */
.global-menu__lang {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.global-menu__lang-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lang-switch__btn {
  appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
  line-height: 1;
}

.lang-switch__btn:hover {
  color: #ffffff;
}

.lang-switch__btn.is-active {
  background: #ffffff;
  color: var(--brand-blue);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.18);
}

body.menu-open {
  overflow-y: scroll;
}

@media (max-width: 768px) {
  .site-header {
    padding: 14px 16px;
  }

  .site-logo__text {
    font-size: 24px;
  }

  .menu-trigger {
    width: 52px;
    height: 52px;
  }

  .global-menu {
    width: 100%;
  }

  .global-menu__circle {
    top: 40px;
    right: 42px;
  }

  .global-menu__inner {
    padding: 100px 32px 60px;
  }

  .global-menu__list {
    gap: 22px;
    margin-bottom: 36px;
  }

  .global-menu__list a {
    font-size: 22px;
  }

  .global-menu__lang {
    padding-top: 24px;
    margin-bottom: 32px;
  }
  .lang-switch__btn {
    font-size: 12px;
    padding: 7px 14px;
  }
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

body {
  font-family: "Noto Sans TC", "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Microsoft JhengHei", Meiryo, sans-serif;
  background: #ffffff;
  color: var(--text);
}

html[lang="en"] body {
  font-family: "Helvetica Neue", Arial, "Noto Sans JP", "Noto Sans TC", "Hiragino Sans", sans-serif;
}

html[lang="ja"] body {
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

html[lang="zh-TW"] body {
  font-family: "Microsoft JhengHei", "Noto Sans TC", "Hiragino Sans TC", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html[lang="zh-TW"] .kv__catch,
html[lang="zh-TW"] .kv__sub {
  font-weight: 700;
  letter-spacing: 0.02em;
  word-spacing: 0.1em;
}

/* KV from existing */
.kv {
  position: relative;
  width: 100%;
  min-height: 980px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 48px 180px;
}

.kv::before {
  content: "";
  position: absolute;
  top: 0;
  left: -7.14%;
  width: 114.28%;
  height: 100%;
  background: linear-gradient(180deg, #f5f7fa 0%, #e7edf3 100%);
  border-radius: 0 0 9999px 9999px;
  z-index: -1;
}

.kv__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.kv__deco--back {
  z-index: 0;
  transform: translate3d(calc(var(--kv-mx, 0) * 18px), calc(var(--kv-my, 0) * 14px), 0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.kv-bubble {
  position: absolute;
  border-radius: 50%;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(13, 30, 60, 0.08));
  animation: floatY 6s ease-in-out infinite;
  will-change: transform;
}

.kv-bubble--1 {
  width: 96px;
  height: 96px;
  top: 14%;
  left: 4%;
  background: linear-gradient(135deg, var(--brand-blue), #6fc3f0);
  opacity: 0.95;
  animation: drift 7s ease-in-out infinite;
}
.kv-bubble--2 {
  width: 36px;
  height: 36px;
  top: 8%;
  left: 38%;
  background: var(--brand-orange);
  animation: floatXY 5s ease-in-out infinite;
  animation-delay: -1.5s;
}
.kv-bubble--3 {
  width: 18px;
  height: 18px;
  top: 28%;
  left: 30%;
  background: var(--brand-blue);
  opacity: 0.6;
  animation: bobble 4s ease-in-out infinite;
  animation-delay: -3s;
}
.kv-bubble--4 {
  width: 60px;
  height: 60px;
  top: 18%;
  right: 6%;
  background: linear-gradient(135deg, var(--brand-orange), #f4a26f);
  opacity: 0.9;
  animation: drift 8s ease-in-out infinite;
  animation-delay: -2s;
}
.kv-bubble--5 {
  width: 24px;
  height: 24px;
  top: 50%;
  right: 1%;
  background: var(--brand-blue);
  opacity: 0.55;
  animation: floatXY 5.5s ease-in-out infinite;
  animation-delay: -4s;
}
.kv-bubble--6 {
  width: 14px;
  height: 14px;
  bottom: 24%;
  left: 12%;
  background: var(--brand-orange);
  opacity: 0.7;
  animation: bobble 3.5s ease-in-out infinite;
  animation-delay: -2.5s;
}
.kv-bubble--7 {
  width: 70px;
  height: 70px;
  bottom: 14%;
  left: 32%;
  background: linear-gradient(135deg, #d6dde6, #b6c0cc);
  opacity: 0.45;
  animation: drift 9s ease-in-out infinite;
  animation-delay: -5s;
}
.kv-bubble--8 {
  width: 28px;
  height: 28px;
  bottom: 10%;
  right: 30%;
  background: var(--brand-blue);
  opacity: 0.6;
  animation: floatXY 6s ease-in-out infinite;
  animation-delay: -3.5s;
}

@keyframes floatY {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-28px) rotate(4deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes floatXY {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(14px, -18px) rotate(6deg); }
  50%  { transform: translate(-6px, -30px) rotate(-4deg); }
  75%  { transform: translate(-18px, -10px) rotate(3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  20%  { transform: translate(22px, -16px) rotate(8deg) scale(1.04); }
  40%  { transform: translate(-12px, -28px) rotate(-6deg) scale(0.97); }
  60%  { transform: translate(-26px, 8px) rotate(5deg) scale(1.02); }
  80%  { transform: translate(10px, 18px) rotate(-3deg) scale(0.98); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

@keyframes bobble {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(10px, -12px) scale(1.15); }
  50%  { transform: translate(-8px, -18px) scale(0.9); }
  75%  { transform: translate(-12px, -6px) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}

.kv__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 60px;
  max-width: 1240px;
  width: 100%;
  z-index: 1;
}

.kv__text {
  text-align: left;
}

.kv__catch {
  font-size: clamp(32px, 3.6vw, 50px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 32px;
}

.kv__sub {
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 500;
  line-height: 1.9;
  color: #5b6975;
}

@media (max-width: 768px) {
  .kv {
    min-height: auto;
    aspect-ratio: auto;
    padding: 100px 20px 120px;
  }

  .kv__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .kv-bubble--1 { width: 64px; height: 64px; top: 10%; left: -10px; }
  .kv-bubble--2 { width: 22px; height: 22px; top: 6%; left: 50%; }
  .kv-bubble--3 { width: 12px; height: 12px; top: 22%; left: 18%; }
  .kv-bubble--4 { width: 40px; height: 40px; top: 14%; right: -10px; }
  .kv-bubble--5 { width: 14px; height: 14px; top: 60%; right: -4px; }
  .kv-bubble--6 { display: none; }
  .kv-bubble--7 { width: 44px; height: 44px; bottom: 10%; left: 6%; }
  .kv-bubble--8 { width: 18px; height: 18px; bottom: 6%; right: 14%; }

  .kv__text {
    text-align: center;
  }

  .kv__catch {
    font-size: 30px;
    margin-bottom: 20px;
    letter-spacing: 0;
    line-height: 1.45;
  }

  .kv__sub {
    font-size: 14px;
    line-height: 1.85;
  }

  .kv__sub br {
    display: none;
  }
}
/* Dashboard CSS moved to dashboard.css */

@media (max-width: 768px) {
  .kv {
    min-height: auto;
    aspect-ratio: auto;
    padding: 100px 20px 120px;
  }

  .kv__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .kv-bubble--1 { width: 64px; height: 64px; top: 10%; left: -10px; }
  .kv-bubble--2 { width: 22px; height: 22px; top: 6%; left: 50%; }
  .kv-bubble--3 { width: 12px; height: 12px; top: 22%; left: 18%; }
  .kv-bubble--4 { width: 40px; height: 40px; top: 14%; right: -10px; }
  .kv-bubble--5 { width: 14px; height: 14px; top: 60%; right: -4px; }
  .kv-bubble--6 { display: none; }
  .kv-bubble--7 { width: 44px; height: 44px; bottom: 10%; left: 6%; }
  .kv-bubble--8 { width: 18px; height: 18px; bottom: 6%; right: 14%; }


  .kv__text {
    text-align: center;
  }

  .kv__catch {
    font-size: 30px;
    margin-bottom: 20px;
    letter-spacing: 0;
    line-height: 1.45;
  }

  .kv__sub {
    font-size: 14px;
    line-height: 1.85;
  }

  .kv__sub br {
    display: none;
  }

  .site-header {
    padding: 14px 16px;
  }

  .site-logo__text {
    font-size: 24px;
  }

  .kv__logo {
    margin-bottom: 20px;
  }

  .kv__logo .site-logo__text {
    font-size: 36px;
  }

  .menu-trigger {
    width: 52px;
    height: 52px;
  }

  .global-menu {
    width: 100%;
  }

  .global-menu__circle {
    top: 40px;
    right: 42px;
  }

  .global-menu__inner {
    padding: 100px 32px 60px;
  }

  .global-menu__list {
    gap: 22px;
    margin-bottom: 36px;
  }

  .global-menu__list a {
    font-size: 22px;
  }
}

/* ============================================================
   wakuwaku layer 窶・page-wide micro-interactions
   ============================================================ */

