/*
 * css/site.css — 倉敷英語学習塾 公開ページ共通スタイル（2026-11 デザイン刷新 v2）
 *
 * 依存ファイル      : なし（見出し用フォント Zen Maru Gothic・英字用フォント Fredoka は各 HTML で Google Fonts から読み込む）
 * 呼び出し元        : index.html / 404.html / terms.html
 * このファイルが呼ぶ: なし
 *
 * テーマ: 英語学習塾 — 英語ノートの4線・アルファベット・吹き出し。
 *         色は「ネイビー＋ブルー」を軸に、マーカーの黄色と赤ペンの赤をアクセントにする。
 */

:root {
  --navy: #1b2b4b;
  --blue: #2563c9;
  --blue-deep: #1a4fa8;
  --blue-soft: #e9f0fc;
  --yellow: #ffc940;
  --yellow-soft: #fff5d6;
  --red: #e0474c;
  --red-soft: #fdecec;
  --green: #2f9e74;
  --paper: #fbfaf6;
  --white: #ffffff;
  --text: #24292f;
  --muted: #5f6672;
  --line: #e3e6ec;
  --rule: #c9d6ee;        /* ノートの罫線 */
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 28px rgba(27, 43, 75, .08);
  --shadow-lg: 0 18px 44px rgba(27, 43, 75, .14);
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-en: "Fredoka", "Zen Maru Gothic", "Hiragino Sans", sans-serif;
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --wrap: 1120px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--paper);
  letter-spacing: .02em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.45; margin: 0; color: var(--navy); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- 英語ノートの4線（区切り帯） ---------- */
.ruled {
  height: 34px;
  background:
    linear-gradient(var(--blue) 0 0) 0 4px / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--rule) 0 8px, transparent 8px 14px) 0 12px / 100% 1px no-repeat,
    linear-gradient(var(--red) 0 0) 0 20px / 100% 2px no-repeat,
    linear-gradient(var(--blue) 0 0) 0 28px / 100% 2px no-repeat,
    var(--white);
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.6em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2;
  color: var(--white); background: var(--blue);
  border: 0; border-radius: 999px; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 0 var(--blue-deep);
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease;
}
.btn:hover { color: var(--white); transform: translateY(2px); box-shadow: 0 4px 0 var(--blue-deep); }
.btn--ghost { background: var(--white); color: var(--navy); box-shadow: 0 6px 0 var(--line), inset 0 0 0 2px var(--navy); }
.btn--ghost:hover { color: var(--navy); box-shadow: 0 4px 0 var(--line), inset 0 0 0 2px var(--navy); }
.btn--yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 0 #d9a21b; }
.btn--yellow:hover { color: var(--navy); box-shadow: 0 4px 0 #d9a21b; }
.btn--lg { font-size: 1.15rem; padding: .95em 2em; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__mark {
  position: relative; width: 46px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px; background: var(--blue); color: var(--white);
  font-family: var(--font-en); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
}
.brand__mark::after { /* 吹き出しのしっぽ */
  content: ""; position: absolute; left: 9px; bottom: -7px;
  border-style: solid; border-width: 8px 8px 0 0; border-color: var(--blue) transparent transparent transparent;
}
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; margin: 0; line-height: 1.2; color: var(--navy); }
.brand__sub { display: block; font-family: var(--font-en); font-size: .78rem; color: var(--blue); font-weight: 600; letter-spacing: .08em; }

.gnav { display: flex; align-items: center; gap: 4px; }
.gnav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.gnav a { display: block; padding: .5em .9em; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; }
.gnav a:hover { background: var(--blue-soft); color: var(--blue); }
.gnav .btn { margin-left: 10px; padding: .65em 1.2em; font-size: .95rem; color: var(--white); }
.gnav .btn:hover { background: var(--blue); color: var(--white); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--navy); color: var(--white); cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .25s ease, background-color .25s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .gnav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 16px 24px 24px; background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .gnav { transform: none; opacity: 1; visibility: visible; }
  .gnav ul { flex-direction: column; }
  .gnav a { padding: .8em 1em; font-size: 1.05rem; }
  .gnav .btn { margin: 8px 0 0; }
}

