/* 共通カラー・スタイル */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:root {
  --bg: #0e0d12;
  --bg-soft: #1a1820;
  --bg-card: #22202a;
  --gold: #d4a455;
  --gold-bright: #f4c075;
  --gold-dim: #8a6d3a;
  --line: #2e2b38;
  --ink: #ece8e0;
  --muted: #9a9590;
  --accent: #c8443c;
  --green: #5ab48f;
}
body {
  font-family: 'Hiragino Sans', 'Meiryo', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(212,164,85,0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(200,68,60,0.04) 0%, transparent 40%);
}
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

.app-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, #1a0f08 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-header .left { display: flex; align-items: center; gap: 8px; }
.app-logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #1a1410; font-size: 14px;
}
.app-name { font-size: 14px; font-weight: 700; }
.app-header .clock {
  font-size: 12px; color: var(--muted); text-align: right;
}
.app-header .clock .big {
  font-size: 18px; color: var(--gold); font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1410;
  border: none;
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 800;
  font-size: 15px;
  width: 100%;
}
.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
}
.btn-danger {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
}

.input {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  width: 100%;
}

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  animation: toastIn 0.3s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.success { color: var(--green); border-color: var(--green); }
.toast.error { color: var(--accent); border-color: var(--accent); }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.hidden { display: none !important; }
