@charset "utf-8";

/* ==========================================================
   こども誰でも通園制度ページ（daycare.php）専用スタイル
   ========================================================== */

/* ---- 見出し「はじめての一歩に　そっと寄り添いたい」 ----
   光沢のある黄色寄りオレンジ ＋ 1文字ずつ上から下へ入るアニメーション
   （文字の分割は既存の js/split2.js、遅延の段差は既存の .js-span-text.on span:nth-child を流用） */
.daycare-gloss .ja {
  color: #f0951c;
}

/* 全角スペースは split2.js に除去されるため <spc> で間隔を取る */
.daycare-gloss .ja spc {
  padding: 0 0.5em;
}

/* グラデーションは分割後の1文字ずつに掛ける
   （親要素に掛けると、文字が transform で動いた際に背景がずれるため） */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .daycare-gloss .ja span {
    background: -webkit-gradient(linear, left top, left bottom, from(#ffe488), color-stop(38%, #ffc23d), color-stop(50%, #f5920f), color-stop(66%, #ffb64a), to(#ffeaa8));
    background: linear-gradient(180deg, #ffe488 0%, #ffc23d 38%, #f5920f 50%, #ffb64a 66%, #ffeaa8 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-filter: drop-shadow(0 2px 1px rgba(214, 126, 12, 0.3));
            filter: drop-shadow(0 2px 1px rgba(214, 126, 12, 0.3));
  }
}

/* 既存の斜め方向の動き（keyframes text）を、上から下へ落ちる動きに差し替える */
.daycare-gloss .ja.js-span-text.on span {
  -webkit-animation-name: daycareDropIn;
          animation-name: daycareDropIn;
}

@-webkit-keyframes daycareDropIn {
  0% {
    opacity: 0;
    -webkit-transform: translateY(-30px);
            transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}

@keyframes daycareDropIn {
  0% {
    opacity: 0;
    -webkit-transform: translateY(-30px);
            transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}

/* ---- ごあいさつボックス下の海のイラスト
   全体が見えるサイズで中央に配置し、外周を白へ円形フェードさせる ---- */
.daycare-frame {
  margin-top: 35px;
  text-align: center;
}

.daycare-frame img {
  display: inline-block;
  width: 100%;
  max-width: 300px;
  height: auto;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 85%, rgba(0, 0, 0, 0) 100%);
          mask-image: radial-gradient(circle closest-side, #000 85%, rgba(0, 0, 0, 0) 100%);
}

@media all and (max-width: 639px) {
  .daycare-frame img {
    max-width: 260px;
  }
}

/* ---- 元気な子／楽しむ子／幸せな子（園舎写真を背景に、丸背景でふわふわ） ---- */
.daycare-keywords {
  position: relative;
  margin-top: 60px;
  padding: 125px 20px;
  border-radius: 12px;
  overflow: hidden;
  background-image: url("https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/27656/daycare_kv.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.daycare-keywords:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.32);
}

.daycare-keyword-list {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 45px;
}

.daycare-keyword-list li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  color: #5b4636;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  -webkit-box-shadow: 0 6px 16px rgba(62, 60, 57, 0.18);
          box-shadow: 0 6px 16px rgba(62, 60, 57, 0.18);
}

/* パンフレットの3色（ピンク／イエロー／グリーン）に合わせる */
.daycare-keyword-list li:nth-child(1) {
  background: #ffd3e0;
}

.daycare-keyword-list li:nth-child(2) {
  background: #fdf3ad;
  -webkit-animation-delay: 0.4s;
          animation-delay: 0.4s;
}

.daycare-keyword-list li:nth-child(3) {
  background: #c9edc7;
  -webkit-animation-delay: 0.8s;
          animation-delay: 0.8s;
}

@media all and (max-width: 639px) {
  .daycare-keywords {
    padding: 50px 15px;
  }
  .daycare-keyword-list {
    gap: 25px;
  }
  .daycare-keyword-list li {
    width: 130px;
    height: 130px;
    font-size: 1.8rem;
  }
}

/* ---- 「お子さまにとっては…」「保護者にとっては…」下のイラスト ---- */
.daycare-illust {
  margin-top: 20px;
  text-align: center;
}

.daycare-illust img {
  width: 210px;
  max-width: 70%;
  height: auto;
}

/* ---- 持ち物／必要書類 2カラム（注記ボックスの頭を揃える） ---- */
.daycare-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  -webkit-column-gap: 40px;
     -moz-column-gap: 40px;
          column-gap: 40px;
  row-gap: 0;
}

.daycare-grid2 > .daycare-col {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
}

@media all and (max-width: 896px) {
  .daycare-grid2 {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 35px;
  }
  .daycare-grid2 > .daycare-col {
    grid-row: auto;
    grid-template-rows: none;
  }
}

/* ---- ご利用の流れ STEP02 のQRコード ---- */
.daycare-qr {
  margin-top: 12px;
}

.daycare-qr img {
  width: 110px;
  height: auto;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #e2e2e2;
}

/* ---- 園からのお願い ボックス右上に重ねるシーサー ---- */
.daycare-request {
  position: relative;
  z-index: 3;
}

.daycare-request .daycare-shisa {
  position: absolute;
  top: -68px;
  right: -5px;
  width: 190px;
  height: auto;
  pointer-events: none;
}

@media all and (max-width: 639px) {
  .daycare-request .daycare-shisa {
    top: -45px;
    width: 120px;
  }
}

/* フッターナビの文字ふちどりは全ページ共通のため basis.css（.footer_navi ul > li a）へ移動 */
