/* ===== 車種ページ専用CSS ===== */
/* ===== コース図モーダル関連CSS ===== */
.course-map-button-container {
  display: none;
  margin: 20px 0;
  text-align: center;
}

.course-map-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.course-map-button:hover {
  background: #c60011;
  transform: translateY(-2px);
}

.course-map-button .material-symbols-outlined {
  font-size: 20px;
}

.course-map-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.course-map-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 1000px;
  max-height: 90vh;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: courseMapModalSlideIn 0.3s ease-out;
}

@keyframes courseMapModalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.course-map-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-gray);
  background: var(--bg-gray);
}

.course-map-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.course-map-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-map-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.course-map-modal-close .material-symbols-outlined {
  font-size: 24px;
  color: var(--text-primary);
}

.course-map-modal-body {
  padding: 24px;
  text-align: center;
  max-height: calc(90vh - 80px);
  overflow: auto;
}

.course-map-image {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  border-radius: 8px;
   margin: 0 auto;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .course-map-modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .course-map-modal-header {
    padding: 16px 20px;
  }
  
  .course-map-modal-header h3 {
    font-size: 18px;
  }
  
  .course-map-modal-body {
    padding: 10px;
  }
  
  .course-map-button {
    padding: 10px 20px;
    font-size: 14px;
  }
}
/* CSS変数の定義 */
:root {
  --primary-red: #e70014;
  --secondary-brown: #1a1311;
  --text-primary: #130303;
  --text-secondary: #070203;
  --bg-white: #fff;
  --bg-gray: #f8f7f7;
  --bg-content: #ededed;
  --border-gray: #c9c9c9;
  --border-card: #cdcdcd;
  --accent-line-black: #1b0b0b;
  
  /* 車種カード変数 */
  --card-width-desktop: 185px;
  --card-height-desktop: 100px;
  --card-width-mobile: 189.744px;
  --card-height-mobile: 102.669px;
  --card-image-width-desktop: 138px;
  --card-image-height-desktop: 64px;
  --card-image-width-mobile: 141.538px;
  --card-image-height-mobile: 65.641px;
}

body {
  background: var(--bg-white);
}

body:before {
 /* width: calc(100% - 260px);
  left: 260px;*/
  opacity: .5;
    width: calc(100% - 0px);
    left: 0px;
}
body.newsPage:before {
  width: 100%;
  left: 0px;
  opacity: .5;
}

body.newsPage.newsTop {
  background-color: var(--bg-light);
}

/* ===== レイアウト基本構造 ===== */
.gamemode-container,
.vehicles-container {
  display: flex;
  min-height: calc(100vh - 200px);
  padding-top: 40px;
}

/* ===== サイドバーメニュー ===== */
.sidebar {
  width: 260px;
 /* background: var(--bg-white);*/
  position: sticky;
  left: 0;
  top: 150.9px;
  flex-shrink: 0;
  height: fit-content;
}

/* 統合されたサイドバーメニュースタイル */
.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-menu li {
  position: relative;
  /*background: var(--bg-white);*/
  transition: background-color 0.3s ease;
}

.sidebar-menu a {
  display: block;
  color: var(--text-primary);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  z-index: 1;
  padding: 20px 27px;
  transition: color 0.3s ease;
}

/* リンクなし（プレースホルダー） */
.sidebar-menu li.sidebar-menu-no-link span {
  display: block;
  color: var(--text-primary);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 20px 27px;
  position: relative;
  z-index: 1;
  cursor: default;
  pointer-events: none;
}

/* アクティブ状態のスタイル */
.sidebar-menu li.active {
 /* background: var(--bg-white);*/
}

.sidebar-menu li.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 100%;
  background: var(--secondary-brown);
  z-index: 2;
}

.sidebar-menu li.active .menu-accent {
  background: var(--primary-red);
}

.sidebar-menu li.active a {
  color: var(--bg-white);
}

/* メニューアクセント */
.menu-accent {
  position: absolute;
  left: 0;
  top: 0;
  width: 260px;
  height: 100%;
  background: transparent;
  clip-path: polygon(0 0, 100% 0, calc(100% - 21px) 100%, 0 100%);
}

/* ===== メインコンテンツエリア ===== */
.main-content {
  flex: 1;
  padding: 0 50px;
}

