/* 🎨 外部フォント（Noto Serif JP）の読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --amazon-navy:   #131921;
  --amazon-blue:   #232f3e;
  --amazon-orange: #febd69;
  --amazon-yellow: #f90;
  --amazon-red:    #b12704;
  --amazon-green:  #067d62;   /* Amazonスタイルの青緑色 */
  --amazon-light:  #f3f3f3;
  --amazon-white:  #ffffff;
  --amazon-border: #ddd;
  --amazon-text:   #0f1111;
  --amazon-sub:    #565959;   /* 説明や注記用のグレー */
  --radius:        4px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.12);
}

/* 全体のベースはすっきりしたゴシック体（Sans-serif） */
body { font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif; background: var(--amazon-light); color: var(--amazon-text); padding-top: 75px; padding-bottom: 50px; }

/* 📌 ヘッダー上部固定 */
#header { background: var(--amazon-navy); color: #fff; position: fixed; top: 0; left: 0; width: 100%; z-index: 900; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
#header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 0; padding: 10px 15px; }

/* 🎨 【修正】「白山支部ウェアショップ」の文字自体に明朝体を確実に強制適用する設定 */
#logo { 
  font-family: 'Noto Serif JP', 'serif' !important; /* 強制適用 */
  font-weight: 700 !important; 
  font-size: 16px; 
  text-align: left; 
}

/* 🎨 【修正】下の英語テキストも同じく明朝体で確実に同期させる設定 */
#logo .logo-sub { 
  font-family: 'Noto Serif JP', 'serif' !important; /* 強制適用 */
  display: block; 
  font-size: 9.5px; 
  color: var(--amazon-orange); 
  font-weight: normal !important; 
  margin-top: 3px; 
  white-space: nowrap; 
  text-align: left; 
}

@media(max-width: 360px) { .logo-sub { font-size: 8.5px; } }

#cart-btn { background: var(--amazon-navy); border: 1px solid #aaa; color: #fff; padding: 5px 12px; border-radius: 4px; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 5px; font-size: 13px; }
#cart-icon { color: #fff; }

.header-line { height: 1px; background: var(--amazon-yellow); width: 100%; margin: 0; }

/* 📌 フッター下部固定 */
#footer-fixed { background: var(--amazon-navy); color: #ccc; text-align: center; padding: 12px 10px; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 900; font-size: 11px; border-top: 1px solid #333; line-height: 1.4; font-family: sans-serif; }

/* 📌 メイン領域 */
#main { max-width: 650px; margin: 15px auto 15px 0; padding: 0 15px; font-family: sans-serif; }

@media(min-width: 600px) {
  #main { padding: 0 30px; margin-top: 30px; }
  #products-grid { gap: 24px !important; }
  .product-card { padding: 16px 12px !important; }
}

.section-title { font-size: 16px; font-weight: bold; margin-bottom: 12px; padding-bottom: 5px; text-align: left; position: relative; }
.section-title::after { content: ""; position: absolute; bottom: 0; left: -30px; right: -100vw; height: 2px; background: var(--amazon-yellow); }

/* 商品2列グリッド */
#products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* 🎨 カード全体 */
.product-card { background: #fff; border: 1px solid var(--amazon-border); border-radius: var(--radius); padding: 12px 10px; text-align: left; box-shadow: var(--shadow-sm); cursor: pointer; display: flex; flex-direction: column; position: relative; min-height: 380px; }

.card-title { font-size: 14px; font-weight: bold; margin-bottom: 6px; color: var(--amazon-blue); }

/* 写真エリア */
.card-img-wrap { width: 100%; height: 190px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; background: #fafafa; border-radius: 4px; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 0.2s ease; }
.product-card:hover .card-img { transform: scale(1.15); }

/* 各種テキスト要素の間隔 */
.card-tag { font-size: 11px; color: var(--amazon-sub); font-weight: normal; margin-bottom: 4px; display: block; }
.card-desc { font-size: 11px; color: var(--amazon-green); font-weight: bold; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-price { font-size: 16px; font-weight: bold; color: var(--amazon-red); margin-bottom: 1px; }

/* 文字とボタンの隙間を最小限 */
.card-price-note { font-size: 9px; color: var(--amazon-sub); margin-bottom: 3px; }

.btn-select-cart { background: var(--amazon-yellow); border: none; padding: 8px 5px; width: 100%; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 12px; margin-top: auto; text-align: center; color: #000; }

/* パーカーバッジ */
.badge-parker { position: absolute; top: 36px; left: 10px; background: var(--amazon-red); color: #fff; font-size: 9px; font-weight: bold; padding: 2px 6px; border-radius: 3px; z-index: 10; text-transform: uppercase; font-family: sans-serif; }

/* モーダル関連 */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; padding: 15px; }
.modal-overlay.active { display: flex; }
.modal-box { background: #fff; padding: 20px; border-radius: var(--radius); width: 100%; max-width: 440px; max-height: 85vh; overflow-y: auto; font-family: sans-serif; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; }
.modal-preview-wrap { width: 100%; height: 180px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
#product-preview-img { max-width: 100%; max-height: 100%; object-fit: contain; }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; font-weight: bold; margin-bottom: 4px; }
.form-group label span { color: var(--amazon-red); margin-left: 3px; }
.radio-group { display: flex; gap: 6px; flex-wrap: wrap; }
.radio-btn { padding: 6px 12px; border: 1px solid var(--amazon-border); border-radius: 4px; font-size: 12px; cursor: pointer; background: #fff; }
.radio-btn.selected { background: var(--amazon-orange); border-color: #e6a141; font-weight: bold; }

.qty-wrap { display: flex; align-items: center; gap: 12px; }
.qty-btn { width: 30px; height: 30px; border: 1px solid var(--amazon-border); background: #fff; cursor: pointer; border-radius: 4px; font-weight: bold; }
#qty-display { font-size: 15px; font-weight: bold; }

#modal-price-display { font-size: 20px; font-weight: bold; color: var(--amazon-red); margin: 12px 0 5px; text-align: right; }
#add-to-cart-btn { background: var(--amazon-yellow); border: none; padding: 10px; width: 100%; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 14px; color: #fff; }

.form-input { width: 100%; padding: 8px; border: 1px solid var(--amazon-border); border-radius: 4px; font-size: 13px; margin-top: 3px; }
.btn-primary { background: var(--amazon-yellow); border: none; padding: 10px; width: 100%; border-radius: 4px; font-weight: bold; cursor: pointer; margin-top: 10px; font-size: 14px; color: #fff; }
.btn-secondary { background: #fff; border: 1px solid var(--amazon-border); padding: 8px; width: 100%; border-radius: 4px; cursor: pointer; margin-top: 5px; font-size: 13px; color: #333; }

.step-indicator { display: flex; justify-content: space-between; margin-bottom: 15px; background: #f3f3f3; padding: 6px; border-radius: 4px; font-size: 10px; }
.step-item.active { font-weight: bold; color: #007185; }
.payment-notice-banner { background: #fff3cd; color: #856404; padding: 8px; border-radius: 4px; margin-bottom: 12px; font-size: 11px; }

#toast { position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%); background: var(--amazon-navy); color: #fff; padding: 8px 16px; border-radius: 20px; display: none; font-size: 12px; z-index: 2000; }