/* ---------- ヒーロー（スライド） ---------- */
.hero {
  position: relative; overflow: hidden;
  /* 英語ノートの罫線 */
  background:
    repeating-linear-gradient(180deg, transparent 0 39px, rgba(37, 99, 201, .09) 39px 40px),
    var(--white);
}
.hero__deco { position: absolute; inset: 0; pointer-events: none; }
.hero__deco span {
  position: absolute; font-family: var(--font-en); font-weight: 700; line-height: 1; opacity: .9;
}
.hero__deco .d1 { top: 8%;  left: 3%;  font-size: 64px; color: var(--yellow); transform: rotate(-12deg); }
.hero__deco .d2 { bottom: 8%; right: 7%; font-size: 52px; color: var(--red); opacity: .35; transform: rotate(10deg); }
.hero__deco .d3 { top: 10%; right: 4%; font-size: 58px; color: var(--blue); opacity: .25; transform: rotate(8deg); }
.hero__deco .bubble {
  top: 16%; left: 40%; padding: .45em .9em; border-radius: 16px; font-size: 18px; font-weight: 600;
  background: var(--yellow); color: var(--navy); opacity: 1; transform: rotate(-4deg);
}
.hero__deco .bubble::after {
  content: ""; position: absolute; left: 18px; bottom: -9px;
  border-style: solid; border-width: 10px 10px 0 0; border-color: var(--yellow) transparent transparent transparent;
}

.hero__inner { position: relative; padding-top: 56px; padding-bottom: 40px; }

/* スライドはすべて同じマスに重ね、入れ替えは「消えてから出る」順にする（文字が重ならない） */
.slides__stack { display: grid; }
.slide {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 48px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.slide.is-active {
  opacity: 1; visibility: visible;
  transition: opacity .45s ease .3s, visibility 0s linear .3s;
}
.slide__eyebrow {
  display: inline-block; margin-bottom: 16px; padding: .35em 1em;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: var(--navy); background: var(--yellow); border-radius: 999px;
}
.slide__eyebrow span { color: inherit; }
.slide__title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.4; color: var(--navy); word-break: keep-all; overflow-wrap: anywhere; }
.slide__title em { font-style: normal; color: var(--blue); background: linear-gradient(transparent 64%, rgba(255, 201, 64, .55) 64%); }
.slide__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.slide__visual {
  /* バナー画像は白いチョークの絵（背景が透明）なので、黒板（旧デザインの img/banner-bg.jpg）の上に置く */
  position: relative; border-radius: 14px; padding: 18px;
  background: #0b4019 url(../img/banner-bg.jpg) repeat;
  border: 10px solid #a8743f;                     /* 木の枠 */
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), 10px 10px 0 var(--blue-soft);
}
.slide__visual::after { /* 黒板のチョーク置き */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -18px; height: 8px; border-radius: 4px;
  background: #8c5e31;
  box-shadow: inset 30px 0 0 -26px #fff, inset 60px 0 0 -54px #ffc940;
}
.slide__visual img { width: 100%; max-height: 360px; object-fit: contain; margin: 0 auto; }

.slides__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 32px; }
.slides__arrow {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: var(--white); color: var(--navy); border: 2px solid var(--navy);
  display: grid; place-items: center; transition: background-color .2s ease, color .2s ease;
}
.slides__arrow:hover { background: var(--navy); color: var(--white); }
.slides__arrow svg { width: 20px; height: 20px; }
.slides__dots { display: flex; gap: 10px; }
.slides__dots button {
  width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: #c6cdd9; transition: width .3s ease, background-color .3s ease;
}
.slides__dots button[aria-current="true"] { width: 30px; background: var(--blue); }

@media (max-width: 820px) {
  .hero__inner { padding-top: 28px; padding-bottom: 28px; }
  .slide { grid-template-columns: minmax(0, 1fr); gap: 36px; text-align: center; }
  .slide__actions { justify-content: center; }
  .slide__visual { order: -1; padding: 12px; border-width: 8px; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), 6px 6px 0 var(--blue-soft); }
  .slide__visual img { max-height: 220px; }
  .hero__deco .bubble, .hero__deco .d2 { display: none; }
  .hero__deco .d1 { font-size: 44px; top: auto; bottom: 6%; left: 4%; }
  .hero__deco .d3 { font-size: 40px; top: auto; bottom: 8%; right: 4%; }
}

