:root {
  --home-red: #eb0a1e;
  --color-primary: #eb0a1e;
  --home-ink: #202020;
  --home-muted: #777;
  --home-line: #e4e5e6;
  --home-bg: #f7f7f7;
  --home-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--home-ink); background: var(--home-bg); font-family: Arial, "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, a { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

@import url("./nav-drawer.css");

main { padding-top: 70px; }
.home-kv { position: relative; width: 100%; overflow: hidden; background: #111; }
.home-kv__track { display: flex; width: 100%; overflow: hidden; }
.home-kv__slide { position: relative; display: block; flex: 0 0 100%; min-width: 100%; overflow: hidden; opacity: 0; transition: opacity .5s ease; }
.home-kv__slide:not(.is-active) { display: none; }
.home-kv__slide.is-active { opacity: 1; }
.home-kv__slide > img { display: block; width: 100%; height: clamp(430px, 57vw, 760px); object-fit: cover; object-position: center; }
.home-kv__slide::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(0,0,0,.45), transparent 60%), linear-gradient(0deg, rgba(0,0,0,.35), transparent 40%); pointer-events: none; }
.home-kv__caption { position: absolute; z-index: 1; bottom: clamp(55px, 10vw, 110px); left: max(7%, calc((100% - var(--home-max)) / 2)); display: grid; gap: 10px; color: #fff; }
.home-kv__caption span { font-size: 13px; letter-spacing: .2em; }
.home-kv__caption strong { max-width: 470px; font-size: clamp(28px, 4vw, 58px); line-height: 1.12; letter-spacing: -.04em; }
.home-kv__caption em { width: fit-content; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.8); font-size: 13px; font-style: normal; }
.home-kv__pagination { position: absolute; z-index: 2; bottom: 16px; left: 50%; display: flex; gap: 6px; padding: 5px 10px; border-radius: 20px; background: rgba(255,255,255,.55); transform: translateX(-50%); }
.home-kv__pagination button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 10px; background: rgba(0,0,0,.25); }
.home-kv__pagination button.is-active { width: 20px; background: rgba(0,0,0,.55); }

