/* ============================================
   Factoring News - Vault Precision Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

:root {
  --navy-900: #060e1a;
  --navy-800: #0a1628;
  --navy-700: #0f2038;
  --gold-500: #c9a84c;
  --gold-400: #d4b96a;
  --gold-300: #e0ca88;
  --text-primary: #e8ecf2;
  --text-secondary: #9aabb8;
  --text-muted: #6a7f90;
  --bg-dark: #060e1a;
  --bg-card: #0f1e30;
  --border-subtle: rgba(201,168,76,0.15);
  --border-gold: rgba(201,168,76,0.4);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Outfit', sans-serif;
  font-size: 16px; line-height: 1.8;
  color: var(--text-primary); background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-400); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-300); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.main-nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(6,14,26,0.9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-subtle); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; flex-direction: column; }
.logo-text { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--gold-500); }
.logo-sub { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 2px; }
.nav-menu { display: flex; list-style: none; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav-menu li a { display: block; padding: 8px 12px; font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); border-radius: 6px; white-space: nowrap; }
.nav-menu li a:hover { color: var(--gold-400); background: rgba(201,168,76,0.08); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold-500); transition: var(--transition); border-radius: 2px; }

/* News Hero */
.news-hero { margin-top: 72px; padding: 60px 0; background: var(--navy-700); border-bottom: 1px solid var(--border-subtle); text-align: center; }
.news-hero h1 { font-family: 'Outfit', 'Noto Sans JP', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--text-primary); }

/* News List */
.news-content { padding: 60px 0; }
.news-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.news-item, .news-list li {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 24px; transition: var(--transition);
}
.news-item:hover, .news-list li:hover { border-color: var(--border-gold); }
.news-item h2, .news-item h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text-primary); }
.news-item h2 a, .news-item h3 a { color: var(--text-primary); }
.news-item h2 a:hover, .news-item h3 a:hover { color: var(--gold-400); }
.news-item p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; }
.news-item small, .news-meta { font-size: 0.8rem; color: var(--text-muted); }

/* News Detail */
.news-detail { max-width: 800px; margin: 0 auto; padding: 40px 24px; }
.news-detail h1 { margin-top: 72px; padding-top: 40px; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--text-primary); margin-bottom: 12px; }
.news-detail h2 { border-left: 4px solid var(--gold-500); padding-left: 16px; margin: 2rem 0 1rem; }
.news-detail p { color: var(--text-secondary); font-size: 0.95rem; }

/* Glossary link */
.glossary-link { color: var(--gold-400); border-bottom: 1px dotted var(--gold-400); }

/* Footer */
footer { background: var(--navy-900); border-top: 1px solid var(--border-subtle); padding: 60px 0 30px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-section h3 { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700; color: var(--gold-400); margin-bottom: 16px; }
.footer-section p { font-size: 0.85rem; color: var(--text-muted); }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 8px; }
.footer-section ul li a { font-size: 0.85rem; color: var(--text-muted); }
.footer-section ul li a:hover { color: var(--gold-400); }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--navy-800); flex-direction: column; padding: 80px 24px 40px; transition: var(--transition); border-left: 1px solid var(--border-subtle); overflow-y: auto; gap: 0; }
  .nav-menu.active { right: 0; }
  .nav-menu li a { padding: 12px 16px; font-size: 0.92rem; }
  .footer-content { grid-template-columns: 1fr; }
}
