@charset "UTF-8";

/* 横スクロール防止 */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
/*
Theme Name: nissan-nara-child
Template: nissan-nara
Description: 奈良日産 オリジナルテーマの子テーマ。在庫関連・プリローダー調整・新アニメーションの記述をここに集約します。
Author: sugimoto / Matsushita Hideto
Version: 1.1
*/

/* ==========================================================================
   1. 在庫ページ・お問い合わせ・プライバシーポリシー専用スタイル
      （bu_style.css をベースに復元）
   ========================================================================== */

/* 共通レイアウト */
.inventory-archive .container,
.inventory-single .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-title, .inventory-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.8rem;
  font-weight: bold;
  border-bottom: 2px solid #ddd;
  padding-bottom: 15px;
}

/* ----------------
   在庫一覧ページ
   ---------------- */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.inventory-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.inventory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.inventory-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f0;
}

.inventory-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inventory-info {
  padding: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.inventory-title {
  font-size: 1.2rem;
  margin: 0 0 10px;
  border: none;
  text-align: center;
  padding: 0;
  color: #8F919D;
}

.inventory-highlight {
  color: #c3002c;
  font-size: 1.2rem;
  margin-bottom: 15px;
  background: #fff5f5;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
}

.inventory-highlight strong {
  font-size: 2rem;
}

.tax-note {
  font-size: 1.2rem;
  color: #666;
}

.inventory-detail-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  color: black;
}

.inventory-detail-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #eee;
  padding: 2px 0;
}

.inventory-detail-list li span {
  color: #888;
  font-weight: bold;
}

/* --- リースに含まれる項目（一覧） --- */
.lease-included-note {
    background: #eef7ee;
    border: 1px solid #d4e7d4;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.lease-included-note p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #388e3c;
    margin: 0 0 5px 0;
}
.lease-included-note ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.2rem;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    gap: 0 15px;
}

.inventory-buttons {
  margin-top: auto;
}

.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 12px;
  border-radius: 6px;
  transition: opacity 0.3s;
  cursor: pointer;
  border: none;
  font-weight: bold;
}
.btn:hover { opacity: 0.8; }

.btn-detail { background: #333; color: #fff; }
.btn-inquiry { background: #d32f2f; color: #fff; margin-bottom: 10px; }
.btn-tel { background: #0288d1; color: #fff; margin-bottom: 10px; }
.btn-damage { background: #ffa000; color: #fff; width: 100%; }
.btn-pdf-open {
    background: #c3002c;
    color: #fff;
    display: inline-block;
    padding: 10px 20px;
}

.btn.is-disabled {
  background: #aaa;
  color: #fff;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.7;
}

/* ----------------
   詳細ページ（黒ベース・赤差し色）
   ---------------- */
.inventory-single {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.inventory-single .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-size: 1.1rem;
}

.single-header {
    padding: 0;
    margin: 0;
    border-bottom: none;
}

.inventory-main-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
}

.inventory-photo-block {
    grid-column: 1;
}

.main-image-box {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #444;
  position: relative;
}
.main-image-box img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s ease;
}

.main-image-box.sold-out img {
    filter: brightness(50%) grayscale(50%);
}
.sold-out-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.3);
    z-index: 10;
}
.sold-out-overlay span {
    color: #fff;
    background-color: #c3002c;
    padding: 15px 30px;
    font-size: 2.5rem;
    font-weight: bold;
    border-radius: 8px;
    transform: rotate(-10deg);
    box-shadow: 0 0 15px rgba(255,0,0,0.5);
}

/* サブギャラリー */
.sub-gallery-wrapper {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 6px;
}

.sub-gallery-grid {
    display: grid;
    grid-auto-rows: auto;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 4px;
}

.sub-thumb-item {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s;
}

.sub-thumb-item:hover {
    border-color: #c3002c;
}

.sub-thumb-item img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    display: block;
}

/* 情報サマリーブロック */
.inventory-info-summary {
  grid-column: 2;
  position: sticky;
  top: 20px;
  background: #F0F0F1;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #444;
}

.inventory-title {
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 10px 0;
  text-align: left;
  color: #1D2327;
  border-bottom: 1px solid #444;
  padding-bottom: 20px;
}

.payment-summary-box {
    margin-bottom: 20px;
}

.monthly-payment-highlight {
    text-align: center;
    padding: 10px;
    margin-bottom: 8px;
    background: #FFF5F5;
    border-radius: 6px;
    border: 1px solid #c3002c;
    font-size: 1.3rem;
    color: #c3002c;
}
.monthly-payment-highlight strong {
    font-size: 2.4rem;
    color: #c3002c;
    display: block;
    line-height: 1.2;
}
.tax-note {
    font-size: 0.9rem;
    color: #aaa;
}

.lease-included-detail {
    margin-top: 20px;
    margin-bottom: 20px;
}
.sec-title-small {
    font-size: 1.2rem;
    color: #c3002c;
    margin: 10px 0 10px 0;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}
.included-list-box {
    padding: 8px;
    border-radius: 6px;
}
.included-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.included-list li {
    display: inline-flex;
    align-items: center;
    background: #444;
    color: #fff;
    padding: 5px 5px;
    border-radius: 20px;
    font-size: 1.2rem;
    border: 1px solid #555;
    white-space: nowrap;
}

