@charset "UTF-8";
/* トップページ（templates/home.html）だけで読む。2026-10-15 作り直し（決めごとは docs/design/top-page.md）。
   golfscale の home.css と同じ部品構成（MV＋目次 / 丸い検索 / お知らせカード / 大会カード / 箱 / カテゴリタイル / 記事カード）を、
   バドスケールのテーマ（ターコイズ＝構造・バーミリオン＝価格と件数・バイオレット＝NEW。gs-shell.css）で描く。 */

.hm { --hm-gap: 40px; --hm-card: #fff; --hm-line: var(--line); --hm-sub: var(--mute);
  --hm-shadow: 0 1px 3px rgba(15, 31, 38, .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: 24px; }
.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-dark); white-space: nowrap; text-decoration: none; }
.hm-more::after { content: " ›"; }
.hm-more:hover { text-decoration: underline; }
.hm-lead { margin: -6px 0 12px; font-size: .86rem; color: var(--hm-sub); }
.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; }
.hm-btn.is-g { border-color: var(--g-dark); background: var(--g-dark); color: #fff; }
.hm-btn.is-g:hover { background: var(--g); border-color: var(--g); }
.hm-btn.is-s { border-color: var(--s-ink); background: var(--s-ink); color: #fff; }
.hm-btn.is-s:hover { background: #A3360A; border-color: #A3360A; }
.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(--tint); color: var(--g-dark); }
.hm-badge.is-s { background: var(--s-soft); color: var(--s-ink); }
.hm-badge.is-n { background: #EFEDE8; color: var(--hm-sub); }
.hm-tag { padding: 0 7px; border-radius: 4px; background: #F1EFEA; 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 { overflow: hidden; border: 1px solid var(--hm-line); border-radius: 10px; background: var(--hm-card); }
.hm-slide[hidden] { display: none; }
.hm-slide-img { display: block; aspect-ratio: 16 / 9; }
.hm-slide-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 画像がまだ無い枠の代替（文字だけ。地は主色の淡いグラデーション） */
.hm-slide-txt { display: flex; flex-direction: column; justify-content: center; gap: 12px; aspect-ratio: 16 / 9; padding: 34px 36px; min-width: 0;
  background: linear-gradient(135deg, #F7FBFC 0%, #E3F3F8 55%, #D6F1F8 100%); }
.hm-slide-txt.is-new, .hm-slide-txt.is-finder, .hm-slide-txt.is-lesson { background: linear-gradient(135deg, #FFF9F3 0%, #FDE8DD 60%, #FBD5C1 100%); }
.hm-slide-lbl { align-self: flex-start; padding: 0 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; line-height: 1.8; color: #fff; background: var(--g-dark); }
.hm-slide-lbl.is-s { background: var(--s-ink); }
.hm-slide-h { margin: 0; font-size: 1.9rem; line-height: 1.35; font-weight: 800; letter-spacing: .01em; color: var(--ink); }
.hm-slide-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
/* 前後ボタン・ドット（目次が入らない幅で出す） */
.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: #B9B6AE; cursor: pointer; }
.hm-dot.is-on { background: var(--g-dark); }
.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-dark); }
  .hm-toc a.is-on { border-color: var(--g-dark); box-shadow: inset 4px 0 0 var(--g-dark); }
  .hm-toc b { display: block; font-size: .84rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* 目次の 2 行目は各枠の中身の要約（大会名・モデル名・順位などのデータ）。説明文ではなくコンテンツ（2026-10-15 ユーザー判断） */
  .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-dark); }
  .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-h1 { margin: 0 0 10px; font-size: .95rem; font-weight: 700; color: var(--hm-sub); border: 0; }
.hm-search { display: flex; max-width: 620px; margin: 0 auto; overflow: hidden; border: 2px solid var(--g-dark); 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; }
.hm-search button { flex: 0 0 auto; padding: 0 24px; border: 0; background: var(--g-dark); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.hm-search button:hover { background: var(--g); }
.hm-search:focus-within { box-shadow: 0 0 0 3px rgba(14, 116, 144, .25); }

/* ===== お知らせカード ===== */
.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-dark); --pc-soft: var(--tint); --pc-ink: var(--g-dark); }
.hm-promo.is-s { --pc: var(--s); --pc-soft: var(--s-soft); --pc-ink: var(--s-ink); }
.hm-promo:hover { color: var(--ink); box-shadow: 0 10px 24px -18px rgba(15, 31, 38, .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-dark); color: var(--ink); }
.hm-evc-top { display: flex; align-items: center; gap: 8px; }
.hm-evc-date { font-weight: 800; }
.hm-evc-top .hm-badge { margin-left: auto; }
.hm-evc-title { font-weight: 800; line-height: 1.45; color: var(--g-dark); }
.hm-evc-place { font-size: .84rem; color: var(--hm-sub); }
.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; gap: 12px; align-items: center; padding: 10px 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-rkc:hover { border-color: var(--g-dark); color: var(--ink); }
.hm-rkc-av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 56px; background: var(--tint); }
.hm-rkc-av.is-txt { display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--g-dark); }
.hm-rkc-bd { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-rkc-cat { font-size: .76rem; font-weight: 700; color: var(--g-dark); }
.hm-rkc-top { font-weight: 800; line-height: 1.3; }
.hm-rk-n { display: inline-block; min-width: 1.6em; padding: 0 .45em; border-radius: 99px; background: var(--s-ink); color: #fff; font-size: .74rem; font-weight: 800; text-align: center; margin-right: 6px; line-height: 1.7; vertical-align: 1px; }
.hm-rkc-rest { font-size: .78rem; color: var(--hm-sub); line-height: 1.5; }
@media (min-width: 640px) { .hm-rk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hm-rk-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== 新着ラケット（横スクロール） ===== */
.hm-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.hm-pc { display: block; width: 190px; flex: 0 0 190px; 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-dark); color: var(--ink); }
.hm-pc-im { height: 140px; display: flex; align-items: center; justify-content: center; padding: 12px; border-bottom: 1px solid #EFEDE8; }
.hm-pc-im img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hm-pc-ph { color: #B9C5CA; }
.hm-pc-ph .icon { width: 32px; height: 32px; }
.hm-pc-bd { display: block; padding: 8px 12px 10px; font-size: .86rem; line-height: 1.5; }
.hm-pc-bd small { display: block; font-size: .74rem; color: var(--hm-sub); }
.hm-pc-bd b { display: block; font-weight: 800; }
.hm-pc-price { display: block; font-size: .8rem; font-weight: 800; color: var(--s-ink); }

/* ===== 2 枚組の箱（選手の使用ギア／はじめての方へ） ===== */
.hm-two { display: grid; gap: 20px; margin-top: var(--hm-gap); }
.hm-two > *, .hm-series > li, .hm-list > li, .hm-pl > * { min-width: 0; }   /* grid の子は min-width:auto だと中身の nowrap で横にはみ出す（スマホで 434px になった） */
.hm-box { display: flex; flex-direction: column; 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-list { margin: 0; padding: 0; list-style: none; }
.hm-list li + li { border-top: 1px solid var(--hm-line); }
.hm-pl { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; color: var(--ink); text-decoration: none; }
.hm-pl:hover b { color: var(--g-dark); }
.hm-pl-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--tint); }
.hm-pl-id b { display: block; font-size: .9rem; line-height: 1.3; }
.hm-pl-id small { font-size: .74rem; color: var(--hm-sub); }
.hm-pl-gear { display: flex; align-items: center; gap: 6px; max-width: 46%; }
.hm-pl-gear img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--tint); flex: 0 0 40px; }
.hm-pl-gear small { font-size: .72rem; color: var(--hm-sub); line-height: 1.3; text-align: right; }
.hm-series { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; flex: 1; }
.hm-sr { display: flex; align-items: center; gap: 10px; height: 100%; padding: 8px 10px; border: 1px solid var(--hm-line); border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.hm-sr:hover { border-color: var(--g-dark); color: var(--ink); }
.hm-sr-im { flex: 0 0 56px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--tint); }
.hm-sr-im img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hm-sr-bd { display: flex; flex-direction: column; min-width: 0; }
.hm-sr-bd b, .hm-sr-bd small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-sr-bd b { font-size: .92rem; line-height: 1.3; }
.hm-sr-bd small { font-size: .74rem; color: var(--hm-sub); }
@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-dark); color: var(--ink); }
.hm-cat-ic { display: block; width: 28px; height: 28px; color: var(--g-dark); }
.hm-cat-ic .icon { width: 28px; height: 28px; }
.hm-cat-name { margin-top: 6px; font-weight: 800; line-height: 1.35; }
.hm-cat-count { font-size: .8rem; font-weight: 700; color: var(--s-ink); }
@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-th { display: block; aspect-ratio: 1200 / 630; align-self: start; background: #EFEDE8; }
.hm-art-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.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:hover .hm-art-title { color: var(--g-dark); }
@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-txt { aspect-ratio: auto; gap: 10px; padding: 16px 16px 14px; }
  .hm-slide-h { font-size: 1.3rem; }
  .hm-slide-ctas .hm-btn { width: 100%; text-align: center; }
  /* スマホは短く（golfscale と同じ密度）: お知らせ 1 枚・大会 3 件・ランキングは順位と名前だけ・選手 3 名・案内 4 つ・カテゴリ 8 つ・読み物 2 本 */
  .hm-info .hm-promo:nth-child(n+2), .hm-ev-grid > :nth-child(n+4), .hm-lead, .hm-rkc-rest,
  .hm-list > li:nth-child(n+4), .hm-series > li:nth-child(n+5), .hm-cats > li:nth-child(n+9), .hm-arts > li:nth-child(n+3) { display: none; }
  .hm-sec-h h2, .hm-box-h h2 { font-size: 1.15rem; }
  .hm-series { grid-template-columns: 1fr; }   /* 2 列だとシリーズ名が省略される */
  .hm-sr { gap: 10px; padding: 7px 10px; }
  .hm-sr-im { flex-basis: 48px; width: 48px; height: 48px; }
  .hm-pc { width: 150px; flex-basis: 150px; }
  .hm-pc-im { height: 112px; }
  .hm-pl-gear img { display: none; }   /* 狭い幅はラケット名だけ */
  .hm-pl-id small { white-space: nowrap; }
}
