:root {
    --navy: #101f31;
    --yellow: #ffd21b;
    --text: #152131;
    --muted: #647080;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial,'Hiragino Kaku Gothic ProN','Noto Sans JP',sans-serif;
    color: var(--text);
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1180px;
    margin: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.site-head {
    background: #080a0c;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color .25s ease;
}
.site-head.is-scrolled {
    background-color: rgba(8, 10, 12, .86);
}

.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 20px;
}

.brand img {
    display: block;
    width: 200px;
    max-height: 56px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    font-weight: 700;
}

.nav-cta,.yellow-button {
    background: var(--yellow);
    color: #0a1420;
    border: 0;
    border-radius: 4px;
    font-weight: 800;
    padding: 14px 22px;
    cursor: pointer;
}

.menu {
    display: none;
    background: none;
    color: white;
    border: 0;
    font-size: 26px;
}

.hero {
    height: clamp(480px, 38vw, 650px);
    position: relative;
    background: #123;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s;
    background-size: cover;
    background-position: center 70%;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-copy {
    width: 100%;
    color: #fff;
}

.hero h1 {
    font-family: Georgia,'Yu Mincho',serif;
    font-size: clamp(34px,5vw,65px);
    line-height: 1.35;
    letter-spacing: .08em;
    margin: 0 0 12px;
}

.hero-en {
    font-size: 13px;
    letter-spacing: .24em;
}

.hero-copy>p:last-child {
    line-height: 1.8;
    font-weight: 700;
}

.slide-prev,.slide-next {
    position: absolute;
    top: 48%;
    background: #06152599;
    border: 0;
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 30px;
    cursor: pointer;
}

.slide-prev {
    left: 12px;
}

.slide-next {
    right: 12px;
}

.slide-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slide-dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    cursor: pointer;
}

.slide-dots button.active {
    background: var(--yellow);
    width: 26px;
    border-radius: 8px;
}

.search-panel {
    position: relative;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 6px 30px #19253622;
    margin-top: -22px;
    padding-top: 24px;
    padding-bottom: 24px;
    z-index: 2;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
}

.search-panel h2 {
    font-size: 23px;
    margin: 4px 0;
}

.search-panel h2 small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .2em;
    font-weight: 400;
    margin-top: 5px;
}

.search-panel form {
    display: grid;
    grid-template-columns: repeat(3,1fr) auto;
    gap: 12px;
    align-items: end;
}

label {
    display: grid;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
}

select,input,textarea {
    width: 100%;
    background: #f2f5f8;
    border: 1px solid #e4e8ef;
    border-radius: 4px;
    padding: 12px;
    font: inherit;
    color: var(--text);
}

.section {
    padding-top: 54px;
    padding-bottom: 40px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 22px;
}

.section-heading h2 {
    font-size: 26px;
    margin: 0;
}

.section-heading small {
    font-size: 11px;
    letter-spacing: .2em;
    color: var(--muted);
    margin-left: 10px;
}

.section-heading>a {
    font-size: 13px;
    border-bottom: 1px solid #9ba5b2;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
}

.car-card {
    display: grid;
    grid-template-columns: 43% 1fr;
    border: 1px solid #e6e9ef;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px #1522350c;
    min-height: 200px;
}

