/* Honda Cars 三重中 — 公開フロントCSS
 * Honda dealer UI を参考にしたレイアウト。サイトのテーマに合わせて微調整可。
 */

.hcm-empty {
    padding: 40px 16px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* ============================================================
 * カテゴリ（車名グリッド）
 * ============================================================ */
.hcm-category {
    margin: 0 auto;
    max-width: 1080px;
    padding: 16px;
}

.hcm-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.hcm-grid__item {
    list-style: none;
    margin: 0;
}

.hcm-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.hcm-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.hcm-card__photo {
    display: block;
    background: #f5f5f5;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    text-align: center;
}

.hcm-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.hcm-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hcm-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.hcm-card__count {
    font-size: 12px;
    color: #666;
}

.hcm-card__cat {
    font-size: 11px;
    color: #555;
    background: #f3f3f3;
    padding: 2px 8px;
    border-radius: 999px;
    align-self: flex-start;
}

.hcm-card__cta {
    margin-top: 6px;
    font-size: 13px;
    color: #c00; /* Honda Red 系 */
    font-weight: 600;
}

/* ============================================================
 * モデル詳細（試乗・展示車一覧）
 * ============================================================ */
.hcm-model {
    margin: 0 auto;
    max-width: 1080px;
    padding: 16px;
}

.hcm-model__head {
    border-bottom: 2px solid #c00;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.hcm-model__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #111;
}

.hcm-model__count {
    font-size: 13px;
    color: #555;
    margin: 0;
}

.hcm-cars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.hcm-car {
    list-style: none;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hcm-car__photo {
    background: #f5f5f5;
    aspect-ratio: 4 / 3;
}

.hcm-car__photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.hcm-car__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hcm-car__name {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #111;
}

.hcm-car__grade {
    font-size: 13px;
    color: #555;
    margin: 0 0 4px;
}

.hcm-spec {
    margin: 0;
    display: grid;
    grid-template-columns: 7em 1fr;
    row-gap: 4px;
    column-gap: 8px;
    font-size: 12px;
}

.hcm-spec dt {
    color: #888;
}

.hcm-spec dd {
    margin: 0;
    color: #222;
}

.hcm-tags {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.hcm-tag {
    list-style: none;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eee;
    color: #333;
}

.hcm-tag--shijo {
    background: #fde9ea;
    color: #c00;
}

.hcm-tag--hybrid {
    background: #e6f4ec;
    color: #0a8048;
}

.hcm-tag--sensing {
    background: #e8f0fb;
    color: #0a4ea0;
}

.hcm-tag--tenji {
    background: #f0f0f0;
    color: #555;
}

/* dev mode バナー */
.hcm-devbar {
    margin: 0 0 12px;
    padding: 8px 12px;
    background: #fff8e5;
    border-left: 4px solid #f0b849;
    color: #5a3a00;
    font-size: 12px;
}

/* dev タグ on card */
.hcm-card__devtag {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 8px;
    background: #f0b849;
    color: #5a3a00;
    font-size: 10px;
    border-radius: 999px;
    align-self: flex-start;
}
.hcm-card--nolink {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    color: inherit;
    overflow: hidden;
    opacity: 0.85;
}

/* カテゴリグループ見出し */
.hcm-category__group {
    margin-bottom: 28px;
}
.hcm-category__group-title {
    margin: 0 0 12px;
    padding: 6px 12px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #333;
    border-left: 4px solid #c00;
}

/* 車両カードのヘッダ (タグ＋店舗名) — 旧detail構造で使用 */
.hcm-car__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}
.hcm-car__store {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}
.hcm-car__cta {
    margin: 0;
    padding: 12px 14px;
    border-top: 1px solid #eee;
    background: #fafafa;
    text-align: center;
}

/* ============================================================
 * 新 detail 構造: 1枠 (画像 + バリアント一覧)
 * PC: 画像左 / 一覧右   SP: 画像上 / 一覧下
 * v2.4: 1画面により多くの店舗が映り込むよう、一覧側を広く取る
 * ============================================================ */
.hcm-detail__frame {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 24px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    margin-bottom: 24px;
}
.hcm-detail__media {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hcm-detail__media img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 3px;
}
.hcm-detail__catalog {
    margin: 0;
    text-align: center;
}
.hcm-detail__variants {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.hcm-detail__variants-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    border-left: 3px solid #c00;
    padding: 2px 0 2px 10px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.hcm-detail__variants-meta {
    font-size: 11px;
    font-weight: 500;
    color: #666;
}
.hcm-variants {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 560px;
    overflow-y: auto;
}
/* 店舗別グルーピングモード: グリッドで複数店舗が並ぶ */
.hcm-variants--by-store {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}
.hcm-variant {
    list-style: none;
    border: 1px solid #e2e2e2;
    border-radius: 3px;
    background: #fff;
    padding: 8px 10px;
}
.hcm-variant--store {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hcm-variant__head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.hcm-variant__store {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    flex: 1 1 auto;
    min-width: 0;
}
.hcm-variant__store-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted #999;
}
.hcm-variant__store-link:hover {
    color: #c00;
    border-bottom-color: #c00;
}
.hcm-variant__count {
    flex: 0 0 auto;
    font-size: 11px;
    color: #666;
    background: #f3f3f3;
    border-radius: 999px;
    padding: 1px 8px;
}
.hcm-variant__cars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hcm-variant__car {
    list-style: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 6px;
    row-gap: 2px;
    padding: 4px 0;
    border-top: 1px dotted #eee;
    font-size: 12px;
}
.hcm-variant__car:first-child { border-top: 0; }
.hcm-variant__car-tag {
    grid-column: 1;
    grid-row: 1 / span 2;
}
.hcm-variant__car-grade {
    grid-column: 2;
    grid-row: 1;
    color: #222;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
/* 外装 / 内装 のカラーは行を分け、それぞれにラベルを付ける */
.hcm-variant__car-spec {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    color: #555;
    font-size: 11px;
}
.hcm-variant__car-color {
    display: flex;
    align-items: center;
    gap: 6px;
}
.hcm-variant__car-color-label {
    flex: 0 0 auto;
    min-width: 3.2em;
    padding: 1px 5px;
    border-radius: 3px;
    background: #f0f0f0;
    color: #555;
    font-size: 10px;
    line-height: 1.6;
    text-align: center;
    letter-spacing: .04em;
}
.hcm-variant__car-swatch {
    display: inline-flex;
    align-items: center;
}
/* 2行構成になるぶん、swatch は控えめなサイズに */
.hcm-variant__car-spec .hcm-swatch--ext { width: 18px; height: 18px; }
.hcm-variant__car-spec .hcm-swatch--int { width: 9px;  height: 18px; }
.hcm-variant__car-tx {
    color: #555;
}
.hcm-variant__car-cta {
    grid-column: 3;
    grid-row: 1 / span 2;
}
.hcm-variant__car-cta .hcm-reserve-btn {
    padding: 4px 10px;
    font-size: 11px;
}
/* 店舗内 2台目以降のアコーディオン */
.hcm-variant__car--extra.is-collapsed {
    display: none !important;
}
.hcm-variant__more {
    display: inline-block;
    margin: 6px 0 0;
    padding: 4px 10px;
    background: #fff;
    color: #c00;
    border: 1px dashed #c00;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
}
.hcm-variant__more:hover,
.hcm-variant__more:focus {
    background: #fde9ea;
}
.hcm-spec--compact {
    grid-template-columns: 5em 1fr;
    row-gap: 3px;
    column-gap: 8px;
    font-size: 12px;
}
.hcm-spec--compact dt {
    color: #777;
}
.hcm-spec--compact .hcm-spec__txt {
    font-size: 11px;
    color: #444;
}
.hcm-spec--compact .hcm-swatch--ext {
    width: 18px; height: 18px;
}
.hcm-spec--compact .hcm-swatch--int {
    width: 9px; height: 18px;
}

@media (max-width: 800px) {
    .hcm-detail__frame {
        grid-template-columns: 1fr;
    }
    .hcm-variants {
        max-height: none;
    }
}

/* 試乗予約ボタン（バリアント内） */
.hcm-variant__cta {
    margin: 8px 0 0;
    text-align: right;
}
.hcm-reserve-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    color: #c00;
    border: 1px solid #c00;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.hcm-reserve-btn:hover,
.hcm-reserve-btn:focus {
    background: #c00;
    color: #fff;
}

/* 「詳細を見る」 ボタン disabled */
.hcm-detail-btn--disabled {
    background: #ccc;
    color: #666 !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================================
 * モーダル（試乗予約オーバーレイ）
 * ============================================================ */
body.hcm-modal-open { overflow: hidden; }

.hcm-modal[hidden] { display: none !important; }
.hcm-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.hcm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: hcm-fade-in 0.18s ease;
}
.hcm-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.25);
    animation: hcm-slide-up 0.22s ease;
}
@keyframes hcm-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes hcm-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hcm-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: 0;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
}
.hcm-modal__close:hover { color: #000; }

.hcm-modal__head {
    margin-bottom: 16px;
    border-bottom: 2px solid #c00;
    padding-bottom: 12px;
}
.hcm-modal__eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    color: #c00;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.hcm-modal__title {
    margin: 0;
    font-size: 18px;
    color: #111;
    font-weight: 700;
}
.hcm-modal__sub {
    margin: 4px 0 0;
    font-size: 12px;
    color: #555;
}

.hcm-modal__lead {
    margin: 0 0 14px;
    font-size: 13px;
    color: #444;
}

.hcm-modal__step[hidden] { display: none; }

.hcm-modal__actions {
    margin: 16px 0 0;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.hcm-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.05s ease;
}
.hcm-btn:active { transform: translateY(1px); }
.hcm-btn--primary {
    background: #c00;
    color: #fff;
}
.hcm-btn--primary:hover { background: #a00; }
.hcm-btn--secondary {
    background: #f3f3f3;
    color: #333;
    border-color: #ccc;
}
.hcm-btn--secondary:hover { background: #e9e9e9; }

/* 確認画面の項目リスト */
.hcm-confirm-list {
    margin: 0;
    display: grid;
    grid-template-columns: 8em 1fr;
    row-gap: 6px;
    column-gap: 12px;
    font-size: 13px;
}
.hcm-confirm-list dt {
    color: #888;
    border-bottom: 1px dotted #eee;
    padding-bottom: 4px;
}
.hcm-confirm-list dd {
    margin: 0;
    color: #222;
    border-bottom: 1px dotted #eee;
    padding-bottom: 4px;
    word-break: break-word;
}
.hcm-confirm-empty { color: #aaa; font-style: normal; }

/* 完了 / エラーアイコン */
.hcm-modal__done-icon,
.hcm-modal__err-icon {
    margin: 8px 0 16px;
    text-align: center;
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 700;
    margin-left: auto;
    margin-right: auto;
}
.hcm-modal__done-icon { background: #d1fae5; color: #047857; }
.hcm-modal__err-icon  { background: #fee2e2; color: #b91c1c; }

/* 送信中ビジーオーバーレイ */
.hcm-modal__busy {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.86);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 8px;
    z-index: 2;
}
.hcm-modal__busy[hidden] { display: none; }
.hcm-modal__busy p { margin: 0; font-size: 13px; color: #444; }

/* スピナー (CF7 標準スピナーは非表示にして、こちらを使う) */
.hcm-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid #f3f3f3;
    border-top-color: #c00;
    border-radius: 50%;
    animation: hcm-spin 0.9s linear infinite;
}
@keyframes hcm-spin {
    to { transform: rotate(360deg); }
}

/* CF7 標準スピナー差し替え（小さい灰色ドットを隠して、こちらを使う） */
.hcm-cf7-wrap .wpcf7-spinner {
    width: 22px;
    height: 22px;
    background: none;
    border: 3px solid #eee;
    border-top-color: #c00;
    border-radius: 50%;
    animation: hcm-spin 0.8s linear infinite;
    opacity: 0;
    margin-left: 8px;
    vertical-align: middle;
    transition: opacity 0.15s ease;
}
.hcm-cf7-wrap .wpcf7-spinner.is-active { opacity: 1; }

/* CF7 内のフォーム整形 */
.hcm-cf7-wrap .wpcf7-form p {
    margin: 0 0 12px;
}
.hcm-cf7-wrap .wpcf7-form label {
    display: block;
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
}
.hcm-cf7-wrap .wpcf7-form input[type="text"],
.hcm-cf7-wrap .wpcf7-form input[type="email"],
.hcm-cf7-wrap .wpcf7-form input[type="tel"],
.hcm-cf7-wrap .wpcf7-form input[type="date"],
.hcm-cf7-wrap .wpcf7-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
.hcm-cf7-wrap .wpcf7-form input:focus,
.hcm-cf7-wrap .wpcf7-form textarea:focus {
    outline: 2px solid rgba(204, 0, 0, 0.4);
    outline-offset: -1px;
    border-color: #c00;
}
.hcm-cf7-wrap .wpcf7-form .wpcf7-submit {
    /* CF7 標準の submit はモーダル内では非表示 (自前の送信ボタンから発火) */
    display: none !important;
}
.hcm-cf7-wrap .wpcf7-not-valid-tip {
    color: #b91c1c;
    font-size: 11px;
    margin-top: 2px;
}
.hcm-cf7-wrap .wpcf7-response-output {
    margin: 12px 0 0;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .hcm-modal__dialog { padding: 16px; }
    .hcm-confirm-list  { grid-template-columns: 6em 1fr; }
    .hcm-modal__actions { flex-direction: column-reverse; }
    .hcm-modal__actions .hcm-btn { width: 100%; }
}

/* ============================================================
 * カラー swatch（公開ページ用）
 * ============================================================ */
.hcm-swatch {
    display: inline-block;
    width: 26px;
    height: 26px;
    border: 1px solid #d0d0d0;
    vertical-align: middle;
    box-sizing: border-box;
}
.hcm-swatch--ext { width: 26px; height: 26px; }
.hcm-swatch--int { width: 13px; height: 26px; }
.hcm-swatch-pair {
    display: inline-flex;
    vertical-align: middle;
    line-height: 0;
}
.hcm-swatch-pair .hcm-swatch--int + .hcm-swatch--int {
    border-left: 0;
}
.hcm-spec__swatch {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hcm-spec__txt {
    font-size: 12px;
    color: #444;
}

/* hero (車種代表画像) */
.hcm-detail__cat {
    display: inline-block;
    margin: 0 0 6px;
    padding: 2px 12px;
    background: #c00;
    color: #fff;
    font-size: 11px;
    border-radius: 999px;
}
.hcm-detail__hero {
    margin: 0 0 24px;
    background: #f5f5f5;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    overflow: hidden;
}
.hcm-detail__hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    background: #fff;
}

/* 取扱店舗 */
.hcm-stores {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}
/* よりコンパクト: 1画面に多くの店舗が映る */
.hcm-stores--compact {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px;
}
.hcm-stores--compact .hcm-stores__item {
    padding: 6px 10px;
}
.hcm-stores__item {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 3px;
}
.hcm-stores__name {
    font-size: 13px;
    color: #222;
    font-weight: 600;
    text-decoration: none;
}
a.hcm-stores__name { color: #222; border-bottom: 1px dotted #999; }
a.hcm-stores__name:hover { color: #c00; border-bottom-color: #c00; }

/* 折り畳み装備 */
.hcm-car__equip {
    margin-top: 10px;
    border-top: 1px dotted #eaeaea;
    padding-top: 8px;
}
.hcm-car__equip > summary {
    cursor: pointer;
    font-size: 12px;
    color: #555;
    list-style: revert;
}
.hcm-car__equip .hcm-equipment {
    margin-top: 8px;
    grid-template-columns: 1fr;
    gap: 2px 8px;
}
.hcm-car__equip .hcm-equipment__item {
    font-size: 12px;
}

/* ============================================================
 * 「詳細を見る」ボタン
 * ============================================================ */
.hcm-detail-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #c00;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.hcm-detail-btn:hover,
.hcm-detail-btn:focus {
    background: #a00;
    color: #fff !important;
    text-decoration: none;
}

.hcm-car .hcm-car__cta {
    margin: 8px 0 0;
}

/* ============================================================
 * 詳細ページ
 * ============================================================ */
.hcm-detail {
    margin: 0 auto;
    max-width: 1080px;
    padding: 16px;
}

.hcm-detail__back {
    margin: 0 0 16px;
    font-size: 13px;
}

.hcm-detail__back a {
    color: #555;
    text-decoration: none;
}

.hcm-detail__back a:hover {
    color: #c00;
    text-decoration: underline;
}

.hcm-detail__back--bottom {
    margin: 24px 0 0;
    text-align: center;
}

.hcm-detail__head {
    border-bottom: 2px solid #c00;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.hcm-detail__title {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 700;
    color: #111;
}

.hcm-detail__sub {
    margin: 0;
    font-size: 13px;
    color: #555;
}

.hcm-detail__sub-sep {
    margin: 0 6px;
    color: #ccc;
}

.hcm-detail__main {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.hcm-detail__photo {
    background: #f5f5f5;
    aspect-ratio: 4 / 3;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    overflow: hidden;
}

.hcm-detail__photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.hcm-detail__summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hcm-tags--lg .hcm-tag {
    font-size: 12px;
    padding: 4px 12px;
}

.hcm-spec--lg {
    grid-template-columns: 9em 1fr;
    font-size: 13px;
    row-gap: 6px;
}

.hcm-spec--lg dt {
    border-bottom: 1px dotted #eaeaea;
    padding-bottom: 4px;
}

.hcm-spec--lg dd {
    border-bottom: 1px dotted #eaeaea;
    padding-bottom: 4px;
}

.hcm-detail__section {
    margin-top: 24px;
}

.hcm-detail__section-title {
    margin: 0 0 12px;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: #333;
    border-left: 4px solid #c00;
}

.hcm-detail__empty {
    color: #888;
    font-size: 13px;
    padding: 16px;
    background: #fafafa;
    border: 1px dashed #ddd;
    text-align: center;
}

.hcm-equipment__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 12px;
    padding: 8px 12px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 3px;
    font-size: 12px;
    color: #555;
}

.hcm-equipment__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hcm-equipment {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px 16px;
}

.hcm-equipment__item {
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    line-height: 1.5;
    padding: 4px 0;
    border-bottom: 1px dotted #eee;
}

.hcm-equipment__item--off .hcm-equipment__name {
    color: #888;
}

.hcm-equipment__check {
    flex: 0 0 auto;
    font-size: 12px;
    margin-top: 2px;
    line-height: 1;
}

.hcm-equipment__check--on {
    color: #c00;
}

.hcm-equipment__check--off {
    color: #b8b8b8;
}

.hcm-equipment__name {
    flex: 1 1 auto;
    color: #222;
}

.hcm-detail__updated {
    margin-top: 16px;
    font-size: 11px;
    color: #888;
    text-align: right;
}

@media (max-width: 600px) {
    .hcm-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .hcm-card__name { font-size: 14px; }
    .hcm-cars {
        grid-template-columns: 1fr;
    }
    .hcm-detail__main {
        grid-template-columns: 1fr;
    }
    .hcm-detail__title { font-size: 20px; }
    .hcm-equipment {
        grid-template-columns: 1fr;
    }
    .hcm-variants--by-store {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
 * 新車（車両一覧）— Honda ディーラーサイト風レイアウト
 * カテゴリごとに見出し + グリッド
 * ============================================================ */
.hcm-newcar {
    margin: 0 auto;
    max-width: 1080px;
    padding: 16px;
}
.hcm-newcar__cat {
    margin: 0 0 36px;
}
.hcm-newcar__cat:last-child {
    margin-bottom: 0;
}
.hcm-newcar__cat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    border-bottom: 1px solid #d4d4d4;
}
.hcm-newcar__cat-bar {
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #c00;
    border-radius: 2px;
}
/* 新車両一覧グリッド: PC=4列 / Tablet=3列 / SP=2列 */
.hcm-newcar__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) {
    .hcm-newcar__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 600px) {
    .hcm-newcar__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.hcm-newcar__item {
    list-style: none;
    margin: 0;
}
.hcm-newcar-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
}
.hcm-newcar-card__media {
    position: relative;
    background: #fff;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    text-align: center;
}
.hcm-newcar-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
.hcm-newcar-card__body {
    position: relative;
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* バッジ行の高さを常に確保し、車種間で actions の Y 位置を揃える */
    min-height: 76px;
}
.hcm-newcar-card__name {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    text-align: center;
}

/* バッジ行: 1 行ぶんの高さを確保（バッジが無くても下要素が揃う） */
.hcm-newcar-card__badges {
    margin: auto -14px 0;          /* 親の padding を相殺 */
    padding: 0;
    width: calc(100% + 28px);
    min-height: 28px;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    overflow: hidden;
    gap: 0;
}

/* 試乗/展示 バッジ: タグ風（右下に張り付く） */
.hcm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px 6px 24px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: 0.04em;
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%);
    min-width: 60px;
}

/* 単一バッジ (試乗のみ / 展示のみ) は 50% 幅 (画像3)
 * 車両一覧カードと店舗詳細カードの両方に適用。 */
.hcm-newcar-card[data-badge-state="shijo"] .hcm-badge,
.hcm-newcar-card[data-badge-state="tenji"] .hcm-badge,
.hcm-storepage__card[data-badge-state="shijo"] .hcm-badge,
.hcm-storepage__card[data-badge-state="tenji"] .hcm-badge {
    flex: 0 0 50%;
    min-width: 0;
    padding: 6px 0;
}
.hcm-badge--shijo { background: #f5a623; }  /* 薄いオレンジ = 試乗 */
.hcm-badge--tenji { background: #e35d00; }  /* 濃いオレンジ = 展示 */
.hcm-badge--dev   {
    background: #f0b849;
    color: #5a3a00;
    clip-path: none;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 10px;
    min-width: 0;
}

/* 試乗 + 展示 両方ある場合は、横幅いっぱいに 2 枚並べる（画像3） */
.hcm-newcar-card[data-badge-state="both"] .hcm-newcar-card__badges {
    justify-content: stretch;
}
.hcm-newcar-card[data-badge-state="both"] .hcm-badge {
    flex: 1 1 50%;
    clip-path: none;
    padding: 6px 0;
}
.hcm-newcar-card[data-badge-state="both"] .hcm-badge--shijo {
    /* 左 = 試乗（薄オレンジ）、右側を斜めにカット */
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.hcm-newcar-card[data-badge-state="both"] .hcm-badge--tenji {
    /* 右 = 展示（濃オレンジ）、左側を斜めにカット */
    margin-left: -12px;
    padding-left: 12px;
}

.hcm-newcar-card__actions {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e6e6e6;
}
.hcm-newcar-card__actions li {
    list-style: none;
    margin: 0;
    border-top: 1px solid #efefef;
}
.hcm-newcar-card__actions li:first-child { border-top: 0; }

.hcm-newcar-card__act {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #c00;
    background: #fff;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
}
.hcm-newcar-card__act:hover,
.hcm-newcar-card__act:focus {
    background: #fff6f6;
    color: #a00;
    text-decoration: none;
}
.hcm-newcar-card__act-arrow {
    color: #c00;
    font-weight: 700;
}
.hcm-newcar-card__act.is-disabled {
    color: #999;
    cursor: not-allowed;
    background: #fafafa;
    pointer-events: none;
}
.hcm-newcar-card__act.is-disabled .hcm-newcar-card__act-arrow { color: #ccc; }

@media (max-width: 600px) {
    .hcm-newcar-card__name { font-size: 14px; }
    .hcm-newcar-card__act  { font-size: 12px; padding: 10px 12px; }
    .hcm-newcar__cat-title { font-size: 16px; }
    .hcm-badge { font-size: 12px; padding: 3px 14px 3px 20px; }
}

/* ============================================================
 * [hondacars_category] 上部のカテゴリナビ
 * ============================================================ */
.hcm-newcar__hero {
    margin: 0 0 32px;
    padding: 0 16px;
    text-align: center;
}
.hcm-newcar__hero-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 26px;
    font-weight: 700;
    color: #c00;
}
.hcm-newcar__hero-ico { line-height: 0; }
.hcm-newcar__catnav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.hcm-newcar__catnav li { list-style: none; margin: 0; }
.hcm-newcar__catnav-pill {
    display: inline-block;
    padding: 10px 22px;
    background: #f1f1f1;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s ease;
}
.hcm-newcar__catnav-pill:hover {
    background: #e0e0e0;
    color: #111;
    text-decoration: none;
}
.hcm-newcar__catnav-pill--all {
    background: #c00;
    color: #fff;
}
.hcm-newcar__catnav-pill--all:hover { background: #a00; color: #fff; }

/* category section が画面上端ぎりぎりにアンカーで来ないように余白を確保 */
.hcm-newcar__cat { scroll-margin-top: 3rem; }
#hcm-newcar-top   { scroll-margin-top: 3rem; }

@media (max-width: 600px) {
    .hcm-newcar__hero-title { font-size: 20px; }
    .hcm-newcar__catnav-pill { padding: 8px 16px; font-size: 12px; }
}

/* ============================================================
 * [hondacars_pick] 任意 3 台 中央揃え
 * ============================================================ */
.hcm-pick { padding: 16px; }
.hcm-newcar__grid--pick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 980px;
    margin: 0 auto;
    justify-content: center;
}
@media (max-width: 600px) {
    .hcm-newcar__grid--pick { grid-template-columns: 1fr; max-width: 360px; }
}

/* ============================================================
 * [hondacars_nav_cars] / 再利用ブロック内 ヘッダーホバー megamenu
 *
 * 既存 <a class="hc-site-header__shortcut"> 等の見た目には触らず、
 * 外側ラッパ .hcm-nav-cars と内側 <ul> の組合せだけで動作する。
 * ============================================================ */
.hcm-nav-cars {
    position: static;            /* 子の dropdown を画面全幅に出すため */
    display: inline-block;
}

/* 画面全幅のダークバー megamenu。
 * 中身は 5 列 × 2 行のグリッドで、列1は「新車を探す」見出し専用、
 * 行 2 列 1 は空白にして画像2 のレイアウトを再現する。 */
.hcm-nav-cars__dropdown {
    position: fixed;
    top: var(--hcm-nav-top, 64px); /* 既存ヘッダーの高さに合わせて上書き可能 */
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 18px 32px;
    list-style: none;
    background: #2a2a2a;
    color: #fff;
    z-index: 9999;

    /* 5 列の auto グリッド、全体は中央寄せ */
    display: grid;
    grid-template-columns: repeat(5, max-content);
    column-gap: 36px;
    row-gap: 12px;
    justify-content: center;
    align-items: center;

    /* 非表示状態 */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease,
                visibility 0s linear 0.18s,
                pointer-events 0s linear 0.18s;
}
.hcm-nav-cars.is-open .hcm-nav-cars__dropdown,
.hcm-nav-cars:hover  .hcm-nav-cars__dropdown,
.hcm-nav-cars:focus-within .hcm-nav-cars__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease,
                visibility 0s linear 0s,
                pointer-events 0s linear 0s;
}

.hcm-nav-cars__dropdown li { list-style: none; margin: 0; }

/* 全項目を明示的にグリッドの正しい位置に置く。
 * auto-placement に頼ると、row2 col1 が空のまま残らず、
 * 7番目以降の項目がそこへ繰り上がってしまうため。 */
.hcm-nav-cars__heading {
    grid-column: 1;
    grid-row: 1;
    margin-right: 24px;
}
.hcm-nav-cars__dropdown > li:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.hcm-nav-cars__dropdown > li:nth-of-type(3) { grid-column: 3; grid-row: 1; }
.hcm-nav-cars__dropdown > li:nth-of-type(4) { grid-column: 4; grid-row: 1; }
.hcm-nav-cars__dropdown > li:nth-of-type(5) { grid-column: 5; grid-row: 1; }
.hcm-nav-cars__dropdown > li:nth-of-type(6) { grid-column: 2; grid-row: 2; }
.hcm-nav-cars__dropdown > li:nth-of-type(7) { grid-column: 3; grid-row: 2; }
.hcm-nav-cars__dropdown > li:nth-of-type(8) { grid-column: 4; grid-row: 2; }
.hcm-nav-cars__dropdown > li:nth-of-type(9) { grid-column: 5; grid-row: 2; }

.hcm-nav-cars__dropdown a {
    display: inline-flex;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: color 0.1s ease;
    white-space: nowrap;
}
.hcm-nav-cars__dropdown a::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background: url("../img/icon-arrow-circle.svg") center / contain no-repeat;
}
.hcm-nav-cars__dropdown a:hover {
    color: #ffb3b3;
    text-decoration: none;
}
.hcm-nav-cars__dropdown .hcm-nav-cars__heading a {
    font-weight: 700;
}

@media (max-width: 800px) {
    .hcm-nav-cars__dropdown {
        position: static;
        margin: 8px 0 0;
        padding: 12px 16px;
        gap: 6px 0;
        grid-template-columns: 1fr;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
    }
    /* モバイルでは行/列の特殊指定を解除して 1 列に縦並び */
    .hcm-nav-cars__heading,
    .hcm-nav-cars__dropdown > li {
        grid-column: auto;
        grid-row: auto;
        margin-right: 0;
    }
}

/* ============================================================
 * 「詳細・問い合わせ」モーダル
 * ============================================================ */
.hcm-actions-modal[hidden] { display: none !important; }
.hcm-actions-modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.hcm-actions-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    animation: hcm-fade-in 0.18s ease;
}
.hcm-actions-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    background: #fff;
    border-radius: 8px;
    padding: 32px 24px 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    animation: hcm-slide-up 0.22s ease;
}
.hcm-actions-modal__close {
    position: absolute;
    top: 6px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    color: #c00;
    cursor: pointer;
}
.hcm-actions-modal__close:hover { color: #800; }

.hcm-actions-modal__body {
    display: block;
}
.hcm-actions-modal__media {
    text-align: center;
    margin: 0 0 14px;
}
.hcm-actions-modal__media img {
    width: auto;
    max-width: 100%;
    max-height: 180px;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
}
.hcm-actions-modal__title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    text-align: center;
}
/* STEP1: 問い合わせ種別を PC で 4列2行（8ボタン） */
.hcm-actions-modal__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.hcm-actions-modal__list li {
    list-style: none;
    margin: 0;
}
.hcm-actions-modal__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 700;
    color: #c00;
    background: #fff;
    border: 1.5px solid #c00;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.hcm-actions-modal__btn:hover,
.hcm-actions-modal__btn:focus {
    background: #fff0f0;
    color: #a00;
    text-decoration: none;
}
/* 「詳細はこちら」は種別ボタンの下に全幅で配置 */
.hcm-actions-modal__detailwrap {
    margin-top: 14px;
}
.hcm-actions-modal__btn--detail {
    color: #fff;
    background: #333;
    border-color: #333;
    justify-content: center;
}
.hcm-actions-modal__btn--detail:hover,
.hcm-actions-modal__btn--detail:focus {
    background: #000;
    color: #fff;
}
.hcm-actions-modal__btn.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 600px) {
    .hcm-actions-modal__list { grid-template-columns: repeat(2, 1fr); }
    .hcm-actions-modal__media img { max-height: 140px; }
}

/* ============================================================
 * /contact ページ用
 * ============================================================ */
.hcm-contact {
    margin: 0 auto;
    max-width: 720px;
    padding: 16px;
}
.hcm-contact__summary {
    display: grid;
    grid-template-columns: 7em 1fr;
    gap: 6px 12px;
    margin: 0 0 20px;
    padding: 12px 16px;
    background: #fafafa;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    font-size: 14px;
}
.hcm-contact__summary dt {
    color: #777;
    font-weight: 600;
}
.hcm-contact__summary dd {
    margin: 0;
    color: #222;
    font-weight: 700;
}

/* ============================================================
 * 店舗一覧 (店舗からの逆引き入口)
 * ============================================================ */
.hcm-storelist {
    margin: 0 auto;
    max-width: 1080px;
    padding: 16px;
}
.hcm-storelist__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.hcm-storelist__item {
    list-style: none;
    margin: 0;
}
.hcm-storecard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.hcm-storecard:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}
.hcm-storecard--nolink { opacity: 0.85; }
.hcm-storecard__name {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}
.hcm-storecard__counts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    font-size: 12px;
    color: #555;
}
.hcm-storecard__total {
    margin-left: auto;
    font-weight: 600;
    color: #333;
}
.hcm-storecard__cta {
    margin-top: 4px;
    font-size: 12px;
    color: #c00;
    font-weight: 600;
}

/* ============================================================
 * 店舗詳細 (逆引き結果ページ)
 * ============================================================ */
.hcm-storepage {
    margin: 0 auto;
    max-width: 1080px;
    padding: 16px;
}
.hcm-storepage__head {
    margin: 0 0 16px;
    border-bottom: 2px solid #c00;
    padding-bottom: 10px;
}
.hcm-storepage__eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    color: #c00;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.hcm-storepage__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #111;
}
.hcm-storepage__lead {
    margin: 4px 0 0;
    font-size: 13px;
    color: #555;
}

