/* 
 * LeoPalace Resort Guam - Golf Course Page Stylesheet
 * 統合版 - HTML内直書きCSSを含む
 */

/* ----------------------------------------
   Hero Section (MV) Styles for Golf Course Page
---------------------------------------- */
.golf-page .slideshow-item:nth-child(1) {
  background-image: url('/golf/img/golf-hero2.jpg');
}

/* ----------------------------------------
   Golf Page Button Styles
---------------------------------------- */

.golf-page .mv-nav {
  width: 50%; /* 幅を50%に変更（2つの場合は100%） */
  max-width: 400px; /* 最大幅を設定 */
  margin: 0 auto; /* 中央揃え */
}

.golf-page .m-nav-item {
  width: 100%; /* ボタン1つの場合は幅100% */
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .golf-page .mv-nav {
    width: 80%; /* モバイル表示では幅を広げる */
  }
}

@media screen and (max-width: 550px) {
  .golf-page .mv-nav {
    width: 100%; /* 小さい画面では最大幅 */
  }
}

/* ----------------------------------------
   Course Map Styles
---------------------------------------- */
.course-map-section {
  padding: 60px 0;
  text-align: center;
}

.course-map-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 40px;
  position: relative;
}

.course-map {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.course-map:hover {
  transform: scale(1.02);
}

/* ----------------------------------------
   Course Info Section
---------------------------------------- */
.course-info-section {
  padding: 60px 0;
  background-color: rgba(236, 224, 211, 0.3);
}

/* ----------------------------------------
   Course Tabs
---------------------------------------- */
.course-tabs {
  width: 100%;
  margin: 30px 0;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tab-button {
  padding: 12px 24px;
  cursor: pointer;
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  background-color: #f8f8f8;
  font-weight: 600;
  font-size: var(--font-size-sm);
  letter-spacing: 2px;
  min-width: 150px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, background-color 0.3s ease;
  margin-bottom: -1px;
}

.tab-button:hover {
  z-index: 2;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

.tab-button.active {
  background-color: white;
  border-bottom-color: white;
  z-index: 3;
}

button.tab-button.orchid-tab {
  margin: 0 3px;
}

/* Course tab colors */
.hibiscus-tab {
  color: #E93B3D;
  border-top: 3px solid #E93B3D;
}

.orchid-tab {
  color: #963A8F;
  border-top: 3px solid #963A8F;
}

.bougainvillea-tab {
  color: #FF748c;
  border-top: 3px solid #FFC0CB;
}

.plumeria-tab {
  color: #b39000;
  border-top: 3px solid #F9CE2E;
}

.tab-button.hibiscus-tab.active {
  background-color: #ffdede;
}

.tab-button.orchid-tab.active {
  background-color: #f5e5f5;
}

.tab-button.bougainvillea-tab.active {
  background-color: #fff5f6;
}

.tab-button.plumeria-tab.active {
  background-color: #fffbe5;
}

/* Tab content */
.tab-content {
  display: none;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 0 5px 5px 5px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ----------------------------------------
   Course Header - Image and Description
---------------------------------------- */
.course-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

/* レスポンシブ動画コンテナ */
.course-image {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9のアスペクト比 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.course-image iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.course-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.course-image img:hover {
  transform: scale(1.05);
}

.course-description {
  width: 100%;
}

.course-description h3 {
  text-align: left;
  margin-bottom: 15px;
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 1px;
}

.course-description p {
  margin-bottom: 20px;
  line-height: 1.8;
  letter-spacing: 1px;
}

.course-stats {
  list-style: none;
  padding: 0;
  margin: 0;
}

.course-stats li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  font-size: var(--font-size-sm);
}

.course-stats li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.status-tag {
  display: inline-block;
  background-color: #f8d7da;
  color: #721c24;
  font-size: var(--font-size-xs);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 400;
}

.course-notice {
  background-color: rgba(248, 215, 218, 0.2);
  border-left: 4px solid #f8d7da;
  padding: 20px;
  margin-top: 20px;
  border-radius: 4px;
}

.course-notice p {
  color: #721c24;
  margin: 0;
}

/* ----------------------------------------
   Table Styles
---------------------------------------- */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 30px;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.scroll-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 650px;
}

.scroll-table th, 
.scroll-table td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: center;
  font-size: var(--font-size-sm);
}

/* Course header colors */
.hibiscus {
  background-color: #E93B3D;
  color: white;
  font-weight: bold;
}

.orchid {
  background-color: #963A8F;
  color: white;
  font-weight: bold;
}

.bougainvillea {
  background-color: #FFC0CB;
  font-weight: bold;
  color: #333;
}

.plumeria {
  background-color: #F9CE2E;
  font-weight: bold;
  color: #333;
}

/* Tee colors */
.blue-tee {
  color: blue;
  font-weight: bold;
}

.red-tee {
  color: red;
  font-weight: bold;
}

/* ----------------------------------------
   Facilities Tables
---------------------------------------- */
.facilities-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-sm);
}

