/* =========================================================
   EN•joy 役立ちコーナー完全統合モジュール（patch_tips_pro.css v3）
   ・旬の者たち：下の月ボタン廃止 ➔ バナー中央「横スクロール月ダイヤル」
   ・1週間献立：月〜日 × 朝・昼・夜 × [主菜/副菜/みそ汁/ご飯/＋もう1品]
   ・リアルタイムPFC＆栄養アドバイス / 自動合算買物 / レスキュー＆合法便
   ========================================================= */

#view-tips #enTipsDailyHub {
  display: none !important;
}

.en-tp-svg {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -0.2em;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.en-tp-svg.sm { width: 12px; height: 12px; }

/* --- 4本柱メイントップタブ --- */
.en-tips-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--en-surface-2);
  border-radius: var(--en-radius, 18px);
  border: 1px solid var(--en-border);
}
.en-tips-tab {
  border: none;
  background: transparent;
  color: var(--en-muted);
  border-radius: calc(var(--en-radius, 18px) - 5px);
  padding: 8px 2px;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: 0.15s;
}
.en-tips-tab * { pointer-events: none; }
.en-tips-tab.active {
  background: linear-gradient(135deg, var(--en-accent), var(--en-accent-2, #f59e0b));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(224, 109, 31, 0.28);
}

.en-tp-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 3px;
  border-radius: 13px;
  background: var(--en-surface-2);
  border: 1px solid var(--en-border);
}
.en-tp-seg-btn {
  border: none;
  background: transparent;
  color: var(--en-muted);
  border-radius: 10px;
  padding: 6.5px 4px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.en-tp-seg-btn.active {
  background: var(--en-surface);
  color: var(--en-accent);
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08);
}

/* =========================================================
   🎬 1. バナー中央「横スクロール月ダイヤル」（下の月ボタン列を廃止）
   ========================================================= */
.en-season-banner {
  position: relative;
  height: 126px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--en-border);
  box-shadow: var(--en-shadow);
  background: #1c1917;
}
.en-season-marquee {
  position: absolute;
  inset: -6px;
  display: flex;
  gap: 6px;
  width: max-content;
  filter: blur(2.5px) brightness(0.58);
  animation: enSeasonScroll 28s linear infinite;
}
.en-season-marquee img {
  width: 118px;
  height: 138px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
@keyframes enSeasonScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.en-season-today-chip {
  position: absolute;
  top: 8px;
  right: 9px;
  z-index: 4;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(15, 23, 42, 0.58);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.en-season-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 6px 10px;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.56));
}
.en-season-en { font-size: 9px; font-weight: 900; letter-spacing: 0.16em; opacity: 0.86; }

/* 横スクロールスナップ式・月ダイヤル */
.en-month-dial-wrap {
  position: relative;
  width: 100%;
  max-width: 288px;
  margin: 2px 0 1px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
}
.en-month-dial {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 96px;
}
.en-month-dial::-webkit-scrollbar { display: none; }
.en-month-dial-item {
  flex: 0 0 96px;
  scroll-snap-align: center;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  padding: 2px 0;
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease, font-size 0.18s ease;
}
.en-month-dial-item.active {
  color: #ffffff;
  font-size: 30px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.52);
}
.en-dial-hint { font-size: 9.5px; font-weight: 800; opacity: 0.78; letter-spacing: 0.04em; }
.en-season-sub { font-size: 10.5px; font-weight: 800; opacity: 0.94; margin-top: 2px; }

