/* AquaBit LAB — 共通デザインシステム（ダーク／海とAI）
   index.html と about.html が共有。ページ固有の調整は各ページの <style> に書く。 */

:root {
  --font-jp: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-en: 'Outfit', 'Noto Sans JP', sans-serif;

  --bg: #04070d;
  --bg-soft: #070d18;
  --ink: #eef6ff;
  --muted: #93a9c6;
  --cyan: #4fd8ff;
  --blue: #2f7dfb;
  --violet: #7b6cf6;
  --line: rgba(140, 190, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.035);

  --shell: 1180px;
  --gutter: 24px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::selection { background: rgba(79, 216, 255, 0.3); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- ナビゲーション ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(4, 7, 13, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 22px rgba(79, 216, 255, 0.28);
}

.brand span {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 9px 15px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.05); }

.nav-links .nav-cta {
  color: #04070d;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  font-weight: 700;
  margin-left: 8px;
  box-shadow: 0 6px 22px rgba(47, 125, 251, 0.32);
}
.nav-links .nav-cta:hover { color: #04070d; filter: brightness(1.08); }

.burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  cursor: pointer;
}
.burger span {
  position: relative;
  width: 17px; height: 1.5px;
  background: currentColor;
  display: block;
  transition: transform 0.3s ease, background 0.2s ease;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0;
  width: 17px; height: 1.5px; background: currentColor;
  transition: transform 0.3s ease;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.nav.open .burger span { background: transparent; }
.nav.open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-fallback {
  background: #04070d url('/images/aqua-hero.webp') center/cover no-repeat;
  transform: scale(1.05);
}

.hero-canvas {
  display: block;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-ready .hero-canvas { opacity: 1; }
.hero-ready .hero-fallback { opacity: 0; transition: opacity 1.4s ease; }

/* 読みやすさ用のグラデーション */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(95% 70% at 22% 52%, rgba(4,7,13,0.82) 0%, rgba(4,7,13,0.42) 42%, rgba(4,7,13,0) 74%),
    linear-gradient(180deg, rgba(4,7,13,0.7) 0%, rgba(4,7,13,0.02) 22%, rgba(4,7,13,0) 72%, rgba(4,7,13,0.55) 92%, var(--bg) 100%);
}

.hero-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 120px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-en);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: rise 1s cubic-bezier(.2,.7,.3,1) forwards 0.25s;
}

.hero-badge b {
  font-weight: 600;
  color: var(--cyan);
}

