/* 進学個別atama+塾 東戸塚校 冬期LP
   配色は公式HP(SWELL)の配色変数に合わせている */
/* フォント: Noto Sans JP は index.html の head で Google Fonts から読み込む(font-display: swap)。
   読み込めない間・読み込めない環境では、下のfont-familyの並びにあるOS標準のゴシック体で表示する。 */
:root {
  --main: #0095aa;      /* メイン / 見出し / CTA */
  --accent: #ffe800;    /* バッジ・強調(少量) */
  --sub: #ffa537;       /* お知らせ系アイコン */
  --bg: #fcfffe;        /* 背景 */
  --tint: #dfeef0;      /* 薄いティールの面 */
  --text: #333333;      /* 文字 */
  --footer-bg: #000000;
  --footer-text: #ffffff;
  --radius: 16px;
  --sticky-h: 92px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}

img { max-width: 100%; height: auto; }
a { color: var(--main); }
p, h1, h2, h3, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 3px solid var(--main);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.site-header__logo { display: block; width: 168px; height: auto; }
.site-header__school {
  color: var(--main);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(0,149,170,.16) 0, rgba(0,149,170,0) 55%),
    linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%);
  padding: 20px 0 40px;
}
.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
  font-size: .875rem;
  line-height: 1.5;
  padding: 5px 14px;
  border-radius: 22px;
}
.badge span { display: inline-block; }
.hero__kicker {
  margin-top: 12px;
  color: var(--main);
  font-weight: 700;
  font-size: 1rem;
}
.hero__title {
  margin-top: 4px;
  color: var(--text);
  font-size: clamp(1.25rem, 5.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.5;
}
.hero__title-pre,
.hero__title-main {
  color: var(--main);
}
.hero__title-main {
  display: inline-block;
  font-size: clamp(2.75rem, 13.5vw, 4.25rem);
  line-height: 1.25;
}
.hero__title mark {
  background: linear-gradient(transparent 62%, var(--accent) 62%);
  color: inherit;
  padding: 0 .04em;
}
.hero__title-post { display: block; margin-top: 4px; }
.hero__lead { margin-top: 12px; font-size: .9375rem; line-height: 1.7; }
.hero__photo { margin: 16px 0 0; }
.hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 60% 40%;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,60,70,.15);
}
.fineprint { margin-top: 10px; font-size: .8125rem; line-height: 1.7; }
.hero__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 .75em;
  margin-top: 12px;
  padding: 7px 14px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--tint);
  border-radius: 12px;
  color: var(--text);
  font-size: .875rem;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
}
.hero__strip b { color: var(--main); }
.hero__strip-main { font-weight: 700; }
.hero__strip-note { font-size: .75rem; }

/* ---------- Button ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  width: 100%;
  min-height: 60px;
  padding: 14px 24px;
  background: var(--main);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  letter-spacing: .04em;
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(0,0,0,.22);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn::after {
  content: "";
  width: .55em;
  height: .55em;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
  margin-left: .1em;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.22); }
.hero .btn { margin-top: 16px; }

.notice {
  display: flex;
  gap: .6em;
  align-items: flex-start;
  margin-top: 16px;
  font-size: .875rem;
  line-height: 1.7;
}
.notice__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  margin-top: .15em;
  border-radius: 50%;
  background: var(--sub);
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1;
}

/* ---------- Section ---------- */
.section { padding: 48px 0; }
.section--tint { background: var(--tint); }
.section__eyebrow {
  color: var(--main);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .18em;
}
.section__title {
  margin-top: 2px;
  color: var(--main);
  font-size: clamp(1.375rem, 6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.5;
}
.section__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--accent);
}
.section__lead { margin-top: 18px; }

/* ---------- Points ---------- */
.points { margin-top: 28px; display: grid; gap: 16px; }
.point {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 2px solid var(--tint);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
}
.point__num {
  display: inline-block;
  background: var(--main);
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  padding: 7px 14px;
  border-radius: 999px;
}
.point__title {
  margin-top: 12px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.6;
}
.point__title em { display: block; color: var(--main); font-style: normal; }
.point__text { margin-top: 8px; font-size: .9375rem; line-height: 1.8; }

.point__img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 14px;
  border-radius: 12px;
}
.point__note { margin-top: 10px; font-size: .8125rem; line-height: 1.7; }

