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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== STARFIELD BACKGROUND ===== */
.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: starTwinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
}

.star-drift {
  animation: starTwinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s),
             starDrift var(--drift-dur, 60s) linear infinite var(--drift-delay, 0s);
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.3;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--color-text-main);
  text-align: center;
  margin-bottom: 2rem;
}

.section-title span {
  background: var(--color-gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(13, 2, 33, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 165, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-main {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--color-gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--color-text-sub);
  letter-spacing: 0.2em;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
}

.header-nav a {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  transition: color var(--transition-fast);
}

.header-nav a:hover {
  color: var(--color-accent);
}

/* ===== FOOTER ===== */
.site-footer {
  background: rgba(13, 2, 33, 0.9);
  border-top: 1px solid rgba(240, 165, 0, 0.1);
  padding: 2rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(184, 169, 217, 0.5);
}

/* ===== AD SLOTS ===== */
.ad-slot {
  width: 100%;
  min-height: 90px;
  background: rgba(30, 10, 60, 0.5);
  border: 1px dashed rgba(240, 165, 0, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(184, 169, 217, 0.3);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin: 1.5rem 0;
  overflow: hidden;
}

.ad-slot ins {
  display: block;
  width: 100%;
}
