
.custom-header {
  position: fixed;
  top: 0;
  max-width: 1200px;
  display: flex;
  z-index: 100;
  width: 100%;
  right: 0;
  left: 0;
  margin: 0 auto;
  transition: padding 0.2s linear;
  padding: 16px;
  justify-content: space-between;
  @media screen and (min-width: 769px) {
    padding: 70px 10px;
  }

  &.is-mv-out {
    @media screen and (min-width: 769px) {
      padding: 40px 10px;
    }
    .custom-header__logo {
      &::after {
        opacity: 0;
        visibility: hidden;
      }
      img {
        opacity: 1;
        visibility: visible;
      }
    }
  }

  &.is-open {
    .hamburger-menu-open {
      opacity: 0;
      pointer-events: none;
    }
    .hamburger-menu-close {
      opacity: 1;
      pointer-events: visible;
    }
    .custom-header__logo {
      &::after {
        opacity: 0;
        visibility: hidden;
      }
      img {
        opacity: 1;
        visibility: visible;
      }
    }
  }
}
.hamburger-menu {
  position: fixed;
  z-index: 99;
  top: 0;
  width: 100vw;
  background: #F5F0EA;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s linear;
  border-bottom: 0.6px solid;
  padding: 111px 25px 47px;
  @media screen and (min-width: 769px) {
    padding: 190px 50px 35px;
  }
  &.is-open {
    opacity: 1;
    pointer-events: visible;
  }
}
:where(.hamburger-menu) {
  .hamburger-menu__list {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    font-family: "Cormorant Garamond", serif;
    @media screen and (max-width: 768px) {
      display: grid;
      grid-template-columns: 1fr 1fr;
      font-size: calc(var(--rem) * 36);
      column-gap: 10px;
      row-gap: 5px;
      margin-bottom: 20px;
    }
    @media screen and (min-width: 769px) {
      display: flex;
      flex-wrap: wrap;
      font-size: calc(var(--rem) * 59);
      column-gap: 40px;
      margin-bottom: 17px;
      padding: 0 10px;
    }
    li {
      a.is-current {
        text-decoration: underline;
        color: #837566;
        text-decoration-thickness: 1px;
      }
    }
    span {
      display: block;
      margin-top: -5px;
      font-family: "Zen Kaku Gothic New", sans-serif;
      font-size: calc(var(--rem) * 10);
      letter-spacing: 1.4px;
      @media screen and (min-width: 769px) {
        margin-top: -10px;
      }
    }
  }
  .hamburger-menu__privacy {
    font-family: "Montserrat", sans-serif;
    text-align: right;
    letter-spacing: 1.8px;
    font-size: calc(var(--rem) * 13);
    text-decoration: underline;
    @media screen and (max-width: 768px) {
      letter-spacing: 1.7px;
      text-align: center;
      font-size: calc(var(--rem) * 10);
    }
  }
}
:where(.custom-header) {
  .hamburger-menu-close {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    opacity: 0;
    pointer-events: none;
  }
  .custom-header__logo {
    position: relative;
    display: flex;
    align-items: center;
    width: 200px;
    @media screen and (min-width: 769px) {
      width: 272px;
    }
    &::after {
      content: "";
      display: block;
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: url("../../images/common/logo.png") no-repeat center / contain;
      transition: all 0.3s ease;
      filter: alpha(opacity=0);
      opacity: 1;
      visibility: visible;
    }
    img {
      transition: all 0.3s ease;
      opacity: 0;
      visibility: hidden;
    }
  }
  .custom-header__buttons {
    display: flex;
    @media screen and (min-width: 769px) {
      gap: 20px;
    }
  }
  .custom-header__hamburger {
    position: relative;
    display: block;
    width: 40px;
    @media screen and (min-width: 769px) {
      width: 52px;
    }
  }
  .custom-header__button {
    display: block;
    @media screen and (min-width: 769px) {
      width: 165px;
    }
  }
}

