/* 見た目の元＝20_writings/site/ベビー用品の底値/デザインの資料_ソコネさん/（色・書体・並べる順は sokone_assets/DESIGN_SPEC.md）
   1列のスマホ向け。上から：名前とメニュー → ソコネさんのひとこと → 種類の切り替え → 記録の日時・セール・特集 → 底値に近い物 → 商品の一覧 → LINE → 広告 → 注意書き。
   商品を押すと、その商品のページに切り替わる。明るい色だけで作る（暗い色の版は作らない）。 */
:root {
  --pink: #FF2D7A;            /* 飾り・線・大きい文字 */
  --pink-strong: #E0185F;     /* 白い文字をのせるボタンと印（白との明るさの差を取るため、少し濃くしてある） */
  --pink-dark: #B71457;       /* 値段の数字・リンク */
  --pink-soft: #FFEFF5;
  --pink-line: #F8B4CF;
  --yellow: #FFD600;
  --yellow-soft: #FFF6C9;
  --yellow-line: #EBCB3B;
  --brown: #583A2E;           /* 本文と輪郭 */
  --ink: #3D2921;
  --muted: #77635C;
  --green: #12B886;           /* 値下がり・ふだんの線 */
  --green-dark: #086543;
  --green-soft: #E3F8EE;
  --cream: #FFF8EE;           /* 背景 */
  --white: #FFFFFF;
  --border: #F1D8C5;
  --rule: #F5E7DA;
  --line: #06B83E;            /* LINE の色 */
  --line-dark: #04922F;
  --radius: 18px;
  --shadow: 0 6px 18px rgba(88,58,46,.09);
  --font-display: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --face: url("/static/sokone-face.webp");
  --leopard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Crect width='160' height='160' fill='%23FFD600'/%3E%3Cg fill='%2372493D'%3E%3Cpath d='M14 16q27-24 37 5l-9 13-14-7-4 14-17-9zM95 17q20-14 37 3l-6 20-15-9-14 9-12-11zM34 91q23-16 38 0l-7 19-14-5-3 13-20-10zM111 96q24-13 34 5l-9 21-15-7-8 14-12-17zM75 56q15-10 27 8l-7 17-17-4-9 8-9-13zM4 145q15-13 31 1l-2 14H1z'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--cream); color: var(--brown); font-family: var(--font-body); font-size: 15px; line-height: 1.7; -webkit-text-size-adjust: 100%; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--white); }
.wrap { max-width: 720px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: inherit; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink-dark); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.35; text-wrap: balance; word-break: auto-phrase; }
.nb { display: inline-block; }   /* 途中で折り返さないまとまり */
td, .price, .compare dd, .target { font-variant-numeric: tabular-nums; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }


/* いちばん上：名前とメニュー */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; background: var(--white); border-bottom: 3px solid var(--yellow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-display); font-weight: 900; font-size: clamp(17px, 5.2vw, 23px); color: var(--pink-dark); text-decoration: none; }
/* 名前は1行で出す。入りきらないとき（文字を大きくする設定など）だけ「ソコネさんの」と「底値チェッカー」の間で折り返す。1行のまま縮まないと、メニューのボタンが画面の外に押し出されて、ページが横に動いた（2026-12-03） */
.brand-name { word-break: keep-all; overflow-wrap: anywhere; line-height: 1.25; }
.brand strong { color: var(--yellow); -webkit-text-stroke: 3px var(--brown); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--pink); letter-spacing: .06em; margin-right: 3px; }
.menu-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--border); border-radius: 12px; background: var(--white); color: var(--brown); cursor: pointer; }
.menu-btn .ico { width: 24px; height: 24px; }
.menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); box-shadow: 0 14px 24px rgba(88,58,46,.18); }
.menu .wrap { display: grid; padding-block: 4px 10px; }
.menu a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 4px 6px; border-top: 1.5px solid var(--rule); font-weight: 700; text-decoration: none; }
.menu .wrap > a:first-child { border-top: 0; }
.menu a::after { content: "›"; color: var(--pink); font-weight: 900; }
/* メニューの中の見出し「特設ページ」（2026-12-02） */
.menu-sub { margin: 10px 0 0; padding: 8px 6px 2px; border-top: 3px solid var(--rule); font-size: 12.5px; font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.menu .menu-sub + a { border-top: 0; }

/* ソコネさんのひとこと（トップのいちばん上） */
.hero-art, .col-head { background: repeating-conic-gradient(from -5deg at 80% 60%, #FFE14A 0deg 10deg, #FFEC8A 10deg 20deg); border-bottom: 3px solid var(--brown); overflow: hidden; }
.hero-art .wrap { display: grid; grid-template-columns: minmax(0, 1fr) clamp(104px, 34vw, 240px); align-items: end; gap: 6px; padding-top: 18px; }
.bubble { position: relative; align-self: center; margin: 0 8px 26px 2px; background: var(--white); border: 3px solid var(--brown); border-radius: 26px; padding: 12px 14px 13px; transform: rotate(-3deg); font-family: var(--font-display); font-weight: 900; line-height: 1.3; box-shadow: 4px 5px 0 rgba(88,58,46,.2); }
.bubble::after { content: ""; position: absolute; right: -11px; bottom: 26px; width: 18px; height: 18px; background: var(--white); border-right: 3px solid var(--brown); border-bottom: 3px solid var(--brown); transform: rotate(-45deg); border-bottom-right-radius: 4px; }
.bubble-main { display: block; font-size: clamp(15px, 5.3vw, 36px); color: var(--ink); white-space: nowrap; }
.bubble-main em { font-style: normal; color: var(--pink-strong); }
.bubble-sub { display: block; margin-top: 4px; font-size: clamp(11px, 3.7vw, 23px); color: var(--pink-dark); white-space: nowrap; }
.hero-char { display: block; width: 100%; height: auto; margin-bottom: -3px; }
.hero-text { display: grid; gap: 14px; justify-items: center; padding-bottom: 4px; }
.ribbon { position: relative; z-index: 1; margin-top: -21px; background: var(--pink); color: var(--white); font-size: clamp(18px, 5.4vw, 27px); font-weight: 900; line-height: 1.3; padding: 8px 30px 9px; transform: rotate(-2deg); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%); letter-spacing: .02em; text-shadow: 0 2px 0 var(--pink-dark); max-width: 100%; word-break: keep-all; overflow-wrap: anywhere; }   /* 入りきらないときだけ「買い時が」の後ろで折り返す */
.ribbon strong { color: var(--yellow); }
.hero-text p { max-width: 34em; font-size: 14.5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 52px; padding: 11px 18px; border: 0; border-radius: 14px; font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.3; text-decoration: none; cursor: pointer; }
.btn-primary { max-width: 380px; background: var(--pink-strong); color: var(--white); box-shadow: 0 5px 0 var(--pink-dark); }
.btn-line { background: var(--line); color: var(--white); box-shadow: 0 5px 0 var(--line-dark); text-shadow: 0 1px 0 rgba(0,0,0,.18); }
.btn:active, .btn-shop:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pink-dark); }
.btn-line:active { box-shadow: 0 2px 0 var(--line-dark); }

main.stack, .stack { display: grid; gap: 24px; }
main { padding-bottom: 8px; }
#view-list > .stack { padding-top: 20px; }
#view-feature, #view-item { padding-top: 6px; }

/* 種類の切り替え */
.cats { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr 1fr; gap: 5px; scroll-margin-top: 70px; }
.cat { display: grid; place-items: center; align-content: center; min-height: 50px; padding: 4px 2px; border: 2px solid var(--border); border-radius: 14px; background: var(--white); font-weight: 700; font-size: clamp(11.5px, 3.5vw, 14px); line-height: 1.25; cursor: pointer; }
.cat span { display: block; white-space: nowrap; }
.cat[aria-pressed="true"] { background: var(--pink-strong); border-color: var(--pink-strong); color: var(--white); box-shadow: 0 3px 0 var(--pink-dark); }
.stamp { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: -10px; }
.stamp .ico { width: 16px; height: 16px; }