.action-buttons-area {
  margin-top: 20px;
  padding: 0;
  background: transparent;
  border: none;
}
.btn-inquiry { background: #c3002c; color: #fff; margin-bottom: 10px; }
.btn-tel { background: #555; color: #fff; margin-bottom: 10px; }
.btn-sold-out {
    background: #666;
    color: #ccc;
    cursor: not-allowed;
    border: 1px solid #444;
}

.sec-title {
  font-size: 1.6rem;
  border-left: 5px solid #c3002c;
  padding: 10px 0 10px 15px;
  margin: 30px 0 20px;
  background: transparent;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table th, .spec-table td {
  border: 1px solid #444;
  padding: 12px 15px;
  font-size: 1.2rem;
}
.spec-table th {
  background: #2c2c2c;
  color: #fff;
  width: 35%;
  text-align: left;
}
.spec-table td {
    background: #1a1a1a;
    color: #f0f0f0;
    font-size: 1.1rem;
}
.summary-table th {
    width: 40%;
}

/* 装備仕様 */
.equip-detail-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}
.equip-detail-wrapper > .sec-title {
    grid-column: 1 / -1;
}
.equip-sub-section {
    padding: 15px;
    background: #2c2c2c;
    border-radius: 8px;
}
.equip-title {
  font-size: 1.4rem;
  color: #c3002c;
  border-bottom: 2px solid #444;
  padding-bottom: 5px;
  margin-top: 0;
}
.equip-list {
    list-style: none;
    padding: 10px 0 0 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 20px;
}
.equip-list li {
  font-size: 1.2rem;
  width: calc(50% - 10px);
}
.check-icon {
  color: #c3002c;
  margin-right: 5px;
}

/* レコメンド */
.inventory-recommend {
  grid-column: 1 / -1;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 2px solid #444;
}
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.rec-card {
  text-decoration: none;
  color: #f0f0f0;
  display: block;
}
.rec-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
}
.rec-title { font-weight: bold; margin-top: 5px; font-size: 1.2rem; }
.rec-price { color: #c3002c; font-size: 1.2rem; }

/* 注意事項 */
.lease-notice-box {
    border: 2px dashed #999;
    padding: 15px 18px;
    margin: 35px 0 25px;
    border-radius: 6px;
    background: none;
}
.lease-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lease-notice-list li {
    font-size: 1.25rem;
    line-height: 1.55;
    margin-bottom: 6px;
}
.lease-notice-list li:last-child {
    margin-bottom: 0;
}

/* 車両情報テーブル（4列） */
.car-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.car-info-table th,
.car-info-table td {
    border: 1px solid #444;
    padding: 12px 15px;
    font-size: 1.2rem;
    background: #1a1a1a;
    color: #f0f0f0;
}
.car-info-table th {
    background: #2c2c2c;
    font-weight: bold;
    width: 22%;
}
.car-info-table td {
    width: 28%;
}

/* 在庫一覧へ戻る */
.back-to-inventory {
    margin: 20px 0;
    text-align: left;
}
.btn-back {
    display: inline-block;
    padding: 10px 18px;
    background: #333;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.2s;
}
.btn-back:hover { opacity: 0.8; }
.bottom-back-link {
    text-align: center;
    margin-top: 40px;
}

.bottom-action-buttons {
    margin: 40px auto 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}
.bottom-action-buttons .bottom-btn {
    width: 100%;
    font-size: 1.2rem;
    padding: 14px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
}

.back-to-inventory-outside {
    margin-bottom: 10px;
}
.back-to-inventory-outside a {
    display: inline-block;
    font-size: 1.2rem;
    color: #c3002c;
    text-decoration: none;
    font-weight: bold;
}
.back-to-inventory-outside a:hover { text-decoration: underline; }

/* 契約済みオーバーレイ（一覧ページ用） */
.inventory-card .thumb-wrapper {
    position: relative;
}
.sold-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 2;
}
.sold-label {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    background: #c3002c;
    color: #fff;
    padding: 5px 10px;
    font-size: 2.5rem;
    font-weight: bold;
    border-radius: 4px;
    white-space: nowrap;
}

.inventory-sort {
    margin-bottom: 20px;
    text-align: right;
}
.inventory-sort select {
    padding: 6px 10px;
    font-size: 1.1rem;
}

/* モーダル */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background-color: #fff;
  color: #333;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.close-modal {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
}
.close-modal:hover { color: #000; }
.modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.modal-body iframe {
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

/* 傷チェックボタン */
.damage-check-button-area {
    margin: 20px 0;
    text-align: center;
}
.btn-damage-check {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #004d99;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-damage-check:hover { background: #003366; }
.btn-damage-check i { margin-right: 8px; }

.btn-pdf-open {
    display: inline-block;
    padding: 8px 15px;
    background-color: #c3002c;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: normal;
    transition: opacity 0.3s;
}
.btn-pdf-open:hover { opacity: 0.8; }

/* =========================================
   お問い合わせページ
   ========================================= */
.contact-page-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0px 20px 60px;
    color: #f0f0f0;
}
.contact-page-title {
    font-size: 2.3rem;
    margin-top: 50px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    font-weight: bold;
    text-align: center;
    border-bottom: 3px solid #c3002c;
    letter-spacing: 0.1em;
}
.contact-car-info-box {
    padding: 20px;
    border: 1px solid #444;
    margin-bottom: 40px;
    background: #333;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.contact-car-label {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #aaa;
    font-weight: normal;
    border: none;
    padding: 0;
    text-align: left;
}
.contact-car-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}
.contact-form-area { margin-top: 20px; }
.contact-form-area p {
    margin-bottom: 25px !important;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.6;
}
.wpcf7-form-control-wrap {
    display: block;
    margin-top: 8px;
}
.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-select,
.wpcf7-textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #fff;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-tel:focus,
.wpcf7-select:focus,
.wpcf7-textarea:focus {
    border-color: #c3002c;
    outline: none;
    box-shadow: 0 0 8px rgba(195,0,44,0.4);
}
input.car-display-input {
    background-color: #444;
    color: #eee;
    border: 1px solid #555;
    pointer-events: none;
}
.wpcf7-submit {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 40px auto 0;
    background-color: #c3002c;
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 18px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    box-shadow: 0 5px 15px rgba(195,0,44,0.4);
}
.wpcf7-submit:hover { opacity: 0.9; transform: translateY(-2px); }
.wpcf7-not-valid-tip {
    font-size: 0.9rem;
    color: #ff5252;
    margin-top: 5px;
    font-weight: normal;
}
.wpcf7-select {
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
}

/* プライバシーポリシー */
.privacy-policy { padding: 80px 20px; }
.privacy-policy .container { max-width: 900px; margin: 0 auto; }
.privacy-policy .page-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 60px;
    letter-spacing: 0.05em;
}
.privacy-policy .policy-section { margin-bottom: 40px; }
.privacy-policy h2 {
    font-size: 20px;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 4px solid #c3002f;
}
.privacy-policy p { line-height: 1.9; margin-bottom: 15px; }
.privacy-policy ul { padding-left: 20px; }
.privacy-policy ul li { margin-bottom: 10px; line-height: 1.8; }

