/* オトシゴ マーケティングサイト共有CSS
   トークンはサイト専用の新セット（白基調×墨色・競合トーン準拠、2026-08-31 ユーザー決定）。
   web/DESIGN.md（真珠×深海）はスタジオ用でありサイトには適用しない。
   金色はロゴと数値アクセントのみ。CTAは墨色ピル。 */

:root {
  color-scheme: light dark;
  --bg: #FDFCFC;
  --bg-elev: #FFFFFF;
  --bg-elev-2: #F5F4F2;
  --border: #E7E5E4;
  --border-strong: #D6D3D1;
  --fg: #1A1A1A;
  --fg-muted: #57534E;
  --fg-faint: #8A8580;
  --accent: #1C1917;          /* 墨インク＝唯一のCTA/リンク色 */
  --accent-strong: #0C0A09;   /* ホバーでさらに濃く */
  --accent-fg: #FFFFFF;
  --accent-soft: rgba(28, 25, 23, .06);
  --gold: #9A6200;            /* ロゴと数値アクセントのみ */
  --coral: #BF4E10;
  --danger: #B03434;
  --radius: 14px;
  --font-display: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-wordmark: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", var(--font-body);
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* 末尾CTA帯（墨・両テーマ共通） */
  --deep-bg: #0C0A09;
  --deep-fg: #F5F5F4;
  --deep-muted: #A8A29E;
  --deep-border: #292524;
  --deep-accent: #FFFFFF;
  --deep-accent-fg: #141414;
}
@media (prefers-color-scheme: dark) {
  :root {
    /* 白地の単純反転にとどめる（サイトはライト主体） */
    --bg: #141413;
    --bg-elev: #1C1C1B;
    --bg-elev-2: #262624;
    --border: #2E2D2B;
    --border-strong: #45433F;
    --fg: #F5F5F4;
    --fg-muted: #A8A29E;
    --fg-faint: #79716B;
    --accent: #F5F5F4;
    --accent-strong: #FFFFFF;
    --accent-fg: #141413;
    --accent-soft: rgba(255, 255, 255, .09);
    --gold: #D9A441;
    --coral: #E0754A;
    --danger: #D97466;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: clip;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img, svg { max-width: 100%; height: auto; }
.mono { font-family: var(--font-mono); letter-spacing: 0; }

.container { max-width: 1176px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0 0; }
.section:last-of-type { padding-bottom: 96px; }

.eyebrow {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--fg-faint);
  margin-bottom: 10px;
}
.sectionHead { margin-bottom: 36px; }
.sectionHead h2 { font-size: 32px; }
.sectionHead .lede { color: var(--fg-muted); margin-top: 10px; max-width: 42em; }

/* ---------- header ---------- */
.siteHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.siteHeader .container {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--fg);
}
.brand svg { width: 30px; height: 30px; color: var(--gold); flex: none; }
.brand .wordmark {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
}
.soonBadge {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}
.siteNav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.siteNav a {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: var(--radius);
}
.siteNav a:hover { color: var(--fg); background: var(--bg-elev-2); }
.siteNav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btnAccent { background: var(--accent); color: var(--accent-fg); }
.btnAccent:hover { background: var(--accent-strong); color: var(--accent-fg); }
.btnGhost { border-color: var(--border-strong); color: var(--fg); background: var(--bg-elev); }
.btnGhost:hover { border-color: var(--fg-muted); color: var(--fg); background: var(--bg-elev-2); }
/* LP最主要CTAのみ許可されたピル（--fg地・--bg文字） */
.btnHero { background: var(--fg); color: var(--bg); border-radius: 999px; padding: 12px 28px; }
.btnHero:hover { opacity: .88; color: var(--bg); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 0; }
.heroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: 48px; line-height: 1.25; }
.hero .lede { color: var(--fg-muted); font-size: 16px; margin-top: 18px; max-width: 34em; }
.heroCtas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- demo card（ヒーロー右・CoeFont型） ---------- */
.demoCard {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 80px;
}
.demoHead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.demoTitle { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.demoCount { font-size: 12px; color: var(--fg-faint); }

.voiceRows { display: grid; gap: 6px; }
.voiceRow {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 4px;
}
.voiceRow.is-on { border-color: var(--border-strong); background: var(--bg); }
.voicePick {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 4px 8px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  color: var(--fg);
}
.voicePick:hover { background: var(--bg-elev-2); }
.voiceAvatar { width: 32px; height: 32px; flex: none; }
.avatarTeal, .avatarCoral, .avatarGold { color: var(--fg-muted); }
.voiceRow.is-on .voiceAvatar { color: var(--fg); }
.voiceMeta { display: grid; line-height: 1.45; min-width: 0; }
.voiceName { font-weight: 700; font-size: 14px; }
.voiceDesc { font-size: 12px; color: var(--fg-muted); }
.rowPlay {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rowPlay:hover { border-color: var(--accent); }
.voiceRow.is-playing .rowPlay { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

.demoChips { display: flex; flex-wrap: wrap; gap: 8px; }
.demoChip {
  min-height: 34px;
  padding: 5px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.demoChip:hover { color: var(--fg); border-color: var(--fg-muted); }
.demoChip.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.demoText {
  font-size: 13.5px;
  color: var(--fg-muted);
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 66px;
}

.demoPlayRow { display: flex; align-items: center; gap: 16px; }
.demoPlay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.demoPlay:hover { opacity: .88; }
.demoPlayIcon { font-size: 12px; }
.demoNote { font-size: 11.5px; color: var(--fg-faint); }

.eqRow { display: flex; align-items: flex-end; gap: 6px; height: 32px; }
.eqRow span {
  width: 6px;
  border-radius: 999px;
  background: var(--accent);
  transform-origin: bottom;
  transform: scaleY(.45);
}
/* 音の骨格 7:9:10:9:7（soundSkeleton.ts と同比率） */
.eqRow span:nth-child(1) { height: 21px; }
.eqRow span:nth-child(2) { height: 27px; }
.eqRow span:nth-child(3) { height: 30px; }
.eqRow span:nth-child(4) { height: 27px; }
.eqRow span:nth-child(5) { height: 21px; }
.demoCard.is-playing .demoEq span { transform: scaleY(1); }

/* 再生中のみEQバーが脈動（reduced-motionでは静的表示に自動フォールバック） */
@media (prefers-reduced-motion: no-preference) {
  .demoCard.is-playing .demoEq span { animation: eqPulse 1.4s ease-in-out infinite; }
  .demoCard.is-playing .demoEq span:nth-child(2) { animation-delay: .15s; }
  .demoCard.is-playing .demoEq span:nth-child(3) { animation-delay: .3s; }
  .demoCard.is-playing .demoEq span:nth-child(4) { animation-delay: .45s; }
  .demoCard.is-playing .demoEq span:nth-child(5) { animation-delay: .6s; }
}
@keyframes eqPulse {
  0%, 100% { transform: scaleY(.45); }
  50% { transform: scaleY(1); }
}

/* ---------- trust line（信頼バッジ1列・控えめ） ---------- */
.trustLine {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  align-items: center;
  margin-top: 56px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--fg-muted);
}
.trustLine a { color: var(--fg-muted); font-weight: 500; }
.trustLine a:hover { color: var(--accent); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--fg);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 999px;
  padding: 10px 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  max-width: calc(100vw - 48px);
  white-space: nowrap;
}
.toast.show { opacity: 1; }

/* ---------- principles band（3原則・1帯コンパクト） ---------- */
.principlesBand {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.principlesBand h2 { font-size: 17px; flex: none; }
.principlesBand ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 13.5px;
  color: var(--fg-muted);
}
.principlesBand li::before { content: "・"; color: var(--accent); }
.principlesBand > a { font-size: 13.5px; white-space: nowrap; margin-left: auto; }

/* ---------- cards ---------- */
.cardGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { font-size: 16.5px; margin-bottom: 10px; }
.card p { color: var(--fg-muted); font-size: 14px; }
.card .cardIcon { font-size: 22px; line-height: 1; margin-bottom: 14px; display: block; }

/* ---------- principles ---------- */
.principles { display: grid; gap: 16px; }
.principle {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 30px;
  align-items: start;
}
.principle .no {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.2;
}
.principle h3 { font-size: 21px; }
.principle p { color: var(--fg-muted); margin-top: 8px; max-width: 44em; }

/* ---------- plans ---------- */
.planGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.planGrid5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.plan {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plan.popular { border-color: var(--accent); }
.popularBadge {
  position: absolute;
  top: -11px;
  left: 20px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-fg);
  background: var(--accent);
  border-radius: 999px;
  padding: 2px 12px;
}
.plan h3 { font-size: 16px; }
.plan .price { margin: 8px 0 2px; }
.plan .price .num { font-family: var(--font-mono); font-size: 26px; font-weight: 500; }
.plan .price .unit { font-size: 12.5px; color: var(--fg-muted); }
.plan .quota { font-size: 13px; color: var(--fg-muted); border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 12px; }
.plan .quota b { color: var(--fg); font-weight: 500; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; color: var(--fg-muted); }
.plan ul li { padding-left: 1.35em; text-indent: -1.35em; }
.plan ul li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: .6em; }
.plan ul li.na { color: var(--fg-faint); }
.plan ul li.na::before { content: "—"; color: var(--fg-faint); font-weight: 400; }

/* ---------- tables ---------- */
.tblWrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
}
table { border-collapse: collapse; width: 100%; font-size: 13.5px; line-height: 1.7; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  background: var(--bg-elev-2);
  white-space: nowrap;
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
tbody th { font-weight: 500; white-space: nowrap; background: transparent; font-size: 13.5px; color: var(--fg); }
td .num, th .num { font-family: var(--font-mono); }

/* 特商法：項目列 */
.legalTable tbody th { width: 200px; color: var(--fg-muted); font-size: 13px; }
.pending { color: var(--fg-faint); }

/* ---------- safety四分類 ---------- */
.safetyGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.safetyCard {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.safetyCard .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 14px;
}
.safetyCard h3 { font-size: 18px; margin-bottom: 6px; }
.safetyCard ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.safetyCard li { font-size: 14px; color: var(--fg-muted); padding-left: 1.3em; text-indent: -1.3em; }
.safetyCard li::before { content: "・"; color: var(--accent); }
.safetyCard li b { color: var(--fg); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 500;
  font-size: 15px;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--fg-faint); flex: none; }
