* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif; font-size: 14px; color: #0F1111; background: #fff; }
a { color: #007185; text-decoration: none; }
a:hover { color: #C7511F; text-decoration: underline; }

/* ヘッダー */
.header { background: #131921; color: #fff; padding: 8px 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logo { font-size: 22px; font-weight: 700; letter-spacing: -1px; color: #fff; white-space: nowrap; }
.logo .oooo { color: #FF9900; }
.logo-sub { font-size: 10px; color: #ccc; display: block; margin-top: -4px; letter-spacing: 0; }
.searchbar { flex: 1; display: flex; min-width: 180px; }
.searchbar input { flex: 1; border: none; padding: 9px 10px; border-radius: 4px 0 0 4px; font-size: 14px; }
.searchbar button { background: #febd69; border: none; padding: 0 14px; border-radius: 0 4px 4px 0; font-size: 16px; cursor: pointer; }
.header-right { display: flex; align-items: center; gap: 14px; font-size: 12px; }
.header-right .cart { font-size: 12px; }
.nav { background: #232f3e; color: #fff; padding: 8px 12px; font-size: 13px; display: flex; gap: 16px; overflow-x: auto; white-space: nowrap; }
.nav span { color: #fff; cursor: pointer; }

/* 通知帯 */
.notice { background: #fef8f2; border-bottom: 1px solid #f0e2d0; color: #565959; font-size: 12px; padding: 6px 12px; text-align: center; }

/* レイアウト */
.container { max-width: 980px; margin: 0 auto; padding: 16px 12px; }
.breadcrumb { font-size: 12px; color: #565959; margin-bottom: 12px; }

/* 商品ページ */
.product { display: flex; gap: 24px; flex-wrap: wrap; }
.product-img { flex: 1 1 340px; max-width: 400px; text-align: center; }
.product-img img { max-width: 100%; max-height: 380px; object-fit: contain; }
.product-info { flex: 1 1 280px; min-width: 260px; }
.product-title { font-size: 20px; font-weight: 400; line-height: 1.3; margin-bottom: 4px; }
.byline { font-size: 13px; margin-bottom: 4px; }
.stars { color: #de7921; font-size: 15px; letter-spacing: 1px; }
.rating-row { font-size: 13px; margin-bottom: 8px; }
.rating-row a { margin-left: 6px; }
.divider { border: none; border-top: 1px solid #e7e7e7; margin: 12px 0; }
.price-label { font-size: 13px; color: #565959; }
.price { font-size: 26px; color: #0F1111; }
.price .yen { font-size: 14px; vertical-align: top; }
.tax { font-size: 12px; color: #565959; }
.bullets { margin: 12px 0 0 18px; font-size: 14px; line-height: 1.7; }
.bullets li { margin-bottom: 2px; }

/* 購入ボックス */
.buybox { border: 1px solid #d5d9d9; border-radius: 8px; padding: 16px; flex: 0 0 240px; align-self: flex-start; }
@media (max-width: 900px) { .buybox { flex: 1 1 100%; max-width: 360px; } }
.soldout { color: #B12704; font-size: 17px; font-weight: 400; margin-bottom: 2px; }
.soldout-sub { font-size: 13px; color: #565959; margin-bottom: 12px; line-height: 1.5; }
.btn { display: block; width: 100%; border: none; border-radius: 999px; padding: 10px 0; font-size: 14px; margin-bottom: 8px; color: #0F1111; cursor: pointer; }
.btn-cart { background: #FFD814; }
.btn-cart:hover { background: #F7CA00; }
.btn-buy { background: #FFA41C; }
.btn-buy:hover { background: #FA8900; }
.bb-price { font-size: 24px; margin-bottom: 4px; }
.bb-price .yen { font-size: 13px; vertical-align: top; }
.bb-tax { font-size: 12px; color: #565959; }
.bb-delivery { font-size: 13px; color: #565959; margin-bottom: 10px; }
.bb-qty { margin: 10px 0; font-size: 13px; }
.bb-qty select { padding: 4px 8px; border-radius: 8px; border: 1px solid #d5d9d9; background: #f0f2f2; }
.bb-seller { font-size: 12px; color: #565959; border-collapse: collapse; margin-top: 8px; }
.bb-seller td { padding: 2px 8px 2px 0; vertical-align: top; }
.delivery { font-size: 12px; color: #565959; line-height: 1.6; }

/* セクション */
.section { margin-top: 28px; }
.section h2 { font-size: 18px; margin-bottom: 10px; }

/* レビュー */
.review { border-top: 1px solid #e7e7e7; padding: 12px 0; }
.review:first-of-type { border-top: none; }
.review .name { font-size: 13px; color: #0F1111; margin-bottom: 2px; }
.review .head { font-size: 14px; font-weight: 700; margin: 2px 0; }
.review .meta { font-size: 12px; color: #565959; margin-bottom: 4px; }
.review .body { font-size: 14px; line-height: 1.6; }
.review .helpful { font-size: 12px; color: #565959; margin-top: 6px; }
.verified { color: #C45500; font-size: 12px; }

/* 商品グリッド（トップ・関連商品） */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card { border: 1px solid #e7e7e7; border-radius: 6px; padding: 12px; background: #fff; }
.card .thumb { width: 100%; height: 120px; display: flex; align-items: center; justify-content: center; font-size: 44px; background: #f7f7f7; border-radius: 4px; margin-bottom: 8px; overflow: hidden; }
.card .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card .t { font-size: 13px; line-height: 1.4; margin-bottom: 4px; }
.card .p { font-size: 15px; }
.card .so { color: #B12704; font-size: 12px; font-weight: 700; }

/* フッター */
.backtotop { background: #37475a; color: #fff; text-align: center; padding: 12px; font-size: 13px; cursor: pointer; }
.footer { background: #232f3e; color: #ddd; padding: 24px 12px 40px; text-align: center; font-size: 12px; line-height: 1.8; }
.footer .disclaimer { color: #fff; background: #131921; border-radius: 6px; display: inline-block; padding: 10px 16px; margin-top: 12px; font-size: 12px; }

/* 役に立ったボタン */
.helpful-btn { display: inline-block; margin-left: 10px; padding: 3px 12px; font-size: 12px; color: #0F1111; background: #fff; border: 1px solid #888c8c; border-radius: 999px; cursor: pointer; }
.helpful-btn:hover:not(:disabled) { background: #f7fafa; }
.helpful-btn:disabled { color: #999; border-color: #d5d9d9; cursor: default; }

/* 商品画像ギャラリー（本家式：左縦列） */
.gallery-thumbs { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 600px) {
  .gallery { flex-direction: column-reverse; }
  .gallery-thumbs { flex-direction: row; justify-content: center; }
}
.gallery-thumb { width: 56px; height: 56px; object-fit: cover; border: 1px solid #d5d9d9; border-radius: 4px; cursor: pointer; background: #fff; }
.gallery-thumb.active { border: 2px solid #e77600; }

/* ギャラリー：ホバー拡大 */
.gallery { display: flex; gap: 10px; align-items: flex-start; }
.main-img-wrap { position: relative; cursor: zoom-in; border-radius: 4px; flex: 1; }
.main-img-wrap img { max-width: 100%; max-height: 380px; object-fit: contain; display: block; margin: 0 auto; }
.product { position: relative; }
.zoom-lens { display: none; position: absolute; border: 1px solid #999; background: rgba(255,255,255,0.35); pointer-events: none; z-index: 5; }
.zoom-pane { display: none; position: absolute; top: 0; right: 0; width: 55%; height: 420px; background-repeat: no-repeat; background-color: #fff; border: 1px solid #d5d9d9; border-radius: 4px; z-index: 10; pointer-events: none; }

/* ライトボックス */
.lightbox { display: none; position: fixed; inset: 0; background: #fff; z-index: 1000; }
.lightbox.open { display: block; }
.lb-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; z-index: 2; }
.lb-counter { font-size: 13px; color: #565959; }
.lb-close { border: 1px solid #d5d9d9; background: #fff; border-radius: 999px; width: 36px; height: 36px; font-size: 16px; cursor: pointer; }
.lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: auto; }
.lb-img { max-width: 92vw; max-height: 86vh; object-fit: contain; cursor: zoom-in; }
.lb-img.zoomed { max-width: none; max-height: none; width: 180vw; cursor: zoom-out; }
.lb-stage:has(.lb-img.zoomed) { display: block; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); border: 1px solid #d5d9d9; background: #fff; border-radius: 999px; width: 44px; height: 44px; font-size: 22px; cursor: pointer; z-index: 2; color: #0F1111; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.lb-dot { width: 8px; height: 8px; border-radius: 50%; background: #d5d9d9; cursor: pointer; }
.lb-dot.on { background: #e77600; }

/* 価格直下の在庫表示 */
.stock-status { color: #B12704; font-size: 18px; font-weight: 700; margin-top: 8px; }
.stock-status-sub { color: #565959; font-size: 13px; margin-top: 2px; }


/* 中央カラム追加要素 */
.rec-badge { display: inline-block; background: #232f3e; color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 3px; margin: 4px 0; }
.rec-badge::first-letter { color: #FF9900; }
.sold-fact { font-size: 13px; color: #565959; margin: 4px 0 2px; }
.points { font-size: 13px; margin-top: 4px; }
.trust-row { display: flex; gap: 22px; margin-top: 16px; }
.trust { font-size: 11px; color: #007185; text-align: center; line-height: 1.4; }
.trust-ico { font-size: 22px; margin-bottom: 4px; }

/* 購入ボックス追加要素 */
.bb-head { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.bb-points { font-size: 12px; margin-bottom: 6px; }
.bb-address { font-size: 12px; margin: 8px 0 10px; }
.btn-list { background: #fff; border: 1px solid #d5d9d9 !important; }
.btn-list:hover { background: #f7fafa; }
.bb-more { font-size: 12px; margin-top: 6px; }


/* ナビをリンク化 */
.nav a { color: #fff; white-space: nowrap; }
.nav a:hover { color: #fff; text-decoration: underline; }
.header a { text-decoration: none; }
.trust { text-decoration: none; }

/* トースト */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: #232f3e; color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 8px; opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 2000; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* スポンサー枠 */
.sponsored { border: 1px solid #e7e7e7; border-radius: 8px; padding: 16px; }
.sponsor-label { font-size: 11px; color: #565959; margin-bottom: 4px; }
.sponsor-box { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sponsor-box img { border: 1px solid #e7e7e7; border-radius: 4px; }
.sponsor-caption { font-size: 13px; color: #007185; }
.sponsor-note { font-size: 11px; color: #565959; }

/* スポンサー枠グリッド */
.sponsor-grid { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.sponsor-item { max-width: 100%; overflow-x: hidden; }
.sponsor-item * { max-width: 100%; }
.sponsor-item img { height: auto; }


/* ヘルプセンター */
.help-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.help-topic { display: flex; align-items: center; gap: 10px; border: 1px solid #d5d9d9; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #0F1111; text-decoration: none; background: #fff; }
.help-topic:hover { background: #f7fafa; text-decoration: none; color: #0F1111; }
.help-topic-ico { font-size: 20px; }
.help-sec { margin-top: 30px; scroll-margin-top: 20px; }
.help-sec h2 { font-size: 17px; border-bottom: 1px solid #e7e7e7; padding-bottom: 6px; }
.help-qa { margin-top: 14px; }
.help-q { font-size: 14px; font-weight: 700; }
.help-a { font-size: 14px; line-height: 1.9; margin-top: 4px; color: #0F1111; }


/* SVGアイコン */
.ico { display: inline-flex; vertical-align: -3px; }
.ico svg { stroke: currentColor; }
.searchbar .ico svg { stroke: #333; }
.header .cart .ico { vertical-align: -5px; }
.trust-ico .ico svg { stroke: #007185; }
.help-topic-ico { color: #565959; display: flex; }
.help-sec h2 .ico { margin-right: 2px; }


/* 規約ページ */
.legal h2 { font-size: 20px; }
.legal-lead { font-size: 14px; line-height: 2; margin: 12px 0 8px; }
.legal h3 { font-size: 15px; margin-top: 22px; margin-bottom: 6px; }
.legal p { font-size: 14px; line-height: 2; }
.legal ol { margin: 6px 0 6px 26px; font-size: 14px; line-height: 2; }
.legal-appendix { border-top: 1px solid #e7e7e7; margin-top: 26px; padding-top: 14px; color: #565959; }
.legal-appendix p { font-size: 13px; line-height: 1.9; }
