/* =========================================
   親子ひろば おやこの木
   色：こげ茶 #3B302A ／ 生成り #FAF6EE ／ 若葉 #7FA36B
   ========================================= */
:root {
  --cha: #3B302A;          /* 文字 */
  --cha-usui: rgba(59, 48, 42, .68);
  --kinari: #FAF6EE;       /* 背景 */
  --wakaba: #7FA36B;       /* ボタンだけ */
  --wakaba-usui: #EEF3E8;  /* 背景を変える章 */
  --happa: #DCE7D0;        /* 蛍光ペン・葉っぱ */
  --sen: rgba(59, 48, 42, .18);

  --font-midashi: "Zen Maru Gothic", sans-serif;
  --font-honbun: "Zen Kaku Gothic New", sans-serif;

  /* 文字の大きさは3種類だけ */
  --fs-l: clamp(28px, 1.6vw + 20px, 44px);
  --fs-m: 20px;
  --fs-s: 16px;

  --kakumaru: 16px;
  --yohaku: 128px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--kinari);
  color: var(--cha);
  font-family: var(--font-honbun);
  font-size: var(--fs-s);
  line-height: 1.9;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cha); outline-offset: 3px; }

section[id] { scroll-margin-top: 72px; }

.wrap { width: min(1120px, 100% - 64px); margin-inline: auto; }
.sp { display: none; }
.pc { display: inline; }

.h2 {
  margin: 0 0 48px;
  font-family: var(--font-midashi);
  font-size: var(--fs-l);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-feature-settings: "palt";
}
.h3 {
  margin: 0 0 16px;
  font-family: var(--font-midashi);
  font-size: var(--fs-m);
  font-weight: 700;
  line-height: 1.4;
  font-feature-settings: "palt";
}
.marker { background: linear-gradient(transparent 58%, var(--happa) 58%); }

/* ボタン（角丸はボタンだけ999px） */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 40px;
  border-radius: 999px;
  background: var(--wakaba);
  color: #241C18; /* 若葉色の上でも読みやすい、濃いこげ茶 */
  font-family: var(--font-midashi);
  font-size: var(--fs-s);
  font-weight: 700;
  text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0, 0, 0, .06); }