/* ---------- セクション共通 ---------- */
.section { padding: 88px 0; }
.section--white { background: var(--white); }
.section--blue { background: var(--blue-soft); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head__en {
  display: inline-block; margin-bottom: 10px; padding: .1em .8em;
  font-family: var(--font-en); font-size: 1rem; font-weight: 600; letter-spacing: .06em;
  color: var(--blue); border-bottom: 3px solid var(--yellow);
}
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.section-head p { margin-top: 12px; color: var(--muted); }
@media (max-width: 720px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* ---------- 今月の英文問題（ノートの1ページ） ---------- */
.quiz { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.quiz__card {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 40px 32px 32px 32px;
  border: 2px solid var(--navy); box-shadow: 8px 8px 0 var(--blue-soft);
}
.quiz__badge {
  position: absolute; top: -18px; left: 24px;
  padding: .25em 1em; border-radius: 999px;
  font-family: var(--font-en); font-weight: 600; font-size: 1rem; color: var(--white); background: var(--blue);
}
.quiz__badge small { font-family: var(--font-head); font-weight: 700; font-size: .85em; margin-left: .4em; }
.quiz__card--answer .quiz__badge { background: var(--red); }
.quiz__card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.quiz__note { color: var(--muted); font-size: .92rem; }
.quiz__en {
  position: relative; margin: 18px 0 14px; padding: 30px 20px 16px 22px; border-radius: var(--radius-sm);
  background: #f5f8fe; border-left: 4px solid var(--blue); color: var(--navy);
  font-family: var(--font-en); font-weight: 500; font-size: 1.3rem; line-height: 1.7; letter-spacing: .01em;
}
.quiz__en::before { /* 英語ノートの4線（飾り） */
  content: ""; position: absolute; left: 22px; right: 20px; top: 10px; height: 11px;
  background:
    linear-gradient(var(--rule) 0 0) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--rule) 0 0) 0 3px / 100% 1px no-repeat,
    linear-gradient(rgba(224, 71, 76, .55) 0 0) 0 7px / 100% 1px no-repeat,
    linear-gradient(var(--rule) 0 0) 0 10px / 100% 1px no-repeat;
}
.quiz__card--answer .quiz__en { border-left-color: var(--red); }
.quiz__ja { color: var(--text); }
.quiz__ans {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--red-soft); color: #b3262b; font-weight: 700;
}
.quiz__foot { text-align: center; margin-top: 36px; }
.quiz__foot span {
  display: inline-block; padding: .5em 1.4em; border-radius: 999px;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--navy); background: var(--yellow);
}
@media (max-width: 820px) { .quiz { grid-template-columns: 1fr; gap: 40px; } .quiz__card { padding: 36px 20px 24px; } .quiz__en { font-size: 1.1rem; } }

