@charset "utf-8";

body.is-checked {
  overflow: hidden;
}
.header__overlay {
  background: rgba(61, 61, 61, 0.22);
  cursor: pointer;
  height: 100vh;
  left: 0;
  opacity: 0;
  position: fixed;
  top: 0;
  transition: opacity 0.6s, visibility 0.6s;
  visibility: hidden;
  width: 100%;
  z-index: 10;
}
.header__overlay.is-checked {
  opacity: 0.8;
  visibility: visible;
}

.header {
  position: fixed;
  top: 0;
  left: 0; 
  width: 100%;
  height: auto;
  z-index: 90;
}

.header__logo {
  aspect-ratio: 320 / 47;
  width: 230px;
  height: auto;
  position: fixed;
  top: 20px;
  left: 20px;
  transition: opacity 0.3s;
  z-index: 10;
}
@media screen and (min-width: 1000px) {
  .header__logo{
    width: 320px;
  }
}

.header__logo:hover {
  opacity: 0.7;
}

.header__open {
  display: block;
  width: 68px;
  height: 68px;
  cursor: pointer;
  transition: opacity 0.3s;
  position: fixed;
  top: 19px;
  right: 23px;
  background: #002955;
  border-radius: 50%;
  z-index: 80;
}
.header__open:hover {
  opacity: 0.8;
}

.header__bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.3s linear, top 0.3s linear;
}
.header__bar:nth-of-type(1){
    top: 16px;
}
.header__bar:nth-of-type(2){
    top: 25px;
}
.header__bar:nth-of-type(3){
    top: 34px;
}
.header__open.is-checked > .header__bar:nth-of-type(1) {
    top: 33px;
    transform: rotate(45deg) translateX(-50%);
    left: 44%;
}
.header__open.is-checked > .header__bar:nth-of-type(2) {
    display: none;
}
.header__open.is-checked > .header__bar:nth-of-type(3) {
    top: 18px;
    transform: rotate(-45deg) translateX(-50%);
    left: 44%;
}

.header__open-text {
  position: absolute;
  bottom: 16px;
  left: 52%;
  transform: translateX(-50%);
  font-size: 10px;
  font-family: "Noto Serif JP", serif;
  line-height: 1;
  letter-spacing: 0;
  color: #EFF0EF;
  width: max-content;
}

.header__content {
  width: 100%;
  max-width: 250px;
  height: 100vh;
  height: 100dvh;
  position: fixed;
  top: 0;
  right: 0;
  padding: 140px 50px 80px;
  background: #DFEDF5;
  transform: translateX(100%);
  transition: transform 0.3s linear;
  overflow: auto;
  z-index: 50;
}
.header__content.is-checked {
  transform: translateX(0);
}

.header__content-menu {
  display: flex;
  flex-direction: column;
}

.header__content-link {
  font-size: 14px;
  padding-block: 20px;
  border-bottom: 1px dotted #898989;
  font-family: "Noto Sans JP", serif;
  text-align: center;
}
.header__content-link:hover {
  background: gainsboro;
}