.faq details[open] summary::after { content: "－"; }
.faq .a { padding: 0 20px 18px; color: var(--fg-muted); font-size: 14px; max-width: 46em; }

/* ---------- 注記 ---------- */
.note {
  border-left: 3px solid var(--border-strong);
  background: var(--bg-elev-2);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--fg-muted);
}
.note b { color: var(--fg); font-weight: 500; }

/* ---------- CTA帯（深海固定・Superhuman型） ---------- */
.ctaBand { background: var(--deep-bg); color: var(--deep-fg); margin-top: 96px; border-top: 1px solid var(--deep-border); border-bottom: 1px solid var(--deep-border); }
.ctaBand .container { padding-top: 72px; padding-bottom: 72px; text-align: center; }
.ctaBand h2 { font-size: 30px; color: var(--deep-fg); }
.ctaBand .lines { margin: 24px auto 32px; display: grid; gap: 8px; font-size: 15px; color: var(--deep-muted); }
.ctaBand .lines b { color: var(--deep-fg); font-weight: 500; }
.ctaBand .btnAccent { background: var(--deep-accent); color: var(--deep-accent-fg); }
.ctaBand .btnAccent:hover { background: #E7E5E4; color: var(--deep-accent-fg); }

/* ---------- footer ---------- */
.siteFooter { border-top: 1px solid var(--border); margin-top: 96px; }
.ctaBand + .siteFooter { margin-top: 0; }
.siteFooter .container { padding-top: 40px; padding-bottom: 48px; }
.footPrinciples { font-size: 13.5px; color: var(--fg-muted); max-width: 44em; }
.footNav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 22px; }
.footNav a { font-size: 13.5px; color: var(--fg-muted); text-decoration: none; padding: 4px 0; }
.footNav a:hover { color: var(--accent); }
.footMeta { margin-top: 18px; font-size: 12.5px; color: var(--fg-faint); display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .planGrid5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cardGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .heroGrid { grid-template-columns: 1fr; gap: 36px; }
  .demoCard { max-width: 520px; margin: 0 auto; width: 100%; }
  .safetyGrid { grid-template-columns: 1fr; }
  .planGrid, .planGrid5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .legalTable tbody th { width: 108px; white-space: normal; }
  .legalTable th, .legalTable td { padding: 10px 12px; }
  .section { padding-top: 64px; }
  .section:last-of-type { padding-bottom: 64px; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: 28px; }
  .sectionHead h2 { font-size: 26px; }
  .cardGrid, .planGrid, .planGrid5 { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
  .trustLine { margin-top: 40px; }
  .ctaBand { margin-top: 64px; }
  .siteFooter { margin-top: 64px; }
}

@media (pointer: coarse) {
  .siteNav a, .footNav a, .faq summary, .btn { min-height: 44px; }
  .demoChip { min-height: 44px; }
  .siteNav a { padding-top: 10px; padding-bottom: 10px; }
  .footNav a { display: inline-flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
