/* ===========================================
   今日いちばん得するご飯 — ジューシー・オレンジ
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  /* Color tokens */
  --c-bg:        #ffffff;
  --c-fg:        #111111;
  --c-muted:     #888888;
  --c-border:    #f0eae5;
  --c-soft:      #FFF1E8;            /* ライトオレンジ背景 */
  --c-primary:   #FF5722;            /* メイン: ジューシーオレンジ */
  --c-primary-d: #E8451B;            /* 押下時 */
  --c-accent:    #FFD600;            /* イエロー */
  --c-text-on-primary: #ffffff;

  --c-shadow:    0 6px 20px rgba(255,87,34,0.12);
  --c-shadow-sm: 0 2px 8px rgba(17,17,17,0.06);

  --appbar-h: 52px;
  --tabbar-h: 60px;
  --gap:      12px;
  --radius:   14px;
  --radius-sm: 10px;
  --maxw:     480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,214,0,0.20) 0%, transparent 28%),
    radial-gradient(circle at 85% 22%, rgba(255,87,34,0.14) 0%, transparent 32%),
    radial-gradient(circle at 25% 78%, rgba(255,61,90,0.12) 0%, transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(255,179,0,0.16) 0%, transparent 32%),
    linear-gradient(180deg, #FFFAF3 0%, #FFEEDD 100%);
  background-attachment: fixed;
  color: var(--c-fg);
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; letter-spacing: -0.01em; }

.app {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(255,250,243,0.90) 100%);
  position: relative;
}

/* 🎉 紙吹雪パターン（タイル状に敷き詰め、コンテンツの背面に配置） */
.app::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g><circle cx='20' cy='25' r='3' fill='%23FF5722' opacity='.55'/><circle cx='130' cy='40' r='3.5' fill='%23FFD600' opacity='.6'/><circle cx='75' cy='15' r='2.5' fill='%23FF3D5A' opacity='.55'/><polygon points='90,72 92.2,77.5 98,77.8 93.4,81.6 95.2,87.2 90,84 84.8,87.2 86.6,81.6 82,77.8 87.8,77.5' fill='%23FFB300' opacity='.5'/><circle cx='30' cy='95' r='3' fill='%23FF7A2E' opacity='.5'/><circle cx='145' cy='95' r='2.5' fill='%23FFD600' opacity='.55'/><rect x='105' y='115' width='9' height='2.6' rx='1' fill='%23FF3D5A' opacity='.55' transform='rotate(-22 109.5 116.3)'/><circle cx='50' cy='135' r='3.5' fill='%23FF5722' opacity='.5'/><polygon points='15,148 17.2,153.5 23,153.8 18.4,157.6 20.2,163.2 15,160 9.8,163.2 11.6,157.6 7,153.8 12.8,153.5' fill='%23FFD600' opacity='.55'/><rect x='40' y='55' width='8' height='2.4' rx='1' fill='%23FFB300' opacity='.5' transform='rotate(28 44 56.2)'/><circle cx='115' cy='140' r='2.5' fill='%23FF7A2E' opacity='.5'/></g></svg>");
  background-size: 180px 180px;
  background-repeat: repeat;
  opacity: 0.85;
  /* 斜め下に流れる（20秒で1タイル分、30→20秒に1.5倍速化） */
  animation: confettiDrift 20s linear infinite;
  will-change: background-position;
}

@keyframes confettiDrift {
  from { background-position: 0 0; }
  to   { background-position: 90px 180px; }
}

/* アクセシビリティ：「視差効果を減らす」設定の人にはアニメ停止 */
@media (prefers-reduced-motion: reduce) {
  .app::before { animation: none; }
}

/* コンテンツは紙吹雪より前面に */
.app > * {
  position: relative;
  z-index: 1;
}