/* レスポンシブ */
@media screen and (max-width: 1000px) {
  .inventory-main-content {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .inventory-info-summary {
    grid-column: 1;
    position: static;
    margin-top: 20px;
  }
  .inventory-title { text-align: center; }
  .equip-detail-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .equip-list li { width: 100%; }
  .recommend-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .sub-gallery-wrapper { max-height: 140px; }
    .sub-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
    .sub-thumb-item img { height: 40px; }
}

@media (max-width: 767px) {
    .sub-gallery-wrapper { max-height: 160px; overflow-y: auto; }
    .sub-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
    .sub-thumb-item img { height: 60px; }
}

@media (max-width: 768px) {
    .modal-content { padding: 15px; }
    .btn-damage-check { font-size: 1rem; padding: 10px 15px; }
    .modal-body iframe { height: 400px; }
    .car-info-table th, .car-info-table td { font-size: 1rem; padding: 10px; }
    .car-info-table th { width: 35%; }
}


/* ==========================================================================
   2. 親テーマ（style.css）から引き継ぐ記述：プリローダー制御（チラつき対策）
   ========================================================================== */

/* =============================================
   プリローダー（header.phpのクラス名に統一）
   ============================================= */

/* ローダー本体：画面全体を覆う */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    pointer-events: auto;
}

/* 背景動画レイヤー */
#preloader .video-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}

#preloader .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 動画の上に重ねる暗いオーバーレイ */
#preloader .video-background .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

/* ロゴ・数値・バーを動画より前面に出す */
#preloader .preloader-logo,
#preloader .preloader-percentage,
#preloader .preloader-bar-container {
    position: relative;
    z-index: 10;
}

/* ロゴ */
.preloader-logo {
    width: 150px;
    margin-bottom: 30px;
}

/* パーセンテージ数値 */
.preloader-percentage {
    color: #c3002c;
    font-size: 28px;
    font-weight: bold;
    font-family: "Oswald", sans-serif;
    margin-bottom: 15px;
    min-width: 4ch;       /* "100%" の幅を確保してガタつきを防止 */
    text-align: center;
}

/* プログレスバー本体（header.phpのクラス名 .preloader-bar に合わせる） */
.preloader-bar {
    height: 100%;
    width: 0%;
    background-color: #c3002c;
    transition: width 0.08s linear;
}

/* トップページ以外は非表示 */
body:not(.home) #preloader {
    display: none !important;
}

