/* ==========================================================================
  メインビュー: トップページのヒーローセクション
  車のシルエットで切り抜かれたスライダー表示
========================================================================== */
.mv-section {
  position: relative;
  width: 100%;
  height: 46vw;
  background-image: url("../img/mv-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 車のコンテナ */
.mv-car-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.mv-car-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* スライダー - 車のシルエットでマスク */
.mv-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  -webkit-mask-image: url("../img/car-silhouette.svg");
  mask-image: url("../img/car-silhouette.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.mv-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.mv-slide.active {
  opacity: 1;
}

.mv-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2番目のスライド画像を反転 */
.mv-slide:nth-child(2) img {
  transform: scaleX(-1);
}

/* 車のフレーム（シルエットマスクを使用するため非表示） */
.mv-car {
  display: none;
}

/* タイヤ */
.mv-tire {
  position: absolute;
  width: 17vw;
  height: auto;
  z-index: 10;
}

.mv-tire-left {
  bottom: 0%;
  left: 9%;
  animation: tireRotateLeft 3s linear infinite;
}

.mv-tire-right {
  bottom: 0%;
  right: 6%;
  animation: tireRotateRight 3s linear infinite;
}

@keyframes tireRotateLeft {
  0% {
    transform: rotate(0deg) translateY(0px);
  }
  25% {
    transform: rotate(-90deg) translateY(-3px);
  }
  50% {
    transform: rotate(-180deg) translateY(0px);
  }
  75% {
    transform: rotate(-270deg) translateY(-3px);
  }
  100% {
    transform: rotate(-360deg) translateY(0px);
  }
}

@keyframes tireRotateRight {
  0% {
    transform: rotate(0deg) translateY(0px);
  }
  25% {
    transform: rotate(-90deg) translateY(-3px);
  }
  50% {
    transform: rotate(-180deg) translateY(0px);
  }
  75% {
    transform: rotate(-270deg) translateY(-3px);
  }
  100% {
    transform: rotate(-360deg) translateY(0px);
  }
}

/* スライダーインジケーター */
.mv-slider-indicators {
  position: absolute;
  right: 2rem;
  top: 40%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10;
}

.mv-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: white;
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.3s;
}

.mv-indicator.active {
  opacity: 1;
  transform: scale(1.3);
}

.mv-indicator:hover {
  opacity: 0.8;
}

/* ==========================================================================
   共通スタイル: ボタン、コンテナ
   ========================================================================== */
.container {
  text-align: center;
  overflow-x: hidden;
}

/* コンテンツ幅制限用の共通クラス */
.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.first-section {
  padding-top: 6rem;
  background-color: var(--OffWhite);
}

.phrase {
  max-width: 200px;
  margin: 0 auto;
}

/* ==========================================================================
   ニュースセクション: スライダー形式のお知らせ表示
   ========================================================================== */
.news {
  background-color: var(--Greige);
  margin: 5rem auto -1.5rem;
  max-width: 1400px;
  padding: 2.5rem 3rem 2rem;
  text-align: left;
  border-radius: 1rem;
  position: relative;
}

.news-main {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.news-left {
  flex-shrink: 0;
  min-width: 150px;
}

.news-title {
  font-weight: bold;
  margin: 0;
  line-height: 1;
}

.news-subtitle {
  margin: 0.3rem 0 0 0;
  opacity: 0.8;
}

.news-center {
  flex: 1;
  min-width: 0;
}

.news-slider-wrapper {
  overflow: hidden;
}

.news-slider {
  display: flex;
  transition: transform 0.5s ease;
  min-width: 0;
}

.news-slide {
  flex: 0 0 100%;
  min-width: 0;
  overflow: hidden;
}

.news-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  width: 100%;
}

.news-text {
  margin: 0;
  line-height: 1.6;
  display: block;
  max-width: 100%;
  width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow: hidden;
}

.news-date {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .news-content .news-text,
  .news-content .news-text:visited {
    color: #000 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .news-content {
    text-align: center;
  }
}

.news-right {
  flex-shrink: 0;
}

.news-bottom {
  text-align: center;
  position: relative;
}

.news-btn {
  background-color: var(--green);
  color: white;
  padding: 0.8rem 2.5rem;
  border-radius: 2rem;
  font-size: 2rem;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s;
  border: 2px solid var(--green);
}

.news-btn:hover {
  background-color: white;
  color: var(--green);
}

.news-nav-buttons {
  display: flex;
  gap: 0.8rem;
}

.news-prev,
.news-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.news-prev:hover,
.news-next:hover {
  background-color: #333;
}

/* ==========================================================================
   共通要素: セクションタイトル、詳細情報
   ========================================================================== */
.item {
  line-height: 1.6;
  text-align: left;
}

.detail {
  max-width: 1400px;
  margin: 5rem auto;
  position: relative;
  padding: 0 2rem;
}

.detail img {
  width: 100%;
}

.detail-btn {
  position: absolute;
  left: 16%;
  bottom: 26%;
  background-color: white;
  color: var(--DarkGray);
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 1.5rem;
  border: 2px solid var(--DarkGray);
  transition: all 0.3s;
}

.detail-btn:hover {
  background-color: var(--DarkGray);
  color: white;
}

/* ==========================================================================
   サービス一覧セクション: 提供サービスの3つのカード表示
   ========================================================================== */
.service {
  background-color: var(--Greige);
  padding: 4rem 0;
}

/* 販売車種セクション用 */
.lineUp {
  background-color: var(--OffWhite);
  padding: 4rem 0 5rem 0;
}

/* サービス・販売車種・ブログの共通ヘッダースタイル */
.service-top,
.lineUp-top,
.blog-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.point1-img,
.point2-img,
.point3-img {
  width: 100%;
  max-width: 600px;
}

.service-item {
  margin: 5rem auto 3rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 5%;
  flex-wrap: wrap;
  max-width: 1400px;
  padding: 0 2rem;
}

.service-item img {
  max-width: 280px;
  width: 100%;
  height: auto;
  flex: 0 1 calc(33.333% - 3.5%);
}

/* ==========================================================================
   買取セクション: 車買取の実績とポイント表示
   ========================================================================== */
.second-section {
  align-items: center;
  background-color: white;
}

.purchase {
  position: relative;
  height: 40vw;
}

.purchaseImg {
  position: absolute;
  width: 50.5%;
  /* height: 40vw; */
  object-fit: cover;
  z-index: 10;
  top: -0.5vw;
  left: -1vw;
}

.feature1 {
  position: absolute;
  width: 100%;
  height: 40vw;
  object-fit: cover;
  object-position: 30% 50%; /* Align image to the bottom */
  transform: scaleX(-1);
  top: 0;
  left: 30%;
}

.achievements {
  text-align: center;
  margin: 6rem auto 0;
  color: var(--yellow);
  max-width: 1400px;
  padding: 0 2rem;
}

.purchase2 {
  position: relative;
}

.purchase2 img {
  width: 100%;
  height: 30vw;
  object-fit: cover;
  object-position: 30% 90%;
}

.purchase2::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.purchase2-title {
  position: absolute;
  top: 15%;
  left: 15%;
  z-index: 10;
  text-align: left;
  line-height: 1.7;
  margin: 0;
}

.purchase2-title .underline-text {
  display: inline;
  border-bottom: 3px solid #000;
  padding-bottom: 0;
}

.purchase2-title .char {
  position: relative;
  display: inline-block;
}

.purchase2-title .char::before {
  content: "\30FB"; /* ・ (中黒) のUnicodeコードポイント */
  position: absolute;
  top: -0.7em;
  left: 50%;
  transform: translateX(-50%);
}

/* ==========================================================================
   車検整備セクション: 車検サービスの3つの特徴を画像で表示
   「技術」「価格」「対応」のラベル付き
   ========================================================================== */
.inspection {
  text-align: center;
  padding: 3rem 0;
  background-color: white;
}

.inspection .item {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.inspection-title {
  color: var(--yellow);
  margin: 5rem auto -1rem;
  font-weight: bold;
  line-height: 1.4;
  position: relative;
  z-index: 10;
  max-width: 1400px;
  padding: 0 2rem;
}

.inspection-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

.inspection-item {
  position: relative;
}

.inspection-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inspection-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: left;
  color: white;
  font-weight: bold;
  margin: 0;
  z-index: 2;
  padding: 1rem 1rem 0.5rem;
  background: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0) 100%);
  clip-path: polygon(0 0, 90% 0%, 100% 100%, 0% 100%);
}

