/* base.css — reset + element defaults. No component classes here. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-feature-settings: normal;
  line-break: strict;
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--c-ink);
  font-family: var(--f-serif);
  font-weight: 400;
  letter-spacing: var(--ls-head);
  line-height: var(--lh-tight);
  text-wrap: balance;
  word-break: auto-phrase;      /* Chromium: break at phrase boundaries (no "Webサ|イト"); ignored elsewhere */
}
p, ul, ol, dl, figure, table { margin: 0; }
.hero__catch, .sec-head__catch { word-break: auto-phrase; }
p + p { margin-top: 1em; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-navy); text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-navy-dark); }
strong { font-weight: 700; color: var(--c-ink); }
hr { border: 0; border-top: 1px solid var(--c-line-soft); margin: var(--s-6) 0; }

:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
::selection { background: var(--c-sakura); color: var(--c-ink); }

button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-3); top: -100px; z-index: 100;
  background: var(--c-navy); color: #fff; padding: var(--s-2) var(--s-3);
}
.skip-link:focus { top: var(--s-3); }