/* ===== AppBar ===== */
.appbar {
  position: sticky;
  top: 0;
  height: var(--appbar-h);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  z-index: 10;
}
.appbar__back,
.appbar__action {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--c-fg);
  border-radius: 999px;
}
.appbar__back:hover,
.appbar__action:hover {
  background: var(--c-soft);
}
.appbar__title {
  flex: 1;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appbar__logo {
  flex: 1;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--c-primary);
  white-space: nowrap;
}

/* 注意書き付きヘッダー（トップページ用） */
.appbar--with-notice .appbar__logo {
  flex: 0 0 auto;        /* ロゴは自分のサイズ分だけ */
  font-size: 14px;       /* 少し小さく */
}
.appbar__notice {
  flex: 1;
  margin: 0;
  font-size: 9px;
  line-height: 1.25;
  color: var(--c-muted);
  text-align: center;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  align-self: center;
}

/* ===== ページ本体 ===== */
.page {
  padding-bottom: calc(var(--tabbar-h) + 24px);
}

.section {
  padding: 18px 14px 6px;
}
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.section__title {
  font-size: 17px;
  font-weight: 900;
}
.section__more {
  font-size: 12px;
  color: var(--c-primary);
  font-weight: 700;
}

/* ===== Hero (今日終了) ===== */
.hero {
  padding: 18px 14px 4px;
  background: var(--c-soft);
}
.hero__title {
  font-size: 20px;
  font-weight: 900;
  color: var(--c-primary);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero__title .icon {
  font-size: 22px;
  display: inline-block;
  transform-origin: 50% 20%;
  animation: ringAlarm 1.6s ease-in-out infinite;
}

@keyframes ringAlarm {
  /* ジリジリと振動するフェーズ（0〜45%） */
  0%, 45%, 100% { transform: rotate(0deg); }
  5%, 15%, 25%, 35% { transform: rotate(-14deg); }
  10%, 20%, 30%, 40% { transform: rotate(14deg); }
  /* 残り 45〜100% は静止して一拍置く */
}
.hero__sub {
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 4px;
}

/* ===== 横スクロール行 ===== */
.scroll-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px 18px;
  scrollbar-width: none;
  background: var(--c-soft);
}
.hero + .scroll-row { padding-top: 6px; }
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row > * { flex: 0 0 auto; }

/* セクション直後のscroll-rowは白背景に戻す */
.section + .scroll-row {
  background: transparent;
}

