/* ============================================
   ページ全体の背景設定
   ============================================ */

/* HTMLとBODYの余白を完全に削除 */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background-color: #e4ddb0; /* 芝を感じる淡いクリームグリーン */
}

/* コンテナ類が中央寄せ＋背景に隙間を出さないよう調整 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* セクションの左右を常に画面いっぱいに */
section {
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

/* =====================================================
   ヘッダーエリア
===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  position: relative;
}

/* --- ブランド --- */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #2e7d32;
  gap: 0.6rem;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.brand:hover { opacity: 0.8; }

.brand-rogo { width: 48px; height: auto; }
.brand-name {
  font-family: "Cormorant Garamond", "Noto Sans JP", serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #2e7d32;
}

/* PCではフル表記のみ表示 */
.pc-name { display: inline; }
.sp-name { display: none; }

/* モバイルでは短縮表記のみ表示 */
@media (max-width: 852px) {
  .pc-name { display: none; }
  .sp-name { display: inline; }
}

/* --- SNSリンク --- */
.sns-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: auto;
}
.sns-links a img {
  width: 26px;
  height: 26px;
  transition: transform 0.25s ease;
}
.sns-links a:hover img { transform: scale(1.1); }

/* =====================================================
   PCナビゲーション
===================================================== */
@media (min-width: 853px) {
  .site-nav {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .site-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
  }

  .site-nav a {
    text-decoration: none;
    color: #2e7d32;
    font-weight: 600;
    position: relative;
    transition: color 0.25s ease;
  }

  .site-nav a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #45b94f;
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .site-nav a:hover { color: #45b94f; }
  .site-nav a:hover::after { width: 60%; }

  .sns-links {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
  }

  /* PCではハンバーガー完全非表示 */
  .nav-toggle, .hamburger {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}


/* ============================================
   モバイル対応
 ============================================ */
@media (max-width: 852px) {

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0.5rem 1rem;
  }

  /* ロゴ側 */
  .brand {
    display: flex;
    align-items: center;
    margin-left: 0.4rem;
  }

  .brand-rogo {
    width: 42px;
    height: auto;
  }

  .brand-name {
    font-size: 1.8rem;
    margin-left: 0.2rem;
  }

  /*  SNSリンク：ハンバーガーの左側に追従配置 */
  .sns-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    right: 0; /* 初期位置リセット */
    margin-right: 0.8rem; /* ← ハンバーガーと少し空ける距離 */
    order: 2; /* ← ハンバーガーの直前に来るように */
  }

  .sns-links a img {
    width: 24px;
    height: 24px;
    transition: transform 0.25s ease;
  }

  .sns-links a:hover img {
    transform: scale(1.1);
  }

  /*  ハンバーガーアイコン */
  .hamburger {
    display: block;
    position: relative;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    flex-shrink: 0;
    order: 3; /* ← SNSの右側に固定 */
  }

  .hamburger::before,
  .hamburger::after,
  .hamburger span {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2.8px;
    background-color: #2e7d32;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .hamburger::before { top: 0; }
  .hamburger span { top: 50%; transform: translateY(-50%); }
  .hamburger::after { bottom: 0; }

  .nav-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }

  #nav-toggle:checked + .hamburger::before {
    transform: rotate(45deg);
    top: 9px;
  }
  #nav-toggle:checked + .hamburger::after {
    transform: rotate(-45deg);
    bottom: 9px;
  }
  #nav-toggle:checked + .hamburger span { opacity: 0; }

  /*  ナビゲーション本体 */
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 33vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #dce7dc;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #nav-toggle:checked ~ .site-nav {
    transform: translateY(0);
  }

  .site-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .site-nav a {
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: #2e7d32;
  }

  .site-nav a:hover { color: #45b94f; }
}

/* ============================================
  見出しエリア
  -------------------------------------------- */
.midasi {
  position: relative;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.3),
      rgba(255, 255, 255, 0.4)
    ),
    url("courseImage/iron.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  color: #1b3b17;
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) 1rem clamp(3rem, 6vw, 6rem);
  overflow: hidden;
  transition: background-position 0.5s ease;
}

