/* グローバルスタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  color: #333;
  line-height: 1.6;
}

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

/* グローバルヘッダー */
.global-header {
  background-color: #F1F2EC;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #FF6B35;
}

.nav-button {
  background-color: #FF6B35;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.nav-button:hover {
  background-color: #E55A2B;
}

/* ヒーローセクション */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.2), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 40px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

/* 検索フォーム */
.search-form-container {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.trip-type-selector {
  display: flex;
  gap: 10px;
}

.trip-type-option {
  padding: 10px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

.trip-type-option input {
  display: none;
}

.trip-type-option:hover {
  border-color: #FF6B35;
}

.trip-type-option.active {
  background-color: #FF6B35;
  border-color: #FF6B35;
  color: white;
  font-weight: 600;
}

.passenger-class-container {
  display: flex;
  gap: 15px;
}

.dropdown-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 15px;
  transition: border-color 0.3s;
  white-space: nowrap;
}

.dropdown-button:hover {
  border-color: #FF6B35;
}

.dropdown-button i.fa-chevron-down {
  font-size: 12px;
  color: #666;
}

.seat-class-dropdown,
.passenger-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  z-index: 100;
  min-width: 200px;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
}

.passenger-menu {
  min-width: 300px;
  padding: 15px;
}

.passenger-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.passenger-category:last-child {
  border-bottom: none;
}

.passenger-label {
  display: flex;
  flex-direction: column;
}

.passenger-label span:first-child {
  font-weight: 600;
  color: #333;
}

.passenger-age {
  font-size: 13px;
  color: #666;
}

.passenger-counter {
  display: flex;
  align-items: center;
  gap: 15px;
}

.counter-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #333;
}

.counter-btn:hover:not(:disabled) {
  background-color: #FF6B35;
  color: white;
  border-color: #FF6B35;
}

