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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--color-ink);
  background: var(--color-white);
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.is-menu-open {
  overflow: hidden;
}

img,
picture,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

p,
h1,
h2,
h3,
ul {
  margin-top: 0;
}

ul {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 4px;
}

.l-site-main {
  width: 100%;
  padding-left: var(--rail-width);
  overflow: hidden;
}

.l-inner {
  width: min(var(--inner-width), calc(100% - 200px));
  margin-inline: auto;
}

.c-skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--color-white);
  color: var(--color-ink);
}

.c-skip-link:focus {
  transform: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.p-content-page {
  min-height: 65vh;
  padding-block: 160px;
}

.p-content-page__header {
  margin-bottom: 64px;
}

.p-content-page__header h1,
.p-content-page--center h1 {
  margin-bottom: 24px;
  color: var(--color-navy);
  font-size: 48px;
  line-height: 1.35;
}

.p-content-page__body {
  max-width: 760px;
}

.p-content-page__body--wide {
  max-width: none;
}

.p-content-page__body--form {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

.p-content-page--center {
  text-align: center;
}

.p-post-list {
  border-top: 1px solid var(--color-line);
}

.p-post-list__item {
  display: grid;
  grid-template-columns: 100px 90px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding-block: 24px;
  border-bottom: 1px solid var(--color-line);
}

.p-post-list__category {
  display: grid;
  min-height: 24px;
  place-items: center;
  padding: 2px 8px;
  border: 1px solid var(--color-navy);
  color: var(--color-navy);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.p-post-list__item h2 {
  margin: 0;
  font-size: 18px;
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
