/* ==========================================================================
   トドック 注文・お届け早見表 & お買い物カレンダー
   デザイン完全再現スタイルシート（年末年始変則日程 & おせち別配対応）
   ========================================================================== */

:root {
  --primary-green: #009944;
  --primary-green-dark: #007a36;
  --primary-green-light: #e8f5e9;

  /* 年末年始・注意喚起カラー */
  --alert-orange: #ea580c;
  --alert-orange-bg: #fff7ed;
  --alert-orange-border: #fdba74;
  --alert-red: #dc2626;
  --alert-red-bg: #fef2f2;
  --alert-gold: #b45309;

  /* おせち専用カラー */
  --osechi-red: #b91c1c;
  --osechi-bg: #fff1f2;
  --osechi-border: #fca5a5;
  --osechi-gold: #d97706;

  --text-main: #2b2b2b;
  --text-muted: #666666;
  --text-light: #888888;

  --bg-page: #f4f5f7;
  --bg-card: #ffffff;

  --border-card: #e5e7eb;
  --border-table: #e0e0e0;

  /* 画像のテーブルカラーに合わせた指定 */
  --th-bg-calendar: #4f5358;
  --th-text-calendar: #ffffff;
  --th-bg-hayami: #f5f5f5;

  /* カレンダーの行背景色 */
  --row-delivery-bg: #fffde7; /* 登録配達曜日の淡い黄色 */
  --row-sat-bg: #edf3fa;      /* 土曜日の淡い青 */
  --row-sun-bg: #fdedeb;      /* 日曜日の淡い赤 */

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.05);

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

html {
  scroll-behavior: smooth;
}

[id^="section-"] {
  scroll-margin-top: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding: 16px 12px 48px;
}

.app-container {
  max-width: 500px;
  margin: 0 auto;
}

/* ==========================================================================
   冒頭ヘッダーご挨拶
   ========================================================================== */

.app-header-greeting {
  margin-bottom: 14px;
}

.greeting-main-title {
  font-size: 20px;
  font-weight: 800;
  color: #1b4d3e;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.greeting-message-card {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4.5px solid var(--primary-green);
  border-radius: 6px;
  padding: 10px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.greeting-text {
  font-size: 13px;
  line-height: 1.65;
  color: #166534;
  margin: 0;
  font-weight: 500;
}

/* ==========================================================================
   曜日選択コントロール
   ========================================================================== */

.top-control-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
}

.top-control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.top-control-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-green-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.weekday-btn-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.weekday-btn {
  padding: 7px 0;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
  border: 1.5px solid #d1d5db;
  background-color: #ffffff;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.weekday-btn:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.weekday-btn.active {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 153, 68, 0.28);
}

/* ==========================================================================
   変更点一覧（ページ内目次ナビゲーション）
   ========================================================================== */

.quick-nav-card {
  background: #ffffff;
  border: 1.5px solid #a7f3d0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(0, 153, 68, 0.06);
}

.quick-nav-header {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 7px;
  margin-bottom: 10px;
}

.quick-nav-icon {
  font-size: 15px;
  line-height: 1;
}

.quick-nav-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary-green-dark);
  margin: 0;
}

.quick-nav-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.15s ease;
  user-select: none;
}

.quick-nav-item:hover {
  background-color: #f0fdf4;
  border-color: var(--primary-green);
  color: var(--primary-green-dark);
  transform: translateX(3px);
  box-shadow: 0 1px 3px rgba(0, 153, 68, 0.1);
}

.quick-nav-item .nav-icon {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.quick-nav-item .nav-text {
  flex: 1;
  font-feature-settings: "palt";
}

.quick-nav-item .nav-arrow {
  color: var(--primary-green);
  font-size: 10px;
  font-weight: bold;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.quick-nav-item:hover .nav-arrow {
  transform: translateX(2px);
}

/* ==========================================================================
   カード共通スタイル (画像再現)
   ========================================================================== */

.card {
  background-color: var(--bg-card);
  border-radius: 8px;
  padding: 16px 16px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  position: relative;
}

.card-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-green);
  margin-bottom: 14px;
}

.card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.weekday-badge {
  display: inline-block;
  padding: 2px 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-green);
  border: 1.5px solid var(--primary-green);
  border-radius: 4px;
  background-color: #ffffff;
  line-height: 1.3;
}

