/* ==========================================================================
   V4「きろく」— 埼玉スウィン加須校
   テーゼ: ページ全体を「一人の子の進級記録（連絡帳）」として設計する。
   シグネチャー: 成長記録レール ＋ 赤い合格スタンプ（ハンコ）
   Palette: 紙白 / インク紺 / プール青 / ハンコ赤（一点集中）
   ========================================================================== */

:root {
  --paper:      #FDFCF8;   /* 記録帳の紙 */
  --paper-line: #E7E4DA;   /* 紙の罫線 */
  --ink:        #16283C;   /* インク紺（見出し・文字） */
  --body:       #44566B;   /* 本文 */
  --pool:       #0E86C8;   /* プール青（大きい文字・面のみ） */
  --pool-deep:  #0A5A94;   /* リンク・小さめ文字用の青 */
  --pool-pale:  #E9F4FB;   /* 淡い水色の面 */
  --stamp:      #C21E35;   /* ハンコ赤: CTA・合格印だけが持つ色 */
  --stamp-soft: #D7263D;   /* 装飾用の明るい赤（大きな要素のみ） */

  --font-base:  "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-voice: "Zen Old Mincho", serif;          /* 子どもの一言だけ */
  --font-hand:  "Yusei Magic", sans-serif;        /* 先生の欄外メモだけ */
  --font-num:   "Archivo", "Zen Kaku Gothic New", sans-serif;

  --shadow-album: 0 10px 30px rgba(22, 40, 60, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1080px;
}

/* ----- base ----- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pool-deep); text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.35; font-weight: 900; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.num { font-family: var(--font-num); font-weight: 800; letter-spacing: 0.01em; }
.sp-only { display: none; }

:focus-visible {
  outline: 3px solid var(--pool-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 6px;
  transition: top 0.2s;
}
.skip:focus-visible { top: 12px; }

/* ----- 手書き（先生の欄外メモ）と 子どもの一言 ----- */
.hand {
  font-family: var(--font-hand);
  font-weight: 400;
  color: var(--pool-deep);
  letter-spacing: 0.04em;
}
.voice {
  font-family: var(--font-voice);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.4vw, 1.8rem);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin: 10px 0 18px;
}

/* ----- 合格スタンプ（シグネチャー） ----- */
.stamp {
  display: inline-grid;
  place-items: center;
  width: 74px; height: 74px;
  border: 3px solid var(--stamp-soft);
  border-radius: 50%;
  color: var(--stamp-soft);
  transform: rotate(-12deg);
  background: rgba(253, 252, 248, 0.85);
}
.stamp > span {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  line-height: 1;
}
.stamp::after {
  content: "";
  position: absolute; inset: 3px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.55;
}
.stamp { position: relative; }

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  border: 0; border-radius: 10px;
  font-family: var(--font-base); font-weight: 900; font-size: 1rem; line-height: 1.2;
  cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-stamp {
  background: var(--stamp); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(194, 30, 53, 0.65);
}
.btn-stamp:hover { background: #A81628; transform: translateY(-2px); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 0.9rem; border-radius: 8px; }
.btn-lg { min-height: 60px; padding: 16px 34px; font-size: 1.08rem; }

/* ----- header ----- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 252, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-line);
}
.head-inner { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; color: var(--pool); flex: none; }
.brand-text { line-height: 1.2; }
.brand-text strong { display: block; font-size: 1.02rem; font-weight: 900; letter-spacing: 0.03em; }
.brand-text span { display: block; font-size: 0.68rem; color: var(--body); letter-spacing: 0.06em; }
.head-nav { display: flex; gap: 20px; margin-left: auto; }
.head-nav a { color: var(--ink); font-weight: 700; font-size: 0.9rem; padding: 8px 2px; }
.head-nav a:hover { color: var(--pool-deep); }
.head-actions { display: flex; align-items: center; gap: 14px; }
.head-tel { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 1.02rem; }
.head-tel svg { width: 16px; height: 16px; color: var(--pool-deep); }

/* ----- hero ----- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.kicker {
  font-family: var(--font-num);
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em;
  color: var(--pool-deep); text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(2.5rem, 6.4vw, 4.2rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.hero-title em { font-style: normal; color: var(--pool); font-size: 1.12em; }
.hero-lead { margin-top: 22px; max-width: 34em; font-size: 1.04rem; }
.hero-lead strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 24px; }
.hero-facts li {
  position: relative; padding-left: 16px;
  font-size: 0.88rem; color: var(--body);
}
.hero-facts li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pool);
}
.hero-facts strong { color: var(--ink); }

/* ----- アルバム写真（白枠・微回転） ----- */
.album {
  position: relative;
  background: #fff;
  padding: 12px 12px 8px;
  box-shadow: var(--shadow-album);
  border-radius: 4px;
}
.album img { border-radius: 2px; width: 100%; object-fit: cover; }
.album figcaption {
  padding: 10px 4px 6px;
  font-size: 0.95rem;
  text-align: center;
}
.album-hero { transform: rotate(1.6deg); }
.album-hero img { aspect-ratio: 4 / 3; }
.album-sm { max-width: 460px; transform: rotate(-1.2deg); }
.album-sm img { aspect-ratio: 4 / 3; }
.stamp-photo { position: absolute; right: -18px; top: -20px; }

/* ==========================================================================
   SIGNATURE: 成長記録レール
   ========================================================================== */
.journey { padding: clamp(64px, 9vw, 120px) 0; }
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); letter-spacing: 0.02em; }
.sec-head h2 .num { color: var(--pool); font-size: 1.1em; }
.sec-lead { margin-top: 16px; font-size: 1rem; }

