/* ============================================
   page-childcare.css
   保育についてページ（page-childcare.php）専用スタイル
   ============================================ */


/* ============================================
   イントロセクション
   ============================================ */
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px 60px;
  max-width: 820px;
  margin: 0 auto;
}

.intro h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.5;
}

.intro p {
  font-size: 15px;
  line-height: 1.9;
  color: #555;
}


/* ============================================
   3カラムセクション
   ============================================ */
.three-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.column {
  text-align: center;
}

.column img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 16px;
}

.column-text {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  line-height: 1.5;
}

.column.left .column-text  { color: #43b791; }
.column.center .column-text { color: #ef8d52; }
.column.right .column-text  { color: #f57960; }

.column p {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  text-align: left;
}


/* ============================================
   テクスチャ区切り（三列 → フロー）
   ============================================ */
.texture-bg {
  width: 100%;
  height: 160px;
  background-image: url("../images/decorations/texture_top.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* ============================================
   一日の流れ：背景・タイトル
   ============================================ */
.flow-background {
  width: 100%;
  background-color: #fafaee;
}

.flow-title-wrap {
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 80px;
}

.bottom-center-image {
  grid-area: 1 / 1;
  display: block;
  width: 100px;
  z-index: 0;
}

.circle-text {
  grid-area: 1 / 1;
  z-index: 1;
  font-size: 32px;
  font-weight: bold;
  text-align: center;
}


/* ============================================
   一日の流れ：アイテム
   ============================================ */
.flow-inner {
  max-width: 1100px;
  margin: 60px auto 0;
  padding: 0 40px 80px;
}

/* 画像なしアイテム */
.flow-item {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 20px;
}

/* 画像ありアイテム */
.flow-item:has(.flow-image) {
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.flow-main {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
}

/* 時計＋時刻＋ライン */
.flow-time {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-time img {
  width: 90px;
  height: auto;
  max-width: none;
}

.time-text {
  margin-top: 6px;
  font-size: 16px;
  color: #f36c3d;
  font-weight: bold;
}

.timeline-line {
  width: 3px;
  height: 80px;
  background: #f36c3d;
  margin-top: 12px;
}

/* コンテンツ */
.flow-content {
  line-height: 1.7;
  padding-top: 10px;
  max-width: 400px;
}

.flow-content h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.flow-content p {
  font-size: 14px;
  color: #555;
}

/* 右側画像 */
.flow-image img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 40px;
  margin-bottom: -100px;
  z-index: -1;
}

.flow-image.flow_01 img {
  margin-top: 0;
  max-width: 450px;
}

.flow-image.flow_02 img {
  width: 400px;
  margin-top: 100px;
  margin-left: 100px;
  margin-bottom: -250px;
}

.flow-image.flow_career_03 img {
  width: 100%;
  margin-top: 20px;
  margin-bottom: -260px;
}

.flow-image.flow_career_04 img {
  margin-bottom: -200px;
  margin-top: 0;
}


/* ============================================
   テクスチャ区切り（フロー → スケジュール）
   ============================================ */
.bottom-texture {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  height: 160px;
  background-image: url("../images/decorations/texture_bottom.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* ============================================
   年間スケジュール
   ============================================ */
.yearly-schedule {
  padding: 80px 40px 60px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.yearly-schedule > p {
  font-size: 14px;
  color: #555;
  margin-bottom: 40px;
  line-height: 1.8;
  margin-top: 50px;
}

.schedule-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  display: block;
  position: relative;
  z-index: 1;
  padding-top: 10px;
  margin-bottom: 12px;
}

.schedule-title::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 120px;
  background: url("../images/decorations/h1_02.png") no-repeat center;
  background-size: contain;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* 楕円ボックス */
.year-schedule {
  border: 1px solid #e95a50;
  height: 300px;
  border-radius: 1000px;
  margin-bottom: 160px;
  position: relative;
}

.year-schedule::before {
  background: #f9ede2;
  position: absolute;
  top: -94px;
  right: -213px;
  content: "";
  display: block;
  width: 600px;
  height: 480px;
  z-index: -1;
}

.year-schedule ul {
  max-width: 665px;
  width: 100%;
  display: flex;
  -webkit-box-pack: justify;
  justify-content: space-between;
  padding-left: 0;
  list-style: none;
}

.year-schedule ul:first-child {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  top: -39px;
}

.year-schedule ul:last-child {
  position: absolute;
  bottom: 38px;
  height: 0;
  left: 50%;
  transform: translate(-50%, 0);
}

.year-schedule ul li {
  position: relative;
  font-weight: bold;
  font-size: 16px;
}

.flex-md-row-reverse {
  -webkit-box-orient: horizontal !important;
  -webkit-box-direction: reverse !important;
  flex-direction: row-reverse !important;
}


/* 月ラベル */
.month {
  display: block;
  font-weight: bold;
  text-align: center;
  margin-bottom: 4px;
  position: relative;
}

/* 赤点 */
.month::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: #f66;
  border-radius: 50%;
  margin: 6px auto;
}

.year-schedule ul:last-child .month::after {
  bottom: 12px;
}

/* 項目テキスト */
.year-schedule-list {
  text-align: center;
}

.vertically-text {
  font-weight: bold;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 14px;
}

/* 下段は逆並び */
.row-md {
  flex-direction: row-reverse;
  margin-top: 90px;
}

/* 入園案内ボタン */
.schedule-btn-wrap {
  text-align: center;
  margin-top: 40px;
}

.schedule-btn {
  display: inline-block;
  background: #f36c54;
  color: #fff;
  padding: 14px 50px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.3s;
}

.schedule-btn:hover {
  opacity: 0.8;
}


/* ============================================
   レスポンシブ（768px 以下）
   ============================================ */
@media (max-width: 768px) {

  .intro {
    padding: 50px 20px 40px;
  }

  .intro h2 {
    font-size: 22px;
  }

  .three-column {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px 60px;
  }

  .column p {
    text-align: center;
  }

  .texture-bg {
    height: 100px;
  }

  .flow-title-wrap {
    padding-top: 50px;
  }

  .circle-text {
    font-size: 24px;
  }

  .flow-inner {
    padding: 0 20px 60px;
  }

  .flow-item,
  .flow-item:has(.flow-image) {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .flow-main {
    grid-template-columns: 80px 1fr;
    gap: 12px;
  }

  .flow-time img {
    width: 70px;
  }

  .time-text {
    font-size: 14px;
  }

  .flow-content h3 {
    font-size: 16px;
  }

  .flow-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 16px auto 0;
    border-radius: 12px;
  }

  .flow-image.flow_01 img,
  .flow-image.flow_02 img,
  .flow-image.flow_career_03 img,
  .flow-image.flow_career_04 img {
    width: 100%;
    max-width: 100%;
    margin: 16px auto 0;
    margin-left: 0;
    margin-bottom: 0;
  }

  .bottom-texture {
    height: 100px;
  }

  .schedule-title {
    font-size: 24px;
  }

  .yearly-schedule > p {
    margin-top: 50px;
  }

  .year-schedule {
    max-width: 1000px;
    margin-bottom: 0;
    margin-left: 39px;
    border: none;
    height: 1100px;
  }

  .year-schedule ul {
    display: block;
  }

  .year-schedule ul:first-child {
    display:contents;
  }

  .year-schedule ul:last-child {
    transition: tran;
    top: 540px;
  }

  .year-schedule::before {
    right: -321px;
    top: -51px;
  }

  .year-schedule li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 90px;
  }

  .row-md {
    display: block;
    margin-top: 0;
  }

  .year-schedule-list {
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 36px;
    position: relative;
    padding-left: 20px;
  }

  .year-schedule-list.first {
    position: relative;
    top: -13px;
    margin-left: 0;
    font-weight: bold;
  }

  .month {
    top: -4px;
    font-size: 18px;
    font-weight: bold;
    width: 50px;
    border-right: 2px solid #e95a50;
    position: relative;
    text-align: right;
  }

  .month::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #e95a50;
    border-radius: 10px;
    display: block;
    position: absolute;
    right: -5px;
  }

  .month::after {
    display: none;
  }

  .month.first span {
    position: relative;
    top: -9px;
  }

  .vertically-text {
    writing-mode: initial !important;
    text-orientation: initial !important;
    font-size: 14px;
    line-height: 1.8;
    height: auto !important;
  }

}
