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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #140700;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

figure {
  margin: 0;
}

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

a:focus-visible {
  outline: 2px solid #ee001e;
  outline-offset: 5px;
}

.screen-reader-text, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 99999;
  background: #fff;
  padding: 12px 20px;
}

.site-header {
  position: relative;
  z-index: 10;
}

.site-banner__bar {
  display: contents;
}

.site-banner__recruit, .site-menu-toggle {
  display: none;
}

.site-primary-nav {
  max-width: 1800px;
  margin: 0 auto;
  padding: 28px 50px 0;
}
.site-primary-nav ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 36px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.site-primary-nav a {
  display: block;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-decoration: none;
  color: #000;
}
.site-primary-nav a:hover {
  color: #ee001e;
}

.site-banner {
  position: relative;
}
.site-banner__image {
  display: block;
  width: 93%;
  margin-left: auto;
}
.site-banner__image img {
  display: block;
  width: 100%;
}
.site-banner__logo {
  position: absolute;
  bottom: 0;
  left: 30px;
  width: clamp(100px, 12vw, 180px);
  z-index: 1;
  text-decoration: none;
}
.site-banner__logo img {
  width: 100%;
  height: auto;
}

.section-heading {
  background: #fff;
}
.section-heading__inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 60px 50px 26px;
}
.section-heading__en {
  font-size: clamp(56px, 7vw, 100px);
  font-weight: 100;
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0.015em;
}
.section-heading__ja {
  color: #ee001e;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  margin: 0;
}

.content-background {
  position: relative;
  isolation: isolate;
  min-height: 400px;
  padding: 180px 40px 120px;
  background: #f5f5f5;
}
.content-background::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  z-index: -1;
  width: min(60vw, 700px);
  height: 360px;
  background: url("../images/topback.svg") left top/contain no-repeat;
  pointer-events: none;
}

.article-panel {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 80px;
  background: #fff;
  min-width: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.article-category {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #555;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  padding: 1px 12px;
}

.article-header {
  border-bottom: 1px solid #d9dcd4;
  padding-bottom: 28px;
  margin-bottom: 32px;
}

.article-title {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.7;
  margin: 18px 0 0;
}

.article-featured {
  margin: 0 0 34px;
}
.article-featured img {
  display: block;
  width: 100%;
  height: auto;
}

.article-body {
  font-size: 14px;
  line-height: 2;
}
.article-body > :first-child {
  margin-top: 0;
}
.article-body > :last-child {
  margin-bottom: 0;
}
.article-body p, .article-body ul, .article-body ol, .article-body blockquote, .article-body figure, .article-body .wp-block-table, .article-body pre {
  margin-top: 1.8em;
  margin-bottom: 1.8em;
}
.article-body h2, .article-body h3, .article-body h4 {
  line-height: 1.6;
  font-weight: 600;
  margin: 2.2em 0 1em;
}
.article-body h2 {
  font-size: 25px;
  border-bottom: 1px solid #d9dcd4;
  padding-bottom: 0.5em;
}
.article-body h3 {
  font-size: 21px;
}
.article-body h4 {
  font-size: 18px;
}
.article-body a {
  color: #d90024;
}
.article-body img {
  height: auto;
}
.article-body iframe, .article-body video {
  max-width: 100%;
}
.article-body blockquote {
  border-left: 3px solid #ee001e;
  padding: 0.2em 1.5em;
  margin-left: 0;
  color: #555;
}
.article-body pre {
  overflow: auto;
  padding: 20px;
  background: #f5f5f5;
}
.article-body .wp-block-table {
  overflow-x: auto;
}
.article-body table {
  border-collapse: collapse;
  width: 100%;
}
.article-body th, .article-body td {
  border: 1px solid #d9dcd4;
  padding: 12px;
  text-align: left;
}
.article-body .aligncenter {
  display: block;
  margin-inline: auto;
}
.article-body .alignleft {
  float: left;
  margin: 0 24px 20px 0;
}
.article-body .alignright {
  float: right;
  margin: 0 0 20px 24px;
}
.article-body::after {
  content: "";
  display: block;
  clear: both;
}

.article-back {
  border-top: 1px solid #d9dcd4;
  margin-top: 56px;
  padding-top: 30px;
  text-align: center;
}
.article-back a {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 10px 20px;
  font-size: 13px;
  text-decoration: none;
}
.article-back span {
  font-size: 21px;
}

.archive-filter {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 30px;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #d9dcd4;
}
.article-list__item {
  border-bottom: 1px solid #d9dcd4;
}
.article-list__link {
  position: relative;
  display: block;
  text-decoration: none;
  padding: 30px 60px 30px 0;
  transition: color 0.2s;
}
.article-list__link:hover {
  color: #ee001e;
}
.article-list__title {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
}
.article-list__arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 23px;
}

