:root {
  --bg-deep: #000000;
  --bg-glass: rgba(20, 20, 20, 0.45);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-main: #fcfcfc;
  --text-muted: #888888;
  --accent-aqua: #22d3ee;
  --accent-emerald: #10b981;
  --accent-purple: #c084fc;
  
  /* Fluid & Spring Easing */
  --ease-fluid: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.15, 0.64, 1);
}

body { 
  margin: 0; 
  background-color: var(--bg-deep);
  color: var(--text-main);
  -webkit-tap-highlight-color: transparent; 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  letter-spacing: 0.02em;
}

.pb-safe { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }

/* タブアニメーション */
.tab-content { display: none; opacity: 0; }
.tab-content.active { 
  display: block; 
  animation: contentFadeIn 0.5s var(--ease-spring) forwards; 
}

@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Tap-Fluid (沈み込みエフェクト) */
.tap-fluid {
  transition: transform 0.4s var(--ease-spring), opacity 0.3s ease;
  cursor: pointer;
}
.tap-fluid:active {
  transform: scale(0.93);
  opacity: 0.7;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

/* ガラスモーダル (Glassmorphism) */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Zen Ring タイマー (JSで直接背景を更新しバグを回避) */
.zen-ring {
  border-radius: 50%;
  position: relative;
  background: conic-gradient(var(--accent-aqua) 0%, rgba(255,255,255,0.05) 0%);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.1);
}
.zen-ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  background-color: #050505;
  border-radius: 50%;
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.8);
}

/* カスタムチェックボックス */
.task-checkbox {
  appearance: none; width: 18px; height: 18px;
  border: 1px solid #444; border-radius: 4px;
  background: rgba(255,255,255,0.02);
  transition: all 0.2s; position: relative;
}
.task-checkbox:checked {
  background: var(--text-main); border-color: var(--text-main);
}
.task-checkbox:checked::after {
  content: ''; position: absolute; top: 3px; left: 6px;
  width: 4px; height: 8px; border: solid #000; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.nav-btn { color: #555; transition: all 0.3s var(--ease-fluid); }
.nav-btn.active { color: var(--text-main); transform: translateY(-2px); }

/* 東証風ティッカー */
.ticker-wrapper {
  display: flex; overflow: hidden; white-space: nowrap; width: 100%;
  position: relative; align-items: center;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.ticker-content { display: flex; animation: ticker-scroll 30s linear infinite; }
.ticker-content:active { animation-play-state: paused; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

::-webkit-scrollbar { display: none; }