.inspection-label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0rem;
  width: 6rem;
  height: 4px;
  background-color: var(--yellow);
}

/* ==========================================================================
   車検プランセクション: 3つの料金プラン（ライト・ミディアム・プレミアム）
   ========================================================================== */
.plan {
  text-align: center;
  padding: 4rem 0;
  background-color: white;
}

.plan-title {
  color: var(--green);
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  font-size: clamp(1.5rem, 2rem, 2rem);
}

.plan-title::before,
.plan-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 80px;
  height: 2px;
  background-color: var(--green);
}

.plan-title::before {
  right: calc(100% + 20px);
}

.plan-title::after {
  left: calc(100% + 20px);
}

.plan-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.plan-card {
  flex: 1;
  max-width: 350px;
  border: 3px solid var(--green);
  background-color: white;
  display: flex;
  flex-direction: column;
}

.plan-header {
  background-color: var(--green);
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.plan-badge {
  margin: 0 0 0.5rem 0;
}

.plan-name {
  margin: 0;
  font-weight: bold;
}

.plan-body {
  padding: 2rem 1.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plan-basic {
  display: inline-block;
  text-align: center;
  line-height: 1.3;
  font-weight: bold;
}

.plan-basic p {
  margin: 0.5rem 0;
  color: var(--green);
}

.plan-basic p:nth-child(2),
.plan-basic p:nth-child(4) {
  text-align: center;
}

.plan-divider {
  width: 80%;
  height: 2px;
  background-color: var(--green);
  margin: 1.5rem auto;
}

.plan-extra {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
}

.plan-extra p {
  margin: 0.8rem 0;
  color: var(--green);
  font-weight: bold;
}

.plan-extra .no-extra {
  display: block;
  text-align: center;
  align-self: center;
}

/* ==========================================================================
   お問い合わせボタンセクション
   ========================================================================== */
.contact-button-section {
  text-align: center;
  padding: 3rem 0;
  background-color: white;
}

.contact-button {
  display: inline-block;
  background-color: var(--yellow);
  color: white;
  padding: 1rem 3rem;
  border-radius: 2rem;
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid var(--yellow);
}

.contact-button:hover {
  background-color: white;
  color: var(--yellow);
}

/* ==========================================================================
   ブログセクション: 最新のブログ記事3件をカード形式で表示
   ========================================================================== */
.blog {
  padding: 4rem 0;
  background-color: var(--OffWhite);
}

.blog-items {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1400px;
  text-align: left;
  margin: 3rem auto 2rem;
  padding: 0 2rem;
}

.blog-item {
  flex: 1;
  max-width: 960px;
  overflow: hidden;
}

.blog-item img {
  width: 100%;
  height: 20vw;
  object-fit: cover;
  display: block;
  border-radius: 15px;
}

.blog-item h3 {
  padding: 1rem 1rem 0.5rem;
  margin: 0;
  font-weight: bold;
}

.blog-item p {
  padding: 0 1rem 1.5rem;
  line-height: 1.7;
  margin: 0;
}

.blog-button {
  display: inline-block;
  background-color: var(--green);
  color: white;
  padding: 0.9rem 2.5rem;
  border-radius: 2rem;
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
  margin-top: 1rem;
  border: 2px solid var(--green);
}

.blog-button:hover {
  background-color: white;
  color: var(--green);
}

/* ==========================================================================
   ギャラリーセクション: Splide.jsで無限スクロール
   ========================================================================== */
.gallery {
  overflow: hidden;
  padding: 6rem 0;
  background-color: var(--gray);
  position: relative;
}

.gallery .splide__track {
  overflow: visible;
}

.gallery .splide__list {
  display: flex;
  align-items: center;
}

.gallery-item {
  width: 320px;
}

.gallery-item:nth-child(odd) {
  margin-top: 2rem;
}

.gallery-item:nth-child(even) {
  margin-bottom: 2rem;
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* ==========================================================================
   ディーラーセクション: ディーラー様向けの情報とCTA
   ========================================================================== */
.dealer {
  background-color: white;
  margin-bottom: -1rem;
}

.dealer-content {
  margin: 0 auto;
  position: relative;
}

.dealer-image {
  width: 100%;
  height: 25vw;
  object-fit: cover;
  object-position: 50% 30%;
}

.dealer-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.dealer-text {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  z-index: 10;
  text-align: left;
}

.dealer-text h2 {
  margin-bottom: 2.5rem;
  line-height: 1.6;
  color: black;
}

.dealer-button {
  display: inline-block;
  background-color: white;
  color: black;
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  font-size: clamp(1.4rem, 5vw, 2rem);
  border: 2px solid black;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
}

.dealer-button:hover {
  background-color: black;
  color: white;
}

/* ==========================================================================
   注意事項セクション: サイト利用時の注意事項を2カラムで表示
   ========================================================================== */
.notes {
  padding: 4rem 2rem;
  background-color: #f0ede5;
}

.notes h2 {
  margin-bottom: 2rem;
  text-align: left;
  font-weight: bold;
  max-width: 1400px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}

.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.notes-item {
  text-align: left;
}

.notes-item p {
  line-height: 1.9;
  margin: 0;
}

/* ==========================================================================
   注意事項ボタンとポップアップ
   ========================================================================== */
.notes-button-section {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #f0ede5;
}

.notes-button {
  background-color: var(--DarkGray);
  color: white;
  padding: 1rem 3rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: bold;
  border: 2px solid var(--DarkGray);
  cursor: pointer;
  transition: all 0.3s;
}

.notes-button:hover {
  background-color: white;
  color: var(--DarkGray);
}

/* モーダル */
.notes-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

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

.notes-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.notes-modal-content {
  background-color: white;
  padding: 3rem 2rem;
  border-radius: 1rem;
  max-width: 1200px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--DarkGray);
  position: relative;
  z-index: 1;
  animation: modalFadeIn 0.3s ease-out;
  /* スクロールバーを非表示 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE, Edge */
}

.notes-modal-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

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

.notes-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--DarkGray);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
  line-height: 1;
}

