/* index.html 専用スタイル（style.css の後・_utilities.css の前に読み込む） */

.header-nav a.active {
  color: var(--c-coral);
}

.header-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 20px;
  height: 3px;
  background: var(--c-coral);
  border-radius: var(--r-pill);
  transform: translateX(-50%);
}

.hero-slider {
  position: sticky;
  top: 0;
  width: 100%;
  height: calc(100vh + 220px);
  height: calc(100svh + 220px);
  overflow: hidden;
  margin-top: 0;
  /* クロスフェード中に透ける背景。同じ写真を敷いておき、フェードの谷でも
     必ず不透明な画像が背後に見えるようにして緑のカブリ/にじみを完全に防ぐ
     （--c-sky-pale が #A4B8A0=緑 に統一されているため色は使わない） */
  background: #cfe9f7 url("../assets/photos/vr-top.webp?v=202609111434") center / cover no-repeat;
  z-index: 0;
}

.hero-corner {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 460px;
  max-width: 50%;
  aspect-ratio: 440 / 380;
  pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='440' height='480' viewBox='0 0 440 480' preserveAspectRatio='none'><path fill='%23FFFFFF' d='M0,0 L400,0 C322,110 300,168 182,232 C74,292 34,356 0,470 Z'/></svg>") no-repeat left top / 100% 100%;
}

/* パンフレット同様、白いコーナー内・ロゴの右上に飛ぶ鳥のイラスト */
.hero-corner-birds {
  position: absolute;
  top: 25%;
  left: 12%;
  width: 50%;
  height: auto;
  pointer-events: none;
  /* 左下から右上へ飛ぶよう反時計回りに傾ける */
  transform: rotate(-36deg);
  transform-origin: center;
}

@media (min-width: 769px) {
  .hero-corner {
    display: none;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider~section,
.hero-slider~footer {
  position: relative;
  z-index: 1;
  background: var(--c-white);
}

.hero-slider~.section.section-bg {
  background: var(--c-band, var(--c-white));
  z-index: 2;
}

.hero-slider~footer.footer {
  background:
    linear-gradient(rgba(232, 186, 96, 0.62), rgba(214, 156, 66, 0.7)),
    url("../assets/photos/footer-bg.webp?v=202609111434") center / cover no-repeat;
}

.hero-slider~.marquee {
  background: var(--c-white);
}

.hero-overlay {
  position: absolute;
  /* hero-slider 下端 220px は波装飾領域 → 文字を viewport 中央に寄せるため除外 */
  inset: 0 0 220px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45));
}

.hero-overlay h1 {
  font-family: var(--font-hand);
  font-size: 3.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: 1.6;
  writing-mode: vertical-rl;
  color: var(--c-white);
  margin: 0;
  animation: hero-text-in 1.2s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-overlay p {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  padding: 10px 22px;
  border-radius: var(--r-pill);
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid var(--c-white);
  cursor: pointer;
  transition: background var(--t), transform var(--t);
}

.hero-dot.active {
  background: var(--c-coral);
  transform: scale(1.2);
}

.hero-slider+.section {
  padding-top: 30px;
}

.hero-slider+.section::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 100%;
  height: 100px;
  /* 波装飾を section の外側（hero 領域内）に完全に出す
     1px だけ section 内側に被せて SVG と section bg の隙間を消す */
  transform: translateY(-100%);
  /* 頂点(最上)を x=400=1/3 に置き、そこから右端まで単調に下降する片流れの山 */
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='100' viewBox='0 0 1200 100' preserveAspectRatio='none'><path fill='%23FFFFFF' d='M0,70 L40,62.4 L80,54.2 L120,45.8 L160,37.6 L200,30 L240,23.2 L280,17.6 L320,13.5 L360,10.9 L400,10 L440,10.5 L480,12 L520,14.4 L560,17.6 L600,21.7 L640,26.5 L680,31.8 L720,37.6 L760,43.7 L800,50 L840,56.3 L880,62.4 L920,68.2 L960,73.5 L1000,78.3 L1040,82.4 L1080,85.6 L1120,88 L1160,89.5 L1200,90 L1200,100 L0,100 Z'/></svg>") no-repeat center top / 100% 100%;
  pointer-events: none;
}

