
   .section { max-width: 1000px; margin: 2rem auto; background: white; padding: 2rem; border-radius: 10px; }
    .section h2 { border-left: 5px solid #004d40; padding-left: 1rem; color: #005533; }
    .layout img, .hole-animation img { width: 100%; border-radius: 10px; }
    table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.95rem; }
    th, td { border: 1px solid #ccc; padding: 0.4rem; text-align: center; }
    th { background-color: #004d40; color: white; }
    .cta { display: flex; justify-content: center; margin-top: 2rem; }
    .cta a { background-color: #004d40; color: white; padding: 1rem 2rem; border-radius: 5px; text-decoration: none; font-size: 1.2rem; }
    .cta a:hover { background-color: #004d40; }
    .hole-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; justify-items: center; }
    .hole-thumb { width: 100%; max-width: 350px; border-radius: 6px; cursor: pointer; transition: transform 0.3s ease; }
    .hole-thumb:hover { transform: scale(1.05); }
    .modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center; z-index: 1000; }
    .modal.hidden { display: none; }
    .modal-content {
      background: white;
      padding: 2rem;
      border-radius: 8px;
      max-width: 1000px;
      width: 95%;
      max-height: 90vh;
      overflow-y: auto;
      text-align: left;
      position: relative;
    }
    .modal-tabs { display: flex; justify-content: center; margin-bottom: 1rem; gap: 1rem; }
    .modal-tabs button {
      background: #ddd;
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 5px;
      cursor: pointer;
    }
    .modal-tabs button.active {
      background: #004d40;
      color: #fff;
    }
    .close-btn {
      position: fixed;
      top: 20px;
      right: 40px;
      font-size: 2rem;
      color: #fff;
      background: rgba(0,0,0,0.5);
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 1100;
    }
    .hole-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
    }
    .hole-card {
      background: #fdfdfd;
      border: 1px solid #ccc;
      border-radius: 8px;
      padding: 1rem;
      box-shadow: 0 1px 5px rgba(0,0,0,0.05);
      text-align: center;
    }
    .hole-card img {
      max-width: 100%;
      height: auto;
      margin: 0.5rem 0;
      border-radius: 4px;
    }
    .tabs { display: flex; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
    .tab-button {
      background: #eee;
      border: none;
      padding: 0.5rem 1rem;
      margin: 0.25rem;
      cursor: pointer;
      border-radius: 4px 4px 0 0;
    }
    .tab-button.active { background: #004d40; color: white; }
    .tab-content { display: none; margin-top: 1rem; }
    .tab-content.active { display: block; }


    #toggle-image {
      display: block;
      margin: 0 auto;
      width: 300px;
      cursor: pointer;
      border: 2px solid #ccc;
      border-radius: 8px;
    }
    .modal {
      display: none;
      position: fixed;
      z-index: 999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0, 0, 0, 0.6);
    }
    .modal-content {
      background-color: #fff;
      margin: 50px auto;
      padding: 20px;
      border-radius: 8px;
      max-width: 900px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.3);
      position: relative;
    }
    .close {
      position: absolute;
      top: 10px;
      right: 20px;
      color: #aaa;
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
    }
    .close:hover {
      color: #000;
    }
    .tab-header {
      display: flex;
      justify-content: flex-start;
      border-bottom: 2px solid #ccc;
    }
    .tab-btn {
      padding: 10px 20px;
      cursor: pointer;
      background: #f1f1f1;
      border: none;
      font-weight: bold;
      color: #666;
      border-bottom: 3px solid transparent;
    }
    .tab-btn.active {
      color: #004d40;
      background: #fff;
      border-bottom: 3px solid #004d40;
    }
    .tab-content {
      display: none;
      padding: 20px 0;
    }
    .tab-content.active {
      display: block;
    }
    .layout-slider img,
    .photo-img {
      width: 100%;
      border-radius: 4px;
      margin-bottom: 12px;
      display: none;
    }
    .layout-slider img.active,
    .photo-img.active {
      display: block;
    }
    .info {
      font-size: 14px;
      margin-bottom: 10px;
    }
    .slider-nav,
    .hole-nav {
      text-align: center;
      margin-top: 10px;
    }
    .slider-nav button,
    .hole-nav button {
      background: #004d40;
      color: #fff;
      border: none;
      padding: 5px 10px;
      margin: 0 5px;
      cursor: pointer;
      border-radius: 4px;
    }
    .hole-title {
      font-weight: bold;
      font-size: 16px;
      margin-bottom: 5px;
    }
    .hole-sub {
      font-size: 13px;
      color: #555;
      margin-bottom: 10px;
    }
    @media (max-width: 768px) {
      header h1 { font-size: 1.8rem; }
      .layout-columns { flex-direction: column; }
    }
    .hidden {
  display: none;
}
.layout-tab-btn.active {
  background: #004d40;
  color: white;
}
.layout-tab-btn {
  padding: 0.4rem 1rem;
  border: none;
  background: #ddd;
  margin: 0 4px;
  font-weight: bold;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
}


/* スマホ対応調整 */
@media screen and (max-width: 768px) {
  .hole-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .hole-card img {
    max-width: 100%;
  }

  .modal-content {
    padding: 0.5rem;
  }
}
@media screen and (max-width: 500px) {
  .hole-grid {
    grid-template-columns: 1fr; /* ← 1列にする */
    gap: 0.5rem;
  }

  .hole-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .modal-content {
    padding: 0.5rem;
  }
}