.custom-footer {
  background: #F8F3ED;
  padding: 50px 25px 50px;
  border-top: 0.5px solid;
  @media screen and (min-width: 769px) {
    padding: 50px 20px 50px;
  }
}
:where(.custom-footer) {
  .custom-footer__inner {
    max-width: 1400px;
    margin: 0 auto;
  }
  .custom-footer__logo {
    width: 200px;
    @media screen and (min-width: 769px) {
      width: 274px;
    }
  }
  .custom-footer__menu {
    display: flex;
    @media screen and (max-width: 768px) {
      flex-direction: column;
      align-items: center;
      gap: 20px;
      margin-bottom: 50px;
    }
    @media screen and (min-width: 769px) {
      align-items: flex-start;
      justify-content: space-between;
      margin-bottom: 100px;
    }
  }
  .custom-footer__list {
    display: flex;
    flex-wrap: wrap;
    color: #837566;
    font-family: "Montserrat", sans-serif;
    @media screen and (max-width: 768px) {
      justify-content: center;
      column-gap: 15px;
      row-gap: 7px;
      font-size: calc(var(--rem) * 13);
      letter-spacing: 0.8px;
    }
    @media screen and (min-width: 769px) {
      gap: 24px;
      letter-spacing: 1px;
      font-size: calc(var(--rem) * 16);
    }
  }
  .custom-footer__sns {
    display: flex;
    align-items: center;
    @media screen and (min-width: 769px) {
      justify-content: end;
    }
    li {
      width: 24px;
    }
  }
  .custom-footer__copyright {
    color: #837566;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: calc(var(--rem) * 11);
    letter-spacing: 0.7px;
    @media screen and (min-width: 769px) {
      font-size: calc(var(--rem) * 14);
      letter-spacing: 1px;
    }
  }
}

.custom-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: 200px 25px 50px;
  gap: calc(var(--vw) * 20);

  @media screen and (min-width: 769px) {
    max-width: calc(var(--vw) * 724);
    gap: calc(var(--vw) * 40);
    width: 100%;
    padding: 250px 0 90px;
  }

  .custom-404__title {
    font-weight: bold;
    font-size: calc(var(--rem) * 20);

    @media screen and (min-width: 769px) {
      font-size: calc(var(--rem) * 32);
    }
  }

  .custom-404__text {
    font-weight: 600;
    font-size: calc(var(--rem) * 14);
    text-align: center;

    @media screen and (min-width: 769px) {
      font-size: calc(var(--rem) * 18);
    }
  }

  .custom-404__link {
    color: #005E9E;
    font-weight: 600;
    text-decoration: underline;
    font-size: calc(var(--rem) * 12);
    margin-top: calc(var(--vw) * 20);

    @media screen and (min-width: 769px) {
      font-size: calc(var(--rem) * 16);
      margin-top: calc(var(--vw) * 30);
    }
  }
}

/* タイトル系 */
.c-title-wrap {
  margin-bottom: 23px;

  @media screen and (min-width: 769px) {
    margin-bottom: 41px;
  }
  &.is-shown {
    .c-title-sub {
      &::before {
        width: 60px;
      }
    }
  }
}

.c-title-sub {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: calc(var(--rem) * 8);
  letter-spacing: 1.52px;
  padding-left: 72px;
  margin-bottom: 10px;
  color: #8B6F5E;
  position: relative;

  @media screen and (min-width: 769px) {
    padding-left: 72px;
    font-size: calc(var(--rem) * 10);
    letter-spacing: 1.9px;
    margin-bottom: 6px;
  }
  &::before {
    transition: width 0.2s linear;
    content: "";
    display: inline-block;
    width: 0px;
    height: 0.5px;
    background: #8B6F5E;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto 0;
  }
}
.c-title {
  color: #1A1714;
  font-family: "Cormorant Garamond", serif;
  font-size: calc(var(--rem) * 39);
  letter-spacing: 0.78px;
  margin-bottom: 6px;

  @media screen and (min-width: 769px) {
    font-size: calc(var(--rem) * 59);
    letter-spacing: 1.18px;
    margin-bottom: 10px;
  }
  span {
    color: #837566;
    font-style: italic;
  }
}
.c-title-desc {
  color: #2D292685;
  font-size: calc(var(--rem) * 10);
  letter-spacing: 1px;
  line-height: 19px;
  @media screen and (min-width: 769px) {
    line-height: 20px;
    font-size: calc(var(--rem) * 11);
    letter-spacing: 1px;
    line-height: 20px;
  }
}