#access.section-bg {
  background: transparent;
}

#access.section-bg::before,
#access.section-bg::after {
  display: none;
}

#access>.container {
  position: relative;
  z-index: 2;
}

.page-backdrop {
  position: absolute;
  top: calc(100vh + 220px);
  /* .hero-slider の高さと一致させる */
  top: calc(100svh + 220px);
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  background: #ffffff;
  pointer-events: none;
}

.page-shape-sky {
  top: var(--sky-top);
  height: var(--sky-h);
}

.page-shape-cream-wave {
  top: var(--cream-top);
  height: var(--cream-wave-h);
}

#minauruinsta,
#pages,
#teaser-hoiku,
#teaser-shokuiku,
#teaser-support {
  background: transparent;
}

#teaser-hoiku .teaser-body {
  background: transparent;
}

.page-shape-teaser-green {
  top: 1880px;
  height: 560px;
}

.page-shape-teaser-cream {
  top: 2900px;
  height: 960px;
}

.marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
  background: var(--c-white);
}

.marquee+.section {
  padding-top: 60px;
}

/* 同じ並びを2セット並べ、半分（1セット分）だけ動かして無限ループさせる。
   合成スレッドで動くCSSアニメーションなので、JS側が忙しくてもカクつかない。
   速度は --marquee-duration（script.js が実測幅から算出）で決まる。 */
.marquee-track {
  display: flex;
  width: max-content;
  padding-top: 12px;
  padding-bottom: 12px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* 幅を測って周期が決まってから動かし始める（途中で速度が変わって飛ぶのを防ぐ） */
.marquee-track.is-ready {
  animation: marquee-scroll var(--marquee-duration, 60s) linear infinite;
}

@keyframes marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

.marquee-item {
  width: 220px;
  height: 220px;
  margin-right: 28px;
  padding: 12px 12px 28px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--c-white);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.marquee-track>.marquee-item:nth-child(3n+1) {
  transform: rotate(-2deg);
}

.marquee-track>.marquee-item:nth-child(3n+2) {
  transform: rotate(1.8deg);
}

.marquee-track>.marquee-item:nth-child(3n+3) {
  transform: rotate(-0.8deg);
}

@media (max-width: 768px) {
  .marquee {
    padding: 6px 0;
  }

  .marquee+.section {
    padding-top: 48px;
  }

  .marquee-item {
    width: 160px;
    height: 160px;
    margin-right: 18px;
    padding: 10px 10px 22px;
  }
}

.pages-blob-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.blob-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--c-text);
}

.blob-photo {
  display: block;
  width: 100%;
  /* PDFデザインに合わせて横長（3:2）。形状は手描き風の有機マスクで切り抜く */
  aspect-ratio: 3 / 2;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}

.blob-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blob-card:hover .blob-photo {
  transform: translateY(-6px) rotate(-1.5deg);
}

/* PDFの写真マスク形状を SVG clipPath（objectBoundingBox）で正確に再現。
   マスクの定義は index.html 内の <svg id="blob-clips"> にある（このセクションは index 専用） */
