/* =========================================================================
   学習塾テンプレート スタイル(誠実な青藍×活力の橙)
   配色の切り替えは下の :root 変数を差し替えるだけ(README「配色の切り替え」)。
   デザイン原則:
   - 明色アクセントを白背景に器(丸・帯)として置かない。濃色の上の小さな
     マーク・細い線としてのみ使う(hp-maker-core CLAUDE.md の鉄則を準用)
   - 見出しは Noto Sans JP(角ゴ=誠実・現代的)。本文は BIZ UDPGothic(UD書体)
   - 変数名は restaurant テンプレートと共通(--sumi=濃色/--accent=アクセント)。
     意味は「業種の濃色/差し色」で、値だけが業種ごとに変わる
   ========================================================================= */

:root {
  /* --- 配色(学習塾:青藍×橙) ---
     業態で差し替える例:
       進学塾・予備校  --accent: #C25700(橙)   ← 既定
       英会話・こども  --accent: #2E7D4F(緑)
       そろばん・書道  --accent: #A63D2F(朱)
  */
  --sumi: #16355E;          /* 青藍:信頼の濃紺。濃色セクション・見出し */
  --sumi-2: #1F4678;        /* 青藍の明るめ(グラデ・ホバー) */
  --accent: #C25700;        /* 橙:ボタン・アクセント。白文字が載る濃さを保つこと */
  --accent-soft: #FFB162;   /* 橙の明るめ:濃色背景の上の文字・マーク専用 */

  --paper: #F7FAFC;         /* 青みがかった白(ページ地) */
  --paper-2: #EDF3F9;       /* 淡い青灰(セクション地) */
  --ink: #26313D;
  --ink-muted: #64748B;
  --line: #DBE4EE;

  /* --- タイポ --- */
  --font-head: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "BIZ UDPGothic", "Yu Gothic", "Noto Sans JP", sans-serif;

  --wrap: 1080px;
  --radius: 12px;
  --shadow: 0 12px 32px rgba(22, 53, 94, 0.12);
  --shadow-sm: 0 3px 12px rgba(22, 53, 94, 0.08);
}

/* --------------------------------------------------------------- base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.5; margin: 0; letter-spacing: .02em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
/* アンカー着地時にstickyヘッダーで見出しが隠れないように */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; scroll-margin-top: 68px; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--sumi); color: #fff; }

/* 画像プレースホルダ(顧客写真に差し替える枠) */
.ph {
  position: relative;
  background:
    linear-gradient(135deg, rgba(22,53,94,.05), rgba(22,53,94,.02)),
    repeating-linear-gradient(45deg, #E8EFF7 0 12px, #E0E9F3 12px 24px);
  display: grid; place-items: center;
  color: var(--ink-muted);
  font-size: .8rem; letter-spacing: .08em;
  border-radius: var(--radius);
}
.ph::after { content: attr(data-label); }

/* --------------------------------------------------------- demo banner */
.demobar {
  background: var(--sumi);
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  text-align: center;
  padding: .4rem 1rem;
  letter-spacing: .02em;
}
.demobar b { color: var(--accent-soft); font-weight: 700; }

/* -------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,250,252,.94);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
/* ロゴ=濃色の丸 × 明色のマーク(鉄則の基本形) */
.brand__mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--sumi);
  display: grid; place-items: center; flex: none;
}
.brand__mark span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent-soft);
}
.brand__name { font-family: var(--font-head); font-weight: 700; color: var(--sumi); font-size: 1.18rem; line-height: 1.4; letter-spacing: .04em; }
.brand__name small { display: block; font-size: .58rem; letter-spacing: .28em; color: var(--ink-muted); font-weight: 500; font-family: var(--font-body); }

.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a { text-decoration: none; }
.nav a:not(.btn) {
  color: var(--sumi); font-family: var(--font-head); font-weight: 600; font-size: .93rem;
  letter-spacing: .05em; line-height: 1.5; position: relative; padding: .2rem 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .2s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--sumi); margin: 5px 0; transition: .25s; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; line-height: 1.5; letter-spacing: .05em;
  padding: .8rem 1.7rem; border-radius: 8px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-size: 1rem;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
