/* Common header and footer */

/* ==========================================================================
   Header / Global Navigation
   ========================================================================== */

.site-header {
  display: flex;
  justify-content: flex-end;
  padding: 40px 53px 0 0;
  position: fixed;
  width: 100%;
  z-index: 20;
}
.site-header__inner {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-left: auto;
  max-width: 1280px;
}
.site-header__logo {
  display: block;
  width: clamp(140px, 18vw, 220px);
}
.site-header__logo img {
  display: block;
  height: auto;
  width: 100%;
}
.site-header__burger {
  align-items: center;
  background: rgba(255, 252, 247, 0.4);
  border: 1px solid #ffd790;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  height: 62px;
  justify-content: center;
  padding: 12px;
  position: relative;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
  width: 62px;
  z-index: 35;
}
.site-header__burger:hover {
  background: rgba(255, 252, 247, 0.4);
  border-color: #ffd790;
}
.site-header__burger-lines {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-header__burger-line {
  background: #ffd790;
  border-radius: 1px;
  height: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  width: 26px;
}
.site-header.is-open .site-header__burger-line:first-child {
  transform: translateY(10px) rotate(45deg);
}
.site-header.is-open .site-header__burger-line:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .site-header__burger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}
.site-header__nav {
  align-items: center;
  background-color: rgba(142, 23, 40, 0.9);
  display: grid;
  grid-template-columns: 37% 1fr;
  inset: 0;
  opacity: 0;
  position: fixed;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  visibility: hidden;
  width: 100%;
  z-index: 30;
}
.site-header.is-open .site-header__nav {
  opacity: 1;
  visibility: visible;
}
.site-header__nav-logo-wrap {
  align-items: center;
  background-image: url(../images/header/nav-pattern.svg);
  clip-path: polygon(0 0, 24% 0, 100% 50%, 24% 100%, 0 100%);
  display: flex;
  height: 100%;
  justify-content: flex-start;
  padding-left: 16.85%;
}
.site-header__nav-logo {
  width: 45%;
}
.site-header__nav-list {
  -moz-column-gap: 14.268%;
  column-gap: 14.268%;
  display: grid;
  grid-template-columns: max-content max-content;
  padding-left: 12.08%;
  row-gap: 80px;
}
@media screen and (max-width: 1280px) {
  .site-header__nav-list {
    -moz-column-gap: 14.268%;
    column-gap: 14.268%;
    display: grid;
    grid-template-columns: 1fr;
    padding-left: 12.08%;
    row-gap: 80px;
  }
}
.site-header__nav-item {
  color: #fffcf7;
  font-family:
    Yu Mincho,
    游明朝,
    YuMincho,
    Hiragino Mincho ProN,
    Hiragino Mincho ProN W3,
    MS Mincho,
    serif;
  font-size: clamp(1.5rem, 0.6974rem + 0.8772vw, 1.75rem);
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
  padding-left: 34px;
  position: relative;
}
.site-header__nav-item a {
  transition: opacity 0.3s ease;
}
.site-header__nav-item a:hover {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.site-header__nav-item:before {
  background-image: url(../images/header/bullet.svg);
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  height: 15px;
  height: 100%;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
}
.site-header__nav-item.of-window a {
  padding-right: 39px;
  position: relative;
}
.site-header__nav-item.of-window a:after {
  background-image: url(../images/header/window.svg);
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  height: 24px;
  height: 100%;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
}
body.is-menu-open {
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  .site-header {
    padding: 20px;
  }
  .site-header__burger {
    height: 48px;
    width: 48px;
  }
  .site-header__burger-lines {
    gap: 8px;
  }
  .site-header__burger-line {
    height: 1px;
    width: 18px;
  }
  .site-header.is-open .site-header__burger-line:first-child {
    transform: translateY(9px) rotate(45deg);
  }
  .site-header.is-open .site-header__burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  .site-header__nav {
    grid-template-columns: 1fr;
  }
  .site-header__nav-logo-wrap {
    align-items: center;
    background-image: none;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    display: flex;
    height: auto;
    justify-content: flex-start;
    left: -10px;
    padding-left: 0;
    position: absolute;
    top: -10px;
  }
  .site-header__nav-logo img {
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
    padding: 30px;
    width: 236px;
  }
  .site-header__nav-list {
    row-gap: 40px;
  }
  .site-header__nav-item {
    font-size: 20px;
    padding-left: 21px;
  }
  .site-header__nav-item:before {
    height: 14px;
    width: 14px;
  }
  .site-header__nav-item.of-window a {
    padding-right: 25px;
  }
  .site-header__nav-item.of-window a:after {
    height: 18px;
    width: 18px;
  }
}
/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: #fffefc;
  position: relative;
}
.footer__to-top {
  position: absolute;
  right: 80px;
  top: -48px;
  transform: translateX(-50%);
  transition: background-image 0.3s ease;
  width: 96px;
}
.footer__to-top img {
  display: block;
  transition: opacity 0.25s ease;
}
.footer__to-top img.of-act {
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: all 0.3s ease;
}
.footer__to-top:hover img {
  opacity: 0;
}
.footer__to-top:hover img.of-act {
  content: url(../images/footer/to-top-act.svg);
  opacity: 1;
  transition: all 0.3s ease;
}
.footer__image,
.footer__image img {
  display: block;
  width: 100%;
}
.footer__image img {
  height: auto;
}
@media screen and (max-width: 765px) {
  .footer {
    padding-bottom: 64px;
  }
  .footer__to-top {
    right: 20px;
    top: -36px;
    transform: none;
    width: 72px;
  }
}
