@charset "UTF-8";

/* カテゴリーページ用スタイル */

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

/* カテゴリー説明文ボックス */
.category-description-box {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  border-left: 3px solid #1a73e8;
  line-height: 1.7;
  color: #444;
}

/* ホテル一覧グリッド */
.hotel-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* ホテルアイテム */
.hotel-category-item {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

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

.hotel-category-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

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

.hotel-category-name {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.hotel-category-name-en {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.8rem;
}

/* 最寄り駅タグ */
.hotel-location-tag {
  display: inline-block;
  background-color: #e8f0fe;
  color: #1a73e8;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
  margin-right: 0.5rem;
}

/* シャトルバスタグ - 緑色スタイル */
.hotel-shuttle-tag {
  display: inline-block;
  background-color: #e8f5e9;
  color: #4caf50;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

/* 後方互換性のための古いタグスタイル */
.hotel-feature-tag {
  display: inline-block;
  background-color: #f0f4f8;
  color: #4a6fa5;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.hotel-category-excerpt {
  margin-bottom: 1rem;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
}

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

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

/* ホテルがない場合のメッセージ */
.no-hotels-message {
  text-align: center;
  padding: 3rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.no-hotels-message p {
  margin-bottom: 1rem;
  color: #666;
}

.no-hotels-message a {
  display: inline-block;
  background-color: #1a73e8;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.no-hotels-message a:hover {
  background-color: #1557b0;
}

/* レスポンシブ対応 - ページ固有の部分のみ残す */
@media (max-width: 768px) {
  main {
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .hotel-category-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.3rem;
  }
  
  .hotel-category-grid {
    grid-template-columns: 1fr;
  }
  
  .hotel-category-image {
    height: 180px;
  }
}

/* ===== 空港カードグリッド ===== */
.airport-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.airport-card {
  display: block;
  text-decoration: none;
  color: #333;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fff;
}

.airport-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.airport-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e0e0e0;
}

.airport-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.airport-card-name {
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1.4;
}

.region-block {
  margin-bottom: 2.5rem;
}

.region-block h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #0097a7;
  border-left: none;
  padding-left: 0;
}

.region-block h2 a {
  color: #333;
  text-decoration: none;
}

.region-block h2 a:hover {
  color: #0097a7;
}

@media (max-width: 600px) {
  .airport-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 大陸ページ：国カードグリッド ===== */
.country-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.country-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 0.8rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.country-card:hover {
  border-color: #0097a7;
  box-shadow: 0 4px 12px rgba(0, 151, 167, 0.15);
  transform: translateY(-2px);
  color: #0097a7;
}

.country-card-flag {
  width: 2.4rem;
  height: 1.8rem;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.country-card-name {
  font-size: 0.95rem;
  font-weight: bold;
  text-align: center;
}

@media (max-width: 480px) {
  .country-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}