/* ============================================================
   CCC v3 — AURORA × 誠実
   世界観: 漆黒＋オーロラグラデーション（C案）
   言葉:   明朝体・縦書き・誠実な日本語（A案）
   ============================================================ */

:root {
  --bg: #05070f;
  --bg-2: #0a0e1d;
  --ink: #eef1fb;
  --sub: #a8b1d4;
  --dim: #6d77a3;
  --line: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-line: rgba(255, 255, 255, 0.13);
  --blue: #3f8dff;
  --violet: #5b7cfa;
  --magenta: #38e8ff;
  --gold: #c9a86a;
  --grad: linear-gradient(92deg, #8fd0ff 0%, #9db4ff 48%, #7ee7ff 100%);
  --mincho: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  --gothic: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --mono: Consolas, ui-monospace, "SFMono-Regular", monospace;
  --mx: 50vw;
  --my: 30vh;
  --px: 0; /* pointer -1..1 */
  --py: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--gothic);
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(80, 140, 255, 0.5); }

/* ---------- 背景: 深い夜空 + オーロラ + ポインタ追従光 ---------- */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 85% at 78% -12%, #14295c 0%, transparent 55%),
    radial-gradient(90% 70% at -8% 28%, #0a3046 0%, transparent 55%),
    radial-gradient(70% 60% at 55% 115%, #0b2140 0%, transparent 60%),
    linear-gradient(180deg, #070d1c 0%, #091224 55%, #060c1a 100%);
}
.sky i {
  position: absolute; border-radius: 50%; filter: blur(80px);
  will-change: transform;
}
.sky .a1 {
  width: 55vw; height: 55vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.6), transparent 70%);
  top: -22vw; left: -12vw;
  translate: calc(var(--px) * 34px) calc(var(--py) * 24px);
  animation: drift1 16s ease-in-out infinite;
}
.sky .a2 {
  width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.42), transparent 70%);
  top: -12vw; right: -14vw;
  translate: calc(var(--px) * -46px) calc(var(--py) * 30px);
  animation: drift2 21s ease-in-out infinite;
}
.sky .a3 {
  width: 36vw; height: 36vw; max-width: 500px; max-height: 500px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.2), transparent 70%);
  top: 46vh; left: 34vw;
  translate: calc(var(--px) * 60px) calc(var(--py) * -40px);
  animation: drift3 26s ease-in-out infinite;
}
.sky::before {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px);
  width: 40vw; height: 40vw; max-width: 560px; max-height: 560px;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.16), transparent 70%);
  bottom: -18vw; left: -10vw;
  animation: drift2 30s ease-in-out infinite reverse;
}
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(46px, 34px) scale(1.14); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1.05); } 50% { transform: translate(-40px, 48px) scale(0.94); } }
@keyframes drift3 { 0%, 100% { transform: translate(0, 0) scale(1); } 40% { transform: translate(52px, -38px) scale(1.18); } 75% { transform: translate(-30px, 16px) scale(1.04); } }
/* 粒子ノイズ + ビネット */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 8%, transparent 62%, rgba(0, 0, 6, 0.42) 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; 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)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.sky::after {
  /* 星の粒 */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.7), transparent 100%),
    radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,.5), transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 38%, rgba(255,255,255,.4), transparent 100%),
    radial-gradient(1px 1px at 32% 64%, rgba(255,255,255,.45), transparent 100%),
    radial-gradient(1px 1px at 88% 52%, rgba(255,255,255,.4), transparent 100%),
    radial-gradient(1.5px 1.5px at 8% 86%, rgba(255,255,255,.3), transparent 100%),
    radial-gradient(1px 1px at 66% 82%, rgba(255,255,255,.35), transparent 100%);
  opacity: .5;
}
.pointer-glow {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(620px circle at var(--mx) var(--my),
    rgba(110, 160, 255, 0.13), rgba(56, 210, 255, 0.05) 45%, transparent 68%);
}

/* ---------- スクロールプログレス ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--grad); z-index: 60;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 18px clamp(20px, 4vw, 44px);
  transition: background .4s ease, border-color .4s ease, padding .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 9, 19, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  width: 96px; filter: invert(1) drop-shadow(0 0 12px rgba(120, 165, 255, 0.75));
  transition: filter .4s ease;
}
.brand:hover img { filter: invert(1) drop-shadow(0 0 20px rgba(150, 200, 255, 1)); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 13px; color: var(--sub); letter-spacing: .06em; }
.nav a { position: relative; padding: 4px 0; transition: color .3s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--grad); transition: width .35s ease;
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }
.header-cta {
  font-size: 12.5px; letter-spacing: .12em; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 99px;
  padding: 9px 26px; background: rgba(255, 255, 255, 0.06);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.header-cta:hover {
  background: rgba(80, 140, 255, 0.25); border-color: rgba(150, 200, 255, 0.7);
  box-shadow: 0 0 24px -6px rgba(80, 140, 255, 0.8);
}

/* ---------- 共通レイアウト ---------- */
main { position: relative; z-index: 2; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px); }
.section { padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(80px, 12vh, 140px); position: relative; }
.kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .42em;
  color: #8fa0e8; text-transform: uppercase; margin: 0 0 18px;
}
.sec-title {
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(26px, 4.4vw, 44px); line-height: 1.6; letter-spacing: .04em;
  margin: 0 0 18px; color: #fff; text-wrap: balance;
  display: inline-block;
  border-bottom: 1px solid rgba(201, 168, 106, 0.55);
  padding-bottom: 12px;
}
.sec-title em { font-style: normal; color: #fff; }
.section .sec-title, .build-head .sec-title, .cta-final .sec-title { margin-bottom: 10px; }
.sec-lead { color: var(--sub); font-size: 14.5px; max-width: 42em; margin: 0 0 44px; }
.sec-lead.lead-wide { max-width: none; }
@media (min-width: 720px) { .sec-lead.lead-nowrap { white-space: nowrap; max-width: none; } }

/* 縦書きアクセント（A案の魂） */
.tate {
  writing-mode: vertical-rl; font-family: var(--mincho);
  font-size: 15px; letter-spacing: .52em; color: var(--gold);
  opacity: .9;
}

/* 出現アニメーション */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .12s; }
.rv-d2 { transition-delay: .24s; }
.rv-d3 { transition-delay: .36s; }