/* ===== Chip (フィルタ) ===== */
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px;
  scrollbar-width: none;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1.5px solid var(--c-primary);
  background: var(--c-bg);
  color: var(--c-primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.chip.is-active {
  background: var(--c-primary);
  color: var(--c-text-on-primary);
}
/* プラス１ chip — 最上位アピール（赤グラデ） */
.chip--1buy1 {
  background: linear-gradient(135deg, #FF3D5A 0%, #D81B3F 100%);
  color: #ffffff;
  border-color: #8C0024;
  box-shadow: 0 2px 6px rgba(216,27,63,0.30);
}
.chip--1buy1.is-active {
  background: linear-gradient(135deg, #D81B3F 0%, #B5002E 100%);
}
/* 朝セール chip — 朝日色グラデ */
.chip--asasale {
  background: linear-gradient(135deg, #FFD600 0%, #FF8F00 100%);
  color: #1a1a1a;
  border-color: #E89400;
  box-shadow: 0 2px 6px rgba(255,160,0,0.30);
  font-weight: 900;
}
.chip--asasale.is-active {
  background: linear-gradient(135deg, #FFA000 0%, #FF6F00 100%);
  color: #ffffff;
}

/* ===== Badge ===== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.badge--solid {
  background: var(--c-primary);
  color: var(--c-text-on-primary);
}
.badge--outline {
  background: var(--c-bg);
  color: var(--c-primary);
  border: 1.5px solid var(--c-primary);
  padding: 1.5px 8.5px;
}
.badge--dotted {
  background: var(--c-accent);
  color: #1a1a1a;
}
.badge--point {
  background: linear-gradient(135deg, #FFE34D 0%, #FFB300 100%);
  color: #1a1a1a;
  border: 1px solid #E89400;
  border-radius: 7px;
  padding: 4px 10px 4px 7px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow:
    0 3px 6px rgba(255,160,0,0.35),
    0 1px 2px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.5);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.badge--point::before {
  content: "🔥";
  font-size: 11px;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

/* 半額バッジ（プチ 50%OFF アイコン付き） */
.badge--hangaku {
  background: var(--c-primary);
  color: var(--c-text-on-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px 2px 5px;
}
.badge--hangaku::before {
  content: "50%off";
  font-size: 9px;
  font-weight: 900;
  background: rgba(255,255,255,0.28);
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: -0.02em;
}

/* クーポンバッジ（チケットアイコン付き） */
.badge--coupon {
  background: var(--c-bg);
  color: var(--c-primary);
  border: 1.5px solid var(--c-primary);
  padding: 1.5px 9px 1.5px 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.badge--coupon::before {
  content: "🎫";
  font-size: 11px;
  line-height: 1;
}

/* 朝セールバッジ — 朝日色グラデ（黄→オレンジ） */
.badge--asasale {
  background: linear-gradient(135deg, #FFD600 0%, #FFA000 60%, #FF6F00 100%);
  color: #1a1a1a;
  border: 1px solid #E89400;
  border-radius: 7px;
  padding: 3px 9px 3px 6px;
  font-weight: 900;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow:
    0 3px 6px rgba(255,160,0,0.40),
    0 1px 2px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.50);
  text-shadow: 0 1px 0 rgba(255,255,255,0.40);
}
.badge--asasale::before {
  content: "🌅";
  font-size: 13px;
  line-height: 1;
}

/* プライチ（1個買うと1個もらえる）バッジ — 最上位tier 0用、特別感のあるレッド系グラデ */
.badge--1buy1 {
  background: linear-gradient(135deg, #FF3D5A 0%, #D81B3F 50%, #B5002E 100%);
  color: #ffffff;
  border: 1px solid #8C0024;
  border-radius: 7px;
  padding: 3px 9px 3px 6px;
  font-weight: 900;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow:
    0 3px 8px rgba(216,27,63,0.45),
    0 1px 2px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.35);
  text-shadow: 0 1px 1px rgba(0,0,0,0.18);
  animation: pulseGlow1buy1 2.4s ease-in-out infinite;
}
.badge--1buy1::before {
  content: "1+1";
  font-size: 9px;
  font-weight: 900;
  background: rgba(255,255,255,0.32);
  color: #ffffff;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: -0.02em;
  text-shadow: none;
  line-height: 1.2;
}
@keyframes pulseGlow1buy1 {
  0%, 100% { box-shadow: 0 3px 8px rgba(216,27,63,0.45), 0 1px 2px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.35); }
  50%      { box-shadow: 0 4px 14px rgba(216,27,63,0.75), 0 1px 2px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.45); }
}

/* 割引バッジ（％アイコン付き、ライトオレンジグラデ） */
.badge--warbiki {
  background: linear-gradient(135deg, #FFAB6B 0%, #FF7A2E 100%);
  color: #ffffff;
  border: 1px solid #E8451B;
  padding: 2px 9px 2px 5px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(255,87,34,0.2);
}
.badge--warbiki::before {
  content: "％";
  font-size: 10px;
  font-weight: 900;
  background: rgba(255,255,255,0.3);
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1;
}
.badge--countdown {
  background: var(--c-accent);
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(255,214,0,0.45);
  border: 1.5px solid #1a1a1a;
}
.badge--countdown.is-today {
  background: var(--c-primary);
  color: var(--c-text-on-primary);
  font-size: 11px;
  padding: 4px 12px 4px 6px;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 0 rgba(255,87,34,0.6);
  animation: pulseUrgent 1.4s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  letter-spacing: 0.04em;
}
.badge--countdown.is-today::before {
  content: "🔥";
  font-size: 32px;
  line-height: 0.7;
  margin-left: -4px;
  margin-right: 2px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
  animation: flameWiggle 0.5s ease-in-out infinite alternate;
  display: inline-block;
}

@keyframes flameWiggle {
  from { transform: rotate(-4deg) scale(1); }
  to   { transform: rotate(4deg) scale(1.08); }
}
.badge--countdown.is-ended {
  background: #e8e8e8;
  color: #999;
  border-color: #d0d0d0;
  box-shadow: none;
  font-weight: 500;
}

@keyframes pulseUrgent {
  0%   { box-shadow: 0 0 0 0 rgba(255,87,34,0.5); transform: scale(1); }
  60%  { box-shadow: 0 0 0 10px rgba(255,87,34,0);  transform: scale(1.04); }
  100% { box-shadow: 0 0 0 0 rgba(255,87,34,0);  transform: scale(1); }
}

/* ===== キャンペーンカード（縦並び用） ===== */
.card {
  display: flex;
  gap: 12px;
  padding: 12px;
  margin: 10px 14px;
  background: var(--c-bg);
  border-radius: var(--radius);
  box-shadow: var(--c-shadow-sm);
  border: 1px solid var(--c-border);
  position: relative;
}
.card__media {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255,255,255,0.92);
  text-align: center;
  padding: 4px;
  background: linear-gradient(135deg,#FFAB6B 0%, #FF5722 100%);
  overflow: hidden;
  position: relative;
}
/* ===== グループ表示カード（1+1 / 増量 等 — 目玉カード） ===== */
.card--grouped {
  display: block !important;       /* .card の flex を上書き */
  padding: 0 !important;           /* .card の padding を上書き */
  gap: 0 !important;
  background: var(--c-bg);
  border-radius: var(--radius);
  border: 2px solid var(--c-primary);
  box-shadow: 0 6px 18px rgba(255,87,34,0.25), 0 2px 6px rgba(0,0,0,0.05);
  margin: 14px 14px;
  overflow: visible;               /* Pick Upバッジ用 */
  position: relative;
}
/* 🔥 Pick Up バッジ — 右上角から少しはみ出す */
.card--grouped::after {
  content: "🔥 Pick Up";
  position: absolute;
  top: -12px;
  right: 10px;
  background: linear-gradient(135deg, #FF7A2E 0%, #FF3D5A 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(216,27,63,0.50), 0 1px 3px rgba(0,0,0,0.18);
  text-shadow: 0 1px 1px rgba(0,0,0,0.20);
  z-index: 5;
  pointer-events: none;
  white-space: nowrap;
  animation: pickUpPulse 2.2s ease-in-out infinite;
}
@keyframes pickUpPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 3px 8px rgba(216,27,63,0.45), 0 1px 2px rgba(0,0,0,0.15); }
  50%      { transform: scale(1.06); box-shadow: 0 4px 14px rgba(216,27,63,0.65), 0 1px 2px rgba(0,0,0,0.15); }
}
/* グループドカード内は overflow:hidden（角丸維持）に */
.card--grouped > .card__summary,
.card--grouped > .grouped-card__products {
  overflow: hidden;
  border-radius: inherit;
}
/* 朝セール単体カード（アコーディオン無し）— 通常カードと同じ flex レイアウトに揃える */
.card--asasale-single {
  display: flex !important;
  gap: 12px !important;
  padding: 12px !important;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.card--asasale-single > .card__media {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
}
.card--asasale-single > .card__body {
  flex: 1 1 auto;
  min-width: 0;
}
.card--grouped > .card__summary {
  display: flex;
  gap: 12px;
  padding: 12px 36px 12px 12px;  /* 右側に開閉アイコン分の余白 */
  cursor: pointer;
  list-style: none;
  align-items: stretch;
  position: relative;
}
.card--grouped > .card__summary::-webkit-details-marker { display: none; }
.card__expand-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--c-primary);
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.2s ease;
}
.card--grouped[open] .card__expand-icon {
  transform: translateY(-50%) rotate(180deg);
}
.grouped-card__products {
  margin: 0;
  padding: 0 12px 12px;
  list-style: none;
  border-top: 1px dashed var(--c-border);
  background: linear-gradient(180deg, rgba(255,243,235,0.5), rgba(255,255,255,0.0));
}
.grouped-card__item {
  border-bottom: 1px solid var(--c-border);
}
.grouped-card__item:last-child { border-bottom: none; }
.grouped-card__item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  color: var(--c-fg);
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
}
.grouped-card__item a:active {
  background: var(--c-soft);
}
.grouped-card__item-name {
  flex: 1;
  min-width: 0;
}
.grouped-card__item-icon {
  color: var(--c-primary);
  font-weight: 900;
  flex-shrink: 0;
}

/* 実写写真があれば全面に表示（絵文字より優先） */
.card__media .card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
}
.card-h__media {
  overflow: hidden;
  position: relative;
}
.card-h__media .card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.card__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.card__chain {
  font-size: 11px;
  color: var(--c-muted);
  font-weight: 500;
}
.card__title {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}
.card__period {
  font-size: 11px;
  color: var(--c-muted);
  margin-top: auto;
}

/* ===== カルーセル用カード（横スクロール） ===== */
.card-h {
  width: 230px;
  background: var(--c-bg);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--c-shadow);
  position: relative;
}
/* 今日終了するキャンペーン内のデリバリー対応カードは黄色枠で強調 */
.card-h[data-has-delivery="true"] {
  border: 2.5px solid var(--c-accent);
  box-shadow: 0 4px 14px rgba(255,214,0,0.45), 0 2px 6px rgba(0,0,0,0.08);
}
/* PR バッジ（広告表記）— 右下に小さく */
.card-h[data-has-delivery="true"]::before {
  content: "PR";
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0,0,0,0.55);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  z-index: 2;
  pointer-events: none;
}
.card-h__media {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,0.95);
  background: linear-gradient(135deg,#FFAB6B 0%, #FF5722 100%);
  font-weight: 700;
}
.card-h__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.card-h__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.card-h__chain { font-size: 11px; color: var(--c-muted); font-weight: 500; }
.card-h__title {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-h__period { font-size: 11px; color: var(--c-muted); }

/* ===== カテゴリタイル (2列グリッド) ===== */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 14px;
}
.tile {
  background: var(--c-bg);
  padding: 18px 12px;
  text-align: center;
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: var(--c-shadow-sm);
  border: 1px solid var(--c-border);
}
.tile__icon {
  font-size: 26px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-soft);
  color: var(--c-primary);
  border-radius: 999px;
  font-weight: 900;
}
.tile__count { font-size: 11px; color: var(--c-muted); font-weight: 500; }

