/* =========================================================
   冬のギフトの帯（トップ・ハンドメイド部で共通）
   - ページごとにデザインが違うので、色はここで自前に持つ（ページ側の変数に頼らない）
   - 期間は各ページの <section class="gift-band" data-until="YYYY-MM-DD">。過ぎるとページ内の小さな script が隠す
   - 品切れは自動では反映されない。ショップで品切れになったら商品を差し替える
   ========================================================= */
.gift-band {
  --g-ink: #2A2730;
  --g-ink-2: #4F4956;
  --g-paper: #FFFDF8;
  --g-line: rgba(42, 39, 48, 0.12);
  --g-accent: #B4546F;
  --g-photo-bg: #F3EFE6;
  max-width: 1120px;
  margin: clamp(40px, 6vw, 80px) auto 0;
  padding: 0 clamp(16px, 4vw, 32px);
  color: var(--g-ink);
  letter-spacing: .02em;
}
.gift-band[hidden] { display: none; }
.gift-band .gift-inner {
  background: var(--g-paper);
  border: 1px solid var(--g-line);
  border-radius: 18px;
  padding: clamp(22px, 3.4vw, 40px);
  box-shadow: 0 18px 40px -30px rgba(42, 39, 48, 0.45);
}
.gift-band .gift-tag {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--g-accent);
}
.gift-band .gift-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
  font-weight: 700;
  color: var(--g-ink);
}
.gift-band .gift-lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--g-ink-2);
}
.gift-band .gift-items {
  list-style: none;
  margin: clamp(18px, 2.6vw, 28px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 20px);
}
@media (max-width: 860px) {
  .gift-band .gift-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.gift-band .gift-items li { margin: 0; padding: 0; min-width: 0; }
.gift-band .gift-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  color: var(--g-ink);
  text-decoration: none;
  transition: transform .2s ease;
}
.gift-band .gift-item:hover,
.gift-band .gift-item:focus-visible { transform: translateY(-2px); }
.gift-band .gift-photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: var(--g-photo-bg);
  margin-bottom: 8px;
}
.gift-band .gift-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gift-band .gift-name { font-size: 15px; font-weight: 700; line-height: 1.5; }
.gift-band .gift-note { flex: 1; font-size: 12.5px; line-height: 1.7; color: var(--g-ink-2); }
.gift-band .gift-price { font-size: 16px; font-weight: 700; color: var(--g-accent); }
.gift-band .gift-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: clamp(16px, 2.4vw, 24px);
  padding-top: 14px;
  border-top: 1px dashed var(--g-line);
}
.gift-band .gift-foot p {
  margin: 0;
  max-width: 64ch;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--g-ink-2);
}
.gift-band .gift-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--g-accent);
  text-decoration: none;
  white-space: nowrap;
}
.gift-band .gift-more:hover,
.gift-band .gift-more:focus-visible { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .gift-band .gift-item { transition: none; }
  .gift-band .gift-item:hover,
  .gift-band .gift-item:focus-visible { transform: none; }
}