/* 組み上がる出現演出: バラバラなパネルが降りてきて、そろう */
.assemble {
  opacity: 0;
  transform: translateY(-70px) rotate(-6deg) scale(.92);
  transition: opacity .8s ease, transform 1s cubic-bezier(.16, 1.3, .3, 1);
  will-change: transform, opacity;
}
.assemble:nth-child(3n + 2) { transform: translateY(-70px) rotate(5deg) scale(.92); }
.assemble:nth-child(3n) { transform: translateY(-56px) rotate(7deg) scale(.9); }
.assemble.in { opacity: 1; transform: none; }

/* ---------- ヒーロー ---------- */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 60px; position: relative;
}
.hero-grid { display: flex; gap: clamp(24px, 4vw, 56px); align-items: center; width: 100%; }
.hero-main { flex: 1 1 auto; min-width: 0; }
.hero h1 {
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(29px, 5vw, 42px); line-height: 1.6; letter-spacing: .03em;
  margin: 0 0 24px; color: #fff;
}
.keep-line { white-space: nowrap; }
.hero h1 .grad-line {
  color: #fff;
  border-bottom: 2px solid rgba(201, 168, 106, 0.65);
  padding-bottom: 3px;
  text-shadow: 0 0 34px rgba(80, 140, 255, 0.45);
}
.hero-lead { color: var(--sub); font-size: clamp(14px, 1.6vw, 16px); max-width: 36em; margin: 0 0 40px; }
.hero-entity { max-width: 42em; margin: -24px 0 30px; color: #c6d1eb; font-size: 12px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .08em;
  color: #fff; padding: 16px 42px; border-radius: 99px;
  background: linear-gradient(92deg, var(--blue), var(--violet));
  box-shadow: 0 0 34px -8px rgba(70, 140, 255, 0.9);
  transition: transform .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.btn-primary:hover { box-shadow: 0 0 48px -6px rgba(90, 170, 255, 1); }
.btn-ghost {
  display: inline-block; font-size: 13.5px; letter-spacing: .08em; color: #dfe5ff;
  padding: 15px 36px; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.04);
  transition: background .3s, border-color .3s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }
