﻿/* ===== 変数（配色案：背景はバナーのオレンジ、面は黒、強調は黄・赤） ===== */
:root {
  --c-page: #E65C1C; /* ページ背景。バナー下端のオレンジとつなげる */
  --c-dark: #2A2A2A; /* ボタン・帯・ラベルなどの面 */
  --c-text: #2A2A2A; /* 本文 */
  --c-sub: #6A6A6A;
  --c-title: #484848; /* 商品名 */
  --c-red: #F0422B; /* 割引（39%以下）・価格 */
  --c-yellow: #FACD1F; /* 割引（40%以上）・選択中 */
  --c-gold: #D4AF37; /* BF限定・上部の帯（グラデーションなしの金色） */
  --c-orange: #E65C1C;
  --c-line: #EADFD3;
  --radius-panel: 14px;
  --radius-pill: 12px;
  --radius-s: 4px;
  --bar-h: 40px;
  --gutter: 24px;
  --panel-pad: 48px; /* 白パネルの左右余白。上部固定のエリア帯もこの幅まで広げる */
}

/* ===== リセット & ベース ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* overflow-x: hidden だと body がスクロール領域になり、上部固定（sticky）が効かなくなるため clip を使う */
/* ページ端で引っぱったときに見える色。下端はフッターと同じ濃いグレーにする（本文の背景は body のオレンジ） */
html {
  background: var(--c-dark);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
  background: var(--c-page);
  color: var(--c-text);
  line-height: 1.6;
}

body.is-menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--c-dark);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

/* ページ内でスクロール・展開するボタンには▼を付け、別ページへの移動（›）と区別する */
.btn--scroll::after {
  content: "▼";
  font-size: 0.7em;
  margin-left: 8px;
}

.btn--primary {
  background: var(--c-dark);
  color: #fff;
}

.btn--primary:hover {
  background: var(--c-red);
  border-color: var(--c-red);
}

.btn--secondary {
  background: #fff;
  color: var(--c-dark);
}

.btn--secondary:hover {
  background: var(--c-dark);
  color: #fff;
}

.btn--disabled {
  background: #EDEDED;
  border-color: #EDEDED;
  color: #8A8A8A;
  cursor: default;
  font-size: 14px;
}

/* ===== ダミー表示の帯 ===== */
.dummy-notice {
  background: #FFF1C2;
  color: #5C4300;
  font-size: 12px;
  padding: 6px var(--gutter);
  text-align: center;
}

/* ===== 期限の帯（上部固定） ===== */
.deadline-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  background: var(--c-dark);
  color: #fff;
  padding: 6px var(--gutter);
}

.deadline-bar[data-state="soon"],
.deadline-bar[data-state="last"] {
  background: var(--c-red);
}

.deadline-bar[data-state="ended"] {
  background: #6E6E6E;
}

.deadline-bar__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.deadline-bar__name {
  font-weight: 700;
}

.deadline-bar__count {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--c-gold);
}

.deadline-bar[data-state="soon"] .deadline-bar__count,
.deadline-bar[data-state="last"] .deadline-bar__count,
.deadline-bar[data-state="ended"] .deadline-bar__count {
  color: #fff;
}

.deadline-bar__max {
  font-weight: 900;
  color: var(--c-dark);
  background: var(--c-gold);
  border-radius: var(--radius-s);
  padding: 0 8px;
}

.deadline-bar__max:empty,
.deadline-bar[data-state="ended"] .deadline-bar__max {
  display: none;
}

/* ===== ヘッダー ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 12px 32px;
}

.header__logo-svg {
  display: block;
  width: 150px;
  height: 41px;
}

.header__menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
}

.header__menu-icon,
.header__menu-icon::before,
.header__menu-icon::after {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--c-dark);
  border-radius: 2px;
}

.header__menu-icon {
  position: relative;
  margin: 9px 0;
}

.header__menu-icon::before,
.header__menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.header__menu-icon::before {
  top: -9px;
}

.header__menu-icon::after {
  top: 9px;
}

.header__menu-label {
  font-size: 10px;
  line-height: 1;
}

/* ===== メニュー ===== */
.menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: flex-end;
}

.menu-drawer__panel {
  position: relative;
  width: min(380px, 88vw);
  height: 100%;
  overflow-y: auto;
  background: var(--c-dark);
  color: #fff;
  padding: 64px 28px 32px;
}

