@font-face {
  font-family: "Noto Sans JP";
  src: url("../fonts/noto-sans-jp.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-text: #231815;
  --color-blue: #0065b3;
  --color-orange: #ed6000;
  --color-band: #b3cde6;
  --color-footer: #333;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--color-text);
  background: #fff;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  background: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  flex-shrink: 0;
  height: clamp(86px, 9.0226vw, 162.4px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 82.7%;
  max-width: 1488px;
  height: 100%;
  margin-inline: auto;
}

.site-logo {
  display: block;
  flex-shrink: 0;
  width: 27.3vw;
  max-width: 491.4px;
  transform: translateY(-4px);
}

.site-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav-list {
  display: flex;
  align-items: center;
  gap: 3.5vw;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding-block: 12px;
  color: #333;
  font-size: clamp(12px, 1.0526vw, 18.95px);
  font-weight: 700;
  letter-spacing: .1em;
  white-space: nowrap;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--color-orange);
}

.menu-button,
.menu-brand {
  display: none;
}

.content-inner {
  width: 76.6667%;
  max-width: 1380px;
  margin-inline: auto;
}

.page-heading {
  display: flex;
  align-items: center;
  min-height: clamp(80px, 7.1111vw, 128px);
  background: var(--color-band);
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(28px, 2.8571vw, 51.43px);
  font-weight: 500;
  line-height: 1.5;
}

.dx-content {
  padding-top: min(3.1111vw, 56px);
  padding-bottom: min(5.3333vw, 96px);
}

.dx-lead {
  margin: 0;
  font-size: clamp(20px, 1.8889vw, 34px);
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.dx-lead strong {
  display: inline-block;
  margin-bottom: .15em;
  font-size: 1.3846em;
  font-weight: 700;
  line-height: 1.25;
}

.dx-continuation {
  padding-left: 1em;
}

.dx-figure {
  margin: min(4.4444vw, 80px) 0 0;
}

.dx-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.hero {
  position: relative;
  height: calc(100vh - clamp(86px, 9.0226vw, 162.4px) - clamp(80px, 7.5188vw, 135.34px));
  height: calc(100dvh - clamp(86px, 9.0226vw, 162.4px) - clamp(80px, 7.5188vw, 135.34px));
  background: #29466d url("../img/top_back.jpg") center center / cover no-repeat;
  color: #fff;
  text-align: center;
}

.hero-title {
  position: absolute;
  top: 32%;
  left: 0;
  width: 100%;
  margin: 0;
  padding-inline: 20px;
  font-size: clamp(32px, 3.609vw, 65px);
  font-weight: 900;
  line-height: 1.22;
}

.hero-message {
  position: absolute;
  right: 16px;
  bottom: 5.9%;
  left: 16px;
}

.hero-message p {
  margin: 0 0 12px;
  font-size: clamp(14px, 1.5038vw, 27px);
  font-weight: 700;
  line-height: 1.5;
}

.hero-logo {
  display: block;
  width: 21.2vw;
  max-width: 382px;
  height: auto;
  margin-inline: auto;
  /* The official source has transparent space at the right. Center its visible mark. */
  transform: translateX(8.7%);
  filter: grayscale(1) invert(1) brightness(5);
  mix-blend-mode: screen;
}

.site-footer {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  min-height: clamp(80px, 7.5188vw, 135.34px);
  background: var(--color-footer);
  color: #fff;
}

.site-footer-inner {
  width: 82.7%;
  max-width: 1488px;
  margin-inline: auto;
  text-align: right;
}

.site-footer small {
  font-size: clamp(10px, .9023vw, 16.24px);
  font-weight: 500;
  letter-spacing: .045em;
}

@media (min-width: 1800px) {
  .site-nav-list {
    gap: 63px;
  }
}

@media (max-width: 1000px) {
  .site-header {
    height: 49px;
  }

  .site-header-inner {
    width: auto;
    margin-inline: 15px;
  }

  .site-logo {
    width: 194px;
    transform: none;
  }

  .menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -7px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button img {
    width: 36px;
    height: 36px;
  }

  .menu-open-button {
    transform: translateX(3px);
  }

  .site-nav {
    position: fixed;
    z-index: 10;
    inset: 0;
    display: none;
    padding: 34px 23px 40px;
    overflow-y: auto;
    background: #fff;
    overscroll-behavior: contain;
  }

  .site-nav.is-open {
    display: block;
  }

  .menu-brand {
    display: block;
    width: 239px;
    margin: 0 auto 29px;
    transform: translateX(8.7%);
  }

  .menu-brand img {
    display: block;
    width: 100%;
    height: auto;
  }

  .menu-close {
    position: absolute;
    top: 3px;
    right: 5px;
    margin: 0;
  }

  .menu-close img {
    width: 32px;
    height: 32px;
  }

  .site-nav-list {
    display: block;
    border-top: 1px solid #ddd;
  }

  .site-nav-list li {
    border-bottom: 1px solid #ddd;
  }

  .site-nav a {
    padding: 21px 8px;
    font-size: 12px;
    line-height: 19px;
    text-align: center;
  }

  .menu-open {
    overflow: hidden;
  }

  .content-inner {
    width: calc(100% - 64px);
  }

  .page-heading {
    min-height: 50px;
    padding-block: 10px;
  }

  .page-heading h1 {
    font-size: 18px;
    line-height: 1.5;
  }

  .dx-content {
    padding-top: 26px;
    padding-bottom: 34px;
  }

  .dx-lead {
    font-size: 15px;
    line-height: 22px;
  }

  .dx-lead strong {
    margin-bottom: 0;
    font-size: inherit;
    line-height: inherit;
  }

  .pc-break {
    display: none;
  }

  .dx-continuation {
    padding-left: 0;
  }

  .dx-figure {
    margin: 30px 2px 0;
  }

  .hero {
    height: calc(100vh - 99px);
    height: calc(100dvh - 99px);
  }

  .hero-title {
    top: 38.5%;
    padding-inline: 16px;
    font-size: clamp(18px, 5.3333vw, 32px);
    line-height: 1.35;
  }

  .hero-message {
    bottom: 7.4%;
  }

  .hero-message p {
    margin-bottom: 10px;
    font-size: clamp(10px, 3.2vw, 18px);
    white-space: nowrap;
  }

  .hero-logo {
    width: 170px;
  }

  .site-footer {
    min-height: 50px;
    padding: 14px 12px;
  }

  .site-footer-inner {
    width: 100%;
    text-align: center;
  }

  .site-footer small {
    display: block;
    font-size: 8.5px;
    line-height: 1.5;
    letter-spacing: .045em;
  }
}
