/* =========================================================
   フリースクールさかもと リニューアルサイト
   site.css — デザインシステム（2026 second pass：青基調）
   基準色：夜間学習／空の色を思わせる藍。差し色は看板の黄色1色。
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* 文字・地 */
  --ink:        #14263c;  /* 見出し・本文の基准（藍の最深色） */
  --ink-soft:   #3d5471;
  --muted:      #6c8098;
  --bg:         #f4f7fb;  /* 青みの用紙 */
  --surface:    #ffffff;
  --line:       #d9e3ee;
  --line-soft:  #eaf0f7;

  /* 基准の藍（緑系は使わない） */
  --blue-deep:  #094f68;  /* ヘッダー帯・濃色セクション */
  --blue:       #0e88be;  /* リンク・見出し強調（テーマカラー） */
  --blue-mid:   #0a6e9b;  /* ボタン・現在地 */
  --blue-tint:  #e3f2f9;
  --sky:        #8fcde9;  /* 濃色面での強調線 */
  --sky-tint:   #e9f5fb;

  /* 看板の黄色：視認サイン（電話・申込・合言葉）にだけ1画面1回 */
  --pop:        #f4b23e;
  --pop-soft:   #fdf2d9;
  --pop-deep:   #9a6b0b;

  --radius-s: 6px;
  --radius: 12px;
  --radius-l: 20px;
  --shadow-s: 0 1px 0 rgba(20, 38, 60, .04);
  --shadow: 0 10px 28px rgba(20, 38, 60, .10);
  --shadow-l: 0 20px 50px rgba(20, 38, 60, .16);

  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  --font-sans: "Zen Kaku Gothic New", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.95;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-s); }
a { color: var(--blue); text-decoration: none; }
a:hover, a:focus-visible { color: var(--blue-mid); }
:focus-visible { outline: 3px solid var(--blue-mid); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.45; letter-spacing: .03em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.4; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 0 0 .9em; }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); margin: 1.6em 0 .6em; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
strong { color: var(--ink); }