.menu-drawer__close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 44px;
  height: 44px;
  font-size: 30px;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-drawer__heading {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-yellow);
  margin: 28px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid #fff;
}

.menu-drawer__heading:first-of-type {
  margin-top: 0;
}

.menu-drawer__links,
.menu-drawer__regions {
  list-style: none;
}

.menu-drawer__links a,
.menu-drawer__regions button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
}

/* ===== メインバナー ===== */
.hero picture,
.hero__img {
  width: 100%;
  height: auto;
}

/* バナー下は「全品◯%OFF以上」とボタンを1行に並べ、縦に長くしない */
.hero__text {
  padding: 20px var(--gutter) 0;
  text-align: center;
}

/* バナーの「最大◯%OFF」の条件。読める最小限の大きさで画像の直下に */
.hero__note {
  margin: 6px 0 0;
  padding: 0 var(--gutter);
  font-size: 12px;
  line-height: 1.5;
  color: #fff;
  text-align: center;
}

.hero__note:empty {
  display: none;
}

/* メインビジュアルと文言の間の白い区切り線（左右に余白） */
.hero__text::before {
  content: "";
  display: block;
  width: min(960px, 100%);
  height: 2px;
  margin: 0 auto 14px;
  border-radius: 999px; /* 線の両端を丸く */
  background: #fff;
}

/* オレンジ地に白文字。強調部分は文字を大きく */
.hero__lead {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}

.hero__lead strong {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  margin-left: 4px;
  line-height: 1.3;
  display: inline-block;
  white-space: nowrap;
}

/* 同時開催キャンペーンへの導線の幅と丸み */
.hero > .concurrent {
  width: 300px;
  border-radius: 999px;
}

/* 同時開催キャンペーンへの導線（白い細帯） */
.concurrent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 80%;
  max-width: 900px;
  margin: 16px auto 0;
  max-width: none;
  padding: 8px 18px;
  background: transparent;
  border: 2px solid #fff;
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

/* 中身の幅だけの帯にして中央に置く */
.concurrent:hover {
  background: rgba(255, 255, 255, 0.15);
}

.concurrent::after {
  content: "▼";
  font-size: 0.7em;
}

.concurrent__tag {
  flex: none;
  padding: 0 8px;
  border-radius: var(--radius-s);
  background: var(--c-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 22px;
}

/* ===== 終了時 ===== */
.ended {
  width: 80%;
  max-width: 900px;
  margin: 24px auto 0;
  padding: 40px var(--gutter);
  text-align: center;
  background: #fff;
  border-radius: var(--radius-panel);
}

.ended__title {
  font-size: 26px;
  font-weight: 900;
}

.ended__text {
  margin-top: 8px;
  font-size: 15px;
}

.ended__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

body.is-ended .float-btn {
  display: none;
}

/* ===== セクション（白い角丸パネル） ===== */
.section {
  width: 80%;
  max-width: 1440px;
  margin: 32px auto 0;
  padding: 64px var(--panel-pad);
  background: #fff;
  border-radius: var(--radius-panel);
  scroll-margin-top: calc(var(--bar-h) + 12px);
}

.section--soft {
  background: #fff;
}

/* 商品一覧はバナー直下なので、上の余白を詰める */
#search {
  margin-top: 20px;
  padding-top: 40px;
}

.section__head {
  text-align: center;
  margin-bottom: 32px;
}

.section__title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.section__lead {
  margin-top: 6px;
  font-size: 15px;
  color: var(--c-sub);
}

/* ===== 絞り込み =====
 * エリア：黒地のタブバー（選択中は黄色）。スクロール中も上部に固定して、一覧の途中から切り替えられるようにする
 * 国・地域：白地の小さな丸ボタン（選択中は黒）
 * 検索・並び替え：件数と同じ行に小さく置き、主役（エリアと商品）より目立たせない */
.filters {
  position: sticky;
  top: var(--bar-h);
  z-index: 20;
  margin: 0 calc(var(--panel-pad) * -1) 20px;
  padding: 10px var(--panel-pad);
  box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.18);
  background: #fff;
  scroll-margin-top: var(--bar-h);
}

/* PC（1200px以上）は1行に均等配置 */
.area-tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--c-dark);
  border-radius: 16px;
}

.area-tabs .chip {
  flex: 1 1 auto;
  justify-content: center;
}

