/*要変更等記載部分は、園によって変更の必要な箇所です。*/

/*************************
ヘッダー
**************************/
/*ナビゲーションにホバーすると指定した画像を表示*/
.hover-image-container {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.hover-image-container::after {
  content: '';
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-image: url('https://yuai-hoiku.u-i.or.jp/wp-content/uploads/2025/08/icon-cherry.png'); /*要変更*/
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

/*モバイルでナビゲーションがフッターの後ろに隠れる現象を修正*/
/* フッターのスタッキングコンテキストをリセット */
body footer,
body footer.wp-block-template-part,
body footer .wp-block-group {
  position: static;
  z-index: auto;
  transform: none;
  overflow: visible;
}

/*フッターナビにホバーすると不透明度が変化*/
.hover-opa {
  transition: color 0.3s ease;
}
.hover-opa:hover {
  color: rgba(0, 0, 0, 0.5);
}

/*お問い合わせのホバー時挙動*/
.hover-image-container:hover::after {
  opacity: 1;
  z-index: -1;
}
.hover-bgc {
  display: block;
  transition: background-color 0.3s ease;
}
.hover-bgc:hover {
  background-color: #fff0f7;
}

/*お問い合わせのデフォルトのgap消す*/
.wp-block-group.no-gap.is-layout-flex {
  gap: 0; /* これで邪魔な gap は消す */
}
.wp-block-group.no-gap.is-layout-flex > * {
  padding-top: 5px; /* 子要素ごとにスペースを入れる */
}
.wp-block-group.no-gap.is-layout-flex > *:last-child {
  margin-bottom: 0; /* 最後の要素は余白不要 */
}

/* 画面サイズによるヘッダーの表示非表示 */
.PConly {
  display: block;
}
.MBonly {
  display: none;
}
/* タブレット以下（768px以下など） */
@media screen and (max-width: 768px) {
  .PConly {
    display: none;
  }
  .MBonly {
    display: block;
  }
}

/*************************
トップページ
**************************/
/*スライドの文字に影*/
.shadow-effect {
  display: flex;
  align-items: center;
  text-shadow: 4px 4px 5px #f78da870; /*色要変更*/
}
/*お知らせのデザイン崩れを修正*/
.wp-block-group.is-layout-constrained.is-content-justification-center {
  margin-inline: auto;
}
/*表示媒体による文字サイズ調整*/
/* PCサイズ（デフォルト） */
.catchcopy {
  font-size: 36px;
}
@media screen and (max-width: 768px) {
  .catchcopy {
    font-size: 24px;
  }
}
@media screen and (max-width: 480px) {
  .catchcopy {
    font-size: 16px;
  }
}

/*画像サイズ*/
.mainvis {
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
}
.mainvis img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*下部3カラムボタンを重ねる*/
.overlap-button {
  position: relative;
  top: -20px;
  z-index: 2;
}
/*下部3カラムホバーすると動く*/
.overview-image {
  overflow: hidden;
}
.overview-image img {
  transition: transform 0.8s ease;
}
.overview-image:hover img {
  transform: scale(1.1);
}

/*見出しの下の区切り線*/
.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots) {
  height: 3px;
}

/*園についての背景*/
.about-section {
  position: relative;
  z-index: 0;
}
.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 80%;
  background-color: #fff0f7; /*要変更*/
  z-index: -1;
}
/* モバイル */
@media screen and (max-width: 428px) {
  .about-section::before {
    width: 98%;
    height: 100%;
  }
}
/*園について画像のサイズ最適化*/
.img-responsive {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
}
/* タブレット */
@media screen and (max-width: 768px) {
  .img-responsive {
    height: 350px;
  }
}
/* モバイル */
@media screen and (max-width: 428px) {
  .img-responsive {
    height: 220px;
  }
}
/* 園についてのモバイル以下で縦並びの順番を変更 */
@media screen and (max-width: 428px) {
  .wp-block-column.colum1 {
    order: 2;
  }
  .wp-block-column.colum2 {
    order: 1;
  }
}

