/* 番頭の学校 — banto-school.com
   4ページの静的サイト。外部依存なし（フォントもCDNも読み込まない）。 */

:root {
  --bg:        #fdfcfa;
  --bg-alt:    #f4f1ec;
  --ink:       #23272b;
  --muted:     #6b6f76;
  --accent:    #1e3a5f;
  --accent-lt: #2f5a8f;
  --line:      #e3e0da;
  --warn-bg:   #fbf6ea;
  --warn-line: #e0c99c;
  --maxw:      760px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
}

/* ---------- レイアウト ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- ヘッダ ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 10;
}
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 4px 20px; padding-top: 16px; padding-bottom: 14px;
}
.brand {
  font-size: 18px; font-weight: 700; color: var(--accent);
  text-decoration: none; letter-spacing: .06em; white-space: nowrap;
}
.brand small {
  display: block; font-size: 11px; font-weight: 400;
  color: var(--muted); letter-spacing: .08em; margin-top: 2px;
}
.site-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-size: 14px;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); }

/* ---------- ヒーロー ---------- */
.hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 54px; padding-bottom: 50px; }
.hero .kicker {
  font-size: 15px; color: var(--accent); font-weight: 700;
  margin: 0 0 14px; letter-spacing: .04em;
}
.hero h1 {
  font-size: 30px; line-height: 1.55; margin: 0 0 18px;
  letter-spacing: .01em;
}
.hero .lead { font-size: 17px; margin: 0 0 28px; color: #34383d; }

/* ---------- 見出し ---------- */
h2 {
  font-size: 21px; margin: 56px 0 18px; padding-bottom: 10px;
  border-bottom: 2px solid var(--accent); line-height: 1.5;
}
h3 { font-size: 17px; margin: 34px 0 12px; color: var(--accent); line-height: 1.6; }
main .wrap > h2:first-child { margin-top: 44px; }

p { margin: 0 0 18px; }
strong { font-weight: 700; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  text-decoration: none; padding: 14px 30px; border-radius: 3px;
  font-weight: 700; font-size: 15px; letter-spacing: .04em;
}
.btn:hover { background: #162c48; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }

/* ---------- 表 ---------- */
.table-scroll { overflow-x: auto; margin: 22px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 460px; }
th, td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-weight: 700; white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; }
caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 8px; }

/* ---------- リスト ---------- */
ul, ol { margin: 0 0 18px; padding-left: 1.4em; }
li { margin-bottom: 9px; }

/* ---------- 注記 ---------- */
.note {
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-left: 4px solid #c9a227; padding: 16px 18px; margin: 24px 0;
  font-size: 15px; border-radius: 2px;
}
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

.callout {
  background: var(--bg-alt); border-left: 4px solid var(--accent);
  padding: 16px 18px; margin: 24px 0; font-size: 15px;
}
.callout p:last-child { margin-bottom: 0; }

/* 未確定のプレースホルダ。公開前に必ず消す */
.todo {
  background: #ffe9e9; color: #8a1c1c; border: 1px dashed #c25c5c;
  padding: 1px 7px; border-radius: 3px; font-size: .92em; font-weight: 700;
}

/* ---------- 流れ ---------- */
.steps { list-style: none; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative;
  padding: 0 0 18px 46px; margin: 0;
}
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 2px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- FAQ ---------- */
details {
  border: 1px solid var(--line); border-radius: 3px;
  padding: 0 18px; margin-bottom: 10px; background: #fff;
}
summary {
  cursor: pointer; font-weight: 700; padding: 15px 0; list-style-position: inside;
}
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
details > p:last-child { margin-bottom: 16px; }

/* ---------- フッタ ---------- */
.site-foot {
  margin-top: 76px; border-top: 1px solid var(--line);
  background: var(--bg-alt); font-size: 14px; color: var(--muted);
}
.site-foot .wrap { padding-top: 32px; padding-bottom: 34px; }
.site-foot a { color: var(--accent); }
.site-foot .org { color: var(--ink); font-weight: 700; margin-bottom: 6px; }

/* ---------- 狭い画面 ---------- */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .hero h1 { font-size: 23px; }
  .hero .wrap { padding-top: 38px; padding-bottom: 36px; }
  h2 { font-size: 19px; margin-top: 44px; }
  .site-nav { width: 100%; margin-left: 0; }
  .btn { width: 100%; text-align: center; }
}

/* ---------- 印刷（交付申請の添付書類として出す） ---------- */
@media print {
  .site-head, .site-foot .print-hide, .btn-row { display: none; }
  body { font-size: 12px; line-height: 1.7; }
  .hero { background: none; }
  details { border: none; padding: 0; }
  details > * { display: block !important; }
  a { text-decoration: none; color: inherit; }
}