.main-content .inner {
  max-width: 800px;
  margin: 0 auto;
}

.main-content .inner ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-content .inner li:before {
  content: "";
  display: inline-block;
  width: .5em;
  height: 4px;
  margin-right: .5em;
  background-color: #E70014;
  vertical-align: middle;
}

.main-content .inner li {
  text-indent: -1em;
  margin-left: 1em;
}

.main-content .inner p.note {
  font-size: 80%;
  text-align: right; margin-bottom: 20px; margin-top: -10px;
}

/* ===== ページタイトル ===== */
.page-title {
  text-align: center;
  padding: 48px 0 24px 0;
  background-color: #FFF;
  background-image: url("../img/title.svg");
  background-repeat: repeat-x;
  background-position: center bottom;
}

.page-title h1 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0px 0;
  display: inline-block;
    /*background: #FFF;*/ line-height: 1; padding: .4em;
}

.page-title .subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  color: var(--primary-red);
  letter-spacing: 1px;
}

/* ===== アクセントライン ===== */
.accent-lines {
  width: 100%;
  height: 11px;
  margin: 0;
}

.accent-line-red {
  width: 100%;
  height: 6px;
  background: var(--primary-red);
}

.accent-line-black {
  width: 100%;
  height: 5px;
  background: var(--text-primary);
}

/* ===== セクションタイトル ===== */
.section-title {
  position: relative;
  margin: 40px 0 30px 0;
}
.strong .section-title { text-align: left; padding: 0; margin: 0;margin: 40px 0 30px 0;}
.strong .section-title::after { display: none;}
.strong .location-summary,.strong .location-details,.strong .notes { padding-top: 0;}

.section-title h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-line-black);
}

/* ===== コンテンツテキスト ===== */
.content-text {
  font-family: 'Noto Sans JP', sans-serif;
  /*font-size: 16px;*/
  line-height: 2;
  color: var(--text-primary);
  margin: 30px 0;
}

.news-youtube {
  width: 100%;
  max-width: 800px;
  margin: 20px 0 30px;
  aspect-ratio: 16 / 9;
}

.news-youtube iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
}

/* ===== ゲーム画像 ===== */
.game-image {
  max-width: 100%;
  border-radius: 6px;
  margin: 30px 0;
  /*background: var(--bg-content);*/
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans JP', sans-serif;
  color: #666;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.game-image:hover {
  transform: translateY(-2px);
}

.game-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}

/* ===== チューニングセクション ===== */
.tuning-section {
  margin: 60px 0 40px 0;
}

.tuning-title {
  position: relative;
  display: flex;
  /*align-items: center;*/
    align-items: flex-start;
  margin-bottom: 20px;
}

.tuning-accent {
  display: flex;
  margin-right: 15px;
  transform: skewX(-20deg);
}

.tuning-accent-red {
  width: 4px;
  height: 23px;
  background: var(--primary-red);
  margin-right: 4px;
}

.tuning-accent-black {
  width: 4px;
  height: 23px;
  background: var(--secondary-brown);
}

.tuning-title h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0; line-height: 1.2;
}
.tuning-title h3 .new { display: inline-block; font-size: .6em; padding: .15em 1em; box-sizing: border-box; color: #fff; background-color: #E70014;  box-sizing: border-box; border-radius: .3em; margin-left: 1em; vertical-align: middle; font-weight: normal;  }


h4.content { font-size: 110%; margin-bottom: .4em;}
.content-box { padding-bottom: 2em;}

/* ===== モバイル対応（アコーディオンメニュー） ===== */
.mobile-menu-accordion {
  display: none;
  background: var(--bg-gray);
  padding: 20px 15px;
  /*margin-bottom: 20px;*/
  position: sticky;
  top: 70px;
  left: 0;
  z-index: 99; width: 100%; box-sizing: border-box;
}

.accordion-toggle {
  width: 100%;
  background: var(--bg-white);
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.accordion-toggle:hover {
  background: #f9f9f9;
}

.accordion-icon {
  font-size: 20px;
  color: var(--primary-red);
  transition: transform 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 10px; width: calc(100% - 30px); box-sizing: border-box; position: absolute;
}

.accordion-content.active {
  max-height: 300px;
}

/* モバイルでのスクロール対応 */
@media (max-width: 768px) {
  .accordion-content.active {
    max-height: 30vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 6px;
    border: 1px solid var(--border-gray);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); background-color: #FFF;
  }
 
}

.tuning-section {
  margin: 40px 0 20px 0;
}

/* ===== 車種リストページ専用スタイル ===== */
.vehicles-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px 0;
}



