@charset "utf-8";

/* テーブル基本スタイル */
.border {
  border: 1px solid #ddd;
  width: 100%;
  margin: 15px 0;
  border-collapse: collapse;
  table-layout: auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.border th, .border td {
  border: 1px solid #ddd;
  padding: 10px 8px;
  vertical-align: middle;
  word-wrap: break-word;
  hyphens: auto;
  text-align: left;
}

.border th {
  background: linear-gradient(135deg, var(--event-blue), #6bb6ff);
  color: #FFF;
  text-align: center;
  font-weight: bold;
  font-size: 0.95rem;
  vertical-align: middle;
}

.border td {
  font-size: 0.9rem;
  background-color: #FFFFFF;
}

/* イベント別テーブルヘッダー */
.event-blue-bg {
  background: linear-gradient(135deg, var(--event-blue), #6bb6ff) !important;
  color: white !important;
}

.event-orange-bg {
  background: linear-gradient(135deg, var(--event-orange), #ffb74d) !important;
  color: white !important;
}

.event-pink-bg {
  background: linear-gradient(135deg, var(--event-pink), #f48fb1) !important;
  color: white !important;
}

/* センター揃えクラス */
.border td.center,
.border th.center {
  text-align: center;
}

/* テーブル横スクロール対応（ホテルテーブルのみ） */
.hotel-table-wrapper {
  position: relative;
  margin: 15px 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ddd;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 通常のテーブルラッパー */
.table-wrapper {
  position: relative;
  margin: 15px 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* スクロール可能であることを示すスタイル */
.hotel-table-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
  pointer-events: none;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* スクロール可能性を示すアイコン */
.hotel-table-wrapper::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: var(--event-blue);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  z-index: 3;
  animation: pulse 2s infinite;
  transition: opacity 0.3s ease;
}

/* パルスアニメーション */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* スクロール時にアイコンとグラデーションを非表示 */
.hotel-table-wrapper.scrolled::before {
  opacity: 0;
}

.hotel-table-wrapper.scrolled::after {
  opacity: 0;
}

/* スクロールが不要な場合はインジケーターを非表示 */
.hotel-table-wrapper.no-scroll::before,
.hotel-table-wrapper.no-scroll::after {
  display: none;
}

/* スクロールバーのスタイリング強化 */
.hotel-table-wrapper::-webkit-scrollbar {
  height: 12px;
}

.hotel-table-wrapper::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.hotel-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--event-blue);
  border-radius: 6px;
  border: 2px solid #f8f9fa;
}

.hotel-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--event-pink);
}

/* Firefox用スクロールバー強化 */
.hotel-table-wrapper {
  scrollbar-width: auto;
  scrollbar-color: var(--event-blue) #f8f9fa;
}

/* スクロール可能性を示すヒントテキスト */
.scroll-hint {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  margin-top: 5px;
  display: none;
}

/* 情報テーブル（大会案内など） */
.info-table {
  min-width: auto;
}

.info-table td {
  text-align: center;
}

/* スケジュールテーブル */
.schedule-table {
  min-width: auto;
}

.schedule-table th:first-child {
  width: 20%;
  min-width: 80px;
}

.schedule-table th:last-child {
  width: 80%;
}

/* ホテルテーブル専用スタイル（横スクロール対応） */
.hotel-table {
  min-width: 900px; /* 横スクロールが必要な幅 */
}

.hotel-table .col-no {
  width: 5%;
  min-width: 50px;
  text-align: center;
}

.hotel-table .col-hotel {
  width: 18%;
  min-width: 140px;
  text-align: center;
}

.hotel-table .col-address {
  width: 10%;
  min-width: 100px;
  text-align: center;
}

.hotel-table .col-room {
  width: 18%;
  min-width: 140px;
  text-align: center;
}

.hotel-table .col-meal {
  width: 8%;
  min-width: 80px;
  text-align: center;
}

.hotel-table .col-price {
  width: 12%;
  min-width: 120px;
  text-align: center;
  font-weight: bold;
}

.hotel-table .col-access {
  width: 16%;
  min-width: 120px;
  text-align: center;
}

/* テーブル内の価格セルを強調 */
.hotel-table .price {
  background-color: antiquewhite;
  font-weight: bold;
  color: var(--event-pink);
}

/* 取消料テーブル（通常の縮小対応） */
.cancellation-table {
  width: 100%;
  table-layout: fixed;
}

.cancellation-table th:first-child {
  width: 70%;
}

.cancellation-table th:last-child {
  width: 30%;
  text-align: center;
}

.cancellation-table td:last-child {
  text-align: center;
  font-weight: bold;
  color: var(--event-pink);
}

/* 価格表示 */
.price {
  font-weight: bold;
  color: var(--event-pink);
}

.price-note {
  text-align: right;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #666;
}

/* スマートフォン用改行クラス */
.sp {
  display: none;
}

/* お申込方法セクション */
#flow {
  padding: 30px 20px;
  margin-bottom: 0;
  background: linear-gradient(135deg, var(--warm-bg), #fff);
}

.flow-intro {
  margin-bottom: 30px;
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-dark);
}

.step-container {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.step-header {
  background: linear-gradient(135deg, var(--leaf-green), #a5d6a7);
  color: white;
  padding: 15px 20px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
}

.step-content {
  background: white;
  padding: 20px;
  border: 1px solid var(--leaf-green);
  border-top: none;
}

.step-arrow {
  text-align: center;
  margin: 15px 0;
  font-size: 1.5rem;
  color: var(--leaf-green);
}

.payment-info {
  margin-top: 20px;
}

.payment-info h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--event-blue);
  border-bottom: 2px solid var(--event-blue);
  padding-bottom: 5px;
}

.payment-method {
  margin-bottom: 20px;
  padding: 15px;
  background: var(--light-blue-bg);
  border-radius: 6px;
  border-left: 4px solid var(--event-blue);
}

.payment-method h5 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--event-blue);
}