.notes-modal-close:hover {
  color: var(--green);
}

.notes-modal-content h2 {
  margin: 0 0 2rem 0;
  text-align: center;
}

.notes-modal-content .notes-grid {
  padding: 0 1rem;
}
/* ==========================================================================
   販売車種カードセクション: 中古車一覧の3カラムグリッド表示
   ========================================================================== */
.lineup-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1400px;
  padding: 0 2rem;
  font-family: "Kozuka Gothic Pr6N", "Noto Sans JP", sans-serif;
}

.lineup-image {
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #000;
  margin-bottom: 1rem;
}

.lineup-image img {
  width: 100%;
  height: auto;
  display: block;
}

.lineup-info {
  padding: 0;
}

.lineup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.lineup-title {
  font-weight: 400;
  margin: 0;
  color: #000;
}

.lineup-tags {
  display: flex;
  gap: 0.3rem;
}

.lineup-tag {
  background-color: white;
  border: 1px solid #000;
  border-radius: 1rem;
  padding: 0.2rem 0.6rem;
  font-weight: 700;
  color: #000;
}

.lineup-specs {
  margin-bottom: 1rem;
}

.lineup-spec-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(
      to right,
      #000 0%,
      #000 30%,
      #ddd 30%,
      #ddd 100%
    )
    1;
  border-image-slice: 0 0 1 0;
}

