/* OneHi のウェブサイト。poqop.com と同じ作り：1列の読みやすい構成、モノトーン、
   色を使うのはアプリと同じく「未確認」の朱色だけ（仕様書 4.1） */
:root {
  --bg: #0f1012;
  --surface: #17181b;
  --line: #2a2c31;
  --fg: #ecedef;
  --muted: #9a9ca3;
  --invert-bg: #ecedef;
  --invert-fg: #0f1012;
  --alert: #e8735c;
  /* 見出しは癖の少ないゴシック（Inter）。本文は IBM Plex Sans */
  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.4rem, 1.4rem + 4.4vw, 4.5rem);
  --max: 72rem;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f3f1; --surface: #ffffff; --line: #d9d9d6; --fg: #121316; --muted: #5d5f66;
    --invert-bg: #121316; --invert-fg: #f3f3f1; --alert: #c8452c; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f3f1; --surface: #ffffff; --line: #d9d9d6; --fg: #121316; --muted: #5d5f66;
  --invert-bg: #121316; --invert-fg: #f3f3f1; --alert: #c8452c; color-scheme: light;
}

/* 日本語：欧文はそのままの書体、和文は Noto Sans JP。見出しは文節で改行する */
:root:lang(ja) {
  --font-display: "Inter", "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-body: "IBM Plex Sans", "Noto Sans JP", "Hiragino Sans", sans-serif;
}
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; letter-spacing: 0; line-height: 1.3; }
:lang(ja) .hero .lede { max-width: 26em; }
:lang(ja) .label { letter-spacing: 0.06em; }
:lang(ja) .steps li::before { content: "ステップ " counter(step); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
.label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
/* 日本語の見出しで、言葉の途中で改行させない */
.nw { white-space: nowrap; }

/* ヘッダー */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--fg); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 1.25rem; margin-left: auto; font-size: 0.875rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.lang { font-family: var(--font-mono); font-size: 0.8rem; text-decoration: none; color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 0.3rem 0.6rem; white-space: nowrap; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; margin-left: -0.75rem; background: none; color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 0; cursor: pointer; flex: none; }
.theme-toggle[hidden] { display: none; }
@media (max-width: 640px) { .nav { display: none; } .lang { margin-left: auto; } }

/* ファーストビュー */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; align-items: center; padding-block: clamp(3rem, 8vw, 6.5rem); }
/* Inter は字幅が広いので、見出しを少し小さくして3行に収める */
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.4vw, 3.75rem); margin-top: 1rem; }
/* 見出しの行のまとまりは、横に並べても十分に広い画面でだけ固定する（スマホの見本と重ならないように） */
@media (max-width: 1099px) { .hero h1 .nw { white-space: normal; } }
.hero .lede { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 34ch; }
.soon { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--invert-bg); color: var(--invert-fg); border-radius: 999px; padding: 0.7rem 1.2rem; font-weight: 600; font-size: var(--step--1); }
.pill svg { width: 16px; height: 16px; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .phone { justify-self: center; } }

/* スマホの画面の見本：アプリの送信者ホーム（大きな丸いボタン） */
.phone {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 9 / 18.5;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 44px;
  background: var(--surface);
  padding: 26px 22px 30px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.45);
}
.phone-date { align-self: stretch; font-weight: 700; font-size: 1.05rem; }
.phone-prompt { margin-top: auto; color: var(--fg); font-size: 0.95rem; transition: opacity 0.3s; }
.hi {
  margin: 1rem 0;
  width: 78%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fg); color: var(--surface);
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem;
  border: 3px solid var(--fg);
  transition: background 0.35s, color 0.35s, transform 0.15s;
}
.hi svg { width: 46%; height: 46%; display: none; }
.hi.press { transform: scale(0.96); }
.phone.sent .hi { background: var(--surface); color: var(--fg); }
.phone.sent .hi span { display: none; }
.phone.sent .hi svg { display: block; }
.phone-caption { min-height: 3.2em; text-align: center; font-size: 0.85rem; color: var(--muted); margin-bottom: auto; }
.phone-caption strong { display: block; color: var(--fg); font-size: 1.1rem; }

