/* ═══════════════════════════════════════
   Nurse Study — style.css
   nurse-exam.com
═══════════════════════════════════════ */

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

:root {
  --rose:         #C9A0A0;
  --rose-light:   #F5EDED;
  --rose-mid:     #DEC0C0;
  --rose-dark:    #9B6E6E;
  --rose-deep:    #7A5252;
  --ink:          #2D2A27;
  --ink-mid:      #6B6460;
  --ink-light:    #A09A96;
  --ink-xlight:   #C8C3BE;
  --cream:        #FAF9F7;
  --cream-mid:    #F3F0EB;
  --cream-dark:   #EAE5DF;
  --border:       #E5DFD8;
  --white:        #FFFFFF;
  --correct:      #5A9A78;
  --correct-bg:   #EEF7F2;
  --wrong:        #B85A54;
  --wrong-bg:     #FAF0EF;
  --font-serif:   'Noto Serif JP', serif;
  --font-sans:    'Noto Sans JP', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,247,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 19px; font-weight: 400;
  color: var(--ink); letter-spacing: 0.8px;
  text-decoration: none;
  display: flex; align-items: center; gap: 9px;
}
.logo-mark {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rose); flex-shrink: 0;
}
.nav-center { display: flex; gap: 2px; }
.nav-tab {
  font-size: 13px; color: var(--ink-mid);
  padding: 6px 14px; border-radius: 6px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); letter-spacing: 0.2px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none; display: inline-block;
}
.nav-tab:hover { color: var(--ink); background: var(--cream-mid); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-login {
  font-size: 13px; color: var(--ink-mid);
  background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); padding: 6px 12px;
}
.nav-premium {
  font-size: 12px; letter-spacing: 0.4px;
  background: var(--rose); color: var(--white);
  padding: 7px 20px; border-radius: 20px;
  border: none; cursor: pointer;
  font-family: var(--font-sans); font-weight: 500;
  transition: background 0.15s;
}
.nav-premium:hover { background: var(--rose-dark); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--ink); color: var(--cream);
  border: none; padding: 11px 24px; border-radius: 30px;
  font-size: 13px; font-family: var(--font-sans);
  cursor: pointer; letter-spacing: 0.3px;
  transition: opacity 0.15s; text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.82; }
.btn-ghost {
  background: none; color: var(--ink-mid);
  border: 1px solid var(--border); padding: 11px 20px;
  border-radius: 30px; font-size: 13px;
  font-family: var(--font-sans); cursor: pointer;
  letter-spacing: 0.3px; text-decoration: none;
  display: inline-block;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose-dark); }

/* ── SECTION SHELL ── */
.section { padding: 64px 40px; }
.section + .section { border-top: 1px solid var(--border); }
.sec-eyebrow {
  font-size: 11px; color: var(--rose-dark);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.sec-eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--rose); }
.sec-h2 {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 400; color: var(--ink);
  letter-spacing: 0.3px; margin-bottom: 6px;
}
.sec-sub { font-size: 13px; color: var(--ink-light); line-height: 1.7; margin-bottom: 36px; }

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 400;
  color: rgba(250,249,247,0.55); letter-spacing: 0.8px;
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.footer-logo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-link {
  font-size: 12px; color: rgba(250,249,247,0.3);
  text-decoration: none; cursor: pointer;
  transition: color 0.15s;
}
.footer-link:hover { color: rgba(250,249,247,0.65); }
.footer-copy { font-size: 12px; color: rgba(250,249,247,0.22); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--cream);
  padding: 10px 22px; border-radius: 20px;
  font-size: 13px; letter-spacing: 0.3px;
  transition: transform 0.3s ease;
  z-index: 300; white-space: nowrap; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-center { display: none; }
  .section { padding: 48px 20px; }
  .footer { padding: 28px 20px; flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
