/*
Theme Name: MEDIA Magazine
Description: A magazine-style WordPress theme inspired by MEDIA magazine layout - デザインカンプ完全準拠版
Version: 2.0.0
Author: MEDIA Team
Text Domain: brutus-theme
Requires at least: 6.0
Requires PHP: 7.4
*/


/* ───────────────────────────────────────────
   Reset and Base Styles
──────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ───────────────────────────────────────────
   Ticker Bar
──────────────────────────────────────────── */
.ticker {
  width: 100%;
  background: #333;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.9rem;
  line-height: 2rem;
  position: relative;
  z-index: 20;
}

.ticker-wrap {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  display: inline-block;
  margin-right: 4rem;
}

.ticker:hover .ticker-wrap {
  animation-play-state: paused;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ───────────────────────────────────────────
   Header - デザインカンプ準拠
──────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  z-index: 15;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2rem;
}

.logo {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: #333;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

.btn-search,
.btn-menu {
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  padding: 8px;
  transition: color 0.2s ease;
  font-size: 1.2rem;
}

.btn-search:hover,
.btn-menu:hover {
  color: #f4a261;
}

/* Navigation Menu */
.main-navigation {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  display: none;
  z-index: 10;
}

.main-navigation.active {
  display: block;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  display: block;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: #f4a261;
}

/* Mobile Search Form */
.mobile-search-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.search-input-group {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.search-submit {
  background: #f4a261;
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-submit:hover {
  background: #e09142;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-overlay.active {
  display: flex;
}

.search-overlay-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 600px;
  width: 90%;
  position: relative;
}

.search-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.search-input-wrapper {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.search-input-overlay {
  flex: 1;
  padding: 1rem;
  border: 2px solid #f4a261;
  border-radius: 0.5rem;
  font-size: 1.125rem;
}

.search-submit-overlay {
  background: #f4a261;
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.125rem;
}

.search-suggestions h3 {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.125rem;
}

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.keyword-tag {
  background: #f3f4f6;
  color: #374151;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
}

.keyword-tag:hover {
  background: #e5e7eb;
}

/* ───────────────────────────────────────────
   Hero Section (First View)
──────────────────────────────────────────── */
.hero-firstview {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.pexels.com/photos/1640777/pexels-photo-1640777.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop') center/cover no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%);
}

.hero-content {
  position: absolute;
  bottom: 80px;
  left: 60px;
  color: #fff;
  max-width: 480px;
  line-height: 1.4;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.hero-content .eyelash {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  opacity: 0.9;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 400;
  line-height: 1.3;
}

.meta {
  font-size: 0.9rem;
  opacity: 0.8;
  letter-spacing: 1px;
}

.pagination {
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.8;
  font-family: monospace;
}

.scroll-hint {
  position: absolute;
  bottom: 50px;
  right: 60px;
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.8;
  letter-spacing: 1px;
  z-index: 5;
}

.hero-slide{
  position:absolute; inset:0;
  opacity:0; transition:opacity .8s ease;
  z-index:1;
}
.hero-slide.is-active{ opacity:1; z-index:2; }

/* Trip Cards — 3 枚をまったく同じサイズで横並び（コピペ用） */
.trip-stack {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 3;

  /* 3 枚を横一列に並べる */
  display: flex;
  flex-direction: row-reverse;   /* 1→2→3 を右から左へ */
}

/* すべてのカードを完全に同サイズ固定 */
.trip-card {
  position: relative;            /* 重ならないよう relative */
  width: 140px;                  /* 横幅固定 */
  height: 400px;                 /* 高さ固定 */
  flex: 0 0 140px;               /* Flex で伸縮させない */
  padding: 20px;

  color: #fff;
  font-size: 0.85rem;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  opacity: 0.8;
  cursor: pointer;

  writing-mode: vertical-rl;
  text-orientation: mixed;

  /* 旧 CSS の scale / translate を完全リセット */
  transform: none !important;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.trip-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 60%);
}

.trip-card .trip-time,
.trip-card p {
  position: relative;
  z-index: 2;
}

.trip-card .trip-time {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-bottom: 12px;
}

/* 個別カード ― 背景画像＆z-index だけ指定（サイズ・transform 変更しない） */
.trip-card--1 {
  z-index: 6;
  background-image: url('https://images.pexels.com/photos/1903702/pexels-photo-1903702.jpeg?auto=compress&cs=tinysrgb&w=300&h=600&fit=crop');
}

.trip-card--2 {
  z-index: 5;
  background-image: url('https://images.pexels.com/photos/1640777/pexels-photo-1640777.jpeg?auto=compress&cs=tinysrgb&w=300&h=600&fit=crop');
}

.trip-card--3 {
  z-index: 4;
  background-image: url('https://images.pexels.com/photos/995765/pexels-photo-995765.jpeg?auto=compress&cs=tinysrgb&w=300&h=600&fit=crop');
}

/* 共通ホバー効果（全カード同じ倍率） */
.trip-card:hover {
  opacity: 1;
  transform: scale(1.05);
}



/* ───────────────────────────────────────────
   Section Base Styles
──────────────────────────────────────────── */
section {
  padding: 4rem 0;
}

h2 {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  color: #111827;
  margin-bottom: 3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* ───────────────────────────────────────────
   TOP NEWS Section - /* FEATURE SLIDER CSS */
──────────────────────────────────────────── */
.feature-slider {
  padding: 60px 20px;
  background: #f9f9f9;
}

.slider-container.swiper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Swiper wrapper */
.slides-wrapper.swiper-wrapper {
  display: flex;      /* アニメーションは Swiper 側で制御 */
}

/* 各スライド */
.slide.swiper-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px;
  padding: 20px 0;
}

/* カード本体 */
.feature-card {
  background: #fff;
  display: flex;
  gap: 20px;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.feature-card a {
  display: flex;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

/* サムネイル */
.feature-thumb      { flex: 0 0 180px; }
.feature-thumb img  {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
}

/* テキスト部分 */
.feature-body         { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.feature-category     { font-size: 12px; color: #999; margin-bottom: 6px; text-transform: uppercase; }
.feature-title        { font-size: 18px; font-weight: bold; margin-bottom: 10px; }
.feature-excerpt      { font-size: 14px; color: #333; margin-bottom: 12px; }
.feature-author       { font-size: 12px; font-weight: bold; color: #666; }

/* ナビゲーション表示部 */
.slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}

/* Prev / Next ボタン */
.slider-nav button,
.slider-nav .prev,
.slider-nav .next {
  width: 36px;
  height: 36px;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
  font-size: 16px;
  font-weight: bold;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}
.slider-nav button:hover,
.slider-nav .prev:hover,
.slider-nav .next:hover {
  background: #000;
  color: #fff;
}

/* ───────────────────────────────────────────
   NEW ARTICLES Section - 4列×2行レイアウト（画像上、テキスト下）
──────────────────────────────────────────── */
.new-articles-section {
  background: #fff;
  padding: 4rem 0;
}

.new-articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 1200px) {
  .new-articles-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .new-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .new-articles-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, 1fr);
  }
}

.new-article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.new-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.new-article-card .article-image-container {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.new-article-card .article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.new-article-card:hover .article-image {
  transform: scale(1.05);
}

.new-article-card .article-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.new-article-card .article-meta-top {
  margin-bottom: 0.75rem;
}

.new-article-card .read-time {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.new-article-card .read-time svg {
  width: 1rem;
  height: 1rem;
}

.new-article-card .article-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.new-article-card:hover .article-title {
  color: #ea580c;
}

.new-article-card .article-meta-bottom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #666;
  margin-top: auto;
}

.new-article-card .article-category {
  background-color: #333;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* Load More Button */
.load-more-section {
  text-align: center;
  margin-top: 3rem;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  background-color: transparent;
  border: 1px solid #d1d5db;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.load-more-btn:hover {
  color: white;
  background-color: #111827;
  border-color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ───────────────────────────────────────────
   WHERE TO GO Section - 正円画像完全修正
──────────────────────────────────────────── */
.where-to-go-section {
  background: #fff;
  padding: 4rem 0;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #f3f4f6;
  color: #374151;
}

.filter-btn:hover {
  background-color: #e5e7eb;
}

.filter-btn.active {
  background-color: #dc2626 !important;
  color: white !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.places-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .places-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .places-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .places-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.place-item {
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.place-item:hover {
  transform: translateY(-4px);
}

.place-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* 正円画像の完全修正 */
.place-image {
  width: 100%;
  aspect-ratio: 1 / 1; /* 正円を保証 */
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  display: block; /* ブロック要素として表示 */
}

.place-item:hover .place-image {
  transform: scale(1.05);
}

.place-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.place-item:hover .place-name {
  color: #ea580c;
}

/* ───────────────────────────────────────────
   FEATURES Section - Carousel
──────────────────────────────────────────── */
.features-section {
  background: #fff;
  padding: 4rem 0;
}

.features-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
}

.features-carousel .carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.features-carousel .carousel-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.features-carousel .carousel-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  min-height: 500px;
}

.features-carousel .slide-content {
  width: 50%;
  padding: 3rem;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.features-carousel .slide-content h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.features-carousel .slide-content .subtitle-main {
  font-size: 1.25rem;
  color: #111827;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.features-carousel .slide-content .subtitle-sub {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 400;
}

.features-carousel .slide-image {
  width: 50%;
  height: 500px;
  overflow: hidden;
}

.features-carousel .slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features-carousel .carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e5e7eb;
  color: #6b7280;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-carousel .carousel-control:hover {
  background: white;
  color: #374151;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.features-carousel .carousel-control.prev {
  left: -24px;
}

.features-carousel .carousel-control.next {
  right: -24px;
}

.features-carousel .carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.features-carousel .indicator {
  width: 40px;
  height: 2px;
  background-color: #e5e7eb;
  border-radius: 1px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.features-carousel .indicator.active {
  background-color: #374151;
}

/* FEATURES: スライドをオーバーレイの基準にする */
.features-carousel .carousel-slide {
  position: relative;
}

/* クリック用オーバーレイ（全面クリック & ホバーで可視化） */
.features-carousel .carousel-slide .card-link-overlay {
  position: absolute;
  inset: 0;
  display: block;
  /* コントロールボタン(z-index:10)より下にして、ボタンを押せるようにする */
  z-index: 9;
  background: transparent;
  transition: background .2s ease;
  cursor: pointer;
}

/* ホバー時に薄い黒ベールをかける（好みに応じて数値調整） */
.features-carousel .carousel-slide:hover .card-link-overlay {
  background: rgba(0,0,0,.08);
}

/* キーボード操作でもフォーカスが見えるように */
.features-carousel .carousel-slide .card-link-overlay:focus-visible {
  outline: 3px solid #000;
  outline-offset: -3px;
}

/* ───────────────────────────────────────────
   KEYWORDS Section
──────────────────────────────────────────── */
.keywords-section {
  background: #fff;
  padding: 4rem 0;
}

.keywords-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .keywords-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .keywords-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .keywords-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.keyword-item {
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.keyword-item:hover {
  transform: translateY(-4px);
}

.keyword-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.keyword-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}

.keyword-item:hover .keyword-image {
  transform: scale(1.05);
}

.keyword-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  transition: color 0.2s ease;
}

.keyword-item:hover .keyword-name {
  color: #ea580c;
}

/* ───────────────────────────────────────────
   TRENDING Section - 2x3 Grid Layout（画像左、テキスト右）
──────────────────────────────────────────── */
.trending-section {
  background: #f9fafb;
  padding: 4rem 0;
}

.trending-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.trending-intro p {
  color: #6b7280;
  max-width: 42rem;
  margin: 0 auto;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 1024px) {
  .trending-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .trending-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
  }
}

.trending-card {
  background: white !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  min-height: 280px;
  position: relative;
}

.trending-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.trending-card .trending-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.trending-card .trending-badge span {
  width: 2rem;
  height: 2rem;
  background: #fbbf24;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.trending-card .trending-image-section {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
}

.trending-card .trending-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.trending-card .trending-text-section {
  width: 50%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.trending-card .trending-read-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.trending-card .trending-read-time svg {
  width: 1rem;
  height: 1rem;
}

.trending-card .trending-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.5;
  margin-bottom: 1rem;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-card:hover .trending-title {
  color: #ea580c;
}

.trending-card .trending-country {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.trending-card .trending-country .country-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #ef4444;
  border-radius: 50%;
}

.trending-card .trending-country .country-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}

.trending-card .trending-meta {
  font-size: 0.75rem;
  color: #6b7280;
}

.trending-load-more {
  text-align: center;
  margin-top: 3rem;
}

.trending-load-more button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 50px;
  background: white;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.trending-load-more button:hover {
  background: #111827;
  color: white;
  border-color: #111827;
}

.trending-load-more .load-more-icon {
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ───────────────────────────────────────────
   ON THIS DAY Section
──────────────────────────────────────────── */
.on-this-day-section {
  background: #fff;
  padding: 4rem 0;
}

.on-this-day-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .on-this-day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.day-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 400px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.day-item:hover {
  transform: scale(1.02);
}

.day-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.day-item:hover .day-image {
  transform: scale(1.05);
}

.day-item.historical .day-image {
  filter: grayscale(100%);
}

.day-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  transition: background 0.3s ease;
}

.day-item:hover .day-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.day-date {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: monospace;
}

.day-content {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  color: white;
}

.day-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.day-subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ───────────────────────────────────────────
   MAGAZINES Section
──────────────────────────────────────────── */
.magazines-section {
  background: #fff;
  padding: 4rem 0;
}

.magazines-carousel {
  position: relative;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.9);
  color: #374151;
  padding: 0.5rem;
  border-radius: 50%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-nav:hover {
  background: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.carousel-nav.prev {
  left: 0;
}

.carousel-nav.next {
  right: 0;
}

.magazine-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.magazine-track::-webkit-scrollbar {
  display: none;
}

.magazine-item {
  flex-shrink: 0;
  width: 200px;
  scroll-snap-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.magazine-item:hover {
  transform: translateY(-4px);
}

.magazine-cover {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.magazine-item:hover .magazine-cover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.magazine-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.magazine-item:hover .magazine-image {
  transform: scale(1.05);
}

.magazine-info {
  text-align: center;
}

.magazine-title {
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.magazine-item:hover .magazine-title {
  color: #ea580c;
}

.magazine-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

/* ───────────────────────────────────────────
   Article Detail Page Styles
──────────────────────────────────────────── */
.article-detail-page {
  min-height: 100vh;
  background: #fff;
}

.article-detail {
  background: #fff;
}

.article-title {
  font-weight: 400;
  color: #333;
  line-height: 1.3;
}

.article-meta {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1rem;
}

.article-meta .read-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.article-meta .read-time svg {
  width: 1rem;
  height: 1rem;
}

.article-content {
  color: #333;
  font-size: 1.125rem;
  line-height: 1.8;
}

.article-content h2 {
  color: #333;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
}

.article-content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.article-content figure {
  margin: 2rem 0;
}

.article-content figcaption {
  font-style: italic;
  color: #666;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.article-content section {
  margin-bottom: 3rem;
}

.gallery-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.comment-form {
  border: 1px solid #e0e0e0;
  background: #f9fafb;
}

.comment-input {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-input .avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-input textarea {
  flex: 1;
  min-height: 6rem;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.comment-input textarea:focus {
  outline: none;
  ring: 2px;
  ring-color: #ea580c;
  border-color: transparent;
}

.btn-submit {
  background: #111827;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

.btn-submit:hover {
  background: #374151;
}

.btn-submit svg {
  width: 1rem;
  height: 1rem;
}

.share-bar {
  background: #fbbf24;
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
}

.share-bar p {
  color: #111827;
  font-weight: 500;
  margin: 0;
}

.share-icons {
  display: flex;
  gap: 0.75rem;
}

.share-icons a {
  color: #111827;
  transition: all 0.2s ease;
}

.share-icons a:hover {
  transform: scale(1.1);
}

.share-icons svg {
  width: 1.25rem;
  height: 1.25rem;
}

.article-tags {
  margin: 2rem 0;
}

.article-tags h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111827;
}

.article-tags .flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-tags a {
  background: #f3f4f6;
  color: #374151;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.article-tags a:hover {
  background: #e5e7eb;
}

.author-info {
  background: #f9fafb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 2rem 0;
}

.author-info .flex {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-info img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
}

.author-info h3 {
  font-weight: 600;
  font-size: 1.125rem;
  color: #111827;
  margin: 0;
}

.author-info p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0.25rem 0 0 0;
}

.recommend {
  background: #f9fafb;
  padding: 4rem 0;
}

.recommend h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111827;
}

.rec-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rec-track::-webkit-scrollbar {
  display: none;
}

.rec-card {
  flex-shrink: 0;
  width: 12rem;
  scroll-snap-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rec-card:hover {
  transform: translateY(-4px);
}

.rec-card .relative {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.rec-card img {
  width: 100%;
  height: 8rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.rec-card p {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: #111827;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rec-card:hover p {
  color: #ea580c;
}

.related-posts {
  background: #fff;
  padding: 4rem 0;
}

.related-posts h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111827;
}

.related-posts .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.related-post {
  cursor: pointer;
  transition: all 0.3s ease;
}

.related-post:hover {
  transform: translateY(-4px);
}

.related-post .relative {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.related-post img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post:hover img {
  transform: scale(1.05);
}

.related-post h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.related-post:hover h3 {
  color: #ea580c;
}

.related-post .text-sm {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* ───────────────────────────────────────────
   Archive Page Styles
──────────────────────────────────────────── */
/* ── Archives ページ：全体レイアウト ── */
.archives-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1920px;
  margin: 30px 50px 0;
  padding: 0 24px;
}
.archives-main   { flex: 3; }
.archives-sidebar{ flex: 1; }

/* ── 記事リスト ── */
.archive-list {
  display: flex;
  flex-direction: column;
  padding: 0 15px;          /* 左右余白 */
}
.archive-item {
  display: flex;
  align-items: flex-start;
  padding: 40px 300px 40px 10px;
  border-bottom: 1px solid #eee;
}
.archive-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* サムネイル */
.archive-thumb {
  flex: 0 0 300px;           /* 横幅300px */
  aspect-ratio: 1 / 1;       /* 正方形 */
  margin-right: 24px;
  overflow: hidden;
}
.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* コンテンツ */
.archive-content {
  flex: 1;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.archive-title {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
  color: #222;
  margin: 0 0 8px;
  text-align: left;
}
.archive-meta {
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 16px;
}
.archive-meta .archive-cat a { color: inherit; text-decoration: none; }
.archive-meta time           { display: block; }

/* ── ページネーション ── */
.archive-pagination { margin-top: 40px; text-align: center; }
.archive-pagination .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 4px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
}
.archive-pagination .current {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* ── サイドバー：おすすめ記事一覧 ── */
.sidebar__recommend               { margin-bottom: 32px; }
.sidebar__recommend .widget-title {
  font-size: 16px;
  margin-bottom: 16px;
  border-bottom: 2px solid #333;
  padding-bottom: 8px;
}
.sidebar__recommend-list { list-style: none; margin: 0; padding: 0; }
.sidebar__recommend-item {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.sidebar__recommend-thumb {
  flex: 0 0 60px;
  height: 60px;
  margin-right: 12px;
  overflow: hidden;
}
.sidebar__recommend-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sidebar__recommend-body { flex: 1; }
.sidebar__recommend-title {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: #222;
  margin-bottom: 4px;
  text-decoration: none;
}
.sidebar__recommend-title:hover { text-decoration: underline; }
.sidebar__recommend-meta        { font-size: 12px; color: #999; }

/* ── サイドバー カルーセル：500×500px 固定 ── */
/* 1. Make the carousel width responsive and prevent overflow */
.sidebar__carousel {
  width: 100%;                   /* full width of sidebar */
  max-width: 100%;               /* don’t exceed parent */
  height: auto;                  /* allow intrinsic height */
  aspect-ratio: 1 / 1;           /* keep square images on any width */
  margin: 0 auto 32px;           /* keep existing spacing */
}

/* 2. Ensure inner elements stretch correctly */
.sidebar__carousel .swiper-wrapper,
.sidebar__carousel .swiper-slide {
  height: 100%;
}

.sidebar__carousel .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;             /* cover without distortion */
  display: block;
}

/* 3. Tweak nav buttons (slightly smaller & consistent gap) */
.sidebar__carousel-nav {
  gap: 8px;
}

.sidebar__carousel-nav button {
  padding: 6px 12px;
  font-size: 12px;
}

/* 4. Responsive fallback for very narrow screens */
@media (max-width: 768px) {
  .sidebar__carousel {
    aspect-ratio: 1 / 1;         /* square thumbnail on mobile */
  }
}
/* ナビゲーションボタン */
.sidebar__carousel-nav {
  text-align: center;
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.sidebar__carousel-nav button {
  padding: 8px 16px;
  font-size: 14px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.sidebar__carousel-nav button:hover{ background: #555; }

/* サイドバー Google 広告 */
.sidebar__ad {
  margin-top: 32px;
  text-align: center;
}


/* ───────────────────────────────────────────
   Footer Styles - デザインカンプ準拠
──────────────────────────────────────────── */
.site-footer {
  background: #f9fafb;
  color: #374151;
  margin-top: 4rem;
}

.footer-widgets {
  background: #f9fafb;
  padding: 3rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-widget-area {
  /* Widget area styles */
}

.footer-widget-title {
  color: #111827;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.875rem;
}

.footer-menu a:hover {
  color: #111827;
}

/* Decorative Text */
.footer-decorative {
  background: #f3f4f6;
  padding: 2rem 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  overflow: hidden;
}

.decorative-text {
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
  color: #e5e7eb;
  letter-spacing: 0.1em;
  user-select: none;
}

@media (max-width: 768px) {
  .decorative-text {
    font-size: 2.5rem;
  }
}

/* Bottom Footer */
.footer-bottom {
  background: #fff;
  padding: 1.5rem 0;
  border-top: 1px solid #e5e7eb;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}

.copyright {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: #6b7280;
  font-size: 1.25rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-link:hover {
  color: #111827;
  transform: scale(1.1);
}

/* ───────────────────────────────────────────
   Utility Classes
──────────────────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ───────────────────────────────────────────
   Focus and Accessibility
──────────────────────────────────────────── */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

/* ───────────────────────────────────────────
   Loading States
──────────────────────────────────────────── */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #f59e0b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ───────────────────────────────────────────
   Responsive Design
──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-content {
    left: 1.5rem;
    bottom: 3.75rem;
    max-width: calc(100% - 3rem);
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .trip-stack {
    display: none;
  }
  
  .scroll-hint {
    right: 1.5rem;
    bottom: 1.875rem;
  }
  
  .header-container {
    padding: 1rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  section {
    padding: 2rem 0;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .day-item {
    height: 250px;
  }

  .load-more-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* Features Carousel Mobile */
  .features-carousel {
    padding: 0 1rem;
  }
  
  .features-carousel .carousel-slide {
    flex-direction: column;
    text-align: center;
  }
  
  .features-carousel .slide-content,
  .features-carousel .slide-image {
    width: 100%;
  }
  
  .features-carousel .slide-content {
    padding: 2rem 1rem;
  }
  
  .features-carousel .slide-image {
    height: 300px;
  }
  
  .features-carousel .carousel-control {
    display: none;
  }

  /* Trending Cards Mobile */
  .trending-card {
    flex-direction: column !important;
    min-height: 200px !important;
  }
  
  .trending-card .trending-image-section,
  .trending-card .trending-text-section {
    width: 100% !important;
  }
  
  .trending-card .trending-image {
    height: 150px !important;
  }

  /* Article Detail Mobile */
  .article-detail .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .article-title {
    font-size: 1.75rem;
  }

  .hero-images {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .comment-input {
    flex-direction: column;
    gap: 1rem;
  }

  .share-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .related-posts .grid {
    grid-template-columns: 1fr;
  }

  /* Navigation Mobile */
  .nav-menu {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }

  .features-carousel .slide-content h3 {
    font-size: 2rem;
  }
  
  .features-carousel .slide-content {
    padding: 1.5rem 0.75rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-content {
    font-size: 1rem;
  }

  .article-content h2 {
    font-size: 1.25rem;
  }

  .decorative-text {
    font-size: 2rem;
  }
}

/* 全面クリック用オーバーレイ ─ カード内最前面に敷く */
.card-link-overlay{
  position:absolute;
  inset:0;       /* top/right/bottom/left をすべて 0 に */
  z-index:10;    /* カード内どの要素よりも前面 */
}

/* Tag Search Section */
.tag-search-section .keyword-tag{
  background:#f3f4f6;color:#374151;padding:0.5rem 1.25rem;
  border-radius:9999px;font-size:0.875rem;transition:background .2s;
}
.tag-search-section .keyword-tag:hover{background:#e5e7eb;}
/* ─────────────────────────────────────
   Trip Cards – first-view 拡張
───────────────────────────────────── */

/* 横並びコンテナ（既存 .trip-stack を flex 化済み想定） */
.trip-stack {
  display: flex !important;
  flex-direction: row-reverse;
}

/* 共通サイズ & 上部カット（クリップ）*/
.trip-card {
  position: relative !important;
  flex: 0 0 80px;
/*   width: 100px; */
  height: 100vh;
  transform: none !important;        /* 旧 scale を打ち消し */
  transition: transform .4s ease, opacity .3s ease;
}

/* 時計アイコンの針を 60 s で 1 周 */
.clock-icon {
  margin-right: 6px;
  animation: rotate-hand 60s linear infinite;
}

@keyframes rotate-hand {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Hero と同期して差し替える際の “ページめくり” */
.trip-card.page-turn {
  animation: pageTurn .6s ease;
  transform-origin: left center;
}

@keyframes pageTurn {
  0%   { transform: rotateY(0deg);     }
  40%  { transform: rotateY(-90deg);   }
  60%  { transform: rotateY(-90deg);   }
  100% { transform: rotateY(0deg);     }
}
/* ────────────────────────────────
   Breadcrumbs
───────────────────────────────── */
.breadcrumbs {
  font-size: 0.875rem;
  margin: 1rem 0 2rem;
}
.breadcrumbs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.breadcrumbs .breadcrumb-item {
  display: flex;
  align-items: center;
}
.breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  content: "›";                /* 区切りを矢印に */
  margin: 0 0.5rem;
  color: #9ca3af;              /* グレー */
}
.breadcrumbs a {
  color: #374151;
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumbs a:hover {
  color: #ea580c;              /* 既存アクセントカラー */
}
.breadcrumbs .current {
  color: #6b7280;              /* 少し淡色で現在位置を示す */
}
/* =========================================================
  COMPLETE RESPONSIVE ADD-ON (append to end of style.css)
  – covers: header/search, hero, feature-slider, features-carousel,
            new-articles, keywords, where-to-go, trending,
            magazines-carousel, archives/search/tag, single, sidebar, footer
========================================================= */

/* ===== Viewport ≥1440px (large desktop) ===== */
@media (min-width: 1440px) {
  .header-container,
  .footer-container { max-width: 1280px; margin: 0 auto; }
  .features-carousel .slide-content { padding: 3.25rem; }
  .feature-slider .slides-wrapper { gap: 28px; }
}

/* ===== Viewport ≤1280px (laptop) ===== */
@media (max-width: 1280px) {
  .hero-firstview { height: 88vh; }

  /* Top News(Feature slider) */
  .feature-slider .slide.swiper-slide { grid-template-columns: 1fr 1fr; gap: 20px; }
  .feature-slider .feature-thumb { min-height: 220px; }

  /* FEATURES (2カラム比率維持) */
  .features-carousel .slide-image { height: 460px; }
  .features-carousel .slide-content { padding: 2.25rem; }

  /* WHERE TO GO / KEYWORDS */
  .places-grid   { grid-template-columns: repeat(4, 1fr); }
  .keywords-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Viewport ≤1024px (tablet landscape) ===== */
@media (max-width: 1024px) {
  /* Header nav becomes fixed panel under header */
  .main-navigation {
    position: fixed; top: 64px; left: 0; right: 0;
    max-height: calc(100vh - 64px); overflow: auto;
    border-bottom: 1px solid #e5e7eb; background:#fff;
  }

  .hero-firstview { height: 78vh; }

  /* Feature slider: 1カラム（画像→本文） */
  .feature-slider .slide.swiper-slide { grid-template-columns: 1fr; }
  .feature-slider .feature-thumb { min-height: 260px; }

  /* FEATURES 縦積み */
  .features-carousel .carousel-slide { flex-direction: column; }
  .features-carousel .slide-image { width: 100%; height: 360px; }
  .features-carousel .slide-content { width: 100%; padding: 1.75rem; }

  /* Lists & cards */
  .new-articles-grid { grid-template-columns: repeat(2, 1fr); }
  .trending-grid     { grid-template-columns: 1fr; row-gap: 1rem; }
  .on-this-day-grid  { grid-template-columns: 1fr; }

  /* WHERE TO GO / KEYWORDS */
  .places-grid   { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
  .keywords-grid { grid-template-columns: repeat(3, 1fr); gap: .75rem; }

  /* MAGAZINES */
  .magazines-carousel .magazine-figure { height: 320px; }

  /* Archives/Search/Tag layout */
  .archives-container { flex-direction: column; gap: 28px; margin: 24px 16px 0; }
  .archive-list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .archives-sidebar { width: 100%; order: 2; }
  .archive-pagination ul { justify-content: center; }
  
  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ===== Viewport ≤768px (tablet portrait / big phones) ===== */
@media (max-width: 768px) {
  .header-container { padding: 12px 16px; }
  .hero-content { left: 1rem; right: 1rem; bottom: 2rem; max-width: none; }
  .hero-title { font-size: 1.5rem; line-height: 1.25; }
  .scroll-hint { right: 1rem; bottom: 1.5rem; }

  /* Feature slider spacing */
  .feature-slider .slides-wrapper { gap: 16px; }

  /* HERO・cards images height */
  .new-article-card .article-image-container { height: 160px; }
  .trending-card     .trending-image        { height: 160px; }
  .features-carousel .slide-image           { height: 300px; }

  /* WHERE TO GO / KEYWORDS */
  .places-grid   { grid-template-columns: repeat(2, 1fr); }
  .keywords-grid { grid-template-columns: repeat(2, 1fr); }

  /* MAGAZINES */
  .magazines-carousel .magazine-figure { height: 260px; }

  /* Archives/Search/Tag */
  .archive-list { grid-template-columns: 1fr; }
  .archive-item { grid-template-columns: 120px 1fr; gap: 14px; }
  .archive-thumb img { height: 100%; object-fit: cover; }

  /* Single – share bar & comments spacing */
  .share-bar { flex-wrap: wrap; gap: .75rem; }
  .comment-input textarea { min-height: 160px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Viewport ≤560px (phones) ===== */
@media (max-width: 560px) {
  .logo { font-size: 1.5rem; }
  .hero-firstview { height: 64vh; }
  .hero-title { font-size: 1.25rem; }

  /* Top News texts */
  .feature-title { font-size: 1rem; }
  .feature-excerpt { font-size: .875rem; }

  /* Lists & controls */
  .load-more-btn { width: 100%; justify-content: center; }
  .carousel-nav { width: 42px; height: 42px; }

  /* Single page typography */
  .article-title { font-size: 1.625rem; }
  .article-meta  { gap: .5rem; }
}

/* ===== Viewport ≤420px (small phones) ===== */
@media (max-width: 420px) {
  .header-container { padding: 10px .75rem; }
  .container { padding-left: .75rem; padding-right: .75rem; }
  section { padding: 2rem 0; }

  .hero-firstview { height: 58vh; }
  .features-carousel .slide-image { height: 260px; }

  .archive-item { grid-template-columns: 100px 1fr; }
}

/* ========== Accessibility & UX polish (unified) ========== */
/* Make whole cards clickable (if <a> is direct child) */
.feature-card > a,
.new-article-card > a,
.trending-card > a,
.magazine-item > a,
.archive-item > a { display:block; position:relative; z-index:1; text-decoration:none; color:inherit; }

/* Keyboard focus */
.feature-card:focus-within,
.new-article-card:focus-within,
.trending-card:focus-within,
.magazine-item:focus-within,
.archive-item:focus-within { outline:2px solid #f59e0b; outline-offset:4px; }

/* Hover elevation */
.feature-card:hover,
.new-article-card:hover,
.trending-card:hover,
.magazine-item:hover,
.archive-item:hover { box-shadow:0 10px 30px rgba(0,0,0,.15); transform: translateY(-2px); }

/* Prevent overlays from blocking taps */
.features-carousel .slide-image::after,
.feature-slider .feature-thumb::after { pointer-events:none; }

/* Header: search overlay spacing on small screens */
@media (max-width: 768px) {
  .search-overlay .search-overlay-content { padding: 2rem 1rem; }
  .search-input-wrapper { gap: .5rem; }
  .search-submit-overlay { padding: .875rem 1.25rem; }
}

/* Sidebar blocks */
@media (max-width: 1024px) {
  .sidebar__carousel .sidebar__carousel-slide { height: 200px; }
  .sidebar__recommend-list { gap: 12px; }
  .sidebar__recommend-item { gap: 10px; align-items: flex-start; }
}

/* Breadcrumbs: keep single line on mobile when possible */
@media (max-width: 560px) {
  .breadcrumbs { row-gap: 4px; }
}

/* Magazines carousel track snapping on narrow screens */
@media (max-width: 768px) {
  .magazines-carousel .magazine-track { scroll-snap-type:x mandatory; }
  .magazines-carousel .magazine-item  { scroll-snap-align:start; min-width: 68%; }
}

/* Archives/Tag/Search – card image fallback */
.archive-thumb img { width:100%; height:100%; object-fit:cover; }

/* Tap targets for slider arrows */
.carousel-nav { min-width:44px; min-height:44px; }

/* Safety: hide trip-stack on mobile (if present) */
@media (max-width: 768px){ .trip-stack{ display:none; } }