/* 少し白のベールを重ねて文字を際立たせる */
.midasi::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  z-index: 0;
}

.midasi-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.midasi h1 {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: #1b3b17;
}

.midasi p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: #2c3a1d;
  line-height: 1.7;
  font-weight: 500;
}

/* モバイルでは中央上寄せにして切れを最小化 */
@media (max-width: 768px) {
  .midasi {
    padding: 4rem 1rem 3rem;
    background-position: center top;
  }

  .midasi h1 {
    font-size: 1.8rem;
  }

  .midasi p {
    font-size: 1rem;
  }
}

/* ============================================
  コース概要セクション
  -------------------------------------------- */
.course-overview {
  position: relative;
  background: url("courseImage/intro.webp") center center no-repeat;
  background-size: cover;
  padding: clamp(2.5rem, 5vw, 4rem) 1rem;
  text-align: center;
  color: #1b3b17;
  overflow: hidden;
  transition: background-position 0.5s ease;
}

/* 白レイヤーで読みやすく */
.course-overview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  z-index: 0;
}

.course-overview .container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.course-overview h2 {
  font-family: "Cormorant Garamond", "Noto Sans JP", serif;
  font-size: clamp(1.6rem, 3vw, 1.9rem);
  color: #2e7d32;
  text-align: left;
  margin: 0 auto 1.5rem;
  padding-left: 0.5rem;
  border-left: 6px solid #2e7d32;
}

.course-overview p {
  font-size: clamp(0.95rem, 2vw, 1rem);
  color: #000;
  line-height: 1.8;
  max-width: 850px;
  margin: 0 auto 1.5rem;
}

/* バッジ群 */
.course-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.course-stats > div {
  background: #ffffff;
  border: 1px solid #cde3cd;
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease, transform 0.3s ease;
}
.course-stats > div:hover {
  background: #eef8ee;
  transform: translateY(-2px);
}

/* モバイル時はcontainで全体を残す */
@media (max-width: 768px) {
  .course-overview {
    padding: 2.5rem 1rem;
    background-attachment: scroll;
  }

  .course-overview h2 {
    font-size: 1.5rem;
    text-align: center;
    border: none;
    padding: 0;
  }

  .course-overview p {
    font-size: 0.95rem;
  }

  .course-stats {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .course-stats > div {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }
}


/* ============================================
   モバイル最適化
   ============================================ */
@media (max-width: 768px) {
  .course-map {
    padding: 2rem 1rem;
  }

  .course-map h2 {
    font-size: 1.5rem;
    text-align: center;
    border: none;
    padding: 0;
  }

  .course-map img {
    width: 95%;
    border-radius: 10px;
  }
}


/* ============================================
   コースマップセクション
   ============================================ */

.course-map {
  background: #e4ddb0; /* 芝を思わせる淡いグリーン */
  padding: 3rem 1rem;
  text-align: center;

}

/* --- 見出しスタイル --- */
.course-map h2 {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: 1.8rem;
  color: #2e7d32;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto 1.5rem;
  padding-left: 0.5rem;
  border-left: 6px solid #2e7d32;
}

/* --- マップ画像 --- */
.course-map img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1.5px solid #cde3cd;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  background-color: #fff;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- マウスホバーで軽く浮き上がる --- */
.course-map img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

/* ============================================
   モバイル最適化
   ============================================ */
@media (max-width: 768px) {
  .course-map {
    padding: 2rem 1rem;
  }

  .course-map h2 {
    font-size: 1.5rem;
    text-align: center;
    border: none;
    padding: 0;
  }

  .course-map img {
    width: 95%;
    border-radius: 10px;
  }
}

/* ============================================
   ENJOY PAR3 セクション
   ============================================ */

.enjoy-par3 {
  background: #e4ddb0; /* 芝を感じる淡いグリーン */
  padding: 2rem 1rem;
  padding-top: 0;
}

/* コンテナ調整 */
.enjoy-par3 .container {
  max-width: 1000px;
  margin: 0 auto;
}

/* 内側レイアウト */
.enjoy-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

/* --- テキスト部分 --- */
.enjoy-text {
  flex: 1 1 400px;
  text-align: left;
}

.enjoy-text h2 {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: 1.8rem;
  color: #2e7d32;
  margin-bottom: 0.5rem;
  border-left: 6px solid #2e7d32;
  padding-left: 0.5rem;
}

.enjoy-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

.enjoy-text .target {
  font-size: 0.9rem;
  color: #2e7d32;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0.1rem;
}

/* --- 画像部分 --- */
.enjoy-image {
  text-align: center;
}

.enjoy-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  background-color: #e4ddb0;
  display: block;
  margin: 0 auto;
}