.spec-label {
  color: #000;
  font-weight: bold;
  min-width: 80px;
  text-align: left;
}

.spec-value {
  font-weight: 700;
  color: #000;
  margin-left: 2rem;
}

.lineup-description {
  line-height: 1.6;
  color: #000;
  font-weight: 400;
  text-align: left;
}

.lineup-button-wrapper {
  text-align: center;
  margin-top: 3rem;
}

.lineup-button {
  background-color: #000;
  color: white;
  padding: 1rem 3rem;
  border-radius: 2rem;
  font-size: 2rem;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s;
  border: 2px solid #000;
}

.lineup-button:hover {
  background-color: white;
  color: #000;
}

.lineup-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--DarkGray);
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   買取ポイントカードセクション: 買取の3つの強みをカード形式で表示
   ========================================================================== */
.purchase-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1400px;
  padding: 0 2rem;
}

.purchase-point-card {
  background-color: white;
  text-align: left;
}

.purchase-point-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 1rem;
}

.purchase-point-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.point-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--green);
  color: white;
  padding: 0.5rem 1.2rem 0.5rem 0.8rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  clip-path: polygon(0 0, 90% 0%, 100% 100%, 0% 100%);
}

.purchase-point-title {
  font-weight: bold;
  color: var(--green);
  margin: 0 0 0.8rem 0;
  line-height: 1.4;
}

