/*
 * レジ星（rejistar.etchulab.com）の見た目。紹介・使い方・プライバシー・規約・特商法表記・404 の全ページで共有する。
 *
 * 方針: 明るい背景・大きめの文字（本文 18px）・青1色（アプリの画面の青に合わせる）。
 * 外部のフォント・画像・スクリプトは読み込まない（端末に入っている字体を使う）。JavaScript は使わない。
 * 文字と背景の明るさの差は、本文・補足・リンク・ボタン・【確認中】の印のどれも 4.5:1 以上（WCAG AA）。
 * 色を変えるときは、下の :root の色だけを直す。
 */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f1f5fb;          /* 帯・表の見出しの背景 */
  --surface-strong: #e2eaf7;
  --ink: #18202c;              /* 本文 */
  --ink-muted: #414c5d;        /* 補足 */
  --line: #c3cfe1;
  --accent: #1b559f;           /* ボタン・見出しの飾り。アプリの青 */
  --accent-dark: #12417d;
  --on-accent: #ffffff;
  --link: #154a8c;
  --focus: #154a8c;
  --tbc-bg: #fff0a6;           /* 【確認中】の印 */
  --tbc-ink: #3d2e00;
  --tbc-line: #a67c00;
  --sans: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; padding: 12px 16px; background: var(--accent); color: var(--on-accent); font-weight: 700; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
main { flex: 1 0 auto; }
/* .wrap の左右の余白（スマホで 20px）を、上下の余白を決める規則で消さないこと。上下は padding-top / padding-bottom で書く。 */