.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero h1 {
  margin: 26px 0 0;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(48px, 9.5vw, 118px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  opacity: 0;
  animation: rise 1.1s cubic-bezier(.2,.7,.3,1) forwards 0.38s;
}

/* 日本語の見出しは字面が詰まるので少し小さめ・行間広めにする */
.hero h1.jp {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(36px, 6.6vw, 86px);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.hero h1 .grad {
  background: linear-gradient(100deg, #ffffff 6%, var(--cyan) 42%, var(--violet) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 26px 0 0;
  max-width: 36em;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.95;
  color: rgba(224, 238, 255, 0.82);
  opacity: 0;
  animation: rise 1.1s cubic-bezier(.2,.7,.3,1) forwards 0.52s;
}

.hero-jp {
  display: block;
  margin-top: 16px;
  font-size: clamp(17px, 2.6vw, 23px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
  opacity: 0;
  animation: rise 1.1s cubic-bezier(.2,.7,.3,1) forwards 0.66s;
}

.btn {
  --btn-bg: linear-gradient(120deg, var(--cyan), var(--blue));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 14px;
  background: var(--btn-bg);
  color: #04070d;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 10px 30px rgba(47, 125, 251, 0.28);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(47, 125, 251, 0.36); filter: brightness(1.06); }
.btn svg { transition: transform 0.3s ease; }
.btn:hover svg { transform: translateX(4px); }

.btn.ghost {
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn.ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(79,216,255,0.45); box-shadow: none; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: 54px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(147, 169, 198, 0.75);
  opacity: 0;
  animation: rise 1.1s cubic-bezier(.2,.7,.3,1) forwards 0.8s;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-family: var(--font-en);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(147, 169, 198, 0.6);
  opacity: 0;
  animation: rise 1.2s ease forwards 1.3s;
}
.scroll-hint i {
  display: block;
  width: 1px; height: 46px;
  background: linear-gradient(180deg, transparent, var(--cyan));
  animation: drop 2.4s ease-in-out infinite;
}

/* ---------- セクション共通 ---------- */
section { position: relative; scroll-margin-top: var(--nav-h); }

.band { padding: clamp(84px, 12vw, 150px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

h2.title {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.lead {
  margin: 22px 0 0;
  max-width: 46em;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
}

/* 出現アニメーション */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.3,1), transform 0.9s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ---------- 数字ストリップ ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(79,216,255,0.035), rgba(4,7,13,0));
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.strip-item {
  background: var(--bg);
  padding: 40px 26px;
  text-align: center;
}

.strip-item b {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.strip-item b small { font-size: 0.42em; font-weight: 600; letter-spacing: 0.04em; }

.strip-item span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ---------- 事業カード ---------- */
.work {
  display: grid;
  gap: 26px;
  margin-top: 58px;
}

.card {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.6s cubic-bezier(.2,.7,.3,1), border-color 0.4s ease, box-shadow 0.5s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 216, 255, 0.32);
  box-shadow: 0 26px 70px rgba(3, 12, 28, 0.85);
}

.card.flip { grid-template-columns: 1fr 1.05fr; }
.card.flip .card-visual { order: -1; }

.card-body {
  padding: clamp(30px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-body h3 {
  margin: 0 0 4px;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.4;
}

.card-body .kicker {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.card-body p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: rgba(224, 238, 255, 0.72);
  background: rgba(255,255,255,0.03);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-weight: 700;
  font-size: 15px;
  color: var(--cyan);
  text-decoration: none;
  width: fit-content;
}
.card-link svg { transition: transform 0.3s ease; }
.card-link:hover svg { transform: translateX(5px); }

.card-visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
.card-visual img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(.2,.7,.3,1);
}
.card:hover .card-visual img { transform: scale(1.08); }
.card-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,7,13,0.86) 0%, rgba(4,7,13,0.18) 45%, rgba(4,7,13,0.05) 100%);
}
.card.flip .card-visual::after {
  background: linear-gradient(270deg, rgba(4,7,13,0.86) 0%, rgba(4,7,13,0.18) 45%, rgba(4,7,13,0.05) 100%);
}

/* ---------- 特集：AI学習サロン ---------- */
.salon-feature {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 110% at 12% 0%, rgba(47,125,251,0.22), transparent 60%),
    radial-gradient(70% 110% at 92% 100%, rgba(123,108,246,0.22), transparent 58%),
    var(--bg-soft);
  padding: clamp(72px, 10vw, 128px) 0;
  text-align: center;
}

.salon-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid rgba(79, 216, 255, 0.34);
  border-radius: 999px;
  background: rgba(79, 216, 255, 0.08);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.salon-headline {
  margin: 26px 0 0;
  font-size: clamp(30px, 5.2vw, 58px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
}
.salon-headline .accent {
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.salon-sub {
  margin: 22px auto 0;
  max-width: 44em;
  color: rgba(224, 238, 255, 0.8);
  font-size: clamp(15px, 1.7vw, 17.5px);
}

.salon-visual {
  margin: 52px auto 0;
  max-width: 880px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 8, 20, 0.7);
}
.salon-visual img { width: 100%; display: block; }

.salon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
  text-align: left;
}

.salon-card {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.4s ease, transform 0.5s cubic-bezier(.2,.7,.3,1);
}
.salon-card:hover { border-color: rgba(79, 216, 255, 0.3); transform: translateY(-4px); }

.salon-card-num {
  display: block;
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.salon-card h4 { margin: 0 0 10px; font-size: 18px; font-weight: 700; line-height: 1.5; }
.salon-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.salon-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 0;
  margin-top: 46px;
}
.salon-meta-item {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 0 34px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}
.salon-meta-item:last-child { border-right: none; }
.salon-meta-item strong {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.salon-meta-item .price-prefix { font-size: 12.5px; letter-spacing: 0.08em; }

.salon-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
}

/* ---------- ミッション ---------- */
/* ---------- 下層ページのヒーロー ---------- */
.page-hero {
  position: relative;
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.page-hero .hero-canvas,
.page-hero .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.page-hero .hero-fallback { background: #04070d center/cover no-repeat; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(95% 80% at 20% 70%, rgba(4,7,13,0.88) 0%, rgba(4,7,13,0.45) 45%, rgba(4,7,13,0) 78%),
    linear-gradient(180deg, rgba(4,7,13,0.8) 0%, rgba(4,7,13,0.05) 30%, rgba(4,7,13,0.6) 85%, var(--bg) 100%);
}
.page-hero .shell { padding-top: calc(var(--nav-h) + 90px); padding-bottom: 76px; }
.page-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(32px, 5.6vw, 62px);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.02em;
}
.page-hero h1 .grad {
  background: linear-gradient(100deg, #ffffff 8%, var(--cyan) 55%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p {
  margin: 22px 0 0;
  max-width: 40em;
  color: rgba(224,238,255,0.82);
  font-size: clamp(15px, 1.7vw, 18px);
}
.page-hero .page-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- フォーム ---------- */
.form-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: start;
}

.form-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
  padding: clamp(28px, 3.6vw, 44px);
}

.field { margin-bottom: 22px; }
.field label {
  display: block;
  margin-bottom: 9px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(224,238,255,0.9);
}
.field label .req {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #04070d;
  background: var(--cyan);
  vertical-align: 1px;
}
.field label .opt {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  vertical-align: 1px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 15px 17px;
  font-family: inherit;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(147,169,198,0.55); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(79,216,255,0.6);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(79,216,255,0.12);
}

/* ハニーポット（スパム対策）は見せない */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-submit { margin-top: 30px; }
.form-submit button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #04070d;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 30px rgba(47,125,251,0.28);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), box-shadow 0.3s ease, filter 0.3s ease;
}
.form-submit button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(47,125,251,0.36);
  filter: brightness(1.06);
}
.form-submit button:disabled { opacity: 0.55; cursor: progress; }

