@charset "UTF-8";
/* トップページ（templates/home.html）だけで読む。コンビニの今週の新商品のスライド → 見出しと検索窓 → ブランド → カテゴリ → メーカー。
   カード・タイルの部品は main.css（.ct / .mk）。色は gs-shell.css の変数だけ（hex を直書きしない）。 */

.hm { --hm-gap: 48px; padding-bottom: 8px; }
.hm .hm-sec { margin-top: var(--hm-gap); }
.hm .hm-sec-last { margin-bottom: 8px; }
.hm-sec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hm-sec-h h2 { margin: 0; font-size: 1.45rem; line-height: 1.4; color: var(--ink); text-decoration-line: underline; text-decoration-color: var(--y-soft);
  text-decoration-thickness: .42em; text-underline-offset: -.2em; text-decoration-skip-ink: none; }
.hm-sec-ic { display: inline-block; }
.hm-sec-ic { margin-right: .3em; }
.hm-more { margin-left: auto; font-size: .92rem; font-weight: 700; color: var(--g); white-space: nowrap; text-decoration: none; }
.hm-more::after { content: " ›"; }
.hm-more:hover { text-decoration: underline; }

/* ===== 見出しと検索窓 ===== */
.hm-hero { position: relative; overflow: hidden; margin-top: 20px; padding: 30px 40px 26px; border-radius: 28px; text-align: center;
  background: radial-gradient(circle at 88% 18%, var(--y-soft) 0, transparent 38%), radial-gradient(circle at 12% 110%, var(--s-soft) 0, transparent 40%),
    linear-gradient(120deg, var(--tint) 0%, var(--soft) 55%, var(--card) 100%); }
.hm-h1 { position: relative; margin: 0 0 16px; font-size: 1.7rem; line-height: 1.3; letter-spacing: .01em; color: var(--ink); }
.hm-h1 .ln { display: inline-block; }
.hm-h1 em { font-style: normal; color: var(--g); }
.hm-search { position: relative; max-width: 620px; margin: 0 auto; justify-content: stretch; }
.hm-search input { max-width: none; height: 56px; padding: 0 60px 0 24px; font-size: 1.05rem; background: #fff; box-shadow: var(--shadow-md); }
.hm-search button { right: 7px; width: 42px; height: 42px; }
.hm-search .gs-hsearch-list { top: 64px; left: 0; right: 0; width: auto; }
.hm-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 14px 0 0; font-size: .86rem; font-weight: 700; color: var(--mute); }
.hm-stats b { font-family: var(--font-pop); font-size: 1.05rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ===== ティア表の入口 ===== */
.hm-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hm-tiers a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 12px 16px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; }
.hm-tiers a:hover { background: var(--tint); }
.hm-tier-ranks { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; flex: 0 0 auto; }
.hm-tier-ranks b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-family: var(--font-pop); font-size: .8rem; font-weight: 800; color: #fff; }
.hm-tier-ranks b:nth-child(1) { background: var(--g); } .hm-tier-ranks b:nth-child(2) { background: var(--brand); }
.hm-tier-ranks b:nth-child(3) { background: var(--y); color: var(--ink); } .hm-tier-ranks b:nth-child(4) { background: var(--y-soft); color: var(--y-deep); }
.hm-tier-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-tier-txt b { font-family: var(--font-pop); font-size: .98rem; line-height: 1.35; }
.hm-tier-txt small { font-size: .76rem; color: var(--mute); display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

/* ===== ブランドのチップ ===== */
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hm-chips a { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-sm);
  color: var(--ink); font-weight: 700; font-size: .92rem; text-decoration: none; }
.hm-chips a:hover { background: var(--tint); color: var(--g-dark); }
.hm-chips small { font-family: var(--font-pop); font-size: .74rem; font-weight: 800; color: var(--mute); font-variant-numeric: tabular-nums; }