.hero-visual .tate {
  border-left: 1px solid var(--line); padding-left: clamp(14px, 2vw, 24px);
  flex: 0 0 auto; align-self: stretch; white-space: nowrap;
}
.hero-note { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: #c7cfee; letter-spacing: .02em; }
.hero-note span::before { content: "— "; color: var(--gold); }
/* ---------- ヒーロー: AI相談ライブデモ（チャット風） ---------- */
.hero-visual {
  flex: 0 1 520px; min-width: 320px; align-self: center;
  display: flex; align-items: center;
}
.hero-demo {
  flex: 1 1 auto; min-width: 0;
  border: 1px solid rgba(130, 180, 255, 0.4); border-radius: 22px;
  background: rgba(13, 22, 44, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px -24px rgba(50, 120, 255, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  padding: 26px 28px 28px;
}
.hero-demo .hd-label {
  display: flex; align-items: center; gap: 11px;
  font-size: 13px; letter-spacing: .18em; color: #9fc2ff;
  margin-bottom: 20px; font-weight: 700;
}
.hero-demo .hd-label::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: #58ffa4; box-shadow: 0 0 12px rgba(88, 255, 164, 0.9);
  animation: hdPulse 1.8s ease-in-out infinite;
}
@keyframes hdPulse { 50% { opacity: .4; } }
.hd-row { display: flex; gap: 12px; align-items: flex-start; }
.hd-row + .hd-row { margin-top: 16px; }
.hd-who {
  flex: 0 0 auto; font-size: 11.5px; letter-spacing: .08em; font-weight: 700;
  border-radius: 99px; padding: 4px 14px; margin-top: 7px;
}
.hd-row.user .hd-who { background: rgba(120, 170, 255, 0.18); color: #b9d4ff; border: 1px solid rgba(130, 180, 255, 0.4); }
.hd-row.ai .hd-who { background: rgba(201, 168, 106, 0.14); color: #e8cf9e; border: 1px solid rgba(201, 168, 106, 0.5); }
.hd-bubble {
  border-radius: 4px 16px 16px 16px; padding: 14px 18px;
  background: rgba(255, 255, 255, 0.07); flex: 1 1 auto; min-width: 0;
}
.hd-row.ai .hd-bubble { background: rgba(201, 168, 106, 0.09); }
.hero-demo .hd-q { margin: 0; font-size: 16.5px; color: #edf2ff; min-height: 3.6em; line-height: 1.8; }
.hero-demo .hd-cursor {
  display: inline-block; width: 2px; height: 18px; background: #8fd0ff;
  vertical-align: -3px; margin-left: 2px;
  animation: hdBlink 1s steps(1) infinite;
}
@keyframes hdBlink { 50% { opacity: 0; } }
.hd-row.ai { opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; }
.hero-demo .hd-a { margin: 0; font-size: 15px; color: #d6dcf5; min-height: 3.4em; line-height: 1.8; }
.hero-demo .hd-a b { color: var(--gold); font-family: var(--mincho); font-weight: 600; font-size: 17px; }
.hero-demo.replied .hd-row.ai { opacity: 1; transform: none; }
.hd-foot {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.hd-foot-label { font-size: 12px; color: var(--dim); margin-right: 4px; }
.hd-chip {
  font-family: inherit; font-size: 12.5px; color: #cdd6f5; letter-spacing: .04em;
  border-radius: 99px; padding: 6px 15px; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .15s ease;
}
.hd-chip:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(150, 190, 255, 0.5); color: #fff; }
.hd-chip:active { transform: scale(0.96); }
.hd-chip.on {
  background: linear-gradient(92deg, rgba(80, 140, 255, 0.35), rgba(56, 210, 255, 0.28));
  border-color: rgba(150, 200, 255, 0.7); color: #fff;
  box-shadow: 0 0 18px -4px rgba(90, 170, 255, 0.8);
}
.hd-chip.more { color: var(--gold); border-color: rgba(201, 168, 106, 0.4); background: rgba(201, 168, 106, 0.08); }
.hd-chip.more:hover { background: rgba(201, 168, 106, 0.18); color: #f0dcae; }
.hd-chip.more.on { color: #fff; }

/* ---------- ヒーロー: 60秒業務改善診断 ---------- */
.hero-diagnosis {
  flex: 1 1 auto; min-width: 0; width: 100%;
  /* 最も高さのある設問（選択肢6件）に合わせる */
  height: 560px;
  border: 1px solid rgba(130, 180, 255, 0.48); border-radius: 22px;
  background: rgba(13, 22, 44, 0.9);
  box-shadow: 0 30px 80px -24px rgba(50, 120, 255, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  padding: 22px;
}
.hero-diagnosis > #heroDiagnosisApp { height:100%; }
.hero-diagnosis .diag-live { display:flex; align-items:center; gap:10px; margin-bottom:17px; color:#9fc2ff; font-size:11px; font-weight:700; letter-spacing:.15em; }
.hero-diagnosis .diag-live::before { content:""; width:8px; height:8px; flex:0 0 auto; border-radius:50%; background:#58ffa4; box-shadow:0 0 12px rgba(88,255,164,.9); }
.hero-diagnosis .diag-progress-row { display:flex; align-items:center; gap:12px; margin-bottom:19px; }
.hero-diagnosis .diag-progress { flex:1; height:2px; background:rgba(181,210,255,.15); }
.hero-diagnosis .diag-progress span { display:block; height:100%; background:linear-gradient(90deg,#508cff,#75deff); box-shadow:0 0 10px rgba(91,180,255,.7); transition:width .2s ease; }
.hero-diagnosis .diag-count { color:#9fc2ff; font:10px var(--mono); letter-spacing:.1em; }
.hero-diagnosis .diag-kicker { margin:0 0 7px; color:#d8b774; font:10px var(--mono); letter-spacing:.15em; }
.hero-diagnosis .diag-question { margin:0; color:#f2f6ff; font-size:20px; line-height:1.55; letter-spacing:.02em; }
.hero-diagnosis .diag-helper { margin:7px 0 0; color:#b7c4dd; font-size:12px; line-height:1.65; }
.hero-diagnosis .diag-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:18px; }
.hero-diagnosis .diag-option { appearance:none; min-height:64px; padding:10px 11px; border:1px solid rgba(142,177,239,.25); border-radius:11px; background:rgba(36,50,84,.64); color:#edf3ff; text-align:left; cursor:pointer; transition:border-color .2s ease,background .2s ease,transform .2s ease; }
.hero-diagnosis .diag-option:hover, .hero-diagnosis .diag-option:focus-visible, .hero-diagnosis .diag-option.is-selected { border-color:rgba(145,190,255,.88); background:linear-gradient(110deg,rgba(68,112,204,.52),rgba(59,107,181,.27)); outline:0; }
.hero-diagnosis .diag-option:active { transform:scale(.985); }
.hero-diagnosis .diag-option b { display:block; font-size:12px; line-height:1.45; }
.hero-diagnosis .diag-option small { display:block; margin-top:3px; color:#adc0e4; font-size:10.5px; line-height:1.45; }
.hero-diagnosis .diag-consult { width:100%; min-height:52px; margin-top:14px; padding:10px 12px; border:1px solid rgba(148,193,255,.85); border-radius:12px; background:linear-gradient(100deg,#4776dd,#65bfe9); color:#fff; font-weight:700; line-height:1.35; cursor:pointer; }
.hero-diagnosis .diag-return { display:block; margin:15px auto 0; padding:0; border:0; border-bottom:1px solid rgba(188,207,245,.52); background:transparent; color:#c5d1e8; font-size:11px; cursor:pointer; }
.hero-diagnosis .diag-result { height:calc(100% - 38px); display:flex; flex-direction:column; }
.hero-diagnosis .diag-result h3 { margin:0; color:#f4f7ff; font-size:21px; line-height:1.5; }
.hero-diagnosis .diag-result > p { margin:8px 0 0; color:#c2cee4; font-size:12.5px; line-height:1.75; }
.hero-diagnosis .diag-code { margin-top:15px; padding:12px; border:1px solid rgba(127,182,255,.38); border-radius:11px; background:rgba(49,109,197,.1); }
.hero-diagnosis .diag-code span, .hero-diagnosis .diag-code small { display:block; color:#9fc2ff; font:9px var(--mono); letter-spacing:.12em; }
.hero-diagnosis .diag-code strong { display:block; margin:5px 0; color:#fff; font:700 16px var(--mono); letter-spacing:.06em; }
.hero-diagnosis .diag-code small { color:#b9c8e6; font-family:inherit; letter-spacing:0; }
.hero-diagnosis .diag-restart { display:block; margin:auto auto 0; padding:0; border:0; border-bottom:1px solid rgba(200,215,246,.5); background:transparent; color:#c2cee4; font-size:11px; cursor:pointer; }

/* ---------- キーワード帯（静） ---------- */
.keyword-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative; z-index: 2;
  background: rgba(255, 255, 255, 0.015);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px clamp(20px, 4vw, 48px);
  padding: 22px clamp(20px, 4vw, 44px);
}
.keyword-strip span {
  font-family: var(--mincho); font-size: 14.5px; letter-spacing: .26em;
  color: #becbe8; white-space: nowrap;
}
.keyword-strip i {
  width: 1px; height: 15px; background: rgba(201, 168, 106, 0.5);
}

/* ---------- 驚きセクション「こんなこともできるの？」 ---------- */
.surprise {
  position: relative; overflow: hidden;
  padding: clamp(90px, 15vh, 170px) 0;
}
.surprise .wrap { position: relative; z-index: 2; text-align: center; }
.surprise-title {
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(30px, 6vw, 62px); line-height: 1.45; letter-spacing: .03em;
  color: #fff; margin: 10px 0 0; text-wrap: balance;
}
.surprise-title em { font-style: normal; color: #fff; }
.surprise-title.oneline {
  white-space: nowrap; font-size: clamp(15px, 5.4vw, 62px);
}
.surprise-lead {
  margin: 22px auto 0; max-width: 34em;
  font-size: 14.5px; color: var(--sub); line-height: 1.9;
}
.surprise-stage {
  margin: clamp(30px, 5vh, 56px) auto 0; max-width: 900px;
  height: clamp(120px, 20vh, 170px); position: relative;
}
.surprise-line {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transform: translateY(24px) scale(.97);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}
.surprise-line.active { opacity: 1; transform: none; }
.surprise-line .sl-from {
  font-size: clamp(15px, 2.4vw, 22px); color: var(--sub); letter-spacing: .04em;
}
.surprise-line .sl-to {
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(24px, 4.6vw, 46px); letter-spacing: .04em; line-height: 1.5;
  color: #fff; text-wrap: balance;
}
.surprise-line .sl-to b {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 600;
}
.surprise-line .sl-arrow {
  font-family: var(--mono); font-size: 14px; color: var(--gold);
  letter-spacing: .3em; opacity: .8;
}
.surprise-dots { display: flex; gap: 8px; justify-content: center; margin-top: clamp(28px, 4vh, 44px); }
.surprise-dots button {
  width: 8px; height: 8px; border-radius: 50%; padding: 0;
  border: none; background: rgba(255, 255, 255, 0.2); cursor: pointer;
  transition: background .3s, width .3s, border-radius .3s;
}
.surprise-dots button.on { width: 26px; border-radius: 4px; background: var(--grad); }
.surprise-note {
  margin: clamp(34px, 5vh, 52px) auto 0; max-width: 40em;
  font-size: 14px; color: var(--sub); line-height: 2;
}
.surprise-note b { color: var(--gold); font-family: var(--mincho); font-weight: 600; }

/* ---------- 相談例: フリップカード ---------- */
.flip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.flip { perspective: 1200px; min-height: 244px; }
.flip-inner {
  position: relative; width: 100%; height: 100%; min-height: 244px;
  transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, .7, .3, 1);
}
.flip.flipped .flip-inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  .flip { cursor: pointer; }
  .flip:hover .flip-inner { transform: rotateY(180deg); }
}
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 18px; padding: 26px 24px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 8px;
}
.flip-front {
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.flip-front small { font-family: var(--mono); font-size: 11.5px; letter-spacing: .3em; color: var(--dim); text-transform: uppercase; }
.flip-front b { font-family: var(--mincho); font-size: 23px; font-weight: 600; color: #fff; letter-spacing: .04em; }
.flip-front p { margin: 0; font-size: 14.5px; color: var(--sub); }
.flip-front::after {
  content: "⟳"; position: absolute; right: 20px; bottom: 16px;
  color: var(--gold); font-size: 16px; opacity: .7;
}
.flip-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.16), rgba(80, 140, 255, 0.16) 55%, rgba(56, 210, 255, 0.12));
  border: 1px solid rgba(140, 175, 255, 0.4);
  box-shadow: 0 0 40px -14px rgba(80, 140, 255, 0.7) inset;
}
.flip-back small { font-family: var(--mono); font-size: 11.5px; letter-spacing: .3em; color: #b9c5ff; text-transform: uppercase; }
.flip-back b { font-family: var(--mincho); font-size: 22px; font-weight: 600; color: #fff; letter-spacing: .04em; }
.flip-back p { margin: 0; font-size: 14px; color: #cfd6f5; }

/* ---------- 組み上がるショー（自動再生） ---------- */
.build-stage { position: relative; padding: clamp(80px, 12vh, 140px) 0; }
.build-sticky { display: flex; flex-direction: column; justify-content: center; }
.build-head { text-align: center; margin-bottom: 40px; }
.build-head .sec-title { margin-bottom: 8px; }
.build-caption {
  font-size: 13.5px; color: var(--sub); min-height: 1.9em; margin: 0;
  transition: opacity .4s ease;
}
.build-caption b { color: var(--gold); font-family: var(--mincho); font-weight: 600; }
.build-caption .bc-step {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--gold);
  border: 1px solid rgba(201, 168, 106, 0.4); border-radius: 99px;
  padding: 2px 9px; margin-right: 9px;
}
.build-body {
  display: flex; gap: clamp(16px, 3vw, 40px); align-items: stretch; justify-content: center;
  padding: 0 clamp(16px, 4vw, 44px);
}
.term-panel {
  flex: 0 1 320px; min-width: 0; align-self: center;
  font-family: var(--mono); font-size: 12px; line-height: 2.1;
  border: 1px solid rgba(160, 170, 255, 0.25); border-radius: 12px;
  background: rgba(8, 12, 26, 0.8); backdrop-filter: blur(6px);
  padding: 18px 20px; color: #9fb0e8;
}
.term-panel .tl { opacity: .18; transition: opacity .5s ease, color .5s ease; display: block; }
.term-panel .tl.on { opacity: 1; }
.term-panel .tl.on .ok { color: #7dffb8; }
.term-panel .tl .ok { color: transparent; }
.term-panel .prompt { color: #c0b1ff; }
.app-mock {
  flex: 0 1 620px; min-width: 0; height: min(58vh, 460px);
  border-radius: 16px; border: 1px solid var(--glass-line);
  background: rgba(10, 14, 29, 0.85); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  position: relative;
}
.app-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 16px;
  border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.app-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.app-bar span { font-family: var(--mono); font-size: 10.5px; color: var(--dim); margin-left: 8px; letter-spacing: .1em; }
.app-canvas { flex: 1; display: flex; min-height: 0; }
.app-side { flex: 0 0 130px; border-right: 1px solid var(--line); padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.app-side i {
  height: 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.09);
  opacity: 0; transform: translateX(-14px); transition: opacity .5s ease, transform .5s ease, background .5s ease;
}
.app-main { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.app-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.app-card {
  height: 64px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, 0.18);
  background: transparent;
  opacity: 0; transform: translateY(16px) scale(.96);
  transition: opacity .5s ease, transform .5s ease, background .6s ease, border .6s ease;
  position: relative; overflow: hidden; padding: 10px 12px;
}
.app-card b { display: block; font-size: 10px; line-height: 1.3; color: var(--dim); font-family: var(--mono); letter-spacing: .12em; opacity: 0; transition: opacity .5s ease .1s; }
.app-card span { display: block; font-size: 16px; line-height: 1.3; margin-top: 4px; color: #fff; font-weight: 700; opacity: 0; transition: opacity .5s ease .2s; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-chart {
  flex: 1; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, 0.18);
  display: flex; align-items: flex-end; gap: 8px; padding: 14px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease, border .6s ease, background .6s ease;
  min-height: 90px;
}
.app-chart i {
  flex: 1; border-radius: 4px 4px 0 0; height: 8%;
  background: linear-gradient(180deg, rgba(140, 175, 255, 0.9), rgba(79, 140, 255, 0.35));
  transition: height 1s cubic-bezier(.2, .7, .2, 1);
}
.app-rows { display: flex; flex-direction: column; gap: 8px; }
.app-rows i {
  height: 11px; border-radius: 4px; background: rgba(255, 255, 255, 0.07);
  opacity: 0; transform: translateX(12px); transition: opacity .5s ease, transform .5s ease;
}
/* stage classes toggled by JS: .s1 .s2 .s3 .s4 */
.build-sticky.s1 .app-side i { opacity: 1; transform: none; }
.build-sticky.s2 .app-card { opacity: 1; transform: none; }
.build-sticky.s3 .app-card { border-style: solid; border-color: rgba(140, 175, 255, 0.4); background: rgba(80, 140, 255, 0.08); }
.build-sticky.s3 .app-card b, .build-sticky.s3 .app-card span { opacity: 1; }
.build-sticky.s3 .app-chart { opacity: 1; transform: none; border-style: solid; border-color: rgba(140, 175, 255, 0.35); background: rgba(255, 255, 255, 0.02); }
.build-sticky.s3 .app-rows i { opacity: 1; transform: none; }
.build-sticky.s4 .app-side i { background: rgba(160, 170, 255, 0.28); }
.app-done {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(80, 140, 255, 0.22), rgba(5, 7, 15, 0.55) 75%);
  opacity: 0; transition: opacity .7s ease; pointer-events: none;
  backdrop-filter: blur(2px);
}
.app-done p {
  font-family: var(--mincho); font-size: clamp(19px, 2.6vw, 27px); color: #fff;
  letter-spacing: .08em; text-align: center; line-height: 2; margin: 0;
  text-shadow: 0 0 30px rgba(80, 140, 255, 0.9);
}
.app-done p b { color: var(--gold); font-weight: 600; }
.build-sticky.s4 .app-done { opacity: 1; }

/* ---------- 実績 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.work-card {
  display: block; border-radius: 18px; padding: 28px 26px; min-height: 210px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .35s ease, box-shadow .35s ease, transform .2s ease;
  transform-style: preserve-3d; will-change: transform;
  position: relative; overflow: hidden;
}
.work-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--cx, 50%) var(--cy, 50%), rgba(80, 140, 255, 0.16), transparent 65%);
  opacity: 0; transition: opacity .35s ease;
}
.work-card:hover { border-color: rgba(140, 190, 255, 0.5); box-shadow: 0 20px 60px -24px rgba(60, 120, 255, 0.5); }
.work-card:hover::before { opacity: 1; }
.work-card small { font-family: var(--mono); font-size: 10px; letter-spacing: .3em; color: #8fa0e8; text-transform: uppercase; }
.work-card h3 { font-family: var(--mincho); font-size: 21px; font-weight: 600; letter-spacing: .04em; margin: 12px 0 8px; color: #fff; }
.work-card p { margin: 0 0 16px; font-size: 12.5px; color: var(--sub); }
.work-card .more { font-size: 12px; color: var(--gold); letter-spacing: .12em; }
.work-card .more::after { content: " →"; transition: margin-left .3s ease; }
.work-card:hover .more::after { margin-left: 6px; }

/* ---------- 診断 / INSIGHTS ---------- */
.diagnosis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.diagnosis-card, .insight-card {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--glass-line); border-radius: 18px;
  background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .25s ease, border-color .35s ease, box-shadow .35s ease;
}
.diagnosis-card { min-height: 250px; padding: 30px 28px; }
.diagnosis-card::before, .insight-card::before { content: ""; position: absolute; inset: 0; opacity: 0; background: radial-gradient(420px circle at 80% 0%, rgba(87, 142, 255, .2), transparent 66%); transition: opacity .35s ease; }
.diagnosis-card:hover, .insight-card:hover { transform: translateY(-4px); border-color: rgba(140, 190, 255, .55); box-shadow: 0 20px 54px -28px rgba(60, 120, 255, .65); }
.diagnosis-card:hover::before, .insight-card:hover::before { opacity: 1; }
.diagnosis-card > *, .insight-card > * { position: relative; }
.diagnosis-label, .insight-card > span { margin: 18px 0 0; font: 10px var(--mono); letter-spacing: .21em; color: #9dacdf; }
.diagnosis-label { margin: 0; }
.diagnosis-card h3 { margin: 8px 0 8px; font: 600 24px/1.5 var(--mincho); color: #fff; letter-spacing: .04em; }
.diagnosis-card p:not(.diagnosis-label) { max-width: 28em; margin: 0 0 18px; color: var(--sub); font-size: 12.5px; line-height: 1.8; }
.diagnosis-card .more { color: var(--gold); font-size: 12px; letter-spacing: .1em; }
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.insight-card { min-height: 276px; padding: 24px 22px; border-color: rgba(150, 183, 255, .34); background: linear-gradient(145deg, rgba(92, 132, 232, .22), rgba(13, 21, 47, .78) 54%, rgba(51, 173, 210, .14)); box-shadow: inset 0 1px 0 rgba(207, 226, 255, .08), 0 16px 40px -34px rgba(60, 120, 255, .9); }
.insight-card::after { content: ""; position: absolute; top: 20px; right: 20px; width: 76px; height: 76px; opacity: .86; pointer-events: none; transition: transform .35s ease, opacity .35s ease; }
.insight-card:hover::after { transform: scale(1.12) rotate(8deg); opacity: 1; }
.insight-card:nth-child(3n+1)::after { border: 1px solid rgba(145, 211, 255, .65); border-radius: 50%; background: radial-gradient(circle at 35% 34%, #b5ecff 0 3px, transparent 4px), radial-gradient(circle at 68% 63%, rgba(126, 231, 255, .82) 0 4px, transparent 5px), radial-gradient(circle, rgba(85, 145, 255, .22), transparent 67%); box-shadow: inset 0 0 20px rgba(92, 157, 255, .2), 0 0 24px rgba(68, 153, 255, .18); }
.insight-card:nth-child(3n+2)::after { border: 1px solid rgba(159, 178, 255, .65); border-radius: 16px; background: linear-gradient(90deg, transparent 0 22%, rgba(157, 192, 255, .56) 23% 25%, transparent 26% 48%, rgba(114, 232, 255, .72) 49% 51%, transparent 52% 74%, rgba(157, 192, 255, .56) 75% 77%, transparent 78%), linear-gradient(0deg, transparent 0 22%, rgba(157, 192, 255, .35) 23% 25%, transparent 26% 48%, rgba(114, 232, 255, .48) 49% 51%, transparent 52% 74%, rgba(157, 192, 255, .35) 75% 77%, transparent 78%), radial-gradient(circle, rgba(98, 137, 255, .2), transparent 70%); transform: rotate(18deg); }
.insight-card:nth-child(3n+2):hover::after { transform: rotate(26deg) scale(1.12); }
.insight-card:nth-child(3n)::after { width: 92px; height: 58px; top: 29px; border-top: 1px solid rgba(151, 213, 255, .8); border-bottom: 1px solid rgba(151, 213, 255, .35); background: linear-gradient(90deg, transparent 0 8%, rgba(126, 231, 255, .8) 9% 11%, transparent 12% 43%, rgba(150, 175, 255, .68) 44% 46%, transparent 47% 76%, rgba(126, 231, 255, .8) 77% 79%, transparent 80%); box-shadow: 0 18px 0 -17px rgba(125, 210, 255, .7), 0 36px 0 -35px rgba(125, 210, 255, .34); }
.insight-card-head { display: block; }
.insight-card .insight-label { margin: 0; color: #9dacdf; font: 10px var(--mono); letter-spacing: .18em; }
.insight-card-copy { position: relative; margin-top: 31px; }
.insight-card h3 { max-width: calc(100% - 36px); margin: 0 0 11px; color: #fff; font: 600 19px/1.65 var(--mincho); letter-spacing: .03em; }
.insight-card p { margin: 0 0 18px; color: var(--sub); font-size: 12px; line-height: 1.8; }
.insight-card-footer { position: absolute; right: 22px; bottom: 22px; left: 22px; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid rgba(168, 190, 255, .18); }
.insight-card-footer > span { margin: 0; color: rgba(170, 190, 238, .68); font: 9.5px var(--mono); letter-spacing: .14em; }
.insight-card b { color: var(--gold); font-size: 11px; font-weight: 400; letter-spacing: .15em; }
.insight-card b::after { content: " →"; }
.insights-actions { margin-top: 28px; }

/* ---------- INSIGHTS下層 ---------- */
.insights-hero { padding-top: 160px; padding-bottom: 48px; }
.insights-hero h1, .article-hero h1 { margin: 0; color: #fff; font: 600 clamp(32px, 5vw, 54px)/1.5 var(--mincho); letter-spacing: .04em; }
.insights-hero h1 { display: inline-block; padding-bottom: 12px; border-bottom: 1px solid rgba(201, 168, 106, .55); }
.insights-hero .lead, .article-hero .lead { max-width: 47em; margin: 18px 0 0; color: var(--sub); font-size: 14px; }
.insights-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.insights-list .insight-card { min-height: 250px; }
.article-hero { padding-top: 160px; padding-bottom: 28px; }
.article-meta { display: none; }
.article-body { max-width: 760px; padding-top: 20px; padding-bottom: 100px; }
.article-body h2 { margin: 50px 0 16px; color: #fff; font: 600 clamp(22px, 3vw, 30px)/1.65 var(--mincho); letter-spacing: .04em; }
.article-body p, .article-body li { color: var(--sub); font-size: 14px; line-height: 2.1; }
.article-body ul { padding-left: 1.25em; }
.article-body .article-callout { margin-top: 34px; padding: 24px; border: 1px solid rgba(140, 190, 255, .4); border-radius: 16px; background: rgba(79, 140, 255, .08); }
.article-body .article-callout p { margin: 0 0 14px; }
.article-body .article-callout p:last-child { margin-bottom: 0; }
/* 注目カード（スタッフリンク） */
.work-card-featured {
  border-color: rgba(140, 190, 255, 0.45);
  background: linear-gradient(150deg, rgba(80, 140, 255, 0.14), rgba(56, 210, 255, 0.06) 60%, rgba(255, 255, 255, 0.03));
  box-shadow: 0 20px 60px -30px rgba(60, 120, 255, 0.7);
}
.work-badge {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  color: #06121f; font-weight: 700; text-transform: uppercase;
  background: linear-gradient(92deg, #8fd0ff, #7ee7ff); border-radius: 99px;
  padding: 4px 12px; margin-bottom: 12px;
}

/* ---------- 進め方（下線でつながるタイムライン） ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.step {
  position: relative; padding: 26px 26px 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: border-color .4s ease;
}
.step::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 36px; height: 1px; background: var(--gold);
  transition: width .45s cubic-bezier(.2, .7, .2, 1);
}
.step:hover { border-bottom-color: rgba(255, 255, 255, 0.32); }
.step:hover::after { width: 100%; }
.step .num {
  font-family: var(--mono); font-size: 12px; color: var(--gold);
  letter-spacing: .34em; display: block;
}
.step b { display: block; font-family: var(--mincho); font-size: 18px; font-weight: 600; color: #fff; margin: 14px 0 8px; letter-spacing: .06em; }
.step p { margin: 0; font-size: 12.5px; color: var(--sub); }

/* ---------- CCCについて / FAQ ---------- */
.faq-list { max-width: 860px; border-top: 1px solid var(--glass-line); }
.faq-item { border-bottom: 1px solid var(--glass-line); }
.faq-item summary { position: relative; padding: 21px 42px 21px 0; color: #f4f7ff; font-size: 15px; font-weight: 700; line-height: 1.65; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; color: var(--gold); font: 300 25px/1 var(--mono); transform: translateY(-50%); transition: transform .25s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { max-width: 54em; margin: 0; padding: 0 42px 22px 0; color: var(--sub); font-size: 13px; line-height: 2; }

/* ---------- note ---------- */
.note-panel {
  display: flex; flex-wrap: wrap; gap: 26px 48px; align-items: center;
  border: 1px solid var(--glass-line); border-radius: 22px; padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(120deg, rgba(79, 140, 255, 0.07), rgba(56, 210, 255, 0.05));
  backdrop-filter: blur(8px);
}
.note-panel > div:first-child { flex: 1 1 380px; }
.note-panel h2 { font-family: var(--mincho); font-weight: 600; font-size: clamp(22px, 3vw, 30px); margin: 0 0 12px; color: #fff; letter-spacing: .04em; }
.note-panel p { color: var(--sub); font-size: 13.5px; margin: 0; max-width: 38em; }

/* ---------- CTA ---------- */
.cta-final { text-align: center; }
.cta-final .sec-title { font-size: clamp(28px, 5vw, 52px); }
.cta-sub { color: var(--sub); font-size: 14px; max-width: 38em; margin: 0 auto 44px; }
.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-links { margin-top: 34px; display: flex; gap: 12px 34px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--sub); }
.cta-links a { border-bottom: 1px solid rgba(255, 255, 255, 0.25); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.cta-links a:hover { color: #fff; border-color: var(--gold); }

/* ---------- フッター ---------- */
.site-footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line); padding: 44px 0 60px;
  font-size: 12px; color: var(--dim);
}
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px 60px; align-items: flex-start; }
.foot-brand img { width: 88px; filter: invert(1) opacity(.85); }
.foot-brand p { margin: 12px 0 0; line-height: 2; }
.foot-nav { display: flex; gap: 14px 28px; flex-wrap: wrap; margin-left: auto; }
.foot-nav a:hover { color: #fff; }
.foot-pdf {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(201, 168, 106, 0.45); color: var(--gold);
  border-radius: 99px; padding: 9px 22px; font-size: 12px; letter-spacing: .1em;
  transition: background .3s, box-shadow .3s;
}
.foot-pdf:hover { background: rgba(201, 168, 106, 0.12); box-shadow: 0 0 20px -6px rgba(201, 168, 106, 0.5); }
.copyright { margin-top: 30px; opacity: .6; }

/* ---------- 下層ページ（works） ---------- */
.work-hero { padding-top: 160px; padding-bottom: 40px; }
.work-hero .crumbs { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--dim); margin-bottom: 26px; display: block; }
.work-hero .crumbs a { color: #8fa0e8; }
.work-hero h1 {
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(30px, 5vw, 54px); line-height: 1.5; letter-spacing: .04em; margin: 0 0 18px; color: #fff;
}
.work-hero h1.oneline { white-space: nowrap; }
.work-hero .lead { color: var(--sub); font-size: 15px; max-width: 42em; margin: 0 0 26px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-row span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  border: 1px solid rgba(160, 170, 255, 0.35); color: #aab7f0;
  border-radius: 99px; padding: 5px 16px;
}
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.panel {
  border-radius: 18px; padding: 30px 28px;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(8px);
}
.panel.before-p { border-color: rgba(255, 190, 120, 0.25); }
.panel.after-p { border-color: rgba(140, 175, 255, 0.45); background: linear-gradient(135deg, rgba(79, 140, 255, 0.1), rgba(56, 210, 255, 0.06)); }
.panel small { font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.panel.after-p small { color: #b9c5ff; }
.panel h2 { font-family: var(--mincho); font-size: 21px; font-weight: 600; color: #fff; margin: 12px 0 10px; letter-spacing: .04em; }
.panel ul { margin: 0; padding-left: 1.2em; font-size: 13px; color: var(--sub); display: flex; flex-direction: column; gap: 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.feature {
  border: 1px solid var(--glass-line); border-radius: 14px; padding: 22px 20px;
  background: rgba(255, 255, 255, 0.03);
}
.feature b { display: block; font-size: 14.5px; color: #fff; margin-bottom: 6px; }
.feature p { margin: 0; font-size: 12.5px; color: var(--sub); }
.shot-panel {
  border-radius: 20px; border: 1px solid var(--glass-line); overflow: hidden;
  background:
    radial-gradient(600px circle at 20% 0%, rgba(79, 140, 255, 0.18), transparent 60%),
    radial-gradient(500px circle at 85% 100%, rgba(56, 210, 255, 0.12), transparent 60%),
    rgba(10, 14, 29, 0.8);
  min-height: 300px; display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.shot-panel img { max-width: min(420px, 70%); filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6)); }
.shot-panel .shot-word {
  font-family: var(--mincho); color: rgba(255, 255, 255, 0.85); font-size: clamp(20px, 3vw, 30px);
  letter-spacing: .2em; text-align: center; line-height: 2;
}
.work-cta {
  margin-top: 70px; text-align: center; border-top: 1px solid var(--line); padding-top: 60px;
}
/* 資料ダウンロードパネル */
.dl-panel {
  display: flex; flex-wrap: wrap; gap: 24px 44px; align-items: center;
  border: 1px solid var(--glass-line); border-radius: 22px; padding: clamp(26px, 4vw, 44px);
  background: linear-gradient(120deg, rgba(80, 140, 255, 0.1), rgba(56, 210, 255, 0.05));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.dl-panel .dl-text { flex: 1 1 340px; }
.dl-panel h2 { font-family: var(--mincho); font-weight: 600; font-size: clamp(21px, 3vw, 28px); color: #fff; margin: 8px 0 10px; letter-spacing: .04em; }
.dl-panel p { margin: 0; color: var(--sub); font-size: 13.5px; max-width: 40em; }
.dl-actions { display: flex; flex-direction: column; gap: 12px; flex: 0 0 auto; }
.dl-actions a { text-align: center; }

/* ---------- モバイル専用ユーティリティ ---------- */
.mobile-break { display: none; }
.comma-desktop { display: inline; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .site-header { gap: 14px; padding: 12px clamp(16px, 4vw, 44px); }
  .brand img { width: 78px; }
  .header-cta { font-size: 12px; letter-spacing: .04em; padding: 8px 18px; margin-left: auto; }
  .hero-grid { flex-direction: column; align-items: stretch; }
  .hero-visual { flex: 1 1 auto; min-width: 0; width: 100%; max-width: 480px; }
  .hero-visual .tate { display: none; }
  .build-head { margin-bottom: 26px; }
  .build-head .sec-title { font-size: clamp(22px, 6vw, 30px); }
  .build-body { flex-direction: column; align-items: stretch; }
  .term-panel { flex: 0 0 auto; order: 2; font-size: 11px; padding: 12px 16px; line-height: 1.9; }
  .app-mock { flex: 0 1 auto; height: 44vh; }
  .app-side { flex-basis: 84px; }
}
@media (max-width: 560px) {
  .section { padding-top: clamp(56px, 9vh, 90px); padding-bottom: clamp(56px, 9vh, 90px); }
  .brand img { width: 70px; }
  .header-cta { font-size: 11.5px; padding: 8px 15px; }
  .hero { padding-top: 96px; min-height: auto; }
  .hero h1 { font-size: 27px; line-height: 1.7; }
  .hero-lead { font-size: 14px; }
  .hero-entity { margin-top: -18px; margin-bottom: 26px; font-size: 11.5px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { padding: 14px 30px; }
  .hero-note { margin-top: 34px; font-size: 13px; }
  .sec-title { font-size: clamp(24px, 7.5vw, 32px); }
  .sec-lead { font-size: 13.5px; }
  .work-hero h1.oneline { font-size: clamp(20px, 6.2vw, 32px); }
  .app-cards { grid-template-columns: repeat(2, 1fr); }
  .flip { min-height: 232px; }
  .flip-inner { min-height: 232px; }
  .flip-front b, .flip-back b { font-size: 20px; }
  /* PC版と同じ中身（ターミナル+画面モック）をスマホ寸法に縮めて表示 */
  .term-panel { order: 2; font-size: 10.5px; line-height: 1.75; padding: 10px 14px; }
  .app-side { flex-basis: 64px; padding: 12px 10px; }
  .surprise-stage { height: clamp(150px, 26vh, 200px); }
  .cta-links { gap: 10px 20px; }
  .foot-grid { gap: 20px 32px; }
  .foot-nav { margin-left: 0; }
  .dl-actions { width: 100%; }

  /* 制作過程セクション: 1画面に収まる高さに圧縮 */
  .build-stage { padding: 30px 0; }
  .build-head { margin-bottom: 12px; }
  .build-head .sec-title { margin-bottom: 4px; }
  .build-caption { font-size: 12px; }
  .app-mock { flex: 0 1 auto; height: min(30vh, 210px); }

  /* 改行制御ユーティリティ */
  .mobile-break { display: block; }
  .comma-desktop { display: none; }
  .sec-title.mobile-1line { white-space: nowrap; font-size: clamp(17px, 5.4vw, 26px); }
  .surprise-lead.mobile-1line { white-space: nowrap; font-size: clamp(11px, 3.2vw, 13.5px); }
  .hero-diagnosis { height:480px; padding:14px; border-radius:18px; }
  .hero-diagnosis .diag-live { margin-bottom:12px; font-size:10px; }
  .hero-diagnosis .diag-progress-row { margin-bottom:14px; }
  .hero-diagnosis .diag-question { font-size:18px; }
  .hero-diagnosis .diag-helper { font-size:11px; }
  .hero-diagnosis .diag-options { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-top:14px; }
  .hero-diagnosis .diag-option { min-height:68px; padding:8px; }
  .hero-diagnosis .diag-option b { font-size:10.5px; line-height:1.35; }
  .hero-diagnosis .diag-option small { margin-top:2px; font-size:9px; line-height:1.35; }
  .hero-diagnosis .diag-return { margin-top:10px; font-size:10px; }
  .diagnosis-grid, .insight-grid, .insights-list { grid-template-columns: 1fr; }
  .diagnosis-card { min-height: 0; padding: 24px 22px; }
  .insight-card { min-height: 244px; padding: 22px 20px; border-color: rgba(150, 183, 255, .48); background: linear-gradient(145deg, rgba(92, 132, 232, .3), rgba(12, 20, 47, .88) 58%, rgba(51, 173, 210, .2)); box-shadow: inset 0 1px 0 rgba(220, 234, 255, .1), 0 18px 42px -32px rgba(57, 122, 255, .9); }
  .insight-card::before { opacity: .72; }
  .insight-card::after { opacity: 1; }
  .insight-card-copy { margin-top: 28px; }
  .insight-card-footer { right: 20px; bottom: 20px; left: 20px; }
  .insights-hero, .article-hero { padding-top: 116px; }
  .article-body { padding-bottom: 68px; }
  .article-body p, .article-body li { font-size: 13.5px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .assemble { opacity: 1; transform: none; transition: none; }
  .hero-demo .hd-cursor { animation: none; }
  .hero-demo .hd-label::before { animation: none; }
  .sky i { transform: none !important; }
  .flip-inner { transition: none; }
  .app-card, .app-chart, .app-side i, .app-rows i, .app-chart i { transition: none; }
}
