/* ============================================================
   保育士定着支援サービス LP — style.css
   tokens/*.css をそのまま @import し、値は必ず var(--*) を使う。
   レイアウト数値（900pxブレークポイント／コンテナ幅／セクション縦余白／
   H1サイズ）は HANDOFF.md 3章の指示どおり明示のブレークポイント値を使用。
   ============================================================ */
@import "tokens/fonts.css";
@import "tokens/colors.css";
@import "tokens/typography.css";
@import "tokens/spacing.css";
@import "tokens/effects.css";
@import "tokens/base.css";

/* ---------- Reset helpers not covered by base.css ---------- */
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

html { scroll-behavior: smooth; }

body { overflow-x: hidden; }

/* ============================================================
   Layout primitives
   ============================================================ */
.container { max-width: var(--content-max); margin: 0 auto; width: 100%; }
.container-wide { max-width: 1180px; margin: 0 auto; width: 100%; }

.section { padding: 64px var(--gutter); }
.section-inner { max-width: var(--content-max); margin: 0 auto; display: grid; gap: 32px; }
@media (min-width: 900px) {
  .section { padding: 96px var(--gutter); }
  .section-inner { gap: 48px; }
}
.section-warm { background: var(--surface-warm); }
.section-calm { background: var(--surface-calm); }

/* ============================================================
   Eyebrow / SectionHeading
   ============================================================ */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  color: var(--text-accent);
}
.eyebrow-calm { color: var(--text-calm); }
.eyebrow-muted { color: var(--text-muted); }

.section-heading {
  display: grid;
  gap: 10px;
  max-width: var(--text-max);
}
.section-heading-center { text-align: center; margin: 0 auto; }
.section-heading h2 {
  font-size: var(--fs-h2);
  color: var(--text-strong);
  text-wrap: balance;
}
.section-heading .lead {
  font-size: var(--fs-lead);
  color: var(--text-body);
  margin-top: 4px;
}

/* ============================================================
   Highlight marker
   ============================================================ */
.highlight {
  background: linear-gradient(transparent 62%, var(--highlight-marker) 62%);
}

/* ============================================================
   Pill
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  background: var(--orange-50);
  color: var(--text-accent);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 13px;
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  letter-spacing: .04em;
  line-height: 1.6;
}
.pill-calm { background: var(--green-100); color: var(--text-calm); }
.pill-neutral { background: var(--kinari-300); color: var(--text-body); }

/* ============================================================
   Button
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 16px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: .04em;
  line-height: 1.3;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: filter var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-soft),
              box-shadow var(--dur-fast);
}
.btn-lg { padding: 18px 34px; font-size: 18px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--action-primary); color: var(--text-on-accent); box-shadow: var(--shadow-button); }
.btn-line { background: var(--action-line); color: var(--text-on-accent); box-shadow: var(--shadow-button); }
.btn-outline { background: transparent; color: var(--text-strong); border: 1.5px solid var(--border-strong); }
.btn-ghost { background: transparent; color: var(--text-accent); text-decoration: underline; text-underline-offset: 4px; }

.btn-primary:hover, .btn-line:hover, .btn-outline:hover { filter: brightness(.92); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(90,40,15,.18); }
.btn-outline:active, .btn-ghost:active { box-shadow: none; }

/* CtaBand / Cost monitor: buttons placed on the inverse (--surface-inverse) background */
.btn-on-inverse-line { background: var(--green-300); color: var(--green-800); }
.btn-on-inverse-outline { color: var(--text-on-accent); border-color: var(--green-300); }

/* ============================================================
   Card
   ============================================================ */
.card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.card-warm { background: var(--surface-warm); }
.card-calm { background: var(--surface-calm); }
.card-sunken { background: var(--surface-sunken); }
.card-inverse { background: var(--surface-inverse); color: var(--text-on-accent); }
.card-shadow-none { box-shadow: none; }

/* ============================================================
   PhotoSlot（写真未着プレースホルダー）
   ============================================================ */
.photo-slot {
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(135deg, var(--kinari-300) 0 12px, var(--kinari-200) 12px 24px);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
}
.photo-slot-xl { border-radius: var(--radius-xl); }

/* ============================================================
   Stat
   ============================================================ */