.vehicle-list-card {
  width: 390px;
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  /*border-radius: 6px;*/
  border-top-left-radius: 12px;
  border-bottom-right-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
  overflow: hidden;
  /*padding-bottom: 20px;*/ position: relative;
  box-shadow: 4px 4px 0 #B3B3B3;
  opacity: 0;
}
.vehicle-list-card.is-bg-loaded {
  opacity: 1;
}



.vehicles-list-grid .new { display: inline-block; font-size: .6em; padding: .15em 1em; box-sizing: border-box; color: #fff; background-color: #E70014;  box-sizing: border-box; border-radius: .3em; vertical-align: middle; position: absolute; top:10px; right: 10px;  }

.vehicle-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vehicle-list-card h4 {
  font-size: 20px;
  /*margin-bottom: 1em;*/
  margin-left: 30px;
  position: relative;
  color: #FFF;
  padding: .3em .5em;
  margin-top: .3em;
}
.vehicle-list-card h4 .h4 { position: relative;}

.vehicle-list-card h4 span { margin-left: .5em; display: inline-block;}

.vehicle-list-card h4:before {
  content: "";
  display: block;
  background-color: #000;
  height: 100%;
  position: absolute;
  top: 0;
  left: -1.5em;
  width: calc(100% + 1.5em);
  transform: skewX(-20deg);
  border-top-left-radius: .2em;
  border-bottom-right-radius: .2em;
}
.vehicle-list-card .tuning-title { padding-left: .8em;}

/* ===== 車種カードグリッド ===== */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.vehicle-card {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-top-left-radius: 12px;
   border-bottom-right-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  padding: 10px; position: relative;box-shadow: 4px 4px 0 #B3B3B3;
}
.vehicle-card .new { display: inline-block; font-size: .6em; padding: .15em 1em; box-sizing: border-box; color: #fff; background-color: #E70014;  box-sizing: border-box; border-radius: .3em; vertical-align: middle; position: absolute; top:10px; right:10px;  }

.vehicle-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* プレースホルダー用：遷移・ホバー演出を無効化 */
.vehicle-card--static,
.vehicle-card--static:hover {
  cursor: default;
  transform: none;
  box-shadow: 4px 4px 0 #B3B3B3;
  pointer-events: none;
}

.vehicle-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.vehicle-image {
  width: 100%;
  background: var(--bg-content);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 24px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; background-image: url("../models/img/bgA.jpg");
  
}
.vehicles-grid .vehicle-image {
  height: 70px;
  background: #fff;
  font-size: 2em;
  font-weight: 800;
}

@media (max-width: 768px) and  (min-width: 480px) {
    .vehicles-grid .vehicle-image { height: 100px; }
}

.vehicle-image-container .vehicle-image {
  aspect-ratio: 383 / 215;
    overflow: hidden;
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vehicle-list-card .vehicle-image img {
  object-position: 35% -30px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.vehicle-list-card .vehicle-image img.is-loaded {
  opacity: 1;
}
.vehicle-list-card.is-hatena .vehicle-image img.is-loaded {
  /* はてな（不明）カードは画像をグレースケール&完全に暗くする */
  filter: grayscale(100%) brightness(0);
}
.vehicle-list-card.is-hatena .vehicle-image {
  /* `::after` を中央配置するための基点 */
  position: relative;
}
.vehicle-list-card.is-hatena .vehicle-image::after {
  content: "?";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 800;
  font-size: 72px;
  z-index: 2;
  /* 背景に対して見やすくする */
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  pointer-events: none;
}
.vehicle-image-container .vehicle-image img {
  width: 1250%;
  height: 150%;
} 

/* Material Icons車アイコンのスタイル調整 */
.vehicle-image .material-symbols-outlined {
  font-size: 48px;
  color: #999;
}

/* 車種情報エリア */
.vehicle-info {
  padding: 29px 23px 23px 23px;
  height: calc(100% - 218px);
  display: flex;
  flex-direction: column;
}

/* 車種タイトルエリア */
.vehicle-title {
  margin-bottom: 29px;
  display: flex;
  align-items: flex-start;
}

.vehicle-accent {
  display: flex;
  margin-right: 14px;
  flex-shrink: 0;
  margin-top: 3px;
}

.vehicle-accent-red {
  width: 4px;
  height: 23px;
  background: var(--primary-red);
  margin-right: 4px;
}

.vehicle-accent-black {
  width: 4px;
  height: 23px;
  background: var(--secondary-brown);
}

.vehicle-title h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

/* 車種スペック */
.vehicle-specs {
  flex: 1;/*border:1px solid #666;*/ padding: 10px calc(10px + .5em); border-radius: .3em; font-size: 95%;
    /*background: #f3f3f3;*/
}

.spec-row {
  display: flex;
  padding: 10px 0;
  margin: 0;
  align-items: flex-start;

}

.spec-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding: 10px 0;
}

.spec-label {
  font-family: 'Noto Sans JP', sans-serif;
  /*font-size: 15px;*/
  font-weight: 700;
  color: var(--text-primary);
  width: 100px;
  flex-shrink: 0; margin-right: .5em;
  line-height: 1.2;width: auto; /*font-size: 70%;*/
}
.spec-label:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--primary-red);
  margin-right: 1em;
  vertical-align: middle;
  transform: skewX(-20deg);
}

.spec-value {
  font-family: 'Noto Sans JP', sans-serif;
  /*font-size: 14px;*/
  font-weight: 400;
  color: var(--text-primary);
  margin-left: 23px;
  line-height: 1.2;margin-left: 0;
}
/*@media (min-width: 769px){*/
  .vehicle-specs {
    display: flex;
    /*justify-content: space-between;*/  gap: 2em; }
  .spec-row{
    border: none; /*width: 48%;*/
     /*border-right: 1px solid #888;*/padding: 0; margin: 0; display: flex;
  }
  .spec-row:last-child { border: none; padding: 0;}
  .spec-label { width: auto;  /*font-size: 70%;*/}
  .spec-value {margin-left: 0;}
/*}*/

/* ===== コース詳細ページ専用スタイル ===== */

/* コース情報バッジ */
.course-badge {
  display: inline-block;
  margin: 0 0 0 10px;
  line-height: 1;
}

.course-badge span {
  display: inline-block;
  padding: 5px 20px;
  background: #e0e0e0;
  border-radius: 11px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--text-primary);
  font-weight: normal;
  vertical-align: middle;
}

