:root {
  --ink: #202020;
  --muted: #6c6c6c;
  --line: #e9e9e9;
  --paper: #ffffff;
  --content-width: 760px;
  --nav-width: 830px;
  --focus: #336699;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 999;
  background: #fff;
  color: #111;
  padding: .75rem 1rem;
  border: 2px solid #111;
}
.skip-link:focus { top: 1rem; }

.hero {
  position: relative;
  min-height: 650px;
  background-image: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.22) 100%), url("miraikan.jpg");
  background-position: center 45%;
  background-size: cover;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.06), transparent 45%, rgba(255,255,255,.02));
  pointer-events: none;
}
.hero-inner {
  position: absolute;
  left: max(1.5rem, calc((100% - var(--nav-width)) / 2));
  right: 1.5rem;
  bottom: 46px;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.site-title {
  margin: 0;
  font-size: clamp(2rem, 3.05vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: .055em;
  font-weight: 800;
  text-transform: uppercase;
}
.site-tagline {
  margin: .35rem 0 0;
  font-size: 1rem;
  font-weight: 400;
}

.nav-shell {
  position: relative;
  z-index: 10;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(var(--nav-width), calc(100% - 3rem));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: .65rem;
  margin-left: -.65rem;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.primary-nav {
  display: flex;
  gap: clamp(1.5rem, 3.2vw, 2.6rem);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  display: inline-block;
  padding: 1.4rem 0;
  text-decoration: none;
  font-size: .91rem;
  font-weight: 700;
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav a:focus-visible { color: #666; }
.primary-nav a[aria-current="page"] { color: #777; }
.down-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  text-decoration: none;
  color: #777;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}
.down-link:hover { color: #111; }

main {
  width: min(var(--content-width), calc(100% - 3rem));
  margin: 0 auto;
  padding: 92px 0 110px;
}
.page-kicker {
  margin: 0 0 62px;
  font-size: .98rem;
  letter-spacing: .13em;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}
.lead-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.lead-grid p:first-child { margin-top: 0; }
.portrait {
  width: 300px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.content-copy p { margin: 0 0 1.3rem; }
.content-copy h2 {
  margin: 3rem 0 1rem;
  font-size: 1.3rem;
  letter-spacing: .04em;
}
.content-copy h3 {
  margin: 2rem 0 .7rem;
  font-size: 1.05rem;
}
.content-copy ul { padding-left: 1.15rem; }
.content-copy li { margin: .45rem 0; }

.section-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  border: 1px solid var(--line);
  padding: 24px;
  min-height: 190px;
}
.card h2 {
  margin: 0 0 .75rem;
  font-size: 1.05rem;
}
.card p { margin: 0 0 1.25rem; color: #444; }
.card a { font-weight: 700; }

.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.contact-panel {
  border-top: 3px solid #222;
  padding-top: 18px;
}
.contact-panel h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.contact-panel address { font-style: normal; }

.notice {
  padding: 1rem 1.2rem;
  border-left: 3px solid #222;
  background: #f7f7f7;
}
.language-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.language-link {
  border: 1px solid var(--line);
  padding: 28px;
  text-decoration: none;
}
.language-link:hover,
.language-link:focus-visible { border-color: #222; }
.language-link strong { display: block; font-size: 1.15rem; margin-bottom: .4rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 1.5rem;
  color: #666;
  text-align: center;
  font-size: .86rem;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .hero { min-height: 520px; background-position: center top; }
  .hero-inner { left: 1.5rem; bottom: 32px; }
  .nav-inner { width: calc(100% - 2rem); min-height: 64px; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .5rem 1rem 1rem;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { display: block; padding: .8rem .5rem; }
  .down-link { margin-left: auto; }
  main { width: min(680px, calc(100% - 2rem)); padding-top: 68px; }
  .page-kicker { margin-bottom: 42px; }
  .lead-grid { grid-template-columns: 1fr; }
  .portrait { width: min(100%, 420px); }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { min-height: 390px; }
  .site-title { font-size: 1.55rem; letter-spacing: .035em; }
  .site-tagline { font-size: .9rem; }
  .contact-block,
  .language-list { grid-template-columns: 1fr; }
  main { padding-bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