.form-message {
  display: none;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.75;
  white-space: pre-line;
}
.form-message.success {
  display: block;
  color: #b9f5d8;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.form-message.error {
  display: block;
  color: #ffc9d2;
  background: rgba(248, 113, 133, 0.1);
  border: 1px solid rgba(248, 113, 133, 0.35);
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}
.info-card p { margin: 0 0 22px; color: var(--muted); font-size: 14.5px; }
.info-card .info-row {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.info-card .info-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(147,169,198,0.75);
  margin-bottom: 8px;
}
.info-card .info-value a {
  color: var(--cyan);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  word-break: break-all;
}
.info-card .info-value a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 52px auto 0; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.028);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.35s ease;
}
.faq-item.open { border-color: rgba(79,216,255,0.32); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
}
.faq-q .mark {
  flex: none;
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--cyan);
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1), background 0.3s ease;
}
.faq-item.open .faq-q .mark { transform: rotate(45deg); background: rgba(79,216,255,0.12); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(.2,.7,.3,1);
}
.faq-a p {
  margin: 0;
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 法務ページ ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 {
  margin: 56px 0 16px;
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 700;
  line-height: 1.5;
  padding-left: 16px;
  border-left: 2px solid var(--cyan);
}
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin: 30px 0 12px; font-size: 16.5px; font-weight: 700; }
.legal p { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 1.3em; color: var(--muted); font-size: 15.5px; }
.legal li { margin-bottom: 9px; }
.legal a { color: var(--cyan); }
.legal .updated {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: rgba(147,169,198,0.7);
  font-size: 13.5px;
}

.legal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.legal-table th,
.legal-table td {
  padding: 20px 24px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.85;
}
.legal-table tr:last-child th,
.legal-table tr:last-child td { border-bottom: none; }
.legal-table th {
  width: 30%;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255,255,255,0.03);
  border-right: 1px solid var(--line);
}
.legal-table td { color: var(--muted); }
.legal-table a { color: var(--cyan); }