/* --- ホバー効果（軽い浮き上がり） --- */
.enjoy-image img:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* =====================================================
   🏌️‍♀️ ホール紹介セクション（統一サイズ対応）
===================================================== */
.hole-intro {
  background: #e4ddb0;
  padding: 4rem 1rem;
  text-align: left;
}

.hole-intro .container {
  max-width: 1100px;
  margin: 0 auto;
}

.hole-intro h2 {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: 1.8rem;
  color: #2e7d32;
  margin-bottom: 0.5rem;
  border-left: 6px solid #2e7d32;
  padding-left: 0.5rem;
}

/* --- 各ホールカード --- */
.hole {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hole:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
}

/* --- ホール画像（統一サイズ） --- */
.hole-photos {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ✅ 統一サイズ設定：すべて同じ見た目で整う */
.hole-photos img {
  flex: 1 1 48%;
  width: 48%;
  aspect-ratio: 16 / 9; /* ← 横長比率（統一） */
  border-radius: 8px;
  object-fit: cover; /* ← 画像の比率を崩さず中央トリミング */
  object-position: center;
  transition: transform 0.3s ease;
  background: #f0f0f0; /* 読み込み前の背景 */
}

.hole-photos img:hover {
  transform: scale(1.03);
}

/* --- 単一画像（練習グリーンなど） --- */
.hole-photos img:only-child {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* --- ホール情報 --- */
.hole-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2e7d32;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.hole-info p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

/* --- PARロゴ --- */
.par-logo {
  width: 60px;
  height: auto;
  vertical-align: middle;
  display: inline-block;
  transform: translateY(2px);
}

.par3 {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* =====================================================
   📱 モバイル対応
===================================================== */
@media (max-width: 852px) {
  .hole {
    padding: 1.2rem;
    gap: 0.8rem;
  }

  /* ✅ 縦並びに切り替え */
  .hole-photos {
    flex-direction: column;
    gap: 0.6rem;
  }

  .hole-photos img {
    width: 100%;
    aspect-ratio: 16 / 9; /* モバイルでも同じ比率維持 */
  }

  .hole-info h3 {
    font-size: 1.1rem;
  }

  .par-logo {
    width: 50px;
  }

  .hole-info p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}


/* ============================================
   細部の調整（余白・視認性）
   ============================================ */
@media (max-width: 480px) {
  .hole-intro { padding: 2.2rem 1rem; }
  .hole-intro h2 { font-size: 1.5rem; }
  .hole-info h3 { font-size: 1.05rem; }
  .hole-info p  { font-size: .94rem; }
}

.back {
  text-align: center;
  margin: 2rem 0 3rem;
}

.back-btn {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}

.back-btn:hover {
  background: #45b94f;
  transform: translateY(-2px);
}


/* ============================================
   フッター
   --------------------------------------------
   ・全体を落ち着いたグリーン系でまとめる
   ・中央揃え＆少し余白をとって上品に
   ============================================ */
.site-footer {
  background: #2e7d32; /* 深い芝生グリーン */
  color: #ffffff;
  text-align: center;
  padding: 1.5rem 0;
  border-top: 3px solid #cde3cd; /* やわらかな緑で上のライン */
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* コピーライト文字 */
.site-footer small {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

/* 年号の部分 */
#year {
  font-weight: 600;
}

/* ============================================
   モバイル対応
   --------------------------------------------
   ・文字サイズをわずかに調整
   ============================================ */
@media (max-width: 768px) {
  .site-footer small {
    font-size: 0.85rem;
  }
}