/* uminohoshi life — 園の生活 page styles */

/* ─── Section layout ─── */
.life-section{ scroll-margin-top:calc(var(--header-h, 90px) + 58px); }
.life-section.bg-warm{ background:var(--c-bg-warm); }

/* ════════════════════════════
   01  1日の流れ — タイムライン
   ════════════════════════════ */
.daily-timeline{
  display:flex; flex-direction:column; gap:0;
  margin:40px auto 0; position:relative;
}
/* 縦線 */
.daily-timeline::before{
  content:""; position:absolute;
  left:140px; top:24px; bottom:24px;
  width:2px; background:var(--c-blue-100);
}
@media(max-width:599px){ .daily-timeline::before{ left:96px; } }

.daily-item{
  display:flex; gap:20px; align-items:flex-start;
  padding-bottom:32px; position:relative;
}
.daily-item:last-child{ padding-bottom:0; }

.daily-time{
  width:130px; text-align:right; flex-shrink:0;
  font-size:28px; font-weight:700; color:var(--c-blue-600);
  letter-spacing:.02em; padding-top:3px; line-height:1.15;
  white-space:nowrap;
}
@media(max-width:599px){ .daily-time{ width:86px; font-size:19px; padding-top:6px; } }

.daily-dot{
  width:20px; height:20px; border-radius:50%; flex-shrink:0;
  background:var(--c-blue-200); border:none;
  margin-top:8px; position:relative; z-index:1;
}
.daily-item.is-main .daily-dot{
  background:var(--c-blue-600);
  box-shadow:0 0 0 4px var(--c-blue-100);
}

.daily-body{
  background:#fff; border:1px solid var(--c-border-soft);
  border-radius:14px; padding:14px 18px;
  box-shadow:var(--shadow-sm); flex:1;
}
/* 水色の色掛けは1行おき（先方指示 2026-09-09「水色の色掛けを交互にしてください」）。
   これまでは is-main の行だけを塗っていたため、並びが不規則だった。
   is-main は左のドットの強調にだけ残す。 */
.daily-item:nth-child(odd) .daily-body{
  border-color:var(--c-blue-200);
  background:var(--c-blue-50);
}
.daily-item:nth-child(odd) .daily-photo{ border-color:var(--c-blue-200); }
.daily-body strong{
  display:block; font-size:15px; font-weight:700;
  color:var(--c-text); margin-bottom:4px;
}
.daily-body p{
  font-size:15px; color:var(--c-text-sub);
  line-height:1.75; margin:0;
}

/* ════════════════════════════
   02  年間行事
   ════════════════════════════ */
.events-grid{
  display:grid; gap:14px; grid-template-columns:1fr;
  margin-top:36px;
}
@media(min-width:560px){ .events-grid{ grid-template-columns:1fr 1fr; } }
@media(min-width:900px){ .events-grid{ grid-template-columns:repeat(3,1fr); } }