/* --- 🥬 3列旬グリッド ＆ 保存3枠 --- */
.en-shun-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
html.en-pc-mode .en-shun-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.en-shun-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--en-surface);
  border: 1px solid var(--en-border);
  box-shadow: var(--en-shadow);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.14s ease;
}
.en-shun-card:active { transform: scale(0.97); }
.en-shun-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--en-surface-2);
}
.en-shun-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.en-shun-cat {
  position: absolute; top: 5px; left: 5px;
  padding: 1.5px 6px; border-radius: 999px;
  background: rgba(15, 23, 42, 0.72); color: #ffffff;
  font-size: 9px; font-weight: 800;
}
.en-shun-waste-pill {
  position: absolute; left: 5px; bottom: 5px;
  padding: 1.5px 6px; border-radius: 999px;
  background: rgba(15, 23, 42, 0.78); color: #fde68a;
  font-size: 8.5px; font-weight: 800;
}
.en-shun-info { padding: 7px 7px 8px; display: flex; flex-direction: column; gap: 2px; }
.en-shun-name { font-size: 12px; font-weight: 900; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.en-shun-nutri { font-size: 9.5px; color: var(--en-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.en-storage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.en-storage-box {
  padding: 8px; border-radius: 11px; background: var(--en-surface-2);
  border: 1px solid var(--en-border); font-size: 11px; line-height: 1.4;
}
.en-storage-box strong { display: block; font-size: 10.5px; color: var(--en-accent); margin-bottom: 2px; }

/* =========================================================
   🍳 2. 朝・昼・夜 × 5スロット 1週間献立ビルダー ＆ PFC
   ========================================================= */
.en-nut-scope-pill {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: var(--en-surface-2);
  border: 1px solid var(--en-border);
}
.en-nut-scope-btn {
  border: none;
  background: transparent;
  color: var(--en-muted);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.en-nut-scope-btn.active {
  background: var(--en-accent);
  color: #ffffff;
}
.en-nut-advice {
  padding: 7px 9px;
  border-radius: 10px;
  background: var(--en-surface-2);
  border-left: 3px solid var(--en-accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.en-pfc-bar {
  display: flex;
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--en-surface-2);
}
.en-pfc-p { background: #f97316; }
.en-pfc-f { background: #eab308; }
.en-pfc-c { background: #3b82f6; }
.en-pfc-legend {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 800;
  margin-top: 4px;
}

/* 曜日7連ピル（朝・昼・夜の入力ドット付き） */
.en-day-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.en-day-pill {
  border: 1.5px solid var(--en-border);
  background: var(--en-surface);
  color: var(--en-text);
  border-radius: 12px;
  padding: 6px 2px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.en-day-pill strong { font-size: 12px; line-height: 1; }
.en-day-pill.active {
  border-color: var(--en-accent);
  background: var(--en-accent);
  color: #ffffff;
}
.en-day-dots { display: inline-flex; gap: 2.5px; }
.en-day-dots i {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: var(--en-border);
  display: block;
}
.en-day-dots i.on { background: var(--en-accent); }
.en-day-pill.active .en-day-dots i { background: rgba(255, 255, 255, 0.35); }
.en-day-pill.active .en-day-dots i.on { background: #ffffff; }

/* 朝・昼・夜 タブ */
.en-meal-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.en-meal-tab {
  border: 1.5px solid var(--en-border);
  background: var(--en-surface-2);
  color: var(--en-text);
  border-radius: 11px;
  padding: 6.5px 4px;
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.en-meal-tab.active {
  border-color: var(--en-accent);
  background: var(--en-accent-soft);
  color: var(--en-accent);
}
.en-meal-kcal-tag { font-size: 9.5px; font-weight: 700; opacity: 0.8; }

/* 主菜・副菜・みそ汁・ご飯・＋もう1品 スロット行 */
.en-slot-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.en-slot-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 12px;
  background: var(--en-surface-2);
  border: 1px solid var(--en-border);
  cursor: pointer;
}
.en-slot-row.is-empty {
  border-style: dashed;
  background: transparent;
}
.en-slot-role {
  flex-shrink: 0;
  width: 48px;
  text-align: center;
  padding: 3px 0;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
}
.en-slot-role.main   { background: rgba(239, 68, 68, 0.14); color: #dc2626; }
.en-slot-role.side   { background: rgba(16, 185, 129, 0.14); color: #059669; }
.en-slot-role.soup   { background: rgba(245, 158, 11, 0.16); color: #d97706; }
.en-slot-role.staple { background: rgba(59, 130, 246, 0.15); color: #2563eb; }
.en-slot-role.extra  { background: rgba(139, 92, 246, 0.15); color: #7c3aed; }
html[data-en-color="dark"] .en-slot-role.main,   html[data-en-color="cool"] .en-slot-role.main   { color: #f87171; }
html[data-en-color="dark"] .en-slot-role.side,   html[data-en-color="cool"] .en-slot-role.side   { color: #34d399; }
html[data-en-color="dark"] .en-slot-role.staple, html[data-en-color="cool"] .en-slot-role.staple { color: #60a5fa; }

.en-slot-thumb { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.en-slot-info { flex: 1; min-width: 0; }
.en-slot-title { font-size: 12px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.en-slot-meta { font-size: 10px; color: var(--en-muted); font-weight: 700; }

.en-slot-add-btn {
  width: 100%;
  padding: 8px;
  border-radius: 11px;
  border: 1.5px dashed var(--en-border);
  background: transparent;
  color: var(--en-accent);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* レシピ一覧カード */
.en-rec-card {
  padding: 11px;
  border-radius: 15px;
  background: var(--en-surface);
  border: 1px solid var(--en-border);
  box-shadow: var(--en-shadow);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.en-rec-top { display: flex; gap: 10px; align-items: flex-start; }
.en-rec-img { width: 74px; height: 74px; border-radius: 11px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--en-border); }
.en-dish-badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; font-size: 9.5px; font-weight: 900; }
.en-dish-badge.main   { background: rgba(239, 68, 68, 0.14); color: #dc2626; }
.en-dish-badge.side   { background: rgba(16, 185, 129, 0.14); color: #059669; }
.en-dish-badge.soup   { background: rgba(245, 158, 11, 0.16); color: #d97706; }
.en-dish-badge.staple { background: rgba(59, 130, 246, 0.15); color: #2563eb; }
.en-dish-badge.prep   { background: rgba(139, 92, 246, 0.15); color: #7c3aed; }
html[data-en-color="dark"] .en-dish-badge.main, html[data-en-color="cool"] .en-dish-badge.main { color: #f87171; }
html[data-en-color="dark"] .en-dish-badge.side, html[data-en-color="cool"] .en-dish-badge.side { color: #34d399; }

.en-branch-banner {
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px dashed rgba(249, 115, 22, 0.45);
  font-size: 11px;
  font-weight: 800;
  color: var(--en-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* 買い物リスト：ご近所チラシ・レスキュー連動・楽天Amazon運営収益 */
.en-flyer-bar {
  padding: 10px 11px;
  border-radius: 14px;
  background: var(--en-surface);
  border: 1.5px solid var(--en-border);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.en-flyer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.en-flyer-btn {
  padding: 6.5px 5px; border-radius: 10px; border: 1px solid var(--en-border);
  background: var(--en-surface-2); color: var(--en-text); font-size: 10.5px; font-weight: 800;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 3px; white-space: nowrap;
}
.en-flyer-btn:hover { border-color: var(--en-accent); color: var(--en-accent); }

.en-rescue-alert-strip {
  padding: 9px 11px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(245, 158, 11, 0.14));
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  cursor: pointer; font-size: 11.5px; font-weight: 900;
}

.en-buy-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 11px; background: var(--en-surface);
  border: 1px solid var(--en-border); font-size: 12px;
}
.en-buy-row.is-checked { opacity: 0.52; text-decoration: line-through; }
.en-aff-btns { display: inline-flex; gap: 4px; flex-shrink: 0; }
.en-aff-mini {
  padding: 3.5px 7px; border-radius: 8px; font-size: 10px; font-weight: 900;
  text-decoration: none; border: 1px solid var(--en-border); white-space: nowrap;
}
.en-aff-mini.rakuten { background: rgba(191, 0, 0, 0.1); border-color: rgba(191, 0, 0, 0.35); color: #b91c1c; }
.en-aff-mini.amazon { background: rgba(245, 158, 11, 0.15); border-color: rgba(217, 119, 6, 0.4); color: #b45309; }
html[data-en-color="dark"] .en-aff-mini.rakuten, html[data-en-color="cool"] .en-aff-mini.rakuten { color: #fca5a5; }
html[data-en-color="dark"] .en-aff-mini.amazon, html[data-en-color="cool"] .en-aff-mini.amazon { color: #fcd34d; }

.en-pr-note {
  padding: 7px 10px; border-radius: 10px; background: var(--en-surface-2);
  font-size: 10px; color: var(--en-muted); line-height: 1.45; text-align: center;
}

/* --- 🚚 ご近所レスキュー ＆ 合法協力ドライバー --- */
.en-rescue-card {
  padding: 12px; border-radius: 16px; background: var(--en-surface);
  border: 1.5px solid var(--en-border); box-shadow: var(--en-shadow);
  display: flex; flex-direction: column; gap: 8px;
}
.en-rescue-price-tag { font-size: 18px; font-weight: 900; color: var(--en-accent); line-height: 1; }
.en-method-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.en-method-chip {
  padding: 2.5px 7px; border-radius: 999px; background: var(--en-surface-2);
  border: 1px solid var(--en-border); font-size: 10px; font-weight: 800; color: var(--en-text);
}

.en-pickup-opt {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  padding: 9px 10px; border-radius: 12px; border: 1.5px solid var(--en-border);
  background: var(--en-surface); cursor: pointer; font-size: 11.5px;
}
.en-pickup-opt.active { border-color: var(--en-accent); background: var(--en-accent-soft); }
.en-pickup-opt strong { display: block; font-size: 12px; }
.en-pickup-opt small { display: block; font-size: 10.5px; color: var(--en-muted); margin-top: 1px; }

.en-fee-box {
  padding: 10px 11px; border-radius: 13px; background: var(--en-surface-2);
  border: 1px dashed var(--en-border); display: flex; flex-direction: column; gap: 5px; font-size: 11.5px;
}
.en-fee-row { display: flex; justify-content: space-between; gap: 6px; }
.en-fee-row.total { border-top: 1px solid var(--en-border); padding-top: 6px; margin-top: 2px; font-size: 13.5px; font-weight: 900; color: var(--en-accent); }

.en-pass-ticket {
  padding: 13px; border-radius: 16px;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.14), var(--en-surface));
  border: 2px solid #10b981; display: flex; flex-direction: column; gap: 7px;
}
.en-pass-code {
  font-size: 26px; font-weight: 900; letter-spacing: 0.08em; color: #059669;
  text-align: center; padding: 6px; border-radius: 10px; background: var(--en-surface); border: 1px dashed #10b981;
}
html[data-en-color="dark"] .en-pass-code, html[data-en-color="cool"] .en-pass-code { color: #34d399; }

.en-drv-rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.en-drv-tier { padding: 9px; border-radius: 12px; background: var(--en-surface); border: 1.5px solid var(--en-border); font-size: 11px; line-height: 1.4; }
.en-drv-tier.ok { border-color: rgba(16, 185, 129, 0.55); }
.en-drv-tier.warn { border-color: rgba(245, 158, 11, 0.6); }
.en-drv-tier.ng { border-color: rgba(239, 68, 68, 0.55); background: rgba(239, 68, 68, 0.05); }
.en-drv-badge { display: inline-block; padding: 1.5px 6px; border-radius: 999px; font-size: 9.5px; font-weight: 900; margin-bottom: 3px; }
.en-drv-tier.ok .en-drv-badge { background: rgba(16, 185, 129, 0.16); color: #059669; }
.en-drv-tier.warn .en-drv-badge { background: rgba(245, 158, 11, 0.18); color: #b45309; }
.en-drv-tier.ng .en-drv-badge { background: rgba(239, 68, 68, 0.16); color: #dc2626; }

.en-tp-edit-input {
  width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 10px;
  border: 1.5px solid var(--en-border); background: #fefce8; color: #1c1917;
  font-size: 12.5px; font-weight: 700; outline: none;
}
html[data-en-color="dark"] .en-tp-edit-input, html[data-en-color="cool"] .en-tp-edit-input {
  background: rgba(254, 249, 195, 0.12); color: var(--en-text);
}

/* --- 共通詳細モーダル --- */
#en-tips-pro-modal {
  position: fixed; inset: 0; z-index: 10048;
  background: rgba(9, 13, 24, 0.68); backdrop-filter: blur(6px);
  display: none; align-items: flex-end; justify-content: center;
}
#en-tips-pro-modal.open { display: flex; }
html.en-pc-mode #en-tips-pro-modal { align-items: center; padding: 20px; }
.en-tpm-shell {
  width: 100%; max-width: 560px; max-height: 90dvh;
  background: var(--en-bg, #f7f4ec); color: var(--en-text);
  border-radius: 24px 24px 0 0; border-top: 1px solid var(--en-border);
  box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.42);
  display: flex; flex-direction: column; overflow: hidden;
  animation: enFadeUp 0.22s cubic-bezier(.22, 1, .36, 1);
}
html.en-pc-mode .en-tpm-shell { max-width: 680px; border-radius: 22px; border: 1px solid var(--en-border); }
.en-tpm-head {
  height: 48px; flex-shrink: 0; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--en-surface); border-bottom: 1px solid var(--en-border);
}
.en-tpm-body {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 13px 14px 24px; display: flex; flex-direction: column; gap: 11px;
}