/* 🎵 Sapporo Travel Support - Front Page Styles */
/* トップページ（front-page.php/index.php）専用CSS */
/* 含まれるセクション: Hero, Pickup Tours, About Guide, Gallery, Contact */

/* === 🌐 基本リセット === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--clean-white);
}

.container {
  max-width: var(--desktop);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* === 🎯 CTAボタン === */
.cta-button {
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  /* モダンシャドウ効果 */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-button.primary {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-button.primary:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4),
    0 6px 20px rgba(102, 126, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cta-button.secondary {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
  color: #2c5aa0;
  border: 2px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
  color: #1e4080;
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3),
    0 6px 20px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cta-button.large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.25rem;
  /* background を削除 - primary/secondaryの色を維持 */
}

/* Primary Large - 青色グラデーション */
.cta-button.primary.large {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4),
    0 5px 15px rgba(79, 172, 254, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-button.primary.large:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5),
    0 8px 25px rgba(102, 126, 234, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Secondary Large - 白/透明グラデーション（より目立つ） */
.cta-button.secondary.large {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
  color: #2c5aa0;
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4),
    0 5px 15px rgba(255, 255, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cta-button.secondary.large:hover {
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.95) 100%);
  color: #1e4080;
  border-color: rgba(255, 255, 255, 1);
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.5),
    0 8px 25px rgba(255, 255, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* 🌊 微細なパララックス準備 */
  perspective: 1000px;
}

/* 🖼️ 画像スライダー */
.hero-image-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%; /* テレビ塔を中心に配置 */
  filter: brightness(0.95) contrast(1.05) saturate(1.02); /* より自然な色調 */
  opacity: 0;
  /* 静止画クロスフェード専用設定 */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  /* スムーズなクロスフェードトランジション */
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity;
  /* アニメーションは完全に無効化 */
  animation: none !important;
}

/* アクティブな画像：完全に静止画 */
.hero-image.active {
  opacity: 1;
  /* アニメーションなし、静止画のみ */
  animation: none !important;
}

.hero-image:not(.active) {
  opacity: 0;
  animation: none !important;
}

/* 📱 高解像度ディスプレイ対応（画像クリア版） */
@media (min-resolution: 2dppx) {
  .hero-image {
    filter: brightness(0.92) contrast(1.08) saturate(1.03);
  }

  .hero-title .main-title {
    /* テキストシャドウを削除 */
    text-shadow: none;
  }
}

/* ミニマルオーバーレイ（画像重視） */
.hero-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.3) 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  padding-top: clamp(8rem, 11vh, 9.5rem); /* レスポンシブ対応の縦位置調整 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: clamp(1.5rem, 3vw, 3rem); /* 子要素間のスペーシングを自動調整 */
}

/* 🎨 透明テキストコンテナ（画像重視） */
.hero-text {
  background: transparent;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
  text-align: center;
}

/* 🚀 CTA アクション */
.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
  margin: var(--space-xl) 0 var(--space-lg);
  animation: fadeInUp 0.8s ease-out 1.5s both;
}

.hero-primary-cta {
  position: relative;
  overflow: hidden;
}

.hero-primary-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.hero-primary-cta:hover::before {
  left: 100%;
}

.cta-arrow {
  transition: transform 0.3s ease;
}

.hero-primary-cta:hover .cta-arrow {
  transform: translateX(5px);
}

.hero-secondary-cta {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-secondary-cta:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px) scale(1.02);
}

/* 会社タグライン */
.company-tagline {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-align: center;
  margin: 0;
  animation: fadeInUp 0.8s ease-out 1.8s both;
}

@media (max-width: 768px) {
  .company-tagline {
    font-size: 0.875rem;
  }
}

.hero-text {
  color: white;
  position: relative;
  padding: var(--space-lg) var(--space-md);
  max-width: 90%;
  width: 100%;
  margin: 0 auto; /* 中央寄せを確実にする */
  text-align: center;
  animation: fadeInUp 1.2s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.hero-text h1,
.hero-text p {
  color: white;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

/* === 🎭 Hero専用アニメーション === */
/* 汎用アニメーション (fadeInUp, fadeInDown, fadeInLeft, fadeIn, pulse) は style.css に統合済み */

/* タイピング風登場アニメーション */
@keyframes typingReveal {
  0% {
    opacity: 0;
    transform: translateX(-50px) scale(0.8);
    filter: blur(20px);
  }
  20% {
    opacity: 0.3;
    transform: translateX(-20px) scale(0.9);
    filter: blur(10px);
  }
  60% {
    opacity: 0.8;
    transform: translateX(-5px) scale(0.98);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0px);
  }
}

/* 🌊 右からのスライドイン */
@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  70% {
    opacity: 0.8;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ✨ 微細な浮遊効果 */
@keyframes subtleFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.005);
  }
}