/* ローディング中：header / main / footer を隠す */
body.is-loading main,
body.is-loading header,
body.is-loading footer {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ローディング完了後：ふわっと表示 */
body:not(.is-loading) main,
body:not(.is-loading) header,
body:not(.is-loading) footer {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease;
}


/* ==========================================================================
   3. 【修正済み】スクロールアニメーション（!important競合を解消した最終版）
   ========================================================================== */

/*
 * ★ 修正ポイント ★
 * 旧版では *[animation] に opacity:0 !important を常時かけていたため、
 * JSがアニメーションクラスを付与しても !important 同士が競合してアニメーションが動かなかった。
 * → *[animation] への opacity指定を廃止し、.invisible クラスだけで制御する方式に統一。
 */

/* common.jsが付与する「まだ発火していない」状態 */
.invisible {
    opacity: 0 !important;
    /* transformを初期化しておく（fadeInUp等のfromと同じ開始位置） */
    transform: translate(0, 0);
}

/* ── JSによってクラスが付与された瞬間にアニメーション開始 ── */
.fadeIn {
    animation: customFadeIn 1.2s ease forwards;
}

.fadeInUp {
    animation: customFadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.fadeInLeft {
    animation: customFadeInLeft 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.fadeInRight {
    animation: customFadeInRight 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* ── キーフレーム定義 ── */
@keyframes customFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes customFadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes customFadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes customFadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}


/* ── レスポンシブ（スマホ用調整） ── */
@media (max-width: 768px) {
    .modal-content {
        padding: 15px;
    }
    .btn-damage-check {
        font-size: 1rem;
        padding: 10px 15px;
    }
    .modal-body iframe {
        height: 400px;
    }
}


/* ==========================================================================
   3.5 サイトヘッダー（全ページ共通ナビゲーション）
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: background .3s;
}

.site-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ロゴ */
.site-header__logo img {
    height: 36px;
    width: auto;
    display: block;
}

/* トップページではロゴ非表示 */
.site-header__logo--hidden {
    visibility: hidden;
    pointer-events: none;
    width: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* ナビゲーション */
.site-header__nav {
    margin-left: auto;
}

.site-header__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-header__menu li a {
    display: block;
    padding: 8px 14px;
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255,255,255,.88);
    text-decoration: none;
    letter-spacing: .04em;
    border-radius: 3px;
    transition: color .2s, background .2s;
    white-space: nowrap;
}

.site-header__menu li a:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
}

/* お問合せボタン */
.site-header__menu-cta {
    background: #c3002c !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: 8px 18px !important;
}

.site-header__menu-cta:hover {
    background: #a0001f !important;
}

/* ハンバーガー（SP用） */
.site-header__hamburger {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}

.site-header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

.site-header__hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-header__hamburger.is-open span:nth-child(2) {
    opacity: 0;
}
.site-header__hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ヘッダー分の余白をmainに追加（ページ別） */
body:not(.home) main {
    padding-top: 64px;
}

/* SP */
@media (max-width: 768px) {
    .site-header__hamburger {
        display: flex;
    }
    .site-header__nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(0,0,0,.95);
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .site-header__nav.is-open {
        display: block;
    }
    .site-header__menu {
        flex-direction: column;
        gap: 0;
        padding: 8px 0 16px;
    }
    .site-header__menu li {
        width: 100%;
    }
    .site-header__menu li a {
        padding: 14px 24px;
        font-size: 1.5rem;
        border-radius: 0;
    }
    .site-header__menu-cta {
        margin: 8px 24px 0 !important;
        border-radius: 4px !important;
        text-align: center;
    }
}


/* ==========================================================================
   4. トップページ (front-page.php) 専用スタイル
   ========================================================================== */

/* ── 共通変数 ── */
:root {
    --fp-red:    #c3002c;
    --fp-dark:   #111111;
    --fp-gray:   #f5f5f5;
    --fp-border: #e0e0e0;
    --fp-radius: 4px;
}

/* ── セクション共通 ── */
#fp-intro,
#fp-lineup,
#fp-faq {
    padding: 80px 0;
}
#fp-flow,
#fp-corporate,
#fp-cta {
    padding: 80px 0;
}

/* ── 背景色（全セクション黒・グレー系で統一） ── */
.fp-bg-dark { background: #0d0d0d; }
.fp-bg-red  { background: var(--fp-red); }
#fp-intro   { background: #1a1a1a; }
#fp-lineup  { background: #111; }
#fp-faq     { background: #1a1a1a; }

/* ────────────────────────────────────────────
   MV
──────────────────────────────────────────── */
#mv {
    position: relative;
    width: 100%;
    height: 80vh;        /* 親テーマの100vhを80vhに上書き */
    min-height: 500px;
    overflow: hidden;
}

/* スライダーは親(#mv)の高さに追従 */
#mv .fade-slider,
#mv .swiper {
    width: 100%;
    height: 100%;
}

#mv .swiper-slide {
    width: 100%;
    height: 100%;
}

/* スライド背景画像 */
#mv .photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.mv-placeholder {
    height: 80vh;
    min-height: 500px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mv-placeholder__label {
    color: #666;
    font-size: 1.4rem;
}

.mv-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.42);
    padding: 20px;
    z-index: 10;
}

.mv-copy {
    margin-bottom: 32px;
}

