@charset "UTF-8";

:root {
  --ink: #242428;
  --muted: #616169;
  --pink: #b71958;
  --line: #e4e4e8;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.25rem; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; max-width: 100%; }
strong { font-weight: 700; }
a:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
::selection { background: #ffe0ec; color: #202024; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 5; padding: 1rem; background: #fff; }
.skip-link:focus { top: 1rem; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { width: min(calc(100% - 2.5rem), 44rem); min-height: 3.5rem; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; min-height: 2.75rem; font: italic 900 1.75rem/1 Arial, sans-serif; letter-spacing: -.07em; text-decoration: none; }
.wordmark span { color: var(--pink); }
.header-inner p { font-size: .875rem; color: var(--muted); }

.page { width: min(calc(100% - 2.5rem), 42rem); margin: auto; overflow-wrap: anywhere; }
.article-header { padding-top: 2rem; }
.byline { color: var(--muted); font-size: .875rem; line-height: 1.65; }
h1 { margin-top: .625rem; font-size: 2.25rem; line-height: 1.5; letter-spacing: -.025em; font-weight: 700; }
.lead { margin-top: .875rem; font-size: 1rem; line-height: 1.8; color: #4d4d55; }
.article-photo { overflow: hidden; border-radius: .625rem; background: #f4f4f5; }
.article-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.hero-photo { margin-top: 1.5rem; }
.story-photo { margin: .25rem 0 .5rem; }

.contents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contents a { min-height: 2.875rem; display: flex; align-items: center; justify-content: center; padding: .5rem .25rem; font-size: .875rem; line-height: 1.5; text-decoration: none; color: var(--pink); font-weight: 700; }
.contents a:hover { background: #fff4f8; text-decoration: underline; }
.contents a + a { border-left: 1px solid var(--line); }

.qa { padding: 2.25rem 0; }
.qa + .qa { border-top: 1px solid var(--line); }
.qa h2 { margin-bottom: 1.25rem; font-size: 1.375rem; line-height: 1.6; line-break: strict; overflow-wrap: anywhere; }
.question-number { display: block; margin-bottom: .5rem; font: 700 .875rem/1.5 Arial, sans-serif; color: var(--pink); }
.answer { font-size: 1.125rem; line-height: 1.9; line-break: strict; overflow-wrap: anywhere; }
.answer p + p { margin-top: 1rem; }
.answer strong { color: #161619; }

.site-footer { margin-top: .75rem; border-top: 1px solid var(--line); background: #f8f8f9; }
.footer-inner { width: min(calc(100% - 2.5rem), 42rem); margin: auto; padding: 1.5rem 0; font-size: .875rem; line-height: 1.8; }
.photo-credit { margin-top: .375rem; color: var(--muted); font-size: .75rem; }
.back-top { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; margin-top: .75rem; text-decoration: none; }
.back-top:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .article-header { padding-top: 1.5rem; }
  h1 { font-size: 1.8125rem; line-height: 1.5; }
  .qa { padding: 2rem 0; }
  .qa h2 { font-size: 1.25rem; }
  .answer { line-height: 1.85; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .skip-link, .contents, .back-top { display: none; }
  .page, .footer-inner { width: 100%; }
  .article-header { padding-top: 0; }
  h1 { font-size: 24pt; }
  .article-photo { break-inside: avoid; }
  .article-photo img { height: 8rem; }
  .qa { padding: 1rem 0; }
  .qa h2 { break-after: avoid; font-size: 13pt; }
  .answer { font-size: 11pt; line-height: 1.7; }
  .answer p { break-inside: avoid; }
  .site-footer { background: #fff; }
}