/* 上の帯 */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; min-height: 68px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding-top: 10px; color: var(--ink); font-size: 24px; font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.brand:hover { color: var(--accent); }
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; margin-top: 8px; }
ruby { ruby-position: over; }
rt { font-size: .42em; font-weight: 400; letter-spacing: .08em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-size: 17px; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* トップの冒頭 */
.hero { padding: 48px 0 40px; background: var(--surface); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 4px; color: var(--accent-dark); font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.hero h1 { margin: 0; font-size: 52px; font-weight: 700; letter-spacing: .08em; line-height: 1.5; padding-top: 12px; }
.hero h1 rt { font-size: .26em; }
.lead { margin: 20px 0 0; font-size: 24px; font-weight: 700; line-height: 1.7; }
.hero p:not(.lead):not(.eyebrow) { margin: 16px 0 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px !important; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 26px; border: 2px solid var(--accent); border-radius: 8px; background: var(--accent); color: var(--on-accent); font-size: 18px; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; }
.button--ghost { background: var(--bg); color: var(--accent-dark); }
.button--ghost:hover { background: var(--surface-strong); color: var(--accent-dark); }

/* 節 */
.section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
h2 { margin: 0 0 20px; font-size: 30px; font-weight: 700; line-height: 1.5; }
.section > .wrap > h2 { padding-left: 14px; border-left: 8px solid var(--accent); }
h3 { margin: 40px 0 10px; font-size: 23px; font-weight: 700; line-height: 1.6; }
h4 { margin: 28px 0 6px; font-size: 19px; font-weight: 700; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 1.6em; }
li { margin: 0 0 6px; }
.note { color: var(--ink-muted); font-size: 16px; }

/* 画面の写し */
.shot { margin: 24px 0 8px; }
.shot a { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; line-height: 0; }
.shot a:hover { border-color: var(--accent); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 6px; color: var(--ink-muted); font-size: 16px; line-height: 1.7; }

/* 特長・向いているお店 */
.check-list { list-style: none; padding-left: 0; }
.check-list li { position: relative; padding-left: 1.7em; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.limits li { margin-bottom: 10px; }

/* 料金 */
.price-box { margin: 0 0 24px; padding: 24px 24px 12px; border: 3px solid var(--accent); border-radius: 12px; background: var(--bg); }
.price-box .price-line { margin: 0 0 12px; font-size: 20px; }
.price-box .price-num { font-size: 44px; font-weight: 700; color: var(--accent-dark); letter-spacing: .02em; line-height: 1.2; }
.price-box .free-line { margin: 0 0 12px; font-size: 22px; font-weight: 700; }

/* 始め方 */
.steps { list-style: none; counter-reset: step; padding-left: 0; }
.steps > li { position: relative; margin-bottom: 18px; padding-left: 56px; counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 2px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 20px; font-weight: 700; line-height: 1; }

/* 表 */
.table-wrap { margin: 0 0 20px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.75; }
caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
th, td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--surface); font-weight: 700; }
tbody th { white-space: normal; }
/* キーボードの近道の表: 短いキー名（Backspace など）は折り返さない */
th.nw { white-space: nowrap; overflow-wrap: normal; }

/* 説明・規約・ポリシーの頁 */
.doc { padding-top: 40px; padding-bottom: 64px; }
.doc h1 { margin: 0 0 8px; font-size: 36px; font-weight: 700; line-height: 1.5; }
.doc h2 { margin: 48px 0 14px; padding: 10px 14px; background: var(--surface); border-left: 8px solid var(--accent); font-size: 25px; }
.doc h3 { font-size: 21px; margin-top: 32px; }
.doc .meta { color: var(--ink-muted); font-size: 16px; }
.doc ol > li > ul, .doc ol > li > ol { margin-top: 6px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.ui { display: inline; padding: 0 .15em; background: var(--surface-strong); border-radius: 4px; font-weight: 700; }
.toc { margin: 24px 0 8px; padding: 16px 20px 8px; background: var(--surface); border-radius: 8px; }
.toc h2 { margin: 0 0 8px; padding: 0; background: none; border: 0; font-size: 20px; }
.toc ol { columns: 2 280px; column-gap: 32px; margin-bottom: 8px; }
.toc li { break-inside: avoid; }
.contact-box { margin: 20px 0; padding: 16px 20px; border: 2px solid var(--accent); border-radius: 10px; }

/* 【確認中】の印。決まるまで残す。公開の前に、すべて決まった文に置き換える（README.md の一覧） */
.tbc { display: inline; padding: 1px 6px; background: var(--tbc-bg); color: var(--tbc-ink); border: 1px dashed var(--tbc-line); border-radius: 4px; font-weight: 700; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tbc-block { margin: 20px 0; padding: 12px 16px; background: var(--tbc-bg); color: var(--tbc-ink); border: 2px dashed var(--tbc-line); border-left: 10px solid var(--tbc-line); border-radius: 6px; }
.tbc-block p { margin: 0 0 8px; }
.tbc-block p:last-child { margin-bottom: 0; }
.tbc-block a { color: var(--tbc-ink); }

/* 確かめ中（2026-11-12。2段階で出す）。1段目の公開で出してよい「まだ確かめていない」の知らせ。2段目の公開の前に、確かめた文に置き換えて消す（README.md） */
.checking { color: var(--ink-muted); }
.checking-block { margin: 20px 0; padding: 12px 16px; background: var(--surface); color: var(--ink); border-left: 6px solid var(--line); border-radius: 6px; }
.checking-block p { margin: 0 0 8px; }
.checking-block p:last-child { margin-bottom: 0; }

/* 下の帯 */
.site-footer { margin-top: auto; padding: 28px 0 36px; background: var(--surface); border-top: 1px solid var(--line); font-size: 16px; }
.site-footer ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.site-footer li { margin: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer p { margin: 0 0 8px; }
.copyright { color: var(--ink-muted); font-size: 15px; line-height: 1.7; }

/* 404 */
.not-found { padding-top: 56px; padding-bottom: 72px; }
.not-found h1 { margin: 0 0 16px; font-size: 32px; }

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 32px 0 28px; }
  .hero h1 { font-size: 42px; }
  .lead { font-size: 21px; }
  .section { padding: 40px 0; }
  h2 { font-size: 26px; }
  .doc h1 { font-size: 30px; }
  .doc h2 { font-size: 22px; }
  .price-box { padding: 18px 16px 8px; }
  .price-box .price-num { font-size: 38px; }
  .brand { font-size: 22px; }
  th, td { padding: 8px 9px; }
}
