.custom-header {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  z-index: 100;
  top: 0;
  @media screen and (min-width: 769px) {
    padding-left: 24px;
  }
}
:where(.custom-header) {
  .custom-header__logo {
    width: 215px;
  }
  .custom-header__button {
    width: 375px;
  }
}


.custom-footer {

}

.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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 23px;

  @media screen and (min-width: 769px) {
    margin-bottom: 41px;
  }
}

.c-title__sub {
  font-weight: bold;
  font-family: "century-gothic", sans-serif;
  font-size: calc(var(--rem) * 12);
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  color: #99D2E9;

  @media screen and (min-width: 769px) {
    margin-bottom: 12px;
    font-size: calc(var(--rem) * 15);
    letter-spacing: 1.5px;
  }
}

.c-title__main {
  font-weight: bold;
  font-size: calc(var(--rem) * 17);
  letter-spacing: 0.85px;

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

/* 共通フェードアニメーション */
.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;
}

/* SP用メニュー */
.sticky-menu {
  position: fixed;
  bottom: 0;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s linear;
  &.is-shown {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ページ下部共通CTA */
.cta-bottom {}

:where(.cta-bottom) {
  .cta-bottom__text {
    font-weight: bold;
    text-align: center;
    font-size: calc(var(--rem) * 18);
    letter-spacing: 0.9px;
    margin-bottom: 30px;

    @media screen and (min-width: 769px) {
      font-size: calc(var(--rem) * 25);
      letter-spacing: 1.25px;
      margin-bottom: 32px;
    }
  }

  .cta-bottom__list {
    display: flex;
    justify-content: center;

    @media screen and (max-width: 1000px) {
      flex-direction: column;
      gap: 18px;
      align-items: center;
    }

    @media screen and (min-width: 769px) {
      gap: 24px;
    }
  }

  .cta-bottom__request {
    display: block;

    @media screen and (min-width: 769px) {
      width: 487px;
    }
  }

  .cta-bottom__cousultation {
    display: block;

    @media screen and (min-width: 769px) {
      width: 483px;
    }
  }
}