/* 共通フェードアニメーション */
.js-reveal,
.js-reveal-mv {
  position: relative;
  display: inline;
  padding: 2px 5px;
  overflow: hidden;
  margin-left: -5px;
  transition: color .8s cubic-bezier(0.35, 0, 0, 1);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;

  background-image: linear-gradient(#004F92, #004F92);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0% 100%;
  transition: background-size .8s cubic-bezier(.35, 0, 0, 1), color .8s cubic-bezier(.35, 0, 0, 1);

  @media screen and (min-width: 769px) {
    padding: 5px 7px;
    margin-left: -7px;
  }

  &.is-shown {
    background-size: 100% 100%;
    color: #FFF;
  }
}

.js-reveal-mv {
  background-image: linear-gradient(#FFF, #FFF);
  padding: 1px 39px 1px 29px;

  @media screen and (max-width: 768px) {
    padding: 2px 5px 2px 14px;
  }

  &.is-shown {
    background-size: 100% 100%;
    color: #004F92;
  }
}

.js-lead {
  position: relative;

  &::after {
    content: "";
    right: 0;
    position: absolute;
    background: #FFF;
    width: 100%;
    height: 100%;
    transition: width 1s cubic-bezier(0.35, 0, 0, 1);
  }

  &.is-shown {
    &::after {
      width: 0;
    }
  }
}

.js-fade-in-left {
  opacity: 0;
  transform: translateX(-35px);
  transition:
    transform 0.8s linear,
    opacity 0.9s linear;
}

.js-fade-in-right {
  opacity: 0;
  transform: translateX(35px);
  transition:
    transform 0.8s linear,
    opacity 0.9s linear;
}

.js-fade-in,
.js-fade-series-ele {
  opacity: 0;
  transform: translateY(15px);
  transition:
    transform 0.3s linear,
    opacity 0.4s linear;
}

.js-fade-in-right.is-shown,
.js-fade-in-left.is-shown {
  opacity: 1;
  transform: translateX(0);
}

.js-fade-in.is-shown,
.js-fade-series-ele.is-shown {
  opacity: 1;
  transform: translateY(0px);
}

.js-fade-bubble-sevral-rows-ele {
  opacity: 0;
}

.js-fade-bubble-sevral-rows-ele.is-shown {
  -webkit-animation: fadeInScale .9s ease-out forwards;
  animation: fadeInScale .9s ease-out forwards
}

.js-blur {
  opacity: 0;

  &.is-shown {
    -webkit-animation: blur .7s ease-out forwards;
    animation: blur .7s ease-out forwards
  }
}

.js-fade-up {
  opacity: 0;
  transform: translate(0, 5%);
  transition: 2s;

  &.is-shown {
    transform: translate(0, 0);
    opacity: 1;
  }
}

.js-fade-corner-right {
  clip-path: polygon(0 10%, 93% 10%, 93% 100%, 0% 100%);
  animation-fill-mode: both;
  opacity: 0;
  transition: opacity 0.5s linear;

  &.is-shown {
    opacity: 1;
    -webkit-animation: fadeCorner 1.2s ease-out forwards;
    animation: fadeCorner 1.2s ease-out forwards
  }
}

.js-fade-corner-left {
  clip-path: polygon(0 10%, 93% 10%, 93% 100%, 0% 100%);
  animation-fill-mode: both;
  opacity: 0;
  transition: opacity 0.5s linear;

  &.is-shown {
    opacity: 1;
    -webkit-animation: fadeCornerLeft 1.2s ease-out forwards;
    animation: fadeCornerLeft 1.2s ease-out forwards
  }
}

@keyframes fadeCorner {
  0% {
    clip-path: polygon(0 10%, 93% 10%, 93% 100%, 0% 100%);
  }

  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }
}

@keyframes fadeCornerLeft {
  0% {
    clip-path: polygon(7% 10%, 100% 10%, 100% 100%, 7% 100%);
  }

  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

@keyframes blur {
  0% {
    opacity: 0;
    filter: blur(15px);
  }

  100% {
    opacity: 1;
    filter: blur(0px);
  }
}

@keyframes fadeInScale {
  0% {
    -webkit-transform: scale(.8);
    transform: scale(.8);
    opacity: 0
  }

  50% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    opacity: 1
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1
  }
}

/* reCAPTCHAのロゴ非表示 */
.grecaptcha-badge {
  visibility: hidden;
}

.recaptcha-text {
  color: #A4A4A4;
  font-size: calc(var(--rem) * 10);
  display: block;
  text-align: center;
  margin-top: calc(var(--vw) * 13);

  @media screen and (min-width: 769px) {
    font-size: calc(var(--rem) * 12);
  }
}

.only-sp {
  @media screen and (min-width: 769px) {
    display: none !important;
  }
}

.only-pc {
  @media screen and (max-width: 768px) {
    display: none !important;
  }
}

.splide__list {
  align-items: center;
}


/* 共通処理 */


.c-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 140px 25px 130px 25px;
  box-sizing: border-box;
  @media screen and (max-width: 768px) {
    padding: 86px 25px 80px 25px;
  }
}
.c-page-head {
  color: #FFF;
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 283px;
  padding: 32px 10px 10px 25px;
  position: relative;
  @media screen and (min-width: 769px) {
    padding: 67px 20px 10px 113px;
    display: flex;
    gap: 40px;
    height: 355px;
  }
  &::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 85px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 100%);
  }
  .c-page-head__title {
    display: flex;
    @media screen and (max-width: 768px) {
      align-items: center;
      gap: 50px;
      margin-bottom: 15px;
    }
    @media screen and (min-width: 769px) {
      flex-direction: column;
      gap: 10px;
    }
    p {
      font-size: calc(var(--rem) * 30);
      letter-spacing: 2.4px;
      @media screen and (min-width: 769px) {
        font-size: calc(var(--rem) * 42);
        letter-spacing: 6px;
      }
    }
    h1 {
      font-size: calc(var(--rem) * 17);
      letter-spacing: 5.1px;
      @media screen and (min-width: 769px) {
        font-size: calc(var(--rem) * 20);
        letter-spacing: 3.36px;
      }
    }
  }
  .c-page-head__desc {
    font-size: calc(var(--rem) * 14);
    letter-spacing: 1.12px;
    line-height: 28px;
    @media screen and (min-width: 769px) {
      font-size: calc(var(--rem) * 17);
      letter-spacing: 1.36px;
      line-height: 33.6px;
      padding-top: 10px;
    }
  }
}

.c-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 25px;
  box-sizing: content-box;
}


.go-top {
  position: fixed;
  bottom: 35px;
  right: 26px;
  z-index: 100;
  width: 40px;
  height: 40px;
  @media screen and (min-width: 769px) {
    width: 45px;
    height: 45px;
    bottom: 50px;
    right: 50px;
  }
}

.switch-button {
  cursor: pointer;
  position: fixed;
  z-index: 10;
  @media screen and (max-width: 768px) {
    left: 0;
    bottom: 0;
    width: 155px;
  }
  @media screen and (min-width: 769px) {
    width: 193px;
    top: 0;
    right: 0;
  }
}