.car-image {
    background: #eef2f5;
    min-height: 180px;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8995a1;
    font-size: 14px;
    background: linear-gradient(145deg,#e9eef3,#f7f9fb);
}

.car-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.car-content h3 {
    margin: 0;
    font-size: 19px;
}

.car-desc {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

.car-content p {
    margin: 0;
}

.price {
    font-size: 29px;
    font-weight: 800;
    color: #dc2727;
    margin-top: auto;
}

.price small {
    font-size: 12px;
    color: #4c5968;
}

.car-link {
    display: block;
    background: var(--navy);
    color: #fff;
    padding: 11px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
}

.car-link.disabled {
    background: #9ba5ae;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(130deg,#12283d,#294761);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 42px;
}

.video-placeholder span {
    font-size: 13px;
    text-align: center;
    line-height: 1.8;
}

.video-grid h3 {
    font-size: 15px;
}

.news-list {
    border-top: 1px solid #dce2e8;
}

.news-row {
    display: flex;
    gap: 20px;
    padding: 16px 4px;
    border-bottom: 1px solid #dce2e8;
    align-items: center;
    font-size: 14px;
}

.news-row time {
    color: var(--muted);
    white-space: nowrap;
}

.news-tag {
    background: var(--yellow);
    padding: 4px 10px;
    font-size: 11px;
    white-space: nowrap;
}

.footer {
    background: #080a0c;
    color: #fff;
    margin-top: 50px;
    padding: 28px 0;
}

.footer-inner {
    display: flex;
    gap: 35px;
    align-items: center;
    justify-content: space-between;
}

.footer img {
    width: 180px;
}

.footer small {
    color: #aab0b7;
}

.inner-page {
    min-height: 65vh;
    padding-top: 52px;
}

.inner-page h1 {
    font-size: 36px;
}

.filter {
    display: grid;
    grid-template-columns: repeat(3,1fr) auto;
    gap: 12px;
    align-items: end;
    margin: 30px 0;
}

.lease-status {
    font-weight: bold;
    color: #146c52;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

.service-grid>div {
    padding: 24px;
    background: #f2f5f8;
}

.contact-form {
    max-width: 650px;
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.contact-form label {
    font-size: 15px;
}

.contact-form button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

@media(max-width:1000px) {
    .search-panel {
        display: block;
    }
    .search-panel form {
        margin-top: 18px;
        grid-template-columns: repeat(2,1fr);
    }
    .nav {
        gap: 12px;
    }
    .brand img {
        width: 165px;
    }
}

@media(max-width:720px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .head-inner {
        min-height: 64px;
    }
    .brand img {
        width: 160px;
    }
    .menu {
        display: block;
    }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #080a0c;
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
    }
    .nav.open {
        display: flex;
    }
    .hero {
        height: 400px;
    }
    .hero h1 {
        font-size: 37px;
    }
    .hero-copy {
        padding-left: 22px;
    }
    .search-panel {
        margin-top: -8px;
    }
    .search-panel form {
        grid-template-columns: 1fr;
    }
    .section {
        padding-top: 38px;
        padding-bottom: 22px;
    }
    .section-heading h2 {
        font-size: 21px;
    }
    .section-heading small {
        display: block;
        margin: 4px 0;
    }
    .car-grid,.video-grid,.service-grid {
        grid-template-columns: 1fr;
    }
    .car-card {
        grid-template-columns: 43% 1fr;
    }
    .car-content {
        padding: 12px;
    }
    .car-content h3 {
        font-size: 16px;
    }
    .price {
        font-size: 23px;
    }
    .news-row {
        gap: 8px;
        flex-wrap: wrap;
    }
    .news-row>span:last-child {
        width: 100%;
    }
    .footer-inner {
        display: block;
    }
    .footer-inner>* {
        display: block;
        margin-bottom: 18px;
    }
    .filter {
        grid-template-columns: 1fr;
    }
    .inner-page h1 {
        font-size: 29px;
    }
}

@media(max-width:380px) {
    .car-card {
        grid-template-columns: 1fr;
    }
    .car-image {
        height: 180px;
    }
    .car-content {
        padding: 16px;
    }
}

/* Top-page featured inventory: 4 columns desktop, 2 tablet, 1 mobile. */
.home-featured-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
}

.home-featured-grid .car-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.home-featured-grid .car-image {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f2f3f5;
}

.home-featured-grid .car-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-featured-grid .photo-placeholder {
    min-height: 0;
    height: 100%;
}

.home-featured-grid .car-content {
    flex: 1;
    padding: 14px;
    gap: 9px;
}

.home-featured-grid .car-content h3 {
    font-size: 16px;
}

.home-featured-grid .price {
    font-size: 24px;
}

@media(max-width:1000px) {
    .home-featured-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:720px) {
    .home-featured-grid {
        grid-template-columns: 1fr;
    }
    .home-featured-grid .car-content {
        padding: 16px;
    }
    .home-featured-grid .car-image {
        aspect-ratio: 4/3;
    }
}


/* カーリース案内 */

.lease-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin-top: 24px;
    margin-bottom: 48px;

    padding-top: 28px;
    padding-bottom: 28px;

    background: #101f31;
    border-radius: 6px;
    text-align: center;
}

.lease-banner-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.lease-banner-text span {
    color: #ffd21b;
    font-size: 11px;
    letter-spacing: .18em;
}

.lease-banner-text strong {
    font-size: 19px;
}

.lease-banner-button {
    display: inline-block;
    padding: 12px 30px;

    background: transparent;
    color: #fff;

    border: 1px solid #fff;
    border-radius: 4px;

    font-size: 14px;
    font-weight: 800;
    text-align: center;

    transition: background .2s, color .2s;
}

.lease-banner-button:hover {
    background: #fff;
    color: #101f31;
}

/* 中古車検索との間隔 */

.lease-banner + .search-panel {
    margin-top: 0;
    margin-bottom: 24px;
}

/* スマートフォン */

@media (max-width: 720px) {

    .lease-banner {
        margin-top: 16px;
        margin-bottom: 36px;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .lease-banner-text strong {
        font-size: 17px;
    }

}

/* カーリース：横長リストカード */
.lease-list { margin:24px 0 60px; }
.lease-list-item { display:grid; grid-template-columns:minmax(170px,28%) 1fr; gap:26px; align-items:center; border-top:1px solid #ddd; padding:24px 8px; }
.lease-list-item:last-child { border-bottom:1px solid #ddd; }
.lease-list-photo img { width:100%; aspect-ratio:4/3; object-fit:contain; }
.lease-list-photo .photo-placeholder { min-height:155px; display:grid; place-items:center; background:#f2f3f5; color:#777; }
.lease-list-info h2 { font-size:21px; margin:0 0 10px; }
.lease-list-info p { margin:7px 0; }
.lease-list-price { font-size:22px; font-weight:800; }
.lease-list-status { font-weight:700; }
.lease-list-info .car-link { display:inline-block; margin-top:12px; }
@media(max-width:600px) { .lease-list-item { grid-template-columns:36% 1fr; gap:12px; padding:18px 0; }.lease-list-info h2 { font-size:16px; }.lease-list-price { font-size:17px; }.lease-list-photo .photo-placeholder { min-height:100px; font-size:12px; text-align:center; } }

/* 在庫一覧：トップページと同じ画像比率で、写真全体を表示 */
.inner-page .car-grid .car-image {
    aspect-ratio: 4 / 3;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.inner-page .car-grid .car-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
@media (max-width: 720px) {
    .inner-page .car-grid .car-image { aspect-ratio: 4 / 3; }
}

/* トップページ：公式SNSへの案内 */
.social-follow-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.social-follow-card { border-radius:14px; padding:30px; color:#fff; display:flex; flex-direction:column; align-items:flex-start; min-width:0; }
.social-follow-line { background:linear-gradient(135deg,#087c32,#06b846); }
.social-follow-instagram { background:linear-gradient(135deg,#5b3dbb,#b72e84 60%,#e57736); }
.social-follow-label { font-size:12px; font-weight:800; letter-spacing:.14em; opacity:.9; }
.social-follow-card h3 { margin:12px 0; font-size:clamp(19px,2vw,26px); color:#fff; }
.social-follow-card p { margin:0 0 24px; line-height:1.8; flex:1; }
.social-follow-button { display:inline-flex; justify-content:center; align-items:center; text-align:center; min-height:46px; padding:12px 22px; border-radius:8px; background:#fff; color:#152335; font-weight:800; text-decoration:none; }
.social-follow-button:hover { opacity:.9; }
@media (max-width:720px) { .social-follow-grid { grid-template-columns:1fr; gap:16px; } .social-follow-card { padding:24px; } .social-follow-button { width:100%; } }

/* 店舗情報フッター */
.cd-footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:28px;align-items:start;padding-top:35px;padding-bottom:35px}.cd-footer-grid h2{font-size:17px;margin:0 0 12px;color:inherit}.cd-footer-grid p{line-height:1.75;margin:0 0 12px}.cd-footer-grid a{color:inherit;text-decoration:underline;text-underline-offset:3px}.cd-footer-brand img{max-width:190px;height:auto;object-fit:contain;margin-bottom:12px}@media(max-width:800px){.cd-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}}@media(max-width:480px){.cd-footer-grid{grid-template-columns:1fr;gap:20px}}

/* 中古カーリース500の説明（トップページ） */
.lease-intro-lead{font-size:15px;line-height:1.9;color:#33475c;margin:0 0 22px}
.lease-intro-prices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:30px}
.lease-intro-price{background:#101f31;color:#fff;border-radius:10px;padding:18px;text-align:center}
.lease-intro-price small{display:block;font-size:11px;letter-spacing:.12em;color:#ffd21b;font-weight:800;margin-bottom:7px}
.lease-intro-price strong{display:block;font-size:24px;line-height:1.2}
.lease-intro-price span{display:block;font-size:11px;color:#c6d1db;margin-top:6px}
.lease-intro-sub{font-size:17px;margin:28px 0 13px;padding-left:11px;border-left:4px solid #ffd21b;line-height:1.4}
.lease-intro-cases{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 22px}
.lease-intro-cases li{position:relative;padding-left:24px;font-size:14px;line-height:1.7;color:#33475c}
.lease-intro-cases li:before{content:"✓";position:absolute;left:0;top:0;color:#b98a00;font-weight:900}
.lease-intro-points{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.lease-intro-point{background:#f6f8fa;border:1px solid #e7ebf0;border-radius:10px;padding:17px 18px}
.lease-intro-point h4{margin:0 0 8px;font-size:15px;color:#14293d}
.lease-intro-point p{margin:0;font-size:13px;line-height:1.8;color:#526274}
.lease-intro-compare{margin-top:26px;background:#fffbe8;border:1px solid #f0df9a;border-radius:10px;padding:19px 20px}
.lease-intro-compare-title{margin:0 0 13px;font-size:16px;font-weight:800;color:#14293d}
.lease-intro-compare-rows{display:grid;gap:8px}
.lease-intro-compare-row{display:flex;justify-content:space-between;align-items:baseline;gap:14px;background:#fff;border:1px solid #e7ebf0;border-radius:7px;padding:11px 15px;font-size:13px;color:#526274}
.lease-intro-compare-row strong{font-size:19px;color:#14293d;white-space:nowrap}
.lease-intro-compare-row.is-lease{border-color:#101f31;background:#101f31;color:#c6d1db}
.lease-intro-compare-row.is-lease strong{color:#ffd21b}
.lease-intro-compare-note{margin:11px 0 0;font-size:11px;line-height:1.7;color:#778494}
.lease-intro-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.lease-intro-button{display:inline-block;padding:14px 28px;border:1px solid #101f31;border-radius:6px;color:#101f31;font-size:14px;font-weight:800;text-align:center;transition:.2s}
.lease-intro-button.is-primary{background:#101f31;color:#fff}
.lease-intro-button:hover{opacity:.82}
.lease-intro-note{margin:15px 0 0;font-size:11px;line-height:1.8;color:#778494}
@media(max-width:720px){.lease-intro-prices{grid-template-columns:1fr}.lease-intro-cases{grid-template-columns:1fr}.lease-intro-points{grid-template-columns:1fr}.lease-intro-price strong{font-size:22px}.lease-intro-actions .lease-intro-button{flex:1}}

/* 業務レンタカーバナー（トップ）：黄色背景・横並びレイアウト */
.rent-banner{display:flex;align-items:center;justify-content:space-between;gap:22px;flex-wrap:wrap;margin-top:-24px;margin-bottom:48px;padding:26px 30px;background:#ffd21b;border-radius:6px;color:#101f31}
.rent-banner-text span{display:block;font-size:11px;letter-spacing:.18em;font-weight:700;margin-bottom:6px}
.rent-banner-text strong{display:block;font-size:20px;line-height:1.5}
.rent-banner-text p{margin:6px 0 0;font-size:13.5px;line-height:1.7}
.rent-banner-side{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.rent-banner-price small{display:block;font-size:12px;font-weight:700}
.rent-banner-price strong{font-size:32px;line-height:1.15}
.rent-banner-button{display:inline-block;padding:13px 28px;background:#101f31;color:#fff;border-radius:999px;text-decoration:none;font-weight:700;white-space:nowrap}
@media(max-width:720px){.rent-banner{flex-direction:column;text-align:center;justify-content:center}.rent-banner-side{flex-direction:column;gap:14px}}

/* フッター：電話と地図を1行に／スマホでは区切り線つきで整理 */
.cd-footer-links{display:flex;gap:20px;flex-wrap:wrap;align-items:center;margin-top:8px}
@media(max-width:640px){
.cd-footer-grid{grid-template-columns:1fr;gap:0;padding-top:28px;padding-bottom:30px}
.cd-footer-brand{text-align:center;padding-bottom:22px}
.cd-footer-brand img{display:block;margin:0 auto 12px}
.cd-footer-brand a[href$="contact.php"]{display:inline-block;margin-top:8px;padding:10px 24px;border:1px solid rgba(255,255,255,.55);border-radius:999px;text-decoration:none}
.cd-footer-shop{border-top:1px solid rgba(255,255,255,.16);padding-top:18px}
.cd-footer-shop h2{display:flex;align-items:center;gap:9px;font-size:16px;margin-bottom:9px}
.cd-footer-shop h2::before{content:"";width:4px;height:17px;background:#ffd21b;border-radius:2px;flex:none}
.cd-footer-shop p{margin:0 0 6px;line-height:1.65}
.cd-footer-links{margin-top:9px}
}
