/* ============================================
   保護者の皆様へ
   FUJITA築育サイト

   MV部分はcraft.cssと同じ構造（.tobira-プレフィックス）。
   コンテンツ部分（バナー・紹介文ブロック・個人情報・お問い合わせ）は
   このページ専用（.confirm-プレフィックス）。
   ============================================ */

.tobira-hero {
  position: relative;
  width: 100%;
  height: 832px;
  background: #DAF2FF;
  overflow: hidden;
  z-index: 0; /* スタッキングコンテキストを確立し、内部のframe等がconfirm-content側と比較されて漏れないようにする */
}

.is-pc-only { display: block !important; }
.is-sp-only { display: none !important; }

.tobira-hero__bg-bottom {
  position: absolute;
  left: 0;
  right: 0;
  top: 603px;
  bottom: 0;
  background: #0F825D;
  z-index: 0;
}

.tobira-frame {
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  z-index: 1; /* bg-bottomより確実に手前 */
}

.tobira-frame img,
.tobira-frame > * {
  position: absolute;
}

/* 雲 */
.tobira-cloud {
  z-index: 1;
}

/* 町並みイラスト */
.tobira-illust {
  z-index: 1;
}

/* 風船（mv-baloonと同サイズ・同アニメーション） */
.tobira-baloon {
  width: 32px;
  z-index: 1;
  animation: mv-float-y 3s ease-in-out infinite;
}

