@charset "UTF-8";

/* ===== 保育所 メインビジュアル (01_main) absolute配置版 ===== */
/* Figmaフレーム 865 x 398（比率 398/865 = 46.013%） */
.nursery_main {
  position: relative;
  width: 100%;
  max-width: 840px;
  aspect-ratio: 865 / 398;
  margin: 0 auto 30px;
}

@supports not (aspect-ratio: 1) {
  .nursery_main::before {
    content: "";
    display: block;
    padding-top: 46.013%;
  }
}

/* --- 写真＋子供イラストの束ね（写真ブロック = l=245,t=3,w=620） --- */
.nursery_main_visual {
  position: absolute;
  left: 28.324%; /* 245/865 */
  top: 0.754%; /* 3/398 */
  width: 71.676%; /* 620/865 */
  z-index: 1;
}

.nursery_main_photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.nursery_main_kids {
  position: absolute;
  left: 62.903%; /* (635-245)/620 */
  top: 68.611%; /* (250-3)/360 */
  width: 33.548%; /* 208/620 */
  height: auto;
  z-index: 2;
  pointer-events: none;
}

/* --- ロゴ「保育所」: l=0,t=88,w=217.8 --- */
.nursery_main_logo {
  position: absolute;
  left: -7px;
  top: 22.111%; /* 88/398 */
  width: 25.179%; /* 217.8/865 */
  margin: 0;
  line-height: 0;
  z-index: 3;
}

.nursery_main_logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- キャッチコピー（nursery_main_visual 基準で配置）---
   ロゴ左端（.nursery_main の left:0）と揃える → 写真ブロック基準で (0-245)/620 */
.nursery_main_copy {
  position: absolute;
  left: -39.516%; /* (0-245)/620 ＝ ロゴ左端に揃える */
  top: 58.611%; /* (214-3)/360 */
  width: 46.613%; /* 289/620 */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin: 0;
  z-index: 4;
}

.nursery_main_copy span {
  display: inline-block;
  background: #f8f6f1;
  color: #414141;
  font-family:
    "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W6", "メイリオ", Meiryo,
    sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 1.6px;
  padding: 3px 5px;
  white-space: nowrap;
}

/* ===== 見出し「充実した院内保育サポート」(02_contents) ===== */
.nursery_ttl {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 840px;
  margin: 0 auto 20px;
  color: #414141;
  font-family:
    "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W6", "メイリオ", Meiryo,
    sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 1.2px;
}

.nursery_ttl_deco {
  flex: 0 0 auto;
  width: 30px;
  height: auto;
}

/* ===== POINTカード (Frame 6/7/8) ===== */
.nursery_point {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 840px;
  margin: 0 auto 20px;
  padding: 30px 80px 30px 70px;
  background: #f8f6f1;
  border-radius: 10px;
  box-sizing: border-box;
}

.nursery_point:last-child {
  margin-bottom: 0;
}

/* --- 左：バッジ（円＋子供＋POINT番号＋縦罫） --- */
.nursery_point_badge {
  position: relative;
  flex: 0 0 auto;
  width: 216px;
  height: 130px;
  /* 右端の縦区切り線 */
  border-right: 2px solid #ece8dc;
}

.nursery_point_circle {
  position: absolute;
  left: 0;
  top: 5px;
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 50%;
  z-index: 1;
}

.nursery_point_kids {
  position: absolute;
  z-index: 3;
  height: auto;
}

.nursery_point_num {
  position: absolute;
  left: 64px;
  top: 6px;
  height: auto;
  z-index: 2;
}

/* POINT番号はサイズが異なるため個別指定 */
.nursery_point01 .nursery_point_num {
  width: 95px;
  left: 51px;
  top: 2px;
}
.nursery_point02 .nursery_point_num {
  width: 100px;
  left: 42px;
  top: -1px;
}
.nursery_point03 .nursery_point_num {
  width: 100px;
  left: 48px;
  top: -3px;
}

/* 子供イラストは画像ごとに縦横比・配置が異なるため個別指定 */
.nursery_point01 .nursery_point_kids {
  left: -26px;
  bottom: 4px;
  width: 92px;
}
.nursery_point02 .nursery_point_kids {
  left: -24px;
  bottom: 0px;
  width: 78px;
}
.nursery_point03 .nursery_point_kids {
  left: -46px;
  bottom: -1px;
  width: 119px;
}

