:root {
    --purple: #8b3dff;
    --red: #e0344a;
    --grad: linear-gradient(90deg, #6400E7 0%, #941489 49%, #C4282B 100%);
    --gray-bg: #f2f2f2;
    --card-bg: #fff;
    --border: #e3e3e8;
}

body>*:not(.page-load) {
    -webkit-transition: 0.7s all 0.5s linear;
    transition: 0.7s all 0.5s linear;
    height: 100%;
}

/* ----- 共通(container / 見出し) ----- */
/* .test-drive-booking .container {
    max-width: 895px;
    margin: 0 auto;
    padding: 0 20px;
} */

.test-drive-booking .heading .heading-primary {
    font-size: 26px;
    margin-bottom: 20px;
    display: inline-block;
}

.test-drive-booking .heading--bar {
    padding-top: 10px;
}

.test-drive-booking .heading--bar:before {
    width: 100%;
}

.test-drive-booking .heading-note {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    display: block;
    line-height: 1.6923076923;
}

/* ===== ご利用の流れ (Flow) ===== */
.flow {
    padding: 24px 0 0;
}

.flow-steps {
    display: flex;
    gap: 15px;
    margin-top: 32px;
    align-items: stretch;
    padding-bottom: 64px;
}

.flow-step {
    flex: 1;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 16px;
    text-align: center;
    box-shadow: 0 2px 10px #c8c8c8;
    min-height: 277px;
}

.flow-step h3 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-step h3 .text {
    font-size: 19px;
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

.flow-step .num img {
    width: 35px;
    height: 35px;
    object-fit: cover;
}

.flow-step-img {
    margin: 22px auto 0;
    display: block;
    max-width: 100%;
}

.flow-arrow {
    align-self: center;
    color: var(--purple);
    font-size: 1.6rem;
    flex: 0 0 auto;
}

/* ===== グレー背景ラッパー(店舗を選ぶ/クルマを選ぶ共通) ===== */
.store .heading {
    text-align: center;
}

.select-wrap {
    background: var(--gray-bg);
    border-radius: 20px;
    padding: 56px 32px;
    margin-bottom: 8px;
}

.select-icon {
    width: 64px;
    margin: 0 auto 12px;
}

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

.down-arrow {
    margin: 20px auto;
    opacity: .85;
    text-align: center;
}

/* ===== 店舗を選ぶ ===== */
.store-cards {
    display: flex;
    gap: 24px;
    margin-top: 32px;
}

.store-card {
    flex: 1;
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    padding: 10px 0 20px;
    cursor: pointer;
    text-align: center;
    transition: border-color .2s, box-shadow .2s;
    box-shadow: 0 0px 7px #c8c8c8;
}

.store-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.store-card.active {
    border-color: var(--purple);
    box-shadow: 0 6px 18px rgba(139, 61, 255, .25);
}

.store-card .brand {
    font-weight: 800;
    font-style: italic;
    letter-spacing: .03em;
    font-size: .95rem;
    margin: 0;
}

.store-card .brand small {
    display: block;
    font-size: .6rem;
    letter-spacing: .2em;
}

.store-card h3 {
    font-size: 19px;
    font-weight: 700;
    padding: 10px 0 4px;
    position: relative;
    margin-bottom: 12px;
}


.store-card-img img {
    width: 200px;
    height: 55px;
}

.store-card ul {
    list-style: none;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    color: #000;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.store-card ul li {
    padding: 2px 0 2px 22px;
    position: relative;
    display: inline-block;
}

.store-card ul li::before {
    content: "";
    background-repeat: no-repeat;
    background-size: cover;
    width: 15px;
    height: 15px;
    position: absolute;
    left: 0;
}

.store-card ul li.addr::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg' stroke='%23f2f2f4'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath d='M12 13V7M15 10.0008L9 10M19 10.2C19 14.1764 15.5 17.4 12 21C8.5 17.4 5 14.1764 5 10.2C5 6.22355 8.13401 3 12 3C15.866 3 19 6.22355 19 10.2Z' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");

}

.store-card ul li.hours::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath d='M12 8V12L15 15' stroke='%23666666' stroke-width='2' stroke-linecap='round'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23666666' stroke-width='2'%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");
}

