:root {
  --primary: #0F6E56;
  --primary-light: #15A572;
  --primary-bg: #E1F5EE;
  --primary-dark: #0A4F3E;
  --bg: #f4f7f6;
  --surface: #ffffff;
  --border: #d0e8df;
  --text: #1a2e27;
  --text-muted: #5a7a6e;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(15, 110, 86, 0.08);
}

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

body {
  font-family: 'Hiragino Sans', 'Meiryo', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ───── グローバルヘッダー ───── */
.global-header {
  background: var(--primary);
  color: #fff;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.global-header .logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tool-nav {
  display: flex;
  gap: 4px;
}

.tool-nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.tool-nav a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.tool-nav a.active {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-signout {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-signout:hover {
  background: rgba(255,255,255,0.28);
}

/* ───── トースト ───── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.toast-warning { background: #c0392b; }
.toast.toast-success { background: var(--primary); }

/* ───── ボタン共通 ───── */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover { background: var(--primary-light); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 640px) {
  .tool-nav a { padding: 6px 10px; font-size: 12px; }
  .global-header { padding: 0 16px; }
  .logo { display: none; }
}