.skip-link {
  position: absolute; left: 0; top: 0; transform: translateY(-100%);
  background: var(--ink); color: #fff; padding: .6em 1.2em; z-index: 999; border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: min(var(--container), 100% - (var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--sky-tint); }
.section--paper { background: var(--surface); }
.section--dark { background: var(--blue-deep); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: var(--sky); }
.section--dark a:hover { color: var(--pop); }

.section-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
/* 節の分類ラベル（節自体を名前で示す。装飾ではない） */
.eyebrow {
  display: inline-block; font-family: var(--font-sans); font-size: .8rem; font-weight: 700;
  letter-spacing: .04em; color: var(--blue); margin: 0 0 .5em; padding-left: .7em;
  border-left: 3px solid var(--pop); line-height: 1.4;
}
.section--dark .eyebrow { color: #fff; border-left-color: var(--pop); }
.lead { font-size: 1rem; color: var(--ink-soft); max-width: 42em; }
.section--dark .lead { color: rgba(255,255,255,.86); }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 2em; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-sans); font-weight: 700; font-size: .95rem; line-height: 1.4; letter-spacing: .03em;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue-mid); color: #fff; box-shadow: 0 8px 18px rgba(14, 136, 190, .3); }
.btn--primary:hover { background: var(--blue-deep); color: #fff; box-shadow: 0 12px 24px rgba(9, 79, 104, .32); }
.btn--ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--line { background: #0f9d58; color: #fff; box-shadow: 0 8px 18px rgba(15, 157, 88, .26); }
.btn--line:hover { background: #0b7f46; color: #fff; }
.btn--tel { background: var(--pop); color: var(--blue-deep); box-shadow: 0 8px 18px rgba(244, 178, 62, .35); }
.btn--tel:hover { background: #e79f22; color: var(--blue-deep); }
.btn--outline-light { border-color: rgba(255,255,255,.65); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--blue-deep); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.15em 2.6em; font-size: 1.05rem; }
.btn--disabled, .btn[disabled], .btn[aria-disabled="true"] {
  background: var(--line-soft); color: var(--muted); box-shadow: none; cursor: not-allowed; pointer-events: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

/* ---------- Top bar ---------- */
.topbar { background: var(--blue-deep); color: #fff; font-size: .82rem; border-top: 3px solid var(--pop); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; padding-block: .25rem; }
.topbar a { color: #fff; }
.topbar__org { font-size: .82rem; letter-spacing: .03em; color: rgba(255, 255, 255, .82); }
.topbar__org strong { color: #fff; }
.topbar__contact { display: flex; align-items: center; gap: 1.2em; flex-wrap: wrap; }
.topbar__badge { background: var(--pop); color: var(--blue-deep); padding: .18em .8em; border-radius: 999px; font-weight: 700; }
@media (max-width: 560px) {
  .topbar { font-size: .76rem; }
  .topbar__org { font-size: .74rem; }
  .topbar__inner { gap: .35rem .8rem; }
}
@media (max-width: 430px) { .topbar__org { display: block; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-s); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 44px; height: 44px; flex: none; display: block; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 1.12rem; letter-spacing: .04em; }
.brand__sub { font-size: .68rem; letter-spacing: .06em; color: var(--muted); }

.nav__list { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: .6em .85em; border-radius: var(--radius-s);
  font-size: .9rem; font-weight: 600; color: var(--ink); letter-spacing: .02em; white-space: nowrap;
}
.nav__link:hover { background: var(--blue-tint); color: var(--blue-deep); }
.nav__item.has-sub { position: relative; }
.nav__item.has-sub > .nav__link::after { content: "▾"; font-size: .7em; margin-left: .4em; color: var(--muted); }
.nav__sub {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: var(--shadow); padding: .4rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__item.has-sub:hover > .nav__sub,
.nav__item.has-sub:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a { display: block; padding: .55em .9em; border-radius: var(--radius-s); font-size: .86rem; color: var(--ink-soft); }
.nav__sub a:hover { background: var(--blue-tint); color: var(--blue-deep); }
.nav__cta { margin-left: .6rem; }
.nav__cta .btn { padding: .7em 1.6em; font-size: .86rem; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius-s); cursor: pointer; padding: 0; position: relative; z-index: 110;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 50%; width: 22px; height: 2px; background: var(--ink);
  transform: translateX(-50%); transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle span { top: 50%; transform: translate(-50%, -50%); }
.menu-toggle span::before { top: -7px; left: 0; transform: none; }
.menu-toggle span::after { top: 7px; left: 0; transform: none; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* 幅が詰まった時だけ、ナビの文字を締めて1行に収める */
@media (max-width: 1160px) and (min-width: 1025px) {
  .site-header__inner { gap: .45rem; }
  .brand__sub { display: none; }
  .brand__name { font-size: 1.02rem; letter-spacing: .02em; }
  .brand__mark { width: 40px; height: 40px; }
  .nav__list { gap: 0; }
  .nav__link { font-size: .8rem; padding: .55em .58em; }
  .nav__cta { margin-left: .25rem; }
  .nav__cta .btn { padding: .62em 1.05em; font-size: .78rem; }
}

@media (max-width: 1024px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; top: 0; z-index: 100; padding: 6.5rem var(--gutter) 2rem;
    background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: translateY(0); }
  body.nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav__link { font-size: 1.05rem; padding: .9em 1em; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; background: transparent; border-radius: 0; padding: .2rem 0 .6rem 1.2rem; }
  .nav__sub a { font-size: .95rem; padding-left: 1.1em; position: relative; }
  .nav__sub a::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
  .nav__cta { margin: 1.2rem 0 .4rem; }
  .nav__cta .btn { width: 100%; padding: 1.05em; font-size: 1rem; }
}

/* ---------- Hero (home)：時間割掲示が主役 ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--blue-deep);
  border-bottom: 6px solid var(--pop);
}
/* 方眼（時間割の用紙目地）。装飾だが「時間割」という主題に紐づく */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(255,255,255,.07) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.07) 0 1px, transparent 1px 32px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.25));
}
.hero__blob { display: none; }
.hero__inner {
  position: relative; display: grid; gap: clamp(1.6rem, 4vw, 3.4rem);
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center;
  padding-block: clamp(2.8rem, 6vw, 4.5rem) clamp(4rem, 7vw, 5.5rem);
}
.hero__eyebrow {
  display: inline-block; font-family: var(--font-sans); font-size: .82rem; font-weight: 700;
  letter-spacing: .04em; color: var(--pop); margin-bottom: 1em;
}
.hero__title { font-size: clamp(1.9rem, 3.3vw, 2.6rem); line-height: 1.5; letter-spacing: 0; margin: 0 0 .65em; }
.hero__title em { font-style: normal; border-bottom: 6px solid var(--pop); }
.hero__lead { color: rgba(255,255,255,.9); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.hero__note { margin-top: .9rem; max-width: 34em; font-size: .85rem; color: rgba(255,255,255,.78); }
.hero__meta li { list-style: none; font-size: .8rem; padding: .4em 1em; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); margin: 0; }

/* 掲示された時間割 */
.hero__media { position: relative; }
.board {
  position: relative; background: var(--surface); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-l);
  padding: 1.1rem 1.3rem 1.3rem; transform: rotate(-1.2deg);
  border-top: 6px solid var(--pop);
}
.board::before, .board::after {
  content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff, var(--pop) 45%, #c9871a 100%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .35);
}
.board::before { left: 22%; }
.board::after { right: 22%; }
.board__label {
  font-family: var(--font-serif); font-weight: 700; font-size: 1rem; margin: 0 0 .8em;
  display: flex; align-items: baseline; gap: .6em; flex-wrap: wrap;
}
.board__label .board__lead-word { font-family: var(--font-sans); font-size: .74rem; font-weight: 700; letter-spacing: .06em; color: var(--pop-deep); }
.board__list { list-style: none; margin: 0; padding: 0; }
.board__list li {
  display: grid; grid-template-columns: 7.2em 1fr; gap: .9rem; align-items: baseline;
  padding: .5em .2em; border-bottom: 1px solid var(--line-soft); font-size: .9rem;
}
.board__list li:last-child { border-bottom: 0; }
.board__list strong { font-weight: 700; color: var(--ink-soft); font-size: .85rem; }
.board__list li.is-blank strong { color: var(--pop-deep); }
.board__list li.is-blank { background: var(--pop-soft); border-radius: var(--radius-s); padding-inline: .5em; }
.board__list li.is-club { color: var(--blue-mid); font-weight: 700; }
.board__foot { margin: .9em 0 0; font-size: .8rem; color: var(--muted); }
.board--img { padding: 1.1rem 1.1rem 1.2rem; }
.board--img img { display: block; width: 100%; height: auto; border-radius: var(--radius-s); }
.hero__chip {
  position: relative; z-index: 2; margin: -26px 10px 0 auto; background: var(--surface); color: var(--blue-deep);
  border-radius: var(--radius); padding: .8em 1.2em; box-shadow: var(--shadow-l);
  font-weight: 700; font-size: .88rem; line-height: 1.55; max-width: 22em; border-left: 5px solid var(--pop);
  transform: rotate(1.6deg);
}
.hero__chip small { display: block; font-weight: 400; font-size: .74rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .board { animation: board-drop .7s var(--ease) both; }
  .board__list li { animation: cell-in .5s var(--ease) both; }
  .board__list li:nth-child(1) { animation-delay: .18s; }
  .board__list li:nth-child(2) { animation-delay: .25s; }
  .board__list li:nth-child(3) { animation-delay: .32s; }
  .board__list li:nth-child(4) { animation-delay: .39s; }
  .board__list li:nth-child(5) { animation-delay: .46s; }
  .board__list li:nth-child(6) { animation-delay: .53s; }
  .board__list li:nth-child(7) { animation-delay: .6s; }
}
@keyframes board-drop { from { opacity: 0; transform: translateY(-18px) rotate(-3.5deg); } }
@keyframes cell-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 480px) {
  .board { padding: .9rem 1rem 1.1rem; }
  .board__list li { grid-template-columns: 1fr; gap: .1em; font-size: .88rem; }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .board { transform: none; }
  .hero__chip { margin: -18px auto 0; max-width: none; transform: none; }
}

/* ---------- Page header (underpages) ---------- */
.page-hero { position: relative; background: var(--blue-deep); color: #fff; padding-block: clamp(2.6rem, 6vw, 4.2rem); border-bottom: 6px solid var(--pop); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(255,255,255,.06) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.06) 0 1px, transparent 1px 32px);
  mask-image: linear-gradient(to right, rgba(0,0,0,.85), transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: .2em 0 .4em; }
.page-hero .lead { color: rgba(255,255,255,.88); }
.breadcrumb { font-size: .8rem; letter-spacing: .02em; color: rgba(255,255,255,.75); }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb ol { display: flex; gap: .5em; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin-right: .5em; color: rgba(255,255,255,.5); }

/* ---------- Cards（枠線主体。影と浮上は使わない） ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 1.9rem);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.card:hover { border-color: var(--blue-mid); }
.card__icon { font-size: 1.8rem; line-height: 1; margin-bottom: .6em; }
.card h3 { margin: 0 0 .5em; font-size: 1.22rem; line-height: 1.5; }
.card p { margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.85; }
.card--link { display: block; color: var(--ink); }
.card--link:hover { color: var(--ink); }
.card__more { display: inline-block; margin-top: 1em; font-size: .82rem; font-weight: 700; color: var(--blue-mid); border-bottom: 1px solid transparent; }
.card--link:hover .card__more { border-bottom-color: var(--blue-mid); }

.card--photo { padding: 0; overflow: hidden; }
.card--photo img { border-radius: 0; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card--photo .card__body { padding: clamp(1.1rem, 3vw, 1.6rem); }

/* 特長（順序のない項目なので番号は使わず見出しだけで示す） */
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); border-top: 4px solid var(--blue-mid); }
.feature__num { font-family: var(--font-serif); font-size: 1.9rem; color: var(--blue-tint); -webkit-text-stroke: 1px var(--blue-mid); line-height: 1; }
.feature h3 { margin: .4em 0 .5em; }
.feature p { color: var(--ink-soft); font-size: .93rem; margin: 0; }

/* 手順（実際の手順なので番号を使う） */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem 1.2rem 4.4rem; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 1.3rem; top: 1.1rem;
  width: 1.9em; height: 1.9em; display: grid; place-content: center;
  font-family: var(--font-sans); font-size: .95rem; color: var(--blue-deep); font-weight: 700;
  background: var(--pop); border-radius: 50%;
}
.steps strong { display: block; margin-bottom: .3em; }
.steps p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* Schedule table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.sched th, table.sched td { padding: .9em 1.2em; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: .93rem; }
table.sched th { background: var(--blue-tint); color: var(--blue-deep); font-weight: 700; white-space: nowrap; width: 12em; }
table.sched tr:last-child th, table.sched tr:last-child td { border-bottom: 0; }
table.sched td.is-accent { color: var(--pop-deep); font-weight: 700; background: var(--pop-soft); }
@media (max-width: 680px) {
  table.sched.sched--stack thead { display: none; }
  table.sched.sched--stack th[scope="row"] { width: auto; white-space: normal; }
  table.sched.sched--stack td { display: block; }
  table.sched.sched--stack td[data-label]::before {
    content: attr(data-label); display: block; font-size: .78rem; font-weight: 700;
    color: var(--blue-deep); letter-spacing: .04em; margin-bottom: .3em;
  }
  table.sched.sched--stack tbody tr:last-child th, table.sched.sched--stack tbody tr:last-child td { border-bottom: 0; }
}