/* ==========================================================================
   🎍 年末年始・変則スケジュール固定カード (特設セクション)
   ========================================================================== */

.card.card-year-end {
  border: 1.5px solid var(--alert-orange-border);
  background: linear-gradient(180deg, #ffffff 0%, #fffbf5 100%);
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.08);
}

.card.card-year-end .card-header-bar {
  border-bottom: 2.5px solid var(--alert-orange);
}

.card.card-year-end .card-title {
  color: #9a3412;
}

.card.card-year-end .weekday-badge {
  color: #c2410c;
  border-color: #ea580c;
  background-color: #fff7ed;
}

.year-end-alert-banner {
  background-color: var(--alert-orange-bg);
  border: 1px solid var(--alert-orange-border);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #9a3412;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.year-end-alert-icon {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.2;
}

/* 年末年始固定テーブル */
.year-end-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: center;
}

.year-end-table th,
.year-end-table td {
  border: 1px solid #fed7aa;
  padding: 8px 4px;
  vertical-align: middle;
}

.year-end-table th {
  background-color: #ffedd5;
  color: #9a3412;
  font-weight: 700;
}

.year-end-table td {
  background-color: #ffffff;
}

.year-end-table tr.row-irregular td {
  background-color: #fffaf0;
}

.year-end-table tr.clickable-row {
  cursor: pointer;
  transition: background-color 0.15s;
}

.year-end-table tr.clickable-row:hover td {
  background-color: #fee2e2;
}

/* おせち別配指定日の特設バナー */
.osechi-special-banner {
  margin-top: 10px;
  background: linear-gradient(135deg, #fff1f2 0%, #fef2f2 100%);
  border: 1.5px solid var(--osechi-border);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
}

.osechi-special-banner:hover {
  background: #ffe4e6;
  border-color: #f87171;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(185, 28, 28, 0.1);
}

.osechi-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.osechi-banner-title {
  font-size: 13px;
  font-weight: 800;
  color: #991b1b;
}

.osechi-banner-desc {
  font-size: 11px;
  color: #b91c1c;
  margin-top: 1px;
}

.osechi-banner-jump {
  font-size: 11px;
  font-weight: 700;
  color: #b91c1c;
  background-color: #ffffff;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  padding: 3px 8px;
  flex-shrink: 0;
}

/* ==========================================================================
   フラット案内セクション（入れ子解消後の独立カード内セクション）
   ========================================================================== */

.flat-notice-section {
  background-color: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 6px;
  padding: 10px 12px;
}

.flat-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #1f2937;
  border-bottom: 1px solid #e7e5e4;
  padding-bottom: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.flat-icon {
  font-size: 15px;
  line-height: 1;
}
  background-color: #fffbf5;
  border-top: 1px solid #fed7aa;
}

/* 各案内ブロック */
.notice-block {
  background-color: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 6px;
  overflow: hidden;
}

.notice-block-header {
  background-color: #fefce8;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 800;
  color: #854d0e;
  border-bottom: 1px solid #fef08a;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.notice-icon {
  font-size: 15px;
  line-height: 1;
}

.badge-teiki-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: #92400e;
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: auto;
}

.notice-block-body {
  padding: 10px 12px;
  font-size: 12.5px;
  color: #374151;
}

/* 窓口休止アイテム */
.support-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 7px 10px;
  background-color: #ffffff;
  border: 1px solid #fef08a;
  border-radius: 5px;
  font-size: 12px;
  margin-bottom: 6px;
}

.support-item:last-child {
  margin-bottom: 0;
}

.support-item:hover {
  background-color: #fefce8;
}

.support-item-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #1f2937;
}

.support-item-icon {
  font-size: 14px;
  line-height: 1;
}

