/* 038 そらいろ学習塾 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #f7fbff;
  --c-ink: #10233f;
  --c-blue: #2b7bff;
  --c-btn: #1a5fd6;
  --c-accent-text: #1a5fd6;
  --c-marker: #ffe066;
  --c-k1: #dbeafe;
  --c-k2: #fff3c4;
  --c-k3: #d5f5e8;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-rule: #d3e3f8;
  --font: "BIZ UDPGothic", sans-serif;
  --font-head: "M PLUS Rounded 1c", sans-serif;
  --font-pen: "Klee One", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.9; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; transition: background-color .6s; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.label { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: .14em; color: var(--c-accent-text); margin-bottom: 10px; }
.h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 4vw, 44px); line-height: 1.4; color: var(--c-ink); margin-bottom: 32px; }
.note { margin-top: 20px; font-size: 15px; color: var(--c-sub); }
/* 蛍光ペン（完成形は引いた状態。動く版は JS が 0% から伸ばす） */
.marker { color: inherit; background: linear-gradient(transparent 56%, var(--c-marker) 56%, var(--c-marker) 94%, transparent 94%) no-repeat 0 0 / 100% 100%; padding: 0 .08em; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-family: var(--font-head); font-weight: 800; text-decoration: none; white-space: nowrap; flex: none; transition: transform .2s, box-shadow .2s, background-color .2s; }
.btn--blue { background: var(--c-btn); color: #fff; box-shadow: 0 4px 0 #0f3f99; }
.btn--blue:hover { transform: translateY(2px); box-shadow: 0 2px 0 #0f3f99; }
.btn--line { background: #fff; color: var(--c-ink); border: 2px solid var(--c-ink); }
.btn--line:hover { background: var(--c-k1); }
.btn--yellow { background: var(--c-marker); color: var(--c-ink); box-shadow: 0 4px 0 #c9a400; }
.btn--yellow:hover { transform: translateY(2px); box-shadow: 0 2px 0 #c9a400; }
.btn--big { min-height: 60px; padding: 0 30px; font-size: 17px; }

/* ヘッダー */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; gap: 20px; height: 68px; padding: 0 12px 0 16px; background: rgba(255, 255, 255, .95); border-bottom: 2px solid var(--c-k1); }
.logo { display: flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; color: var(--c-ink); white-space: nowrap; flex: none; font-family: var(--font-head); font-weight: 800; font-size: 21px; }
.logo__mark { width: 36px; height: 36px; }
.logo small { font-size: 15px; margin-left: 4px; color: var(--c-accent-text); }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 16px; font-size: 15px; box-shadow: none; }
@media (min-width: 1080px) {
  .header__inner { height: 80px; padding: 0 5vw; }
  .gnav { display: flex; gap: 28px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; font-family: var(--font-head); font-weight: 800; text-decoration: none; color: var(--c-ink); }
  .gnav a:hover { color: var(--c-accent-text); }
  .header__btn { margin-left: 0; padding: 0 24px; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--c-k1); color: var(--c-ink); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 20px; height: 3px; border-radius: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -6px; } .spmenu__bar::after { top: 6px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 4px solid var(--c-btn); padding: 8px 20px 20px; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(16, 35, 63, .1); }
.spmenu__nav a { display: flex; align-items: center; min-height: 54px; font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--c-ink); text-decoration: none; border-bottom: 2px dashed var(--c-k1); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== 演出①（E06）：ノートに書いていく ===== */
.hero { position: relative; padding: 108px 20px 72px; overflow: hidden; background-color: #fff;
  background-image: linear-gradient(90deg, transparent 40px, #ffc2cf 40px, #ffc2cf 42px, transparent 42px), repeating-linear-gradient(transparent 0 39px, var(--c-rule) 39px 40px); }
.hero__inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 44px; }
.hero__copy { padding-left: 32px; }
.hero__tag { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 15px; color: #fff; background: var(--c-btn); border-radius: 999px; padding: 2px 14px; margin-bottom: 18px; }
.hero__write { position: relative; }
.hero__title { font-family: var(--font-pen); font-weight: 600; font-size: clamp(40px, 7vw, 86px); line-height: 1.45; letter-spacing: -.02em; color: var(--c-ink); -webkit-text-stroke: .025em currentColor; paint-order: stroke fill; }
/* Klee One は600が最も太い。大見出しとしては細く弱いので、文字と同じ色の縁で太らせて、ペンで濃く書いた線に見せる */
.hero__line { display: inline-block; white-space: nowrap; }
.pen { display: none; position: absolute; left: 0; top: 0; width: 56px; height: 56px; pointer-events: none; }
.is-motion .pen { display: block; }
.hero__lead { margin-top: 18px; font-size: clamp(16px, 1.6vw, 19px); color: var(--c-ink); font-weight: 700; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__photo { position: relative; width: min(82vw, 420px); justify-self: center; border-radius: 28px; border: 6px solid #fff; box-shadow: 0 20px 40px rgba(16, 35, 63, .16); transform: rotate(2deg); background: var(--c-k1); }
.hero__photo img { border-radius: 22px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__sticker { position: absolute; left: -22px; bottom: 24px; width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--c-marker); color: var(--c-ink); font-family: var(--font-head); font-weight: 800; font-size: 20px; line-height: 1.15; transform: rotate(-12deg); box-shadow: 0 6px 0 #c9a400; }
@media (min-width: 1080px) {
  .hero { padding: 150px 5vw 110px; }
  .hero__inner { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 5vw; }
  .hero__copy { padding-left: 48px; }
  .hero__photo { width: 100%; max-width: 440px; }
}

/* ===== 3つの約束 ===== */
.promise { padding: 104px 0; background: var(--c-bg); }
.promise__list { display: grid; gap: 16px; }
.promise__list li { display: flex; gap: 18px; background: #fff; border-radius: 22px; padding: 24px 22px; box-shadow: 0 10px 30px rgba(16, 35, 63, .06); }
.promise__no { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--c-btn); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.promise__list h3 { font-family: var(--font-head); font-weight: 800; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.6; color: var(--c-ink); margin-bottom: 6px; }
@media (min-width: 900px) { .promise { padding: 140px 0; } .promise__list { gap: 20px; } .promise__list li { padding: 32px 36px; } }

/* ===== 演出②（D01）：コース ===== */
.course { padding: 104px 0 40px; }
.course__head { margin-bottom: 8px; }
.kc { background: var(--k); padding: 64px 0; }
.kc__inner { display: grid; gap: 28px; }
.kc__grade { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: clamp(44px, 8vw, 96px); line-height: 1; color: var(--c-ink); }
.kc__name { font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.5; color: var(--c-ink); margin: 18px 0 10px; }
.kc__text > p:not(.kc__grade) { color: var(--c-ink); }
.kc__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.kc__chips li { background: #fff; border-radius: 999px; padding: 4px 14px; font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--c-ink); }
.kc__photo { border-radius: 28px; overflow: hidden; border: 6px solid #fff; }
.kc__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 1080px) {
  .kc { min-height: 86vh; display: flex; align-items: center; padding: 120px 0; }
  .kc__inner { width: 100%; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 64px; }
  .kc:nth-of-type(even) .kc__photo { order: -1; }
}
.is-motion .kc { background: transparent; }

/* ===== 演出③（B06）：付箋タブの積み重ね（CSSの sticky だけ） ===== */
.year { padding: 104px 0 120px; background: var(--c-bg); }
.tabs { position: relative; }
.tab { position: sticky; top: 92px; margin-bottom: 36vh; }
.tab:last-child { margin-bottom: 0; }
.tab__ear { width: 23%; margin-left: calc(var(--i) * 25.6%); height: 52px; display: flex; align-items: center; justify-content: center; background: var(--t); border-radius: 16px 16px 0 0; font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--c-ink); }
.tab__body { min-height: min(52vh, 420px); background: #fff; border-top: 8px solid var(--t); border-radius: 0 0 24px 24px; padding: 28px 24px 32px; box-shadow: 0 -6px 24px rgba(16, 35, 63, .08), 0 20px 40px rgba(16, 35, 63, .1); }
.tab:first-child .tab__body { border-top-left-radius: 0; }
.tab__month { font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: .16em; color: var(--c-accent-text); }
.tab__body h3 { font-family: var(--font-pen); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.4; color: var(--c-ink); margin: 6px 0 12px; }
.tab__body > p:not(.tab__month) { max-width: 34em; }
.tab__img { margin-top: 20px; width: 100%; max-width: 520px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; }
@media (min-width: 1080px) { .year { padding: 140px 0 160px; } .tab { top: 104px; } .tab__ear { font-size: 20px; height: 58px; } .tab__body { padding: 44px 56px; } }

/* ===== 料金 ===== */
.price { padding: 104px 0; background: #fff; }
.plans { display: grid; gap: 20px; }
.plan { position: relative; border: 3px solid var(--c-k1); border-radius: 24px; padding: 26px 24px; background: #fff; }
.plan--pick { border-color: var(--c-btn); background: var(--c-k1); }
.plan__grade { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--c-ink); }
.plan__v { font-family: var(--font-head); font-weight: 800; font-size: 38px; color: var(--c-ink); line-height: 1.3; }
.plan__v small { font-size: 16px; margin-left: 4px; }
.plan__badge { position: absolute; top: -16px; right: 20px; background: var(--c-marker); color: var(--c-ink); border-radius: 999px; padding: 0 14px; font-family: var(--font-head); font-weight: 800; font-size: 15px; }
@media (min-width: 900px) { .price { padding: 140px 0; } .plans { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* ===== 合格の声 ===== */
.voice { padding: 104px 0; background: var(--c-bg); }
.voices { display: grid; gap: 20px; }
.voice__card { background: #fff; border-radius: 24px; padding: 28px 26px; position: relative; background-image: repeating-linear-gradient(transparent 0 35px, var(--c-rule) 35px 36px); background-position: 0 28px; }
.voice__text { font-family: var(--font-pen); font-weight: 600; font-size: 19px; line-height: 36px; color: var(--c-ink); }
.voice__who { margin-top: 0; line-height: 36px; font-weight: 700; color: var(--c-accent-text); } /* 罫線の行に乗せる（ずれると線が文字を横切る） */
@media (min-width: 900px) { .voice { padding: 140px 0; } .voices { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* ===== 無料体験 ===== */
.trial { background: var(--c-btn); padding: 104px 20px; text-align: center; color: #fff; }
.trial__inner { max-width: 760px; margin: 0 auto; }
.trial__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 4.8vw, 54px); line-height: 1.4; margin-bottom: 16px; }
.trial__btn { margin-top: 32px; }
.trial__tel { margin-top: 24px; }
.trial__tel a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 20px; }

/* ===== アクセス ===== */
.access { padding: 104px 0; background: var(--c-bg); }
.access__inner { display: grid; gap: 40px; }
.info div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 2px dashed var(--c-k1); }
.info dt { font-weight: 700; color: var(--c-ink); }
.map svg { width: 100%; height: auto; }
.map p { font-size: 15px; color: var(--c-sub); text-align: center; margin-top: 8px; }
@media (min-width: 900px) { .access__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; } .info div { grid-template-columns: 5em 1fr; gap: 16px; } }

/* ===== フッター ===== */
.footer { background: var(--c-ink); color: #e3ecfb; padding: 56px 0 28px; font-size: 15px; }
.footer__inner { display: grid; gap: 16px; }
.footer__logo { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; }
.footer__fiction { margin-top: 28px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .tab { position: static; margin-bottom: 24px; }
}