/* Price table */
table.price { min-width: 480px; }
table.price th, table.price td { padding: 1.1em 1.2em; text-align: center; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
table.price thead th { background: var(--blue-deep); color: #fff; font-family: var(--font-serif); border-bottom: 4px solid var(--pop); }
table.price .amount { font-family: var(--font-serif); font-size: 1.3rem; color: var(--blue-deep); display: block; margin-top: .3em; }
table.price .amount small { font-size: .7rem; color: var(--muted); font-family: var(--font-sans); }

/* ---------- Voice / testimonial ---------- */
.voice { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--blue-mid); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
.voice__label { display: inline-block; background: var(--pop-soft); color: var(--pop-deep); font-size: .78rem; font-weight: 700; padding: .3em 1em; border-radius: 999px; margin-bottom: 1em; letter-spacing: .04em; }
.voice p:last-child { margin-bottom: 0; }
.voice__body { font-size: .95rem; color: var(--ink-soft); white-space: pre-line; }
.voice--short p { font-size: 1rem; }

/* ---------- FAQ accordion ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq__item + .faq__item { border-top: 1px solid var(--line-soft); }
.faq__q {
  width: 100%; display: flex; gap: 1rem; align-items: baseline; text-align: left;
  background: none; border: 0; padding: 1.3rem 1.5rem; cursor: pointer;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.7;
}
.faq__q:hover { background: var(--blue-tint); }
.faq__q .mark { flex: none; font-family: var(--font-serif); color: var(--blue-deep); font-size: 1.15rem; }
.faq__q .icon { margin-left: auto; flex: none; width: 1.4em; height: 1.4em; position: relative; align-self: center; }
.faq__q .icon::before, .faq__q .icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--blue-mid); transition: transform .3s var(--ease); }
.faq__q .icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq__q .icon::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq__q[aria-expanded="true"] .icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__a { margin: 0; padding: 0 1.5rem 1.4rem 3.2rem; color: var(--ink-soft); font-size: .95rem; }
.faq__item.is-closed .faq__a { display: none; }

/* ---------- Places (4 locations)：蓝の濃淡で区別 ---------- */
.place-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.place-card:hover { border-color: var(--accent, var(--blue-mid)); box-shadow: var(--shadow); color: var(--ink); }
.place-card__head { padding: 1.3rem 1.5rem; background: var(--accent, var(--blue-mid)); color: #fff; }
.place-card__head h3 { margin: 0; font-size: 1.15rem; color: #fff; }
.place-card__head span { display: block; font-size: .78rem; letter-spacing: .04em; color: rgba(255,255,255,.75); margin-bottom: .3em; }
.place-card__body { padding: 1.3rem 1.5rem; font-size: .92rem; color: var(--ink-soft); }
.place-card__body p { margin: 0; }

/* ---------- Logo / partner strip ---------- */
.partners { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2rem); align-items: center; }
.partner-chip {
  display: inline-flex; align-items: center; gap: .7em; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: .7em 1.4em; font-weight: 700; font-size: .9rem; color: var(--ink-soft);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.partner-chip:hover { border-color: var(--blue-mid); color: var(--blue-deep); }
.partner-logos { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 2.6rem); align-items: center; }
.partner-logos a { display: inline-flex; align-items: center; }
.partner-logos img { width: min(210px, 100%); height: auto; }
.badge-sakura {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(1.4rem, 3vw, 2rem); border-left: 6px solid var(--pop);
}
.badge-sakura__seal {
  flex: none; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--blue-tint) 60%, var(--blue-mid) 100%);
  border: 3px solid var(--blue-mid); color: var(--blue-deep);
  display: grid; place-content: center; text-align: center; font-family: var(--font-serif); font-weight: 700; font-size: .82rem; line-height: 1.4;
}
.badge-sakura h3 { margin: 0 0 .3em; }
.badge-sakura p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue-deep); color: #fff; border-radius: var(--radius-l); padding: clamp(2rem, 5vw, 3.4rem); border: 1px solid var(--blue-deep); border-bottom: 8px solid var(--pop); box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { color: rgba(255,255,255,.92); }
.cta-band .btn--white { background: var(--pop); color: var(--blue-deep); }
.cta-band .btn--white:hover { background: #ffd27a; color: var(--blue-deep); }

/* ---------- Info blocks ---------- */
.info-line { display: flex; flex-wrap: wrap; gap: .8rem 2.5rem; font-size: .95rem; }
.info-line div { display: flex; gap: .6em; align-items: baseline; }
.info-line dt, .info-line .k { color: var(--muted); font-size: .8rem; letter-spacing: .04em; }
.note {
  background: var(--blue-tint); border-left: 5px solid var(--blue-mid); border-radius: var(--radius-s);
  padding: 1.1rem 1.4rem; font-size: .92rem; color: var(--ink-soft); margin-block: 1.4rem;
}
.note strong { color: var(--ink); }
.notice-soon {
  display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 2px dashed var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.6rem; color: var(--muted); font-size: .92rem;
}

/* Contact big buttons */
.contact-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.contact-card {
  display: flex; flex-direction: column; gap: .3rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(1.6rem, 4vw, 2.4rem); text-align: left; color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-card:hover { box-shadow: var(--shadow); color: var(--ink); border-color: var(--accent, var(--blue-mid)); }
.contact-card__icon { font-size: 2rem; margin-bottom: .3em; }
.contact-card__kind { font-size: .78rem; letter-spacing: .04em; color: var(--muted); }
.contact-card__value { font-family: var(--font-serif); font-size: clamp(1.25rem, 3vw, 1.7rem); line-height: 1.4; color: var(--blue-deep); }
.contact-card--call { border-left: 8px solid var(--pop); }
.contact-card__note { font-size: .85rem; color: var(--muted); margin: 0; }
.contact-card__go { margin-top: 1em; font-size: .85rem; font-weight: 700; color: var(--blue-mid); }
.contact-card--muted { background: var(--line-soft); border-style: dashed; }
.contact-card--muted .contact-card__value { color: var(--muted); font-size: 1.15rem; }

/* Map */
.map-frame { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 16/9; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: rgba(255,255,255,.85); font-size: .88rem; padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; margin-top: auto; border-top: 6px solid var(--pop); }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 1em; letter-spacing: .03em; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--pop); }
.footer-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { padding: .3em 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; align-items: center; gap: .8rem; color: #fff; margin-bottom: 1em; }
.footer-brand__mark { width: 40px; height: 40px; flex: none; display: block; object-fit: contain; }
.footer-brand strong { color: #fff; letter-spacing: .05em; }
.footer-bottom { margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.18);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .78rem; color: rgba(255,255,255,.6); }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-content: center; font-size: 1.1rem; }
.social a:hover { background: var(--pop); border-color: var(--pop); color: var(--blue-deep); }