/* MVロゴ画像 */
.mv-copy__logo {
    margin-bottom: 24px;
}
.mv-copy__logo img {
    height: 160px;
    width: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.7));
}
@media (max-width: 768px) {
    #mv {
        height: 100svh;
        min-height: 520px;
    }

    /* 固定ヘッダー64px分だけ上パディングを確保 */
    .mv-overlay {
        padding: 80px 24px 40px;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        width: 100%;
    }

    .mv-copy {
        margin-bottom: 24px;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .mv-copy__logo {
        margin-bottom: 14px;
    }

    .mv-copy__logo img {
        height: 80px;
        margin: 0 auto;
    }

    .mv-copy__ttl {
        font-size: 2.6rem;
        margin-bottom: 12px;
    }

    .mv-copy__sub {
        font-size: 1.3rem;
    }

    .mv-btns {
        display: flex;
        flex-direction: column;
        align-items: stretch;   /* 子要素を親幅いっぱいに伸ばす */
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .mv-btns .fp-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 14px 20px;
        font-size: 1.4rem;
        max-width: none; /* 他のルールのmax-widthを無効化 */
    }
}
.mv-copy__ttl {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 16px;
}
.mv-copy__sub {
    font-size: 1.4rem;
    color: rgba(255,255,255,.85);
}

.mv-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ────────────────────────────────────────────
   ボタン共通
──────────────────────────────────────────── */
.fp-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--fp-radius);
    border: 2px solid transparent;
    transition: background .2s, color .2s, border-color .2s;
    cursor: pointer;
    white-space: nowrap;
}
.fp-btn--primary {
    background: var(--fp-red);
    color: #fff;
    border-color: var(--fp-red);
}
.fp-btn--primary:hover {
    background: #a0001f;
    border-color: #a0001f;
}
.fp-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.fp-btn--ghost:hover {
    background: #fff;
    color: var(--fp-dark);
}
.fp-btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.6);
}
.fp-btn--outline:hover {
    background: var(--fp-red);
    color: #fff;
    border-color: var(--fp-red);
}
.fp-btn--white {
    background: #fff;
    color: var(--fp-red);
    border-color: #fff;
}
.fp-btn--white:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.fp-btn-wrap {
    text-align: center;
    margin-top: 48px;
}

/* ────────────────────────────────────────────
   セクション見出し
──────────────────────────────────────────── */
.fp-ttl {
    text-align: center;
    margin-bottom: 48px;
}
.fp-ttl__en {
    display: block;
    font-size: 1.1rem;
    letter-spacing: .2em;
    color: var(--fp-red);
    font-weight: 700;
    margin-bottom: 10px;
}
.fp-ttl__ja {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 14px;
    color: #fff;
}
.fp-ttl__sub {
    font-size: 1.7rem;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    line-height: 1.8;
}
/* FLOW・CORPORATE など暗い背景用（既存クラスは統一済みのため差分なし） */
.fp-ttl--light .fp-ttl__en { color: #e87a8a; }
.fp-ttl--light .fp-ttl__ja { color: #fff; }
.fp-ttl--light .fp-ttl__sub { color: rgba(255,255,255,.75); }

/* ────────────────────────────────────────────
   仮プレースホルダー画像
──────────────────────────────────────────── */
.fp-img-placeholder {
    background: #2c2c2c;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fp-img-placeholder span {
    color: #888;
    font-size: 1.3rem;
    font-weight: 500;
}
.fp-img-placeholder--card {
    width: 100%;
    height: 100%;
}
.fp-img-placeholder--cta {
    position: absolute;
    inset: 0;
    background: #1a1a1a;
}

/* ────────────────────────────────────────────
   INTRO: ビジュアル写真
──────────────────────────────────────────── */
.fp-intro-visual {
    margin-bottom: 48px;
}

.fp-intro-img {
    background: #2c2c2c; /* 画像未設置時のフォールバック */
    width: 100%;
    height: 320px;
    border-radius: 6px;
    overflow: hidden;
}

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

/* ────────────────────────────────────────────
   INTRO: 3つの強みカード
──────────────────────────────────────────── */
.fp-intro-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.fp-intro-card {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: var(--fp-radius);
    padding: 20px 24px 24px;
    text-align: center;
    border-top: 3px solid var(--fp-red);
}
.fp-intro-card__num {
    display: block;
    font-size: 5rem;
    font-weight: 900;
    font-family: "Oswald", sans-serif;
    letter-spacing: -.02em;
    color: var(--fp-red);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(195,0,44,.35);
}
.fp-intro-card__ttl {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: #fff;
}
.fp-intro-card__txt {
    font-size: 1.35rem;
    color: rgba(255,255,255,.72);
    line-height: 1.8;
}

/* ────────────────────────────────────────────
   FLOW: ご利用の流れ
──────────────────────────────────────────── */
.fp-flow-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.fp-flow-step {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    align-items: stretch;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--fp-radius);
    overflow: visible; /* 左右スライドインのため visible に */
}
/* 偶数行は画像を右に */
.fp-flow-step:nth-child(even) {
    grid-template-columns: 1fr 260px;
}
.fp-flow-step:nth-child(even) .fp-flow-step__img {
    order: 2;
}
.fp-flow-step:nth-child(even) .fp-flow-step__body {
    order: 1;
}
.fp-flow-step__img {
    height: 220px;
    min-height: 100%;
    border-radius: var(--fp-radius) 0 0 var(--fp-radius);
    overflow: hidden;
}
.fp-flow-step__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fp-flow-step:nth-child(even) .fp-flow-step__img {
    border-radius: 0 var(--fp-radius) var(--fp-radius) 0;
}
.fp-flow-step__body {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.fp-flow-step__num {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .15em;
    color: #fff;
    background: var(--fp-red);
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 12px;
    align-self: flex-start;
}
.fp-flow-step__ttl {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}
.fp-flow-step__txt {
    font-size: 1.35rem;
    color: rgba(255,255,255,.8);
    line-height: 1.85;
}

/* ────────────────────────────────────────────
   LINEUP: 在庫カード
──────────────────────────────────────────── */
.fp-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 0;
}
.fp-vehicle-card {
    background: #222;
    border: 1px solid #333;
    border-radius: var(--fp-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
    transition: transform .2s, box-shadow .2s;
}
.fp-vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    border-color: var(--fp-red);
}
.fp-vehicle-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.fp-vehicle-card__img {
    height: 200px;
    overflow: hidden;
    background: #333;
}
.fp-vehicle-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fp-vehicle-card__body {
    padding: 20px;
}
.fp-vehicle-card__ttl {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}
.fp-vehicle-card__price {
    font-size: 1.35rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 10px;
}
.fp-vehicle-card__price strong {
    font-size: 1.7rem;
    color: var(--fp-red);
    font-weight: 900;
}
.fp-vehicle-card__price small {
    font-size: 1.1rem;
    color: rgba(255,255,255,.5);
}
.fp-vehicle-card__more {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fp-red);
    margin-top: 4px;
}
.fp-no-stock {
    text-align: center;
    color: #666;
    font-size: 1.4rem;
    grid-column: 1 / -1;
    padding: 40px 0;
}