/* 朝セール専用タイル — 朝日色（黄→オレンジ） */
.tile--asasale {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFE0B2 100%);
  border: 1.5px solid #FFA000;
  box-shadow: 0 4px 12px rgba(255,160,0,0.20);
}
.tile--asasale .tile__icon {
  background: linear-gradient(135deg, #FFD600 0%, #FF8F00 100%);
  font-size: 22px;
  box-shadow: 0 2px 6px rgba(255,160,0,0.30);
}
.tile--asasale .tile__count {
  color: #BF360C;
  font-weight: 700;
}

/* 1+1（プライチ）専用タイル — 最上位アピール */
.tile--1buy1 {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE5E8 100%);
  border: 1.5px solid #FF3D5A;
  box-shadow: 0 4px 12px rgba(216,27,63,0.20);
  position: relative;
  overflow: hidden;
}
.tile--1buy1 .tile__icon {
  background: linear-gradient(135deg, #FF3D5A 0%, #D81B3F 100%);
  color: #ffffff;
  font-size: 17px;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 6px rgba(216,27,63,0.35), inset 0 1px 0 rgba(255,255,255,0.30);
  animation: pulseGlow1buy1 2.4s ease-in-out infinite;
}
.tile--1buy1 .tile__count {
  color: #B5002E;
  font-weight: 700;
}

/* ===== チェーンタイル (横スクロール) ===== */
.chain-tile {
  width: 96px;
  text-align: center;
}
.chain-tile__logo {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--c-primary);
  margin: 0 auto 6px;
  background: var(--c-soft);
  border: 2px solid var(--c-primary);
  border-radius: 999px;
  text-align: center;
  padding: 4px;
  font-weight: 700;
  overflow: hidden;
  position: relative;
}
.chain-tile__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}
.chain-tile__name {
  font-size: 12px;
  font-weight: 700;
}