/* ---------- FAB (mobile sticky CTA) ---------- */
.fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: flex; gap: .6rem; }
.fab .btn { padding: .85em 1.5em; font-size: .88rem; box-shadow: var(--shadow); }
@media (min-width: 901px) { .fab { display: none; } }
body { padding-bottom: 0; }
@media (max-width: 900px) { body { padding-bottom: 4.5rem; } }
@media (max-width: 600px) {
  body { padding-bottom: 7.5rem; }
  .fab { flex-direction: column-reverse; align-items: flex-end; gap: .45rem; }
  .fab .btn { width: min(62vw, 240px); }
}

/* ---------- Reveal animation（距離は短く、控えめに） ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--reveal-delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Article / prose ---------- */
.prose { max-width: 42em; }
.prose h3 { color: var(--blue-deep); }
.prose .quote { font-family: var(--font-serif); font-size: 1.45rem; color: var(--blue-deep); text-align: center; line-height: 2; margin: 1.6em 0; }
.prose .quote em { font-style: normal; border-bottom: 6px solid var(--pop); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1.2em 0; }
.tag-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .45em 1.2em; font-size: .86rem; font-weight: 600; color: var(--ink-soft); }
.check-list { list-style: none; padding: 0; margin: 1.2em 0; }
.check-list li { padding: .55em 0 .55em 2em; position: relative; border-bottom: 1px dashed var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: .3em; color: var(--blue-mid); font-weight: 700; }
.figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; margin-block: 1.5rem; }
figure { margin: 0; }
figcaption { font-size: .8rem; color: var(--muted); margin-top: .5em; }