.blob-card:nth-child(8n + 1) .blob-photo {
  -webkit-clip-path: url(#blob-1);
  clip-path: url(#blob-1);
}

.blob-card:nth-child(8n + 2) .blob-photo {
  -webkit-clip-path: url(#blob-2);
  clip-path: url(#blob-2);
}

.blob-card:nth-child(8n + 3) .blob-photo {
  -webkit-clip-path: url(#blob-3);
  clip-path: url(#blob-3);
}

.blob-card:nth-child(8n + 4) .blob-photo {
  -webkit-clip-path: url(#blob-4);
  clip-path: url(#blob-4);
}

.blob-card:nth-child(8n + 5) .blob-photo {
  -webkit-clip-path: url(#blob-5);
  clip-path: url(#blob-5);
}

.blob-card:nth-child(8n + 6) .blob-photo {
  -webkit-clip-path: url(#blob-6);
  clip-path: url(#blob-6);
}

.blob-card:nth-child(8n + 7) .blob-photo {
  -webkit-clip-path: url(#blob-7);
  clip-path: url(#blob-7);
}

.blob-card:nth-child(8n + 8) .blob-photo {
  -webkit-clip-path: url(#blob-8);
  clip-path: url(#blob-8);
}

.blob-label {
  display: inline-block;
  padding: 8px 22px;
  background: var(--c-white);
  border-radius: var(--r-pill);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--c-h2);
  letter-spacing: 0.04em;
  transition: background var(--t), color var(--t), box-shadow var(--t);
  white-space: nowrap;
}

.blob-card:hover .blob-label {
  background: var(--c-sea);
  color: var(--c-white);
}

.blob-label--vr {
  background: var(--c-sun);
  color: var(--c-white);
}

.blob-card:hover .blob-label--vr {
  background: var(--c-sun);
  color: var(--c-white);
}

#pages {
  padding-bottom: 196px;
}

#pages>.container {
  position: relative;
  z-index: 2;
  /* カード類をシェイプより前面に */
}

/* Instagram見出し下のアカウント名（style.css の .section-title p 非表示を上書き） */
#minauruinsta .section-title p {
  display: block;
  margin-top: 4px;
  color: var(--c-sun);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

#minauruinsta .section-title p a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

#minauruinsta .section-title p a:hover,
#minauruinsta .section-title p a:focus-visible {
  opacity: 0.7;
  text-decoration: underline;
}

.minauruinsta-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.insta-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 32px 0 28px;
}

.insta-tab {
  --tab-color: var(--c-sea);
  background: var(--c-white);
  color: var(--tab-color);
  border: 3px solid var(--tab-color);
  padding: 10px 26px;
  font-family: var(--font-jp);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--t);
}

.insta-tab[data-tab="news"],
.insta-tab[data-tab="daily"],
.insta-tab[data-tab="event"],
.insta-tab[data-tab="meal"] {
  --tab-color: var(--c-sea);
}

.insta-tab:hover {
  background: var(--tab-color);
  color: var(--c-white);
}

.insta-tab.is-active {
  background: var(--tab-color);
  color: var(--c-white);
}

.insta-tab-panel {
  animation: insta-fade 0.3s ease;
}

.insta-embed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.insta-embed-grid.insta-photos {
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  max-width: 720px;
  margin-inline: auto;
}

/* 該当タグの投稿が0件のタブ（スマホ側の .insta-photos 指定より詳細度を高くする） */
.insta-embed-grid.is-empty,
.insta-embed-grid.insta-photos.is-empty {
  display: block;
  overflow-x: visible;
}

.insta-empty {
  margin: 0;
  padding: 64px 16px;
  border-radius: 12px;
  background: var(--c-gray-50);
  color: var(--c-gray-700);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.insta-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
  /* グリッド項目が画像の実寸で横に膨らみ、右端が見切れるのを防ぐ */
  transition: transform var(--t), box-shadow var(--t);
}

.insta-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  border-radius: inherit;
}

.insta-tile:hover {
  transform: translateY(-4px);
}

.insta-link {
  display: inline-flex;
  align-items: center;
}

.access-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.access-address {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.access-address p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--c-text);
}

.access-address a {
  font-weight: 700;
}

.access-map {
  border-radius: var(--r-lg);
  overflow: hidden;
}

.access-map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  filter: saturate(0.95);
}

@media (max-width: 768px) {
  .access-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .access-map iframe {
    height: 280px;
  }
}

@media (max-width: 900px) {
  .insta-embed-grid {
    grid-template-columns: 1fr;
  }

  .pages-blob-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 28px;
  }
}

@media (max-width: 480px) {
  .pages-blob-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  .blob-card {
    gap: 14px;
  }

  .blob-label {
    font-size: 0.9rem;
    padding: 7px 16px;
  }

  #pages {
    padding-bottom: 130px;
  }
}

@media (max-width: 1160px) {

  .header-nav.open a.active,
  .header:not(.scrolled) .header-nav.open a.active {
    color: var(--c-coral);
  }
}

@media (max-width: 768px) {

  .header-nav.open a.active,
  .header:not(.scrolled) .header-nav.open a.active {
    color: var(--c-coral);
  }

  .hero-slider {
    height: 100vh;
    height: 100svh;
    margin-top: 0;
  }

  .page-backdrop {
    top: 100vh;
    top: 100svh;
  }

  .hero-overlay {
    inset: 0;
  }

  .hero-overlay h1 {
    font-size: 3.2rem;
    letter-spacing: 0.15em;
    line-height: 1.5;
  }

  .hero-overlay p {
    font-size: 0.85rem;
    padding: 8px 18px;
  }

  --wave-1-cream: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='220' viewBox='0 0 1200 220' preserveAspectRatio='none'><path fill='%23FBF4E6' d='M0,110 C200,102 400,102 600,110 C800,118 1000,118 1200,110 L1200,220 L0,220 Z'/></svg>");
  --wave-1-white: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='220' viewBox='0 0 1200 220' preserveAspectRatio='none'><path fill='%23FFFFFF' d='M0,110 C200,102 400,102 600,110 C800,118 1000,118 1200,110 L1200,220 L0,220 Z'/></svg>");
  --wave-2-cream: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='220' viewBox='0 0 1200 220' preserveAspectRatio='none'><path fill='%23FBF4E6' d='M0,110 C200,118 400,118 600,110 C800,102 1000,102 1200,110 L1200,220 L0,220 Z'/></svg>");
  --wave-2-white: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='220' viewBox='0 0 1200 220' preserveAspectRatio='none'><path fill='%23FFFFFF' d='M0,110 C200,118 400,118 600,110 C800,102 1000,102 1200,110 L1200,220 L0,220 Z'/></svg>");
  --wave-3-cream: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='220' viewBox='0 0 1200 220' preserveAspectRatio='none'><path fill='%23FBF4E6' d='M0,106 Q600,128 1200,106 L1200,220 L0,220 Z'/></svg>");
  --wave-3-white: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='220' viewBox='0 0 1200 220' preserveAspectRatio='none'><path fill='%23FFFFFF' d='M0,106 Q600,128 1200,106 L1200,220 L0,220 Z'/></svg>");
  --wave-4-cream: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='220' viewBox='0 0 1200 220' preserveAspectRatio='none'><path fill='%23FBF4E6' d='M0,110 Q150,102 300,110 T600,110 T900,110 T1200,110 L1200,220 L0,220 Z'/></svg>");
  --wave-4-white: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='220' viewBox='0 0 1200 220' preserveAspectRatio='none'><path fill='%23FFFFFF' d='M0,110 Q150,102 300,110 T600,110 T900,110 T1200,110 L1200,220 L0,220 Z'/></svg>");

  .hero-slider+.section::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='220' viewBox='0 0 1200 220' preserveAspectRatio='none'><path fill='%23FFFFFF' d='M0,114 C140,104 260,102 420,108 C600,114 700,124 880,116 C1010,111 1120,118 1200,114 L1200,220 L0,220 Z'/></svg>");
  }

  .insta-embed-grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 16px;
    margin: 0 -4px;
  }

  .insta-embed-grid.insta-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    overflow-x: visible;
    /* 下のフォローアイコンと重ならないよう余白を必ず確保する */
    margin: 0 0 28px;
    max-width: none;
  }

  .insta-photos .insta-tile {
    flex: none;
    min-width: 0;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 10px;
  }

  /* タブ4つ（保育/行事/給食/お知らせ）を1行に収める */
  .insta-tabs {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .insta-tab {
    padding: 8px 12px;
    font-size: 0.82rem;
    border-width: 2px;
    white-space: nowrap;
  }
}

.intro-message {
  text-align: center;
  position: relative;
  /* 草花イラストの横方向の食み出しは html/body の overflow-x:clip で既に抑制済み。
     ここに overflow を付けると、上端外(translateY(-100%))に配置した白い波装飾(::before)が
     iOS(WebKit)で縦方向まで巻き込んでクリップされ波が消えるため、overflow は付けない */
}

.intro-message-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── パンフレット下部を踏襲した草花イラスト（メッセージを四隅から囲む） ── */
.intro-deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* 左上：花付きの枝＋点々のトレイル */
.intro-deco-tl {
  top: 6%;
  left: 2%;
  width: 200px;
}

/* 右上：花付きの渦巻きのつる（鳥は内側=文字側を向く自然な向き） */
.intro-deco-tr {
  top: 5%;
  right: 2%;
  width: 150px;
}

/* 左下：縦に伸びる大きなつる */
.intro-deco-bl {
  bottom: -2%;
  left: 0;
  width: 150px;
}

/* 右下：渦巻きのつる */
.intro-deco-br {
  bottom: 2%;
  right: 2%;
  width: 180px;
}

.intro-message-inner p {
  font-size: 1.05rem;
  line-height: 2.1;
  color: var(--c-text);
}

.intro-message-inner p+p {
  margin-top: 1.6em;
}

.teaser {
  position: relative;
}

.teaser-head {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  height: 16vw;
  min-height: 110px;
  max-height: 160px;
  overflow: hidden;
  /* PCは有機的な丸形（blob）でくり抜く（スマホは下部メディアクエリで矩形に戻す） */
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
}

.teaser-head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 各ティーザーのバンド写真は、デザイン案のトリミング位置に合わせて縦位置を指定する */
#teaser-hoiku .teaser-head img {
  object-position: 50% 66%;
}

#teaser-shokuiku .teaser-head img {
  object-position: 50% 95%;
}

#teaser-support .teaser-head img {
  object-position: 50% 69%;
}

