:root {
  /* HSL Color Palette - Premium Coffee Theme */
  --hue-primary: 25;
  /* Coffee Brown/Orange */
  --hue-secondary: 150;
  /* Fresh Green (Hygiene) */
  --hue-dark: 240;

  --color-bg-dark: hsl(var(--hue-dark), 10%, 10%);
  --color-bg-card: hsl(var(--hue-dark), 10%, 15%);
  --color-bg-card-hover: hsl(var(--hue-dark), 10%, 20%);

  --color-text-main: hsl(var(--hue-primary), 20%, 95%);
  --color-text-muted: hsl(var(--hue-primary), 10%, 70%);

  --color-primary: hsl(var(--hue-primary), 80%, 50%);
  --color-primary-glow: hsl(var(--hue-primary), 80%, 50%, 0.3);

  --color-success: hsl(var(--hue-secondary), 60%, 45%);
  --color-danger: hsl(0, 70%, 50%);
  --color-warning: hsl(40, 90%, 60%);
  --color-info: hsl(200, 80%, 50%);
  /* 営業のみ。旧 #FFFFFF はライトモードで不可視だったため紫に変更 */
  --color-business: hsl(265, 70%, 62%);

  --glass-bg: rgba(30, 30, 35, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  --font-main: 'Inter', system-ui, sans-serif;
  --radius-md: 12px;
  --radius-lg: 20px;

  --body-bg: radial-gradient(circle at top right, #2a221b, #121212);
}

[data-theme="light"] {
  /* 純白を避けた温かみのあるオフホワイト基調（コーヒー系ブランドに合わせた warm neutral）。
     繊細な境界線とソフトな影で奥行きを出し、プロフェッショナルで洗練された印象にする。 */
  --color-bg-dark: #efe9e1;        /* セクション背景（カードより一段沈める warm neutral） */
  --color-bg-card: #faf7f2;        /* カード：紙のようなオフホワイト（#fff にしない） */
  --color-bg-card-hover: #f3ede4;

  --color-text-main: #2a2420;      /* エスプレッソに近い暖かいダーク（寒色グレーをやめる） */
  --color-text-muted: #8a7d70;     /* 暖かいミューテッドグレー */

  --color-primary: hsl(24, 76%, 44%);   /* 落ち着いたバーントオレンジ（白地でも高コントラスト） */
  --color-business: hsl(265, 60%, 50%);

  --glass-bg: rgba(250, 247, 242, 0.88);
  --glass-border: rgba(58, 46, 35, 0.12);   /* 暖色の繊細な境界線 */
  --glass-shadow: 0 6px 22px rgba(58, 46, 35, 0.08);

  /* ごく薄い暖色グラデーションで平板さを回避（真っ白に見えないように） */
  --body-bg: radial-gradient(circle at top right, #f7f0e6, #ece5db);
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--body-bg);
  color: var(--color-text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

/* Header & Menu */
.site-header {
  margin-bottom: 20px;
}

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

.menu-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  padding: 8px;
  background: var(--color-bg-card);
  border-radius: 8px;
}

.staff-selector {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.staff-selector select {
  padding: 6px;
  border-radius: 4px;
  background: var(--color-bg-dark);
  color: var(--color-text-main);
  border: 1px solid var(--glass-border);
}

.btn-icon {
  padding: 5px 10px;
  font-size: 1.2rem;
}

#app {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0;
}

h1 {
  font-size: 1.8rem;
  margin: 0;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--color-text-main), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

#business-name-display {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: normal;
  -webkit-text-fill-color: var(--color-primary);
  /* Override gradient text fill */
}

/* Glassmorphism Cards */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.calendar-day-header {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding-bottom: 8px;
}

.calendar-day {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.calendar-day:hover:not(.empty) {
  background: var(--color-bg-card-hover);
  transform: translateY(-2px);
}

.calendar-day.empty {
  background: transparent;
  border: none;
  cursor: default;
}

.calendar-day.today {
  border-color: var(--color-primary);
  background-color: hsla(var(--hue-primary), 80%, 50%, 0.15);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.date-number {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Ensure status dot is centered or adjusted as needed */
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 12px;
  /* Add some space if needed, or center it */
}


.status-ok {
  background-color: var(--color-success);
  box-shadow: 0 0 5px var(--color-success);
}

.status-issue {
  background-color: var(--color-danger);
  box-shadow: 0 0 5px var(--color-danger);
}

.status-info {
  background-color: var(--color-info);
  box-shadow: 0 0 5px var(--color-info);
}

.status-business {
  background-color: var(--color-business);
  box-shadow: 0 0 5px var(--color-business);
}

.status-none {
  background-color: transparent;
}

/* Buttons */
.btn {
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  color: var(--color-text-main);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-primary);
}

.btn-primary {
  background: var(--color-primary);
  color: #1a1a1a;
  /* Dark text on primary */
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.1);
  background: var(--color-primary);
}

/* Forms */
input,
select,
textarea {
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-glow);
}

/* Password input with show/hide toggle */
.pw-wrap {
  position: relative;
  width: 100%;
}

.pw-wrap > input {
  padding-right: 44px;
  width: 100%;
  box-sizing: border-box;
}

.pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 6px 10px;
  color: var(--color-text-muted);
  border-radius: 6px;
  user-select: none;
}