/* ---------- 特長カード ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 36px 28px; text-align: center;
  border: 2px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); }
.feature__icon {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: var(--white);
}
.feature:nth-child(2) .feature__icon { background: var(--red); }
.feature:nth-child(3) .feature__icon { background: var(--yellow); color: var(--navy); }
.feature__icon svg { width: 34px; height: 34px; }
.feature h3, .feature h1 { font-size: 1.3rem; margin-bottom: 12px; color: var(--navy); }
.feature p { color: #474d57; text-align: left; }
.feature .btn { margin-top: 6px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* ---------- 保護者の皆様へ（読み物） ---------- */
.story { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.story + .story { margin-top: 80px; }
.story--reverse { grid-template-columns: 7fr 5fr; }
.story--reverse .story__media { order: 2; }
.story__media { position: sticky; top: calc(var(--header-h) + 24px); }
.story__media img { width: 100%; border-radius: 22px; border: 3px solid var(--navy); box-shadow: 10px 10px 0 var(--yellow-soft); background: var(--white); }
.story__body > div + div { margin-top: 40px; }
.story__body h3 {
  font-size: 1.4rem; margin: 0 0 14px; padding: 0 0 6px;
  background: linear-gradient(transparent 70%, rgba(255, 201, 64, .55) 70%);
  display: inline;
}
.story__body h3 + p { margin-top: 14px; }
.checklist { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: chk; }
.checklist li {
  position: relative; margin: 0 0 10px; padding: 14px 16px 14px 56px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  counter-increment: chk;
}
.checklist li::before {
  content: counter(chk); position: absolute; left: 14px; top: 13px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-en); font-weight: 600; font-size: .95rem; color: var(--white); background: var(--blue);
}
.highlight {
  position: relative; padding: 28px 26px 24px; border-radius: var(--radius); background: var(--navy); color: #e8edf6;
}
.highlight h3 { color: var(--white); background: none; display: block; padding: 0; margin-bottom: 12px; }
.highlight::before {
  content: "Congratulations!"; display: inline-block; margin-bottom: 8px; padding: .1em .8em; border-radius: 999px;
  font-family: var(--font-en); font-weight: 600; font-size: .9rem; color: var(--navy); background: var(--yellow);
}
@media (max-width: 900px) {
  .story, .story--reverse { grid-template-columns: 1fr; gap: 28px; }
  .story--reverse .story__media { order: 0; }
  .story__media { position: static; max-width: 520px; margin: 0 auto; }
  .story + .story { margin-top: 56px; }
}