.store-card ul li.closed::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath d='M20 10V7C20 5.89543 19.1046 5 18 5H6C4.89543 5 4 5.89543 4 7V10M20 10V19C20 20.1046 19.1046 21 18 21H6C4.89543 21 4 20.1046 4 19V10M20 10H4M8 3V7M16 3V7' stroke='%23666666' stroke-width='2' stroke-linecap='round'%3E%3C/path%3E%3Crect x='6' y='12' width='3' height='3' rx='0.5' fill='%23666666'%3E%3C/rect%3E%3Crect x='10.5' y='12' width='3' height='3' rx='0.5' fill='%23666666'%3E%3C/rect%3E%3Crect x='15' y='12' width='3' height='3' rx='0.5' fill='%23666666'%3E%3C/rect%3E%3C/g%3E%3C/svg%3E");
}

.store-card .select-badge {
    display: inline-block;
    margin-top: 14px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--purple);
    border: 1px solid var(--purple);
    border-radius: 999px;
    padding: 2px 16px;
}

.store-card.active .select-badge {
    background: var(--purple);
    color: #fff;
}

/* ===== クルマを選ぶ ===== */
.car-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 18px;
}

.car-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0px 7px rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
    animation: tdFadeIn .35s ease;
    overflow: hidden;
    text-decoration: unset;
    color: #000;
}

@keyframes tdFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.car-card .body {
    padding: 20px 13px 16px;
    flex: 1;
}

.car-card h3 {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 12px;
}

.car-card .body img {
    margin: 0 auto 14px;
    max-height: 150px;
    object-fit: contain;
    display: block;
    max-width: 100%;
    transition: transform .35s ease;
}

.car-card:hover .body img {
    transform: scale(1.06);
}

.car-card p {
    line-height: 1.4;
    margin: 8px 0 0;
    display: flex;
    position: relative;
    padding-left: 20px;
    text-align: left;
    font-size: 1.4rem;
    font-weight: 400;
    color: rgb(0, 0, 0);
}

.card-card-text {
    flex-shrink: 0;
}

/* 車カード内の店舗情報にアイコンを表示(店舗カードと同じ) */
.car-card .body p.addr,
.car-card .body p.hours,
.car-card .body p.closed {
    display: block;
    position: relative;
    padding-left: 20px;
    text-align: left;
    font-size: 1.4rem;
    font-weight: 400;
    color: #000;
}

.car-card .body p.addr::before,
.car-card .body p.hours::before,
.car-card .body p.closed::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
}

.car-card .body p.addr::before {
    width: 12px;
    height: 18px;
    background-image: url("../img/icons/map-icon.svg");
}

.car-card .body p.hours::before {
    width: 13px;
    height: 16px;
    background-image: url("../img/icons/time-icon.svg");
}

.car-card .body p.closed::before {
    width: 11.8px;
    height: 15.88px;
    background-image: url("../img/icons/calendar-icon.svg");
}

/* store-cards の ul に car-card と同じスタイルを適用 */
.store-card__body ul {
    list-style: none;
    text-align: left;
    margin-top: 8px;
    padding: 0 25px;
}

.store-card__body ul li.addr,
.store-card__body ul li.hours,
.store-card__body ul li.closed {
    display: block;
    position: relative;
    padding-left: 20px;
    text-align: left;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.6;
    color: #000;
    margin: 8px 0 0;
}

.store-card__body ul li.addr::before,
.store-card__body ul li.hours::before,
.store-card__body ul li.closed::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
}

.store-card__body ul li.addr::before {
    width: 12px;
    height: 18px;
    background-image: url("../img/icons/map-icon.svg");
}

.store-card__body ul li.hours::before {
    width: 13px;
    height: 16px;
    background-image: url("../img/icons/time-icon.svg");
}

.store-card__body ul li.closed::before {
    width: 11.8px;
    height: 15.88px;
    background-image: url("../img/icons/calendar-icon.svg");
}

.car-card .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(90deg, #9a5bf2 0%, #c62828 100%);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 500;
    padding: 12px 0;
    text-decoration: none;
    transition: opacity .2s;
    border-radius: 0 0 16px 16px;
    border: none;

}

.car-card .btn:hover {
    opacity: .7;
}

.car-card .btn img {
    width: 20px;
    flex-shrink: 0;
    margin: 0;
}