.teaser-head-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 32px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 40%, rgba(0, 0, 0, 0.5));
}

.teaser-eyebrow {
  color: var(--c-white);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.teaser-head-overlay h2 {
  color: var(--c-white);
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

/* PC：バンド写真のテキストを中央（上下・左右）に配置 */
@media (min-width: 769px) {
  .teaser-head-overlay {
    justify-content: center;
    align-items: center;
    text-align: center;
    /* 中央テキストの視認性のため全体を軽く暗く */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.4));
  }
}

.teaser-body {
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}

.teaser-body .container {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.teaser-body p {
  line-height: 2;
  color: var(--c-text);
}

.teaser-body p+p {
  margin-top: 1.2em;
}

.teaser-cta {
  text-align: right;
  margin-top: 28px;
}

.teaser-sub+.teaser-sub {
  margin-top: 44px;
}

.teaser-sub h3 {
  text-align: center;
  font-size: 1.3rem;
  color: #555555;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.tbwave-cg,
.tbwave-gp,
.tbwave-p {
  background: #ffffff;
}

#teaser-shokuiku,
#teaser-support {
  /* マイナス top のはみ出しをクリップしない */
  overflow: visible;
}

#teaser-shokuiku .teaser-body,
#teaser-support .teaser-body {
  background: transparent;
}

