@charset "UTF-8";
:root { --color-primary: #D84315; --color-accent: #FFAB91; --color-bg: #f2f3f5; --color-white: #fff; --color-free: #ff5252; }
* { box-sizing: border-box; }
/* スムーズスクロールを有効化 */
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Hiragino Sans", sans-serif; background: var(--color-bg); color: #333; }

/* アンカーリンク（ジャンプ先）の調整：少し上に余白を空ける */
#ranking-top { scroll-margin-top: 20px; }

.site-header { background: var(--color-primary); color: var(--color-white); padding: 24px 16px; text-align: center; }
.lucky-day-banner { max-width: 720px; margin: 10px auto; background: #fff9c4; border: 1px solid #fbc02d; color: #5d4037; text-align: center; padding: 10px; border-radius: 8px; font-size: 1rem; font-weight: bold; }
nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; max-width: 720px; margin: 10px auto; padding: 0 10px; }
.type-tabs a { flex: 1; min-width: 80px; text-align: center; padding: 12px 5px; border-radius: 10px; font-size: 1.15rem; font-weight: bold; background: #fff; border: 1px solid #ddd; border-bottom: 4px solid #bbb; }
.type-tabs a.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); border-bottom: 4px solid var(--color-accent); transform: translateY(2px); }
.brand-filter a, .size-filter a { padding: 6px 14px; border-radius: 20px; font-size: 1.05rem; background: #fff; border: 1px solid #ddd; }
.brand-filter a.active, .size-filter a.active { background: #444; color: #fff; }
.sort-toggle { background: #d8d8d8; padding: 4px; border-radius: 10px; display: flex; width: fit-content; margin: 15px auto 25px; }
.sort-btn { padding: 8px 16px; font-size: 1.1rem; font-weight: bold; color: #666; border-radius: 7px; }
.sort-btn.active { background: #fff; color: var(--color-primary); }
.coupon-section { max-width: 720px; margin: 0 auto 15px; padding: 0 12px; }
.coupon-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.coupon-card { background: #fff5f5; border: 1px dashed #ff8a80; padding: 8px 14px; border-radius: 8px; font-size: 0.9rem; color: #c62828; white-space: nowrap; font-weight: bold; }
.item-list { max-width: 720px; margin: 0 auto; padding: 0 12px 40px; display: flex; flex-direction: column; gap: 16px; }
.item-card { background: #fff; border-radius: 16px; padding: 16px; position: relative; display: flex; gap: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border: 1px solid #eee; }
.item-card.rank-1 { border: 2.5px solid #FFD700; background: #fffdf2; }
.item-rank { position: absolute; top: -10px; left: -10px; background: #888; color: #fff; font-weight: bold; font-size: 0.9rem; padding: 4px 12px; border-radius: 20px; z-index: 20; }
.image-wrapper { position: relative; width: 100px; height: 100px; flex-shrink: 0; }
.item-image { width: 100%; height: 100%; object-fit: contain; background: #fafafa; border-radius: 10px; }
.badge-free-shipping { position: absolute; top: 0; left: 0; background: var(--color-free) !important; color: #fff !important; font-size: 0.75rem; font-weight: bold; padding: 2px 5px; border-radius: 10px 0 8px 0; z-index: 10; }

/* 商品名：文字数が多くても最後まで表示されるよう、行数制限を解除 */
.item-name { font-size: 1.1rem; line-height: 1.4; margin: 0 0 4px; font-weight: bold; }

.item-shop { font-size: 0.9rem; color: #999; margin-bottom: 5px; }
.shipping-fee-text { color: #888; font-size: 0.85rem; margin-left: 4px; }
.effective-price { color: var(--color-primary); font-size: 1.1rem; }
.effective-price strong { font-size: 1.7rem; color: #e53935; }
.price-breakdown { font-size: 0.9rem; color: #777; margin: 4px 0 8px; }
.point-notice { font-size: 0.8rem; color: #999; }

/* 「100gあたり」価格をより目立つデザインに */
.unit-price-tag { background: #f1f8e9; color: #33691e; padding: 8px 14px; border-radius: 8px; font-size: 1.1rem; font-weight: bold; border: 2px solid #7cb342; display: inline-block; }
.unit-price-tag strong { font-size: 1.5rem; color: #2e7d32; }

.countdown-timer { display: block; font-size: 0.9rem; color: #d32f2f; font-weight: bold; margin-top: 5px; }
.btn { display: block; text-align: center; padding: 12px; border-radius: 10px; font-weight: bold; font-size: 1.05rem; }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 4px 0 #bf360c; }
.site-footer { text-align: center; font-size: 0.9rem; color: #888; padding: 40px 16px; background: #fff; border-top: 1px solid #eee; }
