@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
    --color-bg: #FFFFFF;
    --color-text: #333333;
    --color-gold: #C5A059;
    --color-red: #BF0000;
    --color-gray-light: #F5F5F5;
    --color-gray-border: #E0E0E0;
    
    --font-main: 'Noto Sans JP', sans-serif;
    
    --width-container: 1000px;
    --spacing-section: 80px;
    --spacing-section-mobile: 40px;
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--width-container);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--spacing-section) 0;
}

.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-red { color: var(--color-red); }

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.4;
}


/* Section titles (h1/h2/h3) */
.section-title{
    font-size: 2rem;
    margin: 0 0 6px 0;
    padding: 0;
    text-align: center;
    letter-spacing: 0.12em;
}

h1.section-title{ font-size: 2.2rem; }
h3.section-title{ font-size: 1.6rem; }

.section-title::after{
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
    margin: 16px auto 0;
}


    margin-top: 10px;
    margin-bottom: 28px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 0.12em;


@media (max-width: 768px){
    .section-title{ font-size: 1.7rem; }
    h1.section-title{ font-size: 1.9rem; }
    .section-subtitle{ font-size: 0.85rem; margin-top: 8px; }
}

    margin-top: 10px;
    margin-bottom: 28px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 0.12em;


/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-gray-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 50px;
    width: auto;
}

.header-contact {
    display: flex;
    gap: 20px;
}

.header-contact-item {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-contact-item i {
    color: var(--color-gold);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 2000;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--color-text);
    transition: all 0.3s;
}

/* Mobile Nav Overlay */
.nav-menu-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1500;
    padding: 80px 20px;
    transition: right 0.3s ease-in-out;
}

.nav-menu-mobile.active {
    right: 0;
}