/* 🏞️ ケン・バーンズ効果（GPU最適化版） */
@keyframes kenburns-smooth {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-2%, 2%, 0) scale(1.08);
  }
}

/* ✨ アクセシビリティ: reduced-motion対応 */
@media (prefers-reduced-motion: reduce) {
  .hero-image {
    animation: none !important;
    transition: opacity 0.6s ease-out !important;
  }
}

/* � 文字ごとの段階的出現 */
@keyframes letterByLetter {
  0% {
    opacity: 0;
    transform: translateY(20px) rotateX(90deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0px) rotateX(0deg);
  }
}

.hero-title .main-title {
  display: block;
  /* 2行表示最適化（Codex推奨値） */
  font-size: clamp(3rem, 7.5vw, 4.75rem);
  font-family: var(--font-family-heading);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
  color: #ffffff;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(0, 0, 0, 0.5), -1px -1px 0 rgba(0, 0, 0, 0.8),
    1px -1px 0 rgba(0, 0, 0, 0.8), -1px 1px 0 rgba(0, 0, 0, 0.8),
    1px 1px 0 rgba(0, 0, 0, 0.8);
  position: relative;
}

.hero-title .main-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 200, 100, 0.6) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.7;
}

/* 💫 サブタイトルはシンプルデザインで使用しない */
.hero-title .sub-title {
  display: none;
}

.hero-description {
  position: relative;
  max-width: 800px;
  width: 100%;
  margin: var(--space-lg) 0;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  text-align: center;
}

/* ========================================
   PICKUP TOURS SECTION
======================================== */
.pickup-tours {
  padding: var(--space-xxl) 0;
  background: linear-gradient(180deg, var(--soft-gray) 0%, white 100%);
  position: relative;
}

.pickup-tours::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    180deg,
    rgba(44, 90, 160, 0.05) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--primary-blue);
  margin-bottom: var(--space-xl);
  font-weight: 800;
  position: relative;
  padding-bottom: var(--space-sm);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-blue) 0%,
    var(--accent-red) 100%
  );
  border-radius: 2px;
}

/* セクションタイトルの件数表示 */
.section-title .tour-count {
  font-size: 0.5em;
  font-weight: normal;
  color: var(--text-secondary);
  margin-left: 8px;
  vertical-align: middle;
}

.tours-grid {
  display: grid;
  grid-template-columns: 1fr; /* モバイルベース: 1カラム */
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.tour-card {
  background: white;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.tour-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-blue) 0%,
    var(--accent-red) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tour-card:hover::before {
  opacity: 1;
}

.tour-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.tour-image {
  position: relative;
  overflow: hidden;
}

.tour-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.tour-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.tour-info {
  padding: var(--space-lg);
  position: relative;
}

.tour-info h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  color: var(--primary-blue);
  margin-bottom: var(--space-sm);
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.tour-card:hover .tour-info h3 {
  color: var(--accent-red);
}

.tour-info p {
  color: var(--text-light);
  margin-bottom: var(--space-md);
  line-height: 1.7;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tour-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
}

.duration {
  background: linear-gradient(135deg, var(--success-green) 0%, #20aa3a 100%);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: var(--border-radius-round);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
  transition: all 0.3s ease;
}

.duration:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-red);
  text-shadow: 0 1px 2px rgba(255, 107, 107, 0.2);
}

/* Tour difficulty indicator */
.tour-difficulty {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius-round);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.difficulty-easy {
  background: rgba(40, 167, 69, 0.9);
  color: white;
}

.difficulty-moderate {
  background: rgba(255, 193, 7, 0.9);
  color: var(--text-dark);
}

.difficulty-hard {
  background: rgba(255, 107, 107, 0.9);
  color: white;
}

/* Tour link button */
.tour-link {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-lg);
  padding: 0.5rem 1rem;
  background: var(--primary-blue);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.tour-card:hover .tour-link {
  opacity: 1;
  transform: translateY(0);
}

.tour-link:hover {
  background: #1e4080;
  transform: translateY(-2px);
}

/* Tour Preview Overlay */
.tour-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1e4080 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 10;
}

.preview-content {
  text-align: center;
  color: white;
  padding: var(--space-lg);
}

.preview-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
  font-weight: 500;
}

.preview-feature svg {
  flex-shrink: 0;
  opacity: 0.9;
  stroke: currentColor;
}