.pw-toggle:hover {
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.06);
}

.pw-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--color-bg-dark);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  padding: 24px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

/* Check Items */
.check-item {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 16px;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}

.check-item.checked {
  border-color: var(--color-success);
  background: rgba(var(--color-success), 0.1);
  /* Needs conversion or tweak */
  background: linear-gradient(to right, rgba(46, 204, 113, 0.1), transparent);
}

.check-item.issue {
  border-color: var(--color-danger);
  background: linear-gradient(to right, rgba(231, 76, 60, 0.1), transparent);
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-item.checked .check-icon {
  background: var(--color-success);
  border-color: var(--color-success);
  color: black;
}

.check-item.issue .check-icon {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: white;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-enter {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.data-table th {
  background: var(--color-bg-dark);
  /* Solid background for sticky */
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2px solid var(--glass-border);
}

.data-table tr:hover td {
  background: var(--color-bg-card-hover);
}

.status-ok-text {
  color: var(--color-success);
  font-weight: bold;
}

.status-ng-text {
  color: var(--color-danger);
  font-weight: bold;
}

/* ===== App Header (Elevan-style 2-bar shell) ===== */
.app-header {
  margin: -20px -20px 20px;
  position: sticky;
  top: 0;
  z-index: 30;
}

/* Brand bar (gradient) */
.app-brand-bar {
  background: linear-gradient(135deg, var(--color-primary), hsl(calc(var(--hue-primary) + 12), 80%, 55%));
  color: #1a1a1a;
}

.app-brand-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.app-brand-logo {
  font-size: 1.3rem;
  align-self: center;
}

.app-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.app-ver {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.6;
}

.app-brand-sub {
  font-size: 0.75rem;
  opacity: 0.8;
  white-space: nowrap;
}

.app-brand-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.app-plan-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}
.app-plan-badge:hover { background: rgba(255, 255, 255, 0.4); }
.app-plan-badge--warn {
  background: var(--color-danger, #d9534f);
  color: #fff;
}

.app-icon-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #1a1a1a;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.app-icon-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Settings dropdown menu */
.app-menu {
  position: relative;
}

.app-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  padding: 6px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-menu-dropdown[hidden] {
  display: none;
}

.app-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--color-text-main);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.app-menu-item:hover {
  background: var(--color-bg-card-hover);
}

.app-menu-item .mi-icon {
  width: 1.2em;
  text-align: center;
  flex-shrink: 0;
}

.app-menu-item--danger {
  color: var(--color-danger);
}

.app-menu-sep {
  height: 1px;
  background: var(--glass-border);
  margin: 4px 2px;
}

/* Info bar */
.app-info-bar {
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--glass-border);
}

.app-info-left,
.app-info-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-info-bar {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#business-name-display.app-store-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text-main);
  -webkit-text-fill-color: var(--color-text-main);
}

#business-name-display.app-store-name:empty::before {
  content: '事業所名未設定';
  color: var(--color-text-muted);
  -webkit-text-fill-color: var(--color-text-muted);
  font-weight: 500;
}

