@charset "UTF-8";

/* トップページ専用スタイル */

/* index.php用のマージン修正CSS */
.container {
  margin-top: 0;
  padding-top: 0;
}

/* index.php用のmainタグの幅を維持 */
.container main {
  max-width: 1200px; /* index.phpのメインコンテンツ幅を1200pxに維持 */
}

/* ヘッダー直下のマージン調整 */
body header + .container {
  margin-top: 0;
}

/* ヒーローボタンのホバー修正 */
.hero-btn.btn-primary:hover,
.hero-btn.btn-secondary:hover {
  background-color: #e65c00 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: white;
  border-color: #e65c00;
}

/* ヒーローセクション */
.hero {
  min-height: 350px; /* 最小の高さを設定 */
  height: auto; /* 高さを自動調整に変更 */
  padding: 3rem 1rem; /* 上下左右にパディングを追加 */
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://petit-tw.jp/hotel/assets/img/index001hero.jpg');
  background-size: cover;
  background-position: center;
  margin-bottom: 2rem;
}

.hero-content {
  width: 100%;
  max-width: 800px;
  text-align: center;
  padding: 1rem;
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.hero-btn i {
  margin-right: 0.5rem;
}

.btn-primary {
  background-color: #1a73e8;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: 2px solid white;
}

/* 統計バー */
.stats-bar {
  background-color: #1ac7c1;
  color: white;
  padding: 1.5rem 0;
  margin-bottom: 3rem;
  text-align: center;
}

.stats-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.stat-item {
  padding: 0 1.5rem;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.2rem;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* カテゴリーセクション */
.category-section {
  margin-bottom: 4rem;
}

.category-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.category-header h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.category-header p {
  max-width: 700px;
  margin: 0 auto;
  color: #666;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.category-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.category-image {
  height: 180px;
  position: relative;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #ff6b00;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.category-content {
  padding: 1.5rem;
}

.category-title {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: #333;
}

.category-description {
  color: #666;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.category-card:hover .category-btn {
  background-color: #1557b0;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* おすすめホテルセクション */
.featured-hotels-section {
  margin-bottom: 4rem;
}

.featured-hotel-card {
  display: flex;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
}

.featured-hotel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.featured-hotel-image {
  flex: 0 0 300px;
  background-size: cover;
  background-position: center;
}

.featured-hotel-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.featured-hotel-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.featured-hotel-subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.featured-hotel-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* リセットしたおすすめホテルタグのスタイル */
.featured-hotel-feature {
  display: inline-block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  margin-right: 0.5rem;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}

/* 送迎バスタグ - 緑色スタイル */
.featured-hotel-feature.shuttle {
  background-color: #e8f5e9;
  color: #4caf50;
}

/* 最寄り駅タグ - 青色スタイル */
.featured-hotel-feature.location {
  background-color: #e8f0fe;
  color: #1a73e8;
}

/* カテゴリータグ - 青色スタイル */
.featured-hotel-feature.category {
  background-color: #e8f0fe;
  color: #1a73e8;
}

.featured-hotel-description {
  margin-bottom: 1.5rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.featured-hotel-buttons {
  display: flex;
  gap: 1rem;
}

.featured-hotel-buttons .btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #1a73e8;
  color: white;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s;
  text-align: center;
}

.featured-hotel-card:hover .btn-primary {
  background-color: #1557b0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* マップセクション */
.map-section {
  background-color: white;
  padding: 3rem 0;
  margin-bottom: 4rem;
}

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

.map-header {
  margin-bottom: 2rem;
  text-align: center;
}

.map-header h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.map-header p {
  color: #555;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.map-frame {
  width: 100%;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .hero {
    min-height: 300px;
    padding: 2rem 1rem;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }
  
  .hero-btn {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }

  /* 統計バーのモバイル表示調整 */
  .stats-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  /* マップフレームの高さ調整 */
  .map-frame {
    height: 300px;
  }
  
  /* おすすめホテルカードのモバイル表示調整 */
  .featured-hotel-card {
    flex-direction: column;
  }
  
  .featured-hotel-image {
    flex: none;
    height: 200px;
    width: 100%;
  }
  
  .featured-hotel-content {
    padding: 1.5rem;
  }
  
  .featured-hotel-title {
    font-size: 1.3rem;
  }
  
  .featured-hotel-description {
    margin-bottom: 1rem;
  }
}

/* さらに小さい画面用 */
@media (max-width: 480px) {
  .hero {
    min-height: 250px;
    padding: 1.5rem 1rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .hero-buttons {
    gap: 0.8rem;
  }
  
  .hero-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    width: 100%; /* ボタンを画面幅いっぱいに */
    max-width: 250px; /* 最大幅を設定 */
  }
  
  /* 超小型画面向けのおすすめホテル調整 */
  .featured-hotel-content {
    padding: 1.2rem;
  }
  
  .featured-hotel-features {
    margin-bottom: 0.8rem;
  }
  
  .featured-hotel-feature {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
  
  .featured-hotel-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* タブレット向けのスタイル調整 */
@media (max-width: 1024px) and (min-width: 769px) {
  .featured-hotel-image {
    flex: 0 0 250px;
  }
  
  .featured-hotel-content {
    padding: 1.5rem;
  }
  
  .map-frame {
    height: 400px;
  }
}