#teaser-shokuiku .teaser-body .container,
#teaser-support .teaser-body .container {
  position: relative;
  z-index: 3;
}

#teaser-shokuiku .teaser-head,
#teaser-support .teaser-head {
  z-index: 2;
  /* 写真・タイトルはシェイプより前面（隠れない） */
}

#teaser-shokuiku .teaser-head {
  border-radius: 42% 58% 46% 54% / 48% 42% 58% 52%;
}

#teaser-support .teaser-head {
  border-radius: 55% 45% 60% 40% / 42% 55% 45% 58%;
}

@media (min-width: 1000px) {
  #teaser-hoiku .teaser-head {
    transform: translateX(-110px);
  }

  #teaser-shokuiku .teaser-head {
    transform: translateX(110px);
  }

  #teaser-support .teaser-head {
    transform: translateX(-110px);
  }
}

#teaser-shokuiku .teaser-shape {
  top: -80px;
  /* 食（緑）: マイナスで波形上端が写真の上にはみ出す */
  height: 560px;
}

#teaser-support .teaser-shape {
  top: 260px;
  /* 子育て（クリーム） */
  height: 760px;
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 200px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  background: var(--c-sea);
  color: var(--c-white);
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity var(--t), transform var(--t), box-shadow var(--t);
}