.home-hot { display: flex; width: calc(100% - 10px); min-height: 112px; margin: 0 auto; padding: 15px 32px 10px 10px; background: url("/img/site/mobile/img/index_2025/hot_list_bg.webp") center / 100% 100% no-repeat; }
.home-hot__label { display: flex; width: 60px; flex: 0 0 60px; flex-direction: column; justify-content: center; align-items: flex-start; padding-bottom: 20px; }
.home-hot__label img { width: 14px; height: 18px; object-fit: contain; }
.home-hot__label strong { font-size: 14px; line-height: 18px; }
.home-hot__track { position: relative; width: calc(100% - 60px); min-width: 0; padding-bottom: 20px; }
.home-hot__track a { display: grid; grid-template-columns: 20px minmax(0, 1fr) 84px; height: 67px; align-items: center; gap: 10px; padding: 10px; border-radius: 6px; background: #feeded; }
.home-hot__rank { display: block; width: 20px; height: auto; }
.home-hot__thumbnail { width: 84px; height: 47px; object-fit: cover; }
.home-hot__track b { align-self: start; padding-top: 8px; font-size: 12px; font-weight: normal; line-height: 16px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.home-hot__pagination { position: absolute; bottom: 4px; left: 0; right: 60px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.home-hot__pagination button { width: 6px; height: 5px; padding: 0; border: 0; border-radius: 10px; background: #ccc; }
.home-hot__pagination button.is-active { width: 15px; background: #999; }

.home-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: calc(100% - 10px); min-height: 116px; margin: 20px auto 0; padding: 20px 10px; border-radius: 6px; background: #fff; box-shadow: 0 0 6px #0003; }
.home-quick a, .home-quick button { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0; border: 0; background: transparent; color: #000; font-size: 12px; line-height: 18px; }
.home-quick a:hover, .home-quick button:hover { color: var(--home-red); }
.home-quick img { width: 48px; height: 48px; object-fit: contain; }

.home-section { width: min(var(--home-max), calc(100% - 32px)); margin: 0 auto; padding: 72px 0 0; }
.home-section__heading { margin-bottom: 22px; }
.home-section__heading--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.home-section__heading span { display: block; margin-bottom: 9px; color: var(--home-red); font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.home-section__heading h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.04em; }
.home-section__heading--row > a { color: var(--home-red); font-size: 13px; }

.home-section.home-brand { width: calc(100% - 10px); margin: 20px auto 0; padding: 0; }
.home-brand__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px; border-radius: 6px; background: #fff; box-shadow: 0 0 6px #0003; }
.home-brand__grid a { display: grid; min-height: 80px; place-items: center; align-content: center; gap: 5px; padding: 10px 0; }
.home-brand__grid img { display: block; width: 40px; height: 40px; object-fit: contain; }
.home-brand__grid span { font-size: 12px; line-height: 16px; text-align: center; white-space: nowrap; }

.home-social-strip { display: flex; width: calc(100% - 10px); height: 50px; align-items: center; justify-content: space-between; gap: 18px; margin: 20px auto 0; padding: 10px 20px; border-radius: 6px; background: #fff; box-shadow: 0 0 6px #0003; }
.home-social-strip a { display: flex; height: 30px; align-items: center; justify-content: center; }
.home-social-strip img { display: block; max-width: 38px; height: 30px; object-fit: contain; }

.home-section.home-vehicles { width: calc(100% - 10px); padding-top: 20px; scroll-margin-top: 80px; }
.home-vehicle-nav { display: flex; align-items: baseline; gap: 30px; margin-bottom: 15px; }
.home-vehicle-nav h2 { margin: 0; padding-bottom: 4px; border-bottom: 2px solid var(--home-red); color: var(--home-red); font-size: 16px; line-height: 20px; font-weight: normal; }
.home-vehicle-nav a { font-size: 12px; color: #000; }
.home-vehicle-panel { padding: 10px 10px 40px; border-radius: 6px; background: #fff; box-shadow: 0 0 6px #0003; }
.home-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px .8%; margin-bottom: 16px; }
.home-tabs button { min-height: 40px; padding: 10px 4px; border: 0; border-radius: 3px; background: #f7f7f7; color: #000; font-size: 12px; line-height: 20px; }
.home-tabs button.is-active { background: var(--home-red); color: #fff; }
.home-vehicle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-vehicle-card { position: relative; display: block; min-width: 0; padding: 20px 0 0; background: #fff; }
.home-vehicle-card:hover { color: var(--home-red); }
.home-vehicle-card__badge { display: block; min-height: 19px; margin: 4px auto 2px; color: #777; font-size: 12px; text-align: center; }
.home-vehicle-card__badge--dark { color: #222; }
.home-vehicle-card__badge--hybrid { color: #5a7074; }
.home-vehicle-card > img { display: block; width: 100%; height: auto; padding-top: 18px; margin-bottom: 8px; object-fit: contain; }
.home-vehicle-card strong { display: block; padding: 0; text-align: center; font-size: 12px; font-weight: normal; }
.home-vehicle-card small { display: none; }
.home-vehicle-card__badge { text-align: right; padding-right: 6px; }
.home-vehicle-card[data-group="electric"] .home-vehicle-card__badge { visibility: hidden; }
.home-vehicle-card[href$="id=mirai"] .home-vehicle-card__badge { visibility: visible; width: 100px; height: 18px; margin: 4px 6px 2px auto; padding: 0; background: url("/img/site/common/images/cars_related/logo_fcev_b_h.webp") center / contain no-repeat; font-size: 0; }
.home-empty { padding: 45px 0; color: var(--home-muted); text-align: center; }

.home-services { padding-top: 74px; }
.home-service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.home-service-grid a, .home-service-grid button { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; gap: 4px 12px; min-height: 112px; align-items: center; padding: 18px; border: 0; border-radius: 6px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.08); text-align: left; }
.home-service-grid a:hover, .home-service-grid button:hover { box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.home-service-grid img { grid-row: 1 / span 2; width: 46px; height: 46px; object-fit: contain; }
.home-service-grid b { font-size: 15px; }
.home-service-grid small { color: var(--home-muted); font-size: 11px; }

.home-recommend { padding-bottom: 72px; }
.home-recommend__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-recommend__grid a { display: block; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.1); }
.home-recommend__grid img { display: block; width: 100%; height: 210px; object-fit: cover; transition: transform .3s ease; }
.home-recommend__grid a:hover img { transform: scale(1.04); }
.home-recommend__grid b, .home-recommend__grid small { display: block; padding: 16px 18px 0; }
.home-recommend__grid small { padding-top: 7px; padding-bottom: 18px; color: var(--home-muted); font-size: 12px; }

.home-sns { display: flex; width: min(var(--home-max), calc(100% - 32px)); align-items: center; justify-content: center; gap: 22px; margin: 0 auto; padding: 22px 0; border-top: 1px solid var(--home-line); }
.home-sns > span { color: #555; font-size: 13px; }
.home-sns a { display: block; height: 28px; }
.home-sns img { display: block; height: 28px; width: auto; }

.home-footer { margin-top: 0; padding: 0 8px 0; background: #fff; color: #000; }
.home-footer__top { display: flex; justify-content: center; align-items: center; height: 78px; }
.home-footer__top button { display: flex; align-items: center; gap: 7px; padding: 10px; color: #000; font-size: 11px; }
.home-footer__top button span { font-size: 18px; line-height: 12px; }
.home-footer__tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2%; padding-bottom: 20px; border-bottom: 1px solid #dee2e3; }
.footer-menu { position: relative; min-width: 0; }
.home-footer summary { cursor: pointer; list-style: none; }
.home-footer summary::-webkit-details-marker { display: none; }
.footer-menu > summary { display: flex; height: 54px; align-items: center; gap: 18px; padding: 10px 15px; border-radius: 4px; background: #fafafa; font-size: 14px; }
.footer-menu > summary img { width: 30px; height: 30px; object-fit: contain; }
.footer-menu > summary i { margin-left: auto; color: #555; font-size: 22px; font-style: normal; transition: transform .2s; }
.footer-menu[open] > summary i { transform: rotate(-90deg); }
.footer-menu[open] > summary { background: #f3f3f3; }
.footer-menu__panel { position: absolute; z-index: 100; bottom: calc(100% + 12px); width: min(480px, calc(100vw - 32px)); max-height: min(60vh, 420px); overflow: auto; padding: 14px; border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; box-shadow: 0 6px 24px #0002; color: #000; font-size: 12px; line-height: 1.7; text-align: left; }
.footer-friends { left: 0; display: grid; gap: 5px; }
.footer-friends a, .footer-friends button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 10px; border: 0; border-radius: 4px; background: #fafafa; color: #000; font-size: 12px; text-align: left; }
.footer-friends a:hover, .footer-friends button:hover { color: var(--home-red); background: #f6f6f6; }
.footer-friends span { padding-left: 12px; color: #888; }
.footer-hotlines { right: 0; }
.footer-hotlines > details + details { margin-top: 10px; }
.footer-hotlines summary { padding: 10px 12px; border-radius: 4px; background: #fafafa; font-size: 14px; font-weight: bold; }
.footer-hotlines summary::before { display: inline-block; content: '＋'; margin-right: 8px; color: #2584dc; }
.footer-hotlines details[open] > summary::before { content: '−'; }
.footer-hotlines p { margin: 14px 12px; }
.footer-hotlines p a { white-space: nowrap; }
.footer-hotlines p a:hover { color: var(--home-red); text-decoration: underline; }
.home-footer__socials { display: flex; justify-content: space-between; align-items: center; padding: 20px 15px 30px; }
.home-footer__socials a, .home-footer__socials button { display: block; height: 30px; padding: 0; }
.home-footer__socials img { display: block; width: auto; height: 30px; }
.home-footer__links { font-size: 12px; line-height: 20px; }
.home-footer__link-row { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; }
.home-footer__link-row:first-child { padding: 0 3%; margin-bottom: 10px; }
.home-footer__links a:hover, .footer-commitments > summary:hover { color: var(--home-red); }
.footer-commitments { position: relative; }
.footer-commitments .footer-menu__panel { left: 50%; transform: translateX(-50%); }
.footer-commitments .footer-menu__panel a { display: block; padding: 8px; }
.home-footer__copyright { margin-top: 20px; padding-bottom: 4px; color: #666; font-size: 9px; line-height: 1.6; text-align: center; }
.footer-qr { width: min(380px, calc(100vw - 40px)); margin: auto; padding: 24px; border: 0; border-radius: 10px; background: #fff; color: #222; }
.footer-qr::backdrop { background: #0008; }
.footer-qr form { display: flex; justify-content: flex-end; }
.footer-qr form button { padding: 0 4px; color: #555; font-size: 28px; }
.footer-qr h2 { margin-bottom: 20px; text-align: center; font-size: 18px; }
.footer-qr > img { width: 100%; height: auto; }

.home-toast { position: fixed; z-index: 1000; right: 20px; bottom: 24px; max-width: min(360px, calc(100vw - 40px)); padding: 12px 18px; border-radius: 4px; background: rgba(0,0,0,.82); color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }
.home-toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 850px) {
  .home-header__right { padding-right: 16px; }
  .home-header__service span { display: none; }
  .home-service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .home-header__left { width: 70px; }
  .home-header__account { font-size: 12px; }
  .home-kv__slide > img { height: 560px; object-position: center; }
  .home-kv__caption { bottom: 66px; left: 24px; }
  .home-kv__caption strong { font-size: 31px; }
  .home-hot { padding-right: 10px; }
  .home-hot__track b { font-size: 11px; }
  .home-quick a, .home-quick button { font-size: 11px; }
  .home-quick img { width: 40px; height: 40px; }
  .home-section { padding-top: 54px; }
  .home-section__heading--row { align-items: flex-start; }
  .home-brand__grid span { font-size: 11px; }
  .home-social-strip { gap: 10px; padding-inline: 10px; }
  .home-social-strip img { max-width: 30px; height: 25px; }
  .home-vehicle-grid { gap: 10px; }
  .home-vehicle-card strong { font-size: 12px; }
  .home-tabs button { font-size: 11px; }
  .home-service-grid { gap: 10px; }
  .home-service-grid a, .home-service-grid button { grid-template-columns: 34px 1fr; padding: 13px 10px; }
  .home-service-grid img { width: 34px; height: 34px; }
  .home-service-grid b { font-size: 13px; }
  .home-service-grid small { font-size: 10px; }
  .home-recommend__grid { grid-template-columns: 1fr; }
  .home-recommend__grid img { height: 180px; }
  .home-sns { gap: 14px; }
  .home-sns > span { display: none; }
  .footer-menu > summary { gap: 10px; padding: 10px; font-size: 12px; }
  .footer-menu > summary img { width: 26px; height: 26px; }
  .home-footer__socials { padding-inline: 8px; }
  .home-footer__socials img { max-width: 32px; height: 26px; object-fit: contain; }
  .home-footer__links { font-size: 10px; }
  .home-footer__link-row { gap: 10px; flex-wrap: wrap; }
  .home-footer__link-row:first-child { padding-inline: 0; }
}