.counter-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.passenger-counter span {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.form-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.location-fields {
  display: flex;
  gap: 15px;
  align-items: flex-end;
}

.swap-button {
  width: 48px;
  height: 48px;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
  margin-bottom: 5px;
}

.swap-button:hover {
  background-color: #FF6B35;
  color: white;
  border-color: #FF6B35;
  transform: rotate(180deg);
}

.date-fields {
  display: flex;
  gap: 15px;
}

.input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.input-group label {
  font-weight: 600;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.input-group label i {
  color: #FF6B35;
}

.input-group input {
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s;
  background: white;
  cursor: pointer;
}

.input-group input:focus {
  outline: none;
  border-color: #FF6B35;
}

.input-group input[readonly] {
  cursor: pointer;
  background: white;
}

/* カレンダーピッカー */
.calendar-picker {
  position: fixed;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: none;
  z-index: 10000;
  min-width: 640px;
  padding: 20px;
}

.calendar-picker.show {
  display: block;
}

.calendar-picker.single {
  min-width: 320px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 10px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.calendar-nav-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.calendar-nav-btn:hover {
  background-color: #FF6B35;
  color: white;
  border-color: #FF6B35;
}

.calendar-month-title {
  font-weight: 700;
  font-size: 16px;
  color: #333;
  min-width: 120px;
  text-align: center;
}

.calendar-months {
  display: flex;
  gap: 30px;
}

.calendar-month {
  flex: 1;
}

.calendar-month.single {
  min-width: 280px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.calendar-weekday {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  padding: 8px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  border: 2px solid transparent;
  font-size: 14px;
}

.calendar-day-number {
  font-weight: 500;
  color: #333;
}

.calendar-day-price {
  font-size: 10px;
  color: #666;
  margin-top: 2px;
}

.calendar-day:hover:not(.disabled):not(.empty) {
  background-color: #f8f8f8;
  border-color: #FF6B35;
}

.calendar-day.disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.calendar-day.empty {
  cursor: default;
  visibility: hidden;
}

.calendar-day.selected {
  background-color: #FF6B35;
  color: white;
  border-color: #FF6B35;
}

.calendar-day.selected .calendar-day-number,
.calendar-day.selected .calendar-day-price {
  color: white;
}

.calendar-day.in-range {
  background-color: #fff5f2;
  border-color: transparent;
}

.calendar-day.range-start,
.calendar-day.range-end {
  background-color: #FF6B35;
  color: white;
  border-color: #FF6B35;
}

.calendar-day.range-start .calendar-day-number,
.calendar-day.range-start .calendar-day-price,
.calendar-day.range-end .calendar-day-number,
.calendar-day.range-end .calendar-day-price {
  color: white;
}

.calendar-day.today {
  border-color: #4CAF50;
}

.calendar-day.cheap .calendar-day-price {
  color: #4CAF50;
  font-weight: 600;
}

.calendar-day.expensive .calendar-day-price {
  color: #d32f2f;
  font-weight: 600;
}

/* 複数都市フィールド */
.multicity-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.multicity-flight {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  background: #f8f9fa;
  position: relative;
}

.multicity-flight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.multicity-flight-number {
  font-weight: 700;
  font-size: 16px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.multicity-remove-btn {
  background: none;
  border: none;
  color: #d32f2f;
  cursor: pointer;
  font-size: 20px;
  padding: 5px;
  transition: transform 0.2s;
}

.multicity-remove-btn:hover {
  transform: scale(1.2);
}

.multicity-fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.multicity-add-flight {
  padding: 14px 24px;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #FF6B35;
  font-weight: 600;
  transition: all 0.3s;
}

.multicity-add-flight:hover {
  border-color: #FF6B35;
  background-color: #fff5f2;
}

.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 100;
  margin-top: 5px;
}

.autocomplete-results.show {
  display: block;
}

.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f5f5f5;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background-color: #f8f8f8;
}

.autocomplete-item-city {
  font-weight: 600;
  color: #333;
}

.autocomplete-item-airport {
  padding-left: 30px;
  font-size: 14px;
  color: #666;
}

.autocomplete-item-code {
  color: #FF6B35;
  font-weight: 600;
  margin-left: 8px;
}

.search-button {
  padding: 16px 48px;
  background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  align-self: center;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* 特徴セクション */
.features-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

.features-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #333;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-card i {
  color: #FF6B35;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.feature-card p {
  color: #666;
  line-height: 1.8;
}

/* グローバルフッター */
.global-footer {
  background-color: #2c3e50;
  color: white;
  padding: 40px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #FF6B35;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.footer-social a {
  color: white;
  font-size: 24px;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #FF6B35;
}

.footer-copyright {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* 検索結果ページ */
.search-summary-bar {
  background-color: #f8f9fa;
  padding: 20px 30px;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 70px;
  z-index: 999;
}

.search-summary-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.search-summary-info {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  flex-wrap: wrap;
}

.search-summary-route {
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-summary-date,
.search-summary-passengers {
  color: #666;
}

.modify-search-btn {
  padding: 10px 20px;
  background: white;
  border: 2px solid #FF6B35;
  color: #FF6B35;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.modify-search-btn:hover {
  background-color: #FF6B35;
  color: white;
}

.results-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

/* 航空会社別最低価格カセット */
.airline-prices-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 25px 30px;
  background: white;
  border-bottom: 1px solid #e0e0e0;
}

.airline-prices-container {
  position: relative;
}

.airline-prices-scroll {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  scrollbar-width: thin;
}

.airline-prices-scroll::-webkit-scrollbar {
  height: 6px;
}

.airline-prices-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.airline-prices-scroll::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.airline-price-card {
  flex: 0 0 auto;
  width: 200px;
  padding: 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

.airline-price-card:hover {
  border-color: #FF6B35;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
  transform: translateY(-2px);
}

.airline-price-card.active {
  border-color: #FF6B35;
  background-color: #fff5f2;
}

.airline-logo-container {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.airline-logo {
  max-height: 55px;
  max-width: 100%;
  object-fit: contain;
}

.airline-name {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.airline-lowest-price {
  font-size: 20px;
  font-weight: 700;
  color: #d32f2f;
  margin-bottom: 4px;
}

.airline-price-date {
  font-size: 12px;
  color: #4caf50;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10;
  transition: all 0.3s;
}

.scroll-arrow:hover {
  background-color: #FF6B35;
  color: white;
  border-color: #FF6B35;
}

.scroll-arrow.left {
  left: -20px;
}

.scroll-arrow.right {
  right: -20px;
}

/* フィルターサイドバー */
.filter-sidebar {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: fit-content;
  position: sticky;
  top: 150px;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.filter-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.filter-reset {
  color: #FF6B35;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.filter-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.filter-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
}

.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.filter-option-price {
  font-size: 13px;
  color: #666;
  font-weight: 600;
}

.price-range-slider {
  padding: 10px 0;
}

.price-range-inputs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

.price-range-slider input[type="range"] {
  width: 100%;
  margin: 10px 0;
}

/* 結果エリア */
.results-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sort-tabs {
  display: flex;
  gap: 10px;
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow-x: auto;
}

.sort-tab {
  padding: 12px 24px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  font-weight: 600;
}

.sort-tab:hover {
  border-color: #FF6B35;
}

.sort-tab.active {
  background-color: #FF6B35;
  border-color: #FF6B35;
  color: white;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flight-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
  scroll-margin-top: 170px;
}

.flight-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.flight-card.highlighted {
  border: 2px solid #FF6B35;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
}

.flight-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-lowest {
  background-color: #fff3cd;
  color: #856404;
}

.badge-shortest {
  background-color: #d1ecf1;
  color: #0c5460;
}

.badge-limited {
  background-color: #f8d7da;
  color: #721c24;
}

.flight-route {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

.flight-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.airline-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.airline-logo-card {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.airline-name-card {
  font-size: 13px;
  color: #666;
}

.route-details {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.departure-info,
.arrival-info {
  text-align: center;
}

.time {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.airport-code {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.flight-path {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.path-line {
  width: 100%;
  height: 2px;
  background: #e0e0e0;
  position: relative;
}

.path-line::after {
  content: '✈';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: #FF6B35;
  font-size: 16px;
}

.flight-duration {
  font-size: 13px;
  color: #666;
}

.flight-stops {
  font-size: 13px;
  color: #666;
}

.price-section {
  text-align: right;
}

.price-amount {
  font-size: 28px;
  font-weight: 700;
  color: #FF6B35;
  margin-bottom: 5px;
}

.price-note {
  font-size: 12px;
  color: #666;
  margin-bottom: 15px;
}

.select-flight-btn {
  padding: 12px 32px;
  background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.select-flight-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.flight-details-toggle {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.flight-details-btn {
  background: none;
  border: none;
  color: #FF6B35;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* モーダル */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #FF6B35;
}

.modal-body {
  padding: 30px;
}

.flight-segment {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.segment-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.segment-airline-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.segment-info h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.segment-flight-number {
  font-size: 14px;
  color: #666;
}

.segment-route {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.segment-airport {
  flex: 1;
}

.segment-time {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.segment-date {
  font-size: 14px;
  color: #666;
}

.segment-airport-name {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.segment-arrow {
  font-size: 24px;
  color: #FF6B35;
}

.segment-details {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: #666;
}

.segment-details div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.layover-info {
  padding: 15px;
  background: #fff3cd;
  border-radius: 8px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #856404;
}

.pricing-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pricing-card {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.pricing-card:hover {
  border-color: #FF6B35;
}

.pricing-card.selected {
  border-color: #FF6B35;
  background-color: #fff5f2;
}

.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 15px;
}

.pricing-class {
  flex: 1;
}

.pricing-class h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-subtitle {
  font-size: 13px;
  color: #666;
}

.pricing-price-section {
  text-align: right;
}

.pricing-discount {
  background-color: #d32f2f;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
  display: inline-block;
}

.pricing-price {
  font-size: 24px;
  font-weight: 700;
  color: #FF6B35;
}

.pricing-original-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  margin-top: 2px;
}

.pricing-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.pricing-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
}

.pricing-detail i {
  width: 16px;
  text-align: center;
  color: #FF6B35;
}

.modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  position: sticky;
  bottom: 0;
  background: white;
}

.modal-btn {
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-btn-secondary {
  background: white;
  border: 2px solid #e0e0e0;
  color: #333;
}

.modal-btn-secondary:hover {
  border-color: #FF6B35;
  color: #FF6B35;
}

.modal-btn-primary {
  background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
  border: none;
  color: white;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* ローディング */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 20px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #FF6B35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .results-layout {
    grid-template-columns: 1fr;
  }
  
  .filter-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  /* Container */
  .container {
    padding: 0 15px;
  }
  
  /* Header - モバイル最適化 */
  .global-header {
    padding: 0;
  }
  
  .header-container {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .logo {
    height: 28px;
  }
  
  .header-nav {
    gap: 8px;
    flex-shrink: 0;
  }
  
  .nav-link {
    font-size: 12px;
    white-space: nowrap;
  }
  
  .nav-button {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    min-width: auto;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 500px;
    padding: 80px 15px 40px;
  }
  
  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 15px;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  
  .search-form-container {
    padding: 20px 15px;
    margin: 0;
  }
  
  /* Form Header */
  .form-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .trip-type-selector {
    width: 100%;
    gap: 8px;
  }
  
  .trip-type-option {
    flex: 1;
    padding: 12px 8px;
    font-size: 14px;
  }
  
  .passenger-class-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .dropdown-button {
    width: 100%;
    justify-content: space-between;
    padding: 12px 15px;
    font-size: 14px;
  }
  
  /* Form Body */
  .form-body {
    gap: 15px;
  }
  
  .location-fields {
    flex-direction: column;
    gap: 12px;
  }
  
  .swap-button {
    transform: rotate(90deg);
    margin: -8px 0;
    align-self: center;
  }
  
  .date-fields {
    flex-direction: column;
    gap: 12px;
  }
  
  .input-group {
    width: 100%;
  }
  
  .input-group label {
    font-size: 14px;
  }
  
  .input-group input[type="text"] {
    padding: 12px 15px;
    font-size: 15px;
  }
  
  .search-button {
    padding: 14px 32px;
    font-size: 16px;
    width: 100%;
  }
  
  /* Accordion Search Form */
  .accordion-search-form {
    padding: 20px 15px;
  }
  
  /* Features Section */
  .features-section {
    padding: 50px 15px;
  }
  
  .features-section h2 {
    font-size: 1.75rem;
    margin-bottom: 30px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .feature-card {
    padding: 30px 20px;
  }
  
  /* Search Results */
  .search-summary-bar {
    padding: 15px;
    position: relative;
    top: 0;
  }
  
  .search-summary-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .search-summary-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
  }
  
  .search-summary-route {
    font-size: 16px;
  }
  
  .modify-search-btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
  
  /* Airline Prices - ロゴを大きく */
  .airline-prices-section {
    padding: 20px 15px;
  }
  
  .airline-price-card {
    min-width: 140px;
    padding: 12px 10px;
  }
  
  .airline-logo-container {
    height: 70px;
    margin-bottom: 12px;
  }
  
  .airline-logo {
    max-height: 65px;
    width: auto;
  }
  
  .airline-name {
    font-size: 12px;
    min-height: 28px;
  }
  
  .airline-lowest-price {
    font-size: 16px;
  }
  
  .airline-price-date {
    font-size: 11px;
  }
  
  .scroll-arrow {
    display: none;
  }
  
  /* Container */
  .container {
    padding: 0 15px;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Body overflow prevention */
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  /* Results Layout - 左右の余白を広げる */
  .results-layout {
    padding: 10px 15px;
    gap: 15px;
    grid-template-columns: 1fr;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Filter Sidebar - Accordion Style */
  .filter-sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
  }
  
  .filter-header {
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .filter-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
  }
  
  .filter-toggle-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
  }
  
  .filter-sidebar.collapsed .filter-toggle-icon {
    transform: rotate(180deg);
  }
  
  .filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  
  .filter-sidebar.expanded .filter-content {
    max-height: 2000px;
  }
  
  .filter-section {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .filter-section:last-child {
    border-bottom: none;
  }
  
  .filter-section-title {
    font-size: 15px;
  }
  
  .filter-reset {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  /* Mobile Filter Footer - リセットボタンをアコーディオン内に配置 */
  .filter-footer {
    padding: 15px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
  }
  
  .filter-reset-full {
    width: 100%;
    padding: 12px 20px;
    background: white;
    border: 2px solid #FF6B35;
    color: #FF6B35;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
  }
  
  .filter-reset-full:hover {
    background: #FF6B35;
    color: white;
  }
  
  .filter-reset-full i {
    font-size: 13px;
  }
  
  /* Sort Tabs */
  .sort-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    gap: 8px;
    padding: 0 10px 10px 10px;
    margin: 0 -10px;
  }
  
  .sort-tabs::-webkit-scrollbar {
    display: none;
  }
  
  .sort-tab {
    white-space: nowrap;
    padding: 10px 15px;
    font-size: 12px;
    flex-shrink: 0;
    min-width: auto;
  }
  
  /* Search Summary - 中央揃え */
  .search-summary-bar {
    padding: 12px 15px;
    position: relative;
    top: 0;
    margin: 0 -15px;
    width: calc(100% + 30px);
  }
  
  .search-summary-content {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
    text-align: center;
  }
  
  .search-summary-info {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 13px;
  }
  
  .search-summary-route {
    font-size: 15px;
    font-weight: 600;
    justify-content: center;
  }
  
  .modify-search-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 10px 16px;
    font-size: 13px;
  }
  
  /* Airline Prices */
  .airline-prices-section {
    padding: 15px 10px;
    margin: 0 -10px;
    width: calc(100% + 20px);
    overflow-x: auto;
  }
  
  .airline-prices-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 10px;
  }
  
  .airline-prices-scroll::-webkit-scrollbar {
    display: none;
  }
  
  .airline-price-card {
    min-width: 130px;
    max-width: 130px;
    padding: 10px 8px;
    flex-shrink: 0;
  }
  
  .airline-logo-container {
    height: 45px;
  }
  
  .airline-logo {
    max-height: 40px;
  }
  
  .airline-name {
    font-size: 11px;
    min-height: 28px;
    line-height: 1.2;
  }
  
  .airline-lowest-price {
    font-size: 15px;
  }
  
  .airline-price-date {
    font-size: 10px;
  }
  
  .scroll-arrow {
    display: none;
  }
  
  /* Flight Cards */
  .flight-card {
    padding: 12px;
    margin: 0 0 15px 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .flight-badges {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
  }
  
  .badge {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .flight-route {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    width: 100%;
  }
  
  .flight-route-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #FF6B35;
  }
  
  .flight-info {
    width: 100%;
  }
  
  .airline-info {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .airline-logo-card {
    max-height: 28px;
    width: auto;
  }
  
  .airline-name-card {
    font-size: 13px;
    font-weight: 500;
  }
  
  .route-details {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .departure-info,
  .arrival-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .time {
    font-size: 20px;
    font-weight: 600;
  }
  
  .airport-code {
    font-size: 12px;
    color: #666;
  }
  
  .flight-path {
    order: 3;
    width: 100%;
    margin-top: 8px;
    padding: 8px 0;
    border-top: 1px dashed #e0e0e0;
    border-bottom: 1px dashed #e0e0e0;
  }
  
  .path-line {
    display: none;
  }
  
  .flight-duration,
  .flight-stops {
    font-size: 12px;
    text-align: left;
    color: #666;
  }
  
  .flight-duration {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
  }
  
  /* Flight Card Footer */
  .flight-card-footer {
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
  }
  
  .flight-details-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
  
  .flight-card-price-action {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .flight-card-footer .price-section {
    align-items: center;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
  }
  
  .flight-card-footer .price-amount {
    font-size: 24px;
  }
  
  .flight-card-footer .select-flight-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
  }
  
  .price-section {
    text-align: center;
  }
  
  /* Modal */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  
  .modal-content {
    max-width: 100%;
    max-height: 95vh;
    width: 100%;
    margin: 0;
    border-radius: 20px 20px 0 0;
  }
  
  .pricing-modal-content {
    max-width: 100% !important;
  }
  
  .modal-header {
    padding: 15px;
  }
  
  .modal-title {
    font-size: 18px;
  }
  
  .modal-body {
    padding: 15px;
    max-height: calc(95vh - 140px);
    overflow-y: auto;
  }
  
  .modal-footer {
    padding: 15px;
    gap: 10px;
  }
  
  .modal-btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 15px;
  }
  
  /* Pricing Cards */
  .pricing-section-title {
    font-size: 15px;
    padding-bottom: 8px;
  }
  
  .pricing-options {
    gap: 12px;
  }
  
  .pricing-card {
    padding: 15px;
  }
  
  .pricing-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .pricing-class h4 {
    font-size: 16px;
  }
  
  .pricing-subtitle {
    font-size: 12px;
  }
  
  .pricing-price {
    font-size: 22px;
  }
  
  .pricing-details {
    gap: 10px;
  }
  
  .pricing-detail {
    font-size: 13px;
  }
  
  /* Calendar */
  .calendar-picker {
    position: fixed !important;
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    min-width: auto !important;
    left: 15px !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    padding: 15px;
    max-height: 85vh;
    overflow-y: auto;
    box-sizing: border-box;
  }
  
  .calendar-picker.single {
    min-width: auto !important;
  }
  
  .calendar-header {
    padding: 10px 5px;
    margin-bottom: 15px;
  }
  
  .calendar-month-title {
    font-size: 14px;
    min-width: 100px;
  }
  
  .calendar-nav-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .calendar-months {
    flex-direction: column;
    gap: 20px;
  }
  
  .calendar-month {
    width: 100%;
  }
  
  .calendar-weekdays {
    gap: 2px;
    margin-bottom: 6px;
  }
  
  .calendar-weekday {
    font-size: 11px;
    padding: 6px 2px;
  }
  
  .calendar-days {
    gap: 2px;
  }
  
  .calendar-day {
    font-size: 13px;
    padding: 8px 2px;
    min-height: 40px;
    border-width: 1px;
  }
  
  .calendar-day-number {
    font-size: 13px;
  }
  
  .calendar-day-price {
    font-size: 9px;
  }
  
  /* Dropdown Menus */
  .dropdown-menu {
    max-height: 60vh;
    overflow-y: auto;
  }
  
  .passenger-menu {
    min-width: 100%;
  }
  
  .passenger-category {
    padding: 12px 15px;
  }
  
  .passenger-label {
    font-size: 14px;
  }
  
  .passenger-age {
    font-size: 12px;
  }
  
  .counter-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  /* Autocomplete */
  .autocomplete-results {
    max-height: 50vh;
  }
  
  .autocomplete-item {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  /* Footer */
  .global-footer {
    padding: 30px 15px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .footer-social {
    gap: 20px;
    margin: 20px 0;
  }
  
  .footer-copyright {
    font-size: 12px;
  }
}

/* 絞り込みスライダー */
.filter-slider-container {
  padding: 15px 0;
}

.filter-slider-values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.filter-slider-separator {
  color: #999;
  margin: 0 8px;
}

.filter-slider-value {
  color: #FF6B35;
}

/* デュアルレンジスライダー */
.dual-range-slider {
  position: relative;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  margin: 10px 0 20px 0;
}

.dual-range-slider input[type="range"] {
  position: absolute;
  width: 100%;
  height: 6px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  top: 0;
  left: 0;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF6B35;
  border: 3px solid white;
  cursor: grab;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  position: relative;
  z-index: 3;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(255, 107, 53, 0.4);
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
}

.dual-range-slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF6B35;
  border: 3px solid white;
  cursor: grab;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  position: relative;
  z-index: 3;
}

.dual-range-slider input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(255, 107, 53, 0.4);
}

.dual-range-slider input[type="range"]::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
}

.dual-range-slider input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: transparent;
}

.dual-range-slider input[type="range"]::-moz-range-track {
  width: 100%;
  height: 6px;
  background: transparent;
}

/* 選択範囲の視覚化 */
.dual-range-slider::before {
  content: '';
  position: absolute;
  height: 6px;
  background: #FF6B35;
  border-radius: 3px;
  left: 0%;
  right: 0%;
  pointer-events: none;
}

.time-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.time-option {
  display: flex;
  align-items: flex-start;
  padding: 10px 8px;
  background: #f5f5f5;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 12px;
  min-height: 60px;
}

.time-option:hover {
  background: #e8e8e8;
}

.time-option input[type="checkbox"] {
  margin-right: 6px;
  margin-top: 2px;
  flex-shrink: 0;
}

.time-option-icon {
  margin-right: 4px;
  color: #666;
  font-size: 13px;
  flex-shrink: 0;
}

.time-option-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  line-height: 1.3;
  word-break: break-word;
}

.filter-section-subtitle {
  font-size: 13px;
  color: #666;
  margin-top: 12px;
  margin-bottom: 8px;
  font-weight: 500;
}

/* 再検索アコーディオン */
.modify-search-accordion {
  background: white;
  border-top: 1px solid #e0e0e0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.modify-search-accordion.open {
  max-height: 1000px;
  border-bottom: 1px solid #e0e0e0;
}

.accordion-search-form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
}

.modify-search-btn .fa-chevron-down {
  transition: transform 0.3s ease;
}

.modify-search-btn.active .fa-chevron-down {
  transform: rotate(180deg);
}

/* フライトカードフッター */
.flight-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.flight-card-price-action {
  display: flex;
  align-items: center;
  gap: 20px;
}

.flight-route-label {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 10px;
}

/* モーダルのプライシングセクション */
.pricing-section {
  margin-bottom: 30px;
}

.pricing-section:last-child {
  margin-bottom: 0;
}

.pricing-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #FF6B35;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-section-title i {
  color: #FF6B35;
}

.pricing-modal-content {
  max-width: 900px !important;
  max-height: 90vh;
  overflow-y: auto;
}

/* フライト詳細ボタンのスタイル調整 */
.flight-details-btn {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.flight-details-btn:hover {
  background: #f8f9fa;
  border-color: #FF6B35;
  color: #FF6B35;
}

/* 価格セクションの調整 */
.flight-card-footer .price-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.flight-card-footer .price-amount {
  font-size: 28px;
  font-weight: 700;
  color: #d32f2f;
}

.flight-card-footer .price-note {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.flight-card-footer .select-flight-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.flight-card-footer .select-flight-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .flight-card-footer {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .flight-card-price-action {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .flight-card-footer .price-section {
    align-items: center;
    text-align: center;
  }
  
  .pricing-modal-content {
    max-width: 95vw !important;
  }
}

/* タブレット対応 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 960px;
  }
  
  .hero-section {
    min-height: 550px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .search-form-container {
    padding: 30px;
  }
  
  .results-layout {
    grid-template-columns: 280px 1fr;
    gap: 25px;
  }
  
  .flight-route {
    flex-direction: row;
  }
  
  .route-details {
    flex-direction: row;
  }
  
  .pricing-options {
    grid-template-columns: 1fr;
  }
}

/* 小型モバイル対応 (最大480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.875rem;
  }
  
  .search-form-container {
    padding: 15px;
  }
  
  .trip-type-option {
    padding: 10px 6px;
    font-size: 13px;
  }
  
  .dropdown-button {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .search-button {
    padding: 12px 24px;
    font-size: 15px;
  }
  
  .flight-card {
    padding: 12px;
  }
  
  .time {
    font-size: 20px;
  }
  
  .airport-code {
    font-size: 12px;
  }
  
  .flight-card-footer .price-amount {
    font-size: 22px;
  }
  
  .airline-price-card {
    min-width: 120px;
  }
  
  .airline-lowest-price {
    font-size: 14px;
  }
  
  .modal-title {
    font-size: 16px;
  }
  
  .pricing-card {
    padding: 12px;
  }
  
  .pricing-price {
    font-size: 20px;
  }
  
  .filter-section {
    padding: 12px;
  }
}

/* ランドスケープモード対応 */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    min-height: 400px;
    padding: 60px 15px 30px;
  }
  
  .modal-content {
    max-height: 90vh;
  }
  
  .modal-body {
    max-height: calc(90vh - 140px);
  }
}

/* 超小型デバイス対応 (最大360px) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.35rem;
  }
  
  .trip-type-option {
    padding: 8px 4px;
    font-size: 12px;
  }
  
  .search-button {
    font-size: 14px;
  }
  
  .time {
    font-size: 18px;
  }
  
  .flight-card-footer .price-amount {
    font-size: 20px;
  }
}

/* モバイル専用の追加スタイル */
@media (max-width: 768px) {
  /* 複数都市検索 */
  .multicity-sections {
    gap: 15px;
  }
  
  .multicity-section {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .multicity-section .input-group {
    margin-bottom: 12px;
  }
  
  .add-city-btn,
  .remove-city-btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }
  
  /* カレンダーの調整 */
  .calendar-picker {
    padding: 15px;
  }
  
  .calendar-months {
    flex-direction: column;
    gap: 20px;
  }
  
  .calendar-month {
    width: 100%;
  }
  
  .calendar-weekday {
    font-size: 11px;
    padding: 8px 2px;
  }
  
  /* 検索結果の詳細情報 */
  .flight-segment {
    padding: 12px;
    margin-bottom: 10px;
  }
  
  .segment-time {
    font-size: 14px;
  }
  
  .segment-airport {
    font-size: 12px;
  }
  
  /* 絞り込みフィルター（モバイル） */
  .filter-sidebar {
    border-radius: 8px;
  }
  
  .filter-header {
    padding: 15px;
  }
  
  .filter-reset {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .time-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .time-option {
    padding: 12px 10px;
  }
  
  /* バッジ */
  .badge {
    white-space: nowrap;
  }
  
  /* スクロール時の固定ヘッダー調整 */
  .global-header.scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  /* タッチ操作の最適化 */
  button,
  .dropdown-button,
  .select-flight-btn,
  .flight-details-btn {
    min-height: 44px; /* iOS推奨タッチターゲットサイズ */
  }
  
  input[type="text"],
  input[type="radio"],
  input[type="checkbox"] {
    min-height: 44px;
  }
  
  /* セレクトボックスとチェックボックスの調整 */
  .filter-option label {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 0;
  }
  
  input[type="checkbox"],
  input[type="radio"] {
    width: 20px;
    height: 20px;
    min-height: auto;
  }
  
  /* オートコンプリート結果 */
  .autocomplete-city,
  .autocomplete-airport {
    padding: 12px 15px;
  }
  
  .autocomplete-name {
    font-size: 14px;
  }
  
  .autocomplete-code {
    font-size: 12px;
  }
  
  /* モーダルのアニメーション（モバイル） */
  .modal-overlay {
    animation: fadeIn 0.2s ease-out;
  }
  
  .modal-content {
    animation: slideUp 0.3s ease-out;
  }
  
  @keyframes slideUp {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  /* 価格表示の強調 */
  .pricing-card.selected {
    border-width: 3px;
    border-color: #FF6B35;
  }
  
  /* スクロールバーのスタイリング（モバイルWebKit） */
  .modal-body::-webkit-scrollbar,
  .dropdown-menu::-webkit-scrollbar {
    width: 4px;
  }
  
  .modal-body::-webkit-scrollbar-thumb,
  .dropdown-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
  }
  
  /* セーフエリア対応（iOS） */
  @supports (padding: env(safe-area-inset-bottom)) {
    .modal-footer {
      padding-bottom: calc(15px + env(safe-area-inset-bottom));
    }
    
    .global-footer {
      padding-bottom: calc(30px + env(safe-area-inset-bottom));
    }
  }
}

/* モバイル専用の横幅制限 */
@media (max-width: 768px) {
  /* 全体のコンテナ */
  * {
    max-width: 100vw;
  }
  
  html {
    overflow-x: hidden;
  }
  
  /* 絞り込みスライダーの調整 */
  .filter-slider-container {
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  .dual-range-slider {
    width: 100%;
    max-width: 100%;
  }
  
  .time-options {
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }
  
  .time-option {
    padding: 10px 8px;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* フライトカードの要素 */
  .route-details > * {
    max-width: 100%;
  }
  
  /* 価格表示 */
  .pricing-options {
    gap: 10px;
  }
  
  .pricing-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* テーブル要素 */
  table {
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    display: block;
  }
  
  /* 画像 */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* リスト要素 */
  .results-list {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  
  #resultsList {
    width: 100%;
    max-width: 100%;
  }
  
  /* 検索結果エリア */
  .results-area {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* ボタン類 */
  button {
    max-width: 100%;
  }
  
  /* 入力フィールド */
  input,
  select,
  textarea {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* モバイル版の再検索フォーム調整 */
@media (max-width: 768px) {
  .accordion-search-form {
    padding: 20px 15px;
  }
  
  .results-area {
    padding: 0;
  }
}

/* モバイル版フライトカードの最適化 */
@media (max-width: 768px) {
  /* フライトカードの基本レイアウト */
  .flight-card {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
  }
  
  /* フライトルート（往路・復路） */
  .flight-route {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .flight-route:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  /* ルートヘッダー */
  .flight-route-header {
    margin-bottom: 12px;
  }
  
  /* 往路・復路ラベル */
  .flight-route-label {
    font-size: 14px;
    font-weight: 700;
    color: #FF6B35;
    display: inline-block;
  }
  
  /* ルート詳細 - 横3カラムレイアウト */
  .route-details {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
  }
  
  /* 出発・到着情報 */
  .departure-info,
  .arrival-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  
  .departure-info {
    text-align: left;
  }
  
  .arrival-info {
    text-align: right;
  }
  
  /* 空港コード */
  .route-details .airport-code {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
  }
  
  /* 時刻表示 */
  .route-details .time {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.1;
  }
  
  /* フライトパス（中央） */
  .flight-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
    min-width: 0;
    flex: 1;
  }
  
  /* 経由情報（Directバッジ） */
  .flight-stops {
    font-size: 12px;
    font-weight: 600;
    color: #1976D2;
    background: #E3F2FD;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
  }
  
  /* パスライン */
  .path-line {
    width: 100%;
    height: 2px;
    background: #E0E0E0;
    position: relative;
    margin: 4px 0;
  }
  
  .path-line::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid #E0E0E0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
  }
  
  /* ルートフッター（フライト時間 + 航空会社ロゴ） */
  .flight-route-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
  }
  
  /* フライト時間 */
  .flight-duration {
    font-size: 14px;
    font-weight: 600;
    color: #666;
  }
  
  /* 小さい航空会社ロゴ */
  .airline-logo-small {
    height: 30px;
    width: auto;
    object-fit: contain;
  }
  
  /* フライトカードフッター */
  .flight-card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
  }
  
  /* 詳細ボタン */
  .flight-details-btn {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .flight-details-btn:hover {
    border-color: #FF6B35;
    color: #FF6B35;
  }
  
  /* 価格セクション */
  .flight-card-price-action {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .price-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  
  .price-amount {
    font-size: 26px;
    font-weight: 700;
    color: #FF6B35;
  }
  
  .price-note {
    font-size: 12px;
    color: #999;
  }
  
  /* プラン選択ボタン */
  .select-flight-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  }
  
  .select-flight-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
  }
  
  /* バッジ */
  .flight-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
  }
  
  .badge {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* モバイル版フライトカード追加最適化 */
@media (max-width: 768px) {
  /* フライト情報全体のスペーシング改善 */
  .flight-info {
    width: 100%;
  }
  
  /* 往路と復路の間のスペース */
  .flight-route {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }
  
  .flight-route:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  /* フライトセグメント情報 */
  .flight-segment {
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-top: 12px;
  }
  
  .segment-time {
    font-size: 16px;
    font-weight: 600;
    color: #333;
  }
  
  .segment-airport {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
  }
  
  .segment-details {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
  }
  
  /* 航空会社カードのロゴコンテナ */
  .airline-info {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
  }
}

/* 再検索ボタンをフル幅に修正 */
@media (max-width: 768px) {
  .search-summary-content {
    padding: 0 !important;
  }
  
  .modify-search-btn {
    width: 100%;
    margin: 10px 0 0 0;
    padding: 12px 20px;
    box-sizing: border-box;
  }
  
  /* 検索情報バーのコンテナ調整 */
  .search-summary-bar {
    padding: 15px !important;
  }
}

/* モバイル版の追加修正 */
@media (max-width: 768px) {
  /* 再検索ボタンを完全に中央配置 */
  .search-summary-content .modify-search-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* 航空会社ロゴをさらに大きく */
  .airline-logo-container {
    height: 80px !important;
    margin-bottom: 10px;
  }
  
  .airline-logo {
    max-height: 75px !important;
    width: auto;
  }
  
  .airline-logo-card {
    height: 50px !important;
    max-width: 120px;
  }
  
  /* フライト詳細を横並びレイアウトに改善 */
  .flight-route {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
  }
  

  
  /* フライト時間 */
  .flight-duration {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    margin-top: 4px;
  }
}

/* 空港コードツールチップ */
.airport-tooltip {
  position: absolute;
  z-index: 10000;
  background: rgba(51, 51, 51, 0.95);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  animation: tooltipFadeIn 0.2s ease-out;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.airport-tooltip-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
}

.airport-tooltip-code {
  font-size: 18px;
  font-weight: 700;
  color: #FF6B35;
  letter-spacing: 1px;
}

.airport-tooltip-city {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.airport-tooltip-name {
  font-size: 13px;
  color: #e0e0e0;
  line-height: 1.4;
}

/* モバイル用の空港コードインタラクティブスタイル */
@media (max-width: 768px) {
  .airport-code-interactive {
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 4px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  
  .airport-code-interactive:active {
    background: rgba(255, 107, 53, 0.1);
    transform: scale(1.05);
  }
  
  /* タップ可能であることを示すアイコン */
  .airport-code-interactive::after {
    content: '\f05a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    color: #FF6B35;
    opacity: 0.6;
    margin-left: 4px;
    vertical-align: super;
  }
}

/* デスクトップ・モバイルレイアウト切り替え */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }
  
  /* モバイル専用フライトルート */
  .flight-route-mobile {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .flight-route-mobile:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  /* モバイル専用ルート詳細 */
  .route-details-mobile {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
  }
  
  .route-details-mobile .departure-info,
  .route-details-mobile .arrival-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  
  .route-details-mobile .departure-info {
    text-align: left;
  }
  
  .route-details-mobile .arrival-info {
    text-align: right;
  }
  
  /* モバイル専用空港コード */
  .route-details-mobile .airport-code {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
  }
  
  /* モバイル専用時刻表示 */
  .route-details-mobile .time {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.1;
  }
  
  /* モバイル専用フライトパス */
  .route-details-mobile .flight-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
    min-width: 0;
    flex: 1;
  }
  
  /* モバイル専用経由情報 */
  .route-details-mobile .flight-stops {
    font-size: 12px;
    font-weight: 600;
    color: #1976D2;
    background: #E3F2FD;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
  }
  
  /* モバイル専用パスライン */
  .route-details-mobile .path-line {
    width: 100%;
    height: 2px;
    background: #E0E0E0;
    position: relative;
    margin: 4px 0;
  }
  
  .route-details-mobile .path-line::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid #E0E0E0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
  }
}

/* デスクトップ版空港コードのホバー効果 */
.desktop-only .airport-code-interactive {
  cursor: help;
  position: relative;
  transition: color 0.2s;
  border-bottom: 1px dotted #999;
}

.desktop-only .airport-code-interactive:hover {
  color: #FF6B35;
  border-bottom-color: #FF6B35;
}

/* デスクトップツールチップ専用スタイル */
.desktop-tooltip {
  pointer-events: none;
}

/* モバイル版フライトカード - 新デザイン */
@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
  
  .mobile-flight-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
  }
  
  .mobile-airline-logo {
    width: 80px;
    height: auto;
    object-fit: contain;
  }
  
  .mobile-route-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .mobile-route-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  .mobile-route-label {
    font-size: 16px;
    font-weight: 700;
    color: #FF6B35;
    margin-bottom: 15px;
  }
  
  .mobile-route-details {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
  }
  
  .mobile-departure,
  .mobile-arrival {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .mobile-departure {
    align-items: flex-start;
  }
  
  .mobile-arrival {
    align-items: flex-end;
  }
  
  .mobile-airport-code {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    cursor: pointer;
    position: relative;
  }
  
  .mobile-airport-code::after {
    content: 'ⓘ';
    font-size: 16px;
    color: #FF6B35;
    margin-left: 4px;
    vertical-align: super;
  }
  
  .mobile-time {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    line-height: 1;
  }
  
  .mobile-flight-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 100px;
  }
  
  .mobile-direct-badge {
    background: #E3F2FD;
    color: #1976D2;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
  }
  
  .mobile-path-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #FF9800 0%, #FFB74D 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-path-line i {
    color: #FF9800;
    font-size: 16px;
    background: white;
    padding: 0 8px;
    position: relative;
    z-index: 1;
  }
  
  .mobile-duration {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
  }
}

/* モバイル版フライトカード - レイアウト調整 */
@media (max-width: 768px) {
  /* ヘッダー調整 */
  .mobile-flight-header {
    display: block;
    margin-bottom: 15px;
  }
  
  /* 往路/復路ヘッダー行 */
  .mobile-route-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  
  .mobile-route-label-group {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  
  .mobile-route-label {
    font-size: 16px;
    font-weight: 700;
    color: #FF6B35;
  }
  
  .mobile-route-stops {
    background: #E3F2FD;
    color: #1976D2;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
  }
  
  .mobile-airline-logo {
    width: auto;
    height: 40px;
    object-fit: contain;
  }
  
  /* 空港コードと時刻のフォントサイズを30pxに統一 */
  .mobile-airport-code {
    font-size: 30px !important;
    font-weight: 700;
    color: #333;
    line-height: 1;
    cursor: pointer;
    position: relative;
  }
  
  .mobile-time {
    font-size: 30px !important;
    font-weight: 700;
    color: #333;
    line-height: 1;
  }
  
  /* Directバッジを削除（ラベル横に移動したため） */
  .mobile-direct-badge {
    display: none;
  }
  
  /* 料金表示を40pxに、上下余白を調整 */
  .flight-card-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
  }
  
  .price-amount {
    font-size: 40px !important;
    font-weight: 700 !important;
    color: #d32f2f !important;
    line-height: 1.2 !important;
  }
  
  .price-note {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
  }
  
  .flight-card-price-action {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .price-section {
    text-align: center;
    padding: 15px 0;
  }
}

/* モバイル版 - 往路ラベルと経由情報の位置調整 */
@media (max-width: 768px) {
  .mobile-route-label-group {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  
  .mobile-route-label {
    font-size: 16px;
    font-weight: 700;
    color: #FF6B35;
    line-height: 1.4;
  }
  
  .mobile-route-stops {
    background: #E3F2FD;
    color: #1976D2;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.4;
  }
  
  /* 共通バッジを両方で表示 */
  .flight-badges {
    display: block !important;
    margin-bottom: 15px;
  }
  
  /* モバイル版でバッジヘッダーを非表示 */
  .mobile-only .mobile-flight-header {
    display: none;
  }
}

/* ===== 認証画面スタイル ===== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.auth-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 10px;
  text-align: center;
}

.auth-subtitle {
  font-size: 16px;
  color: #718096;
  margin-bottom: 30px;
  text-align: center;
}

.auth-options {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.auth-option-card {
  display: block;
  padding: 24px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.auth-option-card:hover {
  border-color: #667eea;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.auth-option-icon {
  color: #667eea;
  margin-bottom: 16px;
}

.auth-option-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 8px;
}

.auth-option-card p {
  font-size: 14px;
  color: #718096;
  margin-bottom: 4px;
}

.auth-option-detail {
  font-size: 12px !important;
  color: #a0aec0 !important;
}

.auth-step {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-message {
  padding: 16px;
  background: #edf2f7;
  border-radius: 8px;
  margin-bottom: 24px;
  text-align: center;
  font-size: 14px;
  color: #2d3748;
}

.auth-message strong {
  color: #667eea;
  font-weight: 600;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.btn-primary,
.btn-secondary,
.btn-link {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5a67d8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #e2e8f0;
  color: #2d3748;
}

.btn-secondary:hover:not(:disabled) {
  background: #cbd5e0;
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
  margin-bottom: 12px;
}

.btn-link {
  background: transparent;
  color: #667eea;
  padding: 8px;
  font-size: 14px;
}

.btn-link:hover {
  color: #5a67d8;
}

.auth-back {
  text-align: center;
  margin-top: 24px;
}

.error-message {
  padding: 12px;
  background: #fed7d7;
  border: 1px solid #fc8181;
  border-radius: 8px;
  color: #c53030;
  font-size: 14px;
  margin-bottom: 16px;
  text-align: center;
}

.success-message {
  padding: 12px;
  background: #c6f6d5;
  border: 1px solid #68d391;
  border-radius: 8px;
  color: #22543d;
  font-size: 14px;
  margin-bottom: 16px;
  text-align: center;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .auth-card {
    padding: 24px;
  }
  
  .auth-title {
    font-size: 24px;
  }
  
  .auth-option-card {
    padding: 20px;
  }
}

/* Google Sign-In ボタン */
.auth-social {
  margin-bottom: 20px;
}

.btn-google {
  background: white;
  color: #3c4043;
  border: 1px solid #dadce0;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: #d2d4d8;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
  transform: translateY(-1px);
}

.btn-google i {
  font-size: 18px;
  color: #4285f4;
}

/* 区切り線 */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #718096;
  font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider span {
  padding: 0 16px;
}