.car-card .btn::after {
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10.519' height='10.519' viewBox='0 0 10.519 10.519'%3E%3Cpath id='Path_5948' data-name='Path 5948' d='M267.557-66.854v6.438H274' transform='translate(241.724 151.731) rotate(-135)' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform .3s ease;
}

.car-card:hover .btn::after {
    transform: translateX(4px);
}

@media (prefers-reduced-motion:reduce) {
    .car-card {
        animation: none;
    }
}

/* ===== レスポンシブ ===== */
@media (max-width:768px) {
    .flow-steps {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
        text-align: center;
    }

    /* ===== SP: 店舗タブUI =====
       上段に2つのタブ(ロゴ+店名)、下段に「選択中」店舗の詳細を全幅表示。
       .store-card は箱を消して(display:contents)、tab/body をグリッドに直接流す。
       JS は .store-card の .active 切替のみ担当 → 変更不要。 */
    .store-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 0;
        row-gap: 0;
        margin-top: 15px;
    }

    .store-card {
        display: contents;
    }

    /* --- タブ見出し(ロゴ + 店名) --- */
    .store-card__tab {
        grid-row: 1;
        position: relative;
        z-index: 1;
        background: var(--card-bg);
        border: 2px solid transparent;
        border-radius: 12px 12px 0 0;
        padding: 14px 8px;
        text-align: center;
        cursor: pointer;
        box-shadow: 0 -3px 6px rgba(0, 0, 0, .06);
    }

    /* 選択中タブ: 紫の枠。下辺は白で塗り、下のパネル枠と繋げる */
    .store-card.active .store-card__tab {
        border-color: var(--purple);
        border-bottom: 0 solid var(--card-bg);
        margin-bottom: -2px;
        z-index: 2;
    }

    .store-card:nth-child(1) .store-card__tab {
        grid-column: 1;
    }

    .store-card:nth-child(2) .store-card__tab {
        grid-column: 2;
    }

    .store-card__tab .store-card-img {
        margin: 0 auto 6px;
    }

    .store-card__tab h3 {
        margin: 0;
        padding: 0;
        font-size: 12px;
    }

    /* 未選択タブに紫オーバーレイを被せる (#8022FF / アルファは調整可) */
    .store-card:not(.active) .store-card__tab::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(128, 34, 255, 0.2);
        border-radius: inherit;
        pointer-events: none;
    }

    /* --- 詳細パネル(選択中のみ・タブ下に全幅) --- */
    .store-card__body {
        grid-row: 2;
        grid-column: 1 / -1;
        display: none;
    }

    .store-card.active .store-card__body {
        display: block;
        background: var(--card-bg);
        border: 2px solid var(--purple);
        border-radius: 0 0 12px 12px;
        padding: 20px 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
    }

    .store-card__body img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto 14px;
    }

    .car-cards {
        grid-template-columns: 1fr;
    }

    .select-wrap {
        padding: 20px 10px;
    }

    .store-card-img img {
        width: auto;
        height: 35px;
    }

    .store-card ul {
        font-size: 11px;
        margin-top: 10px;
    }
}

.text-drive-reservation .mv {
    text-align: center;
    margin-bottom: 50px;
}

.text-drive-reservation .mv-image {
    margin-bottom: 40px;
    display: block;
}

.text-drive-reservation .mv-title {
    font-size: 27px;
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: 0.025em;
    margin-bottom: 20px;
}

.text-drive-reservation .mv-lead {
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: 0.025em;
    margin-bottom: 30px;
    font-weight: bold;
}

.test-drive-booking .mv-txt {
    font-size: 16px;
    line-height: 1.6923076923;
}

.text-drive-reservation .service-steps {
    margin-bottom: 70px;
}

.text-drive-reservation .service-steps .container {
    overflow: visible;
}

.text-drive-reservation .service-steps .paragraph {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 30px;
}

.text-drive-reservation .service-steps__list {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.text-drive-reservation .service-steps__card {
    flex: 0 0 auto;
    max-width: calc((100% - 96px) / 3);
    width: 100%;
    background-color: #fff;
    padding: 30px;
    min-height: 252px;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    box-shadow: 0 0 7px rgb(200, 200, 200);
}

.text-drive-reservation .service-steps__card:after {
    content: "";
    display: block;
    width: 48px;
    height: 100%;
    background-color: #Efefef;
    right: 0;
    width: 0;
    height: 0;
    border-top: 60px solid transparent;
    border-bottom: 60px solid transparent;
    border-left: 60px solid green;
}

.text-drive-reservation .service-steps__card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-bottom: 30px;
}