/* ===== 広告枠 ===== */
.ad-slot {
  margin: 18px 14px;
  height: 100px;
  border: 1.5px dashed #d8d8d8;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 12px;
  background: #fafafa;
}
.ad-slot--large { height: 250px; }

/* ===== 日付ストリップ ===== */
.date-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px;
  background: var(--c-soft);
  border-bottom: 1px solid var(--c-border);
  scrollbar-width: none;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-btn {
  flex: 0 0 auto;
  width: 56px;
  padding: 10px 4px;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--c-fg);
  font-family: inherit;
}
.date-btn.is-active {
  background: var(--c-primary);
  color: var(--c-text-on-primary);
  border-color: var(--c-primary);
  box-shadow: var(--c-shadow-sm);
}
.date-btn__dow { font-size: 10px; font-weight: 700; }
.date-btn__day { font-size: 18px; font-weight: 900; }
.date-btn__count {
  font-size: 10px;
  color: var(--c-muted);
  font-weight: 500;
}
.date-btn.is-active .date-btn__count { color: rgba(255,255,255,0.95); }

/* ===== TabBar (下固定) ===== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tabbar-h);
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
  display: flex;
  z-index: 20;
  max-width: var(--maxw);
  margin: 0 auto;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
}
.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 0;
  font-size: 10px;
  color: var(--c-muted);
}
.tabbar__icon { font-size: 20px; line-height: 1; }
.tabbar__label { font-size: 10px; font-weight: 700; }
.tabbar__item.is-active {
  color: var(--c-primary);
}

/* ===== Empty State ===== */
.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--c-muted);
  font-size: 13px;
}