/* コース説明テキスト */
.course-description {
  margin: 30px 0;
}

.course-description p {
  font-family: 'Noto Sans JP', sans-serif;
  /*font-size: 16px;*/
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
}

/* メイン画像ギャラリー */
.course-image-gallery {
  margin: 30px 0;
}

/* Swiper Thumbs Gallery スタイル */
.main-swiper {
  max-width: 800px;
  margin: 0 auto 30px auto;
  border-radius: 6px;
  overflow: hidden;
}

.main-swiper .swiper-slide {
  width: 100%;
  height: auto;
}

.main-swiper .main-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  display: block;
  background: var(--bg-content);
}

/* Swiperナビゲーションボタン */
.main-swiper .swiper-button-next,
.main-swiper .swiper-button-prev {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.main-swiper .swiper-button-next:hover,
.main-swiper .swiper-button-prev:hover {
  background: #f9f9f9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.main-swiper .swiper-button-next::after,
.main-swiper .swiper-button-prev::after {
  font-size: 20px;
  color: var(--text-primary);
  font-weight: bold;
}

/* メインスライダー用のカスタム矢印ナビゲーション */
.main-navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.main-button-prev,
.main-button-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-button-prev:hover,
.main-button-next:hover {
  background: rgba(255, 255, 255, 0.8);
}

.main-button-prev::after,
.main-button-next::after {
  font-family: swiper-icons;
  font-size: 20px;
  color: var(--text-primary);
  font-weight: normal;
}

.main-button-prev::after {
  content: 'prev';
}

.main-button-next::after {
  content: 'next';
}

/* サムネイルスライダー */
.thumbs-swiper {
  max-width: 85%;
  margin: 0 auto;
}

/* サムネイルスライダーコンテナ */
.thumbs-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* サムネイル用の矢印ナビゲーション */
.thumbs-navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.thumbs-button-prev,
.thumbs-button-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
}

.thumbs-button-prev:hover,
.thumbs-button-next:hover {
  background: #f9f9f9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.thumbs-button-prev::after,
.thumbs-button-next::after {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: bold;
}

.thumbs-swiper .swiper-slide {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  overflow: hidden; font-size: 90%;border: 4px solid transparent; box-sizing: border-box;
}
.thumbs-swiper .swiper-slide .thumb { height: calc( 94px - 1.2em);}
.thumbs-swiper .swiper-slide .num { background-color: #000; color: #FFF; text-align: center;
height:1.2em; line-height: 1.2em;}

.thumbs-swiper .thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;

  box-sizing: border-box;
  transition: all 0.3s ease;
}

.thumbs-swiper .swiper-slide:hover .thumbnail-image {
  transform: translateY(-2px);
  /*box-shadow: 0 4px 12px rgba(0,0,0,0.15);*/
}
.thumbs-swiper .swiper-slide-thumb-active {border-color: var(--primary-red);}


/* メイン画像表示エリア */
.main-image-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 30px auto;
  border-radius: 6px;
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  display: block;
  background: var(--bg-content);
}