.facilities-table th,
.facilities-table td {
  border: 1px solid var(--color-border);
  padding: var(--spacing-sm) var(--spacing-md);
  vertical-align: middle;
  background-color: var(--color-white);
}

.facilities-table thead th {
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

/* 単位行（small要素） */
.facilities-table thead th small {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  font-weight: 200;
  margin-top: 2px;
}

/* ----------------------------------------
   Course Details
---------------------------------------- */
.course-details {
  padding: 60px 0;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.course-details.private-course {
  padding-top: 0;
}

/* ----------------------------------------
   Rental Items Section (HTML内直書きから移行)
---------------------------------------- */
.rental-items-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.4);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  color: #8a8174;
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  color: #333;
}

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

/* 幅広いスクリーンサイズに対応 */
@media (min-width: 768px) {
  .rental-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .rental-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.rental-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rental-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.rental-card.full-width {
  grid-column: 1 / -1; /* 全幅 */
}

.rental-card-header {
  background-color: #918a7a;
  color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rental-card-header h3 {
  color: #fff;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.price {
  font-size: 1.25rem;
  font-weight: 600;
}

.rental-card-body {
  padding: 20px;
}

.rental-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rental-features li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rental-features li:last-child {
  border-bottom: none;
}

.feature-label {
  font-weight: 400;
}

.feature-value {
  color: #8a8174;
}

.rental-note {
  margin-top: 16px;
  color: #777;
  line-height: 1.5;
  font-size: 0.9rem;
  font-style: normal;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.two-column h4 {
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: 500;
  color: #333;
}

.rental-info {
  background-color: #f1eeea;
  padding: 30px;
  border-radius: 8px;
  margin-top: 30px;
}

.rental-info h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #5a5347;
}

.info-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
}

.info-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.info-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background-color: #918a7a;
  border-radius: 50%;
}

/* ----------------------------------------
   Rental Categories (既存のスタイルを保持)
---------------------------------------- */
.rental-categories {
  margin: var(--spacing-lg, 24px) 0;
}