.preview-cta {
  display: inline-block;
  margin-top: var(--space-md);
  padding: 0.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.preview-cta:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* オーバーレイが表示されている時は元のボタンを非表示 */
.tour-card .tour-preview-overlay ~ .tour-info .tour-link {
  opacity: 0 !important;
  pointer-events: none;
}

/* Tours CTA section */
.tours-cta {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
}

/* すべてのツアーを見るボタン強調 */
.view-all-tours {
  font-size: 1.2rem;
  padding: 18px 40px;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
  transition: all 0.3s ease;
}

.view-all-tours:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
  text-decoration: none;
}

.view-all-tours .total-count {
  font-weight: normal;
  opacity: 0.9;
  margin-left: 4px;
}

/* ========================================
   ABOUT GUIDE SECTION
======================================== */
.about-guide {
  padding: var(--space-xxl) 0;
  background: linear-gradient(135deg, white 0%, var(--soft-gray) 100%);
}

.guide-content {
  display: grid;
  grid-template-columns: 1fr; /* モバイルベース: 1カラム */
  grid-template-areas:
    "image"
    "info"
    "instructor";
  gap: var(--space-lg);
  align-items: center;
  text-align: center; /* モバイルでは中央揃え */
}

.guide-image {
  grid-area: image;
}

.guide-info {
  grid-area: info;
}

.newyorker-instructor {
  grid-area: instructor;
  align-self: start;
  margin: 0; /* グリッドのgapで制御 */
}

/* === 🎨 New Yorker Instructor スタイル === */
.instructor-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius-xl); /* guide-photoと同じ角丸 */
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); /* guide-photoと同じシャドウ */
  transition: all 0.4s ease;
}

.instructor-image-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.instructor-image {
  width: 100%;
  height: 350px; /* モバイルベース: 高さ増加で余裕を持たせる */
  object-fit: cover; /* 画像をコンテナに合わせて切り抜き */
  object-position: center 35%; /* 顔を中心に、少し上寄りに配置 */
  display: block;
}

.instructor-caption {
  color: #ffe55c; /* 明るい黄色 */
  font-size: 1.35rem; /* モバイル: 21.6px */
  font-weight: 800; /* 太字で力強く */
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* 読みやすさのための影 */
  padding: 1.5rem 1rem;
  line-height: 1.6;
  white-space: normal; /* 複数行を許可 */
  word-wrap: break-word; /* 長い単語で改行 */
  background: rgba(0, 0, 0, 0.75); /* 少し濃い背景 */
  border-radius: 8px; /* 軽い角丸 */
  margin-top: 0.5rem; /* 画像との間隔（8px） */
  width: 100%;
  box-sizing: border-box;
}

/* タブレット対応（481px以上） */
@media (min-width: 481px) {
  .instructor-image {
    height: 380px; /* 高さ調整 */
  }

  .instructor-caption {
    font-size: 1.3rem; /* 20.8px */
    line-height: 1.6;
    padding: 1.5rem 1.2rem;
    margin-top: 0.5rem;
  }
}

/* デスクトップ対応（769px以上） */
@media (min-width: 769px) {
  .instructor-image {
    height: 420px; /* 高さ調整で余裕を持たせる */
  }

  .instructor-caption {
    font-size: 1.5rem; /* 24px */
    line-height: 1.5;
    padding: 1.75rem 1.5rem;
    margin-top: 0.5rem;
  }
}

.guide-photo {
  width: 100%;
  aspect-ratio: 1 / 1; /* 正方形 */
  object-fit: contain; /* 画像全体を表示（余白ができる可能性） */
  border-radius: var(--border-radius-xl);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.guide-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* 車内サムネイル */
.car-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.car-thumbnail {
  flex: 1;
  height: 120px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.car-thumbnail:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

/* 車ギャラリーライトボックス */
.car-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.car-lightbox.active {
  display: flex;
}

.car-lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius-lg);
}

.car-lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  z-index: 10001;
}

.car-lightbox-close:hover {
  opacity: 0.7;
}

.car-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 20px;
  transition: opacity 0.2s ease;
  user-select: none;
  z-index: 10001;
}

.car-lightbox-nav:hover {
  opacity: 0.7;
}

.car-lightbox-prev {
  left: 15px;
}

.car-lightbox-next {
  right: 15px;
}

/* ライトボックスカウンター */
.car-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
  z-index: 10001;
}

.guide-info h2 {
  color: var(--primary-blue);
  margin-bottom: var(--space-sm);
}

/* ガイド名前エリア - 顔写真と名前を横並び */
.guide-name {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 1.8rem;
  color: var(--accent-red);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

/* ガイド顔写真 - 円形アイコン */
.guide-face-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ガイド名前テキスト - 縦並び */
.guide-name-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* ガイド資格 - 小さめテキスト */
.guide-license {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
}

.guide-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  color: var(--text-light);
}