/* 本文に緩急をつける2種の行（小さい案内行／黄色バーの主張行） */
.soft-line { font-size: .92rem; color: var(--muted); margin-bottom: .5em; }
.strong-line {
  font-family: var(--font-serif); color: var(--blue-deep); font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem); line-height: 1.75;
  padding-left: .85em; border-left: 4px solid var(--pop); margin: 0 0 1.1em;
}
.strong-line em { font-style: normal; box-shadow: inset 0 -.42em var(--pop-soft); }

/* 校章のことば。枠や飾りは使わず、文字の大きさ・字間・強さだけで見せる */
.motto {
  margin: 1.5em 0 .35em;
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(1.3rem, 2.8vw, 1.75rem); line-height: 1.95; letter-spacing: .1em;
  color: var(--blue-deep);
}
.motto__mark { box-shadow: inset 0 -.32em var(--pop-soft); }
.motto__note {
  margin: 0 0 1.2em; font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; color: var(--muted);
}

/* ---------- Misc ---------- */
.two-col { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.two-col--text-media { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
@media (max-width: 900px) { .two-col, .two-col--text-media { grid-template-columns: 1fr; } }
.text-center { text-align: center; }
.mt-l { margin-top: clamp(2rem, 5vw, 3rem); }
.mt-m { margin-top: 1.2rem; }
.small { font-size: .84rem; color: var(--muted); }
.page-footer-cta { padding-block: clamp(2.5rem, 6vw, 4rem); }

/* ---------- Event band / dated event cards ---------- */
.event-band {
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-left: 8px solid var(--pop);
  border-radius: var(--radius); padding: 1rem 1.4rem; margin-block: 1.6rem;
}
.event-band__tag {
  flex: none; background: var(--pop); color: var(--blue-deep); border-radius: 999px;
  padding: .35em 1.1em; font-size: .76rem; font-weight: 700; letter-spacing: .04em;
}
.event-band__text { margin: 0; font-size: .95rem; font-weight: 600; }
.event-band__text small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: .2em; }
.event-band__link { margin-left: auto; font-weight: 700; font-size: .88rem; white-space: nowrap; }

.event-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.event-card__media { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--blue-tint); }
.event-card__media--pad { object-fit: contain; padding: 1rem; background: var(--blue-tint); }
.event-card__body { padding: 1.1rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.event-card__date { font-size: .78rem; letter-spacing: .04em; color: var(--pop-deep); font-weight: 700; }
.event-card__body h3 { margin: 0; font-size: 1.02rem; }
.event-card__body p { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.section--dark .event-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
.section--dark .event-card__body h3 { color: #fff; }
.section--dark .event-card__body p { color: rgba(255,255,255,.78); }
.section--dark .event-card__date { color: var(--pop); }

/* ---------- Image helpers ---------- */
.img-cover, .img-cover img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
#learning .figure-row img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- In-page jump nav ---------- */
.jump-nav { margin-top: 1.4rem; }
.jump-nav .tag-list { margin: 0; }
.jump-nav .tag-list a { display: block; color: var(--blue-deep); }
.jump-nav .tag-list li:hover { border-color: var(--blue-mid); background: var(--blue-tint); }
section[id], figure[id] { scroll-margin-top: 84px; }