.purchase-point-text {
  line-height: 1.8;
  color: #333;
  margin: 0;
  font-weight: normal;
}

/* 買取ページへのCTAボタン */
.purchase-button-wrapper {
  text-align: center;
  margin: 5rem auto -2rem;
  position: relative;
  z-index: 10;
}

.purchase-button {
  background-color: var(--yellow);
  color: #000;
  padding: 1rem 3rem;
  border-radius: 2rem;
  font-size: clamp(1.4rem, 5vw, 2rem);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s;
  border: 2px solid var(--yellow);
}

.purchase-button:hover {
  background-color: white;
  color: var(--yellow);
}

/* ==========================================================================
   レスポンシブ対応 - タブレット (1024px以下)
   ========================================================================== */
@media (max-width: 1024px) {
  .mv-tire {
    width: 16%;
  }

  .service-top {
    flex-direction: column;
    gap: 2rem;
  }

  .lineUp-top {
    flex-direction: column;
    gap: 2rem;
  }

  .phrase {
    max-width: 20%;
  }

  .news {
    margin: 4rem 1.5rem -1.5rem;
    padding: 2rem 2rem 1.5rem;
  }

  .item {
    margin-left: 2rem;
  }

  .detail {
    max-width: 80%;
  }

  .service-item {
    gap: 5%;
  }

  .service-item img {
    max-width: 25%;
  }

  .achievements {
    margin: 4rem 0 0;
    padding: 0;
  }

  .purchase2-title {
    left: 10%;
  }

  .plan-cards {
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .blog-items {
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .blog-item img {
    height: 40vw;
  }

  .notes-grid {
    padding: 0 1rem;
  }

  .inspection-title {
    font-size: 2rem;
    margin: 0;
  }

  .inspection-images {
    margin: 0 1rem;
    padding: 0;
  }

  .inspection-label {
    padding: 0.8rem 0.8rem 0.4rem;
  }

  .inspection-label::after {
    width: 5rem;
  }

  .purchase-points {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }
  .lineup-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 1rem;
  }
}

/* ==========================================================================
   レスポンシブ対応 - スマートフォン (768px以下)
   ========================================================================== */
@media (max-width: 768px) {
  .mv-section {
    min-height: 60vh;
    height: auto;
  }

  .mv-slider {
    -webkit-mask-position: center;
    mask-position: center;
  }

  .mv-tire-left,
  .mv-tire-right {
    bottom: 30%;
  }

  .mv-slider-indicators {
    top: auto;
    bottom: 2rem;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
    gap: 0.8rem;
  }

  .mv-indicator {
    width: 10px;
    height: 10px;
  }

  .phrase {
    max-width: 30%;
  }

  .news {
    margin: 3rem 1rem -1.5rem 1rem;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
  }

  .news-main {
    flex-direction: column;
    gap: 1.5rem;
  }

  .news-left {
    min-width: auto;
    text-align: center;
  }

  .news-nav-buttons {
    justify-content: center;
  }

  .item {
    margin-left: 1rem;
  }

  .detail {
    max-width: 90%;
    margin: 3rem auto;
    padding: 0;
  }

  .detail-btn {
    position: relative;
    top: -5rem;
    left: 0;
    max-width: 350px;
  }

  .service {
    padding: 3rem 1rem;
  }

  .service-item {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 3rem auto 2rem;
  }

  .service-item img {
    max-width: 80%;
  }

  .lineUp {
    padding: 3rem 1rem 4rem;
  }

  .achievements {
    margin: 3rem 1rem 0;
  }

  .purchase2 img {
    height: 350px;
  }

  .purchase2-title {
    left: 8%;
    top: 20%;
  }

  .plan {
    padding: 3rem 1rem;
  }

  .plan-title {
    margin-bottom: 2rem;
  }

  .plan-title::before,
  .plan-title::after {
    width: 50px;
  }

  .plan-cards {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .plan-card {
    width: 100%;
    max-width: 400px;
  }

  .plan-basic {
    text-align: center;
  }

  .plan-basic p,
  .plan-extra p {
    font-size: 1rem;
  }

  .lineup-button {
    font-size: 1.5rem;
    padding: 0.8rem 2rem;
  }

  .lineup-note {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .contact-button-section {
    padding: 2rem 1rem;
  }

  .contact-button {
    padding: 0.9rem 2.5rem;
  }

  .blog-items {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 2rem auto 1.5rem;
  }

  .blog-item {
    width: 100%;
    max-width: 500px;
  }

  .blog-item img {
    height: 50vw;
    max-height: 300px;
  }

  .blog-button-section {
    padding: 2rem 1rem;
  }

  .blog-button {
    padding: 0.9rem 2.5rem;
  }

  .gallery {
    padding: 3rem 1rem;
  }

  .dealer {
    padding: 3rem 1rem;
  }

  .dealer-text {
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 500px;
  }

  .dealer-text h2 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.2;
    text-align: center;
    transform: translateY(-1.5rem);
    color: #666;
  }

  .dealer-button {
    transform: translateY(1.5rem);
  }

  .sp {
    display: none;
  }

  .dealer-button {
    padding: 0.9rem 2.5rem;
  }

  .notes-button-section {
    padding: 3rem 1rem;
  }

  .notes-modal-content {
    width: 95%;
    padding: 2.5rem 1.5rem;
  }

  .notes-modal-content .notes-grid {
    grid-template-columns: 1fr;
    padding: 0 0.5rem;
  }

  .lineup-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 1rem;
  }

  .purchase-points {
    padding: 0 1rem;
  }

  .purchase-point-card {
    max-width: 400px;
  }

  .blog-top {
    flex-direction: column;
    gap: 2rem;
  }
}

/* ==========================================================================
   レスポンシブ対応 - 小型スマートフォン (480px以下)
   ========================================================================== */
@media (max-width: 480px) {
  .phrase {
    max-width: 40%;
  }

  .news {
    margin: 2rem 0.5rem -1.5rem;
    padding: 1rem 1rem 0.8rem;
  }

  .news-btn {
    padding: 0.7rem 2rem;
  }

  .item {
    margin-left: 0.5rem;
  }

  .detail {
    max-width: 95%;
  }

  .service-item img {
    max-width: 90%;
  }

  .purchase {
    height: 300px;
  }

  .purchaseImg {
    width: 80%;
  }

  .feature1 {
    height: 300px;
  }

  .purchase2 img {
    height: 300px;
  }

  .purchase2-title {
    left: 5%;
  }

  .plan-title::before,
  .plan-title::after {
    width: 30px;
  }

  .plan-body {
    min-height: 300px;
  }

  .contact-button {
    padding: 0.8rem 2rem;
  }

  .blog-item {
    width: 95%;
  }

  .dealer-button {
    padding: 0.7rem 1.5rem;
  }

  .notes h2 {
    padding: 0 0.5rem;
  }

  .notes-modal-content {
    width: 98%;
    padding: 2rem 1rem;
  }

  .notes-modal-content .notes-grid {
    padding: 0;
  }

  .notes-modal-close {
    top: 0.5rem;
    right: 0.5rem;
  }
}
