/* HIBI 改善版のスタイル
   直したこと：文字の色と大きさ（コントラスト比4.5:1以上、本文16px）、
   ボタンの大きさ（1辺48px以上）と間隔、画像の縦横比の確保 */
:root {
  --paper: #FAFAF8;
  --ink: #2B2B2B;        /* 本文：背景とのコントラスト比 約14:1 */
  --ink-sub: #5A5A5A;    /* 補足：約6.8:1 */
  --indigo: #2F3B55;
  --mustard: #C9A227;
  --mustard-ink: #3A2F00; /* マスタード地の上の文字 */
  --line: #DCDCD8;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.sale-banner { background: var(--mustard); color: var(--mustard-ink); text-align: center; font-size: 14px; font-weight: 500; padding: 10px 12px; }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 0 18px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.logo { font-family: "Jost", system-ui, sans-serif; font-weight: 400; letter-spacing: .28em; font-size: 20px; color: var(--indigo); text-decoration: none; }
.header-nav { display: flex; }
.header-nav a { display: grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0 8px; font-size: 14px; text-decoration: none; }

.hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 760px) { .hero img { aspect-ratio: 16 / 9; } }
.hero-copy { padding: 24px 18px 8px; max-width: 1100px; margin: 0 auto; }
.hero-copy h1 { font-weight: 500; font-size: 26px; line-height: 1.4; margin: 0 0 8px; }
.hero-copy p { margin: 0; color: var(--ink-sub); }

.section { max-width: 1100px; margin: 0 auto; padding: 24px 18px; }
.section h2 { font-weight: 500; font-size: 20px; margin: 0 0 16px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { text-decoration: none; }
.card img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.card .name { font-size: 15px; margin: 8px 0 0; }
.card .price { font-size: 15px; font-weight: 500; margin: 2px 0 0; }

.item { max-width: 1100px; margin: 0 auto; padding: 16px 18px 48px; display: grid; gap: 20px; }
@media (min-width: 900px) { .item { grid-template-columns: 1.1fr 1fr; } }
.item-main-img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs img { width: 64px; aspect-ratio: 4 / 5; object-fit: cover; }
.crumbs { font-size: 14px; color: var(--ink-sub); margin: 0; }
.item h1 { font-weight: 500; font-size: 22px; margin: 4px 0; }
.item .price { font-size: 22px; font-weight: 500; margin: 0; }
.label { font-size: 15px; font-weight: 500; margin: 20px 0 8px; }
.swatches, .sizes { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.swatch.is-selected { border-color: var(--indigo); box-shadow: 0 0 0 2px var(--paper) inset; }
.size { min-width: 56px; height: 48px; font-size: 16px; border: 1px solid var(--ink-sub); background: #fff; color: var(--ink); cursor: pointer; padding: 0 12px; font-family: inherit; }
.size.is-selected { border: 2px solid var(--indigo); background: var(--indigo); color: #fff; }
.size-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 12px; }
.size-table td, .size-table th { border-bottom: 1px solid var(--line); padding: 8px 4px; text-align: left; }
.size-table th { font-weight: 500; }
.add-to-cart { margin-top: 20px; width: 100%; height: 56px; background: var(--indigo); color: #fff; border: 0; font-size: 17px; font-weight: 500; cursor: pointer; font-family: inherit; }
.desc { color: var(--ink); }
.desc-sub { color: var(--ink-sub); font-size: 15px; }

.reviews { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 24px; }
.reviews .stars { color: #8A6D00; font-weight: 500; }

.coupon-note { margin-top: 12px; font-size: 14px; color: var(--ink-sub); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--indigo); color: #fff; font-size: 15px; padding: 12px 18px; }

.site-footer { padding: 32px 18px; font-size: 14px; color: var(--ink-sub); text-align: center; border-top: 1px solid var(--line); }
.site-footer a { display: inline-grid; place-items: center; min-height: 48px; padding: 0 12px; }