.hcm-storepage__models {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hcm-storepage__model {
    list-style: none;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
}
.hcm-storepage__model-photo {
    background: #f5f5f5;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 3px;
}
.hcm-storepage__model-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
.hcm-storepage__model-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.hcm-storepage__model-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
}
.hcm-storepage__model-name {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #111;
}
.hcm-storepage__model-count {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
}
.hcm-storepage__variants {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hcm-storepage__variant {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 6px 0;
    border-top: 1px dotted #eee;
    font-size: 12px;
}
.hcm-storepage__variant:first-child { border-top: 0; }
.hcm-storepage__variant-grade {
    font-weight: 600;
    color: #222;
}
.hcm-storepage__variant-swatch {
    display: inline-flex;
    align-items: center;
}
.hcm-storepage__variant-meta {
    color: #555;
}
.hcm-storepage__variant-cta {
    margin-left: auto;
}
.hcm-storepage__model-cta {
    margin: 4px 0 0;
}

@media (max-width: 600px) {
    .hcm-storepage__model {
        grid-template-columns: 1fr;
    }
    .hcm-storepage__model-photo {
        max-width: 240px;
    }
}

/* ============================================================
 * 店舗詳細グリッド版 (画像2)
 * ============================================================ */
.hcm-storepage__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) {
    .hcm-storepage__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 600px) {
    .hcm-storepage__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.hcm-storepage__item {
    list-style: none;
    margin: 0;
}
.hcm-storepage__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    height: 100%;
}
.hcm-storepage__card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}
.hcm-storepage__card-media {
    aspect-ratio: 4 / 3;
    background: #fff;
    overflow: hidden;
    text-align: center;
}
.hcm-storepage__card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
.hcm-storepage__card-body {
    padding: 14px 14px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 80px;
}
.hcm-storepage__card-name {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    text-align: center;
}
/* バッジ行はカード幅いっぱい、右下に張り付かせる */
.hcm-storepage__card-badges {
    margin: auto -14px 0;
    padding: 0;
    width: calc(100% + 28px);
    min-height: 28px;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    overflow: hidden;
    gap: 0;
}
/* 試乗+展示 両方の場合は 50/50 で並べる */
.hcm-storepage__card[data-badge-state="both"] .hcm-storepage__card-badges {
    justify-content: stretch;
}
.hcm-storepage__card[data-badge-state="both"] .hcm-badge {
    flex: 1 1 50%;
    clip-path: none;
    padding: 6px 0;
}
.hcm-storepage__card[data-badge-state="both"] .hcm-badge--shijo {
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.hcm-storepage__card[data-badge-state="both"] .hcm-badge--tenji {
    margin-left: -12px;
    padding-left: 12px;
}

/* ============================================================
 * 店舗 × 車種 詳細 (画像7)
 * ============================================================ */
.hcm-storemodel {
    margin: 0 auto;
    max-width: 1080px;
    padding: 16px;
}
.hcm-storemodel__head {
    margin: 0 0 16px;
    padding: 0 0 8px;
    border-bottom: 1px solid #d4d4d4;
}
.hcm-storemodel__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #111;
}
.hcm-storemodel__cars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.hcm-storemodel__car {
    list-style: none;
    background: #fff;
}
.hcm-storemodel__car-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}
.hcm-storemodel__car-store {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}
.hcm-storemodel__car-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.hcm-storemodel__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.hcm-storemodel__btn:hover { opacity: 0.85; text-decoration: none; }
.hcm-storemodel__btn--shijo {
    background: #c00;
    color: #fff;
}
.hcm-storemodel__btn--shijo:hover { color: #fff; }
.hcm-storemodel__btn--detail {
    background: #222;
    color: #fff;
}
.hcm-storemodel__btn--detail:hover { color: #fff; }
.hcm-storemodel__btn-ico { font-size: 16px; line-height: 1; }
.hcm-storemodel__car-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: center;
}
.hcm-storemodel__car-photo {
    background: #fff;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.hcm-storemodel__car-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
.hcm-storemodel__spec {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.hcm-storemodel__spec th,
.hcm-storemodel__spec td {
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: middle;
}
.hcm-storemodel__spec th {
    background: #f5f5f5;
    color: #333;
    font-weight: 600;
    width: 8em;
}
.hcm-storemodel__spec-empty { color: #aaa; }

@media (max-width: 700px) {
    .hcm-storemodel__car-body { grid-template-columns: 1fr; }
    .hcm-storemodel__car-photo { max-width: 240px; margin: 0 auto; }
    .hcm-storemodel__car-actions { width: 100%; }
    .hcm-storemodel__btn { flex: 1 1 auto; justify-content: center; }
    .hcm-storemodel__spec th { width: 6em; font-size: 12px; }
}

/* ============================================================
 * /contact ページ ヒーロー / ステップ / お申込み行
 * ============================================================ */
.hcm-contact {
    max-width: 880px;
}
.hcm-contact__hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: #e8f3fb;
    border-radius: 6px;
}
.hcm-contact__hero-ico {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4ba1d6;
    color: #fff;
    border-radius: 999px;
    font-size: 22px;
    font-weight: 700;
}
.hcm-contact__hero-text { min-width: 0; }
.hcm-contact__hero-title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #111;
}
.hcm-contact__hero-lead {
    margin: 0;
    font-size: 13px;
    color: #444;
}
.hcm-contact__steps {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    gap: 0;
}
.hcm-contact__steps li {
    flex: 1;
    list-style: none;
    margin: 0 0 0 -14px;     /* 前要素の矢頭にぴったり差し込む */
    padding: 12px 20px 12px 32px;
    background: #aaa;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    line-height: 1;
    /* 左に三角の切り欠き / 右に矢頭 */
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hcm-contact__steps li:first-child {
    margin-left: 0;
    padding-left: 20px;
    /* 先頭: 左は平らに、右だけ矢頭 */
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}
.hcm-contact__steps li.is-active { background: #c00; }
/* 旧版で出していた番号丸は非表示 */
.hcm-contact__steps-num { display: none; }
.hcm-contact__store {
    margin: 0 0 16px;
    padding: 12px 16px;
    background: #fafafa;
    border-left: 4px solid #c00;
    font-size: 15px;
    color: #111;
    font-weight: 600;
}
.hcm-contact__store-label {
    color: #777;
    font-weight: 600;
    margin-right: 8px;
}
/* CF7 表示の Honda 風スタイリング (画像4) */
.hcm-contact__form .wpcf7-form p { margin: 0; }
.hcm-contact__form .hcm-cf {
    width: 100%;
    table-layout: fixed;              /* 列幅を一貫させる */
    border-collapse: collapse;
    margin: 0 0 12px;
    font-size: 14px;
    background: #fff;
}
.hcm-contact__form .hcm-cf th,
.hcm-contact__form .hcm-cf td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px dashed #ddd;
    word-break: break-word;
}
.hcm-contact__form .hcm-cf th {
    width: 30%;
    background: #f3f3f3;
    color: #111;
    font-weight: 600;
    position: relative;
    padding-right: 72px;              /* 必須バッジ用の余白 */
    /* 長いラベルも折り返しでカラム幅を維持 */
}
.hcm-contact__form .hcm-cf .hcm-req {
    position: absolute;
    right: 12px;
    top: 16px;                        /* 上揃え */
    transform: none;
    margin: 0;
    padding: 3px 10px;
    background: #c00;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 2px;
    line-height: 1.2;
}
.hcm-contact__form .hcm-cf-section {
    margin: 24px 0 8px;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    border: 0;
}
.hcm-contact__form .hcm-cf-section::before {
    content: "▼";
    color: #c00;
    margin-right: 6px;
    font-size: 11px;
    vertical-align: middle;
}
.hcm-contact__form .hcm-cf-note {
    display: block;
    margin: 6px 0 0;
    font-size: 12px;
    color: #666;
}
.hcm-contact__form .hcm-cf-note--mark {
    background: #fff7c0;
    padding: 4px 8px;
    border-radius: 2px;
}
.hcm-contact__form .hcm-cf-ssl {
    margin: 12px 0 24px;
    font-size: 12px;
    color: #555;
}

/* ============================================================
 * 個人情報取扱い同意ブロック (自動注入)
 * ============================================================ */
.hcm-contact__form .privacy.hcm-privacy {
    margin: 24px 0 16px;
    padding: 16px 0 0;
    border-top: 1px solid #e6e6e6;
    font-size: 13px;
    color: #333;
    line-height: 1.7;
}
.hcm-contact__form .privacy .text {
    margin: 0 0 12px;
    font-size: 13px;
    color: #333;
}
.hcm-contact__form .privacy .ttl {
    margin: 16px 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}
.hcm-contact__form .privacy .textarea {
    margin: 8px 0 16px;
}
.hcm-contact__form .privacy textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #ccc;
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    resize: none;
    font-family: inherit;
}
.hcm-contact__form .privacy a {
    color: #c00;
    text-decoration: underline;
}
/* PC/SP 切り替え */
.hcm-contact__form .privacy .pc_none { display: none; }
.hcm-contact__form .privacy .sp_none { display: inline; }
@media (max-width: 600px) {
    .hcm-contact__form .privacy .pc_none { display: block; }
    .hcm-contact__form .privacy .sp_none { display: none; }
}
/* CF7 内で URL から取得した「ご希望車両」などを表示するための span */
.hcm-contact__form .hcm-cf-display {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    padding: 4px 0;
}
.hcm-contact__form .wpcf7-form input[type="text"],
.hcm-contact__form .wpcf7-form input[type="email"],
.hcm-contact__form .wpcf7-form input[type="tel"],
.hcm-contact__form .wpcf7-form input[type="number"],
.hcm-contact__form .wpcf7-form textarea,
.hcm-contact__form .wpcf7-form select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 14px;
    background: #fafafa;
    box-sizing: border-box;
    max-width: 100%;
}
.hcm-contact__form .wpcf7-form textarea { width: 100%; min-height: 120px; }
.hcm-contact__form .wpcf7-form input[type="text"].wpcf7-text { width: auto; min-width: 12em; }
.hcm-contact__form .wpcf7-form input[type="email"].wpcf7-email,
.hcm-contact__form .wpcf7-form input[type="tel"].wpcf7-tel { width: 100%; max-width: 22em; }
.hcm-contact__form .wpcf7-form .wpcf7-radio .wpcf7-list-item {
    display: inline-flex;
    align-items: center;
    margin: 0 16px 4px 0;
}
.hcm-contact__form .wpcf7-form .wpcf7-acceptance {
    display: block;
    margin: 12px 0;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}
.hcm-contact__form .wpcf7-form .wpcf7-submit {
    display: inline-block !important;
    background: #c00;
    color: #fff;
    border: 0;
    padding: 16px 56px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    margin: 16px auto;
    min-width: 320px;
}
.hcm-contact__form .wpcf7-form .wpcf7-submit:hover { background: #a00; }
.hcm-contact__form .wpcf7-form > p:last-of-type,
.hcm-contact__form .wpcf7-form .wpcf7-submit { text-align: center; }
/* submit を中央寄せにするためのラッパ */
.hcm-contact__form .wpcf7-form > .wpcf7-submit-wrap,
.hcm-contact__form .wpcf7-form p:has(> .wpcf7-submit) { text-align: center; }

@media (max-width: 600px) {
    .hcm-contact__form .hcm-cf th,
    .hcm-contact__form .hcm-cf td { display: block; width: 100%; white-space: normal; }
    .hcm-contact__form .hcm-cf th { border-bottom: 0; padding-bottom: 4px; padding-right: 70px; }
    .hcm-contact__form .wpcf7-form .wpcf7-submit { min-width: 0; width: 100%; }
}

/* ============================================================
 * CF7 送信前確認オーバーレイ
 * ============================================================ */
.hcm-confirm-modal[hidden] { display: none !important; }
.hcm-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.hcm-confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
.hcm-confirm-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    padding: 28px 28px 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}
.hcm-confirm-modal__close {
    position: absolute;
    top: 6px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 0;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}
.hcm-confirm-modal__close:hover { color: #000; }
.hcm-confirm-modal__head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #c00;
}
.hcm-confirm-modal__eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    color: #c00;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.hcm-confirm-modal__title {
    margin: 0;
    font-size: 15px;
    color: #111;
    line-height: 1.5;
}
.hcm-confirm-modal__list {
    display: grid;
    grid-template-columns: 9em 1fr;
    gap: 8px 12px;
    margin: 0 0 18px;
    font-size: 13px;
}
.hcm-confirm-modal__list dt {
    color: #666;
    font-weight: 600;
    border-bottom: 1px dotted #eee;
    padding-bottom: 4px;
}
.hcm-confirm-modal__list dd {
    margin: 0;
    color: #111;
    border-bottom: 1px dotted #eee;
    padding-bottom: 4px;
    word-break: break-word;
}
.hcm-confirm-modal__actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.hcm-confirm-btn {
    padding: 12px 28px;
    border: 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    min-width: 160px;
}
.hcm-confirm-btn--ghost {
    background: #f3f3f3;
    color: #333;
    border: 1px solid #ccc;
}
.hcm-confirm-btn--ghost:hover { background: #e9e9e9; }
.hcm-confirm-btn--primary {
    background: #c00;
    color: #fff;
}
.hcm-confirm-btn--primary:hover { background: #a00; }
.hcm-confirm-btn[disabled] { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 600px) {
    .hcm-confirm-modal__list { grid-template-columns: 6em 1fr; }
    .hcm-confirm-modal__actions { flex-direction: column-reverse; }
    .hcm-confirm-btn { width: 100%; min-width: 0; }
}

@media (max-width: 600px) {
    .hcm-contact__hero { flex-direction: column; text-align: center; }
    .hcm-contact__steps li { font-size: 12px; padding: 8px 12px; }
    .hcm-contact__hero-title { font-size: 18px; }
}

/* ============================================================
 * 店舗ダッシュボード ([hondacars_store_dashboard]) — 画像2
 * ============================================================ */
.hcm-dash {
    margin: 0 auto;
    max-width: 1080px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hcm-dash__blog {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    aspect-ratio: 16 / 6;
    background: #b5b5b5;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: opacity 0.15s ease;
}
.hcm-dash__blog:hover { opacity: 0.9; color: #fff; text-decoration: none; }
.hcm-dash__blog-ico { line-height: 0; }
.hcm-dash__blog-ico::after {
    content: "";
    display: block;
    width: 60%;
    max-width: 240px;
    height: 4px;
    margin: 8px auto 0;
    background: #c00;
}
.hcm-dash__blog-label {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hcm-dash__actions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.hcm-dash__actions li { list-style: none; margin: 0; }

.hcm-dash__card,
.hcm-dash__wide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    color: #111;
    text-decoration: none;
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}
.hcm-dash__card:hover,
.hcm-dash__wide:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    color: #111;
    text-decoration: none;
}
.hcm-dash__card.is-disabled,
.hcm-dash__wide.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}
.hcm-dash__card-ico,
.hcm-dash__wide-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 24px 0;
    background: #e74c3c;
    color: #fff;
    line-height: 0;
}
.hcm-dash__wide-ico {
    padding: 0;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    flex: 0 0 56px;
}
.hcm-dash__card-label {
    display: block;
    width: 100%;
    padding: 16px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #111;
}
.hcm-dash__wide {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    gap: 16px;
}
.hcm-dash__wide-label {
    font-weight: 700;
    font-size: 16px;
    color: #111;
}

@media (max-width: 600px) {
    .hcm-dash__actions { grid-template-columns: 1fr; }
    .hcm-dash__blog { aspect-ratio: 16 / 8; }
    .hcm-dash__blog-label { font-size: 16px; }
    .hcm-dash__wide { flex-direction: column; padding: 16px; }
}

/* ============================================================
 * /contact メニュー（[hondacars_contact_menu]）
 * ============================================================ */
.hcm-contactmenu {
    margin: 0 auto;
    max-width: 1080px;
    padding: 16px;
}
.hcm-contactmenu__head {
    margin: 0 0 24px;
    text-align: center;
}
.hcm-contactmenu__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #c00;
    border-bottom: 2px solid #c00;
}
.hcm-contactmenu__title-ico { color: #c00; line-height: 0; }

/* 店舗リスト */
.hcm-contactmenu__stores {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e6e6e6;
}
.hcm-contactmenu__stores li { list-style: none; margin: 0; }
.hcm-contactmenu__store {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 4px;
    border-bottom: 1px solid #e6e6e6;
}
.hcm-contactmenu__store-body { flex: 1 1 auto; min-width: 0; }
.hcm-contactmenu__store-name {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}
.hcm-contactmenu__store-info {
    margin: 0;
    display: grid;
    grid-template-columns: 7em 1fr;
    gap: 4px 12px;
    font-size: 13px;
    color: #333;
}
.hcm-contactmenu__store-info dt {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #c00;
    font-weight: 600;
}
.hcm-contactmenu__store-info dd { margin: 0; }
.hcm-contactmenu__store-ico {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.hcm-contactmenu__store-ico--phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c00' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.81.32 1.6.6 2.36a2 2 0 0 1-.45 2.11L8 9.42a16 16 0 0 0 6 6l1.23-1.23a2 2 0 0 1 2.11-.45c.76.28 1.55.48 2.36.6A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}
.hcm-contactmenu__store-ico--addr {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c00' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.hcm-contactmenu__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #c00;
    color: #fff;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease;
}
.hcm-contactmenu__btn:hover { background: #a00; color: #fff; text-decoration: none; }
.hcm-contactmenu__btn-ico { color: #fff; line-height: 0; }

@media (max-width: 600px) {
    .hcm-contactmenu__store { flex-direction: column; align-items: stretch; gap: 12px; }
    .hcm-contactmenu__btn { justify-content: center; }
}

/* ダッシュボード（store=XX 指定時） */
.hcm-contactmenu__dash-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: flex-start;
    margin: 0 0 20px;
    padding: 0 0 12px;
    border-bottom: 1px solid #c00;
}
.hcm-contactmenu__dash-title {
    flex: 1 1 auto;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}
.hcm-contactmenu__dash-store {
    flex: 0 0 auto;
    font-size: 12px;
    color: #333;
    text-align: right;
}
.hcm-contactmenu__dash-store p { margin: 0 0 2px; }
.hcm-contactmenu__dash-store-label { color: #777; margin-right: 8px; }

.hcm-contactmenu__groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.hcm-contactmenu__group { padding: 0; }
.hcm-contactmenu__group-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #111;
}
.hcm-contactmenu__group-items {
    list-style: none;
    margin: 0;
    padding: 16px;
    border: 1px solid;
    border-radius: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.hcm-contactmenu__group-items li { list-style: none; margin: 0; }
.hcm-contactmenu__group--new_car .hcm-contactmenu__group-items {
    background: #fdecec;
    border-color: #f4c5c5;
}
.hcm-contactmenu__group--after_service .hcm-contactmenu__group-items {
    background: #e8f3fb;
    border-color: #c2dceb;
}
.hcm-contactmenu__group-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease;
}
.hcm-contactmenu__group-btn:hover {
    background: #fafafa;
    color: #c00;
    text-decoration: none;
}
.hcm-contactmenu__group-btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.hcm-contactmenu__back {
    margin: 24px 0 0;
}
.hcm-contactmenu__back-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
}
.hcm-contactmenu__back-btn:hover { background: #fafafa; color: #111; text-decoration: none; }

@media (max-width: 700px) {
    .hcm-contactmenu__groups { grid-template-columns: 1fr; }
    .hcm-contactmenu__dash-head { flex-direction: column; }
    .hcm-contactmenu__dash-store { text-align: left; }
}

/* ============================================================
 * お申込み店舗セレクト（/contact をクエリ無しで開いたとき CF7 に注入）
 * ============================================================ */
.hcm-store-pick {
    margin: 0 0 20px;
    padding: 14px 16px;
    background: #f7f7f8;
    border: 1px solid #e2e2e4;
    border-radius: 6px;
}
.hcm-store-pick__label {
    display: block;
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 14px;
    color: #222;
}
.hcm-store-pick__label .hcm-req {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 3px;
    background: #c8102e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}
.hcm-store-pick__select {
    width: 100%;
    max-width: 28em;
    padding: 8px 10px;
    border: 1px solid #c9c9cc;
    border-radius: 4px;
    background: #fff;
    font-size: 15px;
    line-height: 1.5;
}
.hcm-store-pick__select:invalid { color: #777; }
.hcm-store-pick__note {
    margin: 6px 0 0;
    font-size: 12px;
    color: #666;
}

/* ============================================================
 * [hondacars_store_cards]
 * レイアウトはテーマ側の .hc-store-grid / .hc-store-card 系がそのまま担当する
 * （/stores のカードと同じ見た目・同じレスポンシブ挙動にするため、
 *   ここでグリッドを再定義して打ち消さないこと）。
 * .hcm-store-cards は「プラグインが出力したカード」を判別するためのフックのみ。
 * ============================================================ */

/* ============================================================
 * [hondacars_store_cards_slim]
 * レイアウト（グリッド・カード枠・文字サイズ）はテーマ側の
 * .hc-inspect-stores / .hc-inspect-store 系がそのまま担当する。
 * ここではテーマ CSS に含まれない「カード全体リンク」の分だけ補う。
 * （enable-linked-groups の style.css は core/group ブロックが
 *   ページ内に無いと読み込まれないため、プラグイン側で持つ）
 * ============================================================ */
.hcm-store-cards-slim .hc-inspect-store.is-linked {
    position: relative;
}
.hcm-store-cards-slim .hc-inspect-store.is-linked > a.wp-block-group__link {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    text-decoration: none !important;
}
.hcm-store-cards-slim .hc-inspect-store__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ------------------------------------------------------------
 * ショートコードが <code> の中に貼られてしまった場合の保険。
 * テーマの code スタイル（グレー背景 / 等幅フォント）がカード内の
 * 文字に乗って可読性を落とすのを防ぐ。本来は本文側で <code> を
 * 外すのが正（HCM_Frontend::unwrap_shortcode_markup が自動で行う）。
 * ------------------------------------------------------------ */
code:has(> .hcm-store-cards),
code:has(> .hcm-store-cards-slim),
pre:has(> .hcm-store-cards),
pre:has(> .hcm-store-cards-slim) {
    display: block;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    white-space: normal !important;
}