/* セクション */
section { border-top: 1px solid var(--line); }
section > .wrap { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { display: grid; gap: 0.75rem; max-width: 40rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }

/* 使い方 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { display: grid; gap: 0.6rem; align-content: start; }
.steps li::before { counter-increment: step; content: "Step " counter(step); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.steps p { color: var(--muted); }
.code { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.08em; color: var(--fg); white-space: nowrap; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* 1日の流れ */
.day { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.states { display: grid; gap: 1rem; margin-top: 2rem; }
.state { display: flex; align-items: center; gap: 0.9rem; }
.state svg { width: 32px; height: 32px; flex: none; }
.state strong { display: block; font-weight: 600; }
.state.alert strong { color: var(--alert); }
.track { list-style: none; margin: 0; padding: 0; display: grid; }
.track li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.track li:first-child { border-top: 1px solid var(--line); }
.track .t { font-family: var(--font-mono); font-size: var(--step--1); font-variant-numeric: tabular-nums; padding-top: 0.15rem; }
.track p { color: var(--muted); }
.track strong { color: var(--fg); font-weight: 600; }
@media (max-width: 820px) { .day { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

/* 特長 */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 1rem; padding: 1.75rem 1.5rem 1.75rem 0; border-bottom: 1px solid var(--line); }
.feature:nth-child(even) { padding-left: 1.5rem; padding-right: 0; border-left: 1px solid var(--line); }
.feature svg { width: 24px; height: 24px; margin-top: 0.15rem; }
.feature div { display: grid; gap: 0.4rem; }
.feature p { color: var(--muted); }
@media (max-width: 760px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature, .feature:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
}

/* できないこと */
.limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; max-width: 46rem; }
.limits li { display: grid; gap: 0.3rem; padding-left: 1.25rem; border-left: 2px solid var(--line); }
.limits p { color: var(--muted); }

/* 料金 */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 52rem; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 1.75rem; display: grid; gap: 1rem; align-content: start; background: var(--surface); }
.plan.free { background: var(--invert-bg); color: var(--invert-fg); border-color: var(--invert-bg); }
.plan.free .muted, .plan.free .label { color: color-mix(in srgb, var(--invert-fg) 65%, transparent); }
.price { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; letter-spacing: -0.02em; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.plan li { padding-left: 1.4rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0.2rem; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (max-width: 680px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* よくある質問 */
.faq { max-width: 46rem; display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 1rem; font-family: var(--font-mono); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.25rem; color: var(--muted); }

/* フッター */
.site-footer { border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.site-footer .wrap { padding-block: 3rem 2rem; display: grid; gap: 1.5rem; }
.site-footer .brand { font-size: 1.1rem; }
.site-footer .brand svg { width: 24px; height: 24px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--fg); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* 日本語の端末で英語版を開いたときの案内（自動では移動しない） */
.lang-hint { border-bottom: 1px solid var(--line); background: var(--surface); font-size: var(--step--1); }
.lang-hint .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; }
.lang-hint button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.4rem; }

/* 法務・案内のページ（プライバシーポリシー・利用規約・アカウントの削除） */
.doc .wrap { max-width: 46rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.doc h1 { font-size: var(--step-2); margin-top: 0.75rem; }
.doc .updated { margin-top: 0.75rem; color: var(--muted); font-size: var(--step--1); }
.doc .intro { margin-top: 1.5rem; color: var(--muted); }
.doc h2 { font-size: var(--step-1); margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.doc h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.doc p, .doc ul, .doc ol { margin-top: 0.85rem; }
.doc ul, .doc ol { padding-left: 1.25rem; display: grid; gap: 0.4rem; }
.doc li::marker { color: var(--muted); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: var(--step--1); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; }
.doc td:last-child, .doc th:last-child { padding-right: 0; }
.doc .table-wrap { overflow-x: auto; }
.doc a { text-underline-offset: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