.guide-features {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.guide-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: white;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.guide-feature:hover {
  transform: translateX(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.guide-feature .feature-icon {
  font-size: 2rem;
  margin-top: 0.2rem;
}

.guide-feature strong {
  color: var(--primary-blue);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  display: block;
}

.guide-feature p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* ========================================
   GALLERY SECTION
======================================== */
.tour-gallery {
  padding: var(--space-xxl) 0;
  background: var(--clean-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  aspect-ratio: 4/3;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-overlay h4 {
  font-size: 1.1rem;
  margin: 0;
  color: white;
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact-section {
  padding: var(--space-xxl) 0;
  background: linear-gradient(135deg, var(--soft-gray) 0%, white 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr; /* モバイルベース: 1カラム */
  gap: var(--space-lg);
}

.contact-info h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.contact-info p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

.contact-methods {
  display: grid;
  gap: var(--space-md);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.contact-method:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.contact-icon {
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.contact-method strong {
  color: var(--primary-blue);
  display: block;
  margin-bottom: 0.3rem;
}

.contact-method a {
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 600;
}

.contact-method a:hover {
  text-decoration: underline;
}

.contact-method small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========================================
   SNS CONTACT SECTION
======================================== */
.sns-contact-section {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--border-radius-xl);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  /* 縦中央揃え */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.sns-section-title {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.sns-section-desc {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

/* SNS Button Grid */
.sns-button-grid {
  display: grid;
  grid-template-columns: 1fr;  /* 1列縦表示 */
  gap: 16px;
  max-width: 320px;  /* 1列なので幅を狭く */
  margin: 0 auto;
}

.sns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.sns-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  filter: brightness(1.05);
}

.sns-btn:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.sns-btn:active {
  transform: translateY(-1px);
  filter: brightness(0.95);
}

.sns-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.sns-text {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

/* SNS Brand Colors */
.sns-line {
  background: #06C755;
}

.sns-wechat {
  background: #07C160;
}

.sns-kakao {
  background: #FEE500;
  color: #3C1E1E;
}

.sns-whatsapp {
  background: #25D366;
}

/* SNS Modal */
.sns-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.sns-modal.active {
  display: flex;
}

.sns-modal-content {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  max-width: 350px;
  width: 90%;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sns-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s ease;
}

.sns-modal-close:hover {
  color: var(--text-dark);
}

.sns-modal-title {
  font-size: 1.3rem;
  color: var(--primary-blue);
  margin-bottom: var(--space-md);
}

.sns-modal-qr {
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sns-modal-qr canvas {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sns-modal-mobile-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: var(--space-md) 0 var(--space-sm);
}

.sns-modal-link {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 25px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sns-modal-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Modal Link Brand Colors */
.sns-modal-link.sns-line {
  background: #06C755;
}

.sns-modal-link.sns-wechat {
  background: #07C160;
}

.sns-modal-link.sns-kakao {
  background: #FEE500;
  color: #3C1E1E;
}

.sns-modal-link.sns-whatsapp {
  background: #25D366;
}

/* SNS Responsive: Tablet and below */
@media (max-width: 767px) {
  .sns-button-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 360px;
  }

  .sns-btn {
    padding: 16px 20px;
  }
}

/* SNS Responsive: Mobile */
@media (max-width: 480px) {
  .sns-button-grid {
    max-width: 100%;
  }

  .sns-btn {
    padding: 14px 18px;
    font-size: 1rem;
  }

  .sns-icon {
    width: 24px;
    height: 24px;
  }

  .sns-text {
    font-size: 1rem;
  }

  .sns-modal-content {
    padding: 20px;
  }

  .sns-modal-qr canvas,
  .sns-modal-qr img {
    max-width: 160px;
    max-height: 160px;
  }
}

/* Contact Form */
.contact-form {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--border-radius-xl);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  display: grid;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.required {
  color: var(--accent-red);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* === 🥶 フッター === */
.site-footer {
  background: linear-gradient(135deg, var(--text-dark) 0%, #1a1a1a 100%);
  color: white;
  padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}

.footer-section h4 {
  color: var(--accent-red);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.footer-section p {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--space-xs);
}

.footer-section ul li a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-red);
}

.contact-info a {
  color: var(--accent-red);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: #cccccc;
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-md);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.social-link svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: fill 0.3s ease;
}

.social-link:hover {
  transform: translateY(-2px);
}

/* 各SNSの固有色 */
.social-link:nth-child(1):hover {
  background: #1877f2;
  color: white;
}

.social-link:nth-child(2):hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

/* removed: Twitter hover color since link was deleted */

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: var(--space-md);
  text-align: center;
}

.footer-bottom p {
  color: #999;
  margin: 0;
  font-size: 0.9rem;
}

/* === ♿ Accessibility & Performance === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-text,
  .hero-title .main-title,
  .hero-title .sub-title,
  .hero-description,
  .hero-actions,
  .tour-card:hover,
  .gallery-item:hover,
  .guide-photo:hover {
    transform: none !important;
  }
}

@media (prefers-contrast: high) {
  .tour-card,
  .guide-feature,
  .contact-method {
    border: 2px solid var(--text-dark);
  }

  .gallery-overlay {
    background: rgba(0, 0, 0, 0.9);
  }
}

/* === ⚡ Performance Optimizations === */

/* GPU加速とCompositing Layer */
.hero-section,
.hero-background,
.hero-background::before,
.hero-background::after,
.hero-text::before {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 画像最適化 */
.hero-image {
  /* モダンブラウザ用最適化 */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;

  /* コンテンツ可視性最適化 */
  content-visibility: auto;
  contain-intrinsic-size: 1200px 800px;
}

/* Intersection Observer用の準備 */
.hero-section[data-visible="false"] .hero-text {
  opacity: 0;
  transform: translateY(50px);
}

.hero-section[data-visible="true"] .hero-text {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 動的リソース読み込み */
@supports (content-visibility: auto) {
  .hero-background {
    content-visibility: auto;
    contain-intrinsic-size: 100vw 100vh;
  }
}

/* Container Queries対応準備 */
@supports (container-type: inline-size) {
  .hero-content {
    container-type: inline-size;
    container-name: hero-content;
  }

  @container hero-content (max-width: 600px) {
    .hero-title .main-title {
      font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
  }
}

/* CSS Houdini Paint API準備 */
@supports (background: paint(hero-gradient)) {
  .hero-background::after {
    background: paint(hero-gradient);
  }
}

/* Loading states */
.hero-image,
.tour-card img,
.guide-photo,
.gallery-item img {
  background: var(--soft-gray);
}

/* 段階的画像読み込み */
.hero-image[data-loaded="false"] {
  background: linear-gradient(
      135deg,
      var(--primary-blue) 0%,
      var(--accent-red) 100%
    ),
    var(--soft-gray);
  opacity: 0;
  animation: imageLoading 2s ease-in-out infinite alternate;
}

.hero-image[data-loaded="true"] {
  opacity: 1;
  animation: none;
}

@keyframes imageLoading {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.7;
  }
}

/* Critical Resource Hints */
.hero-section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 1px;
  height: 1px;
  background: url("img/tv-tower.jpg") no-repeat;
  background-size: 1px 1px;
  opacity: 0;
  pointer-events: none;
}

.hero-image[loading="lazy"],
.tour-card img[loading="lazy"],
.guide-photo[loading="lazy"],
.gallery-item img[loading="lazy"] {
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
}

/* fadeIn animation は style.css に統合済み */

/* Print styles */
@media print {
  .hero-section,
  .pickup-tours,
  .about-guide,
  .tour-gallery,
  .contact-section {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .tour-card:hover,
  .gallery-item:hover,
  .guide-feature:hover,
  .contact-method:hover {
    transform: none !important;
  }

  .hero-background,
  .gallery-overlay {
    display: none !important;
  }
}

/* === 🖥️ デスクトップ対応（768px以上 - 単一ブレイクポイント） === */
@media (min-width: 768px) {
  /* Tours Grid: 複数カラムレイアウト */
  .tours-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
  }

  /* Guide Content: 2カラムレイアウト (画像:テキスト = 1:2) */
  .guide-content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    grid-template-areas:
      "image info"
      "instructor info";
    gap: var(--space-xl);
    text-align: left;
  }

  /* Contact Content: 2カラムレイアウト */
  .contact-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  /* Gallery Grid: 複数カラム */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  /* Footer Content: 複数カラム */
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    text-align: left;
  }

  /* Social Links: 左揃え */
  .social-links {
    justify-content: flex-start;
  }
}

/* === 📱 モバイル用フッターレイアウト（768px以下） === */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer-section {
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .footer-section h3,
  .footer-section h4 {
    margin-bottom: var(--space-sm);
  }

  .footer-section ul {
    padding-left: 0;
    list-style-position: inside;
  }

  .footer-section .contact-info {
    text-align: center;
  }

  .footer-section .social-links {
    justify-content: center;
  }
}
