:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #17212b;
  --muted: #687482;
  --line: #dfe3e8;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --on-accent: #ffffff;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11151a;
  --surface: #171c22;
  --text: #f1f3f5;
  --muted: #a8b1ba;
  --line: #303740;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-soft: #18283d;
  --on-accent: #11151a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.home-header,
.home-hero,
.home-maps,
.home-ad,
.home-footer {
  width: min(920px, calc(100% - 48px));
  margin-inline: auto;
}

.home-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
}
.home-brand img { object-fit: contain; }
html[data-theme="dark"] .home-brand img { filter: invert(1); }
.home-header__actions { display: flex; align-items: center; gap: 18px; }
.home-header__map { color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; }
.home-header__map:hover { color: var(--accent); }
.home-header__map span { margin-left: 5px; }

.home-theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.home-theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .home-theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .home-theme-toggle .icon-sun { display: block; }

.home-hero {
  position: relative;
  isolation: isolate;
  padding: 104px 0 96px;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0 50%;
  z-index: -1;
  width: 100vw;
  background: url("/img/osaka-map-hero.webp") center / cover no-repeat;
  opacity: .72;
  transform: translateX(-50%);
}
html[data-theme="dark"] .home-hero::before { opacity: .18; filter: saturate(.75); }
.home-eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}
.home-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.14;
  letter-spacing: -.055em;
}
.home-hero h1 .home-hero__by {
  margin-left: .12em;
  font-size: .45em;
  letter-spacing: .015em;
}
.home-hero__lead {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
.home-primary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 32px;
  padding: 0 20px 0 24px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .16s ease;
}
.home-primary:hover { background: var(--accent-hover); }

.home-maps { padding-bottom: 56px; }
.home-ad { padding-bottom: 96px; }
.home-ad__label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  letter-spacing: .08em;
}
.home-ad__unit { width: 100%; text-align: center; }
.home-section-head { margin-bottom: 20px; }
.home-section-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.025em;
}
.home-map-list { display: block; }
.home-map-group + .home-map-group { margin-top: 36px; }
.home-map-group__title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.015em;
}
.home-map-group__list { border-top: 1px solid var(--line); }
.home-map-row {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding .16s ease, background .16s ease;
}
.home-map-row:hover {
  padding-right: 14px;
  padding-left: 14px;
  background: var(--accent-soft);
}
.home-map-row__body { min-width: 0; }
.home-map-row__body strong { display: block; font-size: 16px; letter-spacing: -.015em; }
.home-map-row__body span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.home-map-row__arrow { color: var(--accent); font-size: 17px; transition: transform .16s ease; }
.home-map-row:hover .home-map-row__arrow { transform: translateX(3px); }

.home-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 32px;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.home-footer__operator { display: flex; align-items: center; gap: 8px; }
.home-footer__operator a { color: var(--text); font-weight: 600; text-decoration: none; }
.home-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 18px; }
.home-footer nav a { text-decoration: none; }
.home-footer small { grid-column: 1 / -1; }

@media (max-width: 600px) {
  .home-header,
  .home-hero,
  .home-maps,
  .home-ad,
  .home-footer { width: calc(100% - 32px); }
  .home-header { height: 64px; }
  .home-header__map { display: none; }
  .home-hero { padding: 72px 0 68px; }
  .home-hero::before { background-position: 66% center; opacity: .48; }
  html[data-theme="dark"] .home-hero::before { opacity: .15; }
  .home-hero h1 { font-size: clamp(31px, 9.5vw, 42px); white-space: nowrap; }
  .home-hero__lead { font-size: 14px; }
  .home-hero__lead br { display: none; }
  .home-maps { padding-bottom: 48px; }
  .home-ad { padding-bottom: 64px; }
  .home-map-row { min-height: 88px; padding: 18px 0; }
  .home-map-row:hover { padding-right: 6px; padding-left: 6px; }
  .home-footer { grid-template-columns: 1fr; padding-bottom: 70px; }
  .home-footer nav { justify-content: flex-start; }
  .home-footer small { grid-column: auto; }
}

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