/* ぬいチャーム.com
   レイアウト: スマホ1カラムが基本。上に固定ヘッダー＋横スクロールのメニュー、本文は最大1080px。
   色: ミルクピンクの地に、ベリーローズを1色だけアクセントに。販売状況は別の意味色で区別。 */
:root {
  --bg: #fbf7f8;
  --surface: #ffffff;
  --surface-2: #f6eef1;
  --ink: #2f2629;
  --muted: #6d5f64;
  --line: #ecdfe3;
  --accent: #b8476c;
  --accent-ink: #ffffff;
  --accent-soft: #f8e4eb;
  --reserve: #8a5a12; --reserve-bg: #fbeed6;
  --lottery: #9b3a5d; --lottery-bg: #f9e1ea;
  --onsale: #2f6f5f;  --onsale-bg: #dff0ea;
  --resale: #3c5f8a;  --resale-bg: #e2ebf6;
  --sample: #6d5f64;  --sample-bg: #efe8ea;
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --r: 14px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d181a; --surface: #262022; --surface-2: #2f2729; --ink: #f2e9ec; --muted: #b9a9ae; --line: #3c3235;
    --accent: #ee8fae; --accent-ink: #2a1219; --accent-soft: #3f2730;
    --reserve: #f1c477; --reserve-bg: #3b2f1b; --lottery: #f2a3bf; --lottery-bg: #43242f;
    --onsale: #8fd3bf; --onsale-bg: #1e3a32; --resale: #a6c3ea; --resale-bg: #22314a; --sample: #cbbcc1; --sample-bg: #3a3033;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1d181a; --surface: #262022; --surface-2: #2f2729; --ink: #f2e9ec; --muted: #b9a9ae; --line: #3c3235;
  --accent: #ee8fae; --accent-ink: #2a1219; --accent-soft: #3f2730;
  --reserve: #f1c477; --reserve-bg: #3b2f1b; --lottery: #f2a3bf; --lottery-bg: #43242f;
  --onsale: #8fd3bf; --onsale-bg: #1e3a32; --resale: #a6c3ea; --resale-bg: #22314a; --sample: #cbbcc1; --sample-bg: #3a3033;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.85; letter-spacing: .02em;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.45; text-wrap: balance; margin: 0; letter-spacing: .03em; }
h1 { font-size: clamp(1.45rem, 4.6vw, 2rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
.wrap { max-width: var(--max); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 8px 12px; }
.ic { width: 22px; height: 22px; flex: none; }
.ic-inline { width: 1.15em; height: 1.15em; vertical-align: -0.2em; margin-right: .3em; }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.logo-mark { width: 34px; height: 36px; display: block; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; }
.head-search { display: flex; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; font-size: .9rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.gnav { border-top: 1px solid var(--line); }
.gnav-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.gnav-row::-webkit-scrollbar { display: none; }
.gnav a { flex: none; padding: 10px 12px; color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; border-bottom: 3px solid transparent; }
.gnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.pr-line, .sample-line { font-size: .78rem; color: var(--muted); padding-block: 6px; line-height: 1.6; }
.pr-line { background: var(--surface-2); }
.sample-line { background: var(--sample-bg); color: var(--sample); }
.pr-line .wrap, .sample-line .wrap { display: block; }

/* intro */
.intro { background: linear-gradient(180deg, var(--surface) 0%, var(--accent-soft) 100%); border-bottom: 1px solid var(--line); }
.intro-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding-block: 28px 24px; align-items: center; }
.intro-text { display: grid; gap: 14px; min-width: 0; }
.intro-text p { color: var(--muted); max-width: 34em; }
.intro-text strong { color: var(--ink); }
.intro-hang { position: relative; height: 150px; order: -1; max-width: 360px; width: 100%; margin-inline: auto; }
.hang-bar { position: absolute; left: 6%; right: 6%; top: 12px; height: 4px; border-radius: 4px; background: var(--line); }
.hang { position: absolute; top: 4px; width: 92px; transform-origin: 50% 8%; animation: sway 4.8s ease-in-out infinite; }
.hang-0 { left: 6%; } .hang-1 { left: 37%; width: 100px; animation-delay: -1.6s; } .hang-2 { right: 6%; animation-delay: -3s; }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .hang { animation: none; } }

.search-box { display: flex; gap: 8px; max-width: 520px; }
.search-box input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.search-box button { display: flex; align-items: center; gap: 4px; font: inherit; font-weight: 700; padding: 0 16px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }

/* sections */
.sec { padding-block: 28px 4px; display: grid; gap: 14px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { display: flex; align-items: center; gap: 6px; }
.h-ic { width: 22px; height: 22px; color: var(--accent); }
.sec-lead { color: var(--muted); font-size: .95rem; }
.more { font-size: .9rem; font-weight: 500; white-space: nowrap; }
.more::after { content: " ›"; }

/* date rows */
.drows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.drow { display: flex; gap: 14px; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.dbox { flex: none; width: 58px; display: grid; justify-items: center; line-height: 1.15; padding: 6px 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-variant-numeric: tabular-nums; }
.dbox-m { font-size: .75rem; font-weight: 500; }
.dbox-d { font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; }
.dbox-w { font-size: .72rem; }
.drow-body { display: grid; gap: 2px; min-width: 0; }
.drow-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.drow-name { font-weight: 500; line-height: 1.55; }
.drow-meta { font-size: .82rem; color: var(--muted); }

/* pills */
.pill { display: inline-block; font-size: .72rem; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 6px; letter-spacing: .04em; }
.pill-reserve { color: var(--reserve); background: var(--reserve-bg); }
.pill-lottery { color: var(--lottery); background: var(--lottery-bg); }
.pill-onsale { color: var(--onsale); background: var(--onsale-bg); }
.pill-resale { color: var(--resale); background: var(--resale-bg); }
.pill-sample, .pill-other { color: var(--sample); background: var(--sample-bg); font-weight: 500; }

/* tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { display: grid; justify-items: center; gap: 2px; padding: 14px 6px 10px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; height: 100%; }
.tile-ic { width: 34px; height: 34px; color: var(--accent); margin-bottom: 4px; }
.tile-name { font-size: .88rem; font-weight: 500; line-height: 1.4; }
.tile-count { font-size: .72rem; color: var(--muted); }
.tile:hover, .drow:hover, .card a:hover { border-color: var(--accent); }

/* cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card a { display: grid; height: 100%; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none; }
.card-img { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 10px; background: color-mix(in srgb, var(--tint) 28%, var(--surface)); }
.card-img svg { width: 82%; height: auto; }
.card-body { display: grid; gap: 6px; align-content: start; padding: 10px 12px 12px; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card-name { font-size: .9rem; font-weight: 500; line-height: 1.55; }
.card-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-meta span:first-child { color: var(--ink); font-weight: 700; font-size: .88rem; }

/* guide band */
.guide-band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 10px; }
.guide-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.guide-links a { display: block; padding: 10px 2px; border-bottom: 1px dashed var(--line); color: var(--ink); text-decoration: none; }
.guide-links li:last-child a { border-bottom: 0; }
.guide-links a::after { content: "›"; float: right; color: var(--accent); }

/* page head */
.page-head { padding-block: 16px 4px; display: grid; gap: 10px; }
.page-lead { color: var(--muted); max-width: 40em; }
.crumbs { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs a { color: var(--muted); }
.crumbs > * + *::before { content: "›"; margin-right: 4px; color: var(--line); }
.crumbs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16em; }
.cat-title { display: flex; align-items: center; gap: 10px; }
.cat-ic { width: 36px; height: 36px; color: var(--accent); flex: none; }

/* filters */
.filters { display: grid; gap: 10px; padding-block: 8px 16px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chip { flex: none; font: inherit; font-size: .85rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sort { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.sort select { font: inherit; font-size: .9rem; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.empty { color: var(--muted); padding-block: 20px; }
.chip-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-links a { display: block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .88rem; }

/* month */
.month-h { display: flex; align-items: baseline; gap: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--accent-soft); }
.month-h span { font-family: var(--font-body); font-size: .8rem; font-weight: 400; color: var(--muted); }

/* item */
.item { display: grid; gap: 18px; padding-block: 8px 0; }
.item-img { border-radius: var(--r); background: color-mix(in srgb, var(--tint) 30%, var(--surface)); display: grid; place-items: center; padding: 20px; aspect-ratio: 1 / 1; max-height: 420px; width: 100%; }
.item-img svg { height: 100%; width: auto; max-height: 360px; }
.item-main { display: grid; gap: 10px; align-content: start; min-width: 0; }
.item-name { font-size: 1.35rem; }
.note-sample { font-size: .85rem; color: var(--sample); background: var(--sample-bg); padding: 8px 12px; border-radius: 10px; }
.item-price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.item-price small { font-family: var(--font-body); font-size: .78rem; font-weight: 400; color: var(--muted); margin-left: 4px; }
.item-date { color: var(--muted); }
.buy-box { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.buy-label { font-size: .85rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.pr-tag { font-size: .68rem; padding: 2px 6px; border: 1px solid var(--muted); border-radius: 4px; color: var(--muted); }
.buy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.buy { display: block; text-align: center; padding: 13px 8px; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: .95rem; }
.buy-amazon, .buy-rakuten { background: var(--accent); color: var(--accent-ink); }
.buy-rakuten { background: var(--ink); color: var(--bg); }
.buy-official { background: var(--surface); color: var(--accent); border: 1.5px solid var(--accent); }
.lineup { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lineup li { padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-weight: 500; }
.pill-official { color: var(--accent); background: var(--accent-soft); }
.buy-off { background: var(--surface-2); color: var(--muted); font-weight: 500; font-size: .82rem; border: 1px dashed var(--line); }
.buy-note { font-size: .75rem; color: var(--muted); line-height: 1.6; }
.item-detail { display: grid; min-width: 0; }
.spec { margin: 0; display: grid; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: .88rem; }
.spec dd { margin: 0; min-width: 0; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; margin-top: 2px; }
.small { font-size: .88rem; }

/* prose */
.prose { max-width: 760px; }
.prose p + p { margin-top: 10px; }
.kind-list { margin: 0; display: grid; gap: 12px; }
.kind-list dt a { font-weight: 700; }
.kind-list dd { margin: 2px 0 0; color: var(--muted); }
.buy-ways { display: grid; gap: 12px; }
.way { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; }
.dots { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.result-count { font-size: .9rem; color: var(--muted); }

/* footer */
.site-foot { margin-top: 48px; background: var(--surface); border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 16px; padding-block: 28px; }
.foot-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.foot-lead, .foot-note { font-size: .8rem; color: var(--muted); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.foot-links a { color: var(--ink); }

/* wider screens */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .buy-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .intro-row { grid-template-columns: 1.2fr 1fr; padding-block: 44px 40px; }
  .intro-hang { order: 0; height: 190px; }
  .hang { width: 116px; } .hang-1 { width: 126px; }
  .item { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .item-detail { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .foot-grid { grid-template-columns: 1.2fr 1fr 1.4fr; }
}

.card-img, .item-img { position: relative; }
.card-img img, .item-img img { width: 100%; height: 100%; object-fit: contain; }
.img-credit { position: absolute; right: 6px; bottom: 4px; font-size: .65rem; color: var(--muted); background: var(--surface); padding: 0 4px; border-radius: 4px; }
.dbox-d-s { font-size: .95rem; padding-block: 4px; }
