/* ==========================================================
   NEXUS - style.css
   ========================================================== */
:root {
  --bg: #04071c;
  --bg-2: #070c2a;
  --bg-3: #0a1240;
  --line: rgba(120, 160, 255, 0.28);
  --line-strong: rgba(140, 190, 255, 0.55);
  --text: #eef2ff;
  --muted: #aab4d6;
  --cyan: #3ee6ff;
  --blue: #3b82f6;
  --indigo: #6366f1;
  --purple: #a855f7;
  --pink: #f472b6;
  --grad: linear-gradient(90deg, #3ee6ff 0%, #7c9cff 45%, #c084fc 75%, #f472b6 100%);
  --font-en: 'Inter', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-jp), var(--font-en);
  /* 背景はページ全体で1枚。セクションごとに塗ると境目で色や明るさが折れて見えるため */
  background:
    linear-gradient(180deg, #04071c 0%, #060b2c 22%, #05092a 45%, #070c2a 68%, #060b2c 86%, #04071c 100%);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
svg { display: block; }
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em;
  transition: .3s;
}
.btn--sm { padding: 8px 18px; font-size: 12px; }
.btn--outline {
  border: 1px solid var(--line-strong);
  background: rgba(20, 40, 120, 0.15);
  backdrop-filter: blur(6px);
}
.btn--outline:hover { background: rgba(80, 140, 255, 0.18); border-color: #9cc6ff; box-shadow: 0 0 24px rgba(62, 230, 255, .25); }
.btn--solid {
  background: linear-gradient(90deg, #3ee6ff, #7c9cff);
  color: #04071c; font-weight: 700;
  padding: 16px 34px;
  box-shadow: 0 0 30px rgba(62, 230, 255, .45);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 0 44px rgba(62, 230, 255, .7); }
.btn .arrow { transition: transform .3s; }
.btn:hover .arrow { transform: translateX(4px); }

.circle-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(20, 40, 120, .2); color: var(--text);
  cursor: pointer; font-size: 16px; transition: .3s;
}
.circle-btn:hover { background: rgba(80, 140, 255, .25); box-shadow: 0 0 20px rgba(62, 230, 255, .3); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(4, 7, 28, .9), rgba(4, 7, 28, 0));
}
.header__inner {
  width: min(1320px, 100% - 48px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__img { display: block; height: 44px; width: auto; }   /* ヘッダー・フッターのロゴ（img/SVG/rogo.svg） */
.nav { display: flex; gap: 34px; font-family: var(--font-en); font-size: 12px; letter-spacing: .1em; }
.nav a { position: relative; padding: 4px 0; color: #c9d4ff; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav a.is-active::after, .nav a:hover::after { transform: scaleX(1); }

/* ---------- Menu button & Drawer（1024px 以下） ---------- */
.menu-btn {
  display: none; position: relative; flex: none;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: rgba(20, 40, 120, .2); cursor: pointer;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.menu-btn:hover { background: rgba(80, 140, 255, .25); box-shadow: 0 0 20px rgba(62, 230, 255, .3); }
.menu-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.menu-btn__bar {
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 1.5px; margin: -.75px 0 0 -9px;
  border-radius: 1px; background: #e6ecff;
  transition: transform .35s ease, opacity .25s ease;
}
.menu-btn__bar:nth-child(1) { transform: translateY(-6px); }
.menu-btn__bar:nth-child(3) { transform: translateY(6px); }
/* 開いている間は × に変形 */
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(1) { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(3) { transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 45;              /* ヘッダー（z-index:50）の下に敷き、× ボタンを押せるようにする */
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 110px max(32px, 8vw) 40px;
  overflow-y: auto; overscroll-behavior: contain;
  background:
    radial-gradient(ellipse 80% 60% at 75% 15%, rgba(99, 102, 241, .28), rgba(99, 102, 241, 0) 70%),
    radial-gradient(ellipse 70% 50% at 10% 95%, rgba(62, 230, 255, .12), rgba(62, 230, 255, 0) 70%),
    rgba(4, 7, 28, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden;                        /* 閉じている間はフォーカスも読み上げもされない */
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.drawer.is-open { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 14px 0; border-bottom: 1px solid rgba(120, 160, 255, .14);
  font-family: var(--font-en); font-size: clamp(24px, 6vw, 36px); font-weight: 600; letter-spacing: .08em;
  color: #e6ecff;
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease, color .3s;
}
.drawer__nav a span { font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--cyan); }
.drawer__nav a:hover, .drawer__nav a.is-active { color: var(--cyan); }
.drawer__nav a:focus-visible, .drawer__cta:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
/* 開いたときにリンクが上から順に現れる */
.drawer.is-open .drawer__nav a { opacity: 1; transform: none; }
.drawer.is-open .drawer__nav a:nth-child(1) { transition-delay: .08s; }
.drawer.is-open .drawer__nav a:nth-child(2) { transition-delay: .14s; }
.drawer.is-open .drawer__nav a:nth-child(3) { transition-delay: .20s; }
.drawer.is-open .drawer__nav a:nth-child(4) { transition-delay: .26s; }
.drawer.is-open .drawer__nav a:nth-child(5) { transition-delay: .32s; }
.drawer__cta {
  align-self: flex-start;
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease, box-shadow .3s;
}
.drawer.is-open .drawer__cta { opacity: 1; transform: none; transition-delay: .4s; }
.drawer__copy { font-family: var(--font-en); font-size: 10px; letter-spacing: .08em; color: #7f92c8; }
body.is-menu-open { overflow: hidden; }                 /* 開いている間は背景をスクロールさせない */
@media (min-width: 1025px) { .drawer { display: none; } }

/* ---------- Hero ---------- */
.hero {
  /* 読み込み時にヒーローだけで画面が埋まる高さ。svh はスマホのアドレスバーが出ていても
     はみ出さない単位で、対応していないブラウザには上の vh が使われる */
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow-x: clip;
  /* 下端は透明へ抜き、ページ全体の背景にそのまま溶かす（特定の色へ寄せると段差になる） */
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(12, 26, 90, 1) 0%, rgba(6, 11, 44, .7) 45%, rgba(4, 7, 28, 0) 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.hero__glow--a { width: 350px; height: 350px; left: 50%; top: 20%; transform: translateX(-50%); background: rgba(80, 120, 255, .35); }
.hero__glow--b { width: 269px; height: 269px; left: 55%; top: 45%; background: rgba(168, 85, 247, .28); }
.hero__stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 60%),
    radial-gradient(1px 1px at 84% 14%, #fff 50%, transparent 60%),
    radial-gradient(1.5px 1.5px at 30% 78%, #9cd4ff 50%, transparent 60%),
    radial-gradient(1px 1px at 68% 62%, #fff 50%, transparent 60%),
    radial-gradient(1px 1px at 92% 44%, #cfe0ff 50%, transparent 60%),
    radial-gradient(1.5px 1.5px at 20% 52%, #fff 50%, transparent 60%),
    radial-gradient(1px 1px at 45% 8%, #fff 50%, transparent 60%),
    radial-gradient(1px 1px at 74% 88%, #fff 50%, transparent 60%);
  opacity: .8;
}
/* 点の格子でできた 3D の波面（wave-terrain.js）：全ページのヒーロー・セクション・CTA */
.wave-terrain { position: absolute; left: 0; right: 0; pointer-events: none; overflow: hidden; }
.wave-terrain canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.wave-terrain--hero {
  bottom: 0; height: 46%; min-height: 260px; z-index: 2;
  /* 上端（地平線のあたり）を背景へ溶かす */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%);
}
/* 下層ページのヒーロー下部 */
.wave-terrain--page-hero {
  bottom: 0; height: 260px; z-index: 2;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 100%);
}

.hero__inner {
  position: relative; z-index: 2;
  width: min(1320px, 100% - 48px); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 640px 1fr;
  align-items: center; min-height: 100vh; min-height: 100svh; padding-top: 60px;
}
.hero__copy { position: relative; }
.hero__eyebrow { font-family: var(--font-en); font-size: 11px; letter-spacing: .22em; color: #9fb6ff; margin-bottom: 18px; }
.hero__title {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(34px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero__lead { font-size: 15px; margin-bottom: 24px; color: #d7dfff; }
/* SCROLL：縦書きの文字 + 縦線。Explore の下に並べ、光が上から下へ流れる。
   文章のまとまりと一緒に上下中央へ置かれるので、画面の高さが変わってもはみ出さない */
.hero__scroll {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: max-content; margin: clamp(20px, 3vh, 36px) 0 0 20px;
  font-family: var(--font-en); font-size: 10px; letter-spacing: .3em; color: #9fb6ff;
}
.hero__scroll span { writing-mode: vertical-rl; line-height: 1; }
.hero__scroll i { position: relative; width: 1px; height: clamp(36px, 5vh, 52px); background: rgba(160, 190, 255, .35); overflow: hidden; }
.hero__scroll i::after {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: linear-gradient(180deg, rgba(62, 230, 255, 0), var(--cyan));
  transform: translateY(-100%); animation: scrollLine 2s cubic-bezier(.6, 0, .4, 1) infinite;
}
.hero__scroll::after {
  content: ''; width: 5px; height: 5px; margin-top: -10px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
@keyframes scrollLine { to { transform: translateY(250%); } }
/* 高さの低い画面では、SCROLL が画面下端に寄りすぎないよう少し詰める */
@media (max-height: 760px) {
  .hero__scroll { margin-top: 16px; }
  .hero__scroll i { height: 32px; }
}

.hero__tags {
  justify-self: end; align-self: start; margin-top: 40px;
  padding-left: 16px; border-left: 1px solid rgba(160, 190, 255, .5);
  font-family: var(--font-en); font-size: 13px; line-height: 1.5; color: #dfe6ff;
}

/* ---------- 3D Stage ---------- */
/* 人形はドラッグで回転できる。縦方向のスワイプはページのスクロールに使えるよう pan-y にする */
.stage { position: relative; width: 640px; height: 457px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.stage.is-dragging { cursor: grabbing; }
/* 3D の読み込み中サークル。hero3d.js が人形を表示すると .stage に is-ready が付いてフェードアウトする */
.stage__loader {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; pointer-events: none;
  background: conic-gradient(rgba(62, 230, 255, 0) 0deg, #3ee6ff 220deg, #c084fc 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: stageLoaderSpin .9s linear infinite;
  transition: opacity .5s ease, visibility .5s;
}
.stage.is-ready .stage__loader { opacity: 0; visibility: hidden; }
@keyframes stageLoaderSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .stage__loader { animation-duration: 2.4s; } }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; pointer-events: none;
  /* 床グリッドがヒーロー下端で途切れて見えないよう、下側を背景へ溶かす */
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }

/* ---------- Sections common ---------- */
.section { position: relative; padding: 110px 0; overflow-x: clip; }
.section__bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); }
.orb--1 { width: 500px; height: 500px; right: -120px; top: -100px; background: rgba(99, 102, 241, .22); }
.orb--2 { width: 500px; height: 500px; left: -160px; bottom: -160px; background: rgba(168, 85, 247, .2); }
.orb--3 { width: 560px; height: 420px; right: -180px; top: -200px; background: rgba(62, 230, 255, .1); }
.orb--4 { width: 520px; height: 420px; left: 20%; bottom: -220px; background: rgba(99, 102, 241, .14); }
.wave-terrain--section {
  bottom: 0; height: 360px; opacity: .9;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 80%, transparent 100%);
}

.section__grid { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: center; position: relative; }
.section__num {
  font-family: var(--font-en); font-size: 12px; letter-spacing: .2em; color: #8fa6ff; line-height: 1.4; margin-bottom: 18px;
}
.section__num span { color: #3ee6ff; }
.section__title { font-size: 34px; font-weight: 700; line-height: 1.4; margin-bottom: 22px; letter-spacing: .02em; }
.section__title--md { font-size: 30px; }
.nowrap { white-space: nowrap; }   /* 途中で折り返させない語句（例：見出しの「（HP制作）」） */
.section__text { font-size: 13.5px; color: var(--muted); margin-bottom: 28px; }
/* 本文の直後に置く注記。本文との間は詰め、ボタンとの間は本文と同じだけ空ける */
.section__text:has(+ .section__note) { margin-bottom: 10px; }
.section__note {
  font-size: 12px; line-height: 1.7; color: var(--muted); margin-bottom: 28px;
  padding-left: 1em; text-indent: -1em;   /* 折り返しを ※ の右に揃える */
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Service ---------- */
.service { background: transparent; }
/* カードの下辺が左の「サービスを詳しく見る」ボタンの下辺と揃うよう、左列と同じ高さまで伸ばす。
   6 列の升目に対し、上段は 2 列ぶん × 3 枚・下段は 3 列ぶん × 2 枚を置いて二段組にする */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-self: stretch; }
.card { grid-column: span 2; }
.card:nth-child(n+4) { grid-column: span 3; }
.card {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 22px 18px 38px;
  border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(160deg, rgba(20, 40, 120, .25), rgba(8, 14, 50, .55));
  transition: .35s;
}
.card:hover { border-color: rgba(62, 230, 255, .7); box-shadow: 0 0 30px rgba(62, 230, 255, .2); transform: translateY(-4px); }
.card__icon {
  display: grid; place-items: center; flex: 0 0 76px; width: 76px; height: 76px; border-radius: 22%;
  background: linear-gradient(135deg, #3ee6ff, #3b82f6); box-shadow: 0 0 18px rgba(62, 230, 255, .5);
}
.card__icon--indigo { background: linear-gradient(135deg, #6366f1, #3b82f6); box-shadow: 0 0 18px rgba(99, 102, 241, .5); }
.card__icon--purple { background: linear-gradient(135deg, #a855f7, #6366f1); box-shadow: 0 0 18px rgba(168, 85, 247, .5); }
.card__icon--pink   { background: linear-gradient(135deg, #f472b6, #a855f7); box-shadow: 0 0 18px rgba(244, 114, 182, .5); }
.card__icon--rose   { background: linear-gradient(135deg, #fb7185, #f472b6); box-shadow: 0 0 18px rgba(251, 113, 133, .5); }
/* 線は vector-effect で拡大率に関わらず 1px に固定する（アイコンを大きくしても細いまま） */
.card__icon svg { width: 58%; height: 58%; fill: none; stroke: #fff; stroke-linejoin: round; stroke-linecap: round; }
.card__icon svg * { stroke-width: 1; vector-effect: non-scaling-stroke; }
.card__body { flex: 1 1 auto; min-width: 0; }   /* アイコンの右に置く見出しと本文 */
.card h3 { font-family: var(--font-en); font-size: 16px; font-weight: 600; margin-bottom: 9px; }
.card p { font-size: 12px; color: var(--muted); line-height: 1.7; }
.card__arrow { position: absolute; right: 18px; bottom: 14px; font-size: 14px; color: #9fd8ff; }

/* ---------- Works ---------- */
.works { background: transparent; }
.works .section__grid { grid-template-columns: 300px 1fr; }

/* 幾何学モチーフ（molecule.js が canvas に描画する） */
.works__motif {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 300px;
}
/* モチーフの後ろに置く、ほんのりした光だまり */
.works__motif::before {
  content: '';
  position: absolute;
  inset: -8%;
  background: radial-gradient(closest-side, rgba(62, 230, 255, .10), rgba(99, 102, 241, .05) 55%, transparent 100%);
  pointer-events: none;
}
.works__motif canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Strengths ---------- */
.strengths { background: transparent; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); }
.reason { padding: 10px 28px; border-left: 1px solid var(--line); }
.reason__top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.reason__num { font-family: var(--font-en); font-size: 32px; font-weight: 300; color: #dfe6ff; }
.reason__icon svg { width: 40px; height: 40px; fill: none; stroke: #7c9cff; stroke-width: 1.4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(124, 156, 255, .8)); }
.reason h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.reason p { font-size: 13px; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { background: transparent; }
.pricing .section__grid { grid-template-columns: 300px 1fr; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; padding: 26px 24px 28px;
  border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(160deg, rgba(20, 40, 120, .22), rgba(8, 14, 50, .55));
  /* プランごとに項目数が違うので、注記は縦並びにして下端へ揃える */
  display: flex; flex-direction: column;
}
.plan--featured { border-color: rgba(168, 85, 247, .9); box-shadow: 0 0 34px rgba(168, 85, 247, .3), inset 0 0 40px rgba(99, 102, 241, .15); }
.plan__badge {
  position: absolute; right: 20px; top: -14px;
  padding: 4px 16px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: linear-gradient(90deg, #a855f7, #6366f1); box-shadow: 0 0 16px rgba(168, 85, 247, .6);
}
.plan h3 { font-size: 15px; font-weight: 700; }
.plan__desc { font-size: 11px; color: var(--muted); margin: 2px 0 18px; }
.plan__price { font-family: var(--font-en); font-size: 26px; font-weight: 600; margin-bottom: 18px; }
.plan ul { margin-bottom: 10px; }   /* 最後の項目と注記の罫線との間隔 */
.plan ul li { position: relative; padding-left: 22px; font-size: 12.5px; color: #d7dfff; line-height: 2; }
.plan ul li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 10px; height: 6px;
  border-left: 1.5px solid var(--cyan); border-bottom: 1.5px solid var(--cyan); transform: rotate(-45deg);
}
.plan__note {
  margin-top: auto;                     /* 項目数によらずカード下端に揃える */
  padding-top: 18px;
  border-top: 1px solid rgba(120, 160, 255, .16);
  font-size: 10.5px; line-height: 1.7; color: var(--muted);
  padding-left: 1em; text-indent: -1em; /* 折り返しを ※ の右に揃える */
}

/* ---------- FAQ ---------- */
.faq { background: transparent; padding-bottom: 80px; }
.faq__grid { display: grid; grid-template-columns: 300px 1fr 260px; gap: 50px; align-items: start; }
.faq__list { display: grid; gap: 10px; }
.qa { border: 1px solid var(--line); border-radius: 8px; background: rgba(8, 14, 50, .5); transition: border-color .3s; }
.qa[open] { border-color: rgba(62, 230, 255, .6); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; font-size: 13px; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; width: 14px; height: 14px; flex: none; }
.qa__icon::before, .qa__icon::after { content: ''; position: absolute; background: #cfe6ff; transition: transform .3s; }
.qa__icon::before { left: 0; top: 6px; width: 14px; height: 1.5px; }
.qa__icon::after { left: 6px; top: 0; width: 1.5px; height: 14px; }
.qa[open] .qa__icon::after { transform: rotate(90deg); }
.qa__body { padding: 0 18px 16px; font-size: 12.5px; color: var(--muted); }
.faq__aside { text-align: left; font-size: 12.5px; color: var(--muted); }
.faq__script {
  font-family: 'Caveat', cursive; font-size: 46px; line-height: 1; font-weight: 600;
  color: #8fd6ff; transform: rotate(-8deg); margin: 10px 0 30px 20px;
  text-shadow: 0 0 20px rgba(62, 230, 255, .6);
}
.faq__aside .circle-btn { margin-top: 20px; margin-left: 160px; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 90px 0; overflow-x: clip;
  background: radial-gradient(ellipse 60% 70% at 50% 60%, rgba(16, 28, 96, .55) 0%, rgba(10, 18, 64, .25) 50%, rgba(4, 7, 28, 0) 100%); }
.cta__bg { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 80%, transparent 100%); }
.cta__bg { position: absolute; inset: 0; pointer-events: none; }
.wave-terrain--cta {
  top: 0; bottom: 0;
  /* .cta__bg の上下フェードに加えて、上端だけもう少し柔らかく */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
}
.cta__inner {
  display: flex; align-items: center; justify-content: center; gap: 80px; flex-wrap: wrap;
  padding: 34px 44px; border-radius: 12px;
  background: rgba(6, 11, 44, .6); border: 1px solid rgba(120, 160, 255, .2); backdrop-filter: blur(4px);
}
.cta h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.cta p { font-size: 12.5px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(180deg, rgba(3, 6, 26, 0) 0%, #03061a 70%); padding: 48px 0 32px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 32px; font-family: var(--font-en); font-size: 11px; letter-spacing: .1em; color: #c9d4ff; }
.footer__right { display: flex; align-items: center; gap: 28px; }
.footer small { font-family: var(--font-en); font-size: 13px; letter-spacing: .04em; color: #a7b6e6; }
/* フッター右のプライバシーポリシーへのリンクボタン */
.footer__policy {
  display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(20, 40, 120, .15);
  font-family: var(--font-en); font-size: 11px; letter-spacing: .1em; color: #c9d4ff; white-space: nowrap;
  transition: .3s;
}
.footer__policy:hover { color: #fff; border-color: #9cc6ff; background: rgba(80, 140, 255, .18); box-shadow: 0 0 18px rgba(62, 230, 255, .2); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .hero__inner { grid-template-columns: 1fr 560px 1fr; }
  .stage { width: 560px; }
  /* 左に見出し列がある幅では 3 枚並べると本文が細くなるため、2 枚ずつにする */
  .card, .card:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .header__inner { gap: 12px; }
  .logo__img { height: 38px; }
  .header__cta { margin-left: auto; }   /* Contact ボタンをハンバーガーボタンの隣へ寄せる */
  .hero__inner { grid-template-columns: 1fr; padding: 72px 0 12px; text-align: center; }
  .hero__copy { order: 2; }
  .hero__scroll { display: none; }
  .stage { order: 1; width: 100%; height: 350px; margin-inline: auto; }
  .hero__tags { display: none; }
  .section__grid, .works .section__grid, .pricing .section__grid, .faq__grid { grid-template-columns: 1fr; }
  .card { grid-column: span 2; }
  .card:nth-child(n+4) { grid-column: span 3; }   /* 全幅になるので 3 枚 + 2 枚に戻す */
  .reasons { grid-template-columns: 1fr; gap: 24px; }
  .plans { grid-template-columns: 1fr; }
  .faq__aside .circle-btn { margin-left: 0; }
}
@media (max-width: 860px) {
  .card, .card:nth-child(n+4) { grid-column: span 3; }   /* 幅が狭くなったら 2 枚ずつ */
}
@media (max-width: 640px) {
  .stage { height: 282px; }
  .footer__nav { gap: 12px 22px; }   /* 1行に収まらない幅では折り返し、横スクロールを出さない */
  .footer__right { gap: 14px; flex-wrap: wrap; }
  .hero__inner { padding: 60px 0 8px; }
  .hero__eyebrow { margin-bottom: 12px; color: #fff; }
  .works__motif { aspect-ratio: 4 / 3; min-height: 260px; }
  .card, .card:nth-child(n+4) { grid-column: span 6; }
  .section { padding: 80px 0; }
  .section__title { font-size: 28px; }
  .cta__inner { gap: 30px; text-align: center; justify-content: center; }
}
/* ロゴ・Contact・ハンバーガーの3つが並ばない狭いスマホでは、ヘッダーの Contact を隠す
   （同じ導線はメニュー内の「お問い合わせはこちら」にある） */
@media (max-width: 359px) {
  .header__cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer__nav a, .drawer__cta, .menu-btn__bar { transition: none !important; }
}