.hotel-notes {
  margin-top: 20px;
}

.cancellation-info h4 {
  font-size: 1.1rem;
  margin: 20px 0 15px 0;
  color: var(--event-blue);
  border-bottom: 2px solid var(--event-blue);
  padding-bottom: 5px;
}

.cancellation-info {
  background: var(--light-orange-bg);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--event-orange);
}

/* ホバー時の効果 */
.hotel-table-wrapper:hover::before {
  opacity: 1;
}

.hotel-table-wrapper:hover::after {
  transform: translateY(-50%) scale(1.1);
}

/* スクロール中はホバー効果も無効 */
.hotel-table-wrapper.scrolled:hover::before {
  opacity: 0;
}

.hotel-table-wrapper.scrolled:hover::after {
  opacity: 0;
  transform: translateY(-50%);
}

/* ホテルマップセクション */
.hotel-map-section {
  margin: 20px 0;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.hotel-map-section h5 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.2em;
  border-bottom: 2px solid #4CAF50;
  padding-bottom: 10px;
}

.map-description {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.9em;
}

/* ホテル凡例 */
.hotel-legend {
  margin: 15px 0;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.hotel-legend h6 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.1em;
}

.legend-items {
  display: grid;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  padding: 8px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.legend-pin {
  font-size: 1.5em;
  margin-right: 12px;
  flex-shrink: 0;
}

.legend-pin.red {
  color: #EA4335;
}

.legend-pin.blue {
  color: #4285F4;
}

.legend-text {
  font-size: 0.95em;
}

.hotel-info-cards {
  margin-top: 15px;
  display: grid;
  gap: 10px;
}

.hotel-card {
  display: flex;
  align-items: center;
  padding: 12px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-left: 5px solid transparent;
}

.hotel-card.red-border {
  border-left-color: #EA4335;
}

.hotel-card.blue-border {
  border-left-color: #4285F4;
}

.hotel-pin {
  font-size: 1.5em;
  margin-right: 15px;
  flex-shrink: 0;
}

.hotel-pin.red {
  color: #EA4335;
}

.hotel-pin.blue {
  color: #4285F4;
}

/* ======================== */
/* タブレット対応 (768px以下) */
/* ======================== */
@media screen and (max-width: 768px) {
  .border th, .border td {
    padding: 8px 6px;
    font-size: 0.85rem;
  }
  
  /* タブレット・スマートフォンでヒントを表示 */
  .scroll-hint {
    display: block;
  }
  
  /* アイコンを少し大きく */
  .hotel-table-wrapper::after {
    width: 24px;
    height: 24px;
    font-size: 14px;
    right: 10px;
  }
  
  /* グラデーションを強化 */
  .hotel-table-wrapper::before {
    width: 40px;
    background: linear-gradient(to left, rgba(255,255,255,0.95), transparent);
  }
  
  /* ホテルテーブルは横スクロール維持 */
  .hotel-table {
    min-width: 800px;
  }
  
  /* 取消料テーブルは通常縮小 */
  .cancellation-table th, 
  .cancellation-table td {
    font-size: 0.8rem;
    padding: 8px 5px;
  }
  
  #flow {
    padding: 20px 15px;
  }
  
  .step {
    margin-bottom: 15px;
  }
  
  .step-header {
    padding: 12px 15px;
    font-size: 1.1rem;
  }
  
  .step-content {
    padding: 15px;
  }
  
  .payment-method {
    margin-bottom: 15px;
    padding: 12px;
  }
  
  .flow-intro {
    font-size: 1rem;
  }

  /* ホテルマップ関連 */
  .hotel-map-section {
    padding: 15px;
  }
  
  .hotel-info-cards {
    grid-template-columns: 1fr 1fr;
  }
  
  .legend-items {
    grid-template-columns: 1fr 1fr;
  }
}