/* ---------- ヘッダー（スクロールで小さくなる） ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: var(--kinari);
  border-bottom: 1px solid transparent;
  transition: height .4s var(--ease), border-color .4s var(--ease);
}
.header.is-small { height: 64px; border-bottom-color: var(--sen); }
.header__inner {
  height: 100%;
  width: min(1376px, 100% - 64px);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo__ki { width: 32px; height: 36px; }
.logo__name { font-family: var(--font-midashi); font-size: var(--fs-m); font-weight: 700; letter-spacing: .02em; }
.nav { display: flex; gap: 40px; }
.nav a { text-decoration: none; padding: 8px 0; background: linear-gradient(var(--cha), var(--cha)) left bottom / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.nav a:hover { background-size: 100% 1px; }

/* ---------- ファーストビュー ---------- */
.fv {
  --tree-h: 640px;
  --photo-w: 53%;
  --text-left: calc(var(--tree-h) * 0.47);
  position: relative;
  height: 800px;
  margin-top: var(--header-h);
}
.fv__photo {
  position: absolute; top: 16px; right: 0; bottom: 72px;
  width: var(--photo-w);
  border-radius: var(--kakumaru) 0 0 var(--kakumaru);
  overflow: hidden;
}
.fv__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.fv__ki {
  position: absolute; left: 0; bottom: 24px;
  height: var(--tree-h); width: auto; aspect-ratio: 800 / 720;
  z-index: 3;
  pointer-events: none;
}
.fv__text {
  position: absolute;
  left: var(--text-left);
  right: 0;
  top: 276px;
}
.fv__name { font-family: var(--font-midashi); font-weight: 700; margin-bottom: 16px; }
.fv__title {
  margin: 0 0 24px;
  font-family: var(--font-midashi);
  font-size: var(--fs-l);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-feature-settings: "palt";
  position: relative; z-index: 2;
}
/* 写真に重なる見出しの下に、生成り色の帯を敷く */
.fv__title span {
  background: var(--kinari);
  padding: 4px 16px 4px 0;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.fv__lead { max-width: min(23em, calc(100vw - var(--photo-w) - var(--text-left) - 32px)); margin-bottom: 40px; }
.fv__cta { display: flex; align-items: flex-end; gap: 16px; }
.fv__note { margin-top: 12px; }
.fv__ki-sp { display: none; }

/* ---------- こんな毎日、ありませんか ---------- */
.section { padding-block: var(--yohaku); }
.nayami { padding-top: 96px; }
.fukidashi { display: grid; gap: 32px; margin-bottom: 56px; }
.fukidashi__item {
  position: relative;
  justify-self: start;
  padding: 20px 32px;
  border: 1.5px solid var(--cha);
  border-radius: var(--kakumaru);
  background: var(--kinari);
  font-family: var(--font-midashi);
  font-size: var(--fs-m);
  font-weight: 500;
  line-height: 1.6;
}
.fukidashi__item::after {
  content: "";
  position: absolute; left: 32px; bottom: -9px;
  width: 16px; height: 16px;
  background: var(--kinari);
  border-right: 1.5px solid var(--cha);
  border-bottom: 1.5px solid var(--cha);
  transform: rotate(45deg) skew(8deg, 8deg);
}
.fukidashi__item:nth-child(2) { margin-left: 28%; }
.fukidashi__item:nth-child(2)::after { left: auto; right: 40px; }
.fukidashi__item:nth-child(3) { margin-left: 56%; }
.nayami__musubi { font-family: var(--font-midashi); font-size: var(--fs-m); font-weight: 500; }

/* ---------- できること（写真と文章を左右交互に） ---------- */
.dekiru { padding-top: 0; padding-bottom: 32px; }
.row { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.row + .row { margin-top: 96px; }
.row--reverse { grid-template-columns: 5fr 7fr; }
.row--reverse .row__photo { order: 2; }
.row__photo { border-radius: var(--kakumaru); overflow: hidden; aspect-ratio: 3 / 2; }
.row__photo img { width: 100%; height: 100%; object-fit: cover; }
.row--reverse .row__photo img { filter: saturate(.72); object-position: 30% 50%; }
.row__text { max-width: 26em; }
.row__label { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }


/* ---------- 運営の言葉（余白だけで区切る） ---------- */
.kotoba { padding-block: 120px; }
.kotoba__box {
  position: relative;
  margin: 0;
  max-width: 760px;
  padding: 64px 64px 56px;
  border-radius: var(--kakumaru);
  background: var(--wakaba-usui);
}
.kotoba__box blockquote { margin: 0 0 24px; }
.kotoba__box blockquote p {
  font-family: var(--font-midashi);
  font-size: var(--fs-m);
  font-weight: 500;
  line-height: 2;
}
.kotoba__tori { position: absolute; right: -40px; top: -36px; width: 64px; height: 48px; }

/* ---------- ひらいている日（この章だけ背景色を変える） ---------- */
.hiraiteiru { background: var(--wakaba-usui); }
.hiraiteiru__grid { display: grid; grid-template-columns: 4fr 6fr; gap: 64px; align-items: start; }
.hiraiteiru__text > p + p { margin-top: 8px; }
.jikan {
  font-family: var(--font-midashi); font-size: var(--fs-l); font-weight: 700; line-height: 1.2;
  font-feature-settings: "tnum"; margin-bottom: 16px;
}
.hanrei { display: flex; align-items: center; gap: 8px; margin-top: 32px !important; }
.hanrei__maru { width: 24px; height: 24px; border-radius: 50%; background: var(--happa); border: 1.5px solid var(--wakaba); }

.cal { background: var(--kinari); border-radius: var(--kakumaru); padding: 32px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal__title { font-family: var(--font-midashi); font-size: var(--fs-m); font-weight: 700; font-feature-settings: "tnum"; }
.cal__btn {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1.5px solid var(--cha); background: transparent; color: var(--cha);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cal__btn svg { width: 20px; height: 20px; }
.cal__btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0, 0, 0, .06); }
.cal__btn:disabled { opacity: .25; cursor: default; }
.cal__table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; font-feature-settings: "tnum"; }
.cal__table th { font-weight: 700; padding-bottom: 8px; }
.cal__table td { padding: 4px 0; }
.cal__day {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--cha-usui);
}
.cal__day.is-open { background: var(--happa); border: 1.5px solid var(--wakaba); color: var(--cha); font-weight: 700; }
.cal__day.is-today { outline: 1.5px dashed var(--cha); outline-offset: 2px; }
.cal__oyasumi { margin-top: 16px; min-height: 1.9em; }