/* 見出しに疑似要素で画像 */
h3.feature-heading {
  position: relative;
  display: inline-block;
  padding-left: 0.5em;
  z-index: 2;
}
h3.feature-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-image: url('https://yuai-hoiku.u-i.or.jp/wp-content/uploads/2025/09/icon-mark.png'); /*要変更*/
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 768px) {
  /* 見出し自体を下げて、疑似要素の上に空白を作る */
  .colum1 h3.feature-heading {
    margin-top: 1.5rem;
  }
}

/* 上に戻るボタンカスタマイズ */
#page_top {
  display: block;
  width: 80px;
  height: 80px;
  background: url('https://yuai-hoiku.u-i.or.jp/wp-content/uploads/2025/09/btn-backtotop.png')
    no-repeat center center; /*要変更*/
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
  border: none;
  margin: 0;
  padding: 0;
  background-color: transparent;
  box-shadow: none;
}
/*端末によるサイズ調整*/
/* タブレット */
@media screen and (max-width: 768px) {
  #page_top {
    width: 60px;
    height: 60px;
  }
}
/* モバイル */
@media screen and (max-width: 428px) {
  #page_top {
    width: 50px;
    height: 50px;
  }
}

/*採用情報のホバーアクション*/
.wp-block-group.has-link:hover .hover-recrute {
  background-color: #fafafa;
  transition: background-color 0.3s ease;
}
/*スマホでは縦並びに*/
@media screen and (max-width: 768px) {
  /* hover-recrute全体を縦並びに */
  .hover-recrute {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  /* 採用情報の見出し：右線・右パディング・左余白をスマホで消す */
  .heading-recrute {
    border-right: none !important;
    padding: 0 !important;
    margin: 0;
  }
  /* 段落とアイコンのグループを横並び維持 */
  .hover-recrute .text-and-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
  }
}

/*************************
固定ページ
**************************/
/*固定ページヘッダーのレスポンシブスペーサーXXL&Lをタブレット以下でサイズ調整*/
/* タブレット以下 */
@media (max-width: 768px) {
  .subpage-header .vk_block-margin-xxl--height {
    height: 4rem !important;
  }
  .subpage-header .vk_block-margin-lg--height {
    height: 3rem !important;
  }
}
/* スマホ以下 */
@media (max-width: 428px) {
  .subpage-header .vk_block-margin-xxl--height {
    height: 2rem !important;
  }
  .subpage-header .vk_block-margin-lg--height {
    height: 1.5rem !important;
  }
}

/*************************
施設概要
**************************/
/*タブのタイトルの文字の大きさ*/
.smb-tabs__tab {
  font-size: 1.25rem;
  font-weight: bold;
  font-family: 'Kosugi Maru', sans-serif;
  background-color: #fff0f7;
}
/*タブの余白を広げる*/
.smb-tabs[data-orientation='horizontal'] > .smb-tabs__tabs .smb-tabs__tab {
  padding: 1.15rem;
}

/*下記テーブルセルは園によって形式が違うので要確認でお願いします。*/
/*テーブルセル色指定*/
.hoikujikan tr:nth-child(1) td:first-child,
.jikangaihoiku tr:nth-child(3) td:first-child,
.nenreiclass tr:nth-child(1) td:first-child,
.nenreiclass tr:nth-child(1) td:nth-child(2),
.nenreiclass tr:nth-child(1) td:nth-child(3) {
  background-color: #ff93cb; /*要変更*/
}
.hoikujikan tr:nth-child(2) td:first-child,
.jikangaihoiku tr:nth-child(4) td:first-child {
  background-color: #f0b9d5; /*要変更*/
}