/* Nav tabs */
.app-nav {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-nav-btn {
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  color: var(--color-text-main);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.app-nav-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-card-hover);
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 28px 0 16px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  opacity: 0.7;
}

.app-footer-links {
  display: block;
  margin-top: 6px;
}

.app-footer-links a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

/* ランディング末尾の法務リンクフッター */
.lp-legal-footer {
  text-align: center;
  padding: 24px 12px 8px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.lp-legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 8px;
}

.lp-legal-footer a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .app-header { margin: -12px -12px 16px; }
  .app-brand-inner,
  .app-info-bar,
  .app-nav { padding-left: 12px; padding-right: 12px; }
  .app-brand-sub,
  .app-plan-badge { display: none; }
  .app-brand { flex: 1 1 auto; min-width: 0; }
  .app-brand-name {
    font-size: 1.05rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .app-brand-actions { gap: 4px; }
  .app-icon-btn { width: 30px; height: 30px; font-size: 0.9rem; }
  .app-info-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .app-info-right { width: 100%; justify-content: flex-end; }
  .app-nav-btn { flex: 1 1 auto; text-align: center; }
}

/* ===== Auth / Landing View (Elevan-style) ===== */
.lp {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 4px 40px;
}

/* Hero */
.lp-hero {
  text-align: center;
  padding: 48px 16px 40px;
}

.lp-hero-title {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  display: inline-block;
  background: linear-gradient(135deg, var(--color-text-main), var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-hero-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin: 0 0 28px;
}

.lp-hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lp-cta-btn {
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px var(--color-primary-glow);
}

.lp-hero-foot {
  margin: 18px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* Trial banner */
.lp-trial {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-success);
  background: hsla(var(--hue-secondary), 60%, 45%, 0.08);
}

.lp-trial-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: hsla(var(--hue-secondary), 60%, 45%, 0.18);
  color: var(--color-success);
  font-size: 1.4rem;
  font-weight: 800;
}

.lp-trial-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.lp-trial-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* NFC starter-kit campaign */
.lp-campaign {
  max-width: 640px;
  margin: 24px auto 0;
  text-align: center;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-primary);
  background: hsla(var(--hue-primary), 80%, 50%, 0.08);
}

.lp-campaign-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.lp-campaign-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.lp-campaign-desc {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.lp-campaign-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  opacity: 0.85;
}

/* Section heads */
.lp-section-head {
  text-align: center;
  margin: 56px 0 28px;
}

.lp-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--color-text-main);
}

.lp-section-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Pricing */
.lp-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.lp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.lp-plan.is-recommended {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow), var(--glass-shadow);
}

.lp-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--color-primary);
  color: #1a1a1a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
}

.lp-plan-head { text-align: center; }

.lp-plan-name {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.lp-plan--trial .lp-plan-name { color: var(--color-success); }
.lp-plan--multi .lp-plan-name { color: var(--color-business); }

.lp-plan-nameja {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-top: 2px;
}

.lp-plan-tagline {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin: 4px 0 0;
  line-height: 1.4;
  min-height: 2.2em;
}

.lp-plan-price {
  text-align: center;
  margin: 16px 0;
}

.lp-plan-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.lp-plan-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* 値ごろ感（1日あたり）の補助表記 */
.lp-plan-perday {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 14%, transparent);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.lp-plan-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 16px 0 0;
  border-top: 1px solid var(--glass-border);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.lp-check {
  flex-shrink: 0;
  color: var(--color-success);
  font-weight: 800;
}

.lp-plan-cta {
  width: 100%;
  justify-content: center;
  font-weight: 700;
}

/* Features list */
.lp-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.lp-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
}