/* ===== Footer ===== */
.footer {
  padding: 24px 14px;
  text-align: center;
  font-size: 11px;
  color: var(--c-muted);
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fafafa;
}
.footer a { color: var(--c-primary); font-weight: 700; }

/* ===== キャンペーン詳細ページ ===== */
.detail-hero {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,#FFAB6B 0%, #FF5722 100%);
  color: rgba(255,255,255,0.95);
  font-size: 13px;
  font-weight: 700;
}
.detail-meta {
  padding: 16px 14px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail-meta__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.detail-title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.detail-chain {
  font-size: 13px;
  color: var(--c-primary);
  font-weight: 700;
}
.detail-period {
  margin-top: 4px;
  padding: 14px;
  background: var(--c-soft);
  color: var(--c-primary);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}
.detail-section {
  padding: 18px 14px;
  border-bottom: 1px solid var(--c-border);
}
.detail-section h2 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 900;
}
.detail-section p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.75;
}

/* ===== CTAボタン (アフィリエイト枠) ===== */
.cta-stack {
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fafafa;
  border-bottom: 1px solid var(--c-border);
}
.cta-stack__head {
  font-size: 13px;
  font-weight: 900;
  color: var(--c-fg);
  margin-bottom: 4px;
  text-align: center;
  letter-spacing: 0.02em;
}
.cta-button {
  display: block;
  text-align: center;
  padding: 16px 12px;
  border: 2px solid var(--c-primary);
  border-radius: 999px;
  background: var(--c-bg);
  color: var(--c-primary);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.02em;
  box-shadow: var(--c-shadow-sm);
}
.cta-button--primary {
  background: var(--c-primary);
  color: var(--c-text-on-primary);
  box-shadow: var(--c-shadow);
}

