@charset "utf-8";
/* CSS Document - 全ホール共通 */

/* パンくずリスト */
.breadcrumb {
    background: linear-gradient(to bottom, #ffffff 0%, #f5f5f5 100%);
    padding: 10px 0;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.breadcrumb .container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb li {
    font-size: 13px;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '|';
    margin: 0 15px;
    color: #666;
    font-weight: normal;
}

.breadcrumb a {
    color: #003d82;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.breadcrumb a:hover {
    background-color: #003d82;
    color: #ffffff;
    transform: translateY(-1px);
}

.breadcrumb li:last-child {
    color: #333;
    font-weight: 600;
}

/* ホールページメイン */
.hole-page {
    background: url('../images/corse-back.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 40px 0;
}

.wrap {
    max-width: 1400px;
    margin: auto;
    padding: 40px 20px;
	background: rgba(255, 255, 255, 0.9) !important;
}

/* 白枠コンテナ全体 */
.hole-container {
   
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* コースラベル */
.course-label {
    background: #4CAF50;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 30px;
    margin: 0;
    border-bottom: 2px solid #45a049;
}

/* ホールタイトル */
.hole-header {
    padding: 30px 40px;
    border-bottom: 2px solid #4CAF50;
    background: transparent;
}

.hole-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: #333;
    margin: 0;
}

.hole-number {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
}

.hole-info {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 400;
    color: #666;
}

/* ヤーデージ表 */
.yardage-table-small {
    margin: 0;
}

.yardage-header {
    background: #4CAF50;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    padding: 15px;
    font-size: 18px;
}

.yardage-table-small table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    table-layout: fixed;
}

.yardage-table-small th,
.yardage-table-small td {
    padding: 15px 10px;
    text-align: center;
    border: 1px solid #ddd;
    background: transparent;
}

.yardage-table-small thead th {
    background: #f0f0f0;
    font-weight: 700;
    color: #333;
}

.yardage-table-small thead th:first-child {
    width: 15%;
    background: #f0f0f0;
    border: none;
}

.yardage-table-small tbody td:first-child {
    width: 15%;
}

.bent-green-label {
    background: #f0f0f0 !important;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
}

/* 2カラムレイアウト */
.hole-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
    background: transparent;
}

.hole-description {
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 2;
    color: #333;
}

/* デスクトップは px、スマホは vh で上限を切り替えたい場合 */
:root{
  --map-max-h: 800px;   /* PCでの最大高さ（お好みで） */
}

.hole-map{
  display: grid;
  place-items: center;  /* 幅が縮んだとき中央寄せ */
}

.hole-map img{
  max-width: 100%;      /* 親幅を超えない */
  max-height: var(--map-max-h); /* ← 最大高さを制限 */
  width: auto;          /* 比率維持のため 100% は使わない */
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;  /* 念のため（width/height auto でも安全策） */
}

@media (max-width: 768px){
  :root{ --map-max-h: 70vh; } /* スマホは画面高の7割を上限に */
}

/* ホール写真 */
.hole-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 40px 40px;
    background: transparent;
}

.photo-item {
    background: transparent;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.photo-caption {
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* ナビゲーションボタン */
.hole-navigation {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 40px 40px;
}

.nav-btn {
    display: block;
    background: #003d82;
    color: #ffffff;
    text-align: center;
    padding: 18px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(14px, 1.5vw, 16px);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #00509e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.3);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hole-page {
        background-attachment: scroll;
        padding: 0;
    }
    
    .wrap {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hole-content {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .hole-photos {
        grid-template-columns: 1fr;
        padding: 0 20px 20px;
    }
    
    .hole-navigation {
        grid-template-columns: 1fr;
        padding: 0 20px 20px;
    }
    
    .yardage-table-small {
        overflow-x: auto;
    }
    
    .hole-header {
        padding: 20px;
    }
}

/* ---- Lightbox (拡大表示) ---- */
.lightbox-backdrop{
  position: fixed;
  inset: 0;
  display: none;            /* is-openが付いた時に表示 */
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.8);
  z-index: 9999;
}
.lightbox-backdrop.is-open{ display: flex; }

.lightbox-img{
  max-width: min(1200px, 90vw);
  max-height: 90vh;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}

.lightbox-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
@media (max-width: 768px){
  .lightbox-img{ max-width: 96vw; max-height: 80vh; }
}

/* ▼ホール写真：スマホでも3枚横並びを維持する */
.hole-photos{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 常に3カラム */
  gap: 24px;
}
.hole-photos > * { min-width: 0; }                 /* はみ出し防止 */

.hole-photos img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;                              /* 角丸が必要なら */
}

/* 画面が狭いときは余白や文字サイズだけ少し調整（任意） */
@media (max-width: 768px){
  .hole-photos{ gap: 12px; }
  .hole-photos figcaption,
  .hole-photos .photo-caption{ font-size: 12px; }
}

/* ---- Lightbox navigation ---- */
.lightbox-backdrop{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.85);
  z-index: 9999;
}
.lightbox-backdrop.is-open{ display: flex; }

.lightbox-img{
  max-width: min(1200px, 90vw);
  max-height: 90vh;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}

/* ×ボタン */
.lightbox-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* ← → ナビボタン（大きめの当たり判定） */
.lightbox-nav{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none; /* 画像以外だけ反応させる */
}
.lightbox-btn{
  pointer-events: all;
  width: 64px;
  height: 64px;
  margin: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}

/* キャプション（alt表示） */
.lightbox-caption{
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  color: #fff;
  text-align: center;
  font-size: 14px;
  opacity: .9;
}

@media (max-width: 768px){
  .lightbox-img{ max-width: 96vw; max-height: 80vh; }
  .lightbox-btn{ width: 52px; height: 52px; font-size: 22px; }
}

/* ===== スマホ時のヤーデージ表 フォントサイズ調整 ===== */
@media (max-width: 768px) {
  .yardage-table-small th,
  .yardage-table-small td {
    font-size: 12px !important; /* ← 基本文字サイズ */
    padding: 10px 8px;          /* ← 少しだけ余白も減らす */
  }

  /* "BENT GREEN" の2行文字をより整える */
  .yardage-table-small .bent-green-label {
    font-size: 11px !important;
    line-height: 1.2;
    word-break: keep-all;
  }

  /* 見出し部分もバランスを取る */
  .yardage-header {
    font-size: 14px !important;
    padding: 10px 8px;
  }
}

/* ===== BENT GREEN セルのスマホ時レイアウト調整 ===== */
@media (max-width: 768px) {
  .yardage-table-small .bent-green-label {
    font-size: 9px !important;       /* 小さめにして枠内に収める */
    line-height: 1.1 !important;      /* 行間を詰める */
    padding: 10px 6px !important;     /* 横幅も調整 */
    white-space: normal !important;   /* 改行を許可 */
    word-break: keep-all;
    vertical-align: middle !important;/* 中央揃え */
    text-align: center !important;    /* 左右中央 */
  }
}

/* ===== BENT GREEN セルの余白調整 ===== */
.bent-green-label {
  padding: 8px 12px 8px 10px !important; /* 上右下左（右に少し余白） */
  text-align: center;
  vertical-align: middle;
  word-break: keep-all;
}


