/* =========================================================
   商品一覧 (/products) ・商品詳細 (/products/item/...) 共通スタイル
   mkデザイン言語: navy #2c4f8d / accent #F97316 / bg #F8FAFC / radius 18px
   ========================================================= */
.mk-page {
    --mk-brand: #2c4f8d;
    --mk-brand-deep: #23406f;
    --mk-brand-dark: #1a3a6b;
    --mk-accent: #F97316;
    --mk-accent-deep: #EA580C;
    --mk-bg: #F8FAFC;
    --mk-ink: #1E293B;
    --mk-sub: #5a6675;
    --mk-line: #e3e9f2;
    --mk-radius: 18px;
    --mk-shadow: 0 3px 14px rgba(20, 40, 75, .07);
    --mk-shadow-lift: 0 14px 34px rgba(20, 40, 75, .16);
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    color: var(--mk-ink);
    background: var(--mk-bg);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: clip;
}
.pr-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* --- コンパクトヒーロー（stores型） --- */
.pr-hero {
    padding: 116px 0 22px;
    background: linear-gradient(180deg, #eef2f8 0%, var(--mk-bg) 100%);
}
.pr-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; color: var(--mk-sub); margin-bottom: 8px;
    flex-wrap: wrap;
}
.pr-breadcrumb a { color: var(--mk-sub); text-decoration: none; }
.pr-breadcrumb a:hover { color: var(--mk-brand); text-decoration: underline; }
.pr-breadcrumb span:last-child { color: var(--mk-ink); font-weight: 700; }
.pr-hero h1 {
    font-size: 30px; font-weight: 800; color: var(--mk-brand-dark);
    letter-spacing: .04em; margin: 0 0 8px;
}
.pr-lede { font-size: 15px; color: var(--mk-sub); margin: 0; }