.nav-menu-mobile ul li {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.nav-menu-mobile ul li a {
    font-size: 1.1rem;
    font-weight: bold;
    display: block;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Header Contact (Hidden on Desktop by default, shown on Mobile) */
@media (max-width: 768px) {
    .header-contact {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .section {
        padding: var(--spacing-section-mobile) 0;
    }
    /* Services (index): stack two boxes on mobile */
  .services-section .grid-2-col {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .services-section .service-box {
    padding: 24px !important;
    box-sizing: border-box;
    width: 100%;
  }
  .services-section .service-box h3 { line-height: 1.3; }

}

/* Navigation (Simple) */
.nav-menu {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Implement Hamburger later if needed */
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-text);
    color: #fff;
    border: 1px solid var(--color-text);
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    min-width: 200px;
}

.btn-gold {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
}

/* Footer */
.site-footer {
    background-color: #f9f9f9;
    padding: 60px 0 20px;
    border-top: 1px solid var(--color-gray-border);
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info dt {
    float: left;
    clear: left;
    width: 80px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-info dd {
    margin-left: 80px;
    margin-bottom: 10px;
}

.license-number {
    text-align: center;
    color: #888;
    margin-top: 40px;
    font-size: 0.8rem;
}

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


/* ===== Forms (editable & responsive) ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D9D9D9;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.4;
  background: #fff;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(197,160,89,0.18);
}
.form-grid { display: grid; gap: 16px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}


/* ===== Responsive fixes (mobile) ===== */
html, body { overflow-x: hidden; }

@media (max-width: 768px) {
  /* Hero image height on mobile */
  .hero-section img { height: 40vh !important; }

  /* Inventory grids: avoid horizontal overflow */
  .inventory-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* General container padding tighter */
  .container { padding: 0 16px; }

  /* Make long tables/blocks scrollable if needed */
  .spec-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .spec-table table { min-width: 520px; }

  /* Detail page thumbs: 4 -> 2 columns */
  .sub-images { grid-template-columns: repeat(2, 1fr) !important; }

  /* Shop/contact grid: stack on mobile */
  .shop-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .shop-map iframe {
    height: 240px !important;
  }

}



/* ===== 説明文（読みやすいプロ品質） =====
   目的：見出しはそのまま、本文だけ「左揃え＋適正な行長＋余白」で読みやすくする
*/
.copy-prose{
  max-width: 42em;           /* 1行の文字数を抑えて読みやすく */
  margin: 0 auto;
  padding: 0 22px;           /* 端末左右の余白 */
  text-align: left;          /* 本文は左揃えが最も読みやすい */
  line-height: 2.0;
  letter-spacing: 0.02em;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

/* スマホ：少しだけ余白を増やして高級感 */
@media (max-width: 768px){
  .copy-prose{
    padding: 0 26px;
    font-size: 16px;
  }
}


/* ===== copy-prose 最終調整（サンプルサイト風：左寄せ・行長・余白） ===== */
.copy-prose{
  text-align: left !important;   /* 親の中央寄せ指定に負けない */
  max-width: 38em;              /* 1行を短めにして読みやすく */
  margin: 0 auto;
  padding: 0 22px;
  line-height: 2.05;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
}

@media (max-width: 768px){
  .copy-prose{
    padding: 0 26px;            /* スマホは余白を少し増やして高級感 */
    line-height: 2.1;
  }
  .copy-prose br{
    display: block;
    content: "";
    margin-bottom: 0.2em;       /* 句点改行を詰めすぎない */
  }
}


/* ===== 相談ボックス内の説明文だけ：中央寄せ＋句点改行（元の雰囲気） ===== */
.copy-prose.copy-prose-center{
  text-align: center !important;
  max-width: 42em;   /* 行長は保ちつつ中央寄せ */
  margin: 0 auto;
}

@media (max-width: 768px){
  .copy-prose.copy-prose-center{
    text-align: center !important;
    padding: 0 22px; /* 相談ボックス内は余白を少し抑える */
  }
}


/* ===== PCでもハンバーガーを表示し、メニューを開閉できるように =====
   既存のスマホ用トグルを流用し、PCでは通常メニューを閉じてハンバーガーで開く
*/
@media (min-width: 769px){
  .hamburger{ display: flex !important; }
  .nav-links{
    display: none !important;     /* 通常は閉じる */
    position: absolute;
    top: 70px;
    right: 24px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    min-width: 220px;
    z-index: 9999;
  }
  .nav-links.active{ display: block !important; }
  .nav-links a{ display: block; padding: 10px 6px; }
}


/* ===== PCヘッダー：位置統一＆控えめハンバーガー（全ページ共通） ===== */
.header-inner{
  position: relative;                 /* ドロップダウンの基準 */
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.header-contact{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:20px;
}

/* ハンバーガーは右端で固定 */
.hamburger{
  margin-left:18px;
  flex: 0 0 auto;
}

/* ===== PCでは「スライドイン80%」ではなく控えめドロップダウンにする ===== */
@media (min-width: 769px){
  .hamburger{ display:flex !important; }

  .nav-menu-mobile{
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;

    width: 220px !important;
    height: auto !important;

    padding: 10px 12px !important;
    background: #fff !important;

    border: 1px solid rgba(0,0,0,0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 22px rgba(0,0,0,0.10) !important;

    transform: translateY(6px);
    opacity: 0;
    pointer-events: none;

    transition: opacity .18s ease, transform .18s ease !important;
    z-index: 1600 !important;
  }

  .nav-menu-mobile.active{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu-mobile ul{
    margin: 0;
    padding: 0;
  }

  .nav-menu-mobile ul li{
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  }
  .nav-menu-mobile ul li:last-child{
    border-bottom: none !important;
  }

  .nav-menu-mobile ul li a{
    display:block;
    padding: 10px 8px !important;
    font-size: 14px !important;
    font-weight: 600;
  }
}


/* ===== ヘッダー最終仕上げ：右寄せを“確実”にする（PCのみ） =====
   原因：.header-inner が space-between のため、電話/メールが中央に浮く
   対策：PCでは flex-start + header-contact を margin-left:auto で右寄せ
*/
@media (min-width: 769px){
  header.site-header .container.header-inner{
    max-width: 100% !important;   /* ヘッダーだけ画面幅いっぱい */
    padding-right: 8px !important;/* 右余白を極小に */
  }

  header.site-header .header-inner{
    justify-content: flex-start !important;
    gap: 18px;
  }

  header.site-header .header-contact{
    margin-left: auto !important;
    justify-content: flex-end;
    gap: 18px;
  }

  header.site-header .hamburger{
    margin-left: 10px !important; /* 最右に寄せる */
  }

  /* ドロップダウンもハンバーガー直下に寄せて“飛び出し”を抑える */
  header.site-header .nav-menu-mobile{
    right: 0 !important;
    top: calc(100% + 6px) !important;
    width: 200px !important;
  }
}


/* ===== モバイルヘッダー：電話/メールの改行崩れを防ぐ（PCには影響なし） ===== */
@media (max-width: 768px){
  /* ヘッダー内を1行で収めやすくする */
  header.site-header .header-inner{
    gap: 10px;
  }

  /* 連絡先ブロックを横並びにして中身の改行を禁止 */
  header.site-header .header-contact{
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    margin-left: auto;
  }

  /* 各アイテム（電話/メール）も横並び＆中で改行しない */
  header.site-header .header-contact-item{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
  }

  /* リンク文字がハイフンで折り返されないように */
  header.site-header .header-contact-item a{
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    line-break: strict;
    font-size: 13px;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
  }

  /* アイコンも少し小さくして詰まりを解消 */
  header.site-header .header-contact-item i{
    font-size: 14px;
  }

  /* 画面が特に狭い端末では、メール文言だけ短く見せる（リンクは同じ） */
  @media (max-width: 390px){
    header.site-header .header-contact-item.mail a{
      font-size: 12px;
    }
    header.site-header .header-contact-item.phone a{
      font-size: 12px;
    }
  }
}


@media (max-width: 768px){
  .header-contact a{ white-space: nowrap; }
}


/* ===== モバイルヘッダー：電話/メールを「アイコンのみ」にしてロゴ圧迫を解消（PC影響なし） ===== */
@media (max-width: 768px){
  /* ヘッダーの横並びを安定化（ロゴを優先） */
  header.site-header .header-inner{
    justify-content: space-between !important;
    gap: 8px;
  }

  /* ロゴ領域を広めに確保 */
  header.site-header .logo{
    flex: 1 1 auto;
    min-width: 0;
  }
  header.site-header .logo img{
    max-width: 180px;          /* 元のロゴ感を保つ */
    width: 100%;
    height: auto;
  }

  /* 連絡先はアイコンボタン化して省スペース */
  header.site-header .header-contact{
    flex: 0 0 auto;
    gap: 8px;
  }

  /* テキストを隠してボタン化（リンクは生かす） */
  header.site-header .header-contact-item a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.14);
    text-decoration: none;

    /* 文字を見せない */
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
  }

  /* アイコンはそのまま見せる */
  header.site-header .header-contact-item i{
    font-size: 16px;
    margin: 0;
  }

  /* mail/phone の a から text-indent が効いても i は別要素なので表示される */
}


/* ===== モバイル：電話/メールをヘッダーから外し、メニュー先頭へ（高級でスッキリ） ===== */
@media (max-width: 768px){
  /* ヘッダーの電話/メールは非表示（ロゴを主役に） */
  header.site-header .header-contact{ display: none !important; }

  /* メニュー内の連絡先（先頭） */
  .nav-menu-mobile .mobile-contact a{
    display:flex;
    align-items:center;
    gap:10px;
    padding: 12px 10px !important;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.10);
    text-decoration:none;
    margin: 8px 0;
  }
  .nav-menu-mobile .mobile-contact i{
    font-size: 16px;
  }
  .nav-menu-mobile .mobile-contact span{
    font-size: 14px;
    letter-spacing: 0.01em;
  }
  .nav-menu-mobile .mobile-contact-sep{
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 10px 0 6px;
    list-style:none;
  }
}

/* PC：メニュー内に挿入した連絡先は非表示（PC見た目に影響させない） */
@media (min-width: 769px){
  .nav-menu-mobile .mobile-contact,
  .nav-menu-mobile .mobile-contact-sep{
    display:none !important;
  }
}


/* ===== PRO Stock Filter ===== */
.stock-filter{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top: 16px;
  margin-bottom:28px;
}

.stock-filter button{
  appearance:none;
  border:1px solid #ddd;
  background:#fff;
  color: var(--color-text);
  padding:10px 16px;
  border-radius:999px;
  font-size:0.95rem;
  letter-spacing:0.06em;
  cursor:pointer;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.stock-filter button:hover{
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.stock-filter button.active{
  background: var(--color-gold);
  border-color: var(--color-gold);
  color:#fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.stock-filter button:focus-visible{
  outline: 3px solid rgba(197,160,89,0.35);
  outline-offset: 2px;
}


.stock-filter button{
  padding:8px 18px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.15);
  background:#fff;
  cursor:pointer;
  font-size:14px;
  transition:all .2s ease;
}

.stock-filter button.active{
  background:#111;
  color:#fff;
  border-color:#111;
}

.stock-filter button:hover{
  background:#111;
  color:#fff;
}

@media (max-width:768px){
  .stock-filter{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top: 16px;
  margin-bottom:28px;
}

.stock-filter button{
  appearance:none;
  border:1px solid #ddd;
  background:#fff;
  color: var(--color-text);
  padding:10px 16px;
  border-radius:999px;
  font-size:0.95rem;
  letter-spacing:0.06em;
  cursor:pointer;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.stock-filter button:hover{
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.stock-filter button.active{
  background: var(--color-gold);
  border-color: var(--color-gold);
  color:#fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.stock-filter button:focus-visible{
  outline: 3px solid rgba(197,160,89,0.35);
  outline-offset: 2px;
}

  .stock-filter button{
    flex:0 0 auto;
  }
}


/* v36 inventory card normalize */
.inventory-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap:30px;
}
.car-card{
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-radius:8px;
  overflow:hidden;
  border:1px solid #eee;
  background:#fff;
}
.car-card > a{ display:block; color:inherit; text-decoration:none; }
.car-img{
  width:100%;
  aspect-ratio: 16 / 9;
  background:#eee;
  overflow:hidden;
}
.car-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
