/* ============================================
   D-AIC Web — Design System v3
   ============================================ */

:root {
  --c-bg:       #06060f;
  --c-surface:  #0c0c1a;
  --c-panel:    rgba(255,255,255,0.03);
  --c-border:   rgba(255,255,255,0.07);
  --c-red:      #e8183c;
  --c-red2:     #ff5533;
  --c-text:     #f2f2f8;
  --c-muted:    #5a5a72;
  --c-subtle:   rgba(242,242,248,0.06);

  --grad:       linear-gradient(135deg, var(--c-red), var(--c-red2));
  --glow:       0 0 40px rgba(232,24,60,0.25);

  --font-body:    'Noto Sans JP', sans-serif;
  --font-en:      'Oswald', sans-serif;

  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 5rem;
  --sp-xl: 9rem;
  --max-w: 1120px;
  --r: 8px;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Layout ────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: var(--sp-lg) 0; }
.section--dark { background: var(--c-surface); }

/* ── Section heading ───────────────────────── */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--c-border);
}
.sec-head__left {}
.sec-head__en {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: 0.3rem;
}
.sec-head__ja {
  font-family: var(--font-en);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}
.sec-head__more {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
  white-space: nowrap;
  padding-bottom: 2px;
}
.sec-head__more:hover { color: var(--c-red); }
.sec-head__more::after { content: '→'; }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2.25rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(232,24,60,0.3);
}
.btn--primary:hover { box-shadow: var(--glow); }
.btn--outline {
  border: 1px solid var(--c-border);
  color: var(--c-text);
  background: var(--c-panel);
}
.btn--outline:hover { border-color: var(--c-red); color: var(--c-red); }

/* ── Cards ─────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  overflow: hidden;
}
.card {
  background: var(--c-bg);
  overflow: hidden;
  transition: background 0.2s;
}
.card:hover { background: var(--c-panel); }
.card__body { padding: var(--sp-sm); }
.card__title { font-family: var(--font-en); font-size: 1.05rem; margin-bottom: 0.3rem; }

/* ── Page Header ───────────────────────────── */
.page-header {
  padding: var(--sp-lg) 0 var(--sp-md);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: attr(data-label);
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-en);
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 700;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.02em;
}
.page-header__en { font-family: var(--font-en); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--c-red); margin-bottom: 0.5rem; }
.page-header__ja { font-family: var(--font-en); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.1; }
.page-header__sub { color: var(--c-muted); font-size: 0.9rem; margin-top: 0.75rem; }

/* ── News list ─────────────────────────────── */
.news-list {}
.news-item {
  border-bottom: 1px solid var(--c-border);
}
.news-item__header {
  display: grid;
  grid-template-columns: 110px 80px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.1rem 0;
  cursor: pointer;
  transition: color 0.2s;
}
.news-item__header:hover { color: var(--c-red); }
.news-item__date { font-family: var(--font-en); font-size: 0.82rem; color: var(--c-muted); }
.news-item__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
  border: 1px solid rgba(232,24,60,0.35);
  color: var(--c-red);
  white-space: nowrap;
  text-align: center;
}
.news-item__title { font-size: 0.9rem; }
.news-item__arrow { font-size: 0.7rem; color: var(--c-muted); transition: transform 0.2s; }
.news-item--open .news-item__arrow { transform: rotate(180deg); }
.news-item__body {
  display: none;
  padding: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.85;
  max-width: 640px;
}
.news-item--open .news-item__body { display: block; }
@media (max-width: 600px) {
  .news-item__header { grid-template-columns: 1fr auto; }
  .news-item__date, .news-item__tag { display: none; }
}

/* ── Divider ───────────────────────────────── */
.divider { height: 1px; background: var(--c-border); }
.divider--glow { background: linear-gradient(90deg, transparent, var(--c-red), transparent); opacity: 0.4; }

/* ── Table ─────────────────────────────────── */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { padding: 0.85rem 0; font-size: 0.9rem; border-bottom: 1px solid var(--c-border); text-align: left; }
.info-table th { width: 7rem; color: var(--c-muted); font-size: 0.78rem; font-weight: 400; }

/* ── Utilities ─────────────────────────────── */
.mt-xs { margin-top: var(--sp-xs); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.text-center { text-align: center; }
.text-red { color: var(--c-red); }
.text-muted { color: var(--c-muted); }
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