.area-tabs .chip {
  min-height: 40px;
  padding: 0 10px; /* 地域が11個（日本を含む）でも1行に収まる余白 */
  white-space: nowrap;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.area-tabs .chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.area-tabs .chip[aria-pressed="true"] {
  background: var(--c-yellow);
  color: var(--c-dark);
}

/* スマホの追従帯（PCでは出さない） */
.area-bar {
  display: none;
}

/* スマホ用のプルダウン（PCでは出さない） */
.area-selects {
  display: none;
}

.country-chips {
  margin-top: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #CFCFCF;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--c-dark);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover {
  border-color: var(--c-dark);
}

.chip[aria-pressed="true"] {
  background: var(--c-dark);
  border-color: var(--c-dark);
  color: #fff;
  font-weight: 700;
}

/* 件数・検索・並び替え */
.list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 12px;
}

.result-count {
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.list-tools {
  display: flex;
  gap: 8px;
}

.search-box input,
.sort-box select {
  height: 40px;
  border: 1px solid #CFCFCF;
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 14px;
}

.search-box input {
  width: 260px;
  padding: 0 14px 0 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%232A2A2A' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5.5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 14px center;
}

.sort-box select {
  padding: 0 32px 0 14px;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%232A2A2A'/%3E%3C/svg%3E") no-repeat right 14px center;
  cursor: pointer;
}

.search-box input:focus,
.sort-box select:focus {
  outline: 2px solid var(--c-dark);
  outline-offset: 1px;
}

/* ラベルの説明（1行で控えめに） */
.list-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--c-sub);
}

.legend {
  display: contents;
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend__tag {
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  padding: 0 8px;
  border-radius: var(--radius-s); /* 商品ラベル（BF限定・おトク価格・条件あり）は角丸をそろえる */
}

.legend__tag.card__flag--cond {
  position: static;
  padding: 0 8px;
}

.list-note a {
  color: var(--c-dark);
  font-weight: 700;
}

/* ===== 商品一覧 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 20px;
}


.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-panel);
  box-shadow: 0 2px 8px 0 rgba(28, 28, 28, 0.25);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

/* BF限定はタイル全体を薄い肌色にし、縁取りを付けて「おトク価格」（白）と見分けられるようにする */
.card--limited {
  position: relative;
  background: #FFF1E2;
}

/* 写真の上にも縁が出るよう、カード全体に重ねて描く（クリックは下のカードに通す） */
.card--limited::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 2px solid #F3B98A;
  border-radius: inherit;
  pointer-events: none;
}

.card:hover {
  box-shadow: 0 6px 16px 0 rgba(28, 28, 28, 0.3);
  transform: translateY(-2px);
}

.card__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #EEE;
}

.card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* キャンペーンラベル（元LPの黄色ラベル。スマホで欠けないよう左上に収める） */
.card__flag {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 1px 10px;
  border-radius: var(--radius-s); /* 商品ラベル（BF限定・おトク価格・条件あり）は角丸をそろえる */
  background: var(--c-yellow);
  color: var(--c-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 写真の左上のラベルを縦に並べる枠（BF限定などの下に「条件あり」） */
.card__flags {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.card__flags .card__flag {
  position: static;
  max-width: 100%;
}

/* 条件あり：白地に赤文字・赤の縁 */
.card__flag--cond {
  background: #fff;
  color: var(--c-red);
  box-shadow: inset 0 0 0 1px var(--c-red);
}

/* BF限定は写真の上でも埋もれないよう、黒地に金文字・金の縁で一回り大きく */
.card__flag--limited {
  background: var(--c-dark);
  color: var(--c-gold);
  box-shadow: inset 0 0 0 1px var(--c-gold);
  font-size: 13px;
  line-height: 22px;
  padding: 0 10px;
  letter-spacing: 0.04em;
}

/* BF限定と並んでも見分けがつくよう、白地に黒文字で控えめに */
.gold-text {
  color: var(--c-gold);
}

.card__flag--other {
  background: #fff;
  color: var(--c-dark);
  box-shadow: 0 0 0 1px rgba(42, 42, 42, 0.25);
}

.card__flag--flash {
  background: var(--c-dark);
  color: var(--c-yellow);
}

.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 16px;
}

.card__origin {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-red);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 3px;
}

.card__origin::before {
  content: "";
  flex: none;
  width: 10px;
  height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 13'%3E%3Cpath fill='%23F0422B' d='M5 0a5 5 0 0 0-5 5c0 3.6 5 8 5 8s5-4.4 5-8a5 5 0 0 0-5-5Zm0 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.card__title {
  font-size: 15px;
  color: var(--c-title);
  letter-spacing: 0.04em;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.5em * 2);
}

.card__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 4px;
  font-size: 12px;
  color: var(--c-sub);
}

