/* =========================================================================
   Sound Relay — デザインの仕上げ (色と構成は styles.css のまま)
   最後に読み込み、組版・部品・動きだけを整える。消せば元の見た目に戻る。
   ========================================================================= */

:root {
  --r-sm: 10px;              /* ボタン・チップ */
  --r-md: 16px;              /* カード */
  --r-lg: 22px;              /* 画像・大きなパネル */
  --hair: rgba(232, 239, 234, 0.10);
  --hair-strong: rgba(232, 239, 234, 0.18);
  --lime-soft: rgba(185, 241, 191, 0.08);
  --lime-glow: rgba(185, 241, 191, 0.38);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ---------- 組版 ---------------------------------------------------------- */

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* 見出しはかなを詰め、文節の切れ目でだけ改行する (<wbr> が改行の候補) */
h1, h2, h3, .start-card strong, .unlock-note strong, .comparison-list strong {
  font-feature-settings: "palt" 1;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1, h2, .features .feature-card h3, .guide-card h3, .compat-card h3, .steps h3 { text-wrap: balance; }

h2 { font-size: clamp(32px, 3.5vw, 50px); line-height: 1.32; letter-spacing: 0.01em; }
.hero h1 { font-size: clamp(40px, 4.3vw, 62px); line-height: 1.26; letter-spacing: -0.02em; }
.hero h1 em { background: linear-gradient(100deg, var(--lime) 30%, #e4ffe7 50%, var(--lime) 70%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s var(--ease-out) 1.4s infinite; }
@keyframes shine { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }

.eyebrow { font-size: 12px; letter-spacing: 0.2em; }
.eyebrow:not(:has(.eyebrow-line))::before { content: ""; display: inline-block; width: 22px; height: 1px; margin: 0 12px 4px 0; background: currentColor; opacity: 0.7; }

/* 本文は読める大きさに */
.hero-lede { font-size: 17px; line-height: 1.9; max-width: 520px; }
.section-heading p, .demo-grid > div:first-child > p, .relay-copy > p, .comparison-grid p,
.start-grid > div:first-child p, .faq-grid > div:first-child > p, #guides .container > p {
  font-size: 16px; line-height: 1.9;
}
.section-heading { margin-bottom: 56px; align-items: flex-end; }
.section-heading p { max-width: 380px; margin-bottom: 6px; }
figcaption { font-size: 13px !important; letter-spacing: 0.01em; }

.section { padding: 128px 0; }

/* ---------- ヘッダー ------------------------------------------------------ */

.site-header { transition: background 0.4s, box-shadow 0.4s, border-color 0.4s; }
.site-header.is-scrolled { background: #0d1617f2; box-shadow: 0 10px 40px -20px #000c; border-bottom-color: var(--hair-strong); }
.nav-links a:not(.nav-buy) { position: relative; padding: 6px 0; transition: color 0.25s; }
.nav-links a:not(.nav-buy)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--lime); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out); }
.nav-links a:not(.nav-buy):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links .nav-buy { border-radius: 999px; transition: background 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s; }
.nav-links .nav-buy:hover { background: var(--lime); color: #10201a; border-color: var(--lime); box-shadow: 0 8px 28px -10px var(--lime-glow); }

/* ロゴの音のバーが、静かに鳴る */
.brand-mark span { transform-origin: 50% 50%; animation: eq 2.4s ease-in-out infinite; }
.brand-mark span:nth-child(1) { animation-delay: -0.2s; }
.brand-mark span:nth-child(2) { animation-delay: -1.1s; }
.brand-mark span:nth-child(3) { animation-delay: -0.6s; }
.brand-mark span:nth-child(4) { animation-delay: -1.6s; }
.brand-mark span:nth-child(5) { animation-delay: -0.9s; }
@keyframes eq { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.55); } }

