*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #ffffff; --bg-alt: #eef1f6; --text: #111111; --text-sub: #555555;
  --white: #ffffff; --primary: #0f3d6e; --primary-dark: #0a1e3a; --accent: #d4582a;
  --sans: "Noto Sans JP", sans-serif; --serif: "Noto Serif JP", serif; --en: "Inter", sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); height: 96px; }
.header-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 0 0 4%; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark { height: 60px; width: auto; object-fit: contain; }
.logo-text .logo-name { font-size: 16px; font-weight: 700; letter-spacing: 0.08em; }
.logo-text .logo-sub { font-size: 10px; color: var(--text-sub); letter-spacing: 0.06em; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font-size: 14px; font-weight: 500; letter-spacing: 0.06em; transition: color 0.3s; position: relative; padding-bottom: 6px; }
.nav a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--accent); transition: width 0.3s, left 0.3s; }
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; left: 0; }
.nav a.current { color: var(--primary); }
.nav a.current::after { width: 100%; left: 0; }
.header-right { display: flex; align-items: stretch; }
.header-btn { display: flex; align-items: center; justify-content: center; flex-direction: column; height: 96px; width: 140px; font-size: 16px; font-weight: 500; color: var(--white); letter-spacing: 0.08em; transition: opacity 0.3s; }
.header-btn:hover { opacity: 0.85; }
.header-btn-tel { background: transparent; color: var(--text); width: auto; padding: 0 28px; }
.header-btn-tel .tel-num { font-family: var(--en); font-size: 20px; font-weight: 700; }
.header-btn-tel .tel-time { font-size: 10px; color: var(--text-sub); }
.header-btn-contact { background: var(--primary); width: 160px; text-align: center; }
.header-btn-contact .btn-en { font-family: var(--en); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; }
.header-btn-contact .btn-jp { font-size: 11px; margin-top: 2px; }

/* Museum hero - dark theme */
.museum-page-hero {
  margin-top: 96px; padding: 100px 0 80px;
  background-color: #0a1e3a;
  background-image:
    radial-gradient(circle 320px at 85% 10%, rgba(255,255,255,0.10) 0%, transparent 70%),
    radial-gradient(circle 260px at 8% 75%, rgba(255,255,255,0.08) 0%, transparent 70%),
    linear-gradient(135deg, #0a1e3a, #0f3d6e);
  color: var(--white); position: relative; overflow: hidden;
}
.museum-page-hero::before {
  content: ''; position: absolute; top: -80px; right: -40px;
  width: 400px; height: 400px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.08); pointer-events: none;
}
.museum-page-hero-inner { width: 90%; max-width: 1430px; margin: 0 auto; position: relative; z-index: 1; }
.museum-page-hero-en { font-family: var(--en); font-size: 80px; font-weight: 900; color: rgba(255,255,255,0.06); line-height: 1; margin-bottom: -12px; }
.museum-page-hero h1 { font-size: 36px; font-weight: 900; letter-spacing: 0.06em; }
.breadcrumb { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--white); }

/* ===== MUSEUM HERO IMAGE ===== */
.museum-visual { padding: 0; }
.museum-visual img { width: 100%; height: 500px; object-fit: cover; }

/* ===== MUSEUM INTRO ===== */
.museum-intro { padding: 100px 0; position: relative; overflow: hidden; }
.museum-intro-watermark {
  position: absolute; top: 20px; right: -20px;
  font-family: var(--en); font-size: 180px; font-weight: 900;
  color: rgba(15,61,110,0.04); line-height: 1; pointer-events: none;
}
.museum-intro-inner { width: 90%; max-width: 900px; margin: 0 auto; }
.museum-intro h2 {
  font-family: var(--serif); font-size: 32px; font-weight: 700;
  color: var(--primary); margin-bottom: 32px; line-height: 1.6;
}
.museum-intro p { font-size: 16px; line-height: 2.2; margin-bottom: 20px; }

/* ===== GALLERY ===== */
.museum-gallery { padding: 0 0 80px; }
.museum-gallery-inner { width: 90%; max-width: 1430px; margin: 0 auto; }
.museum-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.museum-gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ===== SPECS ===== */
.museum-specs-section {
  padding: 100px 0; color: var(--white); position: relative; overflow: hidden;
  background-color: #0a1e3a;
  background-image:
    radial-gradient(circle 200px at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 70%),
    linear-gradient(135deg, #0a1e3a, #0f3d6e);
}
.museum-specs-section::before {
  content: ''; position: absolute; bottom: -60px; left: -30px;
  width: 350px; height: 350px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.06); pointer-events: none;
}
.museum-specs-inner { width: 90%; max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.museum-specs-head { text-align: center; margin-bottom: 60px; }
.museum-specs-head h2 { font-size: 28px; font-weight: 900; }
.museum-specs-head p { font-size: 14px; color: var(--text-sub); margin-top: 8px; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid rgba(255,255,255,0.1); }
.spec-table th {
  font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.6);
  padding: 16px 24px 16px 0; vertical-align: top; white-space: nowrap; width: 160px; text-align: left;
}
.spec-table td { font-size: 15px; padding: 16px 0; color: rgba(255,255,255,0.9); }