.event-card{
  background:#fff; border:1px solid var(--c-border-soft);
  border-radius:16px; overflow:hidden;
  box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column;
}
.event-img{
  height:220px; flex-shrink:0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:10px;
  overflow:hidden;
}
.event-img.ph-blue{   background:var(--c-blue-100);   color:var(--c-blue-400); }
.event-img.ph-orange{ background:#F8EDD8;              color:var(--c-orange-dark); }
.event-img.ph-green{  background:#E4F0E5;              color:#3E7245; }
.event-card-lower{
  display:flex; gap:14px; align-items:flex-start;
  padding:16px 18px 20px;
}
.event-month{
  min-width:38px; flex-shrink:0;
  background:var(--c-blue-600); color:#fff;
  border-radius:8px; padding:4px 0;
  text-align:center; font-size:11px; font-weight:700;
  letter-spacing:.06em; line-height:1.3;
}
.event-month .month-num{
  display:block; font-size:18px; font-weight:800; line-height:1;
}
/* 月別カラー 1〜12月 */
.em-apr{ background:#71b76e; }          /* 4月 春・新緑 */
.em-jan{ background:#5b8fc9; }          /* 1月 冬の青 */
.em-feb{ background:#b06fa0; }          /* 2月 梅・紫 */
.em-mar{ background:#d4718a; }          /* 3月 桃・卒園 */
.em-jun{ background:#6b8e6b; }          /* 6月 紫陽花・緑 */
.em-jul{ background:#2196a0; }          /* 7月 海・夏 */
.em-aug{ background:#e07840; }          /* 8月 太陽・夏祭り */
.em-sep{ background:#78a86a; }          /* 9月 秋はじまり */
.em-oct{ background:#3E7245; }          /* 10月 深緑・秋 */
.em-nov{ background:#8b5e3c; }          /* 11月 紅葉・茶 */
.em-dec{ background:#3a5a8c; }          /* 12月 冬・クリスマス */
/* 春（5月）は既存のアクセントカラー流用 */
.em-orange{ background:var(--accent); } /* 5月 */
.event-body{ flex:1; }
.event-body strong{
  display:block; font-size:15px; font-weight:700;
  color:var(--c-text); margin-bottom:3px;
}
.event-body p{
  font-size:15px; color:var(--c-text-sub);
  line-height:1.7; margin:0;
}

/* ════════════════════════════
   03  保育カリキュラム
   ════════════════════════════ */
.curriculum-intro{
  font-size:15px; color:var(--c-text-sub);
  line-height:2; margin-bottom:36px;
}

.curriculum-grid{
  display:grid; gap:20px; grid-template-columns:1fr;
  margin-bottom:40px;
}
@media(min-width:640px){ .curriculum-grid{ grid-template-columns:1fr 1fr; } }

.curriculum-card{
  background:#fff; border:1px solid var(--c-border-soft);
  border-radius:18px; overflow:hidden;
  box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column;
}
.curriculum-img{
  aspect-ratio:16/9; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:10px;
}
.curriculum-img.ph-blue{   background:var(--c-blue-100);   color:var(--c-blue-400); }
.curriculum-img.ph-orange{ background:#F8EDD8;              color:var(--c-orange-dark); }
.curriculum-img.ph-green{  background:#E4F0E5;              color:#3E7245; }
.curriculum-img.ph-purple{ background:#F0EEF8;              color:#6A56A8; }
.curriculum-card-inner{ padding:20px 22px 22px; }
.curriculum-card-head{
  display:flex; align-items:center; gap:10px; margin-bottom:12px;
}
.curriculum-icon{
  width:38px; height:38px; border-radius:10px;
  display:grid; place-items:center; flex-shrink:0; font-size:18px;
}
.ci-blue{   background:var(--c-blue-50);  color:var(--c-blue-600); }
.ci-orange{ background:#FDF3E8;            color:var(--c-orange-dark); }
.ci-green{  background:#EEF5EE;            color:#3E7245; }
.ci-purple{ background:#F0EEF8;            color:#6A56A8; }
.curriculum-card h3{ font-size:16px; font-weight:700; margin:0; }
.curriculum-card ul{
  list-style:none; padding:0; margin:0;
  display:flex; flex-direction:column; gap:6px;
}
.curriculum-card ul li{
  font-size:15px; color:var(--c-text-sub); line-height:1.7;
  padding-left:1em; position:relative;
}
.curriculum-card ul li::before{
  content:"・"; position:absolute; left:0; color:var(--c-blue-400);
}

/* 課外活動テーブル */
.extra-table{
  width:100%; border-collapse:collapse;
  border-radius:14px; overflow:hidden;
  box-shadow:var(--shadow-sm);
  font-size:15px;
}
.extra-table thead tr{
  background:var(--c-blue-600); color:#fff;
}
.extra-table th{
  padding:12px 16px; font-weight:700; text-align:left;
  font-size:13px; letter-spacing:.06em;
}
.extra-table td{
  padding:12px 16px; border-bottom:1px solid var(--c-border-soft);
  vertical-align:top; background:#fff;
}
.extra-table tr:last-child td{ border-bottom:0; }
.extra-table tr:nth-child(even) td{ background:var(--c-blue-50); }

/* ════════════════════════════
   04  給食について
   ════════════════════════════ */
.lunch-layout{
  display:grid; gap:48px; grid-template-columns:1fr;
  align-items:start; margin-top:36px;
}
@media(min-width:900px){ .lunch-layout{ grid-template-columns:1fr 1fr; gap:60px; } }

.lunch-photo{
  border-radius:20px; overflow:hidden; aspect-ratio:4/3;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:12px;
  box-shadow:var(--shadow-md);
}
.lunch-photo.ph-orange{ background:#F8EDD8; color:var(--c-orange-dark); }

.lunch-body{ display:flex; flex-direction:column; gap:18px; }
.lunch-body h3{ font-size:19px; font-weight:700; }
.lunch-body p{ font-size:15px; color:var(--c-text-sub); line-height:2; }

.lunch-week{
  display:grid; grid-template-columns:repeat(5,1fr); gap:6px;
  margin:4px 0;
}
.lunch-day{
  border-radius:10px; padding:10px 4px; text-align:center;
  font-size:13px; font-weight:700;
}
.lunch-day .day-name{
  display:block; font-size:11px; color:inherit;
  opacity:.7; margin-bottom:4px;
}
.lunch-day.is-kyushoku{
  background:var(--c-blue-50); color:var(--c-blue-700);
  border:1px solid var(--c-blue-200);
}
.lunch-day.is-bento{
  background:#FDF3E8; color:var(--c-orange-dark);
  border:1px solid #FADDBB;
}

/* ══ 2026-09-01 先方指示（2026-08-31 赤入れ）「＊時間の横に写真を入れる」════
   1日の流れの各行に、時刻とドットの間へ写真を置く。
   縦位置の写真（自由遊び）も混ざるので object-fit:cover で枠に合わせる。
   ═══════════════════════════════════════════════ daily-photo */
.daily-photo{
  width:132px; height:96px; flex-shrink:0;
  border-radius:12px; overflow:hidden;
  border:1px solid var(--c-border-soft);
  box-shadow:var(--shadow-sm);
  background:var(--c-bg-warm);
  margin-top:2px;
}
.daily-photo img{
  width:100%; height:100%; object-fit:cover; object-position:center;
  display:block;
}
/* .daily-item.is-main .daily-photo の枠色は、上の nth-child(odd) 側へ移した */

/* 並びは 時刻 → 写真 → ドット → 本文。縦線はドットの中心に合わせる。
   130(時刻)+20+132(写真)+20+10(ドット半径) = 312px */
.daily-timeline{ margin-left:0; margin-right:0; max-width:880px; }
.daily-timeline::before{ left:312px; }

@media(max-width:899px){
  .daily-photo{ width:104px; height:78px; }
  /* 130+20+104+20+10 = 284px */
  .daily-timeline::before{ left:284px; }
}
@media(max-width:599px){
  /* 幅が足りないので、写真は時刻の下に回り込ませ、縦線は消す */
  .daily-timeline::before{ display:none; }
  .daily-item{ flex-wrap:wrap; gap:12px; }
  .daily-photo{ width:86px; height:64px; }
  .daily-body{ flex:1 1 100%; }
}
