*, *::before, *::after { box-sizing: border-box; }

:root {
  scroll-behavior: smooth;
  --frame: min(100% - clamp(32px, 8vw, 112px), 1360px);
  --gothic: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  --focus: #367da1;
}

body {
  margin: 0;
  font-family: var(--gothic);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3, p { line-break: strict; }
img { display: block; width: 100%; height: auto; }
address { font-style: normal; overflow-wrap: anywhere; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.frame { width: var(--frame); margin-inline: auto; }

.example-credit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 8px max(calc((100% - 1360px) / 2), clamp(16px, 4vw, 56px));
  color: #faf9f4;
  background: #27262a;
  font: 11px/1.6 var(--gothic);
}

.example-credit a { flex: none; text-underline-offset: .25em; }
.example-credit a:hover { text-decoration-thickness: 2px; }

.example-skip {
  position: absolute;
  z-index: 2;
  inset: 8px auto auto 12px;
  transform: translateY(-150%);
  padding: 6px 12px;
  color: #222;
  background: white;
}
.example-skip:focus { transform: none; }

@media (max-width: 600px) {
  .example-credit { align-items: flex-start; flex-direction: column; }
}

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