.stat { display: grid; gap: 4px; }
.stat-value {
  font-family: var(--font-num);
  font-weight: var(--fw-bold);
  font-size: var(--fs-num-xl);
  line-height: 1.1;
  letter-spacing: .01em;
  color: var(--text-accent);
}
.stat-value-calm { color: var(--text-calm); }
.stat-value-md { font-size: clamp(32px, 8vw, 48px); }
.stat-unit { font-size: .45em; margin-left: 2px; }
.stat-label { font-size: 15px; color: var(--text-strong); font-weight: var(--fw-medium); line-height: 1.6; }
.stat-source { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   CheckList
   ============================================================ */
.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.checklist-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.checklist-check {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange-100);
  color: var(--text-accent);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}
.checklist-check-calm { background: var(--green-100); color: var(--text-calm); }
.checklist-text { font-size: 15px; color: var(--text-strong); font-weight: var(--fw-medium); line-height: 1.7; }

/* ============================================================
   StepFlow
   ============================================================ */
.step-flow {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.step-flow-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  position: relative;
  padding-bottom: 28px;
}
.step-flow-item:last-child { padding-bottom: 0; }
.step-flow-num-wrap { position: relative; display: flex; justify-content: center; }
.step-flow-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--text-calm);
  font-family: var(--font-num);
  font-weight: var(--fw-bold);
  font-size: 18px;
  display: grid;
  place-items: center;
  z-index: 1;
}
.step-flow-connector {
  position: absolute;
  background: var(--green-100);
  top: 44px; bottom: -28px; left: 21px; width: 2px;
}
.step-flow-item:last-child .step-flow-connector { display: none; }
.step-flow-body { display: grid; gap: 4px; }
.step-flow-title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-h3); color: var(--text-strong); line-height: 1.5; }
.step-flow-text { font-size: 15px; color: var(--text-body); }

@media (min-width: 900px) {
  .step-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .step-flow-item { grid-template-columns: 1fr; gap: 12px; padding-bottom: 0; }
  .step-flow-num-wrap { justify-content: flex-start; }
  .step-flow-connector { left: 44px; right: -16px; top: 21px; height: 2px; width: auto; bottom: auto; }
}

/* ============================================================
   Accordion (FAQ)
   ============================================================ */
.accordion { display: grid; gap: 10px; }
.accordion-item {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.accordion-trigger {
  all: unset;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 28px 1fr 24px;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 18px 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 16px;
  color: var(--text-strong);
  line-height: 1.6;
}
.accordion-q { color: var(--text-accent); font-family: var(--font-num); }
.accordion-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--kinari-200);
  display: grid;
  place-items: center;
  transition: transform var(--dur-base) var(--ease-soft);
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
}
.accordion-item[data-open="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-soft);
}
.accordion-item[data-open="true"] .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel-overflow { overflow: hidden; }
.accordion-panel-content {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 0 20px 20px;
}
.accordion-a { color: var(--text-calm); font-family: var(--font-num); font-weight: var(--fw-bold); }
.accordion-panel-content p { font-size: 15px; color: var(--text-body); }

/* ============================================================
   CtaBand
   ============================================================ */