/*時間外保育料金のテーブルセル色指定*/
.jikangaihoiku tr:nth-child(1) td:first-child {
  background-color: #ddd; /*要変更*/
}
.jikangaihoiku tr:nth-child(1) td:nth-child(2),
.jikangaihoiku tr:nth-child(3) td:nth-child(2) {
  background-color: #bfe2ee; /*要変更*/
}
.jikangaihoiku tr:nth-child(1) td:nth-child(3),
.jikangaihoiku tr:nth-child(4) td:nth-child(2) {
  background-color: #74c2dd; /*要変更*/
}
.jikangaihoiku tr:nth-child(1) td:nth-child(4),
.jikangaihoiku tr:nth-child(4) td:nth-child(3) {
  background-color: #fd996a; /*要変更*/
}
.jikangaihoiku tr:nth-child(1) td:nth-child(5) {
  background-color: #617cb9; /*要変更*/
}
.jikangaihoiku tr:nth-child(3) td:nth-child(5) {
  background-color: #afbad1; /*要変更*/
}
/*年齢に合わせたクラス分けテーブル文字色指定*/
.nenreiclass tr:nth-child(1) td:first-child,
.nenreiclass tr:nth-child(1) td:nth-child(2),
.nenreiclass tr:nth-child(1) td:nth-child(3) {
  color: #fff; /*要変更*/
}

/*************************
こども園の一日
**************************/
/* ステップの線をずらす */
.smb-step__body:before {
  left: 0.75rem;
}
/* ステップの数字は使用（表示）しない */
.smb-step__item__number:before {
  display: none;
}
/* ●の大きさを縮小 */
.smb-step__item__number {
  width: 1.5rem;
  height: 1.5rem;
}

/*************************
年間行事
**************************/
/*タブ装飾*/
/* タブのボタン全体をフレックスにする */
.smb-tabs__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
/* アイコン画像のサイズ調整 */
.smb-tabs__tab img.tab-icon {
  width: 28px;
  height: auto;
  display: inline-block;
}
/*春*/
.eventtab .smb-tabs__tab-wrapper:nth-child(1) .smb-tabs__tab {
  background-color: #fce5e7;
  color: #d58497;
}
.eventtab .smb-tabs__tab-wrapper:nth-child(1) .smb-tabs__tab::before {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  background: url('https://yuai-hoiku.u-i.or.jp/wp-content/uploads/2025/09/icon-schedule-spring.png')
    no-repeat center/cover; /*画像URL要変更*/
}
/*夏*/
.eventtab .smb-tabs__tab-wrapper:nth-child(2) .smb-tabs__tab {
  background-color: #83cffa;
  color: #f3fafd;
}
.eventtab .smb-tabs__tab-wrapper:nth-child(2) .smb-tabs__tab::before {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  background: url('https://yuai-hoiku.u-i.or.jp/wp-content/uploads/2025/09/icon-schedule-summer.png')
    no-repeat center/cover; /*画像URL要変更*/
}
/*秋*/
.eventtab .smb-tabs__tab-wrapper:nth-child(3) .smb-tabs__tab {
  background-color: #e6edd7;
  color: #de8249;
}
.eventtab .smb-tabs__tab-wrapper:nth-child(3) .smb-tabs__tab::before {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  background: url('https://yuai-hoiku.u-i.or.jp/wp-content/uploads/2025/09/icon-schedule-fall.png')
    no-repeat center/cover; /*画像URL要変更*/
}
/*冬*/
.eventtab .smb-tabs__tab-wrapper:nth-child(4) .smb-tabs__tab {
  background-color: #c7d2db;
  color: #4a6185;
}
.eventtab .smb-tabs__tab-wrapper:nth-child(4) .smb-tabs__tab::before {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  background: url('https://yuai-hoiku.u-i.or.jp/wp-content/uploads/2025/09/icon-schedule-winter.png')
    no-repeat center/cover; /*画像URL要変更*/
}
/*歌詞画像ホバー装飾*/
.wp-block-image #openModal {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.wp-block-image #openModal img {
  display: block;
}
.wp-block-image #openModal ::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wp-block-image #openModal :hover::after {
  opacity: 1;
}

