/* =============================================================================
   サービスの案内・申し込み・パスワード・お店向けの規約のページ（ログイン前）
   白地・テーマ色1色・細い線。角は小さく、影・グラデーションは使わない。スマホが先
   ============================================================================= */
:root {
  --ink: #1d2124;
  --muted: #5b646a;
  --line: #dcdfe2;
  --line-strong: #b9c0c5;
  --accent: #1f5f63;
  --accent-dark: #174a4d;
  --accent-soft: #eef5f5;
  --danger: #b3261e;
  --danger-soft: #fdf0ef;
  --test: #8a6100;
  --test-soft: #fff8e1;
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.7;
  display: flex; flex-direction: column; min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.4; }
p { margin: 0 0 12px; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.gap-top { margin-top: 14px; }

/* ---------- 上の帯・下の帯 ---------- */
.site-hdr { border-top: 3px solid var(--accent); border-bottom: 1px solid var(--line); background: #fff; }
.site-hdr .in { max-width: 960px; margin: 0 auto; padding: 0 16px; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-name { color: var(--ink); font-weight: 700; font-size: 17px; text-decoration: none; }
.site-name:hover { color: var(--accent); }
.site-hdr nav a { font-size: 14px; }

main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 24px 16px 40px; }
main.wide { max-width: 760px; }

.site-foot { border-top: 1px solid var(--line); background: #f7f8f8; font-size: 13px; color: var(--muted); }
.site-foot .in { max-width: 960px; margin: 0 auto; padding: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.site-foot a { color: var(--muted); }
.site-foot .copy { margin-left: auto; }

/* ---------- 見出し・文 ---------- */
.page-title { font-size: 22px; margin-bottom: 8px; }
.lead { color: var(--ink); margin-bottom: 20px; }
.sec { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.sec h2 { font-size: 18px; margin-bottom: 10px; }
.plain-list { margin: 0; padding-left: 1.3em; }
.plain-list li { margin-bottom: 6px; }

/* ---------- ボタン（角は小さく。スマホで押しやすい高さ） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 20px; border: 1px solid var(--accent); border-radius: var(--radius);
  background: #fff; color: var(--accent); font-weight: 700; font-size: 16px; line-height: 1.3;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.block { display: flex; width: 100%; }
.btn-row { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
@media (min-width: 560px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-row .btn { min-width: 200px; }
}
/* 文のようなボタン（「表示」など） */
.text-btn {
  min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--accent);
  font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: underline;
}

/* ---------- 値段の行・お知らせの枠 ---------- */
.price-line { margin: 0 0 8px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.price-line b { font-size: 18px; }
.notice { margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #f7f8f8; }
.notice p:last-child { margin-bottom: 0; }
.notice.error { border-color: #e2b4b0; background: var(--danger-soft); color: var(--danger); font-weight: 700; }
.notice.info { border-color: #b8d0d1; background: var(--accent-soft); }
/* 試しのサーバーだけ：メールの代わりのリンク */
.test-box { margin: 20px 0; padding: 12px 14px; border: 1px dashed var(--test); border-radius: var(--radius); background: var(--test-soft); font-size: 14px; }
.test-box b { display: block; color: var(--test); margin-bottom: 4px; }
.test-box a { word-break: break-all; }

/* ---------- フォーム ---------- */
.form { display: flex; flex-direction: column; gap: 22px; }
.form-group-title { font-size: 17px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.form-group-title:not(:first-child) { margin-top: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend, .field .label { font-weight: 700; font-size: 15px; padding: 0; }
.tag { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid currentColor; border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 1.6; vertical-align: 2px; }
.tag.req { color: var(--danger); }
.tag.opt { color: var(--muted); }
.hint { margin: 0; color: var(--muted); font-size: 14px; }
.err { margin: 0; color: var(--danger); font-size: 14px; font-weight: 700; }
.err:empty { display: none; }
.ok-text { margin: 0; color: var(--accent); font-size: 14px; font-weight: 700; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff;
  font-size: 16px; /* スマホで拡大されないように 16px */
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input[aria-invalid="true"] { border-color: var(--danger); }
input[readonly] { background: #f3f4f5; color: var(--muted); }
::placeholder { color: #8f979c; opacity: 1; }

/* 法人／個人などの選択 */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; cursor: pointer; font-weight: 600;
}
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 同意のチェック */
.agree { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; }
.agree input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }

/* 数を ＋／－ で選ぶ */
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; width: max-content; }
.stepper button {
  width: 56px; min-height: 48px; border: 0; background: #f3f5f5; color: var(--accent);
  font-size: 22px; font-weight: 700; cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.stepper button:hover:not([aria-disabled="true"]) { background: var(--accent-soft); }
.stepper button[aria-disabled="true"] { color: #b5bcc0; cursor: default; }
.stepper output {
  min-width: 88px; display: flex; align-items: center; justify-content: center; gap: 2px;
  border-left: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong);
  font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.stepper output small { font-size: 14px; font-weight: 600; color: var(--muted); }

/* お店のアドレスの見本 */
.addr-preview { margin: 2px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f8f8; font-size: 14px; }
.addr-preview dt { color: var(--muted); font-weight: 700; font-size: 13px; }
.addr-preview dd { margin: 0 0 6px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-all; }
.addr-preview dd:last-child { margin-bottom: 0; }

/* 人には見えない欄（機械の入力よけ） */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* 申し込み前の値段のまとめ */
.summary { padding: 14px 16px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.summary p { margin: 0 0 6px; }
.summary p:last-child { margin-bottom: 0; }
.summary .fee { font-weight: 700; font-size: 17px; }

/* 済んだときの枠 */
.done { padding: 20px 18px; border: 1px solid var(--line-strong); border-top: 4px solid var(--accent); border-radius: var(--radius); }
.done h1, .done h2 { font-size: 20px; margin-bottom: 12px; }
.done p:last-child, .done .btn-row:last-child { margin-bottom: 0; }
.readout { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f8f8; }
.readout dt { color: var(--muted); font-weight: 700; font-size: 14px; }
.readout dd { margin: 0; word-break: break-all; }
.pw-line { display: flex; gap: 6px; align-items: stretch; }
.pw-line input { flex: 1; min-width: 0; }

/* ---------- お店向けの利用規約・プライバシーポリシー ---------- */
.legal { font-size: 15px; line-height: 1.85; }
.legal h1 { font-size: 22px; margin-bottom: 16px; }
.legal h2 { font-size: 16px; margin: 28px 0 8px; padding-left: 10px; border-left: 3px solid var(--accent); }
.legal p { margin: 0 0 10px; }
.legal ol, .legal ul { margin: 0 0 10px; padding-left: 1.6em; }
.legal li { margin-bottom: 6px; }
.legal ol ol { margin-top: 6px; list-style: lower-roman; }
/* 見出しの「第N条」は CSS で数える */
.legal.jo { counter-reset: sec; }
.legal.jo h2 { counter-increment: sec; }
.legal.jo h2::before { content: "第" counter(sec) "条（"; }
.legal.jo h2::after { content: "）"; }
.legal.num { counter-reset: sec; }
.legal.num h2 { counter-increment: sec; }
.legal.num h2::before { content: counter(sec) ". "; }
.legal-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 28px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f8f8; }
.legal-meta dt { color: var(--muted); font-weight: 700; }
.legal-meta dd { margin: 0; white-space: pre-line; word-break: break-word; }
[data-legal].unset { color: var(--danger); font-weight: 700; }
/* 特定商取引法に基づく表記（2026-12-04）：項目と中身の2列の表。細い線で区切る */
.tokusho { display: grid; grid-template-columns: 11em 1fr; margin: 16px 0 0; border-top: 1px solid var(--line); }
.tokusho dt, .tokusho dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.tokusho dt { font-weight: 700; padding-right: 16px; }
.tokusho dd { margin: 0; word-break: break-word; }
.tokusho dd p { margin: 0 0 6px; }
.tokusho dd p:last-child, .tokusho dd ul:last-child { margin-bottom: 0; }
.tokusho dd ul { margin: 0 0 6px; padding-left: 1.4em; }
.tokusho dd li { margin-bottom: 2px; }
.legal-date { margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.draft-note { margin: 24px 0 0; padding: 10px 14px; border: 1px solid #e2b4b0; border-radius: var(--radius); background: var(--danger-soft); color: var(--danger); font-weight: 700; font-size: 14px; }

@media (max-width: 420px) {
  .readout, .legal-meta { grid-template-columns: 1fr; gap: 0; }
  .readout dd, .legal-meta dd { margin-bottom: 8px; }
}
@media (max-width: 600px) {
  .tokusho { grid-template-columns: 1fr; }
  .tokusho dt { border-bottom: 0; padding-bottom: 2px; }
  .tokusho dd { padding-top: 0; }
}