.card__star {
  color: var(--c-orange);
}

.card__score {
  font-weight: 700;
  color: var(--c-dark);
}

/* 評価のあとに続くときだけ間を空ける */
.card__star ~ .card__note {
  margin-left: 8px;
}

.card__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag {
  font-size: 11px;
  line-height: 1.4;
  padding: 1px 6px;
  border-radius: var(--radius-s);
  font-weight: 700;
}

.tag--cond {
  border: 1px solid var(--c-red);
  color: var(--c-red);
}

.tag--limited {
  background: var(--c-dark);
  color: var(--c-yellow);
}

.card__price {
  padding-top: 8px;
}

/* 割引前の料金の行。割引の無い商品も同じ高さを空けて、タイルの高さをそろえる */
.card__was {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-height: 18px;
  line-height: 18px;
}

/* 割引率は画像の左下に大きく。元LPの色分け（40%以上：黄色／39%以下：赤色） */
.card__off {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 4px 12px 4px 10px;
  border-radius: 0 var(--radius-panel) 0 0;
  background: var(--c-red);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.card__off b {
  font-size: 30px;
  letter-spacing: -0.02em;
}

.card__off--high {
  background: var(--c-yellow);
  color: var(--c-dark);
}

/* 割引前の料金（打ち消し線） */
.card__regular {
  font-size: 12px;
  color: var(--c-sub);
}

.card__arrow {
  font-size: 12px;
  color: var(--c-sub);
}

/* 「◯時点の価格です」 */

.footer__asof {
  font-size: 11px;
  opacity: 0.8;
}

.card__yen {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--c-red);
}

.card__yen small {
  font-size: 12px;
  font-weight: 700;
  margin-left: 1px;
}

.card__deadline {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-dark);
}

.card__period {
  font-size: 11px;
  color: var(--c-sub);
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  font-size: 15px;
  color: #888;
}

.empty .btn {
  margin-top: 12px;
}

.load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}

.load-more .btn {
  min-width: 340px;
}

/* エリア・国で絞ったときの「その他、◯◯ キャンペーン商品」。別ページへの移動はボタンの下に小さく添える */
.other-deals {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.load-more .other-deals__btn {
  min-width: 340px;
  max-width: 100%;
  min-height: 46px;
  padding: 8px 24px;
  font-size: 15px;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

.other-deals__btn::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.other-deals__note {
  font-size: 12px;
  color: var(--c-sub);
}

/* ===== 注意事項 ===== */
.notes__summary {
  list-style: none;
  cursor: pointer;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.07em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.notes__summary::-webkit-details-marker {
  display: none;
}

.notes__summary::after,
.related__summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
  margin: -6px 0 0 16px;
  transition: transform 0.2s;
}

.notes[open] .notes__summary::after,
.related__group[open] .related__summary::after {
  transform: rotate(-135deg);
  margin-top: 6px;
}

.notes__content {
  width: 736px;
  max-width: 100%;
  margin: 32px auto 0;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  white-space: pre-wrap;
}

.notes__legend {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-line);
  font-size: 14px;
}

.notes__legend-title {
  font-weight: 700;
}

.notes__content p + p {
  margin-top: 8px;
}

/* ===== 関連キャンペーン ===== */
.related-area {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 2px solid var(--c-dark);
  text-align: center;
}

.related-area__title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

/* 「140エリアで」「他キャンペーン開催中」は常に2行に分ける */
.related-area__title span {
  display: block;
}

.related-area__lead {
  margin: 4px 0 20px;
  font-size: 14px;
  color: var(--c-sub);
}

.related-area .related {
  text-align: left;
}

.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}

