@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-color: #ebf7f0;
  --bg-gradient-start: #bce3ca;
  --bg-gradient-end: #ebf7f0;
  
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: rgba(16, 185, 129, 0.12);
  --card-shadow: rgba(6, 78, 59, 0.05);
  
  --text-primary: #0f291e;
  --text-secondary: #1b4d3e;
  --text-muted: #4a6b5d;
  
  --primary: #10b981;
  --primary-hover: #0d9668;
  --success: #059669;
  --success-glow: rgba(5, 150, 105, 0.15);
  --warning: #d97706;
  --danger: #dc2626;
  --danger-glow: rgba(220, 38, 38, 0.15);
  --system: #7c3aed;
  
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at top right, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 75%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* コンテナ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* タイトル & ヘッダー */
header {
  text-align: center;
  margin-bottom: 3.5rem;
}

h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 2px 4px rgba(5, 150, 105, 0.1));
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  font-weight: 400;
}

/* グリッドレイアウト */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* グラスモフィズムカード */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px -10px var(--card-shadow), 
              0 1px 3px rgba(16, 185, 129, 0.05);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 45px -10px rgba(6, 78, 59, 0.12);
}

.card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* フォーム要素 */
.form-group {
  margin-bottom: 1.75rem;
}

label {
  display: block;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

input, select {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

input:focus, select:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), 
              inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.input-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  line-height: 1.4;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-secondary);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 2px 4px rgba(6, 78, 59, 0.02);
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.05);
  border-color: var(--primary);
  color: var(--primary-hover);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

/* ステータスセクション */
.status-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  border-radius: 18px;
  background: rgba(16, 185, 129, 0.03);
  border: 1.5px solid rgba(16, 185, 129, 0.22);
}

