/* =============================================================================
   90ch shop — 共通デザインシステム
   /shop/（ハブ）・/shop/tokka/・/shop/book/・/shop/buzz/ の4ページで共有する。
   コンセプト: 「紙のチラシ × デジタル商店街」
     - 温かい紙色の下地 + 墨色の文字 + 朱色のアクセント
     - 価格・割引率はコンデンス体（Barlow Condensed）の大きな数字
     - %OFFバッジは少し傾いた「値札シール」
   ページ別アクセントは body クラスで切り替える:
     body.page-home / .page-tokka（朱） / .page-book（藍） / .page-buzz（青緑）
   クラス名は既存3ページのマークアップ（product-card / price-now / stat-band 等）を
   そのまま引き受ける。マークアップ側の構造変更を最小にするための互換レイヤでもある。
============================================================================= */

:root {
    --paper: #f6f2ea;          /* 紙色の下地 */
    --card: #fffdf8;           /* カード面 */
    --ink: #26211b;            /* 墨 */
    --muted: #837a6c;          /* 補助文字 */
    --line: #e5dccb;           /* 罫線 */
    --line-strong: #d5c9b2;
    --sale: #c92c14;           /* 価格・値引きの赤 */
    --sale-deep: #a32410;
    --amazon: #ff9900;
    --acc: #d6491f;            /* 既定アクセント（朱）。ページ毎に上書き */
    --acc-soft: #fbeae3;       /* アクセントの淡色面 */
    --num-font: "Barlow Condensed", "Zen Kaku Gothic New", sans-serif;
    --jp-font: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}
body.page-home  { --acc: #d6491f; --acc-soft: #fbeae3; }
body.page-tokka { --acc: #d6491f; --acc-soft: #fbeae3; }
body.page-book  { --acc: #29508f; --acc-soft: #e7edf8; }
body.page-buzz  { --acc: #0e7f74; --acc-soft: #e2f2ef; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--jp-font);
    background: var(--paper);
    color: var(--ink);
    margin: 0;
    padding: 0;
    line-height: 1.65;
    position: relative;
}
/* 紙の質感（ごく薄いノイズ） */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.50 0 0 0 0 0.42 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

a { color: inherit; }
img { display: block; max-width: 100%; }

/* =========================================================================
   共通ヘッダー（shop_header() が出力）
========================================================================= */
.shop-header {
    background: var(--card);
    border-bottom: 3px solid var(--ink);
}
.shop-header .masthead {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.1rem 1rem 0.65rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.shop-brand {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}
.shop-brand .mark {
    font-family: var(--num-font);
    font-weight: 700;
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--ink);
}
.shop-brand .mark b { color: var(--acc); font-weight: 700; }
.shop-brand .kana {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--ink);
}
.shop-header .tagline {
    margin: 0;
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}
.shop-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.shop-nav::-webkit-scrollbar { display: none; }
.shop-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.05rem;
    padding: 0.45rem 1rem 0.55rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--ink);
    border-bottom: 4px solid transparent;
    white-space: nowrap;
    transition: background 0.15s;
}
.shop-nav a small {
    font-family: var(--num-font);
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.shop-nav a:hover { background: var(--acc-soft); }
.shop-nav a.active {
    border-bottom-color: var(--acc);
    color: var(--acc);
}
.shop-nav a.active small { color: var(--acc); }

/* =========================================================================
   レイアウト基本
========================================================================= */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.75rem 1rem 2rem;
}
.section-title {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-size: 1.3rem;
    font-weight: 900;
    margin: 2.4rem 0 0.35rem;
    padding-left: 0.75rem;
    border-left: 6px solid var(--acc);
    line-height: 1.3;
}
.section-title .en {
    font-family: var(--num-font);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--acc);
}
.section-lead {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0 0 1.2rem;
    padding-left: calc(0.75rem + 6px);
}
/* 各売場のページ見出し（共通ヘッダーの下） */
.page-head { margin: 0.25rem 0 1.5rem; }
.page-head h1 {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    flex-wrap: wrap;
    font-size: clamp(1.35rem, 3.5vw, 1.8rem);
    font-weight: 900;
    margin: 0 0 0.3rem;
    line-height: 1.35;
}
.page-head h1 .en {
    font-family: var(--num-font);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--acc);
}
.page-head .page-lead { color: var(--muted); font-size: 0.88rem; margin: 0; max-width: 46em; }

.breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--acc); text-decoration: none; }
.meta { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 2.5rem; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }

/* =========================================================================
   商品カード（3ページ共通の既存マークアップを引き受ける）
========================================================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.1rem;
}
.product-card { border-radius: 8px; overflow: hidden; }
.product-card.normal {
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(60, 45, 20, 0.06);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    position: relative;
}
.product-card.normal:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: 0 8px 20px rgba(60, 45, 20, 0.13);
}
.product-card.featured {
    background: var(--card);
    border: 1px solid var(--line-strong);
    box-shadow: 0 6px 18px rgba(60, 45, 20, 0.10);
    margin-bottom: 1.25rem;
}
.card-inner { display: flex; flex-direction: column; height: 100%; }
.product-card.featured .card-inner { display: block; }
.product-card.featured .card-link-wrap {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
    padding: 1.25rem;
}
.product-card.featured .card-content-wrapper { flex: 1.4; display: flex; flex-direction: column; min-width: 0; }
.card-link-wrap { display: block; text-decoration: none; color: inherit; flex: 1; }
.card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 1rem;
}
.product-card.normal .card-image { aspect-ratio: 1/1; border-bottom: 1px solid var(--line); }
.product-card.featured .card-image {
    flex: 1 1 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    align-self: stretch;
}
.card-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card-content { padding: 0.9rem 1rem 0.75rem; flex: 1; }
.product-card.featured .card-content { display: block; color: inherit; text-decoration: none; padding: 0; }
.product-card.featured .card-content:hover h2 { text-decoration: underline; }
.card-content h2 { margin: 0 0 0.4rem; font-size: 0.95rem; line-height: 1.45; font-weight: 700; }
.product-card.featured .card-content h2 { font-size: 1.35rem; line-height: 1.4; }
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    border-top: 1px dashed var(--line-strong);
    background: transparent;
    gap: 0.5rem;
}
.product-card.featured .card-footer { margin-top: auto; padding: 0.65rem 0 0; border-top: 1px dashed var(--line-strong); }
.asin { font-size: 0.68rem; color: var(--muted); margin: 0; }

/* 価格（数字はコンデンス体で大きく） */
.price-row { display: flex; align-items: baseline; gap: 0.55rem; flex-wrap: wrap; margin: 0.4rem 0; }
.price, .price-now {
    font-family: var(--num-font);
    font-weight: 700;
    font-size: 1.55rem;
    line-height: 1.05;
    color: var(--sale);
    margin: 0.35rem 0;
    letter-spacing: 0.01em;
}
.product-card.featured .price-now { font-size: 2.3rem; }
.price-now small { font-size: 0.65rem; color: var(--muted); font-weight: 400; margin-left: 0.2rem; font-family: var(--jp-font); }
.price-before {
    font-family: var(--num-font);
    color: var(--muted);
    text-decoration: line-through;
    font-size: 0.95rem;
}
.price-unknown { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.product-card.featured .price-unknown { font-size: 1rem; }
.savings { font-size: 0.8rem; color: var(--sale); font-weight: 700; margin: 0.2rem 0; }

/* 値札シール（%OFFスタンプ） */
.rate-badge {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 2;
    background: var(--sale);
    color: #fff;
    font-family: var(--num-font);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.38rem 0.5rem 0.32rem;
    border-radius: 3px;
    transform: rotate(3deg);
    box-shadow: 0 2px 5px rgba(80, 20, 5, 0.35);
    letter-spacing: 0.03em;
}
.rate-badge.high { background: #0d7a43; }
.featured-rate {
    display: inline-block;
    background: var(--sale);
    color: #fff;
    font-family: var(--num-font);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.4rem 0.55rem 0.34rem;
    border-radius: 3px;
    margin-left: 0.4rem;
    transform: rotate(-2deg);
    box-shadow: 0 2px 5px rgba(80, 20, 5, 0.3);
}
.featured-rate.high { background: #0d7a43; }
.deal-hint {
    display: inline-block;
    background: var(--acc-soft);
    color: var(--sale);
    border: 1px solid var(--line-strong);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.14rem 0.5rem;
    border-radius: 3px;
}

/* ラベル・ランク */
.label-pill {
    display: inline-block;
    padding: 0.12rem 0.5rem;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 700;
    margin-right: 0.45rem;
    background: var(--ink);
    color: var(--paper);
    vertical-align: middle;
    font-family: var(--num-font);
    letter-spacing: 0.05em;
}
.rank {
    display: inline-block;
    min-width: 2em;
    text-align: center;
    padding: 0.12rem 0.4rem;
    border-radius: 3px;
    font-family: var(--num-font);
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 0.45rem;
    background: var(--ink);
    color: var(--paper);
}
.rank-1 { background: #c79a1e; color: #fff; }
.rank-2 { background: #8a9098; color: #fff; }
.rank-3 { background: #a05a2c; color: #fff; }
.author { color: var(--muted); font-size: 0.82rem; margin: 0.2rem 0; }

/* ボタン */
.amazon-btn {
    font-size: 0.78rem;
    padding: 0.38rem 0.9rem;
    background: var(--amazon);
    color: #171003;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 1px 0 rgba(120, 70, 0, 0.35);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.amazon-btn:hover {
    background: #ffad33;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 153, 0, 0.4);
}
.product-card.featured .amazon-btn { font-size: 1rem; padding: 0.65rem 1.5rem; border-radius: 6px; display: inline-block; }
.detail-btn {
    font-size: 0.75rem;
    padding: 0.34rem 0.8rem;
    background: transparent;
    color: var(--acc);
    border: 1.5px solid var(--acc);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.detail-btn:hover { background: var(--acc); color: #fff; }
.post-link {
    font-size: 0.75rem;
    padding: 0.34rem 0.8rem;
    background: var(--ink);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}
.post-link:hover { background: #000; }
.card-links { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

/* buzz 固有 */
.highlight { color: var(--ink); font-size: 0.88rem; margin: 0.35rem 0; font-style: italic; }
.summary { color: var(--ink); font-size: 0.92rem; line-height: 1.8; margin: 0.7rem 0; }
.product-card.normal .summary {
    font-size: 0.83rem; line-height: 1.6; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
    overflow: hidden;
}
.full-title { color: var(--muted); font-size: 0.78rem; line-height: 1.5; margin: 0.25rem 0 0.7rem; }
.post-date { color: var(--muted); font-size: 0.78rem; margin: 0.45rem 0; }
.score, .mentions { color: var(--acc); font-size: 0.75rem; margin: 0.2rem 0; font-weight: 700; }
.cat { color: var(--muted); font-size: 0.8rem; margin: 0.25rem 0; }

/* カテゴリ/絞り込みチップ */
.cat-nav {
    display: flex; flex-wrap: wrap; gap: 0.45rem;
    max-width: 1200px; margin: 1.25rem auto 0; padding: 0 1rem;
}
.cat-nav a, .chip {
    padding: 0.32rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
    background: var(--card);
    border: 1.5px solid var(--line-strong);
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    cursor: pointer;
}
.cat-nav a:hover, .chip:hover { border-color: var(--acc); color: var(--acc); }
.cat-nav a.active, .chip.active { background: var(--acc); border-color: var(--acc); color: #fff; }

/* クーポン */
.coupon-box {
    margin: 0.75rem 0;
    border: 1.5px dashed var(--line-strong);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    background: var(--acc-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.coupon-box .coupon-label { font-family: var(--num-font); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.14em; }
.coupon-box .coupon-hint { font-size: 0.7rem; color: var(--muted); }
.coupon-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: var(--ink);
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.18s;
}
.coupon-code:hover { background: #000; }
.coupon-code.is-copied { background: #0d7a43; }
.coupon-code .copy-action { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; opacity: 0.7; }
.coupon-inline { font-size: 0.78rem; color: var(--muted); margin: 0.25rem 0; }
.coupon-inline b { color: var(--ink); font-family: ui-monospace, monospace; letter-spacing: 0.05em; }

/* 統計バンド */
.stat-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.9rem;
}
.stat-tile {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
}
.stat-tile .num {
    font-family: var(--num-font);
    font-size: 2.15rem;
    font-weight: 700;
    line-height: 1.05;
    color: var(--ink);
}
.stat-tile .num small { font-size: 0.78rem; font-weight: 400; color: var(--muted); margin-left: 0.15rem; font-family: var(--jp-font); }
.stat-tile .label { font-size: 0.73rem; color: var(--muted); margin-top: 0.3rem; }
.stat-tile.accent { border-color: var(--acc); }
.stat-tile.accent .num { color: var(--acc); }
.stat-tile.sale .num { color: var(--sale); }

/* 配信ログ */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0.9rem; }
.post-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 72px 1fr;
    overflow: hidden;
}
.post-card .post-img { background: #fff; padding: 0.5rem; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); }
.post-card .post-img img { max-height: 64px; object-fit: contain; }
.post-card .post-body { padding: 0.75rem 0.9rem; min-width: 0; }
.post-card .post-meta { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.post-card .post-date { font-size: 0.7rem; color: var(--muted); white-space: nowrap; margin: 0; }
.post-card .post-text { font-size: 0.8rem; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.post-card .post-text a { color: var(--acc); }

/* FAQ */
.faq-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem 2rem; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.25rem; }
.faq-q { font-weight: 700; margin: 0 0 0.4rem; }
.faq-q::before { content: "Q. "; color: var(--acc); font-weight: 900; }
.faq-a { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ASIN個別ページでカタログを絞ったときの「全件を見る」導線 */
.catalog-more { text-align: center; margin: 1.25rem 0 0; font-size: 0.95rem; }
.catalog-more a { color: var(--acc); text-decoration: none; font-weight: 700; }
.catalog-more a:hover { text-decoration: underline; }

/* 特価が在庫にもアーカイブにも無い着地（tokka の X 流入の半数〜）。商品カードは出せないが
   目立つ主CTAで必ず Amazon へ送る。裸の通知バーだと離脱するため、上部で存在感を持たせる。 */
.gone-cta {
    background: var(--card);
    border: 2px solid var(--line-strong);
    border-top: 5px solid var(--acc);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.75rem;
    text-align: center;
}
.gone-lead { font-size: 1.15rem; font-weight: 800; margin: 0 0 0.4rem; }
.gone-sub { font-size: 0.95rem; color: var(--muted); margin: 0 0 1.1rem; }
.gone-sub b { color: var(--sale); }
.gone-btn { display: inline-block; font-size: 1.05rem; padding: 0.85rem 1.6rem; }
.gone-asin { font-size: 0.8rem; color: var(--muted); margin: 0.9rem 0 0; }
.gone-asin a { color: var(--acc); text-decoration: none; font-weight: 700; }

/* 通知・CTA */
.asin-notice {
    background: var(--acc-soft);
    border: 1.5px solid var(--line-strong);
    border-left: 6px solid var(--acc);
    border-radius: 8px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.asin-notice b { color: var(--sale); }
.asin-notice a { color: var(--acc); text-decoration: none; font-weight: 700; }
.urgency-cta {
    background: var(--card);
    border: 2px solid var(--line-strong);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0 0;
    text-align: center;
}
.urgency-cta .urgency-note { font-size: 0.85rem; color: var(--sale); font-weight: 700; margin-bottom: 0.75rem; }
.urgency-cta .cta-button,
.asin-notice .cta-button {
    display: inline-block;
    font-size: 1.1rem;
    padding: 0.7rem 1.9rem;
    background: var(--amazon);
    color: #171003;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.03em;
    transition: transform 0.15s, box-shadow 0.15s;
}
.urgency-cta .cta-button:hover, .asin-notice .cta-button:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(255, 153, 0, 0.4);
}
.asin-notice .cta-button { font-size: 0.9rem; padding: 0.5rem 1.2rem; }
.urgency-cta .cta-sub { font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; }

/* =========================================================================
   ハブ（/shop/）専用
========================================================================= */
.hub-hero { padding: 1.5rem 0 0.5rem; }
.hub-hero h2 {
    font-size: clamp(1.5rem, 4.5vw, 2.3rem);
    font-weight: 900;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    letter-spacing: 0.01em;
}
.hub-hero h2 em {
    font-style: normal;
    color: var(--acc);
    background: linear-gradient(transparent 68%, var(--acc-soft) 68%);
}
.hub-hero .hub-lead { color: var(--muted); font-size: 0.95rem; margin: 0; max-width: 44em; }
.hub-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin: 1.4rem 0 0.5rem;
    padding: 1rem 1.4rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.hub-counters .c { display: flex; flex-direction: column; }
.hub-counters .n {
    font-family: var(--num-font);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--acc);
}
.hub-counters .n small { font-size: 0.85rem; color: var(--muted); font-family: var(--jp-font); font-weight: 400; margin-left: 0.1rem; }
.hub-counters .t { font-size: 0.73rem; color: var(--muted); margin-top: 0.3rem; }

/* 売場の入口カード */
.door-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}
.door-card {
    display: block;
    text-decoration: none;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-top: 6px solid var(--door-acc, var(--acc));
    border-radius: 10px;
    padding: 1.1rem 1.25rem 1.2rem;
    transition: transform 0.18s, box-shadow 0.18s;
}
.door-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(60, 45, 20, 0.14); }
.door-card.door-tokka { --door-acc: #d6491f; }
.door-card.door-book  { --door-acc: #29508f; }
.door-card.door-buzz  { --door-acc: #0e7f74; }
.door-card .door-en {
    font-family: var(--num-font);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--door-acc, var(--acc));
}
.door-card h3 { margin: 0.15rem 0 0.4rem; font-size: 1.2rem; font-weight: 900; }
.door-card p { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.7; }
.door-card .door-cta {
    display: inline-block;
    margin-top: 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--door-acc, var(--acc));
}
.door-card .door-cta::after { content: " →"; }

/* 商品ストリップ（ハブ・相互送客バンド共用） */
.strip-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.strip-head .more { font-size: 0.82rem; font-weight: 700; color: var(--acc); text-decoration: none; white-space: nowrap; }
.strip-head .more:hover { text-decoration: underline; }
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.9rem;
}
.teaser-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.18s, box-shadow 0.18s;
}
.teaser-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(60, 45, 20, 0.13); }
.teaser-card .t-img {
    aspect-ratio: 1/1;
    min-height: 0;
    overflow: hidden;      /* 縦長画像が aspect-ratio を押し広げるのを防ぐ */
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem;
    border-bottom: 1px solid var(--line);
}
.teaser-card .t-img img { width: 100%; height: 100%; object-fit: contain; }
.teaser-card .t-body { padding: 0.55rem 0.7rem 0.7rem; display: flex; flex-direction: column; flex: 1; }
.teaser-card .t-title {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.teaser-card .t-meta { margin-top: auto; font-size: 0.72rem; color: var(--muted); }
.teaser-card .t-price {
    font-family: var(--num-font);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--sale);
    line-height: 1.1;
}
.teaser-card .t-price .t-before { font-size: 0.75rem; color: var(--muted); text-decoration: line-through; font-weight: 400; margin-right: 0.35rem; }
.teaser-card .t-badge {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    background: var(--sale);
    color: #fff;
    font-family: var(--num-font);
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1;
    padding: 0.28rem 0.4rem 0.24rem;
    border-radius: 3px;
    transform: rotate(3deg);
    box-shadow: 0 2px 4px rgba(80, 20, 5, 0.3);
}
.teaser-card .t-badge.high { background: #0d7a43; }
.teaser-card .t-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--acc);
    border: 1px solid currentColor;
    border-radius: 3px;
    padding: 0.05rem 0.35rem;
    margin-bottom: 0.3rem;
}

/* 相互送客バンド（各売場ページの下部） */
.teaser-band { margin-top: 3rem; padding-top: 0.5rem; border-top: 3px solid var(--ink); }
.teaser-band .band-title {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 900;
    margin: 1rem 0 0.2rem;
}
.teaser-band .band-title .en {
    font-family: var(--num-font);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}
.teaser-band .band-lead { color: var(--muted); font-size: 0.8rem; margin: 0 0 1rem; }
.teaser-band + .teaser-band { margin-top: 1.75rem; padding-top: 0; border-top: 0; }

/* =========================================================================
   共通フッター（shop_footer() が出力）
========================================================================= */
footer.site-footer {
    border-top: 3px solid var(--ink);
    background: var(--card);
    margin-top: 3rem;
}
footer.site-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.75rem 1rem 2rem;
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.9;
}
footer.site-footer nav { margin-bottom: 0.6rem; }
footer.site-footer nav a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    margin: 0 0.7rem;
}
footer.site-footer nav a:hover { color: var(--acc); }
footer.site-footer .brandline {
    font-family: var(--num-font);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    letter-spacing: 0.04em;
}

/* =========================================================================
   レスポンシブ
========================================================================= */
@media (max-width: 768px) {
    .shop-header .masthead { padding: 0.9rem 1rem 0.5rem; }
    .shop-brand .mark { font-size: 1.6rem; }
    .product-card.featured .card-link-wrap { flex-direction: column; padding: 1rem; }
    .product-card.featured .card-image { flex: 0 0 auto; align-self: auto; }
    .card-footer { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
    .amazon-btn, .detail-btn { width: 100%; text-align: center; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.7rem; }
    .hub-counters { gap: 1.1rem; padding: 0.85rem 1rem; }
    .hub-counters .n { font-size: 1.9rem; }
}
