/* ============================================================
   REM v13 — 集客ファースト ハイブリッド（ダークHero + 明るい本文）
   全テキスト WCAG AA(4.5:1)以上を担保した design token
   ============================================================ */
:root {
  /* 明るい本文の配色 */
  --bg:        #FFFFFF;
  --bg-alt:    #F4F7FA;   /* 交互セクション */
  --ink:       #0C1219;   /* 見出し/強い本文 18.8:1 */
  --body:      #46505C;   /* 本文 8.2:1 */
  --muted:     #5B6673;   /* キャプション 5.8:1 */
  --accent-ink:#076C86;   /* 明面のリンク/差し色 6.0:1 */
  --line:      #E2E8EF;   /* 装飾境界 */
  --line-2:    #7B8593;   /* 入力/UI境界 3:1目安 */

  /* ダーク（Hero / 最終CTA） */
  --dark:      #0A0F17;
  --dark-2:    #0F1622;
  --fg-dark:   #E8ECF1;   /* 16:1 */
  --muted-dark:#9AA6B4;   /* 7.8:1 */

  /* ブランドアクセント（発光シアンはダーク面/差し色限定） */
  --cyan:      #00E5FF;
  --cyan-deep: #06121B;

  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16,26,40,0.08), 0 2px 8px rgba(16,26,40,0.05);
  --shadow-lg: 0 24px 60px rgba(16,26,40,0.14);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --sans: Inter, "Noto Sans JP", system-ui, sans-serif;
}

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

/* MPA ページ遷移をブラウザネイティブでモーフ（対応外は通常遷移に劣化） */
@view-transition { navigation: auto; }