/* 表示言語の切り替え */
.lang-switch { font: inherit; font-size: 12px; font-weight: 700; color: #becbc6; background: none; border: 1px solid var(--hair-strong); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: color 0.25s, border-color 0.25s, background 0.25s; }
.lang-switch:hover { color: var(--lime); border-color: rgba(185, 241, 191, 0.5); background: var(--lime-soft); }
@media (max-width: 900px) { .nav-links .lang-switch { align-self: flex-start; } }

/* 英語版: 欧文の見出しは字間を少し締める */
html[lang^=en] h1, html[lang^=en] h2 { letter-spacing: -0.025em; }
html[lang^=en] .hero h1 { letter-spacing: -0.03em; line-height: 1.12; }
html[lang^=en] .features .feature-card h3, html[lang^=en] .steps h3 { letter-spacing: -0.01em; }

/* ---------- ボタン -------------------------------------------------------- */

.button { min-height: 52px; padding: 0 24px; gap: 16px; border-radius: var(--r-sm); font-size: 15px; letter-spacing: 0.01em; transition: transform 0.45s var(--ease-out), background 0.25s, box-shadow 0.45s var(--ease-out), border-color 0.25s; }
.button span[aria-hidden] { display: inline-block; transition: transform 0.45s var(--ease-out); }
.button:hover { transform: translateY(-2px); }
.button:hover span[aria-hidden] { transform: translateY(3px); }
.button:active { transform: translateY(0) scale(0.98); }
.button-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 14px 34px -14px var(--lime-glow); }
.button-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 20px 44px -14px rgba(185, 241, 191, 0.55); }
.button-quiet { border-color: var(--hair-strong); }
.button-quiet:hover { border-color: rgba(185, 241, 191, 0.5); background: var(--lime-soft); }

/* ---------- ヒーロー ------------------------------------------------------ */

.hero { padding: 96px 0 120px; }
.hero-meta { gap: 10px; margin-top: 30px; }
.hero-meta span { padding: 6px 13px; border: 1px solid var(--hair-strong); border-radius: 999px; color: #b4c6c0; font-size: 12px; }
.hero-meta span + span:before { content: none; }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: 8% 6% 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(185, 241, 191, 0.22), transparent); filter: blur(30px); z-index: -1; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 0.55; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }
.hero-visual img { border-radius: var(--r-lg); border-color: var(--hair-strong); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 40px 100px -30px #000d; }

/* 読み込み時: 文字が下からそろって現れ、写真がピントを合わせるように落ち着く */
.hero-copy > * { animation: rise 1s var(--ease-out) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.34s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.44s; }
.hero-visual img { animation: settle 1.4s var(--ease-out) 0.1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(1.04); filter: blur(10px) saturate(0.7); } to { opacity: 1; transform: none; filter: none; } }

/* ファーストビュー: 写真を枠から出して右側いっぱいに広げ、暗い背景に溶かす (広い画面のみ) */
.hero-lede { word-break: keep-all; overflow-wrap: anywhere; }
@media (min-width: 1001px) {
  .hero { position: relative; display: flex; align-items: center; min-height: min(calc(100svh - 78px), 800px); padding: 72px 0 88px; background: none; }
  .hero-copy { position: relative; z-index: 1; }
  .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
  .hero-copy { max-width: 600px; }
  .hero-meta { flex-wrap: nowrap; }
  .hero-meta span { white-space: nowrap; padding: 6px 11px; }
  .hero-visual { position: absolute; top: 0; right: 0; bottom: 0; width: 68vw; margin: 0; z-index: 0; overflow: hidden; }
  .hero-visual::before { content: none; }
  .hero-visual img {
    width: 100%; height: 100%; object-fit: cover; object-position: 40% 42%;
    border: 0; border-radius: 0; box-shadow: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, rgba(0, 0, 0, 0.6) 38%, #000 58%), linear-gradient(0deg, transparent 0%, #000 24%), linear-gradient(180deg, transparent 0%, #000 12%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, rgba(0, 0, 0, 0.6) 38%, #000 58%), linear-gradient(0deg, transparent 0%, #000 24%), linear-gradient(180deg, transparent 0%, #000 12%);
    mask-composite: intersect;
    animation: settle 1.6s var(--ease-out) 0.05s both, drift 22s ease-in-out 1.7s infinite alternate;
  }
  .hero-visual figcaption { position: absolute; right: 40px; bottom: 34px; margin: 0; color: rgba(232, 239, 234, 0.72); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8); }
}
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06) translateX(-1%); } }