.support-item-val {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.support-tag-stop {
  display: inline-block;
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.support-period {
  font-weight: 800;
  color: #dc2626;
  letter-spacing: -0.01em;
}

/* 訳あり企画の装飾 */
.wakeari-highlight-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.wakeari-period-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 10px 12px;
}

.wakeari-period-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wakeari-badge-stop {
  display: inline-block;
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  min-width: 64px;
  text-align: center;
}

.wakeari-badge-resume {
  display: inline-block;
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  min-width: 64px;
  text-align: center;
}

.wakeari-period-text {
  font-size: 13px;
  color: #1f2937;
}

/* 金曜コース案内ボックス */
.course-notice-box {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.course-notice-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.course-notice-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
  min-width: 68px;
  text-align: center;
}

.course-notice-value {
  font-size: 13px;
  color: #1f2937;
}

.badge-course-fri {
  display: inline-block;
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-status-stop {
  display: inline-block;
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.wakeari-main-text {
  font-size: 13px;
  color: #1f2937;
}

.notice-bullet-list {
  margin: 0;
  padding-left: 20px;
  color: #4b5563;
  line-height: 1.6;
  font-size: 12px;
}

.notice-bullet-list li strong {
  color: #b91c1c;
}

/* 定期便休配テーブル */
.teiki-lead {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

.teiki-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.teiki-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background-color: #ffffff;
}

.teiki-table th,
.teiki-table td {
  border: 1px solid #e5e7eb;
  padding: 7px 10px;
  vertical-align: middle;
}

.teiki-table th {
  background-color: #f9fafb;
  font-weight: 700;
  color: #374151;
  text-align: center;
}

.teiki-week-cell {
  text-align: center;
  background-color: #fafaf9;
}

.badge-week-tag {
  display: inline-block;
  background-color: #ea580c;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-week-tag.badge-week-single {
  background-color: #d97706;
}

.teiki-week-sub {
  font-size: 10px;
  color: #78716c;
  margin-top: 3px;
  font-weight: 600;
}

.teiki-product-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.teiki-product-list li {
  font-weight: 600;
  color: #1f2937;
}

@media (max-width: 480px) {
  .support-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 7px 10px;
  }
  .support-item-val {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   「変更ある」あしらいバッジ & ハイライト
   ========================================================================== */

tr.row-irregular-schedule td {
  background-color: #fff7ed !important;
}

.badge-irregular {
  display: inline-block;
  background-color: #ea580c;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1.3;
}

.badge-shift-deadline {
  display: inline-block;
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-top: 2px;
  line-height: 1.2;
}

.day-changed-alert {
  color: #dc2626;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.badge-shift-delivery {
  display: inline-block;
  background-color: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-top: 2px;
  line-height: 1.2;
}

.calendar-irregular-notice {
  background: linear-gradient(90deg, #fff7ed, #ffedd5);
  border: 1px solid #fdba74;
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #9a3412;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   1. 注文・お届け早見表 (画像上部カード)
   ========================================================================== */

.hayami-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 8px;
  gap: 6px;
}

.hayami-controls label {
  font-size: 12px;
  color: #64748b;
}

.month-dropdown {
  font-size: 12.5px;
  padding: 3px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background-color: #ffffff;
  color: #334155;
  cursor: pointer;
}

.hayami-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 13px;
}

.hayami-table th,
.hayami-table td {
  border: 1px solid var(--border-table);
  padding: 10px 4px;
  vertical-align: middle;
}

.hayami-table th {
  background-color: var(--th-bg-hayami);
  font-weight: 700;
  color: #333333;
}

.hayami-table td {
  background-color: #ffffff;
  color: #222222;
}

.hayami-table td.col-week {
  font-weight: 600;
}

.hayami-table td.col-delivery {
  font-weight: 600;
}

.hayami-table tr.clickable-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.hayami-table tr.clickable-row:hover td {
  background-color: #f7fee7;
}

/* ==========================================================================
   2. お買い物カレンダー (画像下部カード)
   ========================================================================== */

.sub-note {
  font-size: 12px;
  color: #555555;
  margin-bottom: 10px;
}

.legend-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  font-size: 12px;
  color: #444444;
  margin-bottom: 14px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 週移動ナビゲーション */
.week-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 2px;
}

.nav-arrow-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #c7c7c7;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.nav-arrow-btn:hover {
  background-color: #f3f4f6;
  border-color: #999999;
}

.nav-arrow-btn:active {
  transform: scale(0.97);
}

.nav-center-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.current-month-display {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.btn-today-shortcut {
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background-color: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-today-shortcut:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

/* 週間テーブル */
.calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.calendar-table th,
.calendar-table td {
  border: 1px solid var(--border-table);
}

.calendar-table th {
  background-color: var(--th-bg-calendar);
  color: var(--th-text-calendar);
  font-weight: 700;
  padding: 9px 4px;
  text-align: center;
  letter-spacing: 0.04em;
}

.calendar-table th.th-date {
  width: 32%;
}

.calendar-table th.th-memo {
  width: 68%;
}

.calendar-table td.cell-date {
  font-weight: 700;
  text-align: center;
  padding: 12px 4px;
  vertical-align: middle;
  color: #222222;
}

.calendar-table td.cell-memo {
  padding: 7px 10px;
  vertical-align: middle;
  min-height: 48px;
}

/* 行の背景色 */
.calendar-table tr.row-delivery-target td {
  background-color: var(--row-delivery-bg) !important;
}

.calendar-table tr.row-actual-delivery-irregular td {
  background-color: #ffedd5 !important;
  border-top: 1.5px solid #ea580c;
  border-bottom: 1.5px solid #ea580c;
}

.calendar-table tr.row-sat td {
  background-color: var(--row-sat-bg);
}

.calendar-table tr.row-sun td {
  background-color: var(--row-sun-bg);
}

.today-chip {
  display: inline-block;
  background-color: var(--primary-green);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 3px;
  vertical-align: middle;
}

/* ==========================================================================
   イベントピルバッジ
   ========================================================================== */

.memo-pill-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.event-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  padding: 3px 12px 3px 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #2d3748;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
  user-select: none;
  max-width: fit-content;
}

.event-pill:hover {
  border-color: var(--primary-green);
  background-color: #fafafa;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* 変則ピル */
.event-pill.pill-irregular-delivery {
  border-color: #ea580c;
  background-color: #fff7ed;
  color: #9a3412;
}

.event-pill.pill-irregular-delivery:hover {
  border-color: #c2410c;
  background-color: #ffedd5;
}

.event-pill.pill-irregular-deadline {
  border-color: #f87171;
  background-color: #fef2f2;
  color: #991b1b;
}

/* おせち別配ピル */
.event-pill.pill-osechi {
  border: 1.5px solid #dc2626;
  background: linear-gradient(135deg, #fff1f2 0%, #fee2e2 100%);
  color: #991b1b;
  box-shadow: 0 1px 3px rgba(185, 28, 28, 0.15);
}

.event-pill.pill-osechi:hover {
  border-color: #991b1b;
  background: #fecdd3;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(185, 28, 28, 0.2);
}

.event-pill:active {
  transform: translateY(0);
}

.icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-truck {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ==========================================================================
   詳細モーダル
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: #ffffff;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #1f2937;
}

.modal-close-icon {
  background: transparent;
  border: none;
  font-size: 22px;
  color: #9ca3af;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}

.modal-close-icon:hover {
  color: #374151;
}

.modal-card-body {
  padding: 16px;
}

.modal-data-box {
  background: #f8fafc;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}

.modal-data-row {
  display: flex;
  margin-bottom: 6px;
  font-size: 13px;
}

.modal-data-row:last-child {
  margin-bottom: 0;
}

.modal-data-label {
  width: 75px;
  color: #64748b;
  font-weight: 600;
  flex-shrink: 0;
}

.modal-data-value {
  color: #0f172a;
  font-weight: 700;
}

.modal-text {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.6;
}

.modal-notice-banner {
  background-color: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 4px;
  padding: 8px 10px;
  margin-top: 10px;
  font-size: 12px;
  color: #9a3412;
  font-weight: 600;
}

.modal-notice-banner.banner-osechi {
  background-color: #fff1f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.modal-card-footer {
  padding: 10px 16px 14px;
  display: flex;
  justify-content: flex-end;
}

.modal-btn-confirm {
  background-color: var(--primary-green);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s;
}

.modal-btn-confirm:hover {
  background-color: var(--primary-green-dark);
}

/* ==========================================================================
   フッター & アクション
   ========================================================================== */

.app-footer-area {
  text-align: center;
  margin-top: 24px;
}

.footer-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.15s;
}

.footer-print-btn:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
}

.footer-copy {
  font-size: 11.5px;
  color: #6b7280;
}

.footer-sub {
  font-size: 10.5px;
  color: #9ca3af;
  margin-top: 3px;
}

/* ==========================================================================
   コールセンター営業時間早見表
   ========================================================================== */

.call-schedule-container {
  margin-top: 14px;
  background-color: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 10px 12px;
}

.call-schedule-title-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #9a3412;
  margin-bottom: 4px;
}

.call-title-icon {
  font-size: 15px;
  line-height: 1;
}

.call-schedule-lead {
  font-size: 11.5px;
  color: #4b5563;
  margin-bottom: 8px;
  line-height: 1.5;
}

.call-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background-color: #ffffff;
}

.call-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  text-align: center;
  white-space: nowrap;
}

.call-schedule-table th,
.call-schedule-table td {
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  vertical-align: middle;
}

.call-schedule-table th {
  background-color: #f8fafc;
  font-weight: 700;
  color: #334155;
  line-height: 1.3;
}

.call-schedule-table td.cell-date-col {
  background-color: #fafaf9;
  text-align: center;
  font-size: 12px;
}

.call-schedule-table td.cell-sub-desc {
  font-size: 11px;
  color: #475569;
  line-height: 1.3;
}

.tag-special-day {
  font-size: 9.5px;
  font-weight: 800;
  color: #c2410c;
  background-color: #ffedd5;
  border-radius: 3px;
  padding: 1px 4px;
  margin-top: 2px;
}

.tag-osechi-day {
  font-size: 9.5px;
  font-weight: 800;
  color: #b91c1c;
  background-color: #fee2e2;
  border-radius: 3px;
  padding: 1px 4px;
  margin-top: 2px;
}

.tag-gray-day {
  font-size: 9.5px;
  font-weight: 700;
  color: #475569;
  background-color: #e2e8f0;
  border-radius: 3px;
  padding: 1px 4px;
  margin-top: 2px;
}

.tag-green-day {
  font-size: 9.5px;
  font-weight: 800;
  color: #15803d;
  background-color: #dcfce7;
  border-radius: 3px;
  padding: 1px 4px;
  margin-top: 2px;
}

.badge-same-day {
  font-size: 9.5px;
  color: #0369a1;
  background-color: #e0f2fe;
  padding: 1px 3px;
  border-radius: 2px;
  font-weight: 700;
}

/* 営業時間バッジ */
.badge-status-closed {
  display: inline-block;
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
}

.badge-time-short {
  display: inline-block;
  background-color: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

.badge-time-urgent {
  display: inline-block;
  background-color: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.2;
}

.badge-time-normal {
  color: #15803d;
  font-weight: 700;
}

.cell-sub-note {
  font-size: 10.5px;
  color: #64748b;
}

/* 行ハイライト */
tr.row-irregular-highlight td {
  background-color: #fffbf5;
}

tr.row-osechi-highlight td {
  background-color: #fff5f5;
}

tr.row-sanganichi td.cell-sanganichi-banner {
  background: linear-gradient(90deg, #fef2f2, #fee2e2);
  text-align: center;
  padding: 10px 8px;
}

.sanganichi-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #991b1b;
}

.sanganichi-desc {
  font-size: 11px;
  color: #b91c1c;
  margin-top: 2px;
}

/* 全窓口アコーディオン */
.call-all-fd-accordion {
  margin-top: 10px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
}

.call-all-fd-summary {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  background-color: #f1f5f9;
  user-select: none;
}

.call-all-fd-summary:hover {
  background-color: #e2e8f0;
}

.call-all-fd-content {
  padding: 10px;
  background-color: #ffffff;
}

.all-fd-desc {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 6px;
}

.table-all-fd th,
.table-all-fd td {
  font-size: 11px;
  padding: 5px 6px;
}

/* ==========================================================================
   印刷最適化
   ========================================================================== */

@media print {
  body {
    background: #ffffff;
    padding: 0;
  }
  .top-control-card,
  .week-nav-bar .nav-arrow-btn,
  .btn-today-shortcut,
  .hayami-controls,
  .modal-overlay,
  .footer-print-btn,
  .sub-note,
  .osechi-banner-jump {
    display: none !important;
  }
  .app-container {
    max-width: 100%;
  }
  .card {
    box-shadow: none;
    border: 1px solid #bbb;
    page-break-inside: avoid;
    margin-bottom: 18px;
  }
}