.lp-feature-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  border-radius: 12px;
  background: var(--color-bg-dark);
  border: 1px solid var(--glass-border);
  /* 絵文字をカラーで確実に描画する（環境によりモノクロ/欠損になるのを防ぐ） */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.lp-feature strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 2px;
}

/* 説明文のみ対象（アイコン span に当たらないよう div 配下に限定） */
.lp-feature > div span {
  display: block;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* End CTA */
.lp-cta-end {
  text-align: center;
  margin: 56px 0 16px;
}

.lp-fineprint {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* Auth modal brand title */
.auth-panel-brand {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 18px;
  background: linear-gradient(135deg, var(--color-text-main), var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1;
}

.lp-modal-close:hover {
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 720px) {
  .lp-plan-grid { grid-template-columns: 1fr; }
  .lp-feature-list { grid-template-columns: 1fr; }
}

/* ===== Staff Selector (Global) ===== */
.staff-selector {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
}

.staff-selector span {
  white-space: nowrap;
  font-weight: bold;
}

#print-mount {
  display: none;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .desktop-only {
    display: none !important;
  }

  #app {
    padding: 12px;
  }

  h1 {
    font-size: 1.5rem;
    display: flex;
    flex-direction: column !important;
    align-items: flex-start;
    gap: 4px;
  }

  .menu-bar {
    justify-content: center;
    flex-wrap: wrap;
    /* Center items on mobile */
  }

  .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
    flex: 1 1 auto;
    /* Grow to fill space but allow shrinking */
    justify-content: center;
  }

  .staff-selector {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
    margin-top: 5px;
    border-top: 1px solid var(--glass-border);
    padding-top: 8px;
  }

  .card {
    padding: 12px;
    margin-bottom: 12px;
  }

  /* Calendar Adjustments */
  .calendar-grid {
    gap: 2px;
  }

  .calendar-day {
    min-height: 50px;
    /* Reduced height */
    font-size: 0.75rem;
  }

  .calendar-day .status-dot {
    width: 8px;
    height: 8px;
  }

  .calendar-day-header {
    font-size: 0.7rem;
    padding-bottom: 4px;
  }

  /* Modal Adjustments */
  .modal-content {
    padding: 16px;
    width: 95%;
    max-height: 85vh;
  }

  .check-item {
    padding: 12px;
    font-size: 0.9rem;
  }

  /* Table Scroll */
  .modal-content {
    overflow-x: auto;
    /* Ensure tables scroll if content is wide */
  }
}