/* ────────────────────────────────────────────
   CORPORATE: 法人向け
──────────────────────────────────────────── */
.fp-corporate-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
}
.fp-corporate-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .2em;
    color: rgba(255,255,255,.6);
    margin-bottom: 10px;
}
.fp-corporate-ttl {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 14px;
}
.fp-corporate-sub {
    font-size: 1.4rem;
    color: rgba(255,255,255,.8);
    line-height: 1.8;
}
.fp-corporate-btn {
    flex-shrink: 0;
}

/* ────────────────────────────────────────────
   FAQ
──────────────────────────────────────────── */
.fp-faq-list {
    max-width: 760px;
    margin: 0 auto;
}
.fp-faq-item {
    border-bottom: 1px solid #333;
    padding: 24px 0;
}
.fp-faq-item:first-child {
    border-top: 1px solid #333;
}
.fp-faq-item__q,
.fp-faq-item__a {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    font-size: 1.4rem;
    line-height: 1.7;
}
.fp-faq-item__q {
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.fp-faq-item__a {
    color: rgba(255,255,255,.72);
}
.fp-faq-item__q > span,
.fp-faq-item__a > span {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2px;
}
.fp-faq-item__q > span {
    background: var(--fp-red);
    color: #fff;
}
.fp-faq-item__a > span {
    background: #444;
    color: #fff;
}

/* ────────────────────────────────────────────
   CTA バナー
──────────────────────────────────────────── */
.mv-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fp-cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #111;
}
.fp-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#fp-cta {
    position: relative;
    padding: 0;
}
.fp-cta-overlay {
    position: relative;
    z-index: 1;
    background: rgba(0,0,0,.65);
    padding: 100px 0;
}
.fp-cta-inner {
    text-align: center;
}
.fp-cta-ttl {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
}
.fp-cta-sub {
    font-size: 1.5rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 40px;
    line-height: 1.8;
}
.fp-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ────────────────────────────────────────────
   レスポンシブ
──────────────────────────────────────────── */
@media (max-width: 900px) {
    .fp-intro-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .fp-vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* FLOW: タブレットでは1カラム（画像上・テキスト下） */
    .fp-flow-step,
    .fp-flow-step:nth-child(even) {
        grid-template-columns: 1fr;
    }
    .fp-flow-step:nth-child(even) .fp-flow-step__img {
        order: 0;
    }
    .fp-flow-step:nth-child(even) .fp-flow-step__body {
        order: 0;
    }
    .fp-flow-step__img {
        height: 200px;
        min-height: unset;
    }
    .fp-flow-step__body {
        padding: 24px 28px;
    }
    .fp-corporate-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    #fp-intro,
    #fp-lineup,
    #fp-faq,
    #fp-flow,
    #fp-corporate {
        padding: 60px 0;
    }
    .fp-vehicle-grid {
        grid-template-columns: 1fr;
    }
    .mv-btns,
    .fp-cta-btns {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .fp-btn {
        display: block;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        box-sizing: border-box;
    }
    .fp-btn-wrap {
        display: flex;
        justify-content: center;
    }
    .fp-flow-step__ttl {
        font-size: 1.6rem;
    }
    .fp-flow-step__body {
        padding: 20px;
    }
    .fp-cta-overlay {
        padding: 80px 0;
    }
}

/* ────────────────────────────────────────────
   TOPページ ギャラリープレビューセクション
──────────────────────────────────────────── */
#fp-gallery {
    background: #0d0d0d;
    padding: 80px 0;
}

.fp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 0;
}

.fp-gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #222;
    border-radius: 2px;
}

.fp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.fp-gallery-item:hover img {
    transform: scale(1.05);
}

.fp-gallery-item.fp-img-placeholder {
    height: auto;
    aspect-ratio: 4 / 3;
    background: #2a2a2a;
}

@media (max-width: 768px) {
    .fp-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .fp-gallery-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
}


