/* ==========================================================================
   6. Hero (Sub-page)
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 130px; /* 40(ヘッダー→写真) + 90(写真→カード) */
}

.hero__photo {
  position: absolute;
  top: 40px;
  bottom: 30px;
  right: 0;
  width: 615px;
  border-radius: 80px 20px 80px 20px;
  overflow: hidden;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.hero__photo--sp { display: none; }

.hero__card {
  position: relative;
  z-index: 1;
  width: 550px;
  padding: 30px;
  background: var(--bg);
  border-radius: 20px 80px 20px 20px;
}

.hero__badge {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%);
  display: inline-block;
  background: var(--tint-deep, var(--tint, var(--beige)));
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
}

.hero__title-row {
  display: flex;
  align-items: center;
  gap: 25px;
  min-height: 58px;
}

.hero__icon {
  flex-shrink: 0;
}

.hero__icon--pc {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__icon--sp { display: none; }

.hero__icon img,
.hero__icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__title {
  font-size: var(--fs-xl);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  line-height: 1.5;
  white-space: pre-line;
}

.hero__lead {
  margin-top: 25px;
  font-size: var(--fs-sm);
  line-height: 26px;
  color: var(--ink);
}

/* -- SP -- */
@media (max-width: 600px) {
  .hero {
    max-width: none;
    padding-top: 275px;
  }

  .hero__photo {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: 100%;
    height: 370px;
    border-radius: 0;
  }

  .hero__photo--pc { display: none; }
  .hero__photo--sp { display: block; }

  .hero__card {
    width: 100%;
    padding: 30px;
    border-radius: 100px 100px 0 0;
  }

  .hero__badge {
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .hero__title-row {
    min-height: 0;
  }

  .hero__icon--pc { display: none; }

  .hero__icon--sp {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin: var(--space-md) auto 0;
  }

  .hero__title {
    flex: 1;
    text-align: center;
  }

  .hero__lead {
    margin-top: 20px;
  }
}


/* --- Page nav (pill buttons below hero) --- */
.page-nav {
  width: 100%; /* .site-wrapperのflexstretch外れ対策（.heroと同型の罠、B-1） */
  max-width: var(--max-width);
  margin: 25px auto 0; /* 25px: ヒーローカード下端との隙間（B-2、.hero側は無変更） */
  border-radius: var(--radius-lg);
  background: var(--tint-mid, var(--beige));
  padding: var(--space-sm) 0;
}

/* SP: 全幅・角丸なしを維持（今回変更しない） */
@media (max-width: 600px) {
  .page-nav {
    margin: 0;
    max-width: none;
    border-radius: 0;
  }
}

.page-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
}

.page-nav__link {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-bold);
  transition: background 0.2s, color 0.2s;
}

.page-nav__link:hover {
  background: var(--accent);
  color: var(--bg);
}

