/* ツアー一覧ページ - client-data.md形式 */

/* 🎯 基本設定 */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', 'Source Sans 3', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm); /* モバイルベース */
}

/* 📱 ページヘッダー */
.page-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: white;
  padding: var(--space-xl) 0 var(--space-lg); /* モバイルベース */
  position: relative;
  overflow: hidden;
  margin-top: 80px; /* 固定ヘッダー分の余白確保 */
  z-index: 10; /* ヘッダーとの重なり順序を確保 */
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 11; /* page-headerより上に表示 */
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

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

.breadcrumb ol li:not(:last-child)::after {
  content: '>';
  margin-left: var(--space-sm);
  opacity: 0.7;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumb a:hover {
  color: white;
}

.page-title {
  font-size: 1.75rem; /* モバイルベース */
  font-weight: 700;
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
}

.page-description {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0;
}

/* 📊 ツアー一覧セクション */
.tours-list {
  padding: var(--space-xl) 0 var(--space-3xl);
}

/* ツアーグリッド */
.tours-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

/* ツアーカード */
.tour-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.tour-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ツアー画像 */
.tour-image {
  position: relative;
  width: 100%;
  height: 180px; /* モバイルベース */
  overflow: hidden;
}

.tour-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-slow);
}

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

/* ツアーヘッダー */
.tour-header {
  background: var(--primary-blue);
  color: white;
  padding: var(--space-md) var(--space-lg); /* モバイルベース */
}

.tour-number {
  font-size: 1.1rem; /* モバイルベース */
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3; /* モバイルで読みやすく */
}

/* ツアー詳細 */
.tour-details {
  padding: var(--space-lg); /* モバイルベース */
}

/* 基本情報 */
.tour-basic-info {
  margin-bottom: var(--space-xl);
  padding: var(--space-md); /* モバイルベース */
  background: var(--background-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-blue);
}

.info-item {
  margin-bottom: var(--space-sm);
  font-size: 1rem;
  display: flex;
  flex-direction: column; /* モバイルベース: 縦並び */
  align-items: flex-start; /* モバイルベース: 左揃え */
  gap: var(--space-xs); /* モバイルベース: 狭いギャップ */
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item strong {
  color: var(--text-dark);
  font-weight: 600;
  min-width: auto; /* モバイルベース */
}

/* ツアーセクション */
.tour-section {
  margin-bottom: var(--space-xl);
}

.tour-section:last-of-type {
  margin-bottom: var(--space-lg);
}

.tour-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 var(--space-md);
  position: relative;
  padding-left: var(--space-lg);
}

.tour-section h4::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-size: 0.9rem;
}

/* ハイライトリスト */
.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  padding: var(--space-sm); /* モバイルベース */
  background: rgba(0, 102, 204, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.9rem; /* モバイルベース */
  color: var(--text-medium);
}

.highlight-list li::before {
  content: '✓';
  color: var(--primary-blue);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}

/* スケジュールリスト */
.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-list li {
  display: flex;
  flex-direction: column; /* モバイルベース: 縦並び */
  align-items: flex-start;
  gap: var(--space-sm); /* モバイルベース */
  margin-bottom: var(--space-sm);
  padding: var(--space-sm); /* モバイルベース */
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  font-size: 0.9rem; /* モバイルベース */
}

.schedule-list li:hover {
  background: var(--background-light);
  border-color: var(--primary-blue);
  transform: translateX(var(--space-xs));
}

.schedule-list li::before {
  content: '🕐';
  flex-shrink: 0;
  margin-top: 1px;
}

/* アクションボタン */
.tour-action {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.btn-primary {
  display: inline-block;
  padding: var(--space-lg) var(--space-2xl);
  background: var(--primary-blue);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 📞 お問い合わせCTA */
.contact-cta {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: white;
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 var(--space-md);
}

.cta-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0 0 var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column; /* モバイルベース: 縦並び */
  justify-content: center;
  align-items: center; /* モバイルベース: 中央揃え */
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* モバイルベース */
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-normal);
  font-size: 1rem;
  width: 100%; /* モバイルベース */
  max-width: 300px; /* モバイルベース */
}

.cta-button.primary {
  background: white;
  color: var(--primary-blue);
}

.cta-button.primary:hover {
  background: var(--background-light);
  transform: translateY(-2px);
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* アニメーション */
.tour-card {
  animation: fadeInUp 0.6s ease-out;
}

/* fadeInUp animation moved to style.css */

/* スタガードアニメーション */
.tour-card:nth-child(1) { animation-delay: 0.1s; }
.tour-card:nth-child(2) { animation-delay: 0.2s; }
.tour-card:nth-child(3) { animation-delay: 0.3s; }
.tour-card:nth-child(4) { animation-delay: 0.4s; }
.tour-card:nth-child(5) { animation-delay: 0.5s; }
.tour-card:nth-child(6) { animation-delay: 0.6s; }
.tour-card:nth-child(7) { animation-delay: 0.7s; }

/* フォーカス状態 */
.btn-primary:focus,
.cta-button:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* === 🖥️ デスクトップ対応（768px以上 - 単一ブレイクポイント） === */
@media (min-width: 768px) {
  /* Container */
  .container {
    padding: 0 var(--space-md);
  }

  /* Page Header */
  .page-header {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .page-title {
    font-size: 2.5rem;
  }

  /* Tours Grid: 2カラム固定レイアウト */
  /* minmax(0, 1fr) でオーバーフロー問題を防ぐ */
  .tours-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl);
  }

  /* Tour Card */
  .tour-header {
    padding: var(--space-lg) var(--space-xl);
  }

  .tour-number {
    font-size: 1.4rem;
  }

  .tour-details {
    padding: var(--space-2xl);
  }

  .tour-image {
    height: 250px;
  }

  /* Tour Basic Info */
  .tour-basic-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
  }

  .info-item {
    flex-direction: row;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 0;
  }

  .info-item strong {
    min-width: 120px;
  }

  /* Lists */
  .highlight-list li {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
  }

  .schedule-list li {
    flex-direction: row;
    gap: var(--space-md);
    padding: var(--space-md);
    font-size: 0.95rem;
  }

  /* CTA Buttons */
  .cta-buttons {
    flex-direction: row;
    align-items: flex-start;
  }

  .cta-button {
    width: auto;
    max-width: none;
  }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* プリント用スタイル */
@media print {
  .tour-card {
    break-inside: avoid;
    margin-bottom: var(--space-lg);
    box-shadow: none;
    border: 1px solid #000;
  }

  .tour-header {
    background: #000 !important;
    color: white !important;
  }

  .contact-cta {
    display: none;
  }
}