/* ローディングインジケーター */
.image-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-content);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-loading.show {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* サムネイル画像カルーセル */
.thumbnail-carousel {
  display: flex;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  gap: 15px;
}

.carousel-nav {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav:hover {
  background: #f9f9f9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-nav.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-nav .material-symbols-outlined {
  font-size: 28px;
  color: var(--text-primary);
}

.thumbnail-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.thumbnail-track {
  display: flex;
  gap: 10px;
  transition: transform 0.3s ease;
}

.thumbnail {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  object-fit: cover;
  border: 4px solid transparent;
  box-sizing: border-box;
}

.thumbnail:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.thumbnail.active {
  border-color: var(--primary-red);
}

/* ===== コースページ専用スタイル ===== */

/* コースセクション */
.course-section {
  margin: 60px 0 40px 0;
}

/* コース画像コンテナ */
.course-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

/* コース画像 */
.course-image {
  width: 100%;
  background: var(--bg-content);
  border-radius: 6px;
  /*display: flex;*/
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 48px;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.course-image:hover {
  transform: translateY(-2px);
}
.course-image img { width: 100%;}

.course-image .material-symbols-outlined {
  font-size: 48px;
  color: #999;
}

/* コースコンテンツテキスト */
.course-content {
  margin: 30px 0;
}

.course-content p {
  font-family: 'Noto Sans JP', sans-serif;
  /*font-size: 16px;*/
  line-height: 2;
  color: var(--text-primary);
  margin: 0;
}

/* 詳細ボタン */
.detail-button-wrapper {
  display: flex;
  justify-content: flex-end;
  margin: 30px 0 0 0;
}

.detail-button {
  width: 167px;
  height: 40px;
  background: var(--primary-red);
  border: none;
  border-radius: 20px;
  color: var(--bg-white);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.detail-button:hover {
  background: #cc0012;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(231, 0, 20, 0.3);
}

.detail-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(231, 0, 20, 0.3);
}

/* ===== 車種カードモーダル ===== */

/* モーダルオーバーレイ */
.vehicle-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.vehicle-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* モーダル本体 */
.vehicle-modal {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-white);
  z-index: 10000;
  transition: bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
}

.vehicle-modal.active {
  bottom: 0;
}

/* モーダルヘッダー */
.vehicle-modal-header {
  position: relative;
  padding: 20px;
  border-bottom: 1px solid var(--border-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vehicle-modal-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* 閉じるボタン */
.vehicle-modal-close {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-white);
  cursor: pointer;
  position: relative;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}




.vehicle-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.vehicle-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* モーダルコンテンツ */
.vehicle-modal-content {
  padding: 20px;
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 768px) {
  body:before {
    width: 100%;
    left: 0px;
  }

  .vehicle-specs {padding: 10px calc(10px + .7em);}
  
  .gamemode-container,
  .vehicles-container {
    flex-direction: column;
    padding-top: 0;
  }
  
  .sidebar {
    display: none;
  }
  
  .mobile-menu-accordion {
    display: block;
  }
  
  /* モバイル用サイドバーメニューのスタイル */
  .sidebar-menu {
    background: var(--bg-white);
    
  }
  
  .sidebar-menu li {
    border-bottom: 1px solid #f0f0f0;
  }
  
  .sidebar-menu li:last-child {
    border-bottom: none;
  }
  
  .sidebar-menu li.active {
    background: var(--primary-red);
  }
  
  .sidebar-menu a {
    padding: 15px 20px;
    transition: color 0.3s ease;
  }

  .sidebar-menu li.sidebar-menu-no-link span {
    padding: 15px 20px;
  }
  
  .sidebar-menu li.active a {
    color: var(--bg-white);
  }
  
  .sidebar-menu li:hover a {
    color: var(--primary-red);
  }
  
  .sidebar-menu li.active:hover a {
    color: var(--bg-white);
  }
  
  .main-content {
    padding: 0 15px;
  }
  
  .page-title h1 {
    font-size: 26px;
  }
  .section-title {margin: 40px 0 15px 0;}
  .section-title h2 {
    font-size: 22px;
  }
  
  .game-image {
    width: 100%;
    height: auto; margin: 0 0 15px 0;
    /*aspect-ratio: 700 / 395;*/
  }
  
  .content-text {
    /*font-size: 16px;*/
    line-height: 1.8; margin-top: 0;
  }
  
  /* 車種カードのモバイル対応 */
  .vehicles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
  }
  
  .vehicle-card {
    width: 100%;
    max-width: 399px;
    margin: 0 auto;
  }
 
  
  /* 車種リストページのモバイル対応 */
  .vehicles-list-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 30px 0;
  }
  
  .vehicle-list-card {
    width: 100%;
    max-width: 399px;
    margin: 0 auto; padding-bottom: 23px;
  }
  
  .vehicle-info {
    padding: 23px 23px 0px 23px;
  }
  
  /* コースページのモバイル対応 */
  .course-images {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .course-content p {
    /*font-size: 16px;*/
    line-height: 1.8;
  }
  
  /* コース詳細のモバイル対応 */
  .main-image-container {
    max-width: 400px;
  }
  
  .main-image {
    max-height: 300px;
  }
  
  .thumbnail-carousel {
    max-width: 400px;
    gap: 10px;
  }
  
  .carousel-nav {
    width: 50px;
    height: 50px;
  }
  
  .carousel-nav .material-symbols-outlined {
    font-size: 24px;
  }
  
  .thumbnail {
    width: 80px;
    height: 80px;
  }
  
  .thumbnail-track {
    gap: 8px;
  }
  
  /* サムネイルスライダーのモバイル対応 */
  .thumbs-swiper .swiper-slide {
    width: 60px;
    height: 60px; font-size: 80%;
  }
  
  .thumbs-swiper .thumbnail-image {
    width: 100%;
    height: 100%;
  }

  .thumbs-swiper .swiper-slide .thumb{ height: calc(54px - 1.2em);}
  
  /* メインスライダー用のカスタム矢印ナビゲーション（モバイル） */
  .main-button-prev,
  .main-button-next {
    width: 30px;
    height: 30px;
    margin-top: calc(0px - (30px / 2));
  }
  
  .main-button-prev {
    left: 0;
  }
  
  .main-button-next {
    right: 0;
  }
  
  .main-button-prev::after,
  .main-button-next::after {
    font-size: 16px;
  }
  
  /* モーダルのモバイル対応 */
  .vehicle-modal-header {
    padding: 15px;
  }
  
  .vehicle-modal-title {
    font-size: 20px;
  }
  
  .vehicle-modal-close {
    width: 36px;
    height: 36px;
  }
  
  .vehicle-modal-close::before,
  .vehicle-modal-close::after {
    width: 18px;
  }
}

@media (max-width: 768px) and  (min-width: 480px) {
   .vehicles-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px 0;
} 
        .vehicle-list-card {
        max-width: 100%;
    }
}

@media (min-width: 768px) and  (max-width: 1025px) {
    .vehicle-list-card { width: 100%;}
    .vehicle-specs {flex-direction: column;gap: 0.5em;}
    .main-swiper { max-width: 100%;}
    .main-content .inner {max-width: calc(100vw - 260px - 100px);}
} 