/* ======================== */
/* スマートフォン対応 (480px以下) */
/* ======================== */
@media screen and (max-width: 480px) {
  .border th, .border td {
    padding: 6px 4px;
    font-size: 0.75rem;
    line-height: 1.4;
  }
  
  /* スマートフォン用改行を表示 */
  .sp {
    display: inline;
  }
  
  .scroll-hint {
    font-size: 0.75rem;
    margin-top: 8px;
  }
  
  /* スマートフォンでは更に目立つように */
  .hotel-table-wrapper::after {
    background: var(--event-pink);
    animation: pulse 1.5s infinite;
  }
  
  /* スクロール時は完全に非表示 */
  .hotel-table-wrapper.scrolled::before {
    opacity: 0;
  }
  
  .hotel-table-wrapper.scrolled::after {
    opacity: 0;
  }
  
  /* スクロールバーを太く */
  .hotel-table-wrapper::-webkit-scrollbar {
    height: 14px;
  }
  
  /* ホテルテーブルは横スクロール維持 */
  .hotel-table {
    min-width: 700px;
  }
  
  .hotel-table .col-no {
    min-width: 40px;
  }
  
  .hotel-table .col-hotel {
    min-width: 120px;
  }
  
  .hotel-table .col-address {
    min-width: 100px;
  }
  
  .hotel-table .col-room {
    min-width: 120px;
  }
  
  .hotel-table .col-meal {
    min-width: 60px;
  }
  
  .hotel-table .col-price {
    min-width: 80px;
  }
  
  .hotel-table .col-access {
    min-width: 100px;
  }
  
  /* 取消料テーブルは通常縮小 */
  .cancellation-table th, 
  .cancellation-table td {
    font-size: 0.7rem;
    padding: 6px 3px;
    line-height: 1.3;
  }
  
  #flow {
    padding: 15px 10px;
  }
  
  .step-header {
    padding: 10px 12px;
    font-size: 1rem;
  }
  
  .step-content {
    padding: 12px 10px;
  }
  
  .step-arrow {
    font-size: 1.2rem;
    margin: 10px 0;
  }
  
  .price-note {
    font-size: 0.8rem;
  }
  
  .flow-intro {
    font-size: 0.9rem;
  }
  
  .payment-method {
    padding: 10px;
  }
  
  .cancellation-info {
    padding: 15px;
  }

  /* ホテルマップ関連 */
  #hotels-map {
    height: 400px !important;
  }
  
  .hotel-info-cards {
    grid-template-columns: 1fr;
  }
  
  .legend-items {
    grid-template-columns: 1fr;
  }
}

