/* Site chrome shared by every page (header, footer, buttons). Tokens are prefixed --y- so the tool pages' own styles keep working. */
:root {
  --y-bg: #f5f7fa;
  --y-tile: #fafbfc;
  --y-surface: #ffffff;
  --y-ink: #15171c;
  --y-ink-2: #474c57;
  --y-muted: #686e7b;
  --y-line: rgba(21, 23, 28, 0.12);
  --y-pink: #ff3e7f;
  --y-pink-soft: #ffe3ec;
  --y-cap-pink: rgba(255, 62, 127, 0.2);
  --y-cap-lemon: rgba(255, 207, 51, 0.34);
  --y-cap-sky: rgba(64, 182, 245, 0.26);
  --y-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 24px 48px -30px rgba(21, 23, 28, 0.38);
  --y-radius: 24px;
  --y-font-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --y-font-latin: "Outfit", "Zen Kaku Gothic New", "Hiragino Sans", system-ui, sans-serif;
  --y-header-h: 64px;
}

.y-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Header: one line, translucent over the film */
.y-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--y-header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--y-bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease;
  font-family: var(--y-font-jp); color: var(--y-ink);
}
.y-header[data-scrolled="true"] { border-bottom-color: var(--y-line); }
.y-header .y-wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.y-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--y-ink); text-decoration: none; font-family: var(--y-font-latin); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; white-space: nowrap; }
.y-brand svg { width: 30px; height: 30px; flex: none; }
.y-nav { display: flex; gap: 2px; }
.y-nav a { color: var(--y-ink); text-decoration: none; font-weight: 700; font-size: 0.9rem; line-height: 1; padding: 10px 12px; border-radius: 999px; white-space: nowrap; }
.y-nav a:hover { background: var(--y-surface); }
.y-nav a[aria-current="page"] { background: var(--y-surface); box-shadow: inset 0 -3px 0 var(--y-pink); }
.y-header a:focus-visible, .y-footer a:focus-visible { outline: 3px solid var(--y-pink); outline-offset: 2px; }
@media (max-width: 480px) {
  .y-brand { font-size: 1rem; gap: 7px; }
  .y-brand svg { width: 26px; height: 26px; }
  .y-nav a { font-size: 0.82rem; padding: 9px 8px; }
}
@media (max-width: 359px) { .y-brand .y-brand__word { display: none; } }

/* Footer */
.y-footer { background: var(--y-surface); border-top: 1px solid var(--y-line); font-family: var(--y-font-jp); color: var(--y-ink); }
.y-footer .y-wrap { display: grid; gap: 18px; padding-block: 40px calc(40px + env(safe-area-inset-bottom)); }
.y-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.y-footer nav a { color: var(--y-ink); font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.y-footer nav a:hover { text-decoration: underline; text-decoration-color: var(--y-pink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.y-footer small { color: var(--y-muted); font-size: 0.8rem; line-height: 1.7; }
/* The tool pages style bare footer and a elements; keep the chrome's own values. */
.y-footer { padding: 0; font-size: 1rem; line-height: 1.8; }
.y-header a, .y-footer a { color: var(--y-ink); }

/* Skip link: hidden until it receives keyboard focus */
.y-skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 8px 14px; border-radius: 999px; background: var(--y-ink); color: #fff !important; font: 700 0.9rem/1.4 var(--y-font-jp); text-decoration: none; }
.y-skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
