/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0ea5e9;
  --primary-light: #e0f2fe;
  --primary-dark: #0284c7;
  --accent: #f97316;
  --accent-light: #fff7ed;
  --accent2: #2e86c1;
  --ink: #1e293b;
  --paper: #ffffff;
  --muted: #94a3b8;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --hero-bg: #f0f9ff;
  --success: #10b981;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ── HEADER ── */
header {
  background: var(--paper);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.logo span { color: var(--primary); }

.header-nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-login {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all 0.2s;
}

.btn-login:hover { border-color: var(--primary); color: var(--primary); }

.btn-signup {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 0.4rem 1.2rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-signup:hover { background: var(--primary-dark); }

/* ── HERO ── */
.hero {
  background: var(--hero-bg);
  color: var(--ink);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%);
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-weight: 300;
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.cta-lead {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.cta-lead em {
  font-style: normal;
  font-weight: 900;
  background: linear-gradient(transparent 60%, rgba(14,165,233,0.15) 60%);
}

.cta-arrow {
  animation: bounce 1.5s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-google-hero {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--primary);
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 16px rgba(14,165,233,0.2);
  text-decoration: none;
  white-space: nowrap;
}

.btn-google-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(14,165,233,0.3);
  background: var(--primary-light);
  color: var(--ink);
}

.cta-email-link {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta-email-link:hover {
  color: var(--primary);
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-google {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-google:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-color: var(--muted); }

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* ── NOTIFICATION PREVIEW (Hero) ── */
.notification-preview {
  max-width: 420px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.notif-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  animation: slideIn 0.5s ease both;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.notif-card:nth-child(2) { animation-delay: 0.15s; }
.notif-card:nth-child(3) { animation-delay: 0.3s; }

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

.notif-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.notif-icon.move { background: var(--accent-light); }
.notif-icon.anni { background: var(--primary-light); }

.notif-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.notif-text span {
  font-size: 0.75rem;
  color: var(--muted);
}

.notif-badge {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-move { background: #fff7ed; color: var(--accent); }
.badge-anni { background: var(--primary-light); color: var(--primary); }

/* ── CONTAINER ── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── SECTIONS ── */
.section {
  padding: 4rem 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ── FEATURES (LP) ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.feature-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── ADD FORM (Dashboard) ── */
.add-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 180px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}

.form-group.pref { flex: 0 0 130px; min-width: 0; }

.btn-add {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap;
  transition: all 0.2s;
  height: 42px;
}

.btn-add:hover { background: var(--primary-dark); }

/* ── SUGGEST DROPDOWN ── */
.suggest-wrap { position: relative; }

.suggest-list {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 6px 6px;
  z-index: 50;
  max-height: 180px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.suggest-item {
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: var(--primary-light); }

.suggest-item strong { display: block; font-weight: 700; }
.suggest-item span { font-size: 0.75rem; color: var(--muted); }

/* ── COMPANY LIST ── */
.company-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.company-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow 0.2s;
}

.company-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

.company-card.has-alert { border-left: 3px solid var(--accent); }
.company-card.has-anni { border-left: 3px solid var(--primary); }

.company-initial {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}

.company-info { flex: 1; min-width: 0; }

.company-name {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.alert-badge {
  font-size: 0.72rem;
  padding: 0.22rem 0.6rem;
  border-radius: 20px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.alert-move { background: #fff7ed; color: var(--accent); }
.alert-anni { background: var(--primary-light); color: var(--primary); }
.alert-none { background: #f1f5f9; color: var(--muted); font-weight: 400; }

.btn-remove {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}

.btn-remove:hover { color: var(--accent); }

/* ── NOTIFY SETTINGS ── */
.notify-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.notify-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.notify-option {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.notify-option.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.notify-icon { font-size: 1.3rem; }
.notify-label { font-size: 0.85rem; font-weight: 700; }
.notify-desc { font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; }

/* ── AUTH PAGES ── */
.auth-page {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-bg);
  padding: 2rem;
}

.auth-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.auth-card h2 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-card .auth-sub {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.auth-form { display: flex; flex-direction: column; gap: 1rem; }

.auth-form .form-group {
  min-width: 0;
}

.auth-form .form-group input {
  width: 100%;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--border);
}

.auth-card .btn-google {
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
}

.auth-card .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-footer a { font-weight: 700; }

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--primary);
}

/* ── DASHBOARD HEADER ── */
.header-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all 0.2s;
}

.btn-logout:hover { border-color: var(--accent); color: var(--accent); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  header { padding: 0 1rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .form-row { flex-direction: column; }
  .form-group.pref { flex: 1; }
  .company-card { flex-wrap: wrap; }
  .auth-card { padding: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
}