/* ---------- はじめての日の流れ ---------- */
.hajimete__top { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; margin-bottom: 80px; }
.fuda { display: flex; gap: 16px; margin-bottom: 24px; }
.fuda li {
  padding: 4px 20px;
  border: 1.5px solid var(--cha);
  border-radius: var(--kakumaru);
  font-family: var(--font-midashi); font-weight: 700;
}
.hajimete__photo { border-radius: var(--kakumaru); overflow: hidden; aspect-ratio: 4 / 3; }
.hajimete__photo img { width: 100%; height: 100%; object-fit: cover; }
.nagare { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.nagare::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 28px;
  border-top: 1.5px dashed var(--sen);
}
.nagare li {
  position: relative;
  font-family: var(--font-midashi); font-size: var(--fs-m); font-weight: 700; line-height: 1.5;
}
.nagare__num {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 16px;
  border-radius: 50%; border: 1.5px solid var(--cha); background: var(--kinari);
  font-feature-settings: "tnum";
}

/* ---------- アクセス ---------- */
.access { padding-top: 0; }
.access__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; }
.info { margin: 0 0 24px; }
.info div { display: grid; grid-template-columns: 6em 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--sen); }
.info div:last-child { border-bottom: 1px solid var(--sen); }
.info dt { font-weight: 700; }
.info dd { margin: 0; }
.access__baby { display: flex; align-items: center; gap: 8px; margin-bottom: 40px; }
.access__photo { border-radius: var(--kakumaru); overflow: hidden; aspect-ratio: 4 / 3; }
.access__photo img { width: 100%; height: 100%; object-fit: cover; }
.access__map { border-radius: var(--kakumaru); overflow: hidden; min-height: 480px; border: 1px solid var(--sen); }
.access__map iframe { display: block; width: 100%; height: 100%; min-height: 480px; border: 0; }

/* ---------- 最後のボタン（ここだけ中央寄せ） ---------- */
.saigo { padding-block: 64px 160px; }
.saigo__inner { text-align: center; }
.saigo .h2 { margin-bottom: 40px; }

/* ---------- フッター ---------- */
.footer { border-top: 1px solid var(--sen); padding: 48px 0 56px; }
.footer__name { font-family: var(--font-midashi); font-weight: 700; }
.footer__mihon { margin-top: 16px; }


/* ---------- クレヨンのイラスト ---------- */
.ill { position: absolute; pointer-events: none; }
.nayami .wrap, .kotoba .wrap { position: relative; }
.ill-ie { right: 0; top: -16px; width: 300px; height: auto; aspect-ratio: 280 / 230; }
.ill-row { display: block; width: 160px; height: auto; aspect-ratio: 3 / 2; margin-top: 32px; }
.ill-hana { right: 40px; bottom: 0; width: 300px; height: auto; aspect-ratio: 260 / 160; }
.ill-sora { display: block; width: 220px; height: auto; aspect-ratio: 240 / 150; margin-top: 40px; }
.ill-kutsu { display: block; width: 170px; height: auto; aspect-ratio: 180 / 100; margin-top: 32px; }
.access__baby svg { width: 56px; height: 48px; flex: none; }
.saigo { position: relative; padding-bottom: calc(14.2vw + 48px) !important; }
.ill-tobu { display: block; width: 104px; height: 52px; margin: 0 auto 16px; }
.ill-nohara { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; aspect-ratio: 1200 / 170; pointer-events: none; }

.sp-bar { display: none; }

/* ---------- ふわっと出る（JavaScriptが動くときだけ） ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .cal__btn, .header, .nav a { transition: none; }
}

/* =========================================
   中くらいの画面
   ========================================= */
@media (max-width: 1279px) {
  .fv { --tree-h: 480px; --photo-w: 42%; height: 680px; }
  .fv__lead { max-width: calc(58vw - var(--text-left) - 32px); }
  .fv__lead .pc { display: none; }
  .fv__text { top: 268px; }
}