/* --- FAQ accordion --- */
.faq-list {
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  margin-left: auto;
  font-size: var(--fs-lg);
  font-weight: var(--font-weight-bold);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item__answer {
  padding: 0 0 var(--space-sm) var(--space-lg);
  color: var(--ink);
  font-size: var(--fs-base);
}

/* ==========================================================================
   sections/ 追加CSS
   style.css の「10. Page-specific」ブロックの末尾に追記する
   ========================================================================== */

/* ------------------------------------------------------------------
   共通: セクション内サブ要素
   ------------------------------------------------------------------ */

/* リード文（.sec の直下テキスト） */
.sec__lead {
  font-size: var(--fs-base);
  color: var(--ink);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

/* 注記テキスト */
.sec__note {
  font-size: var(--fs-sm);
  color: var(--ink);
  opacity: 0.7;
  margin-top: var(--space-xs);
}

/* サブセクション見出し（h3相当、sec-labelより小さい） */
.subsec-label {
  font-size: var(--fs-lg);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.page-simple .sec__inner > .subsec-label:first-child {
  margin-top: 0;
}

@media (max-width: 600px) {
  .subsec-label {
    font-size: var(--fs-base);
  }
}

/* 学校関係者評価 報告書：h4相当ピル見出し（改修#19・v2.10.12） */
.eval__label {
  display: inline-block;
  background: var(--tint, var(--beige));
  color: var(--accent);
  font-weight: var(--font-weight-bold);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  line-height: 1;
  margin: var(--space-md) 0 var(--space-xs);
}

/* 学校関係者評価 報告書：詳しくはこちらリンク（5.15意匠流用・アイコンなし） */
.eval__more,
.principal-more {
  text-align: right;
}

.eval__more a,
.principal-more a {
  font-size: var(--fs-base);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  text-decoration: underline;
}

/* ------------------------------------------------------------------
   overview-table（園の概要・募集要項等の定義テーブル）
   意匠統一: spec 5.13（囲みボックス化・SP横並び化。2026-08-11実装）
   ------------------------------------------------------------------ */

.overview-table-wrap {
  background: var(--tint, var(--beige));
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-base);
}

.overview-table th,
.overview-table td {
  padding: var(--space-sm) 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.overview-table th {
  width: 10em;
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  white-space: nowrap;
}

.overview-table td .overview-table__note {
  display: block;
}

.overview-table td .overview-table__line {
  display: inline-block;
  white-space: nowrap;
}

.overview-table td .overview-table__line:not(:last-child) {
  margin-right: 12px;
}

/* 日程リスト（5.13・v2.10.15）: 複数日付の羅列行。PC横並び／SP縦積み、先頭「・」 */
.overview-table td .overview-table__dates {
  list-style: none;
  margin: 0;
  padding: 0;
}

.overview-table td .overview-table__dates li {
  display: inline-block;
  white-space: nowrap;
}

.overview-table td .overview-table__dates li::before {
  content: "・";
}

.overview-table td .overview-table__dates li:not(:last-child) {
  margin-right: 12px;
}

@media (max-width: 600px) {
  .overview-table-wrap {
    padding: var(--space-md) var(--space-sm);
  }
  .overview-table th {
    white-space: normal;
    width: 35%;
  }
  .overview-table th,
  .overview-table td {
    padding: var(--space-xs) var(--space-xs);
  }
  .overview-table td .overview-table__line {
    display: block;
  }
  .overview-table td .overview-table__line:not(:last-child) {
    margin-right: 0;
  }
  .overview-table td .overview-table__dates li {
    display: block;
  }
  .overview-table td .overview-table__dates li:not(:last-child) {
    margin-right: 0;
  }
  .overview-table td .overview-table__dates li .overview-table__line:first-child {
    display: inline;
  }
}

/* ------------------------------------------------------------------
   about: 園長あいさつ
   ------------------------------------------------------------------ */

.principal-message {
  background: #f5fbf3;
  border-left: 4px solid var(--tint, #e4f1df);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg) var(--space-lg);
  margin-bottom: var(--space-sm);
}

.principal-message__title {
  font-size: var(--fs-lg);
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.principal-message__sign {
  margin-top: var(--space-md);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  text-align: right;
}

@media (max-width: 600px) {
  .principal-message {
    padding: var(--space-md);
  }
}

/* 園長 直子先生のお話一覧へリンク（改修#26・v2.11.0。意匠は .eval__more と併記。箱→16→リンク→64→表） */
.principal-more {
  margin-bottom: var(--space-xl);
}

/* ------------------------------------------------------------------
   about: アクセス
   ------------------------------------------------------------------ */

.access-info {
  margin-bottom: var(--space-md);
}

.access-info__address {
  font-size: var(--fs-base);
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.access-info__transit {
  list-style: disc;
  padding-left: var(--space-md);
}

.access-info__transit li {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--ink);
}

.access-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-md);
}

.access-map iframe {
  display: block;
}

/* ------------------------------------------------------------------
   life: タイムライン
   ------------------------------------------------------------------ */

.timeline {
  list-style: none;
  position: relative;
  margin-top: var(--space-md);
}

/* 縦線：時刻列幅(56px) の右端に揃える */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 56px;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-lg);
  position: relative;
}

.timeline__time {
  flex-shrink: 0;
  width: 56px;
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  text-align: right;
  padding-top: 2px;
  padding-right: 8px;
  box-sizing: border-box;
}

/* main: ドット + テキスト + 右画像（PC横並び） */
.timeline__main {
  flex: 1;
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding-left: var(--space-md);
  position: relative;
  min-width: 0;
}

/* ドット：縦線(left:56px)の中心に重ねる */
.timeline__main::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--btn-bg);
  border: 2px solid var(--bg);
  flex-shrink: 0;
  z-index: 1;
}