/* ===== チェーン詳細用 ===== */
.chain-info {
  padding: 16px 14px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chain-info__name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.chain-info__cat {
  font-size: 12px;
  color: var(--c-muted);
  font-weight: 700;
}
.chain-info__row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
}
.chain-info__row a {
  color: var(--c-primary);
  font-weight: 700;
}
.tab-links {
  display: flex;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
}
.tab-links__item {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-muted);
}
.tab-links__item.is-active {
  color: var(--c-primary);
  border-bottom: 3px solid var(--c-primary);
  margin-bottom: -1px;
}

/* ===== 検索ページ ===== */
.search-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  font-size: 14px;
  background: var(--c-bg);
  font-family: inherit;
}
.search-input:focus {
  outline: none;
  border-color: var(--c-primary);
}
.search-bar-wrap {
  padding: 14px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-soft);
}

/* ===== 件数表示 ===== */
.result-count {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--c-muted);
  font-weight: 700;
  background: #fafafa;
  border-bottom: 1px solid var(--c-border);
}

/* ===== 選択日見出し ===== */
.date-heading {
  padding: 16px 14px 8px;
  font-size: 15px;
  font-weight: 900;
}

/* ===== 外部リンクインジケータ（公式サイト遷移カード） ===== */
.card.is-external::after,
.card-h.is-external::after {
  content: "↗";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92);
  color: var(--c-primary);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 2;
  pointer-events: none;
}

/* ===== 商品写真（画像差し替え時） ===== */
.card__media.has-image,
.card-h__media.has-image {
  background: #fff;
  padding: 0;
  overflow: hidden;
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.card:hover .card-image,
.card-h:hover .card-image {
  transform: scale(1.05);
}

/* ===== 食材絵文字（画像プレースホルダー） ===== */
.food-emoji {
  display: inline-block;
  font-size: 52px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.18));
  transform: rotate(-4deg);
  transition: transform 0.3s ease;
}
.card__media .food-emoji { font-size: 42px; }
.card-h__media .food-emoji { font-size: 60px; }
.chain-tile__logo .food-emoji { font-size: 38px; transform: none; filter: none; }
.detail-hero .food-emoji { font-size: 120px; }
.card:hover .food-emoji,
.card-h:hover .food-emoji { transform: rotate(2deg) scale(1.05); }

/* ===== ブランド別CTA ===== */
.cta-button--uber {
  background: #1A1A1A;
  color: #ffffff;
  border-color: #1A1A1A;
}
.cta-button--uber strong {
  color: #06C167;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.cta-button--demae {
  background: #E73000;
  color: #ffffff;
  border-color: #E73000;
}
.cta-button--demae strong {
  color: #FFEB00;
  font-weight: 900;
}
.cta-button--menu {
  background: #FFE600;
  color: #1a1a1a;
  border-color: #FFE600;
}
.cta-button--menu strong {
  color: #E60012;
  font-weight: 900;
  letter-spacing: 0.04em;
}

/* ===== アニメーション ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.card,
.card-h {
  animation: fadeInUp 0.4s ease-out backwards;
}
.card:nth-child(1) { animation-delay: 0.02s; }
.card:nth-child(2) { animation-delay: 0.06s; }
.card:nth-child(3) { animation-delay: 0.10s; }
.card:nth-child(4) { animation-delay: 0.14s; }
.card:nth-child(5) { animation-delay: 0.18s; }
.card:nth-child(6) { animation-delay: 0.22s; }
.card:nth-child(7) { animation-delay: 0.26s; }
.card:nth-child(8) { animation-delay: 0.30s; }
.card:nth-child(9) { animation-delay: 0.34s; }
.card-h:nth-child(1) { animation-delay: 0.02s; }
.card-h:nth-child(2) { animation-delay: 0.08s; }
.card-h:nth-child(3) { animation-delay: 0.14s; }
.card-h:nth-child(4) { animation-delay: 0.20s; }
.card-h:nth-child(5) { animation-delay: 0.26s; }

/* タップ・クリックフィードバック */
.chip {
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.1s ease, border-color 0.18s ease;
}
.chip:active { transform: scale(0.95); }