/* 見出しはエリア選択中と同じ黄色の面に黒文字（オレンジの背景に埋もれないように）。開くと白地に地域名のリンク */
.related__group {
  background: #fff;
  border: 3px solid var(--c-yellow);
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.related__group .related__summary {
  background: var(--c-yellow);
  color: var(--c-dark);
}

.related__group .related__count {
  color: rgba(42, 42, 42, 0.75);
}

.related__group[open] .related__links {
  padding-top: 12px;
}

.related__summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 20px;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.related__summary::-webkit-details-marker {
  display: none;
}

.related__summary::after {
  margin-left: auto;
}

.related__count {
  font-size: 12px;
  font-weight: 400;
  color: var(--c-sub);
  margin-left: 8px;
}

.related__links {
  list-style: none;
  padding: 0 20px 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px 12px;
}

.related__link {
  display: block;
  padding: 6px 0;
  font-size: 14px;
}

.related__link::after {
  content: " ↗";
  font-size: 11px;
}

.section__title--lines span {
  display: block;
}

.banner-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.banner {
  width: 750px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-panel);
}

/* ===== フッター ===== */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 60px;
  padding: 100px 40px;
  background: var(--c-dark);
  color: #fff;
}

.footer__logo {
  display: block;
  width: 180px;
  height: 49px;
}

.footer__areas {
  width: 100%;
  max-width: 900px;
  text-align: center;
}

.footer__areas-title {
  font-size: 15px;
  font-weight: 700;
}