.pr-body { padding: 18px 0 96px; }
.pr-layout {
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

/* --- サイドバー（フィルター） --- */
.pr-filter {
    position: sticky; top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: #fff; border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    padding: 18px 16px 20px;
    box-shadow: var(--mk-shadow);
    display: flex; flex-direction: column; gap: 20px;
}
.pr-filter-group { display: flex; flex-direction: column; }
.pr-filter-title {
    margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
    color: var(--mk-sub);
    display: flex; align-items: center; gap: 8px;
}
.pr-filter-title::before { content: ""; width: 14px; height: 2.5px; border-radius: 2px; background: var(--mk-accent); }

.pr-search-row { display: flex; gap: 6px; }
.pr-search-row input[type="search"] {
    flex: 1; min-width: 0; height: 40px;
    border: 1.5px solid var(--mk-line); border-radius: 11px;
    padding: 0 12px; font-size: 13.5px; font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pr-search-row input[type="search"]:focus {
    outline: none; border-color: var(--mk-brand);
    box-shadow: 0 0 0 3px rgba(44, 79, 141, .14);
}
.pr-search-row button {
    flex: none; width: 40px; height: 40px; border: none; border-radius: 11px;
    background: linear-gradient(135deg, var(--mk-brand) 0%, var(--mk-brand-deep) 100%);
    color: #fff; cursor: pointer; font-size: 15px;
}

.pr-radio-list { display: flex; flex-direction: column; gap: 2px; }
.pr-radio-list label {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 10px; border-radius: 10px;
    font-size: 13.5px; font-weight: 500; cursor: pointer;
    transition: background .15s ease;
}
.pr-radio-list label:hover { background: #eef3fa; }
.pr-radio-list input[type="radio"] { accent-color: var(--mk-brand); margin: 0; flex: none; }
.pr-radio-list .pr-count { margin-left: auto; font-size: 11.5px; color: var(--mk-sub); font-family: 'Rubik', sans-serif; }
.pr-radio-list label.pr-checked { background: #e8effa; font-weight: 700; color: var(--mk-brand-dark); }

.pr-price-row { display: flex; align-items: center; gap: 6px; }
.pr-price-row input[type="number"] {
    width: 0; flex: 1; height: 38px;
    border: 1.5px solid var(--mk-line); border-radius: 10px;
    padding: 0 8px; font-size: 13px; font-family: 'Rubik', 'Noto Sans JP', sans-serif;
}
.pr-price-row input[type="number"]:focus { outline: none; border-color: var(--mk-brand); }
.pr-price-row .pr-tilde { color: var(--mk-sub); flex: none; }
.pr-price-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pr-price-presets a {
    font-size: 11.5px; font-weight: 700; color: var(--mk-brand);
    background: #eef3fa; border-radius: 999px; padding: 4px 10px;
    text-decoration: none; transition: background .15s ease;
}
.pr-price-presets a:hover { background: #dde8f8; }
.pr-price-presets a.pr-checked { background: var(--mk-brand); color: #fff; }

.pr-apply-btn {
    height: 42px; border: none; border-radius: 999px;
    background: linear-gradient(135deg, var(--mk-accent) 0%, var(--mk-accent-deep) 100%);
    color: #fff; font-weight: 700; font-size: 14px; font-family: inherit;
    cursor: pointer; transition: transform .2s ease;
}
.pr-apply-btn:hover { transform: translateY(-1px); }
.pr-clear-link {
    text-align: center; font-size: 12.5px; color: var(--mk-sub);
    text-decoration: underline;
}

/* モバイル: フィルター開閉ボタン */
.pr-filter-toggle {
    display: none;
    width: 100%; height: 46px; margin-bottom: 4px;
    border: 1.5px solid var(--mk-line); border-radius: 12px;
    background: #fff; font-family: inherit; font-size: 14px; font-weight: 700;
    color: var(--mk-brand-dark); cursor: pointer;
    align-items: center; justify-content: center; gap: 8px;
}

/* --- ツールバー --- */
.pr-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    margin-bottom: 16px; flex-wrap: wrap;
}
.pr-result-count { font-size: 14px; color: var(--mk-sub); margin: 0; }
.pr-result-count strong { color: var(--mk-ink); font-size: 17px; font-family: 'Rubik', 'Noto Sans JP', sans-serif; }
.pr-sort-form { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mk-sub); }
.pr-sort-form select {
    height: 38px; border: 1.5px solid var(--mk-line); border-radius: 10px;
    padding: 0 10px; font-size: 13px; font-family: inherit; background: #fff;
    cursor: pointer;
}
.pr-active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pr-active-chips a {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: var(--mk-brand-dark);
    background: #e8effa; border: 1px solid #d3e0f3; border-radius: 999px;
    padding: 4px 12px; text-decoration: none;
}
.pr-active-chips a::after { content: "✕"; font-size: 10px; color: var(--mk-sub); }
.pr-active-chips a:hover { background: #dde8f8; }

/* --- 商品グリッド --- */
.pr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.pr-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius); overflow: hidden;
    box-shadow: var(--mk-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    color: inherit; text-decoration: none;
}
.pr-card:hover { transform: translateY(-2px); box-shadow: var(--mk-shadow-lift); }
.pr-card-photo-box { position: relative; }
.pr-card-photo {
    display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain;
    background: #fff; padding: 6px;
}
.pr-card-photo.pr-ph { object-fit: cover; padding: 0; }
.pr-badge {
    position: absolute; top: 8px; left: 8px;
    font-size: 10.5px; font-weight: 700; color: #fff;
    border-radius: 7px; padding: 3px 8px; line-height: 1.4;
}
.pr-badge-rank-a { background: #1F7A4D; }        /* 未使用 */
.pr-badge-rank-b { background: #2c4f8d; }        /* 美品 */
.pr-badge-rank-c { background: #64748b; }        /* 中古 */
.pr-card-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pr-card-name {
    font-size: 13px; font-weight: 700; line-height: 1.45; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pr-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pr-tag {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10.5px; font-weight: 700; padding: 2.5px 8px; border-radius: 7px;
}
.pr-tag-online { background: #fff; color: #bf0000; border: 1px solid #eac8c8; }
.pr-tag-instore { background: #eef7f1; color: #1F7A4D; border: 1px solid #cde5d7; }
.pr-tag-place { background: #fff; color: #47536b; border: 1px solid #d6dfec; }
.pr-card-price-row { margin-top: auto; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pr-price {
    color: var(--mk-accent-deep);
    font-family: 'Rubik', 'Noto Sans JP', sans-serif;
    font-size: 18px; font-weight: 700; line-height: 1.2;
}
.pr-price-tax { font-size: 10.5px; color: var(--mk-sub); font-weight: 500; }

.pr-empty {
    background: #fff; border: 1px solid var(--mk-line); border-radius: var(--mk-radius);
    padding: 34px 30px;
}
.pr-empty h2 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.pr-empty p { margin: 0; color: var(--mk-sub); font-size: 14.5px; }

/* --- ページャ（番号付き） --- */
.pr-pager {
    margin-top: 40px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 14px; font-weight: 700; flex-wrap: wrap;
}
.pr-pager a, .pr-pager span.pr-page-cur, .pr-pager span.pr-page-gap {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 10px;
    border-radius: 12px; text-decoration: none;
}
.pr-pager a {
    background: #fff; color: var(--mk-brand);
    border: 1.5px solid #c9d6ea;
    transition: transform .15s ease, box-shadow .15s ease;
}
.pr-pager a:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(20, 40, 75, .12); }
.pr-pager span.pr-page-cur {
    background: linear-gradient(135deg, var(--mk-brand), var(--mk-brand-deep));
    color: #fff;
}
.pr-pager span.pr-page-gap { color: var(--mk-sub); border: none; min-width: 20px; }
.pr-foot-note { margin-top: 26px; color: var(--mk-sub); font-size: 12.5px; }

/* =========================================================
   商品詳細ページ
   ========================================================= */
.pd-body { padding: 18px 0 90px; }
.pd-panel {
    background: #fff; border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius); box-shadow: var(--mk-shadow);
    padding: 30px;
    display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
    gap: 36px; align-items: start;
}

/* ギャラリー */
.pd-gallery { display: flex; flex-direction: column; gap: 12px; }
.pd-main-photo-box {
    border: 1px solid var(--mk-line); border-radius: 14px; overflow: hidden;
    background: #fff;
}
.pd-main-photo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 12px; }
.pd-main-photo.pr-ph { object-fit: cover; padding: 0; aspect-ratio: 4 / 3; }
.pd-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pd-thumb {
    border: 2px solid var(--mk-line); border-radius: 10px; overflow: hidden;
    background: #fff; cursor: pointer; padding: 0;
}
.pd-thumb img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.pd-thumb.pd-active { border-color: var(--mk-accent); }

/* 情報カラム */
.pd-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pd-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-title { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.5; }
.pd-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd-price {
    color: var(--mk-accent-deep);
    font-family: 'Rubik', 'Noto Sans JP', sans-serif;
    font-size: 34px; font-weight: 400; line-height: 1.1;
}
.pd-price-tax { font-size: 13px; color: var(--mk-sub); }
.pd-ship-note {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 700; color: #1F7A4D;
}
.pd-avail {
    border: 1px solid var(--mk-line); border-radius: 12px;
    padding: 14px 16px; background: var(--mk-bg);
    font-size: 13.5px;
}
.pd-avail-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--mk-sub); }
.pd-avail-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; }
.pd-avail-row + .pd-avail-row { border-top: 1px dashed var(--mk-line); }
.pd-avail-store { font-weight: 700; }
.pd-avail-qty { color: #1F7A4D; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.pd-cta-col { display: flex; flex-direction: column; gap: 10px; }
.pd-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px; border-radius: 999px;
    font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.pd-cta-primary {
    background: linear-gradient(135deg, var(--mk-accent) 0%, var(--mk-accent-deep) 100%);
    color: #fff;
}
.pd-cta-primary:hover { filter: brightness(.94); }
.pd-cta-secondary {
    background: #fff; color: var(--mk-brand-dark);
    border: 1.5px solid #c9d6ea;
}
.pd-cta-secondary:hover { background: #f4f8fd; }
.pd-cta-note { font-size: 12px; color: var(--mk-sub); text-align: center; margin: 0; }

/* 右カラム内の商品情報（CTA下） */
.pd-info-spec { margin-top: 4px; }
.pd-info-spec .pd-avail-title { margin-bottom: 10px; }
.pd-info-spec .pd-spec-table { font-size: 12.5px; }
.pd-info-spec .pd-spec-table th { width: 118px; white-space: normal; padding: 8px 10px; }
.pd-info-spec .pd-spec-table td { padding: 8px 10px; word-break: break-all; }

/* スペック表・下部セクション */
.pd-sections { margin-top: 26px; display: flex; flex-direction: column; gap: 26px; }
.pd-section {
    background: #fff; border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius); box-shadow: var(--mk-shadow);
    padding: 26px 30px;
}
.pd-section h2 {
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 16px; font-size: 17px; font-weight: 800;
}
.pd-section h2::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--mk-accent); flex: none; }
.pd-spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pd-spec-table th {
    width: 200px; text-align: left; font-weight: 700; color: var(--mk-sub);
    background: var(--mk-bg); padding: 10px 14px; border: 1px solid var(--mk-line);
    vertical-align: top; white-space: nowrap;
}
.pd-spec-table td { padding: 10px 14px; border: 1px solid var(--mk-line); }
.pd-note-list { margin: 0; padding-left: 20px; font-size: 13.5px; color: #3d4a5c; }
.pd-note-list li { margin-bottom: 8px; }
.pd-note-list li:last-child { margin-bottom: 0; }
.pd-imei-link { font-size: 13px; }

/* 状態ランク説明 */
.pd-rank-current { margin: 0 0 14px; font-size: 13.5px; }
.pd-rank-table thead th { width: auto; white-space: nowrap; }
.pd-rank-cell {
    font-family: 'Rubik', 'Noto Sans JP', sans-serif;
    font-weight: 700; text-align: center; width: 64px; color: var(--mk-brand-dark);
}
.pd-rank-warranty { white-space: nowrap; }
.pd-rank-note { margin: 14px 0 0; font-size: 13px; color: var(--mk-sub); }

/* 関連商品: トップ「新着商品」ミニカードと同サイズの1列・横スクロールで */
.pd-related-grid {
    display: grid; grid-auto-flow: column; grid-auto-columns: 180px;
    gap: 12px; overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 14px;
    scrollbar-width: thin; scrollbar-color: #c3cfe2 transparent;
}
.pd-related-grid .pr-card { scroll-snap-align: start; }
/* imgのheight属性がaspect-ratioより優先されるため、ミニカード幅では明示的にautoへ戻す */
.pd-related-grid .pr-card-photo { height: auto; }
.pd-related-grid .pr-card-body { padding: 9px 10px 11px; gap: 5px; }
.pd-related-grid .pr-card-name { font-size: 11.5px; line-height: 1.4; -webkit-line-clamp: 2; }
.pd-related-grid .pr-price { font-size: 15px; }

/* --- レスポンシブ --- */
@media (max-width: 1100px) {
    .pr-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .pr-layout { grid-template-columns: 1fr; }
    .pr-filter-toggle { display: flex; }
    #pr-sidebar { display: none; position: static; max-height: none; }
    #pr-sidebar.pr-open { display: flex; }
    .pd-panel { grid-template-columns: 1fr; padding: 20px; gap: 22px; }
    .pd-title { font-size: 19px; }
    .pd-price { font-size: 28px; }
    .pd-section { padding: 20px; }
    .pd-spec-table th { width: 120px; white-space: normal; }
}
@media (max-width: 760px) {
    .pr-hero { padding: 98px 0 18px; }
    .pr-hero h1 { font-size: 24px; }
    .pr-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pd-related-grid { grid-auto-columns: 162px; gap: 10px; }
    .pd-thumbs { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 400px) {
    .pr-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   2026-07-05 UI刷新（UIデモ mock-products / mock-item-r で確定した内容の本実装）
   - 白背景・枠ストレート・ボーダーレスカード・赤アクセント #BF0101
   - 価格表記「N円 送料無料」・タグ灰色・5列グリッド・縦サムネレール 等
   ========================================================= */
body { background: #fff; }
.mk-page { --mk-bg: #fff; background: #fff; }
.pr-hero { background: #fff; }

/* コンテナ・レイアウト */
.pr-wrap { max-width: 1360px; }
.pr-layout { grid-template-columns: 236px minmax(0, 1fr); gap: 22px; }

/* サイドバー: 非追従・ストレート */
.pr-filter { position: static; max-height: none; overflow: visible; border-radius: 0; box-shadow: none; }
.pr-filter-title::before { background: #BF0101; }
.pr-apply-btn { background: #BF0101; }
.pr-apply-btn:hover { transform: none; background: #a50101; }
.pr-search-row button { background: #BF0101; }
.pr-search-row button:hover { background: #a50101; }

/* 商品グリッド: 5列・ボーダーレスカード・ホバーは影のみ */
.pr-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pr-card { border: none; border-radius: 0; box-shadow: none; transition: none; }
.pr-card:hover { transform: none; border: none; box-shadow: 0 6px 20px rgba(20, 40, 75, .16); }
.pr-grid .pr-card-photo { height: auto; aspect-ratio: 1 / 1; padding: 4px; }
.pr-card-name { font-weight: 400; }
.pr-card .pr-card-tags { gap: 4px; }
.pr-card .pr-tag {
    background: #8F8F8F; color: #fff; border: none;
    font-weight: 400; font-size: 9.5px; padding: 1px 6px; gap: 3px;
}

/* 価格まわり */
.pr-price {
    color: #BF0101;
    font-family: Arial, 'Helvetica Neue', 'Noto Sans JP', sans-serif;
    font-size: 25px;
}
.pr-price-yen { font-size: 15px; font-weight: 700; margin-left: 1px; }
.pr-ship-free { font-size: 12.5px; color: #BF0101; font-weight: 500; }
.pr-cond { margin: 0 0 -5px; font-size: 11px; color: #BF0101; }
.pr-card-price-row { margin-top: 0; }
.pr-tax-note { margin-left: 12px; font-size: 12px; color: var(--mk-sub); }

/* ---- 商品詳細 ---- */
.pd-panel { border: none; border-radius: 0; box-shadow: none; padding: 26px 0; }
.pd-section { border: none; border-top: 1px solid var(--mk-line); border-radius: 0; box-shadow: none; padding: 26px 0 0; }
.pd-sections { gap: 30px; }
.pd-main-photo-box { border: none; border-radius: 0; }
.pd-thumb { border-radius: 0; }
.pd-thumb.pd-active { border-color: #BF0101; }
.pd-avail { border-radius: 0; }
.pd-section h2::before { background: #BF0101; }
.pd-tags .pr-tag, .pd-tags .pr-badge { background: #8F8F8F; color: #fff; border: none; font-weight: 400; }
.pd-title { font-weight: 400; }
.pd-price { color: #BF0101; font-family: Arial, 'Helvetica Neue', 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 38px; }
.pd-price-yen { font-size: 20px; font-weight: 700; margin-left: 1px; }
.pd-ship-free-lg { font-size: 16px; color: #BF0101; font-weight: 500; }
.pd-cta-primary { background: #BF0101; }
.pd-cta-primary:hover { filter: none; background: #a50101; }
.pd-cta-col { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.pd-cta-col .pd-cta { flex: 1 1 0; min-width: 0; }
.pd-cta-note { flex-basis: 100%; }

/* 縦サムネレール（メイン画像の左・クリックで切替） */
.pd-gallery-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: start; }
.pd-thumbrail { display: flex; flex-direction: column; gap: 8px; }
.pd-thumbrail .pd-thumb { width: 100%; }

/* 商品説明（楽天productDescription: 画像バナー群を2列で） */
.pd-desc { margin-top: 6px; border-top: 1px solid var(--mk-line); padding-top: 14px; }
.pd-desc .pd-avail-title { margin-bottom: 10px; }
.pd-desc-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-size: 13px; line-height: 1.8; }
.pd-desc-body br { display: none; }
.pd-desc-body img { width: 100%; height: auto; display: block; }

/* スペック情報表（説明文から分離して右カラムへ）: 書体をサイトに整合・ヘッダー紺→赤 */
.pd-desc-table { margin-top: 14px; overflow-x: auto; }
.pd-desc-table table { width: 100%; border-collapse: collapse; }
.pd-desc-table th, .pd-desc-table td { padding: 8px 10px; border: 1px solid var(--mk-line); }
.pd-desc-table table, .pd-desc-table th, .pd-desc-table td,
.pd-desc-table font, .pd-desc-table b, .pd-desc-table center {
    font-family: inherit; font-size: 13px; line-height: 1.7;
}
.pd-desc-table th { font-weight: 700; }
.pd-desc-table a { color: var(--mk-brand); }
.pd-desc-table [bgcolor="#2D4F8C" i] { background-color: #BF0101; }

/* 商品仕様（RMS属性）を右カラム下部に */
.pd-spec2 { margin-top: 16px; }
.pd-spec2 .pd-avail-title { margin-bottom: 8px; }
.pd-spec2 .pd-spec-table { font-size: 12.5px; }
.pd-spec2 .pd-spec-table th { width: 176px; }

/* 状態ランク/保証のタブ */
.pd-tabwrap { border-top: 1px solid var(--mk-line); padding-top: 4px; }
.pd-tabbar { display: flex; border-bottom: 1px solid var(--mk-line); }
.pd-tab {
    appearance: none; background: none; border: none; cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    padding: 12px 20px; font-family: inherit; font-size: 14px; color: var(--mk-sub);
}
.pd-tab-active { color: #BF0101; border-bottom-color: #BF0101; font-weight: 700; }
.pd-tabpane { display: none; border-top: none; padding-top: 20px; }
.pd-tabpane.pd-tabpane-active { display: block; }
.pd-tabpane > h2 { display: none; }

/* ---- レスポンシブ再調整（上の非メディア規則がメディア規則より後勝ちになるため再定義） ---- */
@media (max-width: 1100px) {
    .pr-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .pr-layout { grid-template-columns: 1fr; }
    .pd-panel { padding: 18px 0; }
    .pd-section { padding: 20px 0 0; }
    .pd-price { font-size: 30px; }
    .pd-price-yen { font-size: 16px; }
}
@media (max-width: 760px) {
    .pr-grid { grid-template-columns: repeat(2, 1fr); }
    .pr-price { font-size: 21px; }
    .pd-gallery-row { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 560px) {
    .pd-cta-col { flex-direction: column; }
}

/* 状態ランク表: 該当ランク行の強調（店頭商品・公式ランク時） */
.pd-rank-table tr.pd-rank-hit td { background: #fdf2f2; }
.pd-rank-table tr.pd-rank-hit .pd-rank-cell { color: #BF0101; }

/* カテゴリナビ（一覧ヒーロー下・クロール可能なカテゴリリンク） */
.pr-cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pr-cat-nav a {
    display: inline-flex; align-items: center;
    font-size: 12.5px; font-weight: 500; color: var(--mk-brand-dark);
    background: #fff; border: 1px solid #c9d6ea; border-radius: 999px;
    padding: 5px 14px; text-decoration: none;
}
.pr-cat-nav a:hover { background: #f4f8fd; }
.pr-cat-nav a.pr-cat-active { background: #BF0101; border-color: #BF0101; color: #fff; }

/* カテゴリLP下部の関連ガイド */
.pr-guides { margin-top: 34px; border-top: 1px solid var(--mk-line); padding-top: 22px; }
.pr-guides h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.pr-guides h2::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: #BF0101; flex: none; }
.pr-guides ul { margin: 0; padding-left: 20px; font-size: 13.5px; }
.pr-guides li { margin-bottom: 7px; }
.pr-guides a { color: var(--mk-brand); }

/* 店頭在庫状況: 店舗写真つき行（stores.htmlの該当店舗へリンク） */
.pd-avail-shop { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.pd-avail-shop img { width: 86px; height: 58px; object-fit: cover; display: block; flex: none; }
.pd-avail-shop:hover .pd-avail-store { text-decoration: underline; color: var(--mk-brand); }
.pd-avail-row { padding: 8px 0; }

/* 店頭詳細の「税込」は「円」と同じサイズ・色に */
.pd-price-row .pd-price-tax { font-size: 20px; font-weight: 700; color: #BF0101; }

/* あわせて読みたいガイド: 記事サムネイル付きカード */
.pr-guides-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pr-guide-card { display: flex; flex-direction: column; background: #fff; color: inherit; text-decoration: none; }
.pr-guide-card:hover { box-shadow: 0 6px 20px rgba(20, 40, 75, .16); }
.pr-guide-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #f4f7fb; }
.pr-guide-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-guide-noimage {
    display: flex; align-items: center; justify-content: center;
    color: #9db1cf; font-size: 13px; font-weight: 700; letter-spacing: .08em;
}
.pr-guide-title { padding: 10px 4px 12px; font-size: 13px; line-height: 1.55; }
.pr-guide-card:hover .pr-guide-title { color: var(--mk-brand); }
@media (max-width: 760px) {
    .pr-guides-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* =========================================================
   2026-07-05 モバイル最適化（担当C: 商品系ページ）
   - 入力系16px未満はiOS Safariがフォーカス時に自動ズームするため16pxに統一
   - タップ領域をおおむね40px以上に引き上げ
   ========================================================= */
@media (max-width: 760px) {
    /* iOSズーム防止 */
    .pr-search-row input[type="search"] { font-size: 16px; height: 44px; }
    .pr-search-row button { width: 44px; height: 44px; }
    .pr-price-row input[type="number"] { font-size: 16px; height: 44px; }
    .pr-sort-form select { font-size: 16px; height: 44px; }
    /* タップ領域 */
    .pr-cat-nav a { padding: 9px 15px; }
    .pr-radio-list label { padding: 10px 10px; }
    .pr-price-presets a { padding: 8px 12px; }
    .pr-breadcrumb a { padding: 4px 1px; }
    .pr-apply-btn { height: 46px; }
    .pr-pager a, .pr-pager span { min-width: 42px; min-height: 42px; }
}