/* アクセシビリティ: スキップリンクとフォーカス可視 */
.skip-link { position: absolute; left: -9999px; z-index: 999; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.section--dark :focus-visible, .hero :focus-visible, .cta :focus-visible { outline-color: var(--cyan); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: auto-phrase;
  line-break: strict;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.3; text-wrap: balance; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
.mono { font-family: var(--mono); }
.nw { white-space: nowrap; }

/* ---------- レイアウト ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--fg-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent-ink); font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent-ink); display: inline-block; }
.section--dark .eyebrow { color: var(--cyan); }
.section--dark .eyebrow::before { background: var(--cyan); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.section-head .lead { margin-top: 0.9rem; font-size: 1.05rem; color: var(--body); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0.85rem 1.7rem; border-radius: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: 0.02em;
  cursor: pointer; border: 1.5px solid transparent; transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: #000; box-shadow: var(--shadow-lg); }
.btn-primary .arw { color: var(--cyan); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(12,18,25,0.03); }
/* ダーク面（Hero / CTA）のボタン = シアン塗り（12.3:1）＋白アウトライン */
.section--dark .btn-primary, .hero .btn-primary, .btn-cyan { background: var(--cyan); color: var(--cyan-deep); border-color: var(--cyan); box-shadow: 0 8px 30px rgba(0,229,255,0.25); }
.section--dark .btn-primary:hover, .hero .btn-primary:hover, .btn-cyan:hover { background: #5cf0ff; }
.section--dark .btn-primary .arw, .hero .btn-primary .arw { color: var(--cyan-deep); }
.section--dark .btn-ghost, .hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.section--dark .btn-ghost:hover, .hero .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.86); backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.16em; color: var(--ink); display: inline-flex; align-items: center; gap: 0.4rem; }
.logo .dot { color: var(--cyan); text-shadow: 0 0 6px rgba(0,229,255,0.6); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a.navlink { color: var(--body); font-size: 0.92rem; font-weight: 600; }
.nav a.navlink:hover { color: var(--ink); text-decoration: none; }
.nav .btn { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.92rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content:""; display:block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: .2s; }
.nav-toggle span::before { position:absolute; top:-7px; } .nav-toggle span::after { position:absolute; top:7px; }

/* ============================================================
   HERO（ダーク Cyber Noir・軽量canvasグリッド）
   ============================================================ */
.hero { position: relative; background: var(--dark); color: var(--fg-dark); overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }
/* Three.js 3D 都市（遅延ロード後にフェードイン。2Dグリッドの上・文字/グラデの下） */
.hero__canvas3d { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease; }
.hero__canvas3d.on { opacity: 1; }
.hero.has-3d .hero__canvas { opacity: 0; transition: opacity 1.4s ease; }
.hero::after { /* 文字可読性のためのグラデ + スキャンライン */
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    linear-gradient(90deg, rgba(10,15,23,0.92) 0%, rgba(10,15,23,0.72) 46%, rgba(10,15,23,0.35) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,229,255,0.025) 3px, rgba(0,229,255,0.025) 4px);
}
.hero__inner { position: relative; z-index: 2; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; max-width: 760px; }
.hero .eyebrow { color: var(--cyan); }
.hero .eyebrow::before { background: var(--cyan); }
.hero h1 {
  color: #fff; font-size: clamp(2.1rem, 5.4vw, 3.7rem); line-height: 1.18; letter-spacing: -0.02em;
  margin: 0.4rem 0 0;
  text-shadow: 0 2px 22px rgba(5, 10, 18, 0.85), 0 0 6px rgba(5, 10, 18, 0.5); /* 3D発光が背後を通っても可読 */
}
.hero__sub { text-shadow: 0 1px 14px rgba(5, 10, 18, 0.85); }
.hero h1 .hl { color: var(--cyan); }
.hero__sub { margin-top: 1.3rem; font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--fg-dark); max-width: 40ch; }
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__trust { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.hero__trust li { list-style: none; font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.06em; color: var(--muted-dark); display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__trust li::before { content: "▸"; color: var(--cyan); }
/* ---- ヒーロー文字演出（hero-text.js が .tx を付けた時のみ有効 = no-JS/reduced-motion では常時表示） ---- */
.hero.tx h1 .ch { display: inline-block; min-width: 0.22em; animation: ch-force 0.01s linear 3.5s forwards; }
.hero.tx h1 .ch.wait { opacity: 0; }
@keyframes ch-force { to { opacity: 1; } } /* JSのrAFが止まっても3.5s後に必ず表示(フェイルセーフ) */
.hero.tx h1 .ch.scr { opacity: 0.95; color: var(--cyan); text-shadow: 0 0 14px rgba(0,229,255,0.6); }
.hero.tx h1 .ch.set { animation: ch-set 0.35s ease-out; }
@keyframes ch-set {
  0% { color: #c9f7ff; text-shadow: 0 0 18px rgba(0,229,255,0.9); transform: translateY(-0.03em); }
  100% { transform: none; }
}
.hero.tx .eyebrow .ech { opacity: 0; transition: opacity 0.05s linear; }
.hero.tx .eyebrow .ech.on { opacity: 1; }
.hero.tx .eyebrow.typing::after { content: "▍"; color: var(--cyan); animation: caret-blink 0.7s steps(1) infinite; margin-left: 0.15em; }
@keyframes caret-blink { 50% { opacity: 0; } }
.hero.tx .hero__sub    { opacity: 0; animation: tx-up 0.8s ease-out 1.35s forwards; }
.hero.tx .hero__cta    { opacity: 0; animation: tx-up 0.8s ease-out 1.6s forwards; }
.hero.tx .hero__trust  { opacity: 0; animation: tx-up 0.8s ease-out 1.9s forwards; }
@keyframes tx-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.hero__corner { position: absolute; z-index: 2; width: 40px; height: 40px; pointer-events: none; }
.hero__corner.tl { top: 18px; left: 18px; border-top: 1.5px solid rgba(0,229,255,0.55); border-left: 1.5px solid rgba(0,229,255,0.55); }
.hero__corner.br { bottom: 18px; right: 18px; border-bottom: 1.5px solid rgba(0,229,255,0.55); border-right: 1.5px solid rgba(0,229,255,0.55); }

/* ============================================================
   信頼バー
   ============================================================ */
.trustbar { background: var(--dark-2); color: var(--fg-dark); border-bottom: 1px solid rgba(255,255,255,0.06); }
.trustbar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.08); background-clip: content-box; }
.trustbar .cell { background: var(--dark-2); padding: 1.4rem 1.2rem; text-align: center; }
.trustbar .num { font-family: var(--mono); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; color: #fff; line-height: 1; }
.trustbar .num .u { color: var(--cyan); font-size: 0.6em; margin-left: 0.15em; }
.trustbar .lab { display: block; margin-top: 0.5rem; font-size: 0.78rem; color: var(--muted-dark); letter-spacing: 0.04em; }
.logos-note { text-align:center; padding: 1rem 0 0; color: var(--muted-dark); font-size: 0.8rem; font-family: var(--mono); }

/* ============================================================
   課題共感
   ============================================================ */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pain {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem; box-shadow: var(--shadow); position: relative;
}
.section--alt .pain { background: #fff; }
.pain .q { font-family: var(--mono); color: var(--accent-ink); font-weight: 700; font-size: 0.85rem; }
.pain h3 { font-size: 1.08rem; margin: 0.5rem 0 0.4rem; }
.pain p { font-size: 0.95rem; color: var(--body); }

/* ============================================================
   Before → After（提供価値）
   ============================================================ */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: stretch; }
.ba__col { border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); }
.ba__before { background: var(--bg-alt); }
.ba__after { background: #06131a; color: var(--fg-dark); border-color: rgba(0,229,255,0.3); }
.ba__after h3, .ba__after .tag { color: #fff; }
.ba .tag { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.ba__after .tag { color: var(--cyan); }
.ba ul { list-style: none; margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.65rem; }
.ba li { font-size: 0.96rem; padding-left: 1.5rem; position: relative; }
.ba__before li::before { content: "×"; position: absolute; left: 0; color: #c0563e; font-weight: 700; }
.ba__after li { color: var(--fg-dark); }
.ba__after li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.ba__arrow { display: flex; align-items: center; justify-content: center; color: var(--accent-ink); font-size: 2rem; }

/* ============================================================
   取扱サービス
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .2s, border-color .2s;
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(0,229,255,0.5); }
.svc__no { font-family: var(--mono); color: var(--accent-ink); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; }
.svc h3 { font-size: 1.16rem; margin: 0.55rem 0 0.6rem; }
.svc p { font-size: 0.95rem; color: var(--body); }
.svc__meta { margin-top: 1rem; border-top: 1px dashed var(--line); padding-top: 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; }
.svc__meta div { display: flex; gap: 0.6rem; font-size: 0.86rem; }
.svc__meta dt { font-family: var(--mono); color: var(--muted); min-width: 4em; flex-shrink: 0; white-space: nowrap; font-size: 0.78rem; padding-top: 0.15rem; }
.svc__meta dd { color: var(--ink); font-weight: 600; }
.svc__meta .price { color: var(--accent-ink); font-family: var(--mono); font-weight: 700; }
.svc__more { margin-top: 1rem; font-family: var(--mono); font-size: 0.82rem; font-weight: 700; }
.svc--soon { border-style: dashed; box-shadow: none; background: var(--bg-alt); justify-content: center; align-items: center; text-align: center; color: var(--muted); }
.svc--soon .badge { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.15em; border: 1px solid var(--line-2); color: var(--muted); padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 0.6rem; }

/* ============================================================
   導入事例 / 実績
   ============================================================ */
.logostrip { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }
.logostrip .ph {
  flex: 1 1 140px; min-height: 64px; border: 1px dashed var(--line-2); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  font-family: var(--mono); font-size: 0.78rem; background: var(--bg-alt);
}
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.case__img { aspect-ratio: 16/9; background: linear-gradient(135deg, #0f1622, #1a2536); position: relative; display:flex; align-items:center; justify-content:center; }
.case__img .ph { color: var(--muted-dark); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; }
.case__img .tag { position: absolute; top: 10px; left: 10px; background: var(--cyan); color: var(--cyan-deep); font-family: var(--mono); font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 4px; }
.case__body { padding: 1.3rem 1.4rem 1.5rem; }
.case__client { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.case h3 { font-size: 1.05rem; margin: 0.35rem 0 0.7rem; }
.case dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.7rem; font-size: 0.88rem; }
.case dt { font-family: var(--mono); font-size: 0.72rem; color: var(--accent-ink); font-weight: 700; padding-top: 0.15rem; }
.case dd { color: var(--body); }
.case dd b { color: var(--ink); }

/* ============================================================
   選ばれる理由
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.why { padding: 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.section--alt .why { background: #fff; }
.why .ic { width: 44px; height: 44px; border-radius: 10px; background: #06131a; color: var(--cyan); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; margin-bottom: 0.9rem; }
.why h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.why p { font-size: 0.95rem; color: var(--body); }

/* ============================================================
   代表 / 会社概要
   ============================================================ */
.founder { display: grid; grid-template-columns: 260px 1fr; gap: 2.4rem; align-items: start; }
.founder__photo { aspect-ratio: 3/4; border-radius: var(--radius); background: linear-gradient(135deg,#0f1622,#1c2740); display: flex; align-items: center; justify-content: center; color: var(--muted-dark); font-family: var(--mono); font-size: 0.8rem; text-align:center; border: 1px solid var(--line); position: relative; }
.founder__photo::after { content:""; position:absolute; inset:10px; border:1px solid rgba(0,229,255,0.25); border-radius:8px; }
.founder__role { font-family: var(--mono); color: var(--accent-ink); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; }
.founder h3 { font-size: 1.5rem; margin: 0.3rem 0 0.9rem; }
.founder p { color: var(--body); }
.company-table { width: 100%; border-collapse: collapse; margin-top: 2.5rem; }
.company-table th, .company-table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.company-table th { font-family: var(--mono); color: var(--muted); font-weight: 600; width: 30%; font-size: 0.85rem; }
.company-table td { color: var(--ink); }

/* ============================================================
   料金 / 進め方
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 3rem; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; background: #fff; box-shadow: var(--shadow); }
.plan--feature { border-color: var(--ink); box-shadow: var(--shadow-lg); position: relative; }
.plan--feature::before { content: "人気"; position: absolute; top: -12px; left: 1.6rem; background: var(--cyan); color: var(--cyan-deep); font-family: var(--mono); font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px; }
.plan__name { font-family: var(--mono); color: var(--accent-ink); font-weight: 700; letter-spacing: 0.1em; }
.plan__price { font-size: 1.9rem; font-weight: 700; color: var(--ink); margin: 0.6rem 0 0.2rem; font-family: var(--mono); }
.plan__price small { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.plan__note { font-size: 0.85rem; color: var(--muted); }
.plan ul { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.plan li { padding-left: 1.5rem; position: relative; font-size: 0.92rem; color: var(--body); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.3rem 1.1rem; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.step .n { font-family: var(--mono); font-weight: 700; color: var(--cyan); background: #06131a; width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; margin-bottom: 0.8rem; }
.step h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.86rem; color: var(--body); }
.step .meta { display: block; margin-top: 0.5rem; font-family: var(--mono); font-size: 0.72rem; color: var(--accent-ink); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 1.8rem; position: relative; list-style: none; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--mono); color: var(--accent-ink); position: absolute; left: 0; }
.faq summary::after { content: "+"; position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 1.8rem 1.3rem; color: var(--body); font-size: 0.96rem; }

/* ============================================================
   最終CTA + フォーム（ダーク）
   ============================================================ */
.cta { background: var(--dark); color: var(--fg-dark); position: relative; overflow: hidden; }
.cta::before { content:""; position:absolute; inset:0; background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,229,255,0.03) 3px, rgba(0,229,255,0.03) 4px); pointer-events:none; }
.cta .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.cta__lead { margin-top: 1rem; color: var(--fg-dark); font-size: 1.05rem; }
.cta__alt { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.8rem; }
.cta__alt a { color: #fff; display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--mono); font-size: 0.95rem; }
.cta__alt .k { color: var(--cyan); }
.cta__micro { margin-top: 1.4rem; font-size: 0.82rem; color: var(--muted-dark); font-family: var(--mono); }

.form { background: var(--dark-2); border: 1px solid rgba(0,229,255,0.2); border-radius: var(--radius); padding: 1.8rem; }
.form .field { margin-bottom: 1rem; }
.form label { display: block; font-size: 0.88rem; color: var(--fg-dark); margin-bottom: 0.4rem; font-weight: 600; }
.form label .req { color: var(--cyan); font-family: var(--mono); font-size: 0.75rem; margin-left: 0.35rem; }
.form input, .form textarea {
  width: 100%; font-size: 16px; font-family: var(--sans); color: #fff;
  background: rgba(255,255,255,0.05); border: 1.5px solid var(--line-2); border-radius: 8px;
  padding: 0.75rem 0.85rem; min-height: 48px;
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }
.form input::placeholder, .form textarea::placeholder { color: #7f8b99; }
.form .btn { width: 100%; margin-top: 0.4rem; }
.form__note { margin-top: 0.9rem; font-size: 0.78rem; color: var(--muted-dark); text-align: center; }
.form__ok { display: none; background: rgba(0,229,255,0.08); border: 1px solid var(--cyan); border-radius: 8px; padding: 1rem; color: var(--fg-dark); font-size: 0.92rem; margin-bottom: 1rem; }

/* ============================================================
   フッター
   ============================================================ */
.footer { background: #060910; color: var(--muted-dark); padding: 3rem 0 2.4rem; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer .logo { color: #fff; }
.footer p { font-size: 0.86rem; margin-top: 0.8rem; }
.footer h5 { color: #fff; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 0.9rem; text-transform: uppercase; }
.footer a { color: var(--muted-dark); display: block; font-size: 0.9rem; padding: 0.28rem 0; }
.footer a:hover { color: var(--cyan); text-decoration: none; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 2.4rem; padding-top: 1.4rem; font-size: 0.8rem; font-family: var(--mono); }

/* ---------- スクロール・リビール（JS有効時のみ隠す＝no-JSでも表示される） ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* 固定の下部CTAバー（モバイル） */
.mobilebar { display: none; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 960px) {
  .cta .wrap { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 200px 1fr; gap: 1.6rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trustbar .wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .nav { position: fixed; inset: 68px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 24px 1.2rem;
    transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .nav.open { transform: none; }
  .nav a.navlink { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 0.8rem; }
  .nav-toggle { display: inline-flex; }
  .pain-grid, .svc-grid, .case-grid, .why-grid, .price-grid { grid-template-columns: 1fr; }
  .ba { grid-template-columns: 1fr; }
  .ba__arrow { transform: rotate(90deg); }
  .founder { grid-template-columns: 1fr; }
  .founder__photo { max-width: 240px; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  /* モバイルのヒーローは縦グラデ(上=文字を守る暗さ / 下=3D都市を見せる) */
  .hero::after {
    background:
      linear-gradient(180deg, rgba(10,15,23,0.9) 0%, rgba(10,15,23,0.48) 55%, rgba(10,15,23,0.12) 100%),
      repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,229,255,0.025) 3px, rgba(0,229,255,0.025) 4px);
  }
  /* モバイル固定CTAバー */
  .mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: rgba(10,15,23,0.96); backdrop-filter: blur(8px); padding: 0.6rem 0.8rem;
    gap: 0.6rem; border-top: 1px solid rgba(0,229,255,0.25); padding-bottom: max(0.6rem, env(safe-area-inset-bottom)); }
  .mobilebar .btn { flex: 1; min-height: 48px; font-size: 0.92rem; }
  .mobilebar .btn-tel { flex: 0 0 auto; }
  body { padding-bottom: 68px; }
}
@media (max-width: 480px) {
  .footer .wrap { grid-template-columns: 1fr; }
  .trustbar .wrap { grid-template-columns: 1fr 1fr; }
}
/* ---- カスタムカーソル + マグネティック（cursor.js / PC精密ポインタ限定） ---- */
.has-cursor .cur-dot, .has-cursor .cur-ring { opacity: 1; }
.cur-dot, .cur-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  border-radius: 50%; opacity: 0; transition: opacity 0.3s;
  margin: -4px 0 0 -4px;
}
.cur-dot { width: 8px; height: 8px; background: var(--cyan); mix-blend-mode: difference; }
.cur-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1.5px solid rgba(0,229,255,0.65); mix-blend-mode: difference;
  transition: opacity 0.3s, width 0.25s, height 0.25s, margin 0.25s, border-color 0.25s;
}
.cursor-hot .cur-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--cyan); }
.btn { will-change: transform; }

/* ---- フィルムグレイン（ダーク面のみ・物理的な質感） ---- */
.hero::before, .cta::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  .cur-dot, .cur-ring { display: none; }
}

/* 小型スマホ(〜360px): ボタン折返し許可・見出しの nowrap 解除であふれ防止 */
@media (max-width: 360px) {
  .btn { white-space: normal; text-align: center; }
  h2 .nw { white-space: normal; }
  .mobilebar .btn { font-size: 0.85rem; padding-left: 0.8rem; padding-right: 0.8rem; }
  .eyebrow { flex-wrap: wrap; font-size: 0.7rem; }
}