/* 白背景で使う主ボタン=青藍塗り+白文字 */
.btn--primary { background: var(--sumi); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--sumi-2); }
/* 橙ボタン=白文字が載る濃さの橙なので白背景でも濃色背景でも使える */
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { filter: brightness(1.08); }
/* 濃色背景の上の従ボタン=白枠 */
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: #fff; }
.btn--sm { padding: .5rem 1.15rem; font-size: .88rem; }

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative; color: #fff;
  background:
    radial-gradient(1100px 480px at 82% -8%, var(--sumi-2), transparent 62%),
    linear-gradient(165deg, var(--sumi) 45%, #0D1B31 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem;
  align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .22em;
  color: rgba(255,255,255,.85); line-height: 1.5;
}
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); }
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.1rem); margin: 1.2rem 0 .6rem; line-height: 1.5;
  font-weight: 900; letter-spacing: .03em;
}
.hero h1 .accent { color: var(--accent-soft); }
.hero__lead { font-size: 1.02rem; color: rgba(255,255,255,.82); max-width: 32ch; }
.hero__cta { display: flex; gap: .8rem; margin-top: 1.9rem; flex-wrap: wrap; }
.hero__photo { aspect-ratio: 4/3; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
img.hero__photo { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); }
.hero__facts {
  display: flex; gap: 1.5rem; margin-top: 2.2rem; flex-wrap: wrap;
  font-size: .9rem; color: rgba(255,255,255,.75);
}
.hero__facts b { color: #fff; font-family: var(--font-head); font-weight: 700; margin-right: .35em; }

/* ---------------------------------------------------------- section head */
.head { text-align: center; margin-bottom: 2.8rem; }
.head .eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--accent);
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .26em;
  line-height: 1.5;
}
.head .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.section--dark .head .eyebrow { color: var(--accent-soft); }
.section--dark .head .eyebrow .dot { background: var(--accent-soft); }
.head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-top: .9rem; color: var(--sumi); line-height: 1.5; font-weight: 800; }
/* 見出し下の短いアクセント線 */
.head h2::after {
  content: ""; display: block; width: 44px; height: 3px; border-radius: 2px;
  background: var(--accent); margin: 1.1rem auto 0;
}
.section--dark .head h2 { color: #fff; }
.section--dark .head h2::after { background: var(--accent-soft); }
.head p { color: var(--ink-muted); margin: 1rem 0 0; }
.section--dark .head p { color: rgba(255,255,255,.72); }

/* --------------------------------------------------------------- feature */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.feature + .feature { margin-top: 3.2rem; }
.feature--rev .feature__media { order: 2; }
.feature__media .ph { aspect-ratio: 5/4; }
.feature__img { width: 100%; height: auto; aspect-ratio: 5/4; object-fit: cover; display: block; border-radius: var(--radius); }
.feature__kicker {
  font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: .92rem;
  letter-spacing: .18em; line-height: 1.6;
}
.feature h3 { font-size: clamp(1.35rem, 3.4vw, 1.8rem); color: var(--sumi); margin: .5rem 0 .9rem; line-height: 1.5; font-weight: 800; }
.feature p { color: var(--ink-muted); }

/* ---------------------------------------------------------- course cards */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.course {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .2s ease;
}
.course:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
/* カード上部=濃色帯(学年ラベル)。鉄則:明色はこの濃色帯の上の文字にのみ使う */
.course__head { background: var(--sumi); color: #fff; padding: 1rem 1.25rem; }
.course__grade { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .2em; color: var(--accent-soft); }
.course__name { font-family: var(--font-head); font-weight: 800; font-size: 1.18rem; line-height: 1.5; margin-top: .15rem; }
.course__body { padding: 1.15rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.course__desc { color: var(--ink-muted); font-size: .92rem; margin: 0 0 1rem; }
.course__points { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .45rem; }
.course__points li { padding-left: 1.3em; position: relative; font-size: .9rem; color: var(--ink); }
.course__points li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .62em; height: .62em; border-radius: 50%;
  background: var(--sumi);
  box-shadow: inset 0 0 0 2px var(--sumi), inset 0 0 0 .35em #fff;
}
.course__price { margin-top: auto; border-top: 1px solid var(--line); padding-top: .9rem; font-size: .88rem; color: var(--ink-muted); }
.course__price b { font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: 1.35rem; margin-right: .1em; }
.course-note { text-align: center; color: var(--ink-muted); font-size: .85rem; margin-top: 1.7rem; }

/* --------------------------------------------------------------- results */
.results { max-width: 720px; margin-inline: auto; text-align: center; }
.results__schools { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem .7rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.results__schools li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem 1.1rem; font-family: var(--font-head); font-weight: 700;
  color: var(--sumi); font-size: .95rem; line-height: 1.5;
}
.results__schools li small { color: var(--ink-muted); font-weight: 500; margin-left: .35em; }
.results__note { color: var(--ink-muted); font-size: .85rem; }

/* ------------------------------------------------------------------ news */
.news-cta { text-align: center; max-width: 620px; margin-inline: auto; }
.news-cta p { color: rgba(255,255,255,.82); margin: .6rem 0 1.7rem; }
.news-list { list-style: none; padding: 0; margin: 0 auto 1.8rem; max-width: 560px; text-align: left; border-top: 1px solid rgba(255,255,255,.14); }
.news-list[hidden] { display: none; }
.news-list li { display: flex; gap: 1.1rem; align-items: baseline; padding: .85rem .2rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.news-list .d { font-family: var(--font-head); color: var(--accent-soft); font-size: .85rem; letter-spacing: .06em; flex: none; line-height: 1.6; }
.news-list .t { color: rgba(255,255,255,.92); text-decoration: none; font-size: .95rem; line-height: 1.6; min-width: 0; }
.news-list .t:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------------ info */
.info-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: .9rem .2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 8em; color: var(--sumi); font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.6; }
.info-table td { color: var(--ink-muted); }
.info-tel { color: var(--sumi); font-weight: 700; }
.info-map { aspect-ratio: 4/3; }
.info-map iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); display: block; }

