/* トップページ（2026-09-27）：mimitv.jp（Mimi Beauty）のスマホ版の配置・構造を参考にした。
   見出し・ランキングのタブは運営者の参考画像どおり。色・ロゴ・飾り（ローズ／こげ茶／水色、スパーク、スカラップ）はこのサイトのもの。
   経緯と元の試作は docs/home-mimi-20260927/。 */
:root {
  color-scheme: light;
  --bg: #fff;
  --pink-50: #fdf2f5; --pink-100: #fae4eb; --pink-200: #f3c3d2;
  --sky-50: #e8f3f8; --sky-100: #d3e8f1;
  --rose: #d9658a; --rose-ink: #b3486d; --rose-deep: #bd5078;
  --ink: #3b302f; --ink-2: #5f5453; --ink-3: #85797a;
  --hair: #f0e3e6;
  --brown: #3a2e2f;
  --star: #e0a14a; --star-off: #e9dfe1;
  --f-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --f-en: "Poppins", var(--f-jp);
  --f-dp: "Cormorant Garamond", Georgia, "Yu Mincho", serif;
  --f-logo: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  --f-rk: "Shippori Mincho B1", Georgia, "Yu Mincho", serif;
  --gut: 16px;
  --wrap: 1120px;
  --shadow: 0 6px 22px rgba(150, 70, 95, .10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-jp); font-size: 14px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden], .is-hidden { display: none !important; }
:where(a, button, input):focus-visible { outline: 2px solid var(--rose-ink); outline-offset: 3px; }
svg.ln { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg.fl { fill: currentColor; }

/* ---------- ヘッダー：左にメニュー、中央にロゴ ---------- */
.mh { position: sticky; top: 0; z-index: 60; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; min-height: 60px; padding: 0 6px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); }
.mh-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--rose); border-radius: 50%; }
.mh-find svg { width: 23px; height: 23px; }
.mh-burger { position: relative; }
.mh-burger span { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.mh-burger span:nth-child(1) { top: 14px; }
.mh-burger span:nth-child(2) { top: 21px; }
.mh-burger span:nth-child(3) { top: 28px; }
.mh.open .mh-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mh.open .mh-burger span:nth-child(2) { opacity: 0; }
.mh.open .mh-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mh-logo { justify-self: center; display: inline-flex; align-items: center; gap: 6px; }
.mh-logo .mark, .mf-logo .mark { width: 25px; height: 21px; color: var(--rose); flex: none; }
.mh-logo b, .mf-logo b { font: 700 clamp(15px, 4.9vw, 19px)/1 var(--f-logo); letter-spacing: -.02em; white-space: nowrap; color: var(--ink); }
.mh-logo i, .mf-logo i { font-style: normal; color: var(--rose); }
.mh-gnav { display: none; }

/* ---------- メニュー（ドロワー） ---------- */
.drawer { position: fixed; inset: 60px 0 0; z-index: 55; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 48px; background: var(--rose-deep); color: #fff; animation: dr-in .22s ease-out; }
@keyframes dr-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }
.dr-search { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid rgba(255, 255, 255, .85); margin-bottom: 8px; }
.dr-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 2px; font-size: 16px; color: #fff; outline-offset: 0; }
.dr-search input::placeholder { color: rgba(255, 255, 255, .82); }
.dr-search button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: #fff; }
.dr-search svg { width: 22px; height: 22px; }
.dr-nav > a, .dr-acc > button, .dr-other-h { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .42); background: none; color: #fff; text-align: left; }
.dr-nav svg { width: 24px; height: 24px; flex: none; }
.dr-nav b { font: 600 17px/1.2 var(--f-en); letter-spacing: .06em; }
.dr-nav small { font-size: 11.5px; letter-spacing: .04em; opacity: .92; }
.dr-acc .chev { margin-left: auto; width: 20px; height: 20px; transition: transform .2s; }
.dr-acc > button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dr-acc ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; padding: 10px 0 12px 36px; border-bottom: 1px solid rgba(255, 255, 255, .42); }
.dr-acc ul a, .dr-other ul a { display: block; padding: 6px 0; font-size: 13px; font-weight: 500; }
.dr-other-h { border-bottom: 0; padding-bottom: 4px; }
.dr-other ul { padding: 0 0 0 36px; }