/* ---------- 授業料 ---------- */
.pricing { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: center; }
.pricing__media img { border-radius: 22px; border: 3px solid var(--navy); box-shadow: 10px 10px 0 var(--blue-soft); background: var(--white); }
.pricing__lead { font-size: 1.05rem; margin-bottom: 28px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { background: var(--white); border-radius: var(--radius); padding: 26px 24px; border: 2px solid var(--line); }
.plan--main { border-color: var(--blue); }
.plan h3 { font-size: 1.2rem; margin-bottom: 10px; }
.plan table, .plan tbody { display: block; width: 100%; }
.plan th, .plan td { display: block; padding: 0; border: 0; text-align: left; font-weight: 400; }
.plan tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "a c" "b c"; column-gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.plan tr:last-child { border-bottom: 0; }
.plan tr > th { grid-area: a; font-weight: 700; color: var(--navy); }
.plan tr > td:nth-child(2) { grid-area: b; color: var(--muted); font-size: .9rem; }
.plan tr > td:last-child { grid-area: c; text-align: right; white-space: nowrap; font-family: var(--font-en); font-weight: 600; font-size: 1.3rem; color: var(--blue); }
.plan tr.userhide { display: none; }
.plan td a { color: inherit; text-decoration: none; font-size: .75em; }
.pricing__note { margin-top: 18px; font-size: .92rem; color: var(--muted); }
@media (max-width: 960px) {
  .pricing { grid-template-columns: 1fr; gap: 28px; }
  .pricing__media { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* ---------- 塾生の声（吹き出し） ---------- */
.voices { columns: 3 300px; column-gap: 24px; }
.voice {
  break-inside: avoid; -webkit-column-break-inside: avoid; display: inline-block; width: 100%;
  margin: 0 0 34px; padding: 26px 24px 22px; border-radius: var(--radius);
  background: var(--white); color: var(--text); border: 2px solid var(--navy); position: relative;
}
.voice::after { /* 吹き出しのしっぽ */
  content: ""; position: absolute; left: 30px; bottom: -14px; width: 22px; height: 22px;
  background: var(--white); border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: skewX(-30deg) rotate(45deg) scale(.8);
}
.voice__who {
  display: inline-block; margin-bottom: 12px; padding: .15em .9em; border-radius: 999px;
  font-family: var(--font-head); font-size: .9rem; font-weight: 700; color: var(--white); background: var(--blue);
}
.voice:nth-child(3n+2) .voice__who { background: var(--red); }
.voice:nth-child(3n) .voice__who { background: var(--green); }
.voice p { font-size: .95rem; line-height: 1.85; margin-bottom: .6em; }

/* ---------- お問い合わせ ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: stretch; }
.contact__cta {
  background: var(--navy); color: #e8edf6; border-radius: var(--radius); padding: 36px 32px;
  display: flex; flex-direction: column; gap: 22px;
}
.contact__cta h3 { color: var(--white); font-size: 1.4rem; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: var(--yellow); }
.contact__icon svg { width: 22px; height: 22px; }
.contact__label { display: block; font-family: var(--font-en); font-size: .85rem; letter-spacing: .08em; color: #a9b7cf; font-weight: 600; }
.contact__list a { color: var(--white); text-decoration: none; font-weight: 700; }
.contact__list a:hover { color: var(--yellow); }
.contact__addr { color: var(--white); font-weight: 700; }
.contact__tel { font-family: var(--font-en); font-size: 1.7rem; font-weight: 600; letter-spacing: .03em; }
.contact__cta .btn { align-self: flex-start; }
.contact__map { border-radius: var(--radius); overflow: hidden; border: 3px solid var(--navy); min-height: 360px; background: var(--blue-soft); }
.contact__map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact__cta .btn { align-self: stretch; } }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: #b5c1d6; padding: 36px 0; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.site-footer a { color: #e2e8f2; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }

/* ---------- 固定の電話ボタン（スマホ） ---------- */
.fab-tel {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none;
  width: 60px; height: 60px; border-radius: 50%; place-items: center;
  background: var(--blue); color: var(--white); box-shadow: 0 10px 24px rgba(37, 99, 201, .45);
}
.fab-tel svg { width: 26px; height: 26px; }
@media (max-width: 720px) { .fab-tel { display: grid; } }

/* ---------- モーダル ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(27, 43, 75, .55);
}
.modal__panel {
  position: relative; width: 100%; max-width: 520px; background: var(--white); border-radius: var(--radius);
  padding: 40px 32px 32px; text-align: center; border: 3px solid var(--navy);
}
.modal__panel h2 { font-size: 1.5rem; }
.modal__panel h3 { font-size: 1.1rem; color: var(--red); margin: 6px 0 16px; }
.modal__close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--blue-soft); color: var(--navy); font-size: 1.4rem; line-height: 1; cursor: pointer;
}

/* ---------- スクロールで表示 ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 単独ページ（404・規約） ---------- */
.page-simple { min-height: 100vh; display: flex; flex-direction: column; }
.page-simple main { flex: 1; }
.error-hero {
  padding: 96px 0 110px; text-align: center;
  background: repeating-linear-gradient(180deg, transparent 0 39px, rgba(37, 99, 201, .09) 39px 40px), var(--white);
}
.error-hero__code {
  font-family: var(--font-en); font-weight: 700; font-size: clamp(5rem, 18vw, 9rem); line-height: 1;
  color: var(--blue); letter-spacing: .04em;
}
.error-hero__code span { color: var(--yellow); }
.error-hero__en { font-family: var(--font-en); font-weight: 600; font-size: 1.2rem; color: var(--red); margin-top: 10px; }
.error-hero h1 { margin: 14px 0 12px; font-size: 1.5rem; }
.error-hero p { color: var(--muted); }
.error-hero .btn { margin-top: 28px; }

.doc { max-width: 860px; margin: 0 auto; background: var(--white); border-radius: var(--radius); border: 2px solid var(--line); padding: 48px 44px; }
.doc > h2 { text-align: center; font-size: 1.7rem; margin-bottom: 28px; }
.doc .notice { background: var(--blue-soft); border-left: 5px solid var(--blue); border-radius: var(--radius-sm); padding: 16px 18px; margin: 16px 0; }
.doc .section { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.doc .section:last-of-type { border-bottom: 0; }
.doc .section-title { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.doc .section-content { color: #3c414a; }
.doc .section-content ul { margin: .5em 0; padding-left: 1.3em; }
.doc .section-content li { margin-bottom: .35em; }
.doc .back-link { text-align: center; margin-top: 36px; }
@media (max-width: 720px) {
  .doc { padding: 32px 22px; border-radius: 0; border-left: 0; border-right: 0; }
  .doc .section { grid-template-columns: 1fr; gap: 6px; }
}