/* 初期状態：非表示（モバイルのみ） */
#nav-menu {
  display: flex; /* PCでは表示 */
  gap: 1.25rem;
}

.slider-wrapper {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.slider {
  text-align: center;
  position: relative;
}

.photo-img {
  display: none;
  width: 100%;
  border-radius: 8px;
}
.photo-img.active {
  display: block;
}

.arrow {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  border: solid #004d40;
  border-width: 0 4px 4px 0;
  padding: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 10;
}
.arrow:hover {
  opacity: 1;
}
.arrow.left {
  left: 0;
  transform: translateY(-50%) rotate(135deg);
}
.arrow.right {
  right: 0;
  transform: translateY(-50%) rotate(-45deg);
}
.photo-img {
  display: none;
  width: 100%;
  border-radius: 6px;
}
.photo-img.active {
  display: block;
}
@media screen and (max-width: 480px) {
  .modal-content {
    width: 95%;
    max-height: 90vh;
    padding: 1rem;
  }

  .hole-title {
    font-size: 14px;
  }

  .hole-sub {
    font-size: 12px;
  }

  .info {
    font-size: 13px;
  }

  .slider-nav button,
  .hole-nav button {
    font-size: 12px;
    padding: 4px 8px;
  }

  .tab-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
}

.table-scroll {
  overflow: auto;
  max-width: 100%;
}

/* テーブル共通設定 */
.table-scroll table {
  border-collapse: collapse;
  min-width: 800px; /* スクロール出すために調整 */
}

.table-scroll th,
.table-scroll td {
  padding: 8px;
  border: 1px solid #ccc;
  text-align: center;
  white-space: nowrap;
}

/* 左端の列（Hole / Par / Back / Regular / Ladys / HDCP）を固定 */
.table-scroll th:first-child,
.table-scroll td:first-child {
  position: sticky;
  left: 0;
  background: #fff;      /* 背景必須 */
  z-index: 2;            /* 他セルより前に */
}

/* 上の行（Hole 1,2,3…）を固定 */
.table-scroll tr:first-child th {
  position: sticky;
  top: 0;
  background: #f5f5f5;
  z-index: 3;
}
    .tab-buttons {
      text-align: center;
      margin-bottom: 20px;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px;
    }

    .tab-buttons button {
      padding: 10px 24px;
      background: #e0e0e0;
      border: none;
      font-weight: bold;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      color: #004d40;
    }

    .tab-buttons button:hover {
      background-color: #cddff3;
    }

    .tab-buttons .active {
      background-color: #004d40;
      color: #fff;
    }

    .hole-buttons {
      text-align: center;
      margin-bottom: 20px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 6px;
    }

    .hole-buttons button {
      padding: 8px 16px;
      border: 1px solid #004d40;
      background: #f8f9fc;
      color: #004d40;
      font-weight: 600;
      border-radius: 20px;
      cursor: pointer;
      transition: all 0.25s ease;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .hole-buttons button:hover {
      background: #e0ecfa;
      transform: translateY(-1px);
    }

    .hole-buttons .active {
      background-color: #004d40;
      color: #fff;
      border: 1px solid #004d40;
    }

    .hole-detail {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
      align-items: flex-start;
      max-width: 1000px;
      margin: 0 auto;
    }

    .hole-left,
    .hole-right {
      flex: 1;
      min-width: 280px;
    }

    .main-image {
      width: 100%;
      max-width: 100%;
      height: auto;
      border-radius: 6px;
      border: 1px solid #ccc;
    }

    .slider-container {
      display: flex;
      align-items: center;
      margin-top: 10px;
      gap: 10px;
    }

    .slide-btn {
      background: #e0e0e0;
      border: none;
      font-size: 20px;
      cursor: pointer;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      color: #004d40;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.3s;
      flex-shrink: 0;
    }

    .slide-btn:hover {
      background: #c0d2e4;
    }

    .slider-track {
      display: flex;
      overflow: hidden;
      scroll-behavior: smooth;
      flex: 1;
    }

    .slide {
      /*flex-shrink: 0;*/ 
      box-sizing: border-box;
      text-align: center;
      padding: 4px;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
    }

    .slide img {
      width: 100%;
      height: auto;
      object-fit: contain;
      border: 2px solid transparent;
      border-radius: 4px;
    }

    .slide.active img {
      border-color: #004d40;
    }

    .slide .label {
      font-size: 12px;
      color: #333;
      margin-top: 4px;
    }

    .hole-title {
      font-size: 20px;
      color: #004d40;
      font-weight: bold;
      margin-bottom: 5px;
    }

    .hole-right img.course-map {
      width: 100%;
      max-width: 85px;
      display: block;
      margin-bottom: 15px;
      margin-left: 70px;
      margin: auto;
    }

    .hole-desc {
      font-size: 14px;
      line-height: 1.6;
      margin-bottom: 20px;
    }

    .yard-table {
      width: 100%;
      max-width: 300px;
      border-collapse: collapse;
      font-size: 14px;
    }

    .yard-table td {
      padding: 8px 12px;
      border: 1px solid #ccc;
    }

    .yard-table tr:nth-child(even) {
      background: #f2f6fa;
    }

    .yard-table tr td:first-child {
      background-color: #e1ecf4;
      font-weight: bold;
    }

    @media (max-width: 600px) {
      .hole-detail {
        flex-direction: column;
        align-items: center;
      }
    }
    @media (max-width: 450px) {
      .hole-buttons button {
        padding: 8px 13px;
    }
    }    
    @media (max-width: 400px) {
      .hole-buttons button {
        padding: 8px 11px;
    }
    }   