@charset "UTF-8";
/* トップページ（templates/home.html）だけで読む。2026-10-15 作り直し（決めごとは docs/design/top-page.md）。
   golfscale の home.css と同じ部品構成（MV＋目次 / 丸い検索 / お知らせカード / ニュースのカード / ランキング / 横スクロール /
   2 枚組の箱 / カテゴリタイル / 記事カード）を、carscale のテーマ色（ブルー＝構造・オレンジ＝強調。gs-shell.css の :root）で描く。 */

.hm { --hm-gap: 40px; --hm-card: #fff; --hm-line: var(--line); --hm-sub: var(--mute);
  --hm-shadow: 0 1px 3px rgba(16, 36, 43, .08); --hm-radius: 14px; padding-bottom: 8px; }
.hm h2, .hm h3 { border-bottom: 0; }
.hm .hm-sec { margin-top: var(--hm-gap); }
.hm .hm-sec-last { margin-bottom: 8px; }
.hm-sec-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.hm-sec-h h2, .hm-box-h h2 { margin: 0; font-size: 1.3rem; line-height: 1.4; font-weight: 800; color: var(--ink); }
.hm-more { margin-left: auto; font-size: .88rem; font-weight: 700; color: var(--g); white-space: nowrap; }
.hm-more::after { content: " ›"; }
.hm-more:hover { text-decoration: underline; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ボタン・札・タグ */
.hm-btn { display: inline-block; padding: 10px 26px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff;
  color: var(--ink); font-weight: 700; font-size: .92rem; line-height: 1.5; text-decoration: none; transition: background .15s, color .15s; }
.hm-btn:hover { background: var(--ink); color: #fff; text-decoration: none; }
.hm-btn.is-blue { border-color: var(--g); background: var(--g); color: #fff; }
.hm-btn.is-blue:hover { background: var(--g-dark); border-color: var(--g-dark); }
.hm-btn.is-amber { border-color: var(--s); background: var(--s); color: #fff; }
.hm-btn.is-amber:hover { background: var(--s-ink); border-color: var(--s-ink); }
.hm-badge { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: .74rem; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.hm-badge.is-g { background: var(--y-soft); color: var(--y-deep); }
.hm-badge.is-a { background: var(--s-soft); color: var(--s-ink); }
.hm-badge.is-n { background: var(--soft); color: var(--hm-sub); }
.hm-tag { padding: 0 7px; border-radius: 4px; background: var(--soft); line-height: 1.7; font-size: .78rem; white-space: nowrap; }

/* ===== MV: 左に大きく 1 枚＋右に目次（サムネは無し） ===== */
.hm-mv { position: relative; margin-top: 20px; }
.hm-mv-main { position: relative; min-width: 0; }
.hm-slide { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border: 1px solid var(--hm-line); border-radius: 12px; background: var(--hm-card);
  background-image: linear-gradient(135deg, #fff 0%, #fff 55%, var(--tint) 100%); }
.hm-slide.has-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.hm-slide[hidden] { display: none; }
.hm-slide-txt { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 440px; padding: 32px 36px; min-width: 0; }
.hm-slide-lbl { align-self: flex-start; padding: 0 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; line-height: 1.8; }
.hm-slide-lbl.is-g { background: var(--tint); color: var(--g); }
.hm-slide-lbl.is-a { background: var(--s-soft); color: var(--s-ink); }
.hm-slide-h { margin: 0; font-size: 1.75rem; line-height: 1.35; font-weight: 800; letter-spacing: .01em; color: var(--ink); }
.hm-slide-h .ln { display: block; }
.hm-slide-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
/* 写真は切らない（帰属に「改変していません」と書く。docs/design/images.md）。枠の中で全体を見せ、帰属を下に */
.hm-slide-ph { position: relative; margin: 0; display: flex; flex-direction: column; justify-content: center; padding: 18px 18px 8px; min-width: 0; }
.hm-slide-ph > a { display: block; }
.hm-slide-ph img { display: block; width: 100%; height: auto; max-height: 380px; object-fit: contain; border-radius: 10px; }
.hm-slide-ph figcaption { margin-top: 6px; font-size: .68rem; line-height: 1.5; color: var(--hm-sub); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-slide-ph figcaption a { color: inherit; }
/* 前後ボタン・ドット（目次が入らない幅で出す） */
.hm-mv-nav { display: none; position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.hm-mv-nav .icon { width: 18px; height: 18px; }
.hm-mv-prev { left: -16px; }
.hm-mv-next { right: -16px; }
.hm-mv-dots { display: flex; justify-content: center; gap: 10px; margin-top: 10px; line-height: 0; }
.hm-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #9FB4C4; cursor: pointer; }
.hm-dot.is-on { background: var(--g); }
.hm-toc { display: none; }
@media (min-width: 1000px) {
  .hm-mv.has-toc { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
  .has-toc .hm-mv-nav, .has-toc .hm-mv-dots { display: none; }
  .hm-toc { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
  .hm-toc li { display: flex; flex: 1 1 0; min-height: 0; }
  .hm-toc a { position: relative; display: block; flex: 1; padding: 8px 12px; overflow: hidden; border: 1px solid var(--hm-line); border-radius: 8px;
    background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s; }
  .hm-toc a:hover { border-color: var(--g); text-decoration: none; }
  .hm-toc a.is-on { border-color: var(--g); box-shadow: inset 4px 0 0 var(--g); }
  .hm-toc b { display: block; font-size: .84rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* 目次の 2 行目は各枠の中身の要約（車名・台数・金額などのデータ）。説明文ではなくコンテンツ（2026-10-16 ユーザー判断） */
  .hm-toc small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .72rem; line-height: 1.45; color: var(--hm-sub); }
  /* 自動で次に進むまでの残り時間（home.js の DELAY と同じ 6 秒） */
  .hm-toc a.is-on::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--g); }
  .hm-mv.is-playing .hm-toc a.is-on::after { animation: hm-prog 6s linear forwards; }
}
@keyframes hm-prog { to { width: 100%; } }
@media (min-width: 768px) and (max-width: 999px) {
  .hm-mv-main { padding: 0 56px; }
  .hm-mv-nav { display: flex; }
  .hm-mv-prev { left: 6px; }
  .hm-mv-next { right: 6px; }
}

/* ===== 検索（丸い枠・2px のブルー） ===== */
.hm-find { margin-top: 24px; text-align: center; }
.hm-search { position: relative; display: flex; max-width: 620px; margin: 0 auto; border: 2px solid var(--g); border-radius: 999px; background: #fff; }
.hm-search input { flex: 1; min-width: 0; padding: 11px 18px; border: 0; outline: 0; font: inherit; font-size: 16px; background: transparent; border-radius: 999px 0 0 999px; }
.hm-search button { flex: 0 0 auto; padding: 0 24px; border: 0; border-radius: 0 999px 999px 0; background: var(--g); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.hm-search button:hover { background: var(--g-dark); }
.hm-search:focus-within { box-shadow: 0 0 0 3px var(--tint); }
.hm-search .gs-hsearch-list { top: 52px; left: 10px; right: 10px; width: auto; max-width: none; text-align: left; }

/* ===== お知らせカード ===== */
.hm-info { display: grid; gap: 12px; margin-top: 24px; }
.hm-promo { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 14px 16px 14px 14px; background: #fff;
  border: 1px solid var(--hm-line); border-left: 4px solid var(--pc); border-radius: 12px; color: var(--ink); text-decoration: none; line-height: 1.5; transition: box-shadow .15s, transform .15s; }
.hm-promo.is-g { --pc: var(--g); --pc-soft: var(--tint); --pc-ink: var(--g); }
.hm-promo.is-a { --pc: var(--s); --pc-soft: var(--s-soft); --pc-ink: var(--s-ink); }
.hm-promo:hover { color: var(--ink); text-decoration: none; box-shadow: 0 10px 24px -18px rgba(16, 36, 43, .55); transform: translateY(-1px); }
.hm-promo-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hm-promo-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: .74rem; }
.hm-promo-label { font-weight: 700; color: var(--pc-ink); background: var(--pc-soft); padding: 0 8px; border-radius: 99px; }
.hm-promo-title { font-weight: 800; font-size: 1.02rem; line-height: 1.4; }
.hm-promo-cta { display: inline-flex; align-items: center; gap: 2px; padding: 8px 12px 8px 16px; border-radius: 99px; background: var(--pc-ink); color: #fff; font-weight: 700; font-size: .84rem; white-space: nowrap; }
.hm-promo-cta .icon { width: 15px; height: 15px; }
@media (min-width: 1000px) { .hm-info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

/* ===== 新型・改良のニュース ===== */
.hm-ev-grid { display: grid; gap: 12px; }
.hm-evc { display: flex; flex-direction: column; gap: 4px; padding: 13px 16px; border: 1px solid transparent; border-radius: var(--hm-radius); background: var(--hm-card);
  box-shadow: var(--hm-shadow); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.hm-evc:hover { border-color: var(--g); color: var(--ink); text-decoration: none; }
.hm-evc-top { display: flex; align-items: center; gap: 8px; }
.hm-evc-date { font-weight: 800; font-variant-numeric: tabular-nums; }
.hm-evc-top .hm-badge { margin-left: auto; }
.hm-evc-title { font-weight: 800; line-height: 1.45; color: var(--g); }
.hm-evc-place { font-size: .82rem; color: var(--hm-sub); line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.hm-evc-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: auto; padding-top: 4px; font-size: .78rem; }
@media (min-width: 640px) { .hm-ev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hm-ev-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== 販売台数ランキング ===== */
.hm-rk-grid { display: grid; gap: 12px; }
.hm-rkc { display: flex; flex-direction: column; gap: 4px; padding: 13px 16px; border: 1px solid transparent; border-radius: var(--hm-radius); background: var(--hm-card);
  box-shadow: var(--hm-shadow); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.hm-rkc:hover { border-color: var(--g); color: var(--ink); text-decoration: none; }
.hm-rkc-cat { font-size: .8rem; font-weight: 700; color: var(--g); }
.hm-rkc-top { display: flex; align-items: center; gap: 8px; font-weight: 800; line-height: 1.4; }
.hm-rk-n { width: 26px; height: 26px; border-radius: 50%; background: var(--g); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; flex: 0 0 auto; }
.hm-rkc-units { font-size: .84rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.hm-rkc-rest { font-size: .8rem; color: var(--hm-sub); line-height: 1.6; }
@media (min-width: 640px) { .hm-rk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hm-rk-grid { grid-template-columns: repeat(5, 1fr); } }

/* ===== 新型と改良の車（横スクロール） ===== */
.hm-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.hm-pc { display: block; width: 200px; flex: 0 0 200px; scroll-snap-align: start; border-radius: var(--hm-radius); background: var(--hm-card); box-shadow: var(--hm-shadow);
  border: 1px solid transparent; color: var(--ink); text-decoration: none; overflow: hidden; transition: border-color .15s; }
.hm-pc:hover { border-color: var(--g); color: var(--ink); text-decoration: none; }
.hm-pc-im { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--soft); border-bottom: 1px solid var(--soft); }
.hm-pc-im img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hm-pc-im .cs-badge { position: absolute; left: 8px; top: 8px; }
.hm-pc-ph { display: flex; align-items: center; justify-content: center; height: 100%; font-size: .76rem; color: var(--hm-sub); }
.hm-pc-bd { display: block; padding: 8px 12px 10px; font-size: .86rem; line-height: 1.5; }
.hm-pc-bd small { display: block; font-size: .72rem; color: var(--hm-sub); }
.hm-pc-bd b { display: block; font-weight: 800; }
.hm-pc-bd em { display: block; font-style: normal; font-size: .8rem; color: var(--hm-sub); font-variant-numeric: tabular-nums; }

/* ===== 2 枚組の箱（条件で探す／はじめての方へ） ===== */
.hm-two { display: grid; gap: 20px; margin-top: var(--hm-gap); }
.hm-box { padding: 16px 18px; border-radius: var(--hm-radius); background: var(--hm-card); box-shadow: var(--hm-shadow); }
.hm-box-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.hm-box .hm-box-h h2 { font-size: 1.1rem; }
.hm-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.hm-quick a { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border: 1px solid var(--hm-line); border-radius: 999px; background: #fff; color: var(--ink);
  text-decoration: none; font-size: .88rem; }
.hm-quick a:hover { border-color: var(--g); color: var(--g); text-decoration: none; }
.hm-quick small { font-size: .72rem; color: var(--hm-sub); }
.hm-signup { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--tint); font-size: .86rem; }
.hm-signup p { margin: 0 0 8px; color: var(--hm-sub); font-size: .78rem; }
.hm-signup b { display: block; color: var(--ink); font-size: .9rem; }
.hm-budgets { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-budgets a { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; border-radius: 8px; background: #fff; color: var(--g); font-weight: 700; font-size: .84rem; text-decoration: none; }
.hm-budgets a:hover { background: var(--g); color: #fff; text-decoration: none; }
.hm-budgets small { font-weight: 500; font-size: .72rem; opacity: .8; }
.hm-guide { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.hm-guide a { display: block; height: 100%; padding: 9px 12px; border-radius: 8px; background: var(--tint); color: var(--g); font-size: .9rem; font-weight: 700; line-height: 1.4; text-decoration: none; }
.hm-guide a:hover { background: #D5E4F4; color: var(--g); text-decoration: none; }
@media (min-width: 900px) { .hm-two { grid-template-columns: 1fr 1fr; } }

/* ===== カテゴリから探す ===== */
.hm-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.hm-cat { display: flex; flex-direction: column; height: 100%; padding: 13px 14px; border: 1px solid transparent; border-radius: var(--hm-radius); background: var(--hm-card);
  box-shadow: var(--hm-shadow); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.hm-cat:hover { border-color: var(--g); color: var(--ink); text-decoration: none; }
.hm-cat-ic .icon { width: 28px; height: 28px; color: var(--g); }
.hm-cat-name { margin-top: 6px; font-weight: 800; line-height: 1.35; }
.hm-cat-count { font-size: .8rem; font-weight: 700; color: var(--g); }
@media (min-width: 640px) { .hm-cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .hm-cats { grid-template-columns: repeat(5, 1fr); } }

/* ===== 読み物 ===== */
.hm-arts { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hm-art { display: grid; grid-template-columns: 42% 1fr; height: 100%; overflow: hidden; border-radius: var(--hm-radius); background: var(--hm-card); box-shadow: var(--hm-shadow); color: var(--ink); text-decoration: none; }
.hm-art:hover { text-decoration: none; color: var(--ink); }
.hm-art-th { display: block; aspect-ratio: 1200 / 630; align-self: start; background: var(--soft); }
.hm-art-th img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hm-art-bd { display: block; padding: 8px 12px 10px; font-size: .86rem; line-height: 1.55; }
.hm-art-bd small { display: block; font-size: .74rem; color: var(--hm-sub); }
.hm-art-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-weight: 700; }
.hm-art:hover .hm-art-title { color: var(--g); }
@media (min-width: 640px) { .hm-arts { grid-template-columns: repeat(2, 1fr); } .hm-art { display: block; } }
@media (min-width: 1000px) { .hm-arts { grid-template-columns: repeat(4, 1fr); } }

/* ===== スマホ ===== */
@media (max-width: 767px) {
  .hm { --hm-gap: 32px; }
  .hm-mv { margin-top: 12px; }
  .hm-slide.has-photo { grid-template-columns: minmax(0, 1fr); }
  .hm-slide-txt { min-height: 0; gap: 10px; padding: 16px 16px 14px; order: 2; }
  .hm-slide-ph { order: 1; padding: 10px 10px 0; }
  .hm-slide-ph img { max-height: 220px; }
  .hm-slide-ph figcaption { font-size: .62rem; }
  .hm-slide-h { font-size: 1.3rem; }
    .hm-slide-ctas .hm-btn { width: 100%; text-align: center; }
  /* スマホは短く: お知らせ 1 枚・ニュース 3 件・ランキングは総合と上 2 つ・案内 4 つ・カテゴリ 8 つ・読み物 2 本 */
  .hm-info .hm-promo:nth-child(n+2), .hm-ev-grid > :nth-child(n+4), .hm-rkc-rest, .hm-rk-grid > :nth-child(n+4),
  .hm-guide > li:nth-child(n+5), .hm-cats > li:nth-child(n+9), .hm-arts > li:nth-child(n+3), .hm-quick > li:nth-child(n+7) { display: none; }
  .hm-sec-h h2, .hm-box-h h2 { font-size: 1.15rem; }
  .hm-pc { width: 156px; flex-basis: 156px; }
}