.cta-band {
  background: var(--surface-inverse);
  color: var(--text-on-accent);
  border-radius: var(--radius-xl);
  padding: clamp(32px,6vw,56px) clamp(24px,5vw,48px);
  text-align: center;
  display: grid;
  gap: 20px;
  justify-items: center;
}
.cta-band h2 { font-size: var(--fs-h2); color: inherit; text-wrap: balance; }
.cta-band .lead { font-size: var(--fs-lead); color: var(--green-100); max-width: 560px; }
.cta-band-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 520px;
}
.cta-band-actions .btn { flex: 1 1 220px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 17px;
  color: var(--text-strong);
  letter-spacing: .06em;
  text-decoration: none;
}
.header-nav { display: none; }
.header-cta-mobile { display: inline-flex; }
@media (min-width: 900px) {
  .site-header { padding: 18px 40px; }
  .brand { font-size: 20px; }
  .header-nav { display: flex; gap: 28px; align-items: center; font-size: 14px; font-weight: var(--fw-medium); }
  .header-nav a.nav-link { color: var(--text-body); text-decoration: none; padding: 4px 0; }
  .header-nav a.nav-link:hover { color: var(--text-accent); }
  .header-cta-mobile { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 16px 20px 64px;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.hero-copy { display: grid; gap: 20px; }
.hero-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-headline {
  font-size: 30px;
  line-height: 1.5;
  letter-spacing: .04em;
}
.hero-headline-part { display: inline-block; }
.hero-sub { font-size: 15px; color: var(--text-body); max-width: 520px; }
.hero-cta-group { display: grid; gap: 10px; }
.hero-cta-note {
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--text-accent);
  font-family: var(--font-display);
  letter-spacing: .08em;
}
.hero-cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta-buttons .btn { flex: 1 1 100%; }
.hero-photo-wrap { position: relative; }
.hero-photo { aspect-ratio: 4 / 3; }
.hero-stat-card {
  position: absolute;
  left: 12px; bottom: -18px;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: grid;
  gap: 2px;
  max-width: 260px;
}
.hero-stat-label { font-size: 12px; color: var(--text-muted); }
.hero-stat-value {
  font-family: var(--font-num);
  font-weight: var(--fw-bold);
  font-size: 22px;
  color: var(--text-accent);
  line-height: 1.2;
}
.hero-stat-value span { font-size: 16px; }
.hero-stat-source { font-size: 11px; color: var(--text-muted); }

@media (min-width: 900px) {
  .hero {
    padding: 40px 40px 88px;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
  }
  .hero-copy { gap: 26px; }
  .hero-headline { font-size: 46px; }
  .hero-sub { font-size: 17px; }
  .hero-cta-buttons .btn { flex: 0 0 auto; }
  .hero-photo { aspect-ratio: 4 / 5; }
  .hero-stat-card { left: -28px; bottom: 36px; }
}

/* ============================================================
   Pain
   ============================================================ */
.pain-checklist { max-width: 880px; margin: 0 auto; width: 100%; }
@media (min-width: 900px) {
  .pain-checklist { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Reason
   ============================================================ */
.reason-stats { display: grid; grid-template-columns: 1fr; gap: 20px; }
.reason-stats .card { padding: 24px; }
.reason-bottom { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
.reason-parents { font-size: var(--fs-lead); color: var(--text-body); }
.reason-summary {
  background: var(--surface-calm);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.reason-summary p {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 20px;
  color: var(--text-strong);
  line-height: 1.6;
}
@media (min-width: 900px) {
  .reason-stats { grid-template-columns: 1fr 1fr; }
  .reason-stats .card { padding: 36px; }
  .reason-bottom { grid-template-columns: 1fr 1fr; }
  .reason-summary { padding: 32px 36px; }
  .reason-summary p { font-size: 24px; }
}

/* ============================================================
   Service 1
   ============================================================ */
.service1-steps { display: grid; grid-template-columns: 1fr; gap: 16px; position: relative; }
.service1-step-card { display: grid; gap: 12px; align-content: start; padding: 24px; position: relative; }
.service1-step-top { display: flex; align-items: center; gap: 12px; }
.service1-step-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 20px;
}
.service1-step-icon-listen { background: var(--green-100); color: var(--green-700); }
.service1-step-icon-protect { background: var(--orange-100); color: var(--orange-700); }
.service1-step-icon-change { background: var(--green-100); color: var(--green-700); }
.service1-step-arrow { color: var(--green-300); font-size: 22px; font-family: var(--font-num); margin-left: auto; }
.service1-step-arrow-pc { display: none; }
.service1-step-arrow-sp { display: inline; }
.service1-step-card h3 { font-size: 19px; }
.service1-step-card p { font-size: 15px; }

.service1-bottom { display: grid; grid-template-columns: 1fr; gap: 16px; }
.service1-example, .service1-case { display: grid; gap: 8px; padding: 22px; }
.service1-case { align-content: start; }
.service1-example p {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 16px;
  color: var(--text-strong);
  line-height: 1.8;
}
.service1-case p { font-size: 15px; color: var(--text-strong); }

@media (min-width: 900px) {
  .service1-steps { grid-template-columns: repeat(3, 1fr); }
  .service1-step-card { padding: 30px; }
  .service1-step-arrow-pc { display: inline; }
  .service1-step-arrow-sp { display: none; }
  .service1-bottom { grid-template-columns: 1.2fr .8fr; }
  .service1-example, .service1-case { padding: 28px; }
}

/* ============================================================
   Service 2
   ============================================================ */
.service2-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.service2-copy { display: grid; gap: 24px; }
.service2-media { display: grid; gap: 16px; }
.service2-photo { aspect-ratio: 16 / 9; }
.service2-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service2-results .card { padding: 20px; }
@media (min-width: 900px) {
  .service2-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .service2-photo { aspect-ratio: 4 / 3; }
}

/* ============================================================
   Cost
   ============================================================ */
.cost-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}
.cost-card { display: grid; gap: 10px; align-content: start; padding: 24px; }
.cost-card-label { font-size: 14px; font-weight: var(--fw-bold); color: var(--text-muted); }
.cost-bar-loss {
  height: 96px;
  background: var(--orange-300);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.cost-bar-loss span {
  font-family: var(--font-num);
  font-weight: var(--fw-bold);
  font-size: 24px;
  color: var(--orange-800);
  line-height: 1.2;
}
.cost-bar-monthly-wrap { height: 96px; display: flex; align-items: flex-end; }
.cost-bar-monthly {
  width: 100%;
  height: 34px;
  background: var(--green-300);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 15px;
  color: var(--green-800);
}
.cost-card-note { font-size: 12px; color: var(--text-muted); }
.cost-card-sub { font-size: 13px; color: var(--text-strong); font-weight: var(--fw-medium); }
.cost-arrow {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: var(--fw-bold);
}
.cost-arrow-pc { display: none; }
.cost-arrow-sp { display: grid; }

.cost-monitor {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
  padding: 24px;
}
.cost-monitor-copy { display: grid; gap: 6px; flex: 1 1 280px; }
.cost-monitor-copy h3 { color: var(--text-on-accent); font-size: 18px; }
.cost-monitor-copy p { font-size: 14px; color: var(--green-100); }
.cost-monitor .btn { flex: 1 1 100%; }

@media (min-width: 900px) {
  .cost-compare { grid-template-columns: 1fr auto 1fr; gap: 24px; }
  .cost-card { padding: 32px; }
  .cost-bar-loss, .cost-bar-monthly-wrap { height: 140px; }
  .cost-bar-loss span { font-size: 28px; }
  .cost-card-label { font-size: 14px; }
  .cost-arrow-pc { display: grid; }
  .cost-arrow-sp { display: none; }
  .cost-monitor { padding: 28px 36px; }
  .cost-monitor .btn { flex: 0 0 auto; }
}

/* ============================================================
   Profile
   ============================================================ */
.profile-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.profile-photo { aspect-ratio: 1 / 1; max-width: 220px; }
.profile-copy { display: grid; gap: 16px; }
.profile-name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 20px; color: var(--text-strong); }
.profile-role { font-size: 14px; color: var(--text-muted); }
.profile-body { font-size: 15px; }
.profile-quote { padding: 20px; }
.profile-quote p {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 16px;
  color: var(--text-accent);
  line-height: 1.8;
}
@media (min-width: 900px) {
  .profile-grid { grid-template-columns: 300px 1fr; gap: 48px; }
  .profile-photo { max-width: 300px; }
}

/* ============================================================
   Flow
   ============================================================ */
.flow-wrap { max-width: var(--content-max); margin: 0 auto; width: 100%; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 320px 1fr; gap: 48px; }
}

/* ============================================================
   Final CTA
   ============================================================ */
.final-section { padding: 24px 20px 64px; }
.final-inner { max-width: var(--content-max); margin: 0 auto; }
@media (min-width: 900px) {
  .final-section { padding: 40px 40px 96px; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 24px 20px 96px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 1180px;
  margin: 0 auto;
}
.footer-brand { font-family: var(--font-display); font-weight: var(--fw-bold); color: var(--text-strong); }
@media (min-width: 900px) {
  .site-footer { padding: 32px 40px; }
}

/* ============================================================
   Sticky CTA（スマホのみ）
   ============================================================ */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--surface-page) 40%);
}
.sticky-cta .btn { flex: 1; }
@media (min-width: 900px) {
  .sticky-cta { display: none; }
}