.status-badge {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-active {
  background: var(--success-glow);
  color: var(--success);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.status-active::before {
  background: var(--success);
  box-shadow: 0 0 12px var(--success), 0 0 20px var(--success);
  animation: pulse-glow-strong 1.5s infinite;
  width: 10px;
  height: 10px;
}

.status-reminded {
  background: rgba(217, 119, 6, 0.1);
  color: var(--warning);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.status-reminded::before {
  background: var(--warning);
  box-shadow: 0 0 8px var(--warning);
  animation: pulse-glow 1.5s infinite;
}

.status-paused {
  background: var(--danger-glow);
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.status-paused::before {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

.status-none {
  background: rgba(74, 107, 93, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(74, 107, 93, 0.2);
}

.status-none::before {
  background: var(--text-muted);
}

/* デモダッシュボードの経過時間コントロール */
.demo-controls {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(16, 185, 129, 0.1);
}

.demo-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}

/* 通知ログ（シミュレーター） */
.log-box {
  margin-top: 1.5rem;
}

.log-list {
  max-height: 320px;
  overflow-y: auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(16, 185, 129, 0.1);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.log-item {
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.08);
  box-shadow: 0 2px 8px rgba(6, 78, 59, 0.02);
  animation: fadeIn 0.3s ease-out;
}

.log-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.log-tag {
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.log-tag-system { background: rgba(124, 58, 237, 0.1); color: var(--system); }
.log-tag-checkin { background: var(--success-glow); color: var(--success); }
.log-tag-reminder { background: rgba(217, 119, 6, 0.1); color: var(--warning); }
.log-tag-alert { background: var(--danger-glow); color: var(--danger); }

.log-msg {
  white-space: pre-wrap;
  color: var(--text-primary);
  line-height: 1.5;
}

.log-url {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--primary-hover);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(16, 185, 129, 0.08);
  padding: 0.3rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.12);
  transition: all 0.2s;
}

.log-url:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* 高齢者用安否確認（チェックイン）ページのスタイル */
.checkin-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  background: radial-gradient(circle at center, var(--bg-gradient-end) 0%, var(--bg-gradient-start) 100%);
}

.checkin-card {
  width: 100%;
  max-width: 500px;
  text-align: center;
  padding: 3.5rem 2.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 25px 60px -15px rgba(6, 78, 59, 0.15);
}

.checkin-instructions {
  font-size: 1.45rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.target-info {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
}

/* 超巨大安否確認ボタン */
.huge-btn-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.huge-btn {
  width: 7.5em;
  height: 7.5em;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #34d399 0%, var(--primary) 50%, #059669 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  cursor: pointer;
  outline: none;
  position: relative;
  /* 立体的な厚みと影も em で指定して自動伸縮させる */
  box-shadow: 0 0.48em 0 #047857, 
              0 0.6em 0.9em rgba(6, 78, 59, 0.3),
              0 0 0 0.45em rgba(16, 185, 129, 0.08),
              0 0 0 0.9em rgba(16, 185, 129, 0.03);
  transition: all 0.15s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  /* 文字あふれ対策: ボタンから文字がはみ出さないように内側に適度なパディングを設ける */
  padding: 0.5em;
}

.huge-btn:hover {
  transform: translateY(-0.06em);
  box-shadow: 0 0.54em 0 #047857, 
              0 0.75em 1.05em rgba(6, 78, 59, 0.35),
              0 0 0 0.6em rgba(16, 185, 129, 0.12),
              0 0 0 1.2em rgba(16, 185, 129, 0.05);
}

.huge-btn:active {
  transform: translateY(0.36em); /* 厚みの分だけ下に沈む */
  box-shadow: 0 0.12em 0 #047857, 
              0 0.24em 0.45em rgba(6, 78, 59, 0.2),
              0 0 0 0.45em rgba(16, 185, 129, 0.08),
              0 0 0 0.9em rgba(16, 185, 129, 0.03);
}

.huge-btn .icon {
  font-size: 1.5em; /* ボタンのfont-size（2.1rem）に対する相対サイズ */
  line-height: 1;
}

/* 完了アニメーション */
.success-checkmark {
  width: 90px;
  height: 90px;
  margin: 0 auto 2.5rem;
  padding: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 3px solid var(--success);
  color: var(--success);
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--success);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.success-text {
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* ユーティリティ & アニメーション定義 */
@keyframes pulse-glow-strong {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px var(--success); }
  50% { transform: scale(1.6); opacity: 0.2; box-shadow: 0 0 25px var(--success), 0 0 45px var(--success); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px var(--success); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.d-none { display: none !important; }

/* トースト通知 */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  padding: 1.1rem 1.6rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(6, 78, 59, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
  color: var(--text-primary);
  font-weight: 600;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  from { transform: translateX(120%); }
  to { transform: translateX(0); }
}

/* ==========================================
   長押しボタン（誤操作防止・高視認性）のスタイル
   ========================================== */

/* 長押しボタン用ラッパー */
.hold-btn-wrapper {
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* サークルプログレスバー */
.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg); /* 12時の位置からスタートさせる */
  pointer-events: none; /* ボタンのクリックイベントを邪魔しない */
}

.progress-ring__bg {
  stroke: rgba(16, 185, 129, 0.06);
}

.progress-ring__circle {
  transition: stroke-dashoffset 0.05s linear;
  stroke-linecap: round;
}

/* ボタン長押し中のエフェクト */
.huge-btn.holding {
  transform: scale(0.96);
  animation: shake 0.1s infinite;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.25);
}

/* 長押し中のバイブレーション風の揺れ */
@keyframes shake {
  0% { transform: scale(0.96) translate(1px, 1px) rotate(0deg); }
  10% { transform: scale(0.96) translate(-1px, -1px) rotate(-0.5deg); }
  20% { transform: scale(0.96) translate(-1px, 0px) rotate(0.5deg); }
  30% { transform: scale(0.96) translate(1px, 1px) rotate(0deg); }
  40% { transform: scale(0.96) translate(1px, -1px) rotate(0.5deg); }
  50% { transform: scale(0.96) translate(-1px, 1px) rotate(-0.5deg); }
  60% { transform: scale(0.96) translate(-1px, -1px) rotate(0deg); }
  70% { transform: scale(0.96) translate(1px, 1px) rotate(-0.5deg); }
  80% { transform: scale(0.96) translate(-1px, 1px) rotate(0.5deg); }
  90% { transform: scale(0.96) translate(1px, -1px) rotate(0deg); }
  100% { transform: scale(0.96) translate(1px, 1px) rotate(0.5deg); }
}

/* 高齢者向けの視覚支援 (ハイコントラスト・明瞭化) */
.checkin-layout h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  text-shadow: none;
}

.checkin-instructions {
  font-size: 1.5rem;
  color: var(--text-secondary);
  text-shadow: none;
  margin-bottom: 2rem;
}

.target-info {
  font-size: 1.2rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1.5px solid rgba(16, 185, 129, 0.2);
  padding: 0.85rem 1.5rem;
  border-radius: 14px;
  color: var(--text-secondary);
  display: inline-block;
  margin-bottom: 2.5rem;
}

.checkin-card {
  border: 3px solid rgba(16, 185, 129, 0.25);
}

/* ==================================================
   スマートフォン向けレスポンシブ最適化 (2段階調整)
   ================================================== */

/* 1段階目: スマートフォン全般 (iPhone 12 Pro 等の標準的なスマホ) */
@media (max-width: 500px) {
  .checkin-layout {
    padding: 1rem;
  }
  
  .checkin-card {
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }
  
  .checkin-layout h1 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
  }
  
  .checkin-instructions {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }
  
  .target-info {
    font-size: 1.05rem;
    padding: 0.7rem 1.2rem;
    margin-bottom: 1.75rem;
    border-radius: 12px;
  }
  
  .huge-btn-container {
    margin-bottom: 1.75rem;
  }
  
  .huge-btn {
    font-size: 1.85rem;
    box-shadow: 0 0.42em 0 #047857, 
                0 0.5em 0.84em rgba(6, 78, 59, 0.3),
                0 0 0 0.42em rgba(16, 185, 129, 0.08),
                0 0 0 0.84em rgba(16, 185, 129, 0.03);
  }
  
  .huge-btn:hover {
    transform: translateY(-0.06em);
    box-shadow: 0 0.49em 0 #047857, 
                0 0.63em 1.0em rgba(6, 78, 59, 0.35),
                0 0 0 0.56em rgba(16, 185, 129, 0.12),
                0 0 0 1.12em rgba(16, 185, 129, 0.05);
  }
  
  .huge-btn:active {
    transform: translateY(0.31em);
    box-shadow: 0 0.14em 0 #047857, 
                0 0.2em 0.4em rgba(6, 78, 59, 0.2),
                0 0 0 0.42em rgba(16, 185, 129, 0.08),
                0 0 0 0.84em rgba(16, 185, 129, 0.03);
  }
  
  .huge-btn .icon {
    font-size: 1.5em;
  }
  
  .success-checkmark {
    width: 80px;
    height: 80px;
    font-size: 2.6rem;
    padding: 15px;
    margin: 0 auto 2rem;
  }
  
  .success-title {
    font-size: 1.85rem;
    margin-bottom: 1rem;
  }
  
  .success-text {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    line-height: 1.6;
  }
}

/* 2段階目: 極小画面スマホ (iPhone SE 等、画面が狭い・低いデバイス) */
@media (max-height: 700px), (max-width: 360px) {
  .checkin-layout {
    padding: 0.5rem;
  }
  
  .checkin-card {
    padding: 1.25rem 1rem;
    border-radius: 18px;
  }
  
  .checkin-layout h1 {
    font-size: 1.9rem;
    margin-bottom: 0.25rem;
  }
  
  .checkin-instructions {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
  }
  
  .target-info {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    margin-bottom: 1rem;
    border-radius: 10px;
  }
  
  .huge-btn-container {
    margin-bottom: 1rem;
  }
  
  .huge-btn {
    font-size: 1.45rem;
    box-shadow: 0 0.34em 0 #047857, 
                0 0.43em 0.64em rgba(6, 78, 59, 0.25),
                0 0 0 0.34em rgba(16, 185, 129, 0.08),
                0 0 0 0.68em rgba(16, 185, 129, 0.03);
  }
  
  .huge-btn:hover {
    transform: translateY(-0.04em);
    box-shadow: 0 0.38em 0 #047857, 
                0 0.5em 0.85em rgba(6, 78, 59, 0.3),
                0 0 0 0.42em rgba(16, 185, 129, 0.12),
                0 0 0 0.84em rgba(16, 185, 129, 0.05);
  }
  
  .huge-btn:active {
    transform: translateY(0.25em);
    box-shadow: 0 0.08em 0 #047857, 
                0 0.17em 0.34em rgba(6, 78, 59, 0.2),
                0 0 0 0.34em rgba(16, 185, 129, 0.08),
                0 0 0 0.68em rgba(16, 185, 129, 0.03);
  }
  
  .huge-btn .icon {
    font-size: 1.5em;
  }
  
  .success-checkmark {
    width: 65px;
    height: 65px;
    font-size: 2rem;
    padding: 10px;
    margin: 0 auto 1.25rem;
  }
  
  .success-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .success-text {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }
}

/* ==================================================
   メイン管理画面向けレスポンシブ最適化 (スマホ表示)
   ================================================== */
@media (max-width: 600px) {
  .container {
    padding: 1.25rem 0.75rem;
  }
  
  header {
    margin-bottom: 2rem;
  }
  
  header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }
  
  .subtitle {
    font-size: 0.95rem;
    line-height: 1.45;
  }
  
  .card {
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
  }
  
  .card h2 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
  }
  
  .status-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .status-badge {
    width: 100%;
    justify-content: center;
  }
  
  /* 操作ボタンの縦並び化 */
  .status-details-actions {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  
  .status-details-actions button {
    width: 100% !important;
    margin-top: 0 !important;
    font-size: 0.95rem !important;
    padding: 0.85rem !important;
  }
  
  /* コピーURL欄 */
  .copy-url-container {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  .copy-url-container input {
    width: 100% !important;
  }
  
  .copy-url-container button {
    width: 100% !important;
    padding: 0.75rem !important;
  }
  
  /* デモボタン */
  .demo-buttons {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .log-item-header {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }
  

}

/* ==================================================
   ログインユーザーヘッダー（ダッシュボード用）
   ================================================== */
.user-header {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(16, 185, 129, 0.1);
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(6, 78, 59, 0.02);
  display: inline-flex;
}

/* ボタン無効化状態のスタイル */
button:disabled {
  background: #d1d5db !important;
  color: #9ca3af !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* PC表示（幅600px超）のとき、.desktop-hide を非表示にする */
@media (min-width: 601px) {
  .desktop-hide {
    display: none !important;
  }
}

/* ==================================================
   送信済み通知・安否履歴カードの特別仕様 (ダークグレーテーマ)
   ================================================== */
#global-log-card {
  background: rgba(17, 24, 39, 0.95) !important; /* 濃いチャコールグレー (gray-900系) */
  border: 1px solid rgba(16, 185, 129, 0.25) !important; /* 見守りの緑を少し効かせたボーダー */
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.4), 
              0 0 15px rgba(16, 185, 129, 0.05) !important;
}

/* タイトルとアイコン */
#global-log-card h2 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ログを表示するボックス */
#global-log-card .log-list {
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* 個々のログ項目 */
#global-log-card .log-item {
  background: rgba(31, 41, 55, 0.7) !important; /* 少し明るいグレー (gray-800系) */
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* ログヘッダー (宛先、タイムスタンプ) */
#global-log-card .log-item-header {
  color: #9ca3af !important; /* 薄いグレー (gray-400系) */
}

/* ログメッセージ本文 */
#global-log-card .log-msg {
  color: #f3f4f6 !important; /* 明るいグレー (gray-100系) */
}

/* ログ内の対象者名ハイライト */
#global-log-card .log-msg span {
  color: #34d399 !important; /* 見やすくて特別感のあるミントグリーン */
}

/* ログメッセージ内のURLリンク */
#global-log-card .log-url {
  background: rgba(52, 211, 153, 0.1) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.25) !important;
}

#global-log-card .log-url:hover {
  background: #34d399 !important;
  color: #111827 !important;
  box-shadow: 0 4px 12px rgba(52, 211, 153, 0.3) !important;
}

/* 空ログ時のプレースホルダー */
#global-log-card .log-empty-msg {
  color: #6b7280 !important; /* 中間グレー */
}

/* 区切り線 */
#global-log-card div[style*="border-top"] {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}



