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

:root {
  --text:        #1d1d1f;
  --text-sub:    #6e6e73;
  --text-on-dark: rgba(255,255,255,0.85);
  --sub-on-dark:  rgba(255,255,255,0.5);
  --bg:          #ffffff;
  --bg-alt:      #f5f5f7;
  --dark:        #000000;
  --dark2:       #161617;
  --border:      rgba(0,0,0,0.1);
  --border-dark: rgba(255,255,255,0.1);
  --accent:      #2255a4;
  --font: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic UI', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── HEADER ─────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 56px;
  background: rgba(22, 22, 23, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-dark);
  transition: background 0.3s;
}

header.light {
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  transition: color 0.3s;
}

header.light .logo { color: var(--text); }

nav {
  display: flex;
  gap: 2px;
}

nav a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--sub-on-dark);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s;
}

nav a:hover { color: rgba(255,255,255,0.95); background: rgba(255,255,255,0.08); }

header.light nav a { color: var(--text-sub); }
header.light nav a:hover { color: var(--text); background: rgba(0,0,0,0.05); }

/* ── HERO ────────────────────────────────────── */
.hero {
  min-height: 100svh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 28px 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(34, 85, 164, 0.18), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  letter-spacing: 0.25em;
  color: var(--sub-on-dark);
  font-weight: 400;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease) 0.1s forwards;
}

.hero-title {
  font-size: clamp(3.5rem, 13vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s var(--ease) 0.25s forwards;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 52px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease) 0.4s forwards;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.55s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover { opacity: 0.85; transform: scale(0.98); }

.btn-primary { background: #fff; color: #000; }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.28);
}

.btn-ghost:hover { background: rgba(255,255,255,0.06); }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.9s forwards;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--sub-on-dark);
  font-weight: 400;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── STATS BAR ───────────────────────────────── */
.stats {
  background: var(--dark2);
  padding: 48px 28px;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.stats-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-dark);
}

.stat-item {
  padding: 24px 40px;
  background: var(--dark2);
  text-align: center;
}

.stat-num {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
}

.stat-unit {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  vertical-align: super;
  font-weight: 400;
  font-size: 0.9rem;
  margin-left: 2px;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.12em;
  margin-top: 8px;
}

/* ── FEATURES ────────────────────────────────── */
.features {
  background: var(--bg-alt);
  padding: 100px 28px;
}

.section-inner { max-width: 1080px; margin: 0 auto; }

.section-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg);
  border-radius: 18px;
  padding: 36px 28px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #5588cc);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover::before { opacity: 1; }

.feature-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ── INFO ────────────────────────────────────── */
.info {
  background: var(--dark);
  padding: 100px 28px;
  color: #fff;
}

.info .section-eyebrow { color: rgba(255,255,255,0.45); }
.info .section-title { color: #fff; }

.info-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.info-table tr:last-child { border-bottom: none; }

.info-table th,
.info-table td {
  padding: 18px 0;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 38%;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

.info-table td {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  line-height: 1.7;
}

.info-contact {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 36px 32px;
}

.info-contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.info-tel {
  display: block;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  transition: opacity 0.2s;
}

.info-tel:hover { opacity: 0.7; }

.info-hours {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
  margin-bottom: 28px;
}

.btn-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-tel:hover { opacity: 0.85; transform: scale(0.98); }

/* ── ACCESS ──────────────────────────────────── */
.access {
  background: var(--bg-alt);
  padding: 100px 28px;
}

.access-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.access-items { display: flex; flex-direction: column; gap: 2px; }

.access-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.access-item:last-child { border-bottom: none; }

.access-item-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.access-item-value {
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.7;
}

.access-item-value a {
  color: inherit;
  text-decoration: none;
}

.access-item-value a:hover { text-decoration: underline; }

.map-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.12);
  aspect-ratio: 16/10;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* ── HISTORY CTA (index) ─────────────────────── */
.history-cta {
  background: var(--bg);
  padding: 80px 28px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.history-cta p {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}

.history-cta h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
}

.btn-dark {
  background: var(--dark);
  color: #fff;
  border-radius: 980px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-dark:hover { opacity: 0.8; transform: scale(0.98); }

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--border-dark);
  padding: 48px 28px 36px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 24px;
}

.footer-brand {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
}

.footer-brand small {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.75); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ─────────────────────────────────────────────
   HISTORY PAGE
───────────────────────────────────────────── */
.history-hero {
  min-height: 60svh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 28px 80px;
  position: relative;
  overflow: hidden;
}

.history-hero .hero-glow {
  background: radial-gradient(ellipse at center, rgba(34,85,164,0.14), transparent 65%);
}

.history-hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--sub-on-dark);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.1s forwards;
}

.history-hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.25s forwards;
}

.history-hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}

/* Timeline */
.timeline-section {
  background: var(--bg);
  padding: 100px 28px;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-top: 16px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 120px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 5%, var(--border) 95%, transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 40px;
  margin-bottom: 72px;
  position: relative;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-left {
  text-align: right;
  padding-right: 40px;
  padding-top: 4px;
  position: relative;
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  display: block;
}

.timeline-era {
  font-size: 0.72rem;
  color: var(--text-sub);
  letter-spacing: 0.06em;
  margin-top: 4px;
  display: block;
}

.timeline-dot {
  position: absolute;
  right: -6px;
  top: 10px;
  width: 11px;
  height: 11px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-right { padding-top: 4px; }

.timeline-month {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.timeline-right h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.timeline-right p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.9;
}

.timeline-tag {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--text-sub);
  font-weight: 600;
  margin-top: 12px;
  letter-spacing: 0.05em;
}

.timeline-tag.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── REVEAL ANIMATIONS ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.15s; }
.reveal-delay-5 { transition-delay: 0.25s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .info-layout { grid-template-columns: 1fr; }
  .access-layout { grid-template-columns: 1fr; }

  .stats-inner { grid-template-columns: 1fr; gap: 0; }
  .stat-item { border-bottom: 1px solid var(--border-dark); }
  .stat-item:last-child { border-bottom: none; }
}

@media (max-width: 680px) {
  .timeline::before { left: 80px; }
  .timeline-item { grid-template-columns: 80px 1fr; gap: 0 24px; }
  .timeline-left { padding-right: 24px; }
  .timeline-year { font-size: 1.1rem; }

  .footer-top { flex-direction: column; gap: 20px; }
  .footer-links { gap: 16px; }

  nav a { font-size: 0.75rem; padding: 6px 8px; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: -0.02em; }

  .timeline::before { display: none; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .timeline-left { text-align: left; padding-right: 0; }
  .timeline-dot { display: none; }
  .timeline-year { font-size: 2rem; color: var(--accent); }
}