.rail {
  position: relative;
  padding-left: 52px;
  display: grid;
  gap: clamp(48px, 7vw, 80px);
}
/* 紙の綴じ線＝点線レール */
.rail::before {
  content: "";
  position: absolute; left: 17px; top: 8px; bottom: 8px;
  border-left: 3px dotted var(--pool);
  opacity: 0.5;
}
.chapter { position: relative; }
.rail-node { position: absolute; left: -52px; top: -6px; }
.stamp-rail { width: 68px; height: 68px; background: var(--paper); }
.stamp-goal { color: var(--stamp); border-color: var(--stamp); background: #fff; }
.stamp-goal > span { font-weight: 400; }

.chapter-body { max-width: 660px; }
.chip {
  display: inline-block;
  padding: 5px 12px;
  border: 1.5px solid var(--pool-deep);
  border-radius: 999px;
  color: var(--pool-deep);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; line-height: 1.4;
}
.chip-goal { border-color: var(--stamp); color: var(--stamp); }
.chapter .album-sm { margin: 6px 0 20px; }
.chapter-text { max-width: 38em; }
.chapter-text strong { color: var(--ink); }
.goal-text { font-size: 1.05rem; margin-top: 14px; }

/* ==========================================================================
   WHY: 欄外メモ（連絡帳の点線罫）
   ========================================================================== */
.why { background: var(--pool-pale); padding: clamp(64px, 9vw, 110px) 0; }
.notes {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 44px);
}
.note { padding-top: 18px; border-top: 2px dotted var(--pool); }
.note-icon { width: 30px; height: 30px; color: var(--pool-deep); }
.note-label { margin: 12px 0 6px; font-size: 1.05rem; }
.note h3 { font-size: 1.12rem; margin-bottom: 8px; }
.note p:not(.note-label) { font-size: 0.92rem; }

/* ==========================================================================
   COURSES
   ========================================================================== */
.courses { padding: clamp(64px, 9vw, 110px) 0; }
.course-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.course {
  position: relative;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 24px 22px 22px;
  display: grid; align-content: start; gap: 10px;
}
.course h3 { font-size: 1.2rem; }
.course-text { font-size: 0.88rem; }
.course-main { border: 2px solid var(--pool); }
.course-tag {
  position: absolute; top: -12px; left: 18px;
  padding: 3px 10px;
  background: var(--pool); color: #fff;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
}
.price { margin-top: 4px; color: var(--ink); }
.price .num { font-size: 1.7rem; letter-spacing: 0; }
.price small { font-size: 0.8rem; color: var(--body); font-weight: 700; margin-left: 2px; }
.price-ask { font-size: 0.88rem; font-weight: 700; color: var(--pool-deep); align-self: end; }
.course-note { margin-top: 18px; font-size: 0.82rem; color: var(--body); }

/* ==========================================================================
   FACILITY / BUS / NEWS
   ========================================================================== */
.facility { padding: 0 0 clamp(56px, 8vw, 96px); }
.facility-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 34px);
}
.facility-strip .album-strip { transform: rotate(0deg); }
.facility-strip li:nth-child(1) .album-strip { transform: rotate(-1deg); }
.facility-strip li:nth-child(3) .album-strip { transform: rotate(1.2deg); }
.album-strip img { aspect-ratio: 3 / 2; }

.bus { background: var(--pool-pale); padding: clamp(64px, 9vw, 110px) 0; }
.bus-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.bus h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.areas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.areas li {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid rgba(14, 134, 200, 0.35);
  border-radius: 999px;
  color: var(--ink); font-weight: 700; font-size: 0.9rem;
}
.bus-note { margin-top: 18px; font-size: 0.82rem; }
.bus .album-sm { justify-self: center; }