.pagination {
  margin-top: 48px;
  text-align: center;
}
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.pagination .page-numbers {
  padding: 6px 12px;
  border: 1px solid #d9dcd4;
  text-decoration: none;
}
.pagination .current {
  color: #fff;
  background: #ee001e;
  border-color: #ee001e;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 30px;
  margin-top: 42px;
}
.site-links a {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.site-links a:hover {
  color: #ee001e;
}

.empty-state {
  text-align: center;
  padding-block: 80px;
}
.empty-state h1 {
  font-size: 22px;
}

.article-pages {
  margin-top: 30px;
}

.site-footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 40px 30px 48px;
}
.site-footer__logo {
  display: inline-block;
  width: 180px;
}
.site-footer__logo img {
  width: 100%;
  height: auto;
}
.site-footer__company {
  font-size: 13px;
  margin: 20px 0 2px;
}
.site-footer__address {
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  margin: 0;
}
.site-footer__address a {
  text-decoration: none;
}

@media (max-width: 768px) {
  .site-banner__logo {
    position: relative;
    display: block;
    left: auto;
    bottom: auto;
    width: 120px;
    margin: 20px;
  }
  .site-banner__image {
    width: 100%;
  }
  .site-banner__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 114px;
    padding: 20px;
  }
  .site-banner__bar .site-banner__logo {
    margin: 0;
  }
  .site-banner__recruit {
    display: block;
    margin-top: 8px;
    padding-top: 5px;
    border-top: 1px solid #ee001e;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    letter-spacing: 0.1em;
    color: #ee001e;
  }
  .site-menu-toggle {
    position: relative;
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
    border: 0;
    padding: 0;
    background: #fff;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
    cursor: pointer;
  }
  .site-menu-toggle span {
    position: absolute;
    display: block;
    width: 50%;
    height: 2px;
    background: #ee001e;
    transition: transform 0.2s, opacity 0.2s;
  }
  .site-menu-toggle span:nth-child(1) {
    top: 18px;
    right: 8px;
  }
  .site-menu-toggle span:nth-child(2) {
    top: 28px;
    left: 0;
    right: 0;
    margin: auto;
  }
  .site-menu-toggle span:nth-child(3) {
    top: 38px;
    left: 8px;
  }
  .site-menu-toggle[aria-expanded=true] span:nth-child(1), .site-menu-toggle[aria-expanded=true] span:nth-child(3) {
    top: 28px;
    left: 0;
    right: 0;
    margin: auto;
  }
  .site-menu-toggle[aria-expanded=true] span:nth-child(1) {
    transform: rotate(45deg);
  }
  .site-menu-toggle[aria-expanded=true] span:nth-child(2) {
    opacity: 0;
  }
  .site-menu-toggle[aria-expanded=true] span:nth-child(3) {
    transform: rotate(-45deg);
  }
  .site-menu-toggle:focus-visible {
    outline: 2px solid #ee001e;
    outline-offset: 4px;
  }
  .has-site-nav-js .site-menu-toggle {
    display: block;
  }
  .site-primary-nav {
    padding: 18px 24px 24px;
    background: #fff;
  }
  .site-primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-primary-nav a {
    padding: 14px 0;
  }
  .has-site-nav-js .site-primary-nav {
    position: absolute;
    top: 114px;
    left: 0;
    right: 0;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
  }
  .has-site-nav-js .site-primary-nav:not(.is-open) {
    display: none;
  }
  .section-heading__inner {
    padding: 30px 20px 24px;
  }
  .section-heading__en {
    font-size: 52px;
  }
  .section-heading__ja {
    font-size: 14px;
  }
  .content-background {
    padding: 60px 20px 70px;
  }
  .content-background::before {
    width: 75vw;
    height: 220px;
  }
  .article-panel {
    padding: 32px 24px;
  }
  .article-list__link {
    padding: 25px 30px 25px 0;
  }
  .article-list__title {
    font-size: 15px;
  }
  .article-header {
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
  .article-title {
    font-size: 22px;
  }
  .article-meta {
    gap: 8px 12px;
    font-size: 11px;
  }
  .article-featured {
    margin-bottom: 28px;
  }
  .article-back {
    margin-top: 40px;
    padding-top: 20px;
  }
  .article-back a {
    gap: 18px;
    padding-inline: 0;
  }
  .article-body h2 {
    font-size: 22px;
  }
  .article-body h3 {
    font-size: 19px;
  }
  .article-body .alignleft, .article-body .alignright {
    float: none;
    margin: 1.5em auto;
  }
  .site-footer {
    padding: 36px 22px 42px;
  }
  .site-footer__logo {
    width: 156px;
  }
  .site-footer__company {
    font-size: 12px;
  }
  .site-footer__address {
    font-size: 11px;
    max-width: 500px;
    margin: 0 auto;
  }
  .site-footer__address span {
    display: block;
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
  }
}