/* ---------- 検索結果の帯 ---------- */
.search-result { position: sticky; top: 60px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px var(--gut); background: var(--pink-50); font-size: 13px; }
.search-result b { color: var(--rose-ink); }
.search-result button { border: 1px solid var(--pink-200); background: #fff; color: var(--rose-ink); border-radius: 99px; padding: 5px 14px; font-size: 12px; }
.products.no-hit { display: none; }

/* ---------- 共通：見出し・VIEW MORE・矢印ボタン ---------- */
.sec { max-width: var(--wrap); margin: 0 auto; padding: 60px var(--gut) 0; }
/* 見出しは運営者の参考画像（ランキングの見出し、2026-09-27）の形にすべて揃える */
.sec-title, .band-title { margin-bottom: 33px; text-align: center; color: #1a1a1a; }
.sec-title .en, .band-title .en { display: block; font: 700 29px/1 var(--f-rk); letter-spacing: .03em; }
.sec-title .ja, .band-title .ja { display: block; margin-top: 16px; font: 700 16px/1 var(--f-jp); letter-spacing: .04em; }
.sec-note { font-size: 10.5px; line-height: 1.75; color: var(--ink-3); }
.sec .sec-note { margin: -12px 0 20px; text-align: center; }
.more { display: flex; align-items: center; justify-content: center; gap: 14px; width: fit-content; margin: 34px auto 0; font: 500 14px/1 var(--f-en); letter-spacing: .1em; color: var(--rose-ink); }
.more-c { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; transition: background .2s, color .2s; }
.more-c svg { width: 16px; height: 16px; }
.more:hover .more-c { background: var(--rose-ink); color: #fff; }
.arw { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--rose); color: #fff; transition: opacity .2s; }
.arw svg { width: 16px; height: 16px; stroke-width: 2.2; }
.arw[data-prev] svg { transform: scaleX(-1); }
.arw:disabled { opacity: .35; cursor: default; }
.brand-tag { font: 500 10.5px/1.4 var(--f-en); letter-spacing: .06em; color: var(--rose-ink); }

/* ---------- PICK UP：大きいカードの横スライド ---------- */
.pickup { position: relative; overflow: hidden; padding: 16px 0 26px; background: linear-gradient(#fff 0 44px, var(--pink-50) 44px); }
.pickup-label { position: absolute; left: -4px; top: 10px; writing-mode: vertical-rl; font: 600 50px/1 var(--f-dp); letter-spacing: .1em; color: var(--pink-200); user-select: none; }
.pk-deco { position: absolute; color: #fff; opacity: .95; }
.pk-deco.d1 { width: 34px; height: 28px; right: 14px; bottom: 64px; }
.pk-deco.d2 { width: 18px; height: 15px; right: 58px; top: 22px; color: var(--pink-200); }
.pk-track { position: relative; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut) 10px 30px; scroll-padding-left: 30px; scrollbar-width: none; }
.pk-track::-webkit-scrollbar, .buzz-grid::-webkit-scrollbar, .rk-nav::-webkit-scrollbar { display: none; }
.pk-track::after { content: ""; flex: 0 0 1px; }
.pk-slide { flex: 0 0 min(80%, 380px); scroll-snap-align: start; }
.pk-slide > a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.pk-img { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--sky-50); }
.pk-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pk-img.contain img { object-fit: contain; padding: 12px 0; mix-blend-mode: multiply; }
.img-note { position: absolute; right: 8px; bottom: 7px; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .78); font-size: 9px; font-style: normal; color: var(--ink-2); }
.pk-body { display: block; padding: 16px 18px 20px; }
.cat { display: block; font: 500 11.5px/1.3 var(--f-en); letter-spacing: .14em; color: var(--rose-ink); }
.pk-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: 9px; font: 700 16.5px/1.6 var(--f-jp); letter-spacing: .02em; color: var(--ink); }
.pk-ctrl { display: flex; align-items: center; justify-content: space-between; max-width: 420px; padding: 12px var(--gut) 0 30px; }
.pk-count { font: 500 14px/1 var(--f-en); letter-spacing: .12em; color: var(--ink-2); }
.pk-count b { font-weight: 500; }

/* ---------- LATEST：2列の記事カード（build_news.py の .ncard） ---------- */
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
.ncard { display: flex; flex-direction: column; }
.ncard .ni { display: block; aspect-ratio: 1; overflow: hidden; background: #fff; border: 1px solid var(--hair); }
.ncard .ni img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ncard:hover .ni img { transform: scale(1.04); }
.ncard .nb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 10px; }
.ncard .nm { display: contents; }
.ncard .brand-tag { order: 1; }
.ncard .nm > span:last-child { order: 2; font-size: 10.5px; color: var(--ink-3); }
.ncard .nt { order: 3; flex-basis: 100%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: 3px; font: 700 13.5px/1.65 var(--f-jp); color: var(--ink); }
.ncard time { order: 4; flex-basis: 100%; margin-top: 8px; font: 400 11.5px/1 var(--f-en); letter-spacing: .04em; color: var(--ink-3); }
.ncard .nd { display: none; }

/* ---------- BUZZ：水色の帯＋横スライド（render_buzz_section.py の .buzzcard） ---------- */
.band { position: relative; overflow: hidden; margin-top: 72px; padding: 50px 0 86px; background: var(--sky-50); }
.band::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 13px; background: radial-gradient(circle at 12px 0, #fff 11.5px, transparent 12.5px) 0 0 / 24px 13px repeat-x; }
.band-in { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; }
.band-title { padding: 0 var(--gut); }
.band .sec-note { padding: 0 var(--gut); margin: -12px 0 20px; text-align: center; color: var(--ink-2); }
.buzz-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut) 4px; scroll-padding-left: var(--gut); scrollbar-width: none; }
.buzz-grid::after { content: ""; flex: 0 0 1px; }
.buzzcard { flex: 0 0 min(86%, 420px); scroll-snap-align: start; display: grid; grid-template-columns: 44% minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; column-gap: 14px; min-height: 164px; padding-right: 12px; background: #fff; }
.buzzcard .bz-img { grid-row: 1 / -1; grid-column: 1; display: block; background: #fff; }
.buzzcard .bz-img img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.buzzcard > :not(.bz-img) { grid-column: 2; }
.buzz-score { display: inline-flex; gap: 1px; margin-top: 14px; }
.buzz-score i { font-style: normal; font-size: 13px; line-height: 1; }
.buzz-score i.off { filter: grayscale(1); opacity: .28; }
.buzzcard .brand-tag { margin-top: 7px; }
.bz-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: 2px; font: 700 13px/1.6 var(--f-jp); }
.bz-date { margin-top: 6px; font: 400 11px/1.3 var(--f-en); color: var(--ink-3); }
.bz-cta { display: inline-flex; align-items: center; gap: 4px; justify-self: start; margin: 8px 0 14px; font: 700 11.5px/1 var(--f-jp); color: var(--rose-ink); }
.bz-cta svg { width: 14px; height: 14px; }
.sl-ctrl { display: flex; gap: 14px; padding: 16px var(--gut) 0; }
.band-deco { position: absolute; left: -6px; bottom: -22px; z-index: 0; white-space: nowrap; font: 600 118px/1 var(--f-dp); letter-spacing: .04em; color: #fff; opacity: .85; user-select: none; pointer-events: none; }

/* ---------- PETIT PRICE：2列の商品カード（手書きの .prod） ---------- */
.petit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
.petit .prod { display: flex; flex-direction: column; }
.petit .pimg { display: block; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--hair); background: #fff; }
.petit .pimg img { width: 100%; height: 100%; object-fit: cover; }
.petit .pbody { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 10px; }
.pname { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 700 13px/1.6 var(--f-jp); color: var(--ink); }
.price { font: 600 14px/1.3 var(--f-en); color: var(--ink); }
.price small { margin-left: 2px; font: 400 10px var(--f-jp); color: var(--ink-3); }
.pr { margin-top: 4px; padding: 4px 11px; border-radius: 99px; background: var(--ink-2); font: 600 10px/1 var(--f-en); letter-spacing: .12em; color: #fff; }
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; line-height: 1; color: var(--ink-3); }
.stars .st { position: relative; display: inline-block; height: 11px; }
.stars .st span { display: block; height: 11px; white-space: nowrap; }
.stars .st svg { display: inline-block; width: 11px; height: 11px; fill: currentColor; vertical-align: top; }
.stars .bg { color: var(--star-off); }
.stars .fg { position: absolute; top: 0; left: 0; overflow: hidden; color: var(--star); }
.stars .new { padding: 3px 6px; border-radius: 4px; background: var(--pink-50); font: 600 9px/1 var(--f-en); color: var(--rose-ink); }

/* ---------- RANKING：見出し＋下線のタブは運営者の参考画像（2026-09-27）どおり。
   白地に、左画像・右文字のリスト（rk_ranking_update.py の出力）。 ---------- */
.rank-wrap { margin-top: 72px; padding: 60px 0 56px; background: #fff; }
.rank-in { display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; padding: 0 var(--gut); }
.rank-in > .sec-note { order: 1; margin-top: 18px; }
.rk-nav { display: flex; overflow-x: auto; margin-left: -8px; border-bottom: 1px solid #f2f2f2; scrollbar-width: none; }
.rk-nav a { flex: none; margin-bottom: -1px; padding: 0 15px 10px; border-bottom: 1px solid transparent; font: 500 14px/1.2 var(--f-jp); white-space: nowrap; color: #1a1a1a; transition: color .2s, border-color .2s; }
.rk-nav a.on { color: var(--rose); border-bottom-color: var(--rose); }
.rank-wrap.tabs .rk-group:not(.is-active) { display: none; }
.rank-wrap.tabs:not(.searching) .rk-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rank-wrap.tabs.searching .rk-group { display: block; }
.rank-wrap.searching .rk-all, .rank-wrap.searching .rk-group.search-empty { display: none !important; }
.rank-wrap.searching .rk-nav { display: none; }
.rk-title { margin-top: 22px; font: 700 14px/1.4 var(--f-jp); color: var(--ink); }
.rk-title span { margin-left: 6px; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.rk-group .prod-grid { display: flex; flex-direction: column; counter-reset: rk; }
.rk-group .prod { position: relative; overflow: hidden; display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; padding: 16px 0; border-bottom: 1px solid #f2f2f2; counter-increment: rk; }
.rk-group .prod::after { content: counter(rk, decimal-leading-zero); position: absolute; right: 0; bottom: 6px; font: italic 600 58px/1 var(--f-dp); color: var(--pink-100); pointer-events: none; }
.rk-all .prod::after { content: none; }
.rk-group .pimg { display: block; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--hair); }
.rk-group .pimg img { width: 100%; height: 100%; object-fit: cover; }
.rk-group .pbody { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; padding-right: 40px; }
.rk-genre { display: inline-flex; align-items: center; gap: 6px; font: 700 11.5px/1.3 var(--f-jp); color: var(--rose-ink); }
.rk-genre b { padding: 3px 7px; border-radius: 99px; background: var(--rose); font: 600 10px/1 var(--f-en); color: #fff; }

/* ---------- SNS バナー ---------- */
.sns-banner { position: relative; display: block; max-width: 720px; margin: 56px var(--gut) 0; padding: 26px 20px 24px; border: 2px solid var(--sky-100); outline: 6px solid var(--sky-50); outline-offset: 0; background: #fff; text-align: center; }
@media (min-width: 752px) { .sns-banner { margin-inline: auto; } }
.sb-kicker { display: block; font: 500 11px/1 var(--f-en); letter-spacing: .14em; color: var(--rose-ink); }
.sb-title { display: block; margin-top: 10px; font: 700 18px/1.55 var(--f-jp); color: var(--ink); }
.sb-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 18px; border-radius: 99px; background: var(--rose); font: 700 12.5px/1 var(--f-jp); color: #fff; }
.sb-go svg { width: 15px; height: 15px; }
.sb-deco { position: absolute; color: var(--sky-100); }
.sb-deco.s1 { width: 30px; height: 25px; left: 16px; top: 14px; }
.sb-deco.s2 { width: 22px; height: 18px; right: 18px; bottom: 16px; color: var(--pink-200); }

/* ---------- PAGE TOP・フッター ---------- */
.pagetop-row { display: flex; justify-content: flex-end; max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gut) 14px; }
.pagetop { width: 62px; height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: var(--rose); font: 600 10px/1.15 var(--f-en); letter-spacing: .06em; text-align: center; color: #fff; }
.pagetop svg { width: 16px; height: 16px; stroke-width: 2.2; margin-bottom: 1px; }
.mf { padding: 42px var(--gut) 30px; background: var(--brown); color: #f3eae8; text-align: center; }
.mf-logo { display: inline-flex; align-items: center; gap: 7px; }
.mf-logo b { font-size: 21px; color: #fff; }
.mf-logo i { color: var(--pink-200); }
.mf-logo .mark { color: var(--pink-200); }
.mf-about { max-width: 520px; margin: 16px auto 0; font-size: 12px; line-height: 1.9; color: #e4d8d6; }
.mf-nav { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 24px auto 0; font-size: 12.5px; font-weight: 500; }
.mf-nav span { display: flex; }
.mf-nav a { padding: 0 14px; line-height: 1; }
.mf-nav a + a { border-left: 1px solid rgba(255, 255, 255, .45); }
.mf-small { max-width: 620px; margin: 26px auto 0; text-align: left; }
.mf-small p { font-size: 10.5px; line-height: 1.8; color: #cbbdbb; }
.mf-small p + p { margin-top: 8px; }
.mf-copy { margin-top: 22px; font: 400 11px/1 var(--f-en); letter-spacing: .06em; color: #cbbdbb; }

/* ---------- PC・タブレット ---------- */
@media (min-width: 640px) {
  :root { --gut: 28px; }
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 22px; }
  .petit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 22px; }
  .pickup-label { font-size: 64px; }
  .pk-track { padding-left: 64px; scroll-padding-left: 64px; gap: 20px; }
  .pk-ctrl { padding-left: 64px; }
  .ncard .nd { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; order: 5; flex-basis: 100%; margin-top: 6px; font-size: 12px; line-height: 1.7; color: var(--ink-2); }
}
@media (min-width: 1024px) {
  .mh { grid-template-columns: 48px 1fr 48px; padding: 8px 18px 0; }
  .mh-logo b { font-size: 24px; }
  .mh-logo .mark { width: 30px; height: 25px; }
  .mh-gnav { grid-column: 1 / -1; display: flex; justify-content: center; gap: 34px; padding: 10px 0 12px; font: 500 12.5px/1 var(--f-en); letter-spacing: .12em; color: var(--ink-2); }
  .mh-gnav a:hover { color: var(--rose-ink); }
  .drawer { top: 102px; }
  .search-result { top: 102px; }
  html { scroll-padding-top: 116px; }
  .news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sec-title .en, .band-title .en { font-size: 34px; }
  .sec { padding-top: 84px; }
}