.news { padding: clamp(56px, 8vw, 96px) 0; }
.news .sec-head { margin-bottom: 22px; }
.news-list { max-width: 760px; display: grid; }
.news-list li {
  display: grid; grid-template-columns: 92px 1fr;
  gap: 18px; align-items: baseline;
  padding: 16px 4px;
  border-bottom: 2px dotted var(--paper-line);
}
.news-list li:first-child { border-top: 2px dotted var(--paper-line); }
.news-list time, .news-always { color: var(--pool-deep); font-size: 0.88rem; font-weight: 600; }
.news-list p { font-size: 0.95rem; }
.news-list a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   TRIAL CTA（巨大スタンプの透かし）
   ========================================================================== */
.trial {
  position: relative;
  overflow: hidden;
  background: var(--pool-pale);
  border-top: 3px dotted var(--pool);
  padding: clamp(72px, 10vw, 128px) 0;
  text-align: center;
}
.stamp-bg {
  position: absolute;
  right: -60px; top: 50%;
  width: 340px; height: 340px;
  margin-top: -170px;
  border-width: 6px;
  opacity: 0.13;
  pointer-events: none;
}
.stamp-bg > span { font-size: 5.4rem; }
.trial-inner { position: relative; max-width: 720px; }
.trial h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
.trial h2 .num { color: var(--stamp); font-size: 1.1em; }
.trial-lead { margin: 18px auto 0; max-width: 32em; font-size: 1.02rem; }
.trial-lead strong { color: var(--ink); }
.trial-steps {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 28px; margin: 28px 0 10px;
}
.trial-steps li {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; color: var(--ink); font-size: 0.94rem;
}
.trial-steps .num {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border: 2px solid var(--ink); border-radius: 50%;
  font-size: 0.88rem;
}
.trial-actions { margin-top: 26px; display: grid; justify-items: center; gap: 14px; }
.trial-hours { font-family: var(--font-num); font-weight: 600; font-size: 0.86rem; color: var(--body); letter-spacing: 0.03em; }

/* ----- footer ----- */
.site-foot { background: var(--ink); color: rgba(255, 255, 255, 0.82); padding: clamp(48px, 6vw, 72px) 0 28px; }
.foot-inner {
  display: grid; grid-template-columns: 1.2fr 1.2fr 0.8fr;
  gap: clamp(28px, 5vw, 56px);
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.foot-name { color: #fff; font-size: 1.06rem; margin-bottom: 8px; }
.foot-brand p, .foot-info p { font-size: 0.88rem; line-height: 2; }
.foot-info a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-nav { display: grid; gap: 8px; align-content: start; }
.foot-nav a { color: rgba(255, 255, 255, 0.82); font-size: 0.88rem; }
.foot-nav a:hover { color: #fff; }
.foot-copy { padding-top: 22px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); }
.site-foot :focus-visible { outline-color: #fff; }

/* ----- reveal ----- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   responsive
   ========================================================================== */
@media (min-width: 961px) {
  /* 記録帳の見開き: 左=記録テキスト / 右=アルバム写真 */
  .chapter-body {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-areas:
      "chip  photo"
      "voice photo"
      "text  photo";
    column-gap: clamp(36px, 5vw, 64px);
    align-items: start;
    align-content: start;
  }
  .chapter-body > .chip { grid-area: chip; justify-self: start; }
  .chapter-body > .voice { grid-area: voice; }
  .chapter-body > .album-sm { grid-area: photo; margin: 0; }
  .chapter-body > .chapter-text { grid-area: text; }
}

@media (max-width: 960px) {
  .head-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .album-hero { max-width: 560px; margin-inline: auto; }
  .notes { grid-template-columns: 1fr; gap: 30px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .bus-inner { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .sp-only { display: inline; }
  .head-tel { display: none; }
  .head-inner { gap: 12px; }
  .hero { padding-top: 36px; }
  .hero-actions .btn { width: 100%; }
  .stamp-photo { right: -8px; top: -14px; width: 64px; height: 64px; }
  .rail { padding-left: 42px; }
  .rail::before { left: 13px; }
  .rail-node { left: -42px; }
  .stamp-rail { width: 54px; height: 54px; }
  .stamp-rail > span { font-size: 0.92rem; }
  .course-grid { grid-template-columns: 1fr; }
  .course-main { order: -1; }
  .facility-strip { grid-template-columns: 1fr; }
  .news-list li { grid-template-columns: 1fr; gap: 2px; }
  .stamp-bg { right: -120px; width: 280px; height: 280px; margin-top: -140px; }
  .trial-steps { flex-direction: column; align-items: center; gap: 12px; }
  .btn-lg { width: 100%; }
}

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