/* SubDuo LP の共通スタイル（全言語のページが読む）。ページは node subduo/build-lp.mjs で生成する。 */
:root {
  /* SubDuo brand: navy screen, white top line, yellow bottom line, cyan accent */
  --cy: #38B6FF;
  --cy-deep: #00A8E1;
  --cy-pale: #8FD0FF;
  --yel: #FFD76A;
  --bg: #0A0E1A;
  --bg-2: #0F1830;
  --bg-3: #141F3B;
  --card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
  --text: #E2E8F0;
  --text-sub: #A3AECB;
  --text-light: #7C879F;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.8; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
b { color: var(--text); }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(10,14,26,0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: center; }
.nav-inner { max-width: 1100px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; letter-spacing: -0.3px; flex: none; }
.nav-brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav-cta { background: var(--cy-deep); color: #06121c; font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 8px; transition: background 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.nav-cta:hover { background: var(--cy); }
#langSelect { font-family: inherit; font-size: 13px; color: var(--text); background: var(--bg-3); border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 8px; cursor: pointer; max-width: 40vw; }

/* HERO */
.hero { padding: 120px 24px 72px; position: relative; overflow: hidden; background: radial-gradient(ellipse 70% 55% at 50% -5%, rgba(56,182,255,0.16) 0%, transparent 65%), linear-gradient(180deg, #0A0E1A 0%, #0F1830 100%); }
.hero-deco { position: absolute; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(255,215,106,0.08) 0%, transparent 68%); bottom: -300px; right: -200px; pointer-events: none; }
.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(56,182,255,0.10); color: var(--cy-pale); font-size: 13.5px; font-weight: 600; padding: 7px 18px; border-radius: 100px; border: 1px solid rgba(56,182,255,0.25); margin-bottom: 26px; line-height: 1.5; }
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cy); box-shadow: 0 0 10px var(--cy); flex: none; }
h1 { font-size: clamp(32px, 5.4vw, 60px); font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.5px; }
/* 上下に付く記号が多い文字（アラビア・タイ・デーヴァナーガリー・ベンガル）は行間を広げる */
html[lang="ar"] h1, html[lang="th"] h1, html[lang="hi"] h1, html[lang="bn"] h1 { line-height: 1.45; }
html[lang="ar"] h2, html[lang="th"] h2, html[lang="hi"] h2, html[lang="bn"] h2 { line-height: 1.5; }
.accent { color: var(--cy); }
.hero-desc { font-size: 17.5px; color: var(--text-sub); line-height: 1.8; margin: 0 auto 34px; max-width: 720px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn-primary { display: inline-flex; align-items: center; gap: 9px; background: var(--cy-deep); color: #06121c; font-size: 15px; font-weight: 800; padding: 14px 30px; border-radius: 10px; box-shadow: 0 6px 28px rgba(0,168,225,0.35); transition: all 0.2s; max-width: 100%; text-align: center; }
.btn-primary:hover { background: var(--cy); transform: translateY(-1px); box-shadow: 0 8px 34px rgba(56,182,255,0.42); }
.btn-primary svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-big { font-size: 16px; padding: 16px 40px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; color: var(--text-sub); font-size: 14px; font-weight: 500; padding: 14px 8px; transition: color 0.2s; }
.btn-ghost:hover { color: #fff; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--text-light); }

/* PLAYER MOCK (fictional title) — the player chrome stays left-to-right like a real player */
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08); text-align: center; container-type: inline-size; }
.scene { position: absolute; inset: 0; background: linear-gradient(180deg, #0b1a33 0%, #1c3a64 34%, #c8683c 60%, #f2a45b 68%, #20304d 68.2%, #0a1424 100%); }
.scene::before { content: ''; position: absolute; left: 50%; top: 52%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff3c2 0%, #ffc46b 45%, rgba(255,150,80,0) 72%); transform: translate(-50%, -50%); filter: blur(2px); }
.scene .sea { position: absolute; left: 0; right: 0; top: 68%; bottom: 0; background: linear-gradient(180deg, rgba(255,180,100,0.35) 0%, rgba(20,40,80,0.2) 30%, rgba(5,10,25,0.6) 100%); }
.scene .glint { position: absolute; left: 46.5%; right: 46.5%; top: 68.5%; height: 16%; background: repeating-linear-gradient(180deg, rgba(255,220,150,0.5) 0 2px, transparent 2px 7px); filter: blur(0.8px); opacity: 0.55; }
.scene .hill { position: absolute; bottom: 0; background: #060b16; }
.scene .hill.l { left: -4%; width: 42%; height: 40%; clip-path: polygon(0 100%, 0 42%, 12% 30%, 24% 38%, 33% 22%, 45% 34%, 58% 20%, 70% 36%, 84% 28%, 100% 44%, 100% 100%); }
.scene .hill.r { right: -6%; width: 46%; height: 36%; clip-path: polygon(0 100%, 0 48%, 10% 36%, 22% 42%, 36% 24%, 50% 34%, 62% 18%, 75% 30%, 88% 26%, 100% 40%, 100% 100%); }
.scene .vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 45%, rgba(0,0,0,0.55) 100%); }
.p-top { position: absolute; top: 0; left: 0; right: 0; padding: 3.2% 3.4%; display: flex; align-items: center; gap: 3%; color: #fff; text-align: start; background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent); font-size: clamp(9px, 2cqw, 18px); }
.p-top .back { font-size: 1.5em; line-height: 1; opacity: 0.9; }
.p-top .title { font-weight: 700; }
.p-top .ep { font-weight: 400; opacity: 0.75; margin-inline-start: 0.5em; }
.p-ctrl { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5% 3.4% 2.6%; background: linear-gradient(0deg, rgba(0,0,0,0.72), transparent); color: #fff; font-size: clamp(8px, 1.7cqw, 16px); }
.p-bar { position: relative; height: 0.32em; background: rgba(255,255,255,0.28); border-radius: 999px; margin-bottom: 0.8em; }
.p-bar .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 63%; background: var(--cy-deep); border-radius: 999px; }
.p-bar .knob { position: absolute; left: 63%; top: 50%; width: 1em; height: 1em; background: #fff; border-radius: 50%; transform: translate(-50%, -50%); }
.p-row { display: flex; align-items: center; gap: 1.4em; }
.p-row .ico { width: 1.5em; height: 1.5em; fill: #fff; opacity: 0.92; flex: none; }
.p-row .time { font-variant-numeric: tabular-nums; opacity: 0.85; }
.p-row .sp { flex: 1; }
.p-row .cc { font-size: 0.72em; font-weight: 800; border: 1.5px solid #fff; border-radius: 4px; padding: 0 0.35em; line-height: 1.45; }
/* SubDuo overlay — mirrors the extension's .subduo-overlay / .subduo-line */
.sd { position: absolute; left: 4%; right: 4%; bottom: 19%; display: flex; flex-direction: column; align-items: center; font-size: clamp(9px, 3.8cqw, 34px); pointer-events: none; }
.sd-box { display: inline-flex; flex-direction: column; max-width: 100%; }
.sd-line { white-space: pre-wrap; line-height: 1.3; padding: 0.06em 0.4em; min-height: 1.37em; background: rgba(0,0,0,0.55); text-shadow: 0 0 4px rgba(0,0,0,0.9); font-weight: 600; transition: opacity 0.25s; }
.sd-a { color: #fff; border-radius: 0.18em 0.18em 0 0; }
.sd-b { color: var(--yel); font-size: 0.8em; border-radius: 0 0 0.18em 0.18em; }
.hero-player { max-width: 960px; margin: 56px auto 0; }
.hero-caption { margin-top: 18px; display: flex; justify-content: center; gap: 8px 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-sub); }
.hero-caption span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot-a { background: #fff; } .dot-b { background: var(--yel); }

/* SITES BAR */
.sites-bar { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 36px 24px; text-align: center; }
.sites-inner { max-width: 900px; margin: 0 auto; }
.sites-h { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.sites-sub { font-size: 14px; color: var(--text-sub); margin-bottom: 18px; }
.sites-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sites-list span { font-size: 12.5px; font-weight: 600; color: var(--text-sub); background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px; font-family: ui-monospace, Consolas, monospace; }
.sites-list span.main { color: var(--cy-pale); border-color: rgba(56,182,255,0.35); background: rgba(56,182,255,0.08); }
.svc-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 20px 0 26px; }
.svc { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 800; color: #fff; background: rgba(56,182,255,0.08); border: 1px solid rgba(56,182,255,0.3); border-radius: 14px; padding: 12px 22px; }
.svc i { min-width: 26px; height: 26px; padding: 0 4px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; font-weight: 900; color: #fff; flex: none; }
.svc .pv { background: linear-gradient(135deg, #00A8E1, #1FB6FF); color: #06121c; }
.svc .yt { background: #FF0033; }
.svc .nf { background: #E50914; }
.svc .dp { background: linear-gradient(135deg, #1a3fa8, #0a2472); }
.svc .td { background: #EB0028; font-size: 10px; letter-spacing: -0.3px; }

/* SECTIONS */
section { padding: 96px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--cy); margin-bottom: 12px; }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: #fff; line-height: 1.35; margin-bottom: 16px; }
.section-lead { font-size: 16px; color: var(--text-sub); max-width: 680px; line-height: 1.8; margin-bottom: 52px; }
.section-center { text-align: center; }
.section-center .section-lead { margin-left: auto; margin-right: auto; }
.bg-alt { background: var(--bg-2); }

/* PROBLEM BANNER */
.problem-banner { background: linear-gradient(135deg, #0F2A3F, #123A58, #0B4F73); color: #fff; padding: 80px 24px; text-align: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.problem-banner p { color: rgba(255,255,255,0.75); font-size: 17px; max-width: 760px; margin: 0 auto; line-height: 1.9; }
.highlight { color: var(--yel); font-weight: 700; }

/* BEFORE / AFTER */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; }
.ba-card { border-radius: 18px; padding: 30px 30px 26px; border: 1px solid var(--border); background: var(--card); text-align: start; }
.ba-card.after { border-color: rgba(56,182,255,0.4); background: linear-gradient(160deg, rgba(56,182,255,0.10), rgba(56,182,255,0.03)); box-shadow: 0 20px 60px rgba(0,168,225,0.12); }
.ba-lab { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-light); margin-bottom: 14px; }
.ba-card.after .ba-lab { color: var(--cy); }
.ba-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ba-card li { display: flex; gap: 10px; font-size: 15px; color: var(--text-sub); line-height: 1.6; }
.ba-card li::before { content: '✕'; color: #f87171; font-weight: 800; flex: none; }
.ba-card.after li::before { content: '✓'; color: var(--cy); }
.ba-card.after li { color: var(--text); }

/* VIDEO */
.video-frame { position: relative; width: 100%; max-width: 900px; margin: 40px auto 0; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* IN ACTION: store images with text */
.shows { display: flex; flex-direction: column; gap: 72px; text-align: start; }
.show { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.show:nth-child(even) .show-img { order: 2; }
.show-img img { width: 100%; border-radius: 14px; box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08); }
.show-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(56,182,255,0.12); border: 1px solid rgba(56,182,255,0.35); color: var(--cy); font-weight: 800; margin-bottom: 14px; }
.show h3 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 800; color: #fff; line-height: 1.4; margin-bottom: 12px; }
.show p { font-size: 15.5px; color: var(--text-sub); line-height: 1.85; }

/* FLOW */
.flow-timeline { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; max-width: 960px; margin: 0 auto; }
.flow-timeline::before { content: ''; position: absolute; top: 28px; left: calc(16.66% + 12px); right: calc(16.66% + 12px); height: 2px; background: linear-gradient(90deg, var(--border), var(--cy), var(--border)); }
.flow-item { text-align: center; position: relative; z-index: 1; padding: 0 14px; }
.flow-num { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #00A8E1, #38B6FF); color: #06121c; font-size: 20px; font-weight: 800; margin-bottom: 16px; box-shadow: 0 4px 20px rgba(56,182,255,0.4); }
.flow-item h3 { font-size: 16.5px; font-weight: 700; color: #fff; margin-bottom: 6px; line-height: 1.5; }
.flow-item p { font-size: 14px; color: var(--text-sub); line-height: 1.7; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; transition: border-color 0.3s, background 0.3s; text-align: start; }
.feat-card:hover { border-color: rgba(56,182,255,0.4); background: rgba(56,182,255,0.05); }
.feat-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(56,182,255,0.10); border: 1px solid rgba(56,182,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.feat-icon.y { background: rgba(255,215,106,0.10); border-color: rgba(255,215,106,0.25); }
.feat-card h3 { font-size: 16.5px; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.5; }
.feat-card p { font-size: 14px; color: var(--text-sub); line-height: 1.75; }

/* PRIVACY */
.safety-section { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.safety-card { background: rgba(56,182,255,0.05); border: 1px solid rgba(56,182,255,0.15); border-radius: 14px; padding: 28px 24px; text-align: start; }
.safety-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.5; }
.safety-card p { font-size: 14px; color: var(--text-sub); line-height: 1.75; }
.safety-more { margin-top: 28px; font-size: 14px; }
.safety-more a { color: var(--cy-pale); text-decoration: underline; text-underline-offset: 3px; }

/* NOTES */
.notes-list { max-width: 820px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; text-align: start; }
.note-item { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; font-size: 14.5px; color: var(--text-sub); line-height: 1.75; }
.note-item .n { flex: none; color: var(--yel); font-weight: 800; }

/* FAQ */
.faq-list { max-width: 760px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color 0.2s; text-align: start; }
.faq-item:hover { border-color: var(--border-strong); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: none; cursor: pointer; padding: 20px 24px; font-size: 15px; font-weight: 600; color: #fff; text-align: start; font-family: inherit; line-height: 1.5; }
.faq-q::after { content: ''; width: 20px; height: 20px; flex-shrink: 0; margin-inline-start: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338B6FF' stroke-width='2.5'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform 0.3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-a { max-height: 640px; }
.faq-a-inner { padding: 16px 24px 20px; font-size: 14px; color: var(--text-sub); line-height: 1.85; border-top: 1px solid var(--border); }

/* CTA */
.cta-bottom { background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(56,182,255,0.16), transparent 70%), var(--bg-2); text-align: center; padding: 96px 24px; border-top: 1px solid var(--border); }
.cta-bottom h2 { margin-bottom: 24px; }
.cta-checklist { max-width: 560px; margin: 0 auto 36px; text-align: start; display: flex; flex-direction: column; gap: 10px; list-style: none; }
.cta-checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 500; color: var(--text); line-height: 1.6; }
.cta-check-icon { width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--cy-deep); color: #06121c; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.cta-note { margin-top: 16px; font-size: 13px; color: var(--text-light); }

/* FOOTER */
footer { background: var(--bg); padding: 40px 24px; text-align: center; border-top: 1px solid var(--border); }
.footer-inner { max-width: 700px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; font-size: 13px; color: var(--text-light); }
.footer-inner a { color: var(--text-light); transition: color 0.2s; }
.footer-inner a:hover { color: var(--cy); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .show { grid-template-columns: 1fr; gap: 24px; }
  .show:nth-child(even) .show-img { order: 0; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero { padding: 100px 20px 56px; }
  .ba-grid, .features-grid, .safety-grid { grid-template-columns: 1fr; }
  .flow-timeline { grid-template-columns: 1fr; gap: 28px; }
  .flow-timeline::before { display: none; }
  .nav-brand span { display: none; }
}
@media (max-width: 480px) {
  section { padding: 64px 16px; }
  .nav { padding: 0 12px; }
  .nav-cta { padding: 8px 12px; }
  .hero { padding: 96px 16px 48px; }
  .hero-desc, .problem-banner p { font-size: 16px; }
  .svc { font-size: 15px; padding: 10px 16px; }
  .btn-big { padding: 16px 24px; }
  .ba-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sd-line, .faq-a { transition: none; }
}