.card,
.card-h,
.tile,
.chain-tile,
.cta-button,
.tabbar__item,
.section__more {
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.card:active,
.card-h:active,
.tile:active,
.chain-tile:active {
  transform: scale(0.98);
}
.cta-button:active { transform: scale(0.97); }

.date-btn {
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.date-btn:active { transform: scale(0.94); }

/* チップ非表示時の遷移 (hidden = display:none なので表示時のフェードのみ) */
[data-type]:not([hidden]),
[data-end-date]:not([hidden]) {
  animation: fadeInUp 0.3s ease-out;
}

/* ===== 法務系ページ（プライバシー・運営者情報・免責事項） ===== */
.legal {
  padding: 20px 16px 32px;
  font-size: 14px;
  line-height: 1.85;
  color: #222;
}
.legal h2 {
  font-size: 16px;
  font-weight: 900;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--c-soft);
  color: var(--c-fg);
}
.legal h2:first-of-type { margin-top: 8px; }
.legal p {
  margin: 0 0 12px;
}
.legal ul {
  margin: 0 0 14px;
  padding-left: 1.4em;
  list-style: disc;
}
.legal li { margin-bottom: 4px; }
.legal a {
  color: var(--c-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal__updated {
  font-size: 12px;
  color: var(--c-muted);
  text-align: right;
  margin-bottom: 16px;
}
.legal strong {
  background: var(--c-soft);
  color: var(--c-primary);
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 900;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 13px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.legal-table th,
.legal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
}
.legal-table tr:last-child th,
.legal-table tr:last-child td { border-bottom: none; }
.legal-table th {
  width: 32%;
  background: var(--c-soft);
  font-weight: 700;
  color: var(--c-primary);
  white-space: nowrap;
}

/* お問い合わせフォーム */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 24px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-fg);
}
.form-field__label em {
  color: var(--c-primary);
  font-style: normal;
  margin-left: 2px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--c-bg);
  color: var(--c-fg);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form button {
  margin-top: 8px;
  cursor: pointer;
}
.contact-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* お問い合わせフォーム — 説明文 / フォールバック / ステータス */
.contact-intro {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-fg);
  background: var(--c-accent-soft, #FFF3E8);
  border-left: 3px solid var(--c-primary);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin: 12px 0 18px;
}
.contact-intro strong {
  color: var(--c-primary);
  font-weight: 800;
}
.contact-fallback {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--c-muted);
  border-top: 1px dashed var(--c-border);
  padding-top: 14px;
  margin-top: 18px;
}
.contact-fallback a {
  color: var(--c-primary);
  font-weight: 700;
  word-break: break-all;
}

/* チェックボックス専用フィールド */
.form-field--checkbox {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}
.form-field--checkbox input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  accent-color: var(--c-primary);
  flex-shrink: 0;
}
.form-field__label--inline {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
}
.form-field__label--inline a {
  color: var(--c-primary);
  text-decoration: underline;
}

/* 送信ステータス */
.form-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.55;
}
.form-status--success {
  background: #E8F5E9;
  color: #1B5E20;
  border: 1.5px solid #66BB6A;
}
.form-status--error {
  background: #FFEBEE;
  color: #B71C1C;
  border: 1.5px solid #EF5350;
}

/* ヘルパー */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
[hidden] { display: none !important; }

/* モーション抑制設定への配慮 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