/* ---------- 特徴グリッド（3〜6枚） ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.feature {
  padding: 32px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.028);
  transition: border-color 0.4s ease, transform 0.5s cubic-bezier(.2,.7,.3,1), background 0.4s ease;
}
.feature:hover {
  border-color: rgba(79,216,255,0.3);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.05);
}
.feature .ico {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 13px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(79,216,255,0.18), rgba(123,108,246,0.18));
  border: 1px solid var(--line);
  font-size: 20px;
}
.feature h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; line-height: 1.55; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- 画像つきタイル（サービス一覧） ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.tile {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--glass);
  transition: border-color 0.4s ease, transform 0.5s cubic-bezier(.2,.7,.3,1), box-shadow 0.5s ease;
}
.tile:hover {
  border-color: rgba(79,216,255,0.32);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(2, 8, 20, 0.7);
}
.tile-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.tile-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2,.7,.3,1);
}
.tile:hover .tile-img img { transform: scale(1.06); }
.tile-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,7,13,0) 45%, rgba(4,7,13,0.72) 100%);
}
.tile-body { padding: 26px 26px 30px; }
.tile-body h3 { margin: 0 0 10px; font-size: 17.5px; font-weight: 700; line-height: 1.5; }
.tile-body p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- 交互に並ぶ説明ブロック ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 6vw, 86px) 0;
  border-bottom: 1px solid var(--line);
}
.split:last-child { border-bottom: none; }
.split .kicker {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.split h3 {
  margin: 0 0 20px;
  font-size: clamp(22px, 2.9vw, 32px);
  font-weight: 700;
  line-height: 1.45;
}
.split p { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; }
.split-visual {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(2, 8, 20, 0.6);
}
.split-visual img { width: 100%; display: block; }

.mission {
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(47,125,251,0.13), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.mission .title { max-width: 20em; margin: 0 auto; }
.mission .lead { margin: 26px auto 0; text-align: left; max-width: 40em; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  text-align: left;
}
.pillar {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.028);
  transition: border-color 0.4s ease, transform 0.5s cubic-bezier(.2,.7,.3,1);
}
.pillar:hover { border-color: rgba(79,216,255,0.3); transform: translateY(-4px); }
.pillar b { display: block; font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.pillar p { margin: 0; color: var(--muted); font-size: 14.5px; }
.pillar i {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(79,216,255,0.18), rgba(123,108,246,0.18));
  border: 1px solid var(--line);
  font-style: normal;
  font-size: 18px;
}

/* ---------- 最終CTA ---------- */
.final { text-align: center; }
.final h2 { font-size: clamp(28px, 5vw, 54px); line-height: 1.28; }
.final .btn { margin-top: 38px; }

/* ---------- フッター ---------- */
footer {
  border-top: 1px solid var(--line);
  background: #030509;
  padding: 62px 0 32px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.foot-brand p { margin: 16px 0 0; color: var(--muted); font-size: 14px; max-width: 30em; }

footer h4 {
  margin: 0 0 16px;
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(147, 169, 198, 0.7);
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 11px; }
footer li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.25s ease;
}
footer li a:hover { color: var(--cyan); }

.foot-legal {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(147, 169, 198, 0.6);
  font-size: 12.5px;
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}

#gpu-tag { display: none; }
.hero-ready #gpu-tag { display: inline; }

/* ---------- アニメーション ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.82); } }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-badge, .hero h1, .hero-lead, .hero-actions, .hero-meta, .scroll-hint { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .card, .card.flip { grid-template-columns: 1fr; }
  .card.flip .card-visual { order: 0; }
  .card-visual { min-height: 230px; position: relative; }
  .card-visual::after,
  .card.flip .card-visual::after {
    background: linear-gradient(180deg, rgba(4,7,13,0.1) 0%, rgba(4,7,13,0.75) 100%);
  }
  .salon-grid { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split .split-visual { order: -1; }
  .split.flip .split-visual { order: -1; }
  .pillars { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  :root { --gutter: 20px; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    background: rgba(4, 7, 13, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 15px 8px; font-size: 16px; border-radius: 12px; }
  .nav-links .nav-cta { margin: 10px 0 0; text-align: center; }
  .burger { display: inline-flex; }
  .strip-grid { grid-template-columns: 1fr; }
  .salon-meta-item { border-right: none; padding: 0 20px; }
  .salon-visual { margin-top: 38px; border-radius: 18px; }
  .page-hero .shell { padding-top: calc(var(--nav-h) + 60px); padding-bottom: 54px; }
  /* 長い日本語タイトルが横にはみ出さないようにする */
  .page-hero h1 { font-size: clamp(25px, 7.2vw, 40px); }
  .tiles { grid-template-columns: 1fr; }
  .legal-table th, .legal-table td { display: block; width: 100%; border-right: none; }
  .legal-table th { border-bottom: none; padding-bottom: 6px; }
  .legal-table td { padding-top: 0; }
  .hero-inner { padding-bottom: 130px; }
  .hero-meta { gap: 8px 20px; font-size: 11px; margin-top: 38px; }
  /* 狭い画面では海が文字に重なるので、読みやすさ優先で暗幕を強める */
  .hero::after {
    background:
      linear-gradient(180deg, rgba(4,7,13,0.86) 0%, rgba(4,7,13,0.66) 42%, rgba(4,7,13,0.42) 66%, rgba(4,7,13,0.7) 88%, var(--bg) 100%);
  }
  .hero-lead, .hero h1 { text-shadow: 0 2px 24px rgba(2, 6, 14, 0.75); }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
}