.category-selector {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.category-btn {
  background-color: var(--color-bg-gray);
  color: var(--color-text);
  border: none;
  padding: var(--spacing-sm, 12px) var(--spacing-md, 16px);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.category-btn:hover {
  background-color: #aaa;
  transform: translateY(-2px);
}

.category-btn.active {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.rental-category {
  display: none;
}

.rental-category.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* ----------------------------------------
   Scroll Hints
---------------------------------------- */
/* スクロールタブ用のスタイル調整 */
.scroll-tabs-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  scrollbar-width: none; /* Firefox用 */
  -ms-overflow-style: none; /* IE/Edge用 */
}

/* Webkit（Chrome, Safari）用のスクロールバー非表示 */
.scroll-tabs-container::-webkit-scrollbar {
  display: none;
}

.scroll-tabs {
  display: flex;
  justify-content: center; /* PCビューでのセンタリング */
  min-width: min-content;
  white-space: nowrap;
  margin: 0 auto; /* 中央揃え */
}

/* Circular scroll hint with arrow - similar to meeting room style */
.scroll-hint.horizontal {
  position: absolute;
  right: 40%;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background-color: rgba(145, 138, 122, 0.8);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.scroll-hint.horizontal::after {
  content: '→';
  color: white;
  font-size: 24px;
  font-weight: bold;
  animation: bounceArrowHorizontal 1.5s infinite;
}

@keyframes bounceArrowHorizontal {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(0);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(3px);
  }
}

/* Class for tables that are scrollable */
.is-scrollable-x {
  position: relative;
}

.is-scrollable-x .scroll-hint.horizontal {
  opacity: 0.9;
}

/* タブスクロールヒント */
.tab-scroll-hint {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: rgba(145, 138, 122, 0.8);
  border-radius: 50%;
  z-index: 10;
  opacity: 0.9;
  pointer-events: none;
  animation: pulseEffect 1.5s infinite;
}

.tab-scroll-hint::after {
  content: '→';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  font-weight: bold;
}

/* スクロールヒントのアニメーション */
@keyframes pulseEffect {
  0% {
    transform: translateY(-50%) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.9;
  }
}

/* ----------------------------------------
   Responsive Styles
---------------------------------------- */
/* 大きい画面サイズ向けのレイアウト */
@media screen and (min-width: 768px) {
  .course-header {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .course-image {
    width: 40%;
    margin-bottom: 0;
    padding-bottom: 22.5%; /* 縮小された16:9のアスペクト比（40%の場合） */
  }
  
  .course-description {
    width: 60%;
    padding-left: 20px;
  }
}

/* 特に大きい画面向けの追加調整 */
@media screen and (min-width: 1200px) {
  .course-image {
    width: 45%;
    padding-bottom: 25.31%; /* 縮小された16:9のアスペクト比（45%の場合） */
  }
  
  .course-description {
    width: 55%;
  }
}

/* とても大きい画面向けの調整 */
@media screen and (min-width: 1600px) {
  .course-image {
    width: 40%;
    padding-bottom: 22.5%; /* さらに縮小された16:9のアスペクト比（40%の場合） */
    max-height: 400px; /* 最大高さを設定 */
  }
  
  .course-description {
    width: 60%;
  }
}

/* PCビューとモバイルビューの切り替え */
@media (min-width: 481px) {
  /* PCビュー用のスタイル */
  .scroll-tabs {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .scroll-tabs-container {
    overflow-x: visible; /* PCではスクロールを無効に */
  }
  
  /* モバイルビューのみでスクロールヒントを表示 */
  .tab-scroll-hint {
    display: none;
  }
}

@media (max-width: 1024px) {
  .tab-buttons {
    gap: 5px;
  }
  
  .tab-button {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .course-image,
  .course-description {
    width: 100%;
  }
  
  /* テーブルスクロールヒントの表示 */
  .table-container.scrollable .scroll-indicator {
    display: block;
  }
}

@media (max-width: 480px) {
  /* モバイルビュー用のスタイル */
  .tab-buttons {
    display: contents;
  }
  
  .tab-button {
    min-width: calc(50% - 10px);
  }
  
  .tab-content {
    padding: 20px 15px;
  }
  
  .course-map-container {
    width: 100%;
  }
  
  .scroll-table th, 
  .scroll-table td {
    padding: 8px 10px;
    font-size: 12px;
  }
  
  .scroll-tabs {
    justify-content: flex-start; /* 左寄せ */
    flex-wrap: nowrap; /* 折り返しなし */
  }
  
  .tab-button {
    min-width: auto;
    padding: 10px 15px;
    flex-shrink: 0; /* 重要：タブが縮小されないようにする */
  }
}

/* モバイル向けの調整 */
@media screen and (max-width: 767px) {
  .course-image {
    margin-bottom: 20px;
  }
}

/* 古いスタイル削除（スクロールインジケータ） */
.scroll-indicator {
  display: none;
}