.footer__areas-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.footer__area {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 36px;
  padding: 0 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.footer__area:hover {
  background: var(--c-yellow);
  border-color: var(--c-yellow);
  color: var(--c-dark);
}

.footer__links {
  display: flex;
  gap: 40px;
  font-size: 14px;
}

.footer__links a {
  text-decoration: none;
}

.footer__copy {
  font-size: 11px;
}

/* ===== 一覧へ戻る（PC） ===== */

/* 元LPの「▲目玉商品」ボタンと同じ見た目 */
.float-btn {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 16px;
  border: 2px solid var(--c-yellow);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--c-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.float-btn span {
  font-size: 12px;
  line-height: 1;
}

.float-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.float-btn:hover {
  background: var(--c-red);
  color: #fff;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1439px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 1行に収まらない幅では、5列×2段の同じ幅に揃える */
@media (min-width: 768px) and (max-width: 1199px) {
  .area-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-radius: 16px;
  }
}

@media (max-width: 1099px) {
  :root {
    --panel-pad: 32px;
  }

  .section {
    padding: 48px var(--panel-pad);
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .related {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --panel-pad: 14px;
    --bar-h: 36px;
  }

  .deadline-bar__inner {
    font-size: 13px;
    gap: 4px 12px;
  }

  /* 「何の期限か」が分かるよう、スマホでも見出しは消さない。
     帯を1行（--bar-h）に収め、下のエリア帯と重ならないようにする。最大割引率はメインバナー下に出ているので省く */
  .deadline-bar {
    height: var(--bar-h);
    padding-block: 0;
  }

  .deadline-bar__inner {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .deadline-bar__name {
    font-size: 12px;
  }

  .deadline-bar__max {
    display: none;
  }

  .header {
    padding: 8px 16px;
  }

  .header__logo-svg {
    width: 128px;
    height: 35px;
  }

  .header__menu-icon,
  .header__menu-icon::before,
  .header__menu-icon::after {
    width: 26px;
  }

  .hero__text {
    padding: 14px var(--gutter) 0;
  }

  .hero__text::before {
    margin-bottom: 10px;
  }

  .hero__note {
    margin-top: 4px;
    font-size: 11px;
  }

  .hero__lead {
    font-size: 13px;
  }

  .hero__lead strong {
    font-size: 21px;
    margin-left: 2px;
  }

  .hero > .concurrent {
    width: 70vw;
    min-width: 0;
  }

  .concurrent {
    margin-top: 12px;
    padding: 6px 14px;
    font-size: 13px;
    gap: 8px;
    white-space: nowrap;
  }

  .concurrent__tag {
    font-size: 11px;
  }

  .related-area {
    margin-top: 32px;
    padding-top: 28px;
  }

  .related-area__title {
    font-size: 19px;
  }

  .related-area__lead {
    font-size: 12px;
  }

  .section {
    width: 92%;
    margin-top: 20px;
    padding: 36px var(--panel-pad);
  }

  .section__head {
    margin-bottom: 20px;
  }

  .section__title {
    font-size: 6vw;
    letter-spacing: 0.08em;
  }

  .section__lead {
    font-size: 13px;
  }

  .ended {
    width: 92%;
  }


  /* スマホは最初にエリアを全部見せる（3列）。スクロールして一覧が画面外に出たら、上部に細い帯（.area-bar）が付いてくる */
  .filters {
    position: static;
    margin-bottom: 16px;
    padding-block: 0;
    box-shadow: none;
  }

  .area-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 6px;
    border-radius: 14px;
  }

  .area-tabs .chip {
    min-height: 42px;
    padding: 0 4px;
    font-size: 14px;
  }

  .country-chips .chips {
    justify-content: flex-start;
  }

  .area-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 6px 12px 8px;
    background: #fff;
    box-shadow: 0 6px 10px -6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
  }

  .area-bar.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .area-bar__tabs,
  .area-bar__countries {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .area-bar__tabs::-webkit-scrollbar,
  .area-bar__countries::-webkit-scrollbar {
    display: none;
  }

  .area-bar__tabs {
    padding: 4px;
    background: var(--c-dark);
    border-radius: var(--radius-pill);
  }

  .area-bar__tabs .chip {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
  }

  .area-bar__tabs .chip[aria-pressed="true"] {
    background: var(--c-yellow);
    color: var(--c-dark);
  }

  .area-bar__countries {
    margin-top: 6px;
  }

  .area-bar__countries:empty,
  .area-bar__scroller--countries:has(.area-bar__countries:empty) {
    display: none;
  }

  /* 右にまだエリアがあることを示す：右端をぼかし「›」を重ねる（右端まで送ると消える） */
  .area-bar__scroller {
    position: relative;
  }

  .area-bar__scroller::after {
    content: "›";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    background: linear-gradient(to right, rgba(42, 42, 42, 0), var(--c-dark) 65%);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    transition: opacity 0.15s;
  }

  .area-bar__scroller--countries::after {
    border-radius: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 65%);
    color: var(--c-dark);
  }

  .area-bar__scroller.is-end::after {
    opacity: 0;
  }

  .area-bar__countries .chip {
    flex: 0 0 auto;
  }

  /* タイルが縦に長くならないよう、価格の下の期限・参加期間は出さない（期限は上部の帯と一覧上の説明で伝える） */
  .card__deadline,
  .card__period {
    display: none;
  }

  .chip {
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }

  .list-meta {
    flex-wrap: wrap;
  }

  .list-tools {
    width: 100%;
  }

  .search-box {
    flex: 1;
  }

  .search-box input {
    width: 100%;
    font-size: 16px; /* iPhoneで入力時に拡大されないよう16px */
  }

  /* 検索窓を広く取るため、並び替えは中身の幅だけにする */
  .sort-box select {
    width: 132px;
    min-width: 0;
    font-size: 14px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  #search {
    margin-top: 14px;
    padding-top: 28px;
  }

  .card {
    border-radius: 12px;
  }

  .card__flags {
    top: 6px;
    left: 6px;
    max-width: calc(100% - 12px);
  }

  .card__flag {
    top: 6px;
    left: 6px;
    max-width: calc(100% - 12px);
    font-size: 10px;
    padding: 0 8px;
  }

  .card__body {
    padding: 8px 10px 12px;
  }

  .card__title {
    font-size: 13px;
  }

  /* 商品名と評価の間を、商品名の行と行の間と同じ見た目にする（flexの隙間4px分を詰める） */
  .card__title + .card__meta {
    margin-top: -4px;
  }

  .card__off {
    font-size: 12px;
    padding: 3px 10px 3px 8px;
    border-radius: 0 12px 0 0;
  }

  .card__off b {
    font-size: 22px;
  }

  .card__yen {
    font-size: 18px;
  }

  .load-more .btn {
    width: 80%;
    min-width: 0;
  }


  .btn {
    min-height: 48px;
    font-size: 16px;
  }

  .notes__summary {
    font-size: 20px;
  }

  .notes__content {
    margin-top: 20px;
    font-size: 13px;
  }

  .related {
    grid-template-columns: 1fr;
  }

  .banner-list {
    gap: 16px;
  }

  .banner {
    border-radius: 12px;
  }

  .footer {
    padding: 60px 20px;
  }

  .footer__logo {
    width: 160px;
    height: 44px;
  }

  .footer__area {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  .float-btn {
    display: none;
  }

}
