@charset "UTF-8";

/* 交通手段バックアップページ専用スタイル */
.transportation-backup-page {
  background: #f8f9fa;
}

/* リンクスタイル */
.category-card-link {
  text-decoration: none !important;
  color: inherit !important;
}

/* ヒーローセクション */
.sub-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.5rem;
  opacity: 0.9;
}

/* イントロセクション */
.intro-section {
  padding: 80px 0;
  background: white;
}

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

.intro-text h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 30px;
  text-align: center;
}

.intro-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 40px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.stat-item {
  text-align: center;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  color: #666;
}

/* カテゴリーグリッド */
.disaster-categories {
  padding: 80px 0;
  background: #f8f9fa;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

.category-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.category-card:hover::before {
  height: 8px;
}

.transportation-backup-page .category-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 2rem;
  color: white;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.category-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.category-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
  flex: 1;
}

.category-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.category-stats .stat {
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
}

.category-stats .number {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.category-stats .label {
  font-size: 0.9rem;
  color: #666;
}

.category-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.category-features .feature {
  padding: 5px 15px;
  background: #f8f9fa;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.category-link {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.category-link i {
  transition: transform 0.3s ease;
}

.category-card:hover .category-link i {
  transform: translateX(5px);
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
  .detail-content {
    grid-template-columns: 1fr;
  }
  
  .timeline-item {
    grid-template-columns: 100px 1fr;
  }
  
  .timeline-item::before {
    left: 100px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .timeline-time {
    text-align: left;
  }
  
  .timeline-item::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.2rem;
  }
  
  .detail-text h2 {
    font-size: 2rem;
  }
  
  .affiliate-grid {
    grid-template-columns: 1fr;
  }
}

/* 詳細セクション */
.detail-section {
  padding: 80px 0;
}

.detail-section:nth-child(even) {
  background: #f8f9fa;
}

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

.detail-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
}

.detail-text h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.detail-text > p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 40px;
}

/* 詳細機能リスト */
.detail-features {
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 15px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

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

.feature-item i {
  font-size: 2rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.feature-text p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ヒントボックス */
.detail-tips {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  border-left: 4px solid var(--accent-color);
  margin-bottom: 40px;
}

.detail-tips h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.detail-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-tips li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
}

.detail-tips li::before {
  content: '✓';
  color: var(--primary-color);
  margin-right: 10px;
}

/* アフィリエイト商品 */
.affiliate-products {
  margin-top: 40px;
}

.affiliate-products h4 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.affiliate-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.affiliate-image {
  position: relative;
  padding-top: 75%;
}

.affiliate-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.affiliate-info {
  padding: 20px;
}

.affiliate-info h5 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.affiliate-price {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.affiliate-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.affiliate-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: var(--primary-color);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.affiliate-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

/* 詳細画像 */
.detail-image {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3のアスペクト比（3/4 = 0.75 = 75%） */
  min-height: 0; /* min-heightを削除 */
}

.detail-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

/* 専門家アドバイスセクション */
.transportation-backup-page .expert-advice {
  padding: 80px 0;
  background: #f8f9fa;
}

.transportation-backup-page .expert-advice h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--secondary-color);
}

.transportation-backup-page .expert-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

.transportation-backup-page .expert-profile {
  text-align: center;
}

.transportation-backup-page .expert-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
  margin-bottom: 20px;
}

.transportation-backup-page .expert-info h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.transportation-backup-page .expert-info p {
  font-size: 0.9rem;
  color: #666;
}

.transportation-backup-page .expert-quote {
  background: white;
  padding: 30px;
  border-radius: 15px;
  border-left: 4px solid var(--accent-color);
}

.transportation-backup-page .expert-quote p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin: 0;
  font-style: italic;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .detail-content {
    grid-template-columns: 1fr;
  }
  
  .detail-image {
    padding-top: 75%; /* 4:3のアスペクト比を維持 */
  }
}

@media (max-width: 768px) {
  .detail-text h2 {
    font-size: 2rem;
  }
  
  .affiliate-grid {
    grid-template-columns: 1fr;
  }
  
  .detail-image {
    padding-top: 75%; /* 4:3のアスペクト比を維持 */
  }
}

@media (max-width: 480px) {
  .detail-text h2 {
    font-size: 1.8rem;
  }
  
  .feature-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
} 