/* ─────────────────────────────────────────────────────────────────────────
   規約・FAQ など「読ませる文書ページ」の共通スタイル。
   色・書体トークンはトップページ（案B）に揃えている。
   複数ページで使うため、HTML内に埋め込まず外部ファイルにした。
   ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #241c1b; --ink-mid: #5c4f4d; --ink-soft: #7a6e6c;
  --paper: #fffaf6; --paper-warm: #fdf2ec; --line: #ecdcd2;
  --brand: #c9332a;          /* 白地で 5.26:1 */
  --brand-deep: #a82a22;     /* 白地で 7.0:1 */
  --brand-on-dark: #e8564a;  /* #241c1b の上で 4.67:1 */
  --brand-tint: #faeceb;
  --dark: #241c1b;
  --white: #fff;
  --sans: 'Poppins', 'Noto Sans JP', sans-serif;
  --r-s: 6px;
}
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--paper);
  line-height: 1.85;
  /* keep-all（語の途中で折らない）は短い見出し向け。ここは長い日本語の
     本文が主なので normal に戻し、禁則は line-break: strict に任せる。
     keep-all のままだと1文がまるごと1行扱いになり、狭い画面で横に溢れた。 */
  word-break: normal; line-break: strict;
}
:lang(ja) body { line-height: 1.95; }
.wrap { width: min(760px, 92%); margin: 0 auto; }

/* ─── ナビ ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,250,246,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 1.5rem; padding: .5rem 0; }
/* 指で押す要素は 44px 相当を確保する（機械検査で31〜32pxの指摘が出ていた）。
   見た目の高さは変えずに、当たり判定だけを上下パディングで広げる。 */
.nav-in a, .nav-in button { min-height: 44px; display: inline-flex; align-items: center; }
.nav-logo { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.nav-logo span { color: var(--brand); }
.nav-back {
  margin-left: auto; font-size: .86rem; font-weight: 600; color: var(--brand);
  text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .2s;
}
.nav-back:hover { border-color: var(--brand); }
.lang { display: flex; gap: .2rem; font-size: .8rem; font-weight: 700; }
.lang button {
  background: none; border: 0; padding: .25rem .6rem; cursor: pointer; min-width: 44px; justify-content: center;
  font: inherit; color: var(--ink-soft); opacity: .65; transition: opacity .2s, color .2s;
}
.lang button.is-on { opacity: 1; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lang button:hover { opacity: 1; }

/* ─── 見出し・本文 ─── */
.doc { padding: 3.5rem 0 5rem; }
.doc-label {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .6rem;
}
.doc h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.5rem); line-height: 1.35; font-weight: 700;
  text-wrap: balance; margin-bottom: .8rem;
}
.doc-lead { color: var(--ink-mid); margin-bottom: 1.2rem; text-wrap: pretty; }
.doc-meta { font-size: .84rem; color: var(--ink-soft); padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.doc h2 {
  font-size: 1.25rem; font-weight: 700; margin: 2.8rem 0 .9rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line); text-wrap: balance;
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc h3 { font-size: 1.02rem; font-weight: 700; margin: 1.8rem 0 .5rem; }
.doc p { margin-bottom: 1rem; text-wrap: pretty; }
.doc ul, .doc ol { margin: 0 0 1.2rem 1.3rem; }
.doc li { margin-bottom: .5rem; }
.doc strong { font-weight: 700; }
.doc a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--brand-deep); }

/* 返金率などの数値表。狭い画面では横スクロールさせる（潰さない） */
.table-scroll { overflow-x: auto; margin-bottom: 1.4rem; }
table { border-collapse: collapse; width: 100%; min-width: 300px; font-size: .93rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper-warm); font-weight: 700; }
td.rate { font-weight: 700; white-space: nowrap; }

/* 補足・注意の囲み */
.note {
  background: var(--paper-warm); border-left: 4px solid var(--brand);
  border-radius: 0 var(--r-s) var(--r-s) 0; padding: 1.1rem 1.3rem; margin-bottom: 1.4rem;
}
.note > :last-child { margin-bottom: 0; }
.note b { display: block; margin-bottom: .4rem; }

/* FAQ の開閉 */
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  cursor: pointer; padding: 1.1rem .5rem 1.1rem 0; font-weight: 700;
  list-style: none; display: flex; gap: .8rem; align-items: flex-start;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ''; margin-left: auto; flex: 0 0 auto; width: 10px; height: 10px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform .25s; margin-top: .5rem;
}
.qa[open] summary::after { transform: rotate(-135deg); }
.qa summary:hover { color: var(--brand); }
.qa summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.qa-body { padding: 0 0 1.2rem; color: var(--ink-mid); }
.qa-body > :last-child { margin-bottom: 0; }

/* ─── フッター ─── */
footer { background: var(--dark); color: rgba(255,250,246,.72); padding: 2.6rem 0 1.8rem; font-size: .86rem; }
footer a { color: var(--brand-on-dark); text-decoration: none; }
footer a:hover { color: var(--white); text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-bottom: 1.2rem; }
.foot-pending { color: rgba(255,250,246,.45); }
.foot-pending em { font-style: normal; font-size: .76rem; border: 1px solid rgba(255,250,246,.25); border-radius: 3px; padding: .1rem .4rem; margin-left: .4rem; }

/* ─── 狭い画面 ───
   ナビは「ロゴ＋トップへ戻る＋言語切替」の3つ。375px では横に並びきらず
   ページ全体が横スクロールしていた。ロゴ自体がトップへのリンクなので、
   狭い画面では「トップへ戻る」を消す（機能は失われない）。 */
@media (max-width: 480px) {
  .nav-in { gap: .8rem; }
  .nav-back { display: none; }
  .nav-logo { font-size: 1.05rem; }
  .doc { padding: 2.5rem 0 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