/* Print Styles */
@media print {

  /* Force Light Theme Colors */
  :root {
    --color-bg-dark: white !important;
    --color-bg-card: white !important;
    --color-text-main: black !important;
    --color-text-muted: #333 !important;
    --glass-border: 1px solid #ccc !important;
  }

  @page {
    margin: 10mm;
    size: A4 portrait;
  }

  html,
  body {
    background: white !important;
    color: black !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Hide Main App & UI Elements */
  #app,
  .modal-overlay,
  .site-header,
  .btn,
  .staff-selector,
  .menu-bar {
    display: none !important;
  }

  /* Show Print Area */
  #print-mount {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 9999;
  }

  #print-area {
    display: block !important;
    width: 100% !important;
    background: white !important;
    color: black !important;
  }

  /* Print Utilities */
  .print-header {
    margin-bottom: 20px;
    padding-top: 60px;
    /* Increased from 20px to 60px */
  }

  .print-meta-date {
    font-size: 8pt;
    text-align: left;
    margin-bottom: 5px;
    /* Increased from 2px */
  }

  .print-topper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid black;
    padding-bottom: 5px;
    /* Increased from 2px */
    margin-bottom: 10px;
    /* Increased from 2px */
  }

  .print-title-large {
    font-size: 13pt;
    /* Reduced to ensure 1 line fit */
    font-weight: bold;
    color: black !important;
    line-height: 1.2;
    white-space: nowrap;
    /* Prevent wrapping */
  }

  .print-right-col {
    text-align: right;
    font-size: 8pt;
    color: black !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    line-height: 1.2;
    /* Relaxed */
  }

  .print-info-line {
    margin-bottom: 2px;
    /* Restored spacing */
  }

  .print-target-month {
    text-align: center;
    font-size: 12pt;
    /* Slightly reduced to save space */
    margin: 10px 0 15px 0;
    /* Increased margins */
    font-weight: bold;
    color: black !important;
  }

  /* Tables */
  .print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    /* Increased */
    font-size: 9pt;
    /* Restored to 9pt */
    page-break-inside: auto;
  }

  .print-table tr {
    page-break-inside: avoid;
    page-break-after: auto;
    height: auto;
  }

  .print-table th,
  .print-table td {
    border: 1px solid black !important;
    padding: 3px 5px;
    /* Increased padding */
    text-align: left;
    color: black !important;
    background: white !important;
    line-height: 1.2;
    /* Relaxed line height */
  }

  .print-table th {
    background-color: #f0f0f0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    text-align: center;
    font-weight: bold;
    padding: 4px;
    /* Increased header padding */
  }

  /* Classes used in DataListView.ts */
  .print-text-center {
    text-align: center !important;
  }

  .print-text-bold {
    font-weight: bold !important;
  }

  .print-bg-gray {
    background-color: #f0f0f0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-p-4 {
    padding: 8px !important;
  }

  .print-nowrap {
    white-space: nowrap;
  }

  .status-ok-text,
  .status-ng-text {
    color: black !important;
  }
}

/* Staff Selector */
.staff-selector {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.staff-selector label {
  white-space: nowrap;
  font-weight: bold;
}/* Print Styles for Roasting HACCP */
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    /* Hide everything except print area */
    body> :not(#print-area) {
        display: none !important;
    }

    /* Print Container Base */
    #print-area {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        color: black !important;
        background: white !important;
        overflow: visible !important;
        font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
        z-index: 9999;
    }

    /* Global Reset within Print Area */
    #print-area * {
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
        visibility: visible !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Header Section */
    .print-header {
        margin-bottom: 10px;
    }

    .print-topper {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        margin-bottom: 5px !important;
    }

    .print-title {
        font-size: 20px !important;
        font-weight: bold !important;
        margin: 0 !important;
        flex: 1;
        text-align: left !important;
    }

    .print-right-col {
        text-align: right !important;
        width: 60%;
    }

    .print-biz-name {
        font-size: 12px !important;
        font-weight: bold !important;
        margin-bottom: 2px !important;
    }

    .print-biz-contact {
        font-size: 9px !important;
        margin-bottom: 0 !important;
    }

    .print-date {
        font-size: 14px !important;
        font-weight: bold !important;
        margin-bottom: 5px !important;
        text-align: center !important;
        clear: both;
    }

    /* Tables */
    .print-table {
        width: 100% !important;
        border-collapse: collapse !important;
        table-layout: fixed !important;
        margin-bottom: 5px !important;
    }

    .print-table th,
    .print-table td {
        border: 1px solid black !important;
        padding: 2px !important;
        color: black !important;
        vertical-align: middle;
    }

    /* Variant: Hygiene Plan Table */
    .print-table.plan {
        font-size: 9px !important;
    }

    /* Variant: Daily Data Table */
    .print-table.data {
        font-size: 10px !important;
    }

    /* Utilities */
    .print-bg-gray {
        background-color: #eee !important;
    }

    .print-text-center {
        text-align: center !important;
    }

    .print-text-bold {
        font-weight: bold !important;
    }

    .print-p-4 {
        padding: 4px !important;
    }

    .print-nowrap {
        white-space: nowrap !important;
    }
}