.text-drive-reservation .service-steps__card-number {
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    font-size: 30px;
    color: #9554f2;
    display: block;
}

.text-drive-reservation .service-steps__card-title {
    font-size: 20px;
    font-weight: bold;
}

.text-drive-reservation .service-steps__card-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container.-xs .heading--bar:before {
    width: 165px;
}

.heading-primary.-sm {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 26px;
}

.faq {
    padding-bottom: 40px;
}

.faq-accordion {
    width: 100%;
}

.faq-accordion__item {
    margin-bottom: 14px;
}

.faq-accordion__item:last-child {
    margin-bottom: 0;
}

.faq-accordion__toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.faq-accordion__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    margin: 0;
    padding: 22px 27px 22px 35px;
    border-radius: 12px;
    background: #f2f2f2;
    color: #000;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.13;
    cursor: pointer;
    transition: border-radius 0.32s ease;
}

.faq-accordion__question span:first-child {
    padding-right: 28px;
}

.faq-accordion__icon {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.faq-accordion__icon::before,
.faq-accordion__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 19px;
    height: 4px;
    background: #000;
    transform: translate(-50%, -50%);
    transition:
        transform 0.32s ease,
        opacity 0.32s ease;
}

.faq-accordion__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-accordion__answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    background: #fff;
    transition: grid-template-rows 0.36s ease;
}

.faq-accordion__answer-inner {
    min-height: 0;
    overflow: hidden;
}

.faq-accordion__answer p {
    margin: 0;
    padding: 21px 33px 16px 33px;
    color: #000;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
}

.faq-accordion__toggle:checked+.faq-accordion__question {
    border-radius: 12px;
}

.faq-accordion__toggle:checked+.faq-accordion__question .faq-accordion__icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-accordion__toggle:checked+.faq-accordion__question+.faq-accordion__answer {
    grid-template-rows: 1fr;
}

.store-detail.-faq .flow-col {
    width: 116px;
    padding: 0;
    margin-bottom: 0;
}

.faq-contact_info-wrapper {
    display: flex;
    margin-top: 64px;
}

.faq-contact_info-item {
    width: 50%;
    min-width: 0;
}

.faq-contact_info-item .heading.heading--bar {
    margin-bottom: 74px;
}

.store-detail.-faq .flow-row {
    gap: 27px;
    flex-wrap: nowrap;
    margin: 0;
    padding-left: 14px;
}

.store-detail.-faq .flow-img {
    width: 116px;
    height: 116px;
    border-width: 3px;
}

.store-detail.-faq .flow-col:nth-child(2) .flow-img::after {
    display: none;
}

.store-detail.-faq .flow-desc {
    font-size: 16px;
    line-height: 1.35;
    padding-top: 10px;
    white-space: nowrap;
}

@media only screen and (max-width: 767px) {
    .faq-accordion__question {
        padding: 18px 27px 18px 20px;
    }

    .faq-accordion__answer p {
        padding: 16px 20px 16px 20px;
    }

    .faq-contact_info-wrapper {
        flex-direction: column;
        margin-top: 50px;
    }

    .faq-contact_info-item {
        width: 100%;
    }

    .faq-contact_info-item:not(:last-child) {
        margin-bottom: 50px;
    }

    .faq-contact_info-item .heading.heading--bar {
        margin-bottom: 40px;
    }

    .heading-primary .-sm {
        font-size: 22px;
    }

    .store-detail.-faq .flow-row {
        gap: 20px;
        padding-left: 0;
    }

    .store-detail.-faq .flow-col {
        width: calc((100% - 20px) / 2);
    }

    .store-detail.-faq .flow-img {
        width: 100px;
        height: 100px;
    }
}

.store-detail .flow-col:hover .flow-img svg path {
    stroke: #fff;
}

/* @media only screen and (min-width:992px) {
    .header__logo {
        max-width: 100px;
    }

    .nav__link .-en {
        font-size: 14px;
    }

    .nav__link {
        padding: 18px 5px 21px;
    }
} */

/* @media only screen and (min-width: 1200px) {
    .nav__link {
        padding: 11px 8px 21px;
    }
} */