/* 極小画面対応 (320px以下) */
@media screen and (max-width: 320px) {
  .border th, .border td {
    padding: 5px 2px;
    font-size: 0.7rem;
  }
  
  /* ホテルテーブルは横スクロール維持 */
  .hotel-table {
    min-width: 600px;
  }
  
  /* 取消料テーブルは通常縮小 */
  .cancellation-table th, 
  .cancellation-table td {
    font-size: 0.65rem;
    padding: 4px 2px;
  }
  
  .step-content {
    padding: 10px 8px;
  }
}

/* テーブル内の特定要素のスタイル調整 */
.border p {
  margin: 0;
  line-height: 1.4;
}

.border br {
  line-height: 1.6;
}


/* 表示切り替えはそのまま維持 */
.hotel-display-desktop {
  display: block;
}

.hotel-display-mobile {
  display: none;
}

/* モバイル用ホテルカード */
.hotel-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #ddd;
  display: block; /* flexではなくblockに */
}

.hotel-header {
  background: linear-gradient(135deg, var(--event-blue), #6bb6ff);
  color: white;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%; /* 幅を100%に */
}

.hotel-number {
  background: rgba(255,255,255,0.2);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0; /* 縮小しないように */
}

.hotel-name {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  flex: 1;
}

.hotel-info {
  padding: 15px;
  width: 100%; /* 幅を100%に */
  display: block; /* ブロック要素として表示 */
}

/* ホテル基本情報テーブル */
.hotel-basic-info {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.hotel-basic-info th {
  background: var(--light-blue-bg);
  color: var(--event-blue);
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: bold;
  width: 35%;
  text-align: left;
  border: 1px solid #ddd;
  vertical-align: top;
}

.hotel-basic-info td {
  padding: 8px 10px;
  font-size: 0.9rem;
  border: 1px solid #ddd;
  background: white;
  vertical-align: top;
}

/* ホテルプランテーブル */
.hotel-plan-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 6px;
  overflow: hidden;
}

.hotel-plan-table th {
  background: linear-gradient(135deg, var(--event-blue), #6bb6ff);
  color: white;
  padding: 10px 8px;
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
  border: 1px solid #ddd;
}

.hotel-plan-table td {
  padding: 10px 8px;
  font-size: 0.85rem;
  text-align: center;
  border: 1px solid #ddd;
  background: white;
  vertical-align: middle;
}

.hotel-plan-table .price-cell {
  background-color: antiquewhite;
  font-weight: bold;
  color: var(--event-pink);
  font-size: 0.9rem;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .hotel-display-desktop {
    display: none;
  }
  
  .hotel-display-mobile {
    display: block;
  }
  
  .hotel-header {
    padding: 12px 15px;
  }
  
  .hotel-number {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  
  .hotel-name {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .hotel-header {
    padding: 10px 12px;
  }
  
  .hotel-number {
    width: 30px;
    height: 30px;
    font-size: 1rem;
    margin-bottom: 5px;
  }
  
  .hotel-name {
    font-size: 0.9rem;
  }
  
  .hotel-info {
    padding: 12px;
  }
  
  .hotel-basic-info th {
    padding: 6px 8px;
    font-size: 0.8rem;
    width: 40%;
  }
  
  .hotel-basic-info td {
    padding: 6px 8px;
    font-size: 0.85rem;
  }
  
  .hotel-plan-table th {
    padding: 8px 6px;
    font-size: 0.75rem;
  }
  
  .hotel-plan-table td {
    padding: 8px 6px;
    font-size: 0.8rem;
  }
  
  .hotel-plan-table .price-cell {
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 320px) {
  .hotel-plan-table th {
    padding: 6px 4px;
    font-size: 0.7rem;
  }
  
  .hotel-plan-table td {
    padding: 6px 4px;
    font-size: 0.75rem;
  }
}