/* =========================================
   スマホ・タブレット
   ========================================= */
@media (max-width: 1023px) {
  :root { --yohaku: 80px; --header-h: 64px; }
  .wrap { width: calc(100% - 32px); }
  .sp { display: inline; }
  .pc { display: none; }
  .h2 { margin-bottom: 32px; }

  .header__inner { width: calc(100% - 32px); }
  .header.is-small { height: 56px; }
  .nav { display: none; }

  .fv { height: auto; padding-bottom: 48px; }
  .fv__photo { position: relative; top: 0; bottom: auto; width: 100%; height: 58vw; max-height: 420px; border-radius: 0; }
  .fv__photo img { object-position: 50% 60%; }
  .fv__ki { display: none; }
  .fv__cta { position: relative; }
  .fv__ki-sp { display: block; position: absolute; right: 0; top: -24px; width: 110px; height: 190px; }
  .fv__cta .btn { white-space: nowrap; padding-inline: 32px; }
  .fv__title { margin-bottom: 24px; }
  .fv__title span { padding-right: 8px; }
  .fv__text { position: relative; left: auto; top: auto; margin: -40px 16px 0; }
  .fv__name { display: inline-block; background: var(--kinari); padding: 4px 16px 0 0; margin-bottom: 0; position: relative; z-index: 2; }
  .fv__title { margin-bottom: 16px; }
  .fv__lead { max-width: none; min-width: 0; margin-bottom: 24px; }
  .fv__cta { justify-content: space-between; }

  .nayami { padding-top: 80px; }
  .fukidashi { gap: 28px; margin-bottom: 40px; }
  .fukidashi__item { padding: 16px 24px; }
  .fukidashi__item:nth-child(2) { margin-left: 32px; }
  .fukidashi__item:nth-child(3) { margin-left: 8px; }
  .fukidashi__item { max-width: 100%; }

  .row, .row--reverse { grid-template-columns: 1fr; gap: 24px; }
  .row--reverse .row__photo { order: 0; }
  .row + .row { margin-top: 64px; }

  .kotoba { padding-block: 96px; }
  .kotoba__box { padding: 48px 24px 40px; }
  .kotoba__tori { right: 8px; top: -32px; }

  .hiraiteiru__grid { grid-template-columns: 1fr; gap: 32px; }
  .cal { padding: 24px 12px; }
  .cal__head { padding-inline: 8px; }
  .cal__day { width: 40px; height: 40px; }

  .hajimete__top { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; }
  .nagare { grid-template-columns: 1fr; gap: 24px; }
  .nagare::before { left: 28px; right: auto; top: 28px; bottom: 28px; border-top: 0; border-left: 1.5px dashed var(--sen); }
  .nagare li { display: flex; align-items: center; gap: 16px; }
  .nagare__num { margin-bottom: 0; flex: none; }

  .access__grid { grid-template-columns: 1fr; gap: 32px; }
  .info div { grid-template-columns: 5em 1fr; }
  .access__map, .access__map iframe { min-height: 320px; }

  .saigo { padding-block: 48px 104px; }

  .footer { padding-bottom: 120px; }


  .ill-ie { width: 128px; top: 0; }
  .ill-row { width: 120px; margin-top: 24px; }
  .ill-hana { position: static; display: block; width: 200px; margin: 32px 0 0 auto; }
  .ill-sora { position: absolute; right: 0; top: 0; width: 120px; margin: 0; }
  .hiraiteiru__text { position: relative; }
  .ill-kutsu { width: 130px; }
  .saigo { padding-bottom: 168px !important; }
  .ill-nohara { height: 110px; aspect-ratio: auto; }
  .sp-bar {
    display: grid; grid-template-columns: 2fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: var(--kinari);
    border-top: 1px solid var(--sen);
  }
  .sp-bar a {
    display: grid; place-items: center; min-height: 48px; border-radius: 999px;
    font-family: var(--font-midashi); font-weight: 700; text-decoration: none;
  }
  .sp-bar__main { background: var(--wakaba); color: #241C18; }
  .sp-bar__sub { border: 1.5px solid var(--cha); }
}


@media (max-width: 370px) {
  .fv__ki-sp { width: 92px; height: 159px; top: -16px; }
}
