/* ══════════════════════════════════════════
   common.css — リセット・CSS変数・ナビ・フッター・レスポンシブ基盤
   全ページ共通で読み込む
   ══════════════════════════════════════════ */

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

/* CSS Variables (Dark Theme) */
:root {
  --ink:    #1a1a2e;
  --deep:   #16213e;
  --mid:    #0f3460;
  --accent: #e94560;
  --gold:   #f5a623;
  --green:  #4cde8a;
  --blue:   #7eb8f7;
  --muted:  #8892a4;
  --white:  #ffffff;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  font-feature-settings: 'palt';
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
body > nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(26,26,46,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.logo {
  font-size: 1.1rem; font-weight: 800; letter-spacing: 0.04em;
  text-decoration: none; color: var(--white);
}
.logo em { font-style: normal; color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-link {
  color: rgba(255,255,255,0.55); text-decoration: none;
  font-size: 0.85rem; transition: color 0.2s;
}
.nav-link:hover { color: var(--white); }
.nav-cta {
  background: var(--accent); color: var(--white);
  padding: 8px 22px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 700; text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── TAX NOTATION ── */
.tax { font-size: 0.72em; opacity: 0.5; font-weight: 400; margin-left: 2px; }

/* ── FOOTER ── */
footer {
  background: #0d0d1a; padding: 36px 24px;
  text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.22);
}
footer a { color: rgba(255,255,255,0.38); text-decoration: none; }

/* ── HAMBURGER TOGGLE (モバイル) ── */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: rgba(255,255,255,0.7); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s; margin: 4px 0;
}
.nav-toggle.open span:first-child { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:last-child { transform: translateY(-6px) rotate(-45deg); }

/* ── RESPONSIVE BASE ── */
@media (max-width: 620px) {
  body > nav { padding: 12px 16px; }
  .nav-toggle { display: flex; flex-direction: column; z-index: 101; }
  .nav-right {
    position: fixed; top: 50px; left: 0; right: 0;
    background: rgba(26,26,46,0.98); backdrop-filter: blur(14px);
    flex-direction: column; gap: 0; padding: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-right.open { max-height: 300px; }
  .nav-right .nav-link {
    display: block; padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem; color: rgba(255,255,255,0.7);
  }
  .nav-right .nav-cta {
    display: block; margin: 16px 24px; text-align: center;
  }
}
