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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Noto Sans JP",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  line-height: 1.6;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  background: #f6f4f2; /* 白すぎない紙色 */
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ---- Utilities ---- */
.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.flow > * + * {
  margin-top: 1em;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 12px;
  background: Canvas;
  border: 1px solid CanvasText;
}

.skip-link:focus {
  left: 8px;
  z-index: 9999;
}

section {
  scroll-margin-top: 80px;
}

figure {width: 100%;}

@media (max-width: 768px) {
section {
  scroll-margin-top: 30px;
}
}

.br-sp {
  display: none;
}

.br-pc {
  display: inline;
}

/* SPだけ改行させる */
@media (max-width: 768px) {
  .br-sp {
    display: inline;
  }
   .br-pc {
    display: none;
  }
}