/* ------------------------------------------------------------------ form */
.form-wrap { max-width: 640px; margin-inline: auto; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; color: var(--sumi); margin-bottom: .35rem; font-size: .95rem; }
.field .req { color: var(--accent); font-size: .78em; margin-left: .4rem; font-weight: 700; }
.field .opt { color: var(--ink-muted); font-size: .78em; margin-left: .4rem; font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--sumi);
  box-shadow: 0 0 0 3px rgba(22,53,94,.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.field small.hint { color: var(--ink-muted); font-size: .8rem; }
/* ハニーポット:視覚・スクリーンリーダーから隠す(ボット除け。空のまま送られる) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { text-align: center; margin-top: 1.7rem; }
.form-status { margin-top: 1.2rem; padding: .9rem 1rem; border-radius: 8px; font-size: .92rem; display: none; }
.form-status.is-ok { display: block; background: #EAF3EB; color: #2F6B3C; border: 1px solid #C6DECA; }
.form-status.is-err { display: block; background: #FAEDE7; color: #A04226; border: 1px solid #EDCFC0; }
.form-status ul { margin: .4rem 0 0; padding-left: 1.1rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #10233E; color: rgba(255,255,255,.72); padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer .brand__name { color: #fff; }
.site-footer h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: .1em; color: #fff; font-size: .95rem; line-height: 1.6; margin: 0 0 .8rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--accent-soft); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.3rem; font-size: .78rem; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { order: -1; aspect-ratio: 16/10; }
  .course-grid { grid-template-columns: 1fr; }
  .feature, .info-grid, .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .feature--rev .feature__media { order: 0; }

  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    transform: translateY(-140%); transition: transform .28s ease; box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a:not(.btn) { padding: .85rem .2rem; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: .9rem; }
  .nav-toggle { display: block; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .hero__cta .btn { flex: 1 1 auto; }
}

/* アニメーション抑制の希望を尊重 */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
