@charset "utf-8";
/* =========================================================
   オートサービスナカニシ　共通スタイル
   色を変えたいときは、下の「色の設定」だけ書き換えればOKです
   ========================================================= */

/* ----- 色の設定 ----- */
:root {
  --navy: #1b3a8c;      /* メインの紺色（ロゴの色） */
  --navy-dark: #12275e;
  --red: #d7262b;       /* アクセントの赤（価格など） */
  --yellow: #ffd43b;    /* 目立たせたいボタン */
  --bg: #f4f6fa;        /* 背景のうすいグレー */
  --text: #222;
  --gray: #666;
  --line: #dde2ea;
}

/* ----- 基本 ----- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.8;
  font-size: 16px;
  padding-bottom: 64px; /* スマホの固定電話ボタン分 */
}
img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: var(--navy); }
.inner { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.pc { display: none; }

/* ----- ヘッダー ----- */
.site-header { background: #fff; border-bottom: 3px solid var(--navy); position: sticky; top: 0; z-index: 50; }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding-top: 8px; padding-bottom: 8px; }
.logo { text-decoration: none; color: var(--navy); line-height: 1.2; }
.logo-en { display: block; font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif; font-style: italic; font-size: 13px; letter-spacing: .02em; }
.logo-en b { display: block; font-size: 26px; }
.logo-ja { display: block; font-size: 11px; color: var(--red); font-weight: bold; }
.global-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 14px; }
.global-nav a { text-decoration: none; color: var(--text); padding: 6px 10px; border-radius: 4px; font-weight: bold; }
.global-nav a:hover { background: var(--bg); }
.global-nav .nav-tel { display: none; }

/* ----- ボタン ----- */
.btn-main {
  display: inline-block; background: var(--navy); color: #fff; text-decoration: none;
  font-weight: bold; padding: 12px 32px; border-radius: 40px;
}
.btn-main:hover { background: var(--navy-dark); }

/* ----- ごあいさつ（ヒーロー） ----- */
.hero { position: relative; background: var(--navy); color: #fff; }
.hero-img img { width: 100%; height: 140px; object-fit: cover; display: block; opacity: .9; }
.hero-text { padding: 16px 16px 20px; text-align: center; }
.hero-catch { font-size: 21px; font-weight: bold; line-height: 1.5; margin: 0 0 8px; }
.hero-catch strong { color: var(--yellow); font-size: 1.25em; }
.hero-lead { font-size: 13px; line-height: 1.7; margin: 0 0 14px; }
.hero-lead br { display: none; }
.hero .btn-main { background: var(--yellow); color: var(--navy-dark); padding: 8px 28px; }

/* ----- 見出し ----- */
.sec-title { font-size: 24px; color: var(--navy); margin: 0 0 4px; padding-left: 12px; border-left: 6px solid var(--red); line-height: 1.4; }
.sec-title .count { font-size: 15px; color: var(--gray); margin-left: 8px; }
.sec-note { color: var(--gray); font-size: 14px; margin: 4px 0 16px; }

/* ----- 在庫一覧 ----- */
.stock { background: var(--bg); padding: 24px 0 40px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter button {
  border: 1px solid var(--navy); background: #fff; color: var(--navy); font-weight: bold;
  padding: 6px 14px; border-radius: 20px; font-size: 14px; cursor: pointer; font-family: inherit;
}
.filter button.is-active { background: var(--navy); color: #fff; }

.car-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.car-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.08); transition: transform .15s, box-shadow .15s; }
.car-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.car-card a { color: inherit; text-decoration: none; display: block; }
.car-photo { position: relative; aspect-ratio: 4 / 3; background: #ddd; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-count { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 12px; }
.car-body { padding: 8px 10px 10px; }
.car-maker { margin: 0; font-size: 12px; color: var(--gray); }
.car-name { margin: 0; font-size: 16px; line-height: 1.4; color: var(--navy); }
.car-grade { margin: 0 0 6px; font-size: 12px; line-height: 1.4; }
.car-spec { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.car-spec li { font-size: 11px; background: var(--bg); padding: 1px 8px; border-radius: 3px; }
.car-price { border-top: 1px dashed var(--line); padding-top: 8px; }
.car-price .label { display: block; width: fit-content; font-size: 11px; background: var(--red); color: #fff; padding: 1px 6px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.car-price .num { font-size: 24px; font-weight: bold; color: var(--red); font-family: Arial, sans-serif; }
.car-price .unit { font-size: 14px; color: var(--red); font-weight: bold; }
.car-price .sub { font-size: 12px; color: var(--gray); }
.price-note { font-size: 12px; color: var(--gray); margin-top: 16px; }
.car-card.is-hidden { display: none; }

/* ----- お店について ----- */
.about { padding: 48px 0; }
.points { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 20px 0 28px; }
.point { border: 2px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.point-no { margin: 0; font-family: Arial, sans-serif; font-weight: bold; color: var(--red); font-size: 22px; }
.point h3 { margin: 0 0 6px; color: var(--navy); }
.point p { margin: 0; font-size: 15px; }

/* ----- アクセス ----- */
.access { background: var(--bg); padding: 48px 0; }
.access-wrap { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 16px; }
.info-table, .spec-table { width: 100%; border-collapse: collapse; background: #fff; }
.info-table th, .info-table td, .spec-table th, .spec-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; font-size: 15px; }
.info-table th, .spec-table th { background: #eaeef6; width: 34%; color: var(--navy); white-space: nowrap; }
.map iframe { width: 100%; height: 280px; border: 0; display: block; }
.map-wide { margin-top: 24px; }

/* ----- 商品ページ ----- */
.detail { padding: 16px 0 48px; }
.breadcrumb { font-size: 13px; color: var(--gray); margin: 0 0 8px; }
.detail-title, .page-title { font-size: 26px; color: var(--navy); line-height: 1.4; margin: 0 0 16px; }
.detail-title .car-maker { display: block; font-size: 14px; }
.detail-grade { display: block; font-size: 16px; color: var(--text); font-weight: normal; }
.detail-top { display: grid; grid-template-columns: 1fr; gap: 20px; }

.gallery-main { position: relative; background: #000; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; touch-action: pan-y; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-prev, .gallery-next {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.85); font-size: 30px; line-height: 40px; cursor: pointer; color: var(--navy);
}
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-counter { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; padding: 2px 10px; border-radius: 12px; }
.gallery-thumbs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.gallery-thumbs a { display: block; aspect-ratio: 4 / 3; border: 2px solid transparent; border-radius: 3px; overflow: hidden; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs a.is-current { border-color: var(--red); }

.price-box { border: 3px solid var(--red); border-radius: 8px; padding: 14px 16px; background: #fff; }
.price-total { margin: 0; color: var(--red); font-weight: bold; }
.price-total .label { display: block; font-size: 14px; }
.price-total .num { font-size: 44px; font-family: Arial, sans-serif; line-height: 1.1; }
.price-total .unit { font-size: 15px; }
.price-body { margin: 4px 0 0; font-size: 15px; }
.price-box .price-note { margin: 2px 0 0; }
.key-spec { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.key-spec li { background: var(--bg); border-radius: 4px; padding: 6px 10px; font-weight: bold; font-size: 15px; }
.key-spec span { display: block; font-size: 12px; color: var(--gray); font-weight: normal; }
.btn-tel { display: block; text-align: center; background: var(--yellow); color: var(--navy-dark); font-weight: bold; text-decoration: none; padding: 14px; border-radius: 8px; font-size: 17px; }
.btn-tel small { display: block; font-size: 13px; }
.tel-tip { font-size: 13px; color: var(--gray); }

.detail-sec { margin-top: 36px; }
.detail-sec h2 { font-size: 20px; color: var(--navy); border-bottom: 2px solid var(--navy); padding-bottom: 4px; margin: 0 0 12px; }
.staff-comment { background: #fffbe6; border-left: 5px solid var(--yellow); padding: 12px 16px; margin: 0; }
.equip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.equip-list li { border: 1px solid var(--navy); color: var(--navy); border-radius: 4px; padding: 3px 10px; font-size: 14px; }
.back-link { text-align: center; margin-top: 40px; }

/* ----- フッター ----- */
.site-footer { background: var(--navy-dark); color: #fff; padding: 32px 0 24px; font-size: 14px; }
.site-footer a { color: #fff; }
.foot-name { font-weight: bold; font-size: 16px; margin: 0 0 6px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0; }
.copy { font-size: 12px; opacity: .7; margin: 0; }

.fixed-call {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--red); color: #fff;
  text-align: center; font-weight: bold; padding: 14px; text-decoration: none; font-size: 17px;
}

/* =========================================================
   タブレット以上（幅600px〜）
   ========================================================= */
@media (min-width: 600px) {
  .hero-img img { height: 220px; }
  .hero-lead { font-size: 15px; }
  .hero-lead br { display: inline; }
  .car-body { padding: 12px 14px 14px; }
  .car-name { font-size: 20px; }
  .car-price .label { display: inline; }
  .car-price .num { font-size: 30px; }
  .car-list { gap: 16px; }
  .points { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   パソコン（幅900px〜）
   ========================================================= */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .pc { display: inline; }
  .fixed-call { display: none; }
  .global-nav .nav-tel { display: inline-block; background: var(--red); color: #fff; }
  .global-nav .nav-tel:hover { background: #b51d22; }

  .hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }
  .hero-img img { height: 340px; }
  .hero-text { text-align: left; padding: 32px 40px; }
  .hero-catch { font-size: 32px; }

  .car-list { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .access-wrap { grid-template-columns: 1fr 1fr; }
  .map iframe { height: 100%; min-height: 260px; }
  .map-wide iframe { height: 360px; }

  .detail-top { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .detail-side { position: sticky; top: 90px; }
  .gallery-thumbs { grid-template-columns: repeat(10, 1fr); }
}

/* ----- 在庫ゼロのとき・ご成約済みページ（zaiko.pyで使用） ----- */
.no-stock { grid-column: 1 / -1; background: #fff; border-radius: 8px; padding: 24px; text-align: center; }
.sold-box { border: 3px solid var(--gray); border-radius: 8px; padding: 14px 16px; background: #fff; margin-bottom: 14px; }
.sold-box p { margin: 0; }
.sold-label { color: var(--gray); font-size: 28px; font-weight: bold; }
.is-sold .detail-side .btn-main { display: block; text-align: center; margin-bottom: 10px; }
.is-sold .gallery-main img { filter: grayscale(.6); }

/* ----- ご来店前のお電話のお願い ----- */
.visit-notice { background: #fffbe6; border: 2px solid var(--yellow); border-radius: 8px; padding: 14px 16px; margin: 0 0 20px; }
.visit-notice-top { margin-top: 16px; }
.visit-notice p { margin: 0; font-size: 15px; }
.visit-notice .visit-notice-title { font-weight: bold; font-size: 17px; color: var(--navy-dark); margin-bottom: 4px; }
.visit-notice-tel { display: inline-block; margin-top: 8px; font-weight: bold; font-size: 20px; color: var(--red); }

/* ----- カーセンサーへのリンク ----- */
.carsensor-box p { margin: 0 0 12px; font-size: 15px; }
.btn-carsensor { display: inline-block; background: #ff6010; color: #fff; font-weight: bold; text-decoration: none; padding: 12px 28px; border-radius: 40px; }
.btn-carsensor:hover { background: #e04f05; }
