.custom-header {
  position: fixed;
  top: -180px;
  z-index: 101;
  left: 50%;
  transform: translateX(-50%);
  background: #FFF;
  width: 100vw;
  transition: top 0.2s linear;
  @media screen and (min-width: 769px) {
    padding: 13px 20px 13px;
  }
  @media screen and (max-width:1228px) {
    padding: 13px 10px 13px;
  }
  @media screen and (max-width: 768px) {
    padding: 23px 20px 23px;
  }
  &.is-shown {
    top: 0;
  }
}
:where(.custom-header) {
  .cutom-header__inner {
    position: relative;
    @media screen and (min-width: 769px) {
      display: flex;
      gap: 16px;
      flex-direction: column;
      max-width: 1229px;
      margin: 0 auto;
      width: 100%;
    }
  }
  .header-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 17px;
  }
  .header-cta {
    @media screen and (min-width: 769px) {
      width: 200px;
    }
    @media screen and (max-width:1228px) {
      width: 180px;
    }
    @media screen and (max-width:967px) {
      width: 150px;
    }
  }
  .header-application {
    @media screen and (min-width: 769px) {
      width: 120px;
    }
    @media screen and (max-width:1228px) {
      width: 108px;
    }
    @media screen and (max-width:967px) {
      width: 90px;
    }
  }
  .header-toggle-icon {
    width: 25px;
    @media screen and (min-width: 769px) {
      width: 34px;
      padding-left: 17px;
      box-sizing: content-box;
    }
  }
  .header-cta-wrap {
    display: flex;
    gap: 20px;
    align-items: center;
    @media screen and (max-width:967px) {
      gap: 11px;
    }
  }
  .header-logo {
    display: block;
    @media screen and (min-width: 769px) {
      width: 205px;
    }
    @media screen and (max-width:1228px) {
      width: 160px;
    }
    @media screen and (max-width:967px) {
      width: 130px;
    }
  }
  .header-menu-wrapper {
    display: flex;
    justify-content: center;
  }
  .header-menu-inner {
    padding: 0 43px 6px;
    display: flex;
    justify-content: end;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    font-size: calc(var(--rem) * 14);
    letter-spacing: 1.4px;
    height: 50px;
    border-right: 1px solid #007CA9;
    @media screen and (max-width:1228px) {
      font-size: calc(var(--rem) * 10);
      letter-spacing: 1.2px;
      padding: 0 30px 6px;
    }
    @media screen and (max-width:967px) {
      padding: 0px 23px 6px;
    }
  }
  .header-menu:first-child {
    .header-menu-inner {
      padding-left: 0;
    }
    .header-menu-text {
      &::before {
        width: 16px;
        height: 15px;
        background-image: url("../../images/icon_feature.svg");
        top: -18px;
      }
    }
  }
  .header-menu:nth-child(2) {
    .header-menu-text {
      &::before {
        width: 23px;
        height: 20px;
        top: -23px;
        background-image: url("../../images/icon_school.svg");
      }
    }
  }
  .header-menu:nth-child(3) {
    .header-menu-text {
      &::before {
        width: 20px;
        height: 20px;
        top: -24px;
        background-image: url("../../images/icon_search.svg");
      }
    }
  }
  .header-menu:nth-child(4) {
    .header-menu-text {
      &::before {
        width: 20px;
        height: 20px;
        top: -22px;
        background-image: url("../../images/icon_guidance.svg");
      }
    }
  }
  .header-menu:nth-child(5) {
    .header-menu-text {
      &::before {
        width: 13px;
        height: 19px;
        top: -21px;
        background-image: url("../../images/icon_course.svg");
      }
    }
  }
  .header-menu:nth-child(6) {
    .header-menu-text {
      &::before {
        width: 14px;
        height: 19px;
        top: -23px;
        background-image: url("../../images/icon_achievements.svg");
      }
    }
  }
  .header-menu:last-child {
    .header-menu-inner {
      padding-right: 0;
      border-right: none;
    }
    .header-menu-text {
      &::before {
        width: 23px;
        height: 18px;
        top: -23px;
        background-image: url("../../images/icon_faq.svg");
      }
    }
  }
  .header-menu-text {
    position: relative;
    &::before {
      content: "";
      left: 50%;
      transform: translateX(-50%);
      position: absolute;
      display: inline-block;
      background-size: contain;
      background-repeat: no-repeat;
    }
  }

  .hamburger {
    height: 100svh;
    width: 100vw;
    position: absolute;
    top: 0;
    right: 0;
    background: #FFF;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s linear;
    @media screen and (min-width: 769px) {
      width: 375px;
    }
    &.is-shown {
      opacity: 1;
      pointer-events: auto;
    }
  }
  .hamburger__menu-privacy {
    position: absolute;
    bottom: 33px;
    right: 25px;
    font-weight: bold;
    font-size: calc(var(--rem) * 13);
    letter-spacing: 1.56px;
    @media screen and (max-width: 768px) {
      font-size: calc(var(--rem) * 10);
      letter-spacing: 1.2px;
      bottom: 15px;
    }
  }
  .header-close-icon {
    width: 26px;
    height: 26px;
    position: absolute;
    right: 20px;
    top: 21px;
    @media screen and (min-width: 769px) {
    }
  }
  .hamburger__menu {
    display: grid;
    padding: 93px 25px 0;
    row-gap: 25px;
    @media screen and (max-width: 768px) {
      margin-bottom: 30px;
      padding: 68px 25px 0;
      column-gap: 24px;
      row-gap: 20px;
      grid-template-columns: 1fr 1fr;
    }
    @media screen and (min-width: 769px) {

    }
  }
  .hamburger__menu-link {
    font-weight: bold;
    font-size: calc(var(--rem) * 12);
    letter-spacing: 1.2px;
    display: block;
    padding: 12px 0px;
    position: relative;
    border-bottom: 0.86px solid #007CA9;
    @media screen and (min-width: 769px) {
      font-size: calc(var(--rem) * 13);
      letter-spacing: 1.56px;
    }
    &::after {
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      content: "";
      display: inline-block;
      background-size: cover;
      background-repeat: no-repeat;
      background-position: top;
      background-image: url("../../images/icon_arrow-right.svg");
      width: 10px;
      height: 8px;
    }
  }
  .hamburger__menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 11px;
    align-items: center;
  }
  .hamburger__menu-button {
    display: block;
    width: calc(var(--vw) * 249);
  }
}

.custom-footer {
  padding: calc(var(--vw) * 20) 0 calc(var(--vw) * 100);
  @media screen and (min-width: 769px) {
    padding: 50px 0 100px;
  }
}
:where(.custom-footer) {
  .footer-logo-wrap {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: calc(var(--vw) * 60);
    @media screen and (min-width: 769px) {
      margin-bottom: 65px;
    }
  }
  .footer-logo {
    width: calc(var(--vw) * 120);
    @media screen and (min-width: 769px) {
      width: 180px;
    }
  }
  .footer-copyright {
    font-size: calc(var(--rem) * 13);
    letter-spacing: 1px;
    display: block;
    text-align: center;
    color: #26282e;
    font-weight: 500;
  }
}


.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;
  @media screen and (min-width: 769px) {
    margin-bottom: 12px;
  }
}
.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 {
  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(#007CA9, #007CA9);
  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-lead {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s ease;
  transition-delay: 0.3s;
  position: relative;
  &.is-shown {
    clip-path: inset(0 0 0 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;
  display: flex;
  z-index: 100;
}

/* ページ下部共通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;
    }
  }
} 
