:root {
  color-scheme: light;
  --site-max: 1200px;
  --site-pad: clamp(1rem, 4vw, 4rem);
  --ink: #101114;
  --muted: #505762;
  --line: rgba(25, 30, 38, .12);
  --accent: #ffc928;
  --focus: #815d00;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #eef1f4; font-size: 1rem; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 251, 252, .92);
  backdrop-filter: blur(18px);
}
.site-header__inner {
  width: min(var(--site-max), calc(100% - 2 * var(--site-pad)));
  min-height: 68px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
}
.site-brand { font-size: 1.25rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; align-items: stretch; gap: .25rem; flex: 1; }
.site-nav a, .language-switch button {
  min-height: 44px;
  padding: .65rem .85rem;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #303641;
  text-decoration: none;
  cursor: pointer;
}
.site-nav a[aria-current="page"] { background: #fff1b8; color: #17130a; font-weight: 750; }
.language-switch { display: flex; align-items: center; gap: .1rem; white-space: nowrap; }
.language-switch button[aria-pressed="true"] { color: #15100a; font-weight: 800; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }

.page-shell { width: min(var(--site-max), calc(100% - 2 * var(--site-pad))); margin: auto; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; gap: .45rem; margin: 1rem 0; font-weight: 650; }
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(4rem, 9vw, 8rem); }
.site-footer__inner { width: min(var(--site-max), calc(100% - 2 * var(--site-pad))); margin: auto; padding: 1.25rem 0 2rem; display: flex; justify-content: space-between; gap: 1rem; color: #39404a; }

.simple-page { padding-top: clamp(2rem, 6vw, 5rem); }
.simple-page__card { max-width: 780px; padding: clamp(1.25rem, 4vw, 3rem); margin: auto; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.95); border-radius: 28px; box-shadow: 0 18px 60px rgba(38,48,64,.12); }
.simple-page h1 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.12; }
.simple-page h2 { margin-top: 2.5rem; line-height: 1.35; }
.simple-links { display: grid; gap: .75rem; margin-top: 2.5rem; }
.simple-links a { min-height: 52px; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; text-decoration: none; background: rgba(255,255,255,.72); }

@media (max-width: 700px) {
  .site-header__inner { padding: .5rem 0; flex-wrap: wrap; gap: .1rem .5rem; }
  .site-brand { flex: 1 0 auto; }
  .language-switch { margin-left: auto; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; }
  .site-nav a { flex: 1; padding-inline: .45rem; }
  .site-footer__inner { flex-direction: column; }
}

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