/* seikatsu.html 専用スタイル（style.css の後・_utilities.css の前に読み込む） */

#daily {
  background: transparent;
}

.daily-program {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding-left: 26px;
}

.daily-program::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 46px;
  left: 2px;
  border-left: 2px dashed #cdc7c0;
  z-index: 1;
  pointer-events: none;
}

.program-item {
  display: flex;
  gap: 22px;
  align-items: baseline;
  padding: 14px 8px 34px;
  position: relative;
  z-index: 2;
}

.program-time {
  flex: 0 0 auto;
  min-width: 74px;
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-h2);
  letter-spacing: 0.02em;
}

.program-text h3 {
  font-size: 1.15rem;
  color: #555555;
  margin-bottom: 8px;
  line-height: 1.5;
}

.program-text p {
  font-size: 0.92rem;
  color: var(--c-gray-700);
  line-height: 1.8;
}

.program-photo {
  display: block;
  width: 100%;
  max-width: 320px;
  margin-top: 14px;
  /* デザイン案どおり写真は 3:2 のまま全体を見せる */
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
}

@media (min-width: 769px) {
  .daily-program {
    max-width: 900px;
    padding-left: 0;
  }

  .daily-program::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .program-item {
    width: 50%;
    box-sizing: border-box;
    align-items: flex-start;
  }

  .program-item:nth-child(odd) {
    margin-right: 50%;
    flex-direction: row-reverse;
    padding-right: 40px;
    text-align: right;
  }

  .program-item:nth-child(odd) .program-photo {
    margin-left: auto;
  }

  .program-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 40px;
  }

  .program-item:not(:first-child) {
    margin-top: -150px;
  }
}

.events-list {
  max-width: 620px;
  margin: 0 auto;
}

.events-group + .events-group {
  margin-top: 28px;
}

.events-row {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  align-items: baseline;
}

.events-month-label {
  flex: 0 0 44px;
  font-weight: 700;
  color: var(--c-h2);
  line-height: 1.7;
}

.events-month-desc {
  flex: 1;
  color: var(--c-text);
  line-height: 1.7;
}

.infection-note {
  text-align: center;
  color: var(--c-gray-700);
  margin-bottom: 24px;
  font-size: 0.92rem;
}

.infection-list {
  list-style: none;
  padding: 20px 24px;
  margin: 0 auto;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.infection-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--c-gray-200);
  font-size: 0.95rem;
  line-height: 1.6;
}

.infection-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.infection-disease {
  font-weight: 700;
  color: #555555;
}

.infection-counts {
  color: var(--c-text);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.infection-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.infection-age {
  display: inline-block;
  padding: 2px 8px;
  background: var(--c-sea);
  color: var(--c-white);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.infection-empty,
.infection-loading,
.infection-error {
  text-align: center;
  padding: 24px;
  max-width: 520px;
  margin: 0 auto;
  color: var(--c-gray-700);
  font-size: 0.95rem;
}

/* 読み込み中・読み込み失敗はひかえめに */
.infection-loading,
.infection-error {
  color: var(--c-gray-500);
  font-size: 0.9rem;
}

.infection-updated {
  text-align: right;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--c-gray-500);
}

@media (max-width: 768px) {
  .infection-list {
    padding: 18px 18px;
  }

  .infection-item {
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
  }

  .infection-disease {
    min-width: 0;
  }

  .program-item {
    flex-direction: column;
    gap: 6px;
    padding: 20px 22px;
  }

  .program-time {
    font-size: 1.05rem;
  }

  .program-text h3 {
    font-size: 1.05rem;
  }
}


/* ============================================================
   背景SVG（このページ専用）— PC / スマホで個別に調整できます
   ・.subpage-bg-green / -sky / -cream … 帯の上端位置(top:%)と高さ(height)
   ・.page-shape-cream-fill … 最下部のクリーム塗り（波直下〜ページ最下端まで伸縮）
   ・値は現状のまま。ここを編集するとこのページだけに反映されます。
   ============================================================ */
/* ── PC ── */
/* 緑帯の上端は子育て支援ページと同じ絶対位置（hero下端440px + 206px）に固定。
   %指定だとページの総丈で位置が変わり、ページごとに緑の高さがずれるため */
.subpage-bg-green {
  top: 646px;
  height: 560px;
}

.subpage-bg-sky {
  top: 39%;
  height: 1060px;
}

.subpage-bg-cream {
  top: 72%;
  height: 760px;
}

/* ── スマホ（幅768px以下） ── */
@media (max-width: 768px) {
  /* スマホも子育て支援ページと同じ絶対位置（hero下端360px + 453px） */
  .subpage-bg-green {
    top: 813px;
    height: 960px;
  }

  .subpage-bg-sky {
    top: 39%;
    height: 960px
  }

  .subpage-bg-cream {
    top: 72%;
    height: 960px
  }
}