/* 対応 OS: Windows は対応済みに見せない */
.platforms { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 13px; font-weight: 700; }
.platform { display: inline-flex; align-items: center; gap: 9px; }
.platform i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.platform.is-live { color: #dbe8e2; }
.platform.is-live i { background: var(--lime); box-shadow: 0 0 0 4px rgba(185, 241, 191, 0.14); }
.platform.is-soon { color: var(--muted); }
.platform.is-soon i { border: 1.5px solid var(--muted); }
.hero-copy > *:nth-child(6) { animation-delay: 0.54s; }
.hero-copy > *:nth-child(7) { animation-delay: 0.62s; }
.platforms { margin-top: 18px; }
.platforms + .hero-meta { margin-top: 16px; }
.start-card .button-soon { width: 100%; min-height: 48px; background: transparent; color: #56705f; border: 1.5px dashed #a9bfb0; box-shadow: none; cursor: not-allowed; }
.start-card .button-soon:hover { transform: none; }
.start-card .button-soon[href] { border-style: solid; color: #153b2a; cursor: pointer; }
.start-card .button-soon[href]:hover { background: rgba(21, 59, 42, 0.06); transform: translateY(-2px); }
.compat-card .os-soon { word-break: keep-all; overflow-wrap: anywhere; margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed var(--hair-strong); color: var(--muted); }
.compat-card .os-soon b { color: var(--ink); margin-right: 10px; }

/* ---------- 画像 ---------------------------------------------------------- */

.layout-visual img, .relay-visual img { border-radius: var(--r-lg); border-color: var(--hair-strong); }
.app-preview a, .relay-visual a { border-radius: var(--r-lg); overflow: hidden; }
.app-preview a { border-color: var(--hair-strong); }
.app-preview img, .relay-visual img { transition: transform 0.9s var(--ease-out); }
.app-preview a:hover img, .relay-visual a:hover img { transform: scale(1.012); }

/* ---------- サラウンドの図: 位置ごとに波紋が出る ------------------------------ */

.demo-panel { border-radius: var(--r-lg); border-color: var(--hair-strong); position: relative; overflow: hidden; }
.demo-screen { border-top: 0; }
.demo-screen::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--lime), transparent); box-shadow: 0 0 18px rgba(185, 241, 191, 0.6); }
.demo-nodes span { position: relative; width: 60px; height: 48px; border-radius: 12px; transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease-spring); }
.demo-nodes span:not(.demo-you)::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1.5px solid var(--lime); opacity: 0; animation: ping 2.6s var(--ease-out) infinite; pointer-events: none; }
/* 位置別: 前 → 中央 → 後 と少しずつずれて鳴る */
.demo-nodes span:nth-child(1)::after { animation-delay: 0s; }
.demo-nodes span:nth-child(2)::after { animation-delay: 0.25s; }
.demo-nodes span:nth-child(3)::after { animation-delay: 0.5s; }
.demo-nodes span:nth-child(4)::after { animation-delay: 0.9s; }
.demo-nodes span:nth-child(6)::after { animation-delay: 1.15s; }
/* 同じ音: すべて同時に鳴る */
.demo-panel[data-mode=stereo] .demo-nodes span::after { animation-delay: 0s !important; }
.demo-panel[data-mode=stereo] .demo-nodes span:not(.demo-you) { transform: scale(1.04); }
.demo-nodes .demo-you { width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(185, 241, 191, 0.5); background: radial-gradient(circle, rgba(185, 241, 191, 0.16), transparent 70%); box-shadow: 0 0 0 14px rgba(185, 241, 191, 0.05), 0 0 0 30px rgba(185, 241, 191, 0.03); animation: listen 2.6s ease-in-out infinite; }
@keyframes ping { 0% { opacity: 0.85; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes listen { 0%, 100% { box-shadow: 0 0 0 14px rgba(185, 241, 191, 0.05), 0 0 0 30px rgba(185, 241, 191, 0.03); } 50% { box-shadow: 0 0 0 18px rgba(185, 241, 191, 0.08), 0 0 0 38px rgba(185, 241, 191, 0.04); } }
.segmented { border-radius: 12px; border-color: var(--hair-strong); }
.segmented button { border-radius: 8px; padding: 10px 20px; font-size: 13px; transition: background 0.3s, color 0.3s; }
.demo-caption { font-size: 14px; color: var(--muted); }
.streaming-proof { border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 20px 22px; }
.streaming-proof span { font-size: 14px; }
.streaming-proof small { font-size: 13px; }

/* ---------- 機能カード ----------------------------------------------------- */

.features .feature-card, .compat-card, .guide-card {
  position: relative;
  border-radius: var(--r-md);
  transition: transform 0.6s var(--ease-out), border-color 0.4s, box-shadow 0.6s var(--ease-out);
}
/* マウスの位置に光が付いてくる (位置は app.js が --mx / --my に入れる) */
.features .feature-card::before, .compat-card::before, .guide-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(185, 241, 191, 0.10), transparent 45%);
  opacity: 0; transition: opacity 0.5s;
}
.features .feature-card:hover, .compat-card:hover, .guide-card:hover { transform: translateY(-4px); border-color: rgba(185, 241, 191, 0.32); box-shadow: 0 30px 60px -30px #000c; }
.features .feature-card:hover::before, .compat-card:hover::before, .guide-card:hover::before { opacity: 1; }
.features .feature-card > *, .compat-card > *, .guide-card > * { position: relative; }
.features .feature-card .feature-art { position: absolute; }

.features .feature-card { padding: 34px; min-height: 320px; }
.features .feature-card h3 { font-size: clamp(21px, 1.9vw, 25px); line-height: 1.45; margin-bottom: 14px; }
.features .feature-card p { font-size: 15px; line-height: 1.9; color: #b7c7c1; }
.feature-index { font-size: 12px; letter-spacing: 0.14em; }
.feature-icon { width: 54px; height: 54px; border-radius: 15px; border-color: rgba(185, 241, 191, 0.35); background: var(--lime-soft); margin: 30px 0 26px; }
.feature-icon svg { width: 26px; height: 26px; }
.features .feature-card:hover .feature-icon { border-color: rgba(185, 241, 191, 0.7); }

/* ---------- 中継 ---------------------------------------------------------- */

.relay-copy > p { font-size: 16px; }
.relay-flow { gap: 8px 10px; }
.relay-flow span { border-radius: var(--r-sm); padding: 10px 14px; font-size: 13px; border-color: rgba(185, 241, 191, 0.35); }
.relay-copy .relay-note { font-size: 14px; line-height: 1.8; }

/* ---------- 3 ステップ ----------------------------------------------------- */

.steps { gap: 32px; margin-top: 56px; }
.steps article { position: relative; border-top: 0; padding-top: 28px; }
.steps article::before, .steps article::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; }
.steps article::before { right: 0; background: #567262; }
.steps article::after { width: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out) calc(var(--i, 0) * 180ms + 200ms); }
.steps article.is-in::after, html:not(.motion) .steps article::after { transform: scaleX(1); }
.steps article > span { font-size: 44px; line-height: 1; letter-spacing: -0.02em; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 23px; margin: 26px 0 12px; }
.steps p { font-size: 15px; line-height: 1.9; max-width: 340px; }

/* ---------- 比較 ---------------------------------------------------------- */

.comparison-list div { padding: 22px 6px; font-size: 15px; transition: background 0.3s, padding 0.4s var(--ease-out); }
.comparison-list div:hover { background: var(--lime-soft); padding-left: 14px; padding-right: 14px; }
.comparison-list strong { font-size: 14px; }

/* ---------- 対応環境 ------------------------------------------------------- */

.compat-grid { gap: 16px; }
.compat-card { padding: 30px; }
.compat-card h3 { font-size: 20px; line-height: 1.5; }
.compat-card p { font-size: 14px; line-height: 1.85; }
.limitation { border-radius: var(--r-md); padding: 26px 28px; margin-top: 18px; }
.limitation strong, .limitation a { font-size: 14px; }
.limitation p { font-size: 14px; line-height: 1.85; }

/* ---------- はじめる ------------------------------------------------------- */

.start-card { border-radius: var(--r-lg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 50px 100px -40px #000d, 0 0 0 1px rgba(255, 255, 255, 0.4); }
.start-card strong { font-size: clamp(27px, 2.5vw, 34px); line-height: 1.35; }
.start-card p { font-size: 14px; }
.start-card .button { word-break: keep-all; overflow-wrap: anywhere; text-align: center; line-height: 1.4; padding-top: 12px; padding-bottom: 12px; }
.start-card small { font-size: 12px; }
.start-grid h2 { line-height: 1.3; }
.unlock-note p { font-size: 13px !important; line-height: 1.8; }
.unlock-note a, .unlock-back { transition: color 0.25s; }

/* ---------- FAQ ----------------------------------------------------------- */

.faq-list summary { font-size: 16px; padding: 24px 40px 24px 0; transition: color 0.25s; }
.faq-list summary:hover { color: var(--lime); }
.faq-list summary:after { content: "+"; top: 50%; right: 6px; font-size: 22px; line-height: 1; transform: translateY(-50%); transition: transform 0.45s var(--ease-out); }
.faq-list details[open] summary:after { content: "+"; transform: translateY(-50%) rotate(45deg); }
.faq-list p { font-size: 15px; line-height: 1.9; padding-bottom: 24px; }
.faq-list details[open] p { animation: rise 0.6s var(--ease-out) both; }

/* ---------- ガイド -------------------------------------------------------- */

.guide-cards { gap: 18px; }
.guide-card { padding: 28px; }
.guide-card h3 { font-size: 20px; line-height: 1.55; }
.guide-card span { display: inline-block; transition: transform 0.45s var(--ease-out); }
.guide-card:hover span { transform: translateX(6px); }

/* ---------- 下層ページ (使い方・ガイド・規約など) ------------------------------- */

.info-hero h1 { letter-spacing: -0.015em; }
.info-hero p { font-size: 17px; line-height: 1.9; }
.info-side a { font-size: 13px; line-height: 1.6; position: relative; padding-left: 14px; transition: color 0.25s; }
.info-side a::before { content: ""; position: absolute; left: 0; top: 0.35em; bottom: 0.35em; width: 2px; border-radius: 2px; background: var(--lime); transform: scaleY(0); transition: transform 0.4s var(--ease-out); }
.info-side a.is-active { color: var(--lime); }
.info-side a.is-active::before { transform: scaleY(1); }
.info-content p, .info-content li { font-size: 15px; line-height: 1.95; }
.guide-page .info-content p, .guide-page .info-content li { font-size: 16px; }
.info-callout { border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14px; line-height: 1.85; }
.intro-video { border-radius: var(--r-lg); box-shadow: 0 40px 90px -40px #000d, 0 0 0 1px var(--hair-strong); }

/* ---------- フッター ------------------------------------------------------- */

.site-footer nav a { transition: color 0.25s; }

/* ---------- スクロールで現れる (app.js が html.motion と .reveal を付ける) ---------- */

html.motion .reveal { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
html.motion .reveal.is-in { opacity: 1; transform: none; }
/* カードの hover の動きは、現れたあとに効かせる */
html.motion .reveal.is-in.feature-card, html.motion .reveal.is-in.compat-card, html.motion .reveal.is-in.guide-card { transition: opacity 0.9s var(--ease-out), transform 0.6s var(--ease-out), border-color 0.4s, box-shadow 0.6s var(--ease-out); transition-delay: 0s; }

/* ---------- 画面幅ごと ---------------------------------------------------- */

@media (max-width: 1000px) {
  .features .feature-card { padding: 28px; }
}
@media (max-width: 700px) {
  .section { padding: 84px 0; }
  .container { width: min(100% - 40px, 520px); }
  .hero { padding: 64px 0 84px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .hero-lede { font-size: 15px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-actions .button { width: 100%; }
  h2 { font-size: clamp(28px, 7.6vw, 36px); }
  .section-heading { margin-bottom: 40px; }
  .section-heading p, .demo-grid > div:first-child > p, .relay-copy > p, .comparison-grid p,
  .start-grid > div:first-child p, .faq-grid > div:first-child > p { font-size: 15px; }
  .features .feature-card { padding: 26px; min-height: 0; }
  .features .feature-card p { font-size: 14px; }
  .steps { gap: 28px; }
  .steps article > span { font-size: 36px; }
  .compat-card { padding: 24px; }
  .faq-list summary { font-size: 15px; }
  .relay-flow { gap: 6px; flex-wrap: nowrap; }
  .relay-flow span { padding: 7px 8px; font-size: 11.5px; }
  .relay-flow b { font-size: 14px; }
  .info-content p, .info-content li { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark span, .hero-visual::before, .hero h1 em, .hero-visual img, .demo-nodes span::after, .demo-nodes .demo-you,
  .hero-copy > *, .hero-visual img, .faq-list details[open] p { animation: none !important; }
  .hero h1 em { color: var(--lime); background: none; }
  .button, .features .feature-card, .compat-card, .guide-card, .app-preview img, .relay-visual img { transition: none; }
  .button:hover, .features .feature-card:hover, .compat-card:hover, .guide-card:hover { transform: none; }
}

/* The homepage's main feature is stereo-derived virtual 5.1 surround. */
.demo-panel { min-height: 390px; }
.demo-bass { align-self: center; padding: 8px 16px; margin-top: 12px; border: 1px solid var(--hair-strong); border-radius: var(--r-sm); color: var(--lime); background: var(--lime-soft); font-size: 12px; letter-spacing: .04em; }
.demo-note { margin-top: 16px; }

/* Surround is one product feature with two source paths and shared room controls. */
.surround-section { padding-bottom: 44px; }
.surround-section .section-heading { margin-bottom: 36px; }
.surround-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.surround-route { display: flex; flex-direction: column; min-width: 0; padding: 32px; border: 1px solid var(--hair-strong); border-radius: var(--r-md); background: var(--panel); }
.surround-route-main { background: var(--lime-soft); }
.route-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--lime); font-size: 12px; letter-spacing: .035em; }
.route-badge { border: 1px solid var(--hair-strong); border-radius: 20px; padding: 4px 9px; color: #d9e3de; font-size: 11px; letter-spacing: 0; }
.surround-route h3 { font-size: clamp(23px, 2.4vw, 30px); line-height: 1.5; margin: 22px 0 16px; }
.surround-route p { font-size: 15px; color: #c8d7ce; line-height: 1.85; margin: 0; }
.surround-flow { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 7px; counter-reset: route; }
.surround-flow li { counter-increment: route; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--hair-strong); border-radius: var(--r-sm); font-size: 13px; }
.surround-flow li::before { content: counter(route, decimal-leading-zero); color: var(--lime); font-size: 11px; }
.surround-route .route-use { font-size: 14px; margin-bottom: 20px; }
.route-link { margin-top: auto; color: var(--lime); font-size: 14px; line-height: 1.7; }
.browser-surround { margin-top: 28px; padding: 28px 32px; border: 1px solid var(--hair-strong); border-radius: var(--r-md); }
.browser-surround h3 { font-size: 21px; line-height: 1.5; margin: 0 0 12px; }
.browser-surround p { font-size: 14px; line-height: 1.85; color: #c8d7ce; margin: 0; }
.browser-surround a { color: var(--lime); }
.browser-table-wrap { overflow-x: auto; margin: 22px 0 18px; }
.browser-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.browser-table caption { text-align: left; color: var(--muted); margin-bottom: 10px; font-size: 12px; }
.browser-table th, .browser-table td { padding: 12px 10px; border-bottom: 1px solid var(--hair-strong); vertical-align: top; }
.browser-table thead th { color: var(--muted); font-weight: 500; }
.browser-surround .surround-condition { color: var(--muted); font-size: 12px; }
.browser-surround > .surround-condition { margin-top: 14px; }
.surround-evidence { margin-top: 18px; border-top: 1px solid var(--hair-strong); padding-top: 16px; }
.surround-evidence summary { color: var(--lime); font-size: 13px; cursor: pointer; }
@media (max-width: 700px) {
  .surround-routes { grid-template-columns: 1fr; gap: 18px; }
  .surround-route, .browser-surround { padding: 24px; }
  .surround-section { padding-bottom: 24px; }
  .surround-route h3 { font-size: 25px; }
  .browser-surround h3 { font-size: 20px; }
  .browser-table { min-width: 440px; }
}

/* =========================================================================
   ページのリズム: 背景は既存の2色 (濃い --dark / やや明るい --raised) を交互に置き、
   主役のセクションは広く、補足のセクションは少し詰めて、読む速さに強弱をつける。
   ========================================================================= */

:root { --raised: #172426; --raised-card: #1d2e30; --sink: #0a1213; }

/* 交互の背景。明るい面の上端には、切れ目が分かる程度の光を落とす */
#placement, #features, #how, #compatibility, #guides {
  background: radial-gradient(ellipse 70% 160px at 50% 0, rgba(185, 241, 191, 0.06), transparent), var(--raised);
  box-shadow: inset 0 1px 0 var(--hair);
}
#surround, #app, #relay, .comparison-section, .faq-section { background: var(--dark); }
/* 明るい面のカードは、面より一段明るくして輪郭を保つ */
#features .feature-card, #compatibility .compat-card, #guides .guide-card { background: var(--raised-card); }
#features .feature-card:first-child { background: linear-gradient(160deg, #24403a, var(--raised-card) 70%); }

/* サラウンドの選び方とアプリ画面は、ひとつのまとまりとして続けて読ませる */
#surround { padding-bottom: 56px; }
#app { padding-top: 56px; }

/* 補足のセクションは少し詰める (主役 128px / 補足 104px) */
#how, .comparison-section, .faq-section { padding: 104px 0; }

/* 見出しまわりの間隔をそろえる */
.section h2 + p, #guides .container > p { margin-top: 18px; max-width: 560px; }
#guides .guide-cards { margin-top: 44px; }

/* ---------- 安心して試せる理由 (ヒーロー直下の帯) ---------------------------------- */

.trust-strip { background: #101b1c; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-list li { display: flex; align-items: flex-start; gap: 14px; padding: 30px 24px; border-left: 1px solid var(--hair); min-width: 0; }
.trust-list li:first-child { border-left: 0; padding-left: 0; }
.trust-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--lime); background: var(--lime-soft); border: 1px solid rgba(185, 241, 191, 0.25); }
.trust-icon svg { width: 20px; height: 20px; }
.trust-list li > span:last-child { font-size: 13px; line-height: 1.65; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.trust-list strong { display: block; margin-bottom: 2px; font-size: 14px; color: var(--ink); }
.trust-list a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(185, 241, 191, 0.4); }

/* ---------- 購入: 含まれる機能と条件 ---------------------------------------------- */

.unlock-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; padding: 0; }
.unlock-facts li { padding: 4px 11px; border: 1px solid rgba(189, 242, 196, 0.28); border-radius: 999px; color: #cfe0d6; font-size: 12px; }
.start-includes { margin: 4px 0 24px; }
.start-includes > span { display: block; font-size: 12px; font-weight: 700; color: #3d5a48; letter-spacing: 0.02em; }
.start-includes ul { list-style: none; margin: 10px 0 0; padding: 0; }
.start-includes li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(16, 34, 26, 0.09); font-size: 14px; color: #1d3427; }
.start-includes svg { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: #24733d; background: #cdeccf; }

/* ---------- FAQ: 解決しないときの案内 --------------------------------------------- */

.faq-help { margin-top: 40px; padding: 26px; border: 1px solid var(--hair-strong); border-radius: var(--r-md); background: linear-gradient(180deg, var(--lime-soft), transparent 80%); }
.faq-help strong { font-size: 16px; }
.faq-help p { margin: 10px 0 16px; font-size: 14px !important; line-height: 1.85; color: var(--muted); }
.faq-help div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.faq-help a { color: var(--lime); font-size: 13px; font-weight: 700; transition: opacity 0.25s; }
.faq-help a:hover { opacity: 0.75; }
@media (min-width: 901px) { .faq-grid > div:first-child { position: sticky; top: 110px; align-self: start; } }
/* 1列のときは、質問を読んだあとに案内が来るよう一覧の後ろへ回す */
@media (max-width: 900px) {
  .faq-grid { display: flex; flex-direction: column; gap: 0; }
  .faq-grid > div:first-child { display: contents; }
  .faq-list { order: 1; margin-top: 36px; }
  .faq-help { order: 2; }
}

/* ---------- 比較・ガイド・フッター ------------------------------------------------- */

/* 比較表は1枚のカードにまとめる */
.comparison-list { padding: 6px 28px; border: 1px solid var(--hair-strong); border-radius: var(--r-md); background: var(--panel); }
.comparison-list div:last-child { border-bottom: 0; }
.comparison-list div:hover { padding-left: 6px; padding-right: 6px; }
/* 端数のガイドは横いっぱいに置き、2列の並びを崩さない */
.guide-cards > .guide-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.site-footer { background: var(--sink); border-top: 1px solid var(--hair); padding: 72px 0 28px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--hair); }

@media (max-width: 1000px) {
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust-list li:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 700px) {
  #how, .comparison-section, .faq-section { padding: 76px 0; }
  #surround { padding-bottom: 40px; }
  #app { padding-top: 40px; }
  .trust-list { grid-template-columns: minmax(0, 1fr); }
  .trust-list li { padding: 18px 0; border-left: 0; }
  .trust-list li + li { border-top: 1px solid var(--hair); }
  .comparison-list { padding: 4px 18px; }
  .faq-help { padding: 22px; }
}

/* 購入カードを詰める: 幅を少し広げて見出しとボタンを1行に収め、部品間の余白を小さくする */
@media (min-width: 701px) {
  .start-grid { grid-template-columns: minmax(0, 1fr) minmax(380px, 470px); gap: clamp(36px, 5vw, 72px); }
  .start-card { gap: 14px; padding: 36px 36px 32px; }
  .start-card strong { font-size: clamp(26px, 2.2vw, 30px); line-height: 1.3; }
}
.start-includes { margin: 2px 0 6px; }
.start-includes ul { margin-top: 8px; }
.start-includes li { padding: 7px 0; font-size: 13.5px; }
.start-card .button-soon { min-height: 42px; font-size: 13px; }
.start-card small { margin-top: -4px; }
.start-card .download-resources { margin-top: 2px; padding-top: 14px; }
.start-card .download-assurance { margin-top: 0; font-size: 12px; line-height: 1.75; }

/* ---------- 5.1ch拡張への導線 ------------------------------------------------- */

/* ヘッダー: 今いるページ */
.nav-links a[aria-current="page"] { color: var(--lime); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ヒーロー上部のお知らせ */
.hero-announce { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin-bottom: 26px; padding: 6px 14px 6px 6px; border: 1px solid rgba(185, 241, 191, 0.3); border-radius: 999px; background: var(--lime-soft); font-size: 13px; color: #d5e4dc; transition: border-color 0.3s, background 0.3s; }
.hero-announce b { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--lime); color: #10201a; font-size: 12px; }
.hero-announce span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-announce i { font-style: normal; color: var(--lime); transition: transform 0.45s var(--ease-out); }
.hero-announce:hover { border-color: rgba(185, 241, 191, 0.6); background: rgba(185, 241, 191, 0.12); }
.hero-announce:hover i { transform: translateX(4px); }
.hero-copy > *:nth-child(8) { animation-delay: 0.7s; }

/* 購入カードの拡張リンク */
.start-ext { display: flex; justify-content: space-between; gap: 12px; margin: -6px 0 2px; padding: 10px 14px; border-radius: var(--r-sm); background: #dcebdc; color: #1d3f2b; font-size: 13px; font-weight: 700; transition: background 0.25s; }
.start-ext:hover { background: #cfe4cf; }

/* 拡張ページ */
.ext-hero h1 { max-width: 760px; }
.ext-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ext-cta-note { margin-top: 16px !important; font-size: 13px !important; color: var(--muted); }
.ext-cta-note a { color: var(--lime); }
.ext-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0 8px; }
.ext-compare > div { padding: 22px; border: 1px solid var(--hair-strong); border-radius: var(--r-md); background: var(--panel); }
.ext-compare > div.is-ext { border-color: rgba(185, 241, 191, 0.4); background: linear-gradient(160deg, #24403a, var(--panel) 75%); }
.ext-compare span { display: block; color: var(--lime); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.ext-compare strong { display: block; margin: 8px 0 8px; font-size: 18px; line-height: 1.5; }
.ext-compare p { margin: 0; font-size: 14px !important; line-height: 1.85 !important; color: var(--muted); }
@media (max-width: 700px) {
  .ext-compare { grid-template-columns: 1fr; }
  .ext-actions .button { width: 100%; }
  .hero-announce { font-size: 12px; }
}
.guide-page .info-hero .ext-actions .button-primary { color: #10201a; font-size: 15px; }
.guide-page .info-hero .ext-actions .button-quiet { color: var(--ink); font-size: 15px; }


/* Equal Mac / Windows setup paths. Both platforms use the same card and CTA styles. */
.os-entry .container > p { color: var(--muted); max-width: 760px; line-height: 1.8; }
.os-paths { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 28px; }
.os-path { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; background: rgba(255,255,255,.035); }
.os-label { color: var(--lime); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.os-path h3 { margin: 12px 0; font-size: 25px; }
.os-path p { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0 0 24px; }
.os-path-actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.os-path .button { text-align: center; justify-content: center; }
.os-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.os-common { margin-top: 48px; max-width: 780px; }
.os-common p { color: var(--muted); line-height: 1.8; }
.platform-switch { padding: 18px 0; }
.extension-paths { margin: 28px 0; }
@media(max-width: 640px) { .os-paths { grid-template-columns: 1fr; } .os-path { padding: 22px; } }

/* Keep CTA labels legible when guide link rules apply to the same anchor. */
a.button.button-primary,
a.button.button-primary:hover,
a.button.button-primary:visited {
  color: #10201a;
  -webkit-text-fill-color: #10201a;
  text-decoration: none;
}
a.button.button-quiet,
a.button.button-quiet:hover,
a.button.button-quiet:visited {
  color: var(--ink);
  text-decoration: none;
}
.button {
  max-width: 100%;
  min-width: 0;
  height: auto;
  padding: 12px 20px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
  text-align: center;
}
.info-content, .info-layout > *, .hero-grid > *, .os-path-actions {
  min-width: 0;
}
.os-path .button { width: 100%; }
.os-path > .button { margin-top: auto; }

@media (max-width: 760px) {
  .os-paths { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .section { padding: 60px 0; }
  .info-hero { padding: 44px 0; }
  .info-layout { padding-top: 28px; }
  .os-path { padding: 20px; }
  .os-paths { gap: 18px; }
  .os-path h3 { font-size: 23px; }
  h1, h2, h3 { word-break: normal; }
  .eyebrow { letter-spacing: .12em; overflow-wrap: anywhere; }
  .eyebrow:not(:has(.eyebrow-line))::before { width: 12px; margin-right: 8px; }
  .hero-meta, .platforms, .relay-flow { flex-wrap: wrap; }
  .windows-actions { flex-direction: column; align-items: stretch; }
  .windows-actions .button { width: 100%; }
  /* Long setup sections can exceed the viewport. Their text must stay visible. */
  html.motion .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 32px); }
  .button { padding: 12px 14px; font-size: 14px; }
  .info-hero h1 { font-size: 32px; line-height: 1.35; }
  .setup-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ヒーロー見出しは、スマホでも文節（<wbr>）の切れ目でだけ改行する */
@media (max-width: 760px) { .hero h1 { word-break: keep-all; } }
