/* ホテル詳細ページ用スタイル */

/* コンテンツ幅の制限 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* パンくずリスト - 他のページと表示を統一するために残しておく */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 1rem 0 2rem;
  padding: 0;
  font-size: 0.9rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin: 0 0.5rem;
  color: #999;
}

.breadcrumb a {
  color: #1a73e8;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ホテル見出し */
h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #333;
  line-height: 1.3;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.8rem;
}

h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  color: #333;
  border-left: 4px solid #1a73e8;
  padding-left: 0.8rem;
}

/* ホテル説明文 */
.hotel-description {
  margin-bottom: 2rem;
  line-height: 1.7;
  color: #444;
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid #ddd;
}

/* ホテル説明文内のリストスタイル調整 */
.hotel-description ul {
  list-style-position: inside;
  margin-left: 0.5rem;
  margin-bottom: 1rem;
}

.hotel-description ol {
  list-style-position: inside;
  margin-left: 0.5rem;
  margin-bottom: 1rem;
}

.hotel-description li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

/* マップセクション */
.map-section {
  margin-bottom: 2.5rem;
}

.map-container {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 480px;
  border: none;
  display: block;
}

.access-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.access-button {
  flex: 1 1 200px;
}

.access-button a {
  display: block;
  text-align: center;
  padding: 0.8rem 0.5rem;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.access-button.map a {
  background-color: #4285F4;
  color: white;
}

.access-button.restaurant a {
  background-color: #EA4335;
  color: white;
}

.access-button a:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* レビューセクション */
.review-section {
  margin-bottom: 2.5rem;
}

.review-container {
  display: flex;
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.review-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.review-image {
  flex: 0 0 128px;
  margin-right: 1.5rem;
}

.review-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.review-content {
  flex: 1;
}

.review-header {
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.8rem;
}

.review-header h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  color: #333;
}

.review-stars {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.star-rating {
  color: #ff9800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.star-rating span {
  margin-left: 0.5rem;
  color: #333;
  font-weight: bold;
}

.review-count {
  margin-left: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.recent-review {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  font-style: italic;
  position: relative;
  padding-left: 1rem;
}

.recent-review::before {
  content: "\201C"; /* 修正: 引用符のUnicodeエスケープシーケンス */
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.5rem;
  color: #ccc;
  line-height: 1;
}

.hotel-price {
  font-weight: bold;
  color: #ff6b00;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.review-link {
  text-align: right;
  font-size: 0.9rem;
  color: #1a73e8;
}

.review-link span {
  border-bottom: 1px solid #1a73e8;
  padding-bottom: 2px;
}

/* ホテル情報テーブル */
.hotel-info-table {
  width: 100%;
  margin-bottom: 2.5rem;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
}

.hotel-info-table th,
.hotel-info-table td {
  padding: 1rem;
  border: 1px solid #eee;
  line-height: 1.6;
}

.hotel-info-table th {
  width: 30%;
  background-color: #f5f5f5;
  text-align: left;
  font-weight: bold;
  color: #333;
}

/* 表の右側は背景白に統一 */
.hotel-info-table td {
  background-color: #fff;
}

.hotel-name {
  font-size: 1.1rem;
}

.hotel-name-en {
  font-size: 0.9rem;
  color: #666;
  display: block;
  margin-top: 0.5rem;
}

.postal-code {
  font-size: 0.85rem;
  color: #666;
}

/* 予約ボタン */
.booking-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

/* ボタン数に応じたレイアウト調整 */
.booking-button {
  flex: 1 1 200px;
}

/* 2つのボタンがある場合 */
.booking-buttons:has(.booking-button:nth-child(2):last-child) .booking-button {
  flex: 0 0 calc(50% - 0.5rem);
}

/* 3つのボタンがある場合 */
.booking-buttons:has(.booking-button:nth-child(3):last-child) .booking-button {
  flex: 0 0 calc(33.33% - 0.67rem);
}

/* 4つのボタンがある場合 */
.booking-buttons:has(.booking-button:nth-child(4)) .booking-button {
  flex: 0 0 calc(25% - 0.75rem);
}

.booking-button a {
  display: block;
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: 4px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.booking-button a:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* 各予約サイトの色 */
.booking-button.rakuten a {
  background-color: #8FC31F; /* 楽天の黄緑色 */
}

.booking-button.jalan a {
  background-color: #FF6500; /* じゃらんのオレンジ色 */
}

.booking-button.agoda a {
  background-color: #EE2225; /* アゴダの赤色 */
}

.booking-button.booking a {
  background-color: #003580; /* Booking.comの青色 */
}

.booking-button.expedia a {
  background-color: #FFD320; /* Expediaの黄色 */
  color: #002C5F; /* 紺色の文字 */
}

.booking-button.marriott a {
  background-color: #B41F3A; /* マリオットボンヴォイの色 */
}

.booking-button.ihg a {
  background-color: #D96932; /* IHGの色 */
}

.booking-button.accor a {
  background-color: #12283B; /* Accorの色 */
}

/* シェアボタン - ページ全体で統一感を出すために残しておく */
.share {
  margin: 3rem 0;
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* 広告表示の注意書き */
.ad-notice {
  font-size: 0.8rem;
  color: #777;
  text-align: right;
  margin: 0.5rem 0 1rem;
  font-style: italic;
}

/* APIデータ更新時間 */
.api-update-time {
  font-size: 0.75rem;
  color: #777;
  text-align: right;
  margin-top: 0.5rem;
  font-style: italic;
}

.access-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.access-button a:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 8px;
  font-size: 1.1em;
}

.access-button.map a {
  background-color: #757575; /* ダークグレー */
  color: white;
}

.access-button.map a:before {
  content: "\f3c5"; /* 場所マーカーアイコン */
}

.access-button.restaurant a {
  background-color: #9E9E9E; /* ミディアムグレー */
  color: white;
}

.access-button.restaurant a:before {
  content: "\f2e7"; /* フォークとナイフアイコン */
}

.access-button a:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* 関連ホテルセクション用のスタイル - category.cssから移行 */
.related-hotels-section {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.related-hotels-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #333;
  border-left: 4px solid #1a73e8;
  padding-left: 0.8rem;
}

.related-hotels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.related-hotel-item {
  background-color: #f8f8f8;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.related-hotel-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-hotel-image {
  height: 120px;
  background-size: cover;
  background-position: center;
}

.related-hotel-details {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.related-hotel-name {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
  flex-grow: 1;
}

.related-hotel-location {
  font-size: 0.85rem;
  color: #1a73e8;
  margin-bottom: 0.3rem;
  display: inline-block;
  padding: 0.2rem 0.4rem;
  background-color: #e8f0fe;
  border-radius: 3px;
}

.related-hotel-shuttle {
  font-size: 0.85rem;
  color: #4caf50;
  margin-bottom: 0.5rem;
  display: inline-block;
  padding: 0.2rem 0.4rem;
  background-color: #e8f5e9;
  border-radius: 3px;
}

.related-detail-btn {
  display: inline-block;
  background-color: #1a73e8;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s;
  opacity: 0.9;
  margin-top: auto;
}

.related-hotel-item:hover .related-detail-btn {
  background-color: #1557b0;
  opacity: 1;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  main {
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .review-container {
    flex-direction: column;
  }
  
  .review-image {
    flex: 0 0 auto;
    margin-right: 0;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .review-image img {
    width: auto;
    max-width: 100%;
    max-height: 150px;
  }
  
  .hotel-info-table th {
    width: 35%;
  }
  
  /* モバイルでは予約ボタンを1列に戻す */
  .booking-button,
  .booking-buttons:has(.booking-button:nth-child(2):last-child) .booking-button,
  .booking-buttons:has(.booking-button:nth-child(3):last-child) .booking-button,
  .booking-buttons:has(.booking-button:nth-child(4)) .booking-button {
    flex: 1 1 100%;
  }
  
  .map-container iframe {
    height: 350px;
  }
  
  .access-button {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    font-size: 0.8rem;
  }
  
  h1 {
    font-size: 1.3rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }
  
  .hotel-info-table th,
  .hotel-info-table td {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .hotel-info-table th {
    width: 40%;
  }
  
  .map-container iframe {
    height: 280px;
  }
}

/* プリント用スタイル */
@media print {
  .hotel-slider-container,
  .booking-buttons,
  .share,
  .agoda-search-widget {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  h1 {
    font-size: 18pt;
  }
  
  h2 {
    font-size: 16pt;
  }
}

/* 星評価のマージン調整 */
.hotel-star-rating {
  margin: 1.5rem 0 2rem;
}
    
/* 星のサイズ調整 */
.hotel-star-rating .star-rating {
  font-size: 1.3rem;
}