/* ==========================================================================
   5. 固定ページ共通スタイル（メリット・流れ・法人・ギャラリー・Q&A）
   ========================================================================== */

/* ── Q&Aリスト ── */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid #2e2e2e;
}

.faq-item:first-child {
    border-top: 1px solid #2e2e2e;
}

.faq-item__q,
.faq-item__a {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 4px;
    font-size: 1.45rem;
    line-height: 1.75;
}

.faq-item__q {
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

.faq-item__a {
    color: rgba(255,255,255,.75);
    padding-top: 0;
    padding-bottom: 24px;
}

.faq-item__q > span,
.faq-item__a > span {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    font-family: "Oswald", sans-serif;
    margin-top: 2px;
}

.faq-item__q > span {
    background: #c3002c;
    color: #fff;
}

.faq-item__a > span {
    background: #3a3a3a;
    color: #fff;
}

.inner-page {
    background: #111;
    color: #fff;
    min-height: 60vh;
}

/* ── コンテナ ── */
.inner-page .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── ヒーローセクション ── */
.pg-hero {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.pg-hero__bg {
    position: absolute;
    inset: 0;
    background: #222;
    z-index: 0;
}

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

.pg-hero__overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    background: rgba(0,0,0,.55);
    height: 100%;
    display: flex;
    align-items: center;
}

.pg-hero__en {
    font-size: 1.1rem;
    letter-spacing: .2em;
    color: #c3002c;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.pg-hero__ttl {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 16px;
}

.pg-hero__sub {
    font-size: 1.5rem;
    color: rgba(255,255,255,.8);
    font-weight: 600;
}

/* ── セクション ── */
.pg-section {
    padding: 80px 0;
    background: #111;
}

.pg-section--dark {
    background: #1a1a1a;
}

/* ── セクション見出し ── */
.pg-ttl {
    text-align: center;
    margin-bottom: 56px;
}

.pg-ttl__en {
    display: block;
    font-size: 1.1rem;
    letter-spacing: .2em;
    color: #c3002c;
    font-weight: 700;
    margin-bottom: 10px;
}

.pg-ttl__ja {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.pg-ttl__sub {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    line-height: 1.8;
}

/* ── 悩みリスト ── */
.pg-worry-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pg-worry-list li {
    background: #1e1e1e;
    border: 1px solid #333;
    border-left: 4px solid #c3002c;
    padding: 16px 20px;
    font-size: 1.5rem;
    color: rgba(255,255,255,.85);
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── イントロリード ── */
.pg-intro-lead {
    text-align: center;
    font-size: 1.6rem;
    line-height: 2;
    color: rgba(255,255,255,.85);
    max-width: 760px;
    margin: 0 auto;
}

.pg-intro-lead strong {
    color: #c3002c;
    font-weight: 900;
}

/* ── ポイントブロック ── */
.pg-point {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: center;
    position: relative;
}

.pg-point--rev {
    grid-template-columns: 380px 1fr;
}

.pg-point__num {
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 8rem;
    font-weight: 900;
    font-family: "Oswald", sans-serif;
    color: rgba(195,0,44,.15);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.pg-point__ttl {
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.35;
}

.pg-point__ttl small {
    font-size: 1.4rem;
    color: rgba(255,255,255,.5);
    font-weight: 400;
}

.pg-point__txt {
    font-size: 1.5rem;
    color: rgba(255,255,255,.8);
    line-height: 1.9;
    margin-bottom: 16px;
}

.pg-point__txt strong {
    color: #fff;
    font-weight: 700;
}

.pg-point__list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pg-point__list li {
    font-size: 1.4rem;
    color: rgba(255,255,255,.8);
    padding-left: 4px;
}

.pg-point__memo {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 14px 18px;
    margin-top: 16px;
    font-size: 1.35rem;
    color: rgba(255,255,255,.7);
}

.pg-point__img {
    width: 100%;
    height: 300px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

/* ── 選択肢カード ── */
.pg-choice-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.pg-choice-cards--sm {
    grid-template-columns: repeat(3, 1fr); /* SP含め常に横3列 */
    gap: 10px;
    margin-top: 16px;
}
.pg-choice-cards--sm .pg-choice-card {
    padding: 12px 10px;
    text-align: center;
}
.pg-choice-cards--sm .pg-choice-card__num {
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.pg-choice-cards--sm .pg-choice-card h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.pg-choice-cards--sm .pg-choice-card p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.pg-choice-card {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}

.pg-choice-card__num {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    background: #c3002c;
    color: #fff;
    font-weight: 900;
    border-radius: 50%;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.pg-choice-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.pg-choice-card p {
    font-size: 1.3rem;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
}

/* ── 比較テーブル ── */
.pg-compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pg-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.35rem;
}

.pg-compare-table th,
.pg-compare-table td {
    border: 1px solid #333;
    padding: 14px 16px;
    text-align: center;
    vertical-align: middle;
    color: rgba(255,255,255,.85);
    background: #1a1a1a;
}

.pg-compare-table thead th {
    background: #2a2a2a;
    font-weight: 700;
    color: #fff;
    font-size: 1.3rem;
}

.pg-compare-table thead th:first-child {
    text-align: left;
}

.pg-compare-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.pg-compare-table__hl {
    background: rgba(195,0,44,.12) !important;
    border-color: #c3002c !important;
    color: #fff !important;
}

.pg-compare-table__hl strong {
    color: #c3002c;
    font-weight: 900;
}

.pg-tax-note {
    font-size: 1.2rem;
    color: rgba(255,255,255,.5);
    margin-top: 16px;
}

.pg-tax-table-wrap {
    margin: 24px 0;
    overflow-x: auto;
}

/* ── メリットグリッド（法人） ── */
.pg-merit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pg-merit-card {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-top: 3px solid #c3002c;
    border-radius: 4px;
    padding: 32px 28px;
}

.pg-merit-card__icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.pg-merit-card__ttl {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.pg-merit-card__txt {
    font-size: 1.4rem;
    color: rgba(255,255,255,.75);
    line-height: 1.85;
}

/* ── フロー簡易版（法人ページ） ── */
.pg-flow-simple {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.pg-flow-simple__item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 24px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid #333;
}

.pg-flow-simple__item:last-child {
    border-bottom: none;
}

.pg-flow-simple__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #c3002c;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
    border-radius: 50%;
    flex-shrink: 0;
    font-family: "Oswald", sans-serif;
}

.pg-flow-simple__item h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.pg-flow-simple__item p {
    font-size: 1.4rem;
    color: rgba(255,255,255,.75);
    line-height: 1.8;
}

/* ── ステップページ ── */
.pg-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.pg-step {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    padding: 32px;
    position: relative;
}

.pg-step__head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.pg-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 80px;
    height: 80px;
    background: #c3002c;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 900;
    border-radius: 50%;
    flex-shrink: 0;
    font-family: "Oswald", sans-serif;
    line-height: 1.1;
    text-align: center;
}

.pg-step__ttl {
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}

.pg-step__tag {
    font-size: 1.2rem;
    color: rgba(255,255,255,.5);
}

.pg-step__body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

/* 偶数STEP（02/04/06）は画像が左→テキスト列を広く */
.pg-step:nth-child(even) .pg-step__body {
    grid-template-columns: 280px 1fr;
}

.pg-step__txt {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pg-step__txt p {
    font-size: 1.45rem;
    color: rgba(255,255,255,.82);
    line-height: 1.85;
}

.pg-step__list {
    list-style: none;
    padding: 0;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pg-step__list li {
    font-size: 1.35rem;
    color: rgba(255,255,255,.75);
}

.pg-step__img {
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
}

.pg-step__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-step__arrow {
    text-align: center;
    font-size: 2rem;
    color: #c3002c;
    margin-top: 24px;
    display: block;
}

.pg-step--last .pg-step__arrow {
    display: none;
}

/* ── 注意事項ボックス ── */
.pg-notice-box {
    background: #1a1a1a;
    border: 1px dashed #555;
    border-radius: 6px;
    padding: 28px 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pg-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pg-notice-list li {
    font-size: 1.4rem;
    color: rgba(255,255,255,.72);
    line-height: 1.75;
    padding-left: 20px;
    position: relative;
}

.pg-notice-list li::before {
    content: '※';
    position: absolute;
    left: 0;
    color: #888;
}

/* ── CTA ── */
.pg-cta {
    background: #0d0d0d;
    padding: 100px 0;
    border-top: 1px solid #222;
}

.pg-cta__inner {
    text-align: center;
}

.pg-cta__ttl {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.pg-cta__sub {
    font-size: 1.5rem;
    color: rgba(255,255,255,.75);
    line-height: 1.9;
    margin-bottom: 40px;
    font-weight: 600;
}

.pg-cta__btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── ギャラリーページ ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    background: #222;
}

.gallery-item__link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.gallery-item:hover .gallery-item__img {
    transform: scale(1.05);
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__overlay span {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    border: 2px solid #fff;
    padding: 8px 20px;
    border-radius: 4px;
}

.gallery-item__placeholder {
    width: 100%;
    height: 100%;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.3rem;
}

/* ギャラリーモーダル */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0,0,0,.92);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gallery-modal.is-open {
    display: flex;
}

.gallery-modal__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.gallery-modal__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3.6rem;
    cursor: pointer;
    line-height: 1;
}

/* ── レスポンシブ ── */
@media (max-width: 960px) {
    .pg-point,
    .pg-point--rev {
        grid-template-columns: 1fr;
    }
    .pg-point__num {
        position: static;
        font-size: 4rem;
        margin-bottom: 8px;
    }
    .pg-merit-grid {
        grid-template-columns: 1fr;
    }
    .pg-choice-cards:not(.pg-choice-cards--sm) {
        grid-template-columns: 1fr;
    }
    .pg-step__body {
        grid-template-columns: 1fr;
    }
    /* SP：偶数STEPの列幅上書きをリセット（画像・テキストを縦積みに） */
    .pg-step:nth-child(even) .pg-step__body {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pg-hero {
        height: 300px;
    }
    .pg-section {
        padding: 60px 0;
    }
    .pg-cta {
        padding: 72px 0;
    }
    .pg-step {
        padding: 24px 16px;
    }
    .pg-step__num {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    .pg-cta__btns {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .pg-cta__btns .fp-btn {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
}