/* グローバルの a:hover（文字色変化）を打ち消し、ホバー・押下時も白のまま */
.btn-detail:hover,
.btn-detail:focus,
.btn-detail:active {
  color: var(--c-white);
}

.btn-detail:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-detail-label {
  letter-spacing: 0.06em;
  padding-bottom: 7px;
  background-image: radial-gradient(circle, #fff 1.4px, transparent 1.5px);
  background-size: 11px 2.5px;
  background-repeat: repeat-x;
  background-position: left bottom;
}

.btn-detail-icon {
  flex: none;
  display: inline-flex;
  width: 22px;
  height: 28px;
}

.btn-detail-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.btn-detail.btn-detail-plum {
  background: #BBAB9F;
}

.btn-detail.btn-detail-lavender {
  background: #B9ACBC;
}

.btn-detail.btn-detail-steel {
  background: #A9B5BC;
}

#teaser-support .teaser-cta+.teaser-sub {
  margin-top: 8rem;
}

@media (max-width: 768px) {
  .intro-message-inner p {
    font-size: 0.98rem;
    line-height: 2;
  }

  /* スマホでは草花イラストを小さくし、文字と重ならないよう左右下に寄せる */
  .intro-deco-tl {
    top: -10%;
    left: -10%;
    width: 138px;
  }

  .intro-deco-tr {
    top: 1%;
    right: 1%;
    width: 120px;
  }

  .intro-deco-bl {
    bottom: 15%;
    left: 0%;
    width: 90px;
  }

  .intro-deco-br {
    bottom: 15%;
    right: 1%;
    width: 90px;
  }

  .teaser-head,
  #teaser-shokuiku .teaser-head,
  #teaser-support .teaser-head {
    height: 32vw;
    padding: 0;
    /* スマホでは角丸なし（矩形表示） */
    border-radius: 0;
  }

  .teaser-head-overlay {
    padding: 20px 22px;
  }

  .teaser-head-overlay h2 {
    font-size: 1.4rem;
  }

  .teaser-cta {
    text-align: right;
  }

  .btn-detail {
    min-width: 0;
    padding: 10px 18px;
    gap: 12px;
    font-size: 0.82rem;
  }

  .btn-detail-icon {
    width: 18px;
    height: 22px;
  }
}


/* ============================================================
   背景SVG（トップ専用）— PC / スマホで個別に調整できます
   ・.page-shape-* … ページ上端からの絶対位置(top:px)と高さ(height)
   ・.page-shape-cream-fill … 波直下〜ページ最下端まで伸縮（height は calc）
   ・値は現状のまま。ここを編集するとトップだけに反映されます。
   ============================================================ */
/* ── PC ── */
.page-shape-teaser-green {
  top: 1880px;
  height: 560px;
}

.page-shape-teaser-cream {
  top: 2900px;
  height: 960px;
}

.page-shape-sky {
  top: 4200px;
  height: 979px;
}

.page-shape-cream-wave {
  top: 4900px;
  height: 240px;
}

.page-shape-cream-fill {
  top: calc(4900px + 240px - 1px);
  height: calc(100% - 5291px - 140px + 1px);
}

/* ── スマホ（幅768px以下・現状はPCと同値。必要に応じて調整） ── */
@media (max-width: 768px) {
  .page-shape-teaser-green {
    top: 1880px;
    height: 560px;
  }

  .page-shape-teaser-cream {
    top: 2900px;
    height: 960px;
  }

  .page-shape-sky {
    top: 4200px;
    height: 979px;
  }

  .page-shape-cream-wave {
    top: 5000px;
    height: 140px;
  }

  .page-shape-cream-fill {
    top: calc(5000px + 140px - 1px);
    height: calc(100% - 5291px - 140px + 1px);
  }
}