/* =========================
   /css/experience.css
   夢幻庵 - "体験について" ページ用（iOS対応版）
   ========================= */

:root{
  --text: #222222;
  --muted: #666666;
  --accent-green: #0b3d2e;
  --accent-gold: #cfa94a;
  --soft-bg: #fafaf7;
  --section-pad: 72px;
  --max-width: 1100px;
  --radius: 10px;
  --headerHeight: 120px; /* ヘッダー高さ */
}

/* ページ全体リセット */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  background: #ffffff;
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.8;
  margin: 0;
  padding: 0;
}

/* コンテナ */
.wrapper {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 12px;
}

/* -----------------------
   ヒーロー（トップ見出し）
----------------------- */
.experience-hero {
    background-color: var(--soft-bg);
    padding: calc(var(--section-pad) * 0.85 + 80px) 0 72px 0;
    text-align: center;
    border-bottom: 1px solid #efefef;
    margin-top: 0;
    padding-top: calc(var(--headerHeight) - 80px); /* PC用トップ余白 */
}

/* トップ見出し補正用 */
.top-heading {
    display: block;
    position: relative;
}

/* アンカーリンク対策（iOS Safari 安定版） */
.top-heading::before {
  content: "";
  display: block !important;
  height: 90px !important;
  margin-top: -90px !important;
  visibility: hidden !important;
}

/* 見出しと本文 */
.experience-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 0 0 12px;
  color: #111;
  letter-spacing: 0.02em;
}

.experience-hero p {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--muted);
  margin: 0;
}

/* -----------------------
   CTAボタン
----------------------- */
.btn-gold {
    display: inline-block;
    background: linear-gradient(135deg, #cfa94a, #e7c86a);
    color: #1f1f1f;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(199,155,50,0.12);
    transition: transform .18s ease, box-shadow .18s ease;
    margin-right: 12px;
}

.btn-gold:hover,
.btn-gold:focus {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(199,155,50,0.18);
}

.cta-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 40px auto;
  max-width: 100%;
  text-align: center;
}

.cta-group .btn-gold {
  display: inline-block;
  min-width: 180px;
  max-width: 220px;
  padding: 12px 20px;
  font-size: 1rem;
  text-align: center;
}

/* -----------------------
   画像・動画スタイル
----------------------- */
.experience-section img,
.experience-section iframe,
.experience-section video {
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.experience-section figure img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: cover;
}

.experience-cta .wrapper {
    text-align: center; /* 中央寄せ */
}

.experience-cta .btn-gold {
    display: inline-block; /* 中央寄せのためにインラインブロックに */
}

/* ==========================
   烏骨鶏体験の2枚画像を横並び
========================== */
.experience-animal figure:first-of-type {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px; /* 画像の間隔 */
}

.experience-animal figure:first-of-type img {
  flex: 0 1 45%; /* 横並びで2枚分、少し余白あり */
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

/* キャプションを中央揃え */
.experience-animal figure:first-of-type figcaption {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  font-size: 0.9em;
  color: #333;
}

/* ======================================
   烏骨鶏のひよことのふれあい体験（2枚横並び）
   ※ 強制的にflexを適用し、他CSSの上書きを防止
====================================== */
.ukokkei-images {
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.ukokkei-images img {
  width: 45% !important;
  height: auto !important;
  border-radius: 8px;
  display: block !important;
  object-fit: cover;
}

.ukokkei-figure {
  text-align: center;
}

.ukokkei-figure figcaption {
  margin-top: 8px;
  font-size: 0.9em;
  color: #333;
}


/* ==========================
   2つ目以降のfigure（ヤギ体験など）は縦配置
========================== */
.experience-animal figure:not(:first-of-type),
.experience-story figure {
  display: block;
  text-align: center;
}

.experience-animal figure:not(:first-of-type) img {
  width: 80%;
  height: auto;
  border-radius: 8px;
}
/* -----------------------
   レスポンシブ補正
----------------------- */
@media (max-width: 900px) {
  :root { --section-pad: 48px; }
  .wrapper { width: 94%; }

  /* 上部余白調整 */
  .experience-hero {
    padding-top: 40px !important; /* スマホ用余白 */
    margin-top: 0 !important;
    padding-bottom: 36px !important;
  }

  .experience-hero + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .scroll-spacer {
    display: none !important;
    height: 0 !important;
  }

  .experience-section { padding: 48px 12px; }
  .experience-hero h1 { font-size: 1.9rem; }
  .experience-section h2 { font-size: 1.4rem; }

  .top-heading::before {
    height: 0 !important;
    margin-top: 0 !important;
  }

  .button-group {
    flex-direction: column;
    gap: 10px;
  }

  .cta-group {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }

  .cta-group .btn-gold {
    width: auto;
    max-width: 220px;
    padding: 12px 20px;
    white-space: nowrap;
  }

  /* CTAボタンをスマホでも中央寄せ */
  .experience-cta .wrapper {
      text-align: center;
  }

  .experience-cta .btn-gold {
      display: inline-block; /* 中央寄せ用 */
  }

}