@keyframes mv-float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ページタイトル（グラデーション文字。デフォルトの角度を使用） */
.confirm-title {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 900;
  text-align: center;
  background: linear-gradient(125.5deg, #0E845C 9.5%, #0867AE 94.8%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: clamp(32px, 4.6875vw, 60px);
  line-height: 1.5;
  letter-spacing: 0.05em;
  white-space: nowrap;
  z-index: 2;
}

.confirm-title.is-pc-only {
  font-size: clamp(32px, 4.6875vw, 60px);
  line-height: 1.5;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.confirm-title.is-sp-only {
  font-size: clamp(24px, 10.256vw, 40px);
  line-height: 1.25;
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: linear-gradient(103.1deg, #0E845C 9.5%, #0867AE 94.8%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* サブコピー */
.confirm-desc {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 700;
  color: #414141;
  text-align: center;
  z-index: 2;
}

.confirm-desc.is-pc-only {
  font-size: clamp(16px, 2.03125vw, 26px);
  letter-spacing: 0.1em;
  line-height: 1.4;
  white-space: nowrap;
}

.confirm-desc.is-sp-only {
  font-size: clamp(14px, 5.641vw, 22px);
  letter-spacing: 0.1em;
  line-height: 1.4;
}

/* 見出し＋導入文ラッパー（共通クラス.mv-textblockはstyle.cssに定義。ここではtopのみ） */
.mv-textblock {
  top: 130px;
}

/* イントロ文（緑背景に重なる白文字） */
.confirm-intro {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 900;
  color: #fff;
  text-align: center;
  letter-spacing: 0.1em;
  line-height: 1.6;
  z-index: 2;
}

.confirm-intro.is-pc-only { font-size: 20px; line-height: 2; }
.confirm-intro.is-sp-only { font-size: 20px; line-height: 2; }

/* イラスト装飾エリアの背景楕円（top-illust__ellipseと同じ手法を流用） */
.tobira-illust-ellipse {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #0F825D;
  z-index: 0;
}

.tobira-illust-ellipse.is-pc-only {
  top: 402.6px;
  width: max(1894px, calc(100vw + 200px));
  height: 352px;
}

.tobira-illust-ellipse.is-sp-only {
  top: 325.5px;
  width: max(507px, calc(100vw + 100px));
  height: 148px;
}

/* ============ メインコンテンツセクション ============ */
.confirm-content {
  position: relative;
  z-index: 1; /* heroより確実に手前 */
  background: #F7FAD8;
  padding-bottom: 142px; /* フッターとの間の余白（PC基準。SPは98pxにメディアクエリで上書き） */
  margin-bottom: -1px; /* フッターとの境目のサブピクセルの縞を防止 */
}

/* バナーがMVの緑(#0F825D)にまだ重なっている範囲だけ緑を継続させる帯（PC/SPとも必要） */
.confirm-content__bg-green {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 165px;
  background: #0F825D;
  z-index: 0;
}

.confirm-content__bg-green.is-sp-only {
  height: 80px;
}

/* 芝（craftページと同じ仕組み） */
.tobira-grass {
  position: absolute;
  z-index: 1;
}

/* メインビジュアルバナー（MVに少し重なる） */
.confirm-banner {
  display: block;
  margin: -150px auto 0;
  border-radius: 20px;
  position: relative;
  z-index: 2;
}

.confirm-banner.is-pc-only {
  width: 941px;
  max-width: calc(100% - 40px);
  height: auto;
}

.confirm-banner.is-sp-only {
  margin-top: -300px;
  width: 375px;
  max-width: calc(100% - 30px);
  height: auto;
}

/* 紹介文ブロック×3 */
.confirm-blocks {
  width: 944px;
  max-width: calc(100% - 40px);
  margin: 81px auto 0;
  position: relative;
  z-index: 2;
}

.confirm-block {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 70px;
}

.confirm-blocks .confirm-block:first-child {
  margin-top: 0;
}

.confirm-block--reverse {
  flex-direction: row-reverse;
}

.confirm-block__img {
  flex: 0 0 409px;
  width: 409px;
  height: 409px;
  border-radius: 20px;
  overflow: hidden;
}

.confirm-block__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.confirm-block__text {
  flex: 1 1 auto;
}

.confirm-block__copy {
  margin: 0 0 20px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 30px;
  color: #0E845C;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.confirm-block__read {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 20px;
  color: #414141;
  line-height: 2;
}

/* 個人情報セクション */
.confirm-info {
  width: 948px;
  max-width: calc(100% - 40px);
  margin: 103px auto 0;
  padding: 33px 40px;
  background: #fff;
  border-radius: 24px;
  text-align: center;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.confirm-info__title {
  margin: 0 0 16px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 30px;
  color: #0867AE;
  letter-spacing: 0.05em;
}

.confirm-info__read {
  margin: 0 0 24px;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 20px;
  color: #414141;
  line-height: 1.5;
}

.confirm-info__btns {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.confirm-info__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 58px;
  padding: 0 14px 0 24px;
  background: #fff;
  border: 1px solid #D9D9D9;
  border-radius: 37px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 18px;
  color: #0867AE;
  text-decoration: none;
  transition: border-color var(--transition), border-width var(--transition);
}

.confirm-info__btn:hover {
  opacity: 1;
  border: 2px solid #0867AE;
}

.confirm-info__btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #0867AE;
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
  flex-shrink: 0;
}

/* お問い合わせセクション */
.confirm-contact {
  width: 948px;
  max-width: calc(100% - 40px);
  margin: 103px auto 0;
  padding: 33px 50px 43px 100px;
  background: #0867AE;
  border-radius: 146px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.confirm-contact__title {
  margin: 0 0 12px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  letter-spacing: 0.05em;
}

.confirm-contact__read {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 20px;
  color: #fff;
  line-height: 2;
}

.confirm-contact__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  background: #fff;
  color: #0867AE;
  border-radius: 50%;
  font-size: 30px;
  text-decoration: none;
}

/* けんぞー/ハク/ほりぞー＋戻るボタン */
.tobira-guide {
  position: fixed;
  bottom: 20%; /* フッターのロゴ・テキストと被らないよう引き上げ（PC向け。SPは下部メディアクエリで別途上書き） */
  left: var(--space-md);
  z-index: 3;
}

.tobira-guide.is-pc-only {
  width: 115px;
  height: 216px;
}

.tobira-guide.is-sp-only {
  width: 73px;
  height: 137px;
}

.tobira-guide__char {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: none;
}

.tobira-guide__char.is-active {
  display: block;
}

.tobira-guide.is-pc-only .tobira-guide__char {
  width: 115px;
  bottom: 64px;
}

.tobira-guide.is-sp-only .tobira-guide__char {
  width: 73px;
  bottom: 40px;
}

.tobira-guide__btn {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(95deg, #0E845C 9.49%, #0867AE 94.76%) border-box;
  color: #0E845C;
  font-family: var(--font-main);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.tobira-guide__btn-line {
  display: block;
}

.tobira-guide.is-pc-only .tobira-guide__btn {
  width: 108px;
  height: 108px;
  border: 4px solid transparent;
  font-size: 20px;
  line-height: 1.3;
}

.tobira-guide.is-sp-only .tobira-guide__btn {
  width: 68px;
  height: 68px;
  border: 3px solid transparent;
  font-size: 10px;
  line-height: 1.3;
}

/* -----------------------------------------------
   レスポンシブ（768px以下 = SP）
----------------------------------------------- */
@media screen and (max-width: 768px) {
  .is-pc-only { display: none !important; }
  .is-sp-only { display: block !important; }

  .tobira-hero {
    height: 952px;
  }

  .tobira-hero__bg-bottom {
    top: 412px;
  }

  .tobira-frame {
    max-width: 390px;
  }

  /* SPは見出し＋導入文の開始位置を調整（旧#page-mv-titleのtop:97.3pxをラッパーへ移設） */
  .mv-textblock {
    top: 97px;
  }

  .tobira-guide {
    bottom: var(--space-sm);
    left: var(--space-sm);
  }

  .confirm-content {
    padding-bottom: 98px;
  }

  .confirm-blocks {
    width: 100%;
    max-width: calc(100% - 40px);
    margin-top: 136px;
  }

  .confirm-block,
  .confirm-block--reverse {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-top: 60px;
  }

  .confirm-block__img {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .confirm-block__copy {
    font-size: 22px;
    letter-spacing: 0.055em;
    text-align: left;
    margin: 0 0 12px;
  }

  .confirm-block__read {
    font-size: 18px;
    text-align: left;
  }

  .confirm-info {
    margin-top: 113px;
    padding: 28px 10px 78px 10px;
  }

  .confirm-info__title {
    font-size: 26px;
  }

  .confirm-info__btns {
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }

  .confirm-info__btn {
    max-width: 248px;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
  }

  .confirm-contact {
    margin-top: 78px;
    width: 86%;
    padding: 60px 40px 50px;
    border-radius: 175px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .confirm-contact__title {
    font-size: 26px;
  }
  .confirm-contact__read {
    text-align: left !important;
  }
}