.sale { background: #FFFBE3; border-color: #F3DD7A; padding: 14px 16px; display: grid; gap: 6px; }
.sale h2 { font-size: 16px; line-height: 1.45; }
.tag { flex: none; display: inline-flex; align-items: center; width: fit-content; background: var(--pink-strong); color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 12.5px; line-height: 1.5; border-radius: 8px; padding: 1px 9px; }
.sale p { font-size: 14px; }

.go { font-family: var(--font-display); font-weight: 800; font-size: 14.5px; color: var(--pink-dark); }

.section { display: grid; gap: 12px; scroll-margin-top: 72px; }
.section-head { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.section-head h2 { display: inline-flex; align-items: center; gap: 7px; font-size: 20px; }
.section-head h2 .ico { color: var(--pink); }
.section-head .note { margin-left: auto; color: var(--muted); font-size: 12.5px; }

/* サイズで絞る・並べる */
.filters { display: flex; gap: 8px; }
.sel { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; min-height: 48px; padding-left: 12px; background: var(--white); border: 2px solid var(--border); border-radius: 14px; font-size: 13px; font-weight: 700; color: var(--muted); }

.sel span { flex: none; }
.sel select { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 44px; padding: 0 30px 0 6px; border: 0; background: transparent; font-weight: 700; font-size: 14px; color: var(--brown); cursor: pointer; }
.sel::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2.5px solid var(--brown); border-bottom: 2.5px solid var(--brown); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
@media (max-width: 359px) { .filters { flex-direction: column; } }

/* 商品の一覧 */
.list { display: grid; gap: 10px; }

.empty { padding: 18px 16px; font-size: 14px; color: var(--muted); text-align: center; }

.prod { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name name name" "meta spark price"; gap: 6px 10px; align-items: center; padding: 13px 16px 12px; text-decoration: none; }
.prod-name { grid-area: name; display: grid; gap: 2px; font-weight: 700; font-size: 15px; line-height: 1.5; }

.prod-desc { font-weight: 400; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.prod-meta { grid-area: meta; display: flex; gap: 5px 6px; flex-wrap: wrap; align-items: center; }
.spark { grid-area: spark; display: block; width: 64px; height: 30px; }
.prod-price { grid-area: price; display: grid; justify-items: end; text-align: right; line-height: 1.3; }
.per, .usual { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.price { font-family: var(--font-display); font-weight: 900; font-size: 25px; line-height: 1.15; color: var(--pink-dark); white-space: nowrap; }
.price small { font-size: 13px; font-weight: 800; margin-left: 1px; }

.chip { display: inline-flex; align-items: center; gap: 3px; width: fit-content; border-radius: 99px; padding: 1px 9px; font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; border: 1.5px solid transparent; }

.chip-cheap { background: var(--green-soft); border-color: #A9E5CC; color: var(--green-dark); }
.chip-normal { background: #F4EEE8; color: var(--muted); }
.chip-high { background: var(--pink-soft); border-color: var(--pink-line); color: var(--pink-dark); }

.group { overflow: hidden; }

@media (hover: hover) { .prod:hover, .menu a:hover { background: #FFFCF4; } }
@media (max-width: 339px) { .spark { display: none; } .prod { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "meta price"; }  }

.line-box { background: var(--white); border: 2px solid #9BDFB2; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px 20px; display: grid; gap: 12px; scroll-margin-top: 72px; }
.line-box h2 { display: inline-flex; align-items: center; gap: 7px; font-size: 19px; }
.line-box h2 .ico { color: var(--line-dark); }
.line-box p { font-size: 14px; }
.line-go { display: flex; max-width: 380px; margin-inline: auto; text-decoration: none; }
.line-ok { font-size: 13.5px; font-weight: 700; color: var(--line-dark); text-align: center; }

/* 広告の枠：楽天の横長のバナー（468×60）。パソコンは元の大きさで真ん中、スマホは幅に合わせて縮める（2026-12-02） */
.ad { display: grid; justify-items: center; gap: 4px; }
.ad-label { font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.ad a { display: block; max-width: 100%; }
.ad img { display: block; width: 468px; max-width: 100%; height: auto; }

/* ソコネさんのひとこと（顔と吹き出し） */
.says { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 13px; align-items: center; }
.face { width: 54px; height: 54px; border-radius: 50%; border: 2.5px solid var(--brown); background: var(--yellow) var(--face) center bottom / 56px auto no-repeat; }
.says-text { position: relative; background: var(--white); border: 2px solid var(--brown); border-radius: 14px; padding: 9px 13px; font-size: 14px; font-weight: 500; line-height: 1.65; }
.says-text::before { content: ""; position: absolute; left: -7px; top: 50%; width: 11px; height: 11px; background: var(--white); border-left: 2px solid var(--brown); border-bottom: 2px solid var(--brown); transform: translateY(-50%) rotate(45deg); }

/* 商品のページ */
.back { display: inline-flex; align-items: center; gap: 4px; width: fit-content; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--pink-dark); text-decoration: none; }
.item-head { display: grid; gap: 8px; margin-top: -16px; }
.item-head h1 { font-size: 22px; }

.item-desc { font-size: 14px; color: var(--muted); }
.now { padding: 16px; display: grid; gap: 14px; }
.now-top { display: grid; gap: 2px; }
.now-row { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
.now .per { font-size: 13px; white-space: normal; }
.now-row .price { font-size: 46px; }
.now-row .price small { font-size: 19px; }
.now .chip { font-size: 13.5px; padding: 3px 12px; }
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.compare div { display: grid; align-content: start; background: var(--cream); border: 1.5px solid var(--border); border-radius: 12px; padding: 8px 2px; text-align: center; }
.compare div.diff-box { background: var(--pink-soft); border-color: var(--pink-line); }
.compare dt { font-size: clamp(10.5px, 3.1vw, 11.5px); font-weight: 700; color: var(--muted); white-space: nowrap; }
.compare dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.35; }
.compare dd small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--muted); }

.chart-box { padding: 14px 8px 8px; display: grid; gap: 6px; }
.chart-box h2 { display: inline-flex; align-items: center; gap: 7px; font-size: 17px; padding-inline: 8px; }
.chart-box h2 .ico { color: var(--pink); }

.chart { position: relative; touch-action: pan-y; }
.chart svg { display: block; width: 100%; }
.chart text { font-family: var(--font-body); font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart text.lab, .chart text.lab-usual { font-weight: 700; paint-order: stroke fill; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; }   /* 線に重なっても読めるように、白でふちどる */
.chart text.lab { fill: var(--brown); }
.chart text.lab-usual { fill: var(--green-dark); }

.tip { position: absolute; pointer-events: none; background: var(--brown); color: var(--white); font-size: 12px; line-height: 1.5; padding: 6px 9px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -110%); }

.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1.5px solid var(--rule); }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
td:last-child, th:last-child { text-align: right; }

.shops { display: grid; gap: 10px; }
.shop { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; padding: 14px; }
.shop-body { display: grid; gap: 4px; min-width: 0; }
.shop-name { display: flex; gap: 4px 6px; align-items: center; flex-wrap: wrap; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.rank1 { flex: none; font-size: 11px; font-weight: 700; color: var(--ink); background: var(--yellow); border-radius: 6px; padding: 1px 7px; }
.shop-info { font-size: 13px; color: var(--muted); }
.shop-info span + span::before { content: "・"; }
.shop-per { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.shop-per .price { font-size: 23px; }

.btn-shop { display: grid; place-items: center; align-content: center; min-width: 96px; min-height: 62px; padding: 8px 10px; border-radius: 14px; background: var(--pink-strong); color: var(--white); box-shadow: 0 4px 0 var(--pink-dark); font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1.3; text-align: center; text-decoration: none; }
.btn-shop small { font-size: 12px; font-weight: 700; }
@media (max-width: 339px) { .shop { grid-template-columns: 1fr; } .btn-shop { grid-auto-flow: column; gap: 2px; min-height: 48px; } }

.target { min-height: 44px; border: 2px solid var(--border); border-radius: 99px; background: var(--white); padding: 6px 16px; font-weight: 700; font-size: 14px; cursor: pointer; }
.target[aria-pressed="true"] { border-color: var(--line); background: #E9F9EE; }
.target[aria-pressed="true"]::before { content: "✓"; margin-right: 4px; color: var(--line-dark); }

/* 特集のページ */

.leopard { height: 14px; margin-top: 30px; background: var(--leopard) 0 0 / 42px 42px; border-block: 2px solid var(--brown); }
footer.notes { background: var(--white); }
footer.notes .wrap { padding-block: 22px 40px; }
footer.notes ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); font-size: 12.5px; }
.credit { margin-top: 14px; font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .prod, .btn, .btn-shop, .cat, .target { transition: background-color .15s, transform .08s, box-shadow .08s; } }

.page { padding-top: 18px; }
/* いちばん上のリクエストの欄（product_request.py。2026-12-03 に検索の欄から替えた。本人「ここに載っていない商品の動向を見てほしいなら、ここにリクエストを送ってね」） */
.reqbar { padding-top: 12px; }
.req { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }   /* 中の文の長さで欄が画面より広がらないように（2026-12-03 本人「スマホでみると横幅がおかしい。うごいちゃう」） */
.req-say { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; line-height: 1.5; color: var(--brown); }
.req-face { flex: none; width: 36px; height: 36px; border-width: 2px; background-size: 38px auto; }
.req-text { min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }   /* 狭いときは「動きを」の後ろで折り返す */
.req-text span { display: inline-block; max-width: 100%; }   /* スマホでは読点の後ろで折り返す。入りきらない幅（狭いスマホ・文字を大きくする設定）では、かたまりの中でも折り返す */
.req-row { display: flex; gap: 8px; }
.req input { flex: 1; min-width: 0; height: 48px; border: 2px solid var(--brown); border-radius: 14px; padding: 0 14px; font: inherit; font-size: 16px; background: var(--white); color: var(--brown); }
.req button { flex: none; height: 48px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--pink-strong); color: var(--white); box-shadow: 0 4px 0 var(--pink-dark); font-family: var(--font-display); font-weight: 800; font-size: 16px; cursor: pointer; }
.hint { font-size: 12.5px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { display: grid; gap: 2px; padding: 12px 12px 11px; text-decoration: none; }
.tile b { font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1.4; }
.tile span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.tile .n { font-family: var(--font-display); font-weight: 900; color: var(--pink-dark); font-size: 13px; }
@media (min-width: 620px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.prod-price .usual { display: block; }

.pager { display: flex; justify-content: center; align-items: center; gap: 10px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; padding: 0 14px; border: 2px solid var(--border); border-radius: 14px; background: var(--white); font-weight: 700; text-decoration: none; }
.pager span { background: transparent; border-color: transparent; color: var(--muted); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a, .tabs button { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 14px; border: 2px solid var(--border); border-radius: 99px; background: var(--white); font: inherit; font-weight: 700; font-size: 13.5px; color: var(--brown); text-decoration: none; cursor: pointer; }
.tabs a[aria-current="true"], .tabs button[aria-pressed="true"] { background: var(--pink-strong); border-color: var(--pink-strong); color: var(--white); }

.wishform { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wishform input[type=number] { width: 130px; height: 48px; border: 2px solid var(--border); border-radius: 12px; padding: 0 10px; font: inherit; font-size: 16px; }
.wishform .btn { width: auto; flex: 1 1 160px; }
.btn-plain { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 14px; border: 2px solid var(--border); border-radius: 12px; background: var(--white); font: inherit; font-weight: 700; font-size: 13.5px; color: var(--brown); cursor: pointer; text-decoration: none; }
.cal { display: grid; gap: 8px; }
.cal a, .cal div.row { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; text-decoration: none; }
.cal .d { font-family: var(--font-display); font-weight: 900; color: var(--pink-dark); }
.cal b { font-weight: 700; }
.cal-one a { grid-template-columns: minmax(0, 1fr); }
.cal .pr { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.yc-wrap { padding: 12px 10px 10px; }
.yc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 4px 8px; font-size: 13px; font-weight: 700; }
.yc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 22px; height: 14px; border-radius: 5px; }
.sw-sale { background: var(--pink-strong); }
.sw-marathon { background: var(--yellow); }
.yc { display: block; width: 100%; height: auto; }
.yc text { font-family: var(--font-display); }
.yc-m { font-size: 14px; font-weight: 900; fill: var(--pink-dark); }
.yc-w { font-size: 9.5px; font-weight: 700; fill: var(--muted); text-anchor: middle; }
.yc-d { font-size: 11px; font-weight: 700; fill: var(--brown); text-anchor: middle; }
.yc-sale { fill: var(--pink-strong); }
.yc-marathon { fill: var(--yellow); }
.yc-on-sale { fill: var(--white); }
.yc-2 { display: none; }
@media (max-width: 619px) { .yc-4 { display: none; } .yc-2 { display: block; } }
.chart-tabs { padding-inline: 8px; }

.bcats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bcat { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 11px 2px 9px; border-radius: 16px; text-decoration: none; text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: 12.5px; line-height: 1.3; color: var(--brown); }
.bico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow-soft); border: 2px solid var(--yellow-line); color: var(--brown); }
.bcat:nth-child(even) .bico { background: var(--pink-soft); border-color: #FFC4DA; }
.bico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.900; stroke-linecap: round; stroke-linejoin: round; }
.big-head { display: flex; align-items: center; gap: 8px; margin: 24px 0 9px; scroll-margin-top: 84px; }
.big-head h3 { padding-left: 10px; border-left: 6px solid var(--pink); font-size: 18px; line-height: 1.3; }
.big-head .go { margin-left: auto; font-size: 13.500px; white-space: nowrap; }
.prod.has-img { grid-template-columns: 76px minmax(0, 1fr) auto auto; grid-template-areas: "img name name name" "img meta spark price"; }
/* 商品のページの写真（2026-11-24 本人「スマホの時に横一杯の正方形になるといい。パソコンでは広すぎ」）：
   スマホは札の横幅いっぱいの正方形（札の上の端までつける）。横幅が広い画面では 440px まで */
.now-img { display: block; width: calc(100% + 32px); max-width: none; height: auto; aspect-ratio: 1; margin: -16px -16px 0; object-fit: contain;
  background: #fff; border-radius: 16px 16px 0 0; border-bottom: 1.500px solid var(--rule); }
@media (min-width: 620px) { .now-img { width: 100%; max-width: 440px; margin: 0 auto; justify-self: center; border-radius: 14px; border: 1.500px solid var(--rule); } }
.prod-img { grid-area: img; width: 76px; height: 76px; object-fit: contain; border-radius: 12px; background: var(--white); border: 1.500px solid var(--rule); }

/* 2026-11-30 本人：トップのメニュー4つは名前だけ（説明の文は消した）。名前を改行させない（横幅が広い画面では4つを1列に）／カテゴリーの札（8つ）の大きさをそろえる */
.tile b { white-space: nowrap; }
.tile { justify-items: center; align-content: center; text-align: center; }   /* 2026-11-30 本人「文字をセンタリング」 */
@media (min-width: 620px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bcats { grid-auto-rows: 1fr; }
.bcat > span:last-child { white-space: nowrap; font-size: clamp(11px, 3.2vw, 12.5px); }
/* 2026-11-30 本人「スマホのデザイン『底値に近い』がはいるとズレる」：スマホでは、印を名前の下の段に置き、グラフと値段をその下の段に並べる */
@media (max-width: 619px) {
  .prod { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "meta meta" "spark price"; }
  .prod.has-img { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "img name name" "img meta meta" "img spark price"; }
  .prod .spark { justify-self: end; }
  .prod-meta:empty { display: none; }
}

/* プライバシーポリシー（2026-12-02） */
.policy { padding: 18px 16px 20px; display: grid; gap: 18px; line-height: 1.85; font-size: 14.5px; }
.policy p { margin: 0; }
.policy-sec { display: grid; gap: 8px; }
.policy-sec h2 { font-size: 16.5px; margin: 0; }
.policy ul { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.policy-tbl { font-size: 13.5px; }
.policy-tbl td, .policy-tbl th { text-align: left !important; vertical-align: top; }
.policy-tbl td:first-child { width: 36%; font-weight: 700; }
.policy-date { color: var(--muted); font-size: 13px; text-align: right; }
.foot-links { margin: 10px 0 0; font-size: 13px; }
.foot-links a { color: inherit; }

/* おむつの最安値のページ（2026-12-02・omutsu.py） */

.tk-tbl { padding: 4px 8px; }
.tk-tbl table { font-size: 13.5px; }
.tk-tbl th, .tk-tbl td { text-align: left !important; white-space: nowrap; }
.tk-tbl thead th { white-space: normal; min-width: 6.5em; font-size: 12px; }
.tk-tbl td a { font-family: var(--font-display); font-weight: 800; color: var(--pink-dark); text-decoration: none; }
.tk-tbl td.best a { background: var(--yellow-soft); border-radius: 6px; padding: 1px 4px; }
.calc { padding: 14px 16px; display: grid; gap: 6px; }
.calc h3 { margin: 0; font-size: 16px; }
.calc p { margin: 0; font-size: 14px; }
.calc-n { width: 5em; height: 40px; border: 2px solid var(--border); border-radius: 10px; padding: 0 8px; font: inherit; font-size: 16px; }
.calc-sum { font-family: var(--font-display); font-size: 18px; color: var(--pink-dark); }
.guide { padding: 12px 16px; }
.guide ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; line-height: 1.8; font-size: 14.5px; }
.tk-link { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; text-decoration: none; }
.tk-link b { font-size: 16px; color: var(--pink-dark); }
.tk-link span { color: var(--muted); font-size: 13px; flex: 1; }

.guide-tbl { padding: 6px 10px 12px; }
.guide-tbl table { font-size: 13.5px; line-height: 1.7; }
.guide-tbl th, .guide-tbl td { text-align: left !important; vertical-align: top; }
.guide-tbl tbody th { white-space: nowrap; color: var(--pink-dark); }
.guide-size { margin: 8px 4px 0; font-size: 13.5px; }

/* おむつの選ぶ所（2026-12-02 作り直し）：上＝タイプ（横並び）、下＝サイズ（そのタイプに無いサイズは選べない） */
.picker { padding: 12px; display: grid; gap: 10px; }
.pick-types, .pick-sizes { display: grid; grid-template-columns: repeat(var(--cs, 3), minmax(0, 1fr)); gap: 8px; }
@media (min-width: 620px) { .pick-types, .pick-sizes { grid-template-columns: repeat(var(--cl, 3), minmax(0, 1fr)); } .pick-type { font-size: 16px; } }
/* 幅360未満の画面：字を小さくして、ボタンの数を変えずに入れる（数の決め方＝tokusetsu._cols） */
@media (max-width: 359px) { .pick-type, .pick-size { font-size: 13px; padding-inline: 4px; } }
.pick-type { padding: 0 8px; word-break: keep-all; text-align: center; line-height: 1.3; display: flex; align-items: center; justify-content: center; min-height: 48px; border: 2px solid var(--border); border-radius: 14px; background: var(--white); font-family: var(--font-display); font-weight: 900; font-size: 14px; color: var(--brown); text-decoration: none; }
.pick-type.on { background: var(--pink-strong); border-color: var(--pink-strong); color: var(--white); }

.pick-size { word-break: keep-all; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 4px 6px; border: 2px solid var(--border); border-radius: 12px; background: var(--white); font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--brown); text-decoration: none; cursor: pointer; }
.pick-size.on { background: var(--yellow); border-color: var(--yellow-line); color: var(--ink); }
.pick-size.off { background: var(--rule); border-color: var(--rule); color: #B8A79E; cursor: default; }
.maker-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.maker-card { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; text-decoration: none; font-weight: 700; font-size: 13px; color: var(--brown); text-align: center; word-break: keep-all; overflow-wrap: anywhere; letter-spacing: -.02em; }
.maker-card img { width: 72px; height: 72px; object-fit: contain; }
.pick-label { margin: 0 2px -4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.calc h2 { margin: 0; font-size: 17px; }

/* トップの特設ページのバナー（2026-12-02・tokusetsu.banners。画像は 道具/バナー/合成.py で作る） */
.feat-banners { display: grid; gap: 12px; }
.feat-banner { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--pink-line); box-shadow: 0 4px 0 var(--pink-line); }
.feat-banner img { display: block; width: 100%; height: auto; }
/* 右下の「特設ページを見る ›」。画像の右下はこのために空けてある（道具/バナー/六回目） */
.feat-go { position: absolute; right: 1.8%; bottom: 7%; padding: 4px 9px 5px 10px; border-radius: 99px; background: var(--fc, var(--pink-strong)); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: 10.5px; line-height: 1.2; white-space: nowrap; box-shadow: 0 2px 0 rgba(61,41,33,.18); }
@media (min-width: 620px) { .feat-go { right: 2.5%; bottom: 10%; padding: 6px 13px 7px 15px; font-size: 14px; } }
.guide-tbl table + table { margin-top: 12px; }
.guide-note { margin-top: 10px; font-size: 13px; line-height: 1.7; }   /* 選び方の表の下の注意（プロテインのアレルギー。2026-12-03） */
/* コラム（column.py。2026-12-02） */
/* 一覧（2026-12-03 作り直し。本人「フォーナウのサイトのコラム一覧ページを参考に」「キャラクターをうまく活用しないとダメ」）：
   頭の帯＝トップと同じ黄色の地（上の .hero-art と同じ）に COLUMN・題・吹き出し、右にソコネさんの上の方を下の端からのぞかせる。
   カード＝いちばん上の絵・日付・題。620px から2列 */
.col-head { margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); }
.col-head-in { display: grid; grid-template-columns: minmax(0, 1fr) clamp(100px, 30vw, 172px); align-items: end; gap: 4px; padding: 22px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.col-head-text { align-self: center; display: grid; justify-items: start; gap: 2px; padding-bottom: 20px; }
.col-head-en { font-family: var(--font-display); font-weight: 900; font-size: 12.5px; letter-spacing: .18em; color: var(--pink-dark); }
.col-head h1 { font-size: clamp(28px, 8vw, 38px); line-height: 1.2; color: var(--ink); }
.col-say { position: relative; justify-self: end; margin: 12px 14px 0 0; background: var(--white); border: 2.5px solid var(--brown); border-radius: 16px; padding: 8px 13px; transform: rotate(-2deg); font-family: var(--font-display); font-weight: 800; font-size: clamp(13.5px, 3.8vw, 17px); line-height: 1.45; color: var(--brown); box-shadow: 3px 4px 0 rgba(88,58,46,.18); }
.col-say span { display: inline-block; }   /* スマホでは読点の後ろで折り返す */
.col-say::after { content: ""; position: absolute; right: -9px; top: 50%; width: 14px; height: 14px; background: var(--white); border-right: 2.5px solid var(--brown); border-top: 2.5px solid var(--brown); transform: translateY(-50%) rotate(45deg); }
.col-head-char { display: block; width: 100%; height: auto; margin-bottom: -42%; }   /* 足の方は帯の下の端で切る */
.col-list { display: grid; gap: 14px; }
@media (min-width: 620px) { .col-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.col-card { display: grid; align-content: start; overflow: hidden; text-decoration: none; color: var(--brown); transition: transform .15s, border-color .15s; }
.col-card:hover { transform: translateY(-2px); border-color: var(--pink-line); }
.col-card img { display: block; width: 100%; height: auto; border-bottom: 2px solid var(--border); }
.col-card-body { display: grid; gap: 3px; padding: 11px 14px 14px; }
.col-card b { font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.5; }
.col-date { font-size: 12.5px; color: var(--muted); }
.col-article { margin-top: 6px; min-width: 0; }
.col-title { margin: 4px 0 2px; font-size: 24px; line-height: 1.45; }
.col-hero { margin: 12px 0 18px; }   /* いちばん上の絵（題と日付のすぐ下） */
.col-body { font-size: 16px; line-height: 1.95; }
.col-body h2 { margin: 2.2em 0 .6em; padding-left: 10px; border-left: 6px solid var(--pink); font-size: 20px; }
.col-body h3 { margin: 1.8em 0 .4em; font-size: 17.5px; }
.col-body p, .col-body ul, .col-body ol { margin: 0 0 1.1em; }
.col-body blockquote { margin: 0 0 1.1em; padding: 10px 14px; border-radius: 12px; background: var(--pink-soft); }
.col-body blockquote p { margin: 0; }
.col-body table { border-collapse: collapse; font-size: 14.5px; }
.col-body th, .col-body td { padding: 6px 10px; border: 1.5px solid var(--border); text-align: left; }
.col-body .col-items { margin: 0 0 1.2em; }
.col-body .ref-links { margin: 0 0 1.2em; padding: 10px 14px 4px; border: 2px solid var(--border); border-radius: 12px; background: var(--white); }   /* H2 の最後の「参考記事」（2026-12-03） */
.col-body .ref-title { margin: 0 0 2px; font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--pink-dark); }
.col-body .ref-links ul { margin: 0 0 .6em; padding-left: 1.2em; }
.col-img img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 12px; }   /* 図は本文の幅に合わせる（原寸 1600px のままだと枠からはみ出す） */