/* プレイヤー本体 */
.wp-block-audio audio {
  width: 100%;
  border-radius: 6px;
  background: #e40077; /* 背景ピンク */
}
/* コントロール部分 */
.wp-block-audio audio::-webkit-media-controls-panel {
  background-color: #e40077;
  color: #fff;
}
/* 再生時間テキスト（左側の時間表示） */
.wp-block-audio audio::-webkit-media-controls-current-time-display,
.wp-block-audio audio::-webkit-media-controls-time-remaining-display {
  color: #fff;
}

/*************************
入園案内
**************************/
/* 横並びのgapを消す */
.no-gap.is-layout-flex {
  gap: 0 !important;
}
/* 念のため子要素の margin も消す */
.no-gap > * {
  margin: 0 !important;
}
/* 各テーブル 色変更 */
.jizen tr:first-child,
.area tr:first-child {
  background-color: #f6f6f6;
}
.jizen tr:nth-child(2) td:first-child,
.apply tr:nth-child(1) td:nth-child(2),
.apply tr:nth-child(2) td:nth-child(2),
.apply tr:nth-child(3) td:nth-child(2) {
  background-color: #f6edf6;
}
.jizen tr:nth-child(3) td:first-child,
.jizen tr:nth-child(4) td:first-child,
.apply tr:nth-child(1) td:nth-child(3),
.apply tr:nth-child(2) td:nth-child(3),
.apply tr:nth-child(3) td:nth-child(3) {
  background-color: #eaf6f8;
}
.area-hp tr:first-child td:first-child {
  background-color: #8ad7fa;
}
.area-hp tr:first-child td:nth-child(2) {
  background-color: #aaecea;
}
.jizen a,
.apply a,
.area a,
.area-hp a {
  color: #20447c;
}

/*************************
お問い合わせ
**************************/
/*ContactForm7カスタマイズ*/
table.CF7_table {
  width: 80%;
  margin: 0 auto;
  border: 3px solid #e5e5e5;
}
table.CF7_table tr {
  border-top: 1px solid #e5e5e5;
}
.single .entry-content table.CF7_table,
.page .entry-content table.CF7_table {
  display: table;
}
/*入力欄*/
.CF7_table input,
.CF7_table textarea {
  border: 1px solid #d8d8d8;
}
.CF7_table ::placeholder {
  color: #797979;
}
/*「必須」文字*/
.CF7_req {
  font-size: 0.9em;
  padding: 5px;
  background: #e30077; /*要変更*/
  color: #fff;
  border-radius: 3px;
  margin-right: 1em;
}
/*「任意」文字*/
.CF7_unreq {
  font-size: 0.9em;
  padding: 5px;
  background: #bdbdbd; /*グレー*/
  color: #fff;
  border-radius: 3px;
  margin-right: 1em;
}
/* タイトル列（PC用） */
@media screen and (min-width: 768px) {
  .CF7_table th {
    width: 30%; /*横幅*/
    background-color: #f0f0f0;
    /* ★ 必須／任意ラベルを縦に揃える */
    position: relative;
    padding-left: 4em;
  }

  .CF7_table th .CF7_req,
  .CF7_table th .CF7_unreq {
    position: absolute;
    left: 1em;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
  }
}
/* レスポンシブ（スマホ用） */
@media screen and (max-width: 768px) {
  table.CF7_table {
    width: 95%;
  }
  .CF7_table tr,
  .CF7_table td,
  .CF7_table th {
    display: block;
    width: 100%;
    line-height: 2.5em;
    position: relative;
  }
  .CF7_table th {
    background-color: #f0f0f0;
  }

  .CF7_table th .CF7_req,
  .CF7_table th .CF7_unreq {
    position: absolute;
    left: 0.8em;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
  }
}
/* 「送信する」ボタン */
.wpcf7 input.wpcf7-submit {
  background-color: #e30077; /*要変更*/
  border: 0;
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  margin: 0 auto;
  padding: 8px 5%;
  border-radius: 25px;
}
.CF7_btn {
  text-align: center;
  margin-top: 20px;
}
.wpcf7-spinner {
  width: 0;
  margin: 0;
}

.wpcf7 form.sent .wpcf7-response-output {
  display: none;
}