/* --- 右：テキスト --- */
.nursery_point_body {
  flex: 1 1 auto;
  min-width: 0;
}

.nursery_point_head {
  display: inline-block;
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 12px;
  color: #414141;
  font-family:
    "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W6", "メイリオ", Meiryo,
    sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
}

/* 見出し下の手書き下線（POINTごとに色違いの画像を切替） */
.nursery_point_head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 160px;
  height: 11px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}
.nursery_point01 .nursery_point_head::after {
  background-image: url(../img/line_01.webp);
}
.nursery_point02 .nursery_point_head::after {
  background-image: url(../img/line_02.webp);
}
.nursery_point03 .nursery_point_head::after {
  background-image: url(../img/line_03.webp);
}

.nursery_point_text {
  margin: 0;
  color: #414141;
  font-family:
    "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "メイリオ", Meiryo,
    sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
}

/* 強調文字色（POINTごとに異なる） */
.nursery_point_text strong {
  font-weight: 600;
}
.nursery_point01 .nursery_point_text strong {
  color: #e87117;
}
.nursery_point02 .nursery_point_text strong {
  color: #e4ae0c;
}
.nursery_point03 .nursery_point_text strong {
  color: #8bc20c;
}

/* ===== タブレット (737-1024px) ===== */
@media screen and (min-width: 737px) and (max-width: 1024px) {
  .nursery_main_copy span {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .nursery_point {
    gap: 24px;
    padding: 26px 30px 26px 40px;
  }
  .nursery_point_badge {
    width: 185px;
    zoom: 0.8;
  }
  .nursery_point_head {
    font-size: 18px;
  }
  .nursery_point_text {
    font-size: 16px;
  }
}

/* ===== SP (max-width:736px) ===== 比率配置を解除し縦積みへ */
@media screen and (max-width: 736px) {
  .nursery_main {
    position: relative;
    aspect-ratio: auto;
    max-width: none;
    margin-bottom: 30px;
    text-align: center;
    /* 縦積み: ロゴ → 写真（コピーは写真の上に重ねる） */
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .nursery_main_logo {
    order: 1;
  }
  .nursery_main_visual {
    order: 2;
  }
  @supports not (aspect-ratio: 1) {
    .nursery_main::before {
      display: none;
    }
  }
  .nursery_main_logo {
    position: static;
    left: auto;
    top: auto;
    width: 160px;
    margin: 0 auto 16px;
  }
  /* コピーは nursery_main_visual（写真）内で absolute 配置：左端に揃える */
  .nursery_main_copy {
    left: 0;
    top: 15px;
    bottom: auto;
    width: auto;
    z-index: 5;
  }
  /* フォントサイズ・字間はPCと同じ（ベース値）を使用 */
  /* 写真＋子供の束ねは relative の重ねコンテナとして維持 */
  .nursery_main_visual {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
  }
  .nursery_main_kids {
    width: 38%;
    left: auto;
    right: 0;
    top: auto;
    bottom: -4%;
  }
  /* 見出しはSPで一段縮小 */
  .nursery_ttl {
    font-size: 19px;
    gap: 7px;
    margin-bottom: 20px;
  }
  .nursery_ttl_deco {
    width: 26px;
  }
  /* POINTカードは縦積み（バッジ上・テキスト下） */
  .nursery_point {
    flex-direction: column;
    gap: 8px;
    padding: 30px 20px;
  }
  .nursery_point_badge {
    width: 120px;
    height: 120px;
    border-right: none;
    margin: 0 auto 20px;
    zoom: 0.8;
  }
  .nursery_point_body {
    width: 100%;
    text-align: center;
  }
  .nursery_point_head {
    font-size: 18px;
  }
  .nursery_point_text {
    font-size: 15px;
  }
  /* 子供イラストを左に5pxずらす */
  .nursery_point_kids {
    transform: translateX(-15px);
  }
}

/* ===== 575px以下：本文のみ左寄せ ===== */
@media screen and (max-width: 575px) {
  .nursery_main_copy {
    top: -10px;
  }

  .nursery_point_text {
    text-align: left;
  }
}