.museum-numbers { display: flex; gap: 64px; justify-content: center; margin-top: 60px; padding-top: 48px; border-top: 1px solid rgba(255,255,255,0.12); }
.museum-num { text-align: center; }
.museum-num-val { font-family: var(--en); font-size: 56px; font-weight: 900; line-height: 1; }
.museum-num-label { font-size: 13px; color: var(--text-sub); margin-top: 8px; }

/* ===== HISTORY (Subaru) ===== */
.subaru-history { padding: 100px 0; background: var(--bg-alt); }
.subaru-history-inner { width: 90%; max-width: 900px; margin: 0 auto; }
.subaru-history-head { text-align: center; margin-bottom: 48px; }
.subaru-history-head .sec-en { font-family: var(--en); font-size: 80px; font-weight: 700; color: var(--primary); opacity: 0.08; line-height: 1; margin-bottom: -16px; }
.subaru-history-head h2 { font-size: 28px; font-weight: 900; }

.sh-timeline { position: relative; padding-left: 40px; }
.sh-timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: rgba(15,61,110,0.15); }
.sh-item { position: relative; padding-bottom: 36px; }
.sh-item:last-child { padding-bottom: 0; }
.sh-item::before {
  content: ''; position: absolute; left: -40px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--primary);
}
.sh-year { font-family: var(--en); font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.sh-text { font-size: 15px; line-height: 1.8; }

/* ===== MODELS ===== */
.museum-models { padding: 100px 0; }
.museum-models-inner { width: 90%; max-width: 1100px; margin: 0 auto; }
.museum-models-head { text-align: center; margin-bottom: 48px; }
.museum-models-head h2 { font-size: 28px; font-weight: 900; }
.museum-models-head p { font-size: 15px; color: var(--text-sub); margin-top: 8px; }

.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.model-card { background: var(--bg-alt); padding: 32px; }
.model-card h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.model-card .model-year { font-family: var(--en); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 8px; }
.model-card p { font-size: 14px; line-height: 1.8; color: var(--text-sub); }

/* ===== NOTE ===== */
.museum-note-section { padding: 60px 0; background: var(--bg-alt); text-align: center; }
.museum-note-section p { font-size: 15px; color: var(--text-sub); }

/* CTA */
.cta { padding: 120px 0; text-align: center; color: #ffffff; background-color: #0a1e3a; background-image: linear-gradient(135deg, rgba(10,30,58,0.92), rgba(15,61,110,0.88)), url('../img/cta-bg.jpg'); background-size: cover; background-position: center; }
.cta-inner { width: 90%; max-width: 1000px; margin: 0 auto; }
.cta-label { font-family: var(--en); font-size: 14px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.cta h2 { font-size: 36px; font-weight: 900; margin-bottom: 16px; letter-spacing: 0.06em; line-height: 1.5; }
.cta-sub { font-size: 16px; opacity: 0.6; margin-bottom: 48px; }
.cta-actions { display: flex; gap: 32px; justify-content: center; }
.cta-action-card { background: rgba(255,255,255,0.08); backdrop-filter: blur(8px); padding: 40px 48px; flex: 1; max-width: 420px; border: 1px solid rgba(255,255,255,0.1); transition: background 0.3s; }
.cta-action-card:hover { background: rgba(255,255,255,0.12); }
.cta-action-icon { margin-bottom: 16px; }
.cta-action-icon svg { width: 36px; height: 36px; }
.cta-action-title { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 16px; opacity: 0.7; }
.cta-tel { font-family: var(--en); font-size: 36px; font-weight: 900; letter-spacing: 0.04em; line-height: 1.3; }
.cta-time { font-size: 13px; opacity: 0.4; margin-top: 8px; }
.cta-btn { display: inline-block; margin-top: 8px; background: var(--accent); color: var(--white); font-size: 16px; font-weight: 700; padding: 20px 48px; letter-spacing: 0.06em; transition: opacity 0.3s; }
.cta-btn:hover { opacity: 0.85; }
.cta-btn-sub { font-size: 12px; margin-top: 8px; opacity: 0.5; }

.footer { background-color: #0a1e3a; background-image: linear-gradient(to top, #0f3d6e, #0a1e3a); color: rgba(255,255,255,0.85); padding: 80px 0 40px; }
.footer-inner { width: 90%; max-width: 1430px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.footer-logo .f-name { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer-logo .f-tel { font-family: var(--en); font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-logo p { font-size: 13px; line-height: 2; }
.footer-logo .f-meta { font-size: 11px; margin-top: 16px; line-height: 1.8; opacity: 0.8; }
.footer-nav h4 { font-size: 14px; color: var(--white); font-weight: 700; margin-bottom: 20px; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a { font-size: 13px; transition: color 0.3s; }
.footer-nav a:hover { color: var(--white); }
.footer-copy { width: 90%; max-width: 1430px; margin: 48px auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 11px; padding-top: 24px; color: rgba(255,255,255,0.9); border-top: 1px solid rgba(255,255,255,0.15); }
.footer-copy-links { display: flex; gap: 16px; }
.footer-copy-links a { color: rgba(255,255,255,0.7); transition: color 0.3s; }
.footer-copy-links a:hover { color: var(--white); }

.scroll-progress { position: fixed; top: 96px; left: 0; right: 0; height: 3px; z-index: 99; background: rgba(0,0,0,0.05); }
.scroll-progress-bar { height: 100%; width: 0%; background: var(--accent); transition: width 0.1s; }


/* ===== HAMBURGER + MOBILE NAV ===== */
.hamburger { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 20px; position: relative; padding: 0; z-index: 101; margin-right: 20px; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--text); position: absolute; left: 0; transition: all .3s; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98); z-index: 100;
  flex-direction: column; align-items: center; gap: 0;
  padding-top: 96px; overflow-y: auto;
}
.mobile-nav.active { display: flex; }
.mobile-nav-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; color: #333;
  font-size: 32px; cursor: pointer; line-height: 1; padding: 8px;
  z-index: 101; transition: color 0.2s;
}
.mobile-nav-close:hover { color: var(--accent); }
.mobile-nav-logo { padding: 24px 0 16px; width: 100%; display: flex; justify-content: center; margin-bottom: 16px; }
.mobile-nav-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  width: 90%; max-width: 400px; background: #ffffff;
  border-radius: 12px; overflow: hidden;
}
.mobile-nav-grid a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px 8px; background: #ffffff;
  color: #111; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; transition: background 0.2s;
}
.mobile-nav-grid a:hover { background: #eef1f6; }
.mobile-nav-grid a svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 1.5; }
.mobile-nav-grid a.mn-wide { grid-column: span 2; flex-direction: row; gap: 12px; padding: 18px; font-size: 13px; }
.mobile-nav-tel {
  margin-top: 28px; text-align: center;
}
.mobile-nav-tel a {
  font-family: var(--en); font-size: 26px; font-weight: 900; color: #0f3d6e;
  display: block; margin-bottom: 6px; letter-spacing: 0.02em;
}
.mobile-nav-tel .tel-hours { font-size: 11px; color: var(--text-sub); }
.mobile-nav-cta {
  margin-top: 20px; margin-bottom: 32px;
}
.mobile-nav-cta a {
  display: inline-block; background: var(--accent); color: var(--white);
  font-size: 14px; font-weight: 700; padding: 14px 44px; letter-spacing: 0.06em;
  border-radius: 4px; transition: opacity 0.3s;
}
.mobile-nav-cta a:hover { opacity: 0.85; }
@media (max-width: 1024px) { .nav { display: none; } .hamburger { display: block; } .museum-gallery-grid { grid-template-columns: repeat(2, 1fr); } .model-grid { grid-template-columns: repeat(2, 1fr); } .scroll-progress { top: 64px; } }
@media (max-width: 767px) {
  .header { height: 64px; } .mobile-nav { padding-top: 64px; } .header-btn { height: 64px; width: 100px; } .header-btn-tel { display: none; } .header-btn-contact { display: none; }
  .museum-page-hero { margin-top: 64px; padding: 60px 0 50px; } .museum-page-hero-en { font-size: 48px; } .museum-page-hero h1 { font-size: 26px; }
  .museum-visual img { height: 280px; }
  .museum-intro, .museum-specs-section, .subaru-history, .museum-models { padding: 60px 0; }
  .museum-intro h2 { font-size: 24px; }
  .museum-numbers { flex-wrap: wrap; gap: 32px; } .museum-num-val { font-size: 40px; }
  .subaru-history-head .sec-en { font-size: 48px; }
  .model-grid { grid-template-columns: 1fr; }
  .cta-tel { font-size: 32px; } .cta-actions { flex-direction: column; align-items: center; } .cta-action-card { max-width: 100%; width: 100%; padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .scroll-progress { top: 64px; }
}