/* ---------- Feature blocks (timetable / price) ---------- */
.feature { margin-top: 44px; }
.feature__title {
  color: var(--main);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.figure, .compare { margin: 18px 0 0; }
.figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 2px solid var(--tint);
}
.figure figcaption,
.compare figcaption {
  margin-top: 10px;
  font-size: .8125rem;
  line-height: 1.7;
}
.compare__chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  padding: 22px 16px 20px;
  background: #fff;
  border: 2px solid var(--tint);
  border-radius: var(--radius);
}
.compare__col { flex: 1 1 0; max-width: 190px; }
.compare__label {
  margin-bottom: 8px;
  text-align: center;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.4;
}
.compare__col--atama .compare__label { color: var(--main); }
.compare__stack { margin: 0; padding: 0; list-style: none; }
.compare__stack li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.compare__stack .c-other { min-height: 38px; background: #cfcfcf; color: var(--text); }
.compare__stack .c-season { min-height: 42px; background: #a9a9a9; color: var(--text); }
.compare__stack .c-test { min-height: 46px; background: #8d8d8d; }
.compare__stack .c-base { min-height: 84px; background: #6f6f6f; font-size: .875rem; }
.compare__col--atama .c-other { background: #e3e3e3; }
.compare__col--atama .c-base { background: var(--main); }

/* ---------- Results ---------- */
.section--results { border-top: 1px solid var(--tint); }
.result-card {
  margin-top: 24px;
  padding: 22px 18px 20px;
  background: #fff;
  border: 2px solid var(--tint);
  border-radius: var(--radius);
}
.section__lead + .result-card { margin-top: 28px; }
.result-card__tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--main);
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.6;
  border-radius: 999px;
}
.result-card__title {
  margin-top: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
}
.result-card__em { margin-left: .15em; color: var(--main); font-size: 1.75rem; }
.result-card__note { margin-top: 14px; font-size: .75rem; line-height: 1.7; }

.bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  height: 230px;
  margin-top: 18px;
  padding: 0 4px 26px;
  border-bottom: 2px solid var(--text);
}
.bars__callout {
  position: absolute;
  top: 0;
  left: 4px;
  margin: 0;
  color: var(--main);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.15;
}
.bars__callout span { display: block; font-size: 2rem; }
.bar {
  position: relative;
  flex: 1 1 0;
  max-width: 96px;
  height: calc(var(--h) * 1%);
  min-height: 56px;
}
.bar__fill {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-top: 8px;
  background: #cfe9ee;
  border: 1.5px solid var(--text);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.bar__value { color: var(--main); font-size: .9375rem; font-weight: 700; line-height: 1.3; text-align: center; }
.bar__value small { display: block; font-size: .6875rem; }
.bar__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -26px;
  text-align: center;
  color: var(--main);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 24px;
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.pill {
  padding: 4px 12px;
  border: 2px solid var(--main);
  border-radius: 999px;
  color: var(--main);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.5;
}
.pill--lead { background: var(--main); color: #fff; font-size: 1.0625rem; padding: 5px 16px; }
.pill--more { border-color: transparent; color: var(--text); padding-left: 4px; }

/* ---------- Steps ---------- */
.steps { margin-top: 28px; counter-reset: step; }
.step {
  position: relative;
  counter-increment: step;
  padding: 0 0 28px 64px;
}
.step:last-child { padding-bottom: 8px; }
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
}
.step::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: 4px;
  width: 2px;
  background: var(--main);
  opacity: .35;
}
.step:last-child::after { display: none; }
.step__title {
  color: var(--main);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.6;
  padding-top: 7px;
}
.step__text { margin-top: 4px; font-size: .9375rem; line-height: 1.8; }
.step__list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border-radius: 12px;
}
.step__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  font-size: .875rem;
  line-height: 1.6;
}
.step__list li + li { border-top: 1px solid var(--tint); }
.step__list-title { font-weight: 700; }
.step__list-time { flex: none; color: var(--main); font-weight: 700; white-space: nowrap; }

/* ---------- CTA block ---------- */
.cta-block {
  margin-top: 40px;
  padding: 28px 20px 24px;
  background: #fff;
  border-radius: var(--radius);
  text-align: center;
}
.cta-block__title {
  color: var(--main);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
}
.cta-block__text { margin-top: 6px; margin-bottom: 20px; font-size: .9375rem; }
.cta-block__small {
  margin-top: 16px;
  font-size: .8125rem;
  line-height: 1.7;
  text-align: left;
}

/* ---------- School info ---------- */
.info {
  margin-top: 28px;
  background: #fff;
  border: 2px solid var(--tint);
  border-radius: var(--radius);
  overflow: hidden;
}
.info__row {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 12px;
  padding: 16px 18px;
}
.info__row + .info__row { border-top: 1px solid var(--tint); }
.info dt { color: var(--main); font-weight: 700; }
.nb { display: inline-block; }
.info a { color: var(--main); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 36px 0 28px;
  font-size: .875rem;
  line-height: 1.8;
}
.site-footer a { color: var(--footer-text); }
.site-footer__name { font-size: 1rem; font-weight: 700; }
.site-footer__operator { margin-top: 2px; }
.site-footer__note { margin-top: 14px; font-size: .8125rem; opacity: .85; }
.site-footer__links { margin-top: 14px; }
.site-footer__copy { margin-top: 18px; font-size: .75rem; opacity: .7; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(252,255,254,.97);
  border-top: 1px solid var(--tint);
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  padding: 8px 0 calc(10px + env(safe-area-inset-bottom, 0px));
}
.sticky-cta__inner { max-width: 720px; }
.sticky-cta__caption {
  margin-bottom: 6px;
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.4;
}
.btn--sticky { min-height: 52px; padding: 10px 24px; font-size: 1.0625rem; }

/* ---------- Wider screens ---------- */
@media (min-width: 768px) {
  body { font-size: 17px; }
  .container { max-width: 960px; padding-left: 32px; padding-right: 32px; }
  .hero { padding: 56px 0 64px; }
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-areas: "head photo" "body photo";
    grid-template-rows: auto 1fr;
    column-gap: 40px;
    align-items: start;
  }
  .hero__head { grid-area: head; }
  .hero__body { grid-area: body; }
  .hero__photo { grid-area: photo; align-self: center; margin-top: 0; }
  .site-header__logo { width: 200px; }
  .hero .btn { max-width: none; }
  .cta-block .btn { max-width: 420px; }
  .section { padding: 72px 0; }
  .points { max-width: 720px; gap: 20px; }
  .point { padding: 24px 22px; }
  .point__img { max-width: 420px; }
  .section--results .container { max-width: 960px; }
  .result-card { max-width: 720px; }
  .steps { max-width: 640px; }
  .cta-block { padding: 36px 32px 28px; }
  .cta-block .btn { margin-left: auto; margin-right: auto; }
  .cta-block__small { max-width: 560px; margin-left: auto; margin-right: auto; }
  .info { max-width: 640px; }
  .feature { max-width: 720px; }
  .figure, .compare { max-width: 520px; margin-left: auto; margin-right: auto; }
  .sticky-cta__inner { max-width: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