.timeline__item--free .timeline__main::before {
  background: var(--border);
}

.timeline__body {
  flex: 1;
  min-width: 0;
}

.timeline__title {
  font-size: var(--fs-lg);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.timeline__text {
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.7;
}

/* 園の一日 写真（タイムライン直下）
   PC: 3枚横並び / SP: 2列（3枚目は左に折り返し＝2+1）
   タイムラインとの間隔 = 最後の .timeline__item の margin-bottom（--space-lg 40px）のみ
*/
.daily-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.daily-photos__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.daily-photos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SP: 縦積み */
@media (max-width: 600px) {
  .timeline::before {
    left: 44px;
  }

  .timeline__time {
    width: 44px;
    font-size: var(--fs-xs);
  }

  .timeline__main {
    flex-direction: column;
    gap: var(--space-sm);
    padding-left: var(--space-sm);
  }

  .timeline__main::before {
    left: -4px;
  }

  .timeline__title {
    font-size: var(--fs-base);
  }

  .daily-photos {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
}

/* ------------------------------------------------------------------
   life: 専任・課外クラス カセットカード
   ------------------------------------------------------------------ */

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.class-card {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
}

/* care-item同様の不揃い角丸 */
.class-card:nth-child(odd) {
  border-radius: 32px 8px 32px 8px;
}

.class-card:nth-child(even) {
  border-radius: 8px 32px 8px 32px;
}

/* カード別背景色 */
.class-card--sports    { background: #fceaef; } /* admission tint */
.class-card--rhythmics { background: #e4f1df; } /* about tint */
.class-card--gymnastics{ background: var(--tint-blue); }

.class-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
}

.class-card__icon {
  width: 64px;
  height: 64px;
}

.class-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.class-card__text {
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.7;
  flex: 1;
}

.class-card__freq {
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  margin-top: auto;
}

/* excare: ポイント3カード（6.9）。アイコン・本文なしのため__freqの margin-top:auto を打ち消し、
   小ラベルとしてタイトル上に置く。色はlifeの3色をそのまま同順で流用（新色は作らない） */
.class-card--point .class-card__freq {
  margin-top: 0;
}

@media (max-width: 600px) {
  .class-grid {
    grid-template-columns: 1fr;
  }

  /* SP: 角丸をリセットして統一 */
  .class-card:nth-child(odd),
  .class-card:nth-child(even) {
    border-radius: var(--radius-md);
  }

  .class-card__title {
    font-size: var(--fs-base);
  }
}


/* ------------------------------------------------------------------
   life: 年間行事リスト
   ------------------------------------------------------------------ */

.events-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.events-list__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--beige);
}

/* 季節カラー */
.events-list__item--spring { background: #e4f1df; }
.events-list__item--summer { background: var(--tint-blue); }
.events-list__item--autumn { background: #fceaef; }
.events-list__item--winter { background: #fdf3d4; }

.events-list__month {
  flex-shrink: 0;
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  background: var(--bg);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.events-list__content {
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .events-list {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------
   admission: 入園説明会
   ------------------------------------------------------------------ */

/* .info-session の margin-bottom は削除。フォーム上の余白は .form-section 側に一本化（2026-08-26） */

.info-session__lead {
  font-size: var(--fs-md);
  color: var(--ink);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

/* ------------------------------------------------------------------
   admission: 募集要項ステップ（ピル型）
   ------------------------------------------------------------------ */

/* ------------------------------------------------------------------
   visit: 見学ポイントリスト
   ------------------------------------------------------------------ */

.visit-points {
  list-style: none;
  margin: var(--space-md) 0;
}

.visit-points li {
  padding: var(--space-xs) 0 var(--space-xs) var(--space-md);
  position: relative;
  font-size: var(--fs-base);
  color: var(--ink);
}

.visit-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--btn-bg);
  font-weight: var(--font-weight-bold);
}

.visit-schedule {
  margin-top: var(--space-lg);
}

/* ------------------------------------------------------------------
   toddler: クラスの目的グリッド
   ------------------------------------------------------------------ */

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.purpose-card {
  background: var(--tint, var(--beige));
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.purpose-card__label {
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  margin-bottom: var(--space-xs);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.purpose-card__heading {
  font-size: var(--fs-base);
  font-weight: var(--font-weight-bold);
  color: var(--ink);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-xs);
}

.purpose-card__list {
  list-style: disc;
  padding-left: var(--space-md);
}

.purpose-card__list li {
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: 4px;
}

.purpose-card--aside {
  background: var(--tint, var(--beige));
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

@media (max-width: 600px) {
  .purpose-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------
   about: 大切にしていること（写真付きカード）
   ------------------------------------------------------------------ */

/* カード全体：h2(.sec-label)下端→1つ目のh3上端は.sec-labelのmargin-bottom(24px)のみで
   確保するためpadding-topは0。項目間隔は下記 .care-item--photo + .care-item--photo で付与 */
.care-item--photo {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: 0 0 var(--space-lg);
  /* base.cssの.care-itemが持つ不揃い角丸・背景色・padding等を上書き */
  background: none;
  border-radius: 0;
}

/* 2つ目以降のみpadding-topを戻し、項目間隔80px（前項目padding-bottom40+この40）を維持 */
.care-item--photo + .care-item--photo {
  padding-top: var(--space-lg);
}

/* テキスト列：左 55% */
.care-item--photo .care-item__body {
  flex: 0 0 55%;
  min-width: 0;
  order: 1;
}

/* 写真列：右 残り（flex:1） */
.care-item--photo .care-item__photo {
  flex: 1;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  min-width: 0;
  align-self: flex-start;
  order: 2;
}

/* h3 */
.care-item--photo .care-item__title {
  font-size: var(--fs-lg);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

/* 本文 */
.care-item--photo .care-item__body > p {
  font-size: var(--fs-base);
  color: var(--ink);
  line-height: 1.8;
}

/* extra（引用＋ボタンのラッパー） */
.care-item__extra {
  margin-top: var(--space-md);
}

/* 引用ブロック */
.care-quote {
  border-left: 3px solid var(--border);
  padding-left: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.care-quote__text {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
}

.care-quote__attr {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ink);
  opacity: 0.6;
  margin-top: 4px;
  font-style: normal;
}

/* 「保護者の声を読む」リンクボタン */
.care-item__more {
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.care-item__more:hover {
  color: var(--btn-bg);
}


/* SP: 縦積み（h3 → 本文 → 写真 → 引用 → ボタン） */
@media (max-width: 600px) {
  .care-item--photo {
    flex-direction: column;
    gap: var(--space-xs);
    padding: 0 0 var(--space-md);
  }

  /* 2つ目以降のみpadding-topを戻し、項目間隔48px（前項目padding-bottom24+この24）を維持 */
  .care-item--photo + .care-item--photo {
    padding-top: var(--space-md);
  }

  /* DOM順は photo→body。本番同様「見出し→本文→写真→引用→ボタン」の順に
     縦積みするため、bodyをdisplay:contentsで展開し中身を個別に並べ替える */
  .care-item--photo .care-item__body {
    display: contents;
  }

  .care-item--photo .care-item__title {
    order: 1;
    width: 100%;
    font-size: var(--fs-base);
    margin-bottom: 0;
  }

  .care-item--photo .care-item__body > p {
    order: 2;
    width: 100%;
  }

  .care-item--photo .care-item__photo {
    order: 3;
    flex: none;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-top: var(--space-sm);
  }

  .care-item--photo .care-item__extra {
    order: 4;
    width: 100%;
    margin-top: var(--space-sm);
  }
}