/* ===== スマホ ===== */
@media (max-width: 767px) {
  .hm { --hm-gap: 36px; }
  .hm-hero { margin-top: 12px; padding: 22px 16px 18px; border-radius: 26px; }
  .hm-h1 { font-size: 1.4rem; margin-bottom: 14px; }
  .hm-search { position: relative; flex: 1 1 auto; }
  .hm-search input { display: block; max-width: none; height: 50px; padding: 0 56px 0 20px; font-size: 1rem; }
  .hm-search button { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px; background: var(--g); color: #fff; }
  .hm-search .gs-hsearch-list { top: 58px; }
  .hm-stats { gap: 4px 12px; font-size: .8rem; }
  .hm-sec-h h2 { font-size: 1.22rem; }
}

/* ===== スライド（兄弟サービスのトップと同じ型: 左に大きく 1 枚 ＋ PC は右に目次）===== */
.hm-mv { position: relative; margin-top: 22px; }
.hm-mv-main { position: relative; min-width: 0; }
.hm-slide { --sl-bg: var(--tint); --sl-ink: var(--g-dark); display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: 28px;
  background: radial-gradient(circle at 92% 12%, var(--card) 0, transparent 42%), linear-gradient(135deg, var(--sl-bg) 0%, var(--soft) 70%, var(--card) 100%);
  box-shadow: var(--shadow-sm); }
.hm-slide.tone-y { --sl-bg: var(--y-soft); --sl-ink: var(--y-deep); }
.hm-slide.tone-s { --sl-bg: var(--s-soft); --sl-ink: var(--s-ink); }
.hm-slide.tone-b { --sl-bg: var(--sky); --sl-ink: var(--sky-ink); }
.hm-slide.has-thumbs { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.hm-slide[hidden] { display: none; }
.hm-slide-txt { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 380px; padding: 34px 40px; min-width: 0; }
.hm-slide-lbl { align-self: flex-start; padding: 2px 14px; border-radius: 999px; background: var(--card); color: var(--sl-ink); font-family: var(--font-pop);
  font-size: .86rem; font-weight: 800; box-shadow: var(--shadow-sm); }
.hm-slide-h { margin: 0; font-family: var(--font-pop); font-size: 1.85rem; line-height: 1.38; font-weight: 800; color: var(--ink); }
.hm-slide-h .ln { display: block; }
.hm-slide-h .ln + .ln { color: var(--sl-ink); }
.hm-slide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.hm-slide-when { font-size: .88rem; font-weight: 700; color: var(--mute); }
.hm-slide-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
/* 右の小さなサムネ 6 枚（識別用 88px。公式写真を 1 枚だけ大きく出さない） */
.hm-slide-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: center; margin: 0; padding: 26px 28px 26px 0; list-style: none; min-width: 0; }
.hm-slide-thumbs a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px 7px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none; min-width: 0; }
.hm-slide-thumbs a:hover { transform: translateY(-2px); }
.hm-slide-thumbs img, .hm-thumb-noimg { display: block; width: 88px; height: 88px; object-fit: contain; }
.hm-thumb-noimg { display: grid; place-items: center; font-size: 2rem; }
.hm-slide-thumbs span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; width: 100%; font-size: .72rem; line-height: 1.35; font-weight: 700; text-align: center; }
.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: var(--card); box-shadow: var(--shadow-md); color: var(--g); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.hm-mv-prev { left: -14px; } .hm-mv-next { right: -14px; }
.hm-mv-dots { display: flex; justify-content: center; gap: 10px; margin-top: 12px; line-height: 0; }
.hm-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; transition: width .2s ease, background .2s ease; }
.hm-dot.is-on { width: 26px; border-radius: 6px; background: var(--g); }
.hm-toc { display: none; }
@media (min-width: 1000px) {
  .hm-mv.has-toc { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 16px; }
  .has-toc .hm-mv-nav, .has-toc .hm-mv-dots { display: none; }
  .hm-toc { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
  .hm-toc li { display: flex; flex: 1 1 0; min-height: 0; }
  .hm-toc a { --sl-bg: var(--tint); --sl-ink: var(--g-dark); position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; flex: 1;
    padding: 10px 14px 10px 18px; overflow: hidden; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-sm); color: var(--ink);
    text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
  .hm-toc a.tone-y { --sl-bg: var(--y-soft); --sl-ink: var(--y-deep); }
  .hm-toc a.tone-s { --sl-bg: var(--s-soft); --sl-ink: var(--s-ink); }
  .hm-toc a.tone-b { --sl-bg: var(--sky); --sl-ink: var(--sky-ink); }
  .hm-toc a:hover { transform: translateX(-3px); color: var(--ink); }
  .hm-toc a.is-on { background: var(--sl-bg); box-shadow: inset 5px 0 0 var(--sl-ink), var(--shadow-sm); }
  .hm-toc-lbl { font-size: .72rem; font-weight: 800; color: var(--sl-ink); }
  .hm-toc b { display: block; font-size: .9rem; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* 目次の 2 行目は各枠の中身の要約（商品名・価格・件数などのデータ）。説明文ではなくコンテンツ */
  .hm-toc small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .74rem; line-height: 1.45; color: var(--mute); }
  /* 自動で次に進むまでの残り時間（home.js の DELAY と同じ 6 秒） */
  .hm-toc a.is-on::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--sl-ink); }
  .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 54px; }
  .hm-mv-nav { display: grid; place-items: center; }
  .hm-mv-prev { left: 4px; } .hm-mv-next { right: 4px; }
}
@media (max-width: 767px) {
  .hm-mv { margin-top: 12px; }
  .hm-slide { border-radius: 24px; }
  .hm-slide.has-thumbs { grid-template-columns: minmax(0, 1fr); }
  .hm-slide-txt { min-height: 0; gap: 10px; padding: 6px 18px 20px; order: 2; }
  .hm-slide-thumbs { order: 1; gap: 8px; padding: 16px 14px 4px; }
  .hm-slide-thumbs img, .hm-thumb-noimg { width: 72px; height: 72px; }
  .hm-slide-thumbs span { font-size: .66rem; }
  .hm-slide-h { font-size: 1.3rem; }
  .hm-slide-ctas .btn-pop { width: 100%; }
  .hm-hero { padding: 22px 18px 20px; border-radius: 24px; }
}

