/* utility */
@media (width < 768px) {
  .u-pc {
    display: none !important;
  }
}

@media (width >=768px) {
  .u-sp {
    display: none !important;
  }
}

/* /utility */

/* layout */
.l-inner {
  width: min(100% - 64px, var(--content-width));
  margin-inline: auto;
}

/* /layout */

/* component */
.c-section-head {
  display: grid;
  gap: clamp(16px, 15.296px + 0.1878vw, 18px);
  justify-items: center;
  text-align: center;

  &.c-section-head--left {
    justify-items: start;
    text-align: left;
  }
}

.c-lead {
  font-size: clamp(14px, 13.296px + 0.1878vw, 16px);
  line-height: var(--lh-base);
}

.c-arrow {
  display: inline-block;
  flex-shrink: 0;
  width: 21px;
  height: 15px;
  background-color: currentColor;
  mask: url(../img/ico-arrow.svg) no-repeat center / contain;

  &.c-arrow--up {
    rotate: -90deg;
  }
}

.c-btn {
  --btn-w: clamp(200px, 185.92px + 3.756vw, 240px);
  --btn-bg: var(--color-brand);
  --btn-color: var(--color-white);
  --btn-border: var(--color-brand);
  --btn-hover-bg: var(--color-white);
  --btn-hover-color: var(--color-brand);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: var(--btn-w);
  max-width: 100%;
  padding: clamp(22px, 21.296px + 0.1878vw, 24px) 24px;
  font-family: var(--font-heading);
  font-size: var(--fs-btn);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-btn);
  color: var(--btn-color);
  background-color: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 100px;

  &.c-btn--white {
    --btn-bg: var(--color-white);
    --btn-color: var(--color-brand);
    --btn-border: var(--color-white);
    --btn-hover-bg: var(--color-brand);
    --btn-hover-color: var(--color-white);
  }

  &.c-btn--icon {
    width: auto;
    padding: 16px 24px;
  }
}

.c-btn__icon {
  position: relative;
  flex-shrink: 0;
  width: 21px;
  height: 15px;
  overflow: hidden;

  &::before,
  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: currentColor;
    mask: url(../img/ico-arrow.svg) no-repeat center / contain;
    animation-duration: 0.6s;
    animation-timing-function: var(--ease-out);
    animation-fill-mode: forwards;
  }

  &::after {
    translate: -100% 0;
  }
}

@media (any-hover: hover) {

  .c-btn:hover,
  .c-banner:hover .c-btn {
    color: var(--btn-hover-color);
    background-color: var(--btn-hover-bg);

    & .c-btn__icon::before {
      animation-name: arrow-out;
    }

    & .c-btn__icon::after {
      animation-name: arrow-in;
      animation-delay: 0.2s;
    }
  }
}

@keyframes arrow-out {
  from {
    translate: 0 0;
  }

  to {
    translate: 100% 0;
  }
}

@keyframes arrow-in {
  from {
    translate: -100% 0;
  }

  to {
    translate: 0 0;
  }
}

.c-title-en {
  font-family: var(--font-en);
  font-size: var(--fs-en-title);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-base);
  color: var(--color-brand);

  &.c-title-en--white {
    color: var(--color-white);
  }
}

.c-title-jp {
  font-family: var(--font-heading);
  font-size: var(--fs-heading);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-base);
}

.c-zoom {
  overflow: hidden;

  & img {
    transition: scale 0.6s var(--ease-out);
  }
}

@media (any-hover: hover) {

  a:hover .c-zoom img,
  .c-zoom:hover img {
    scale: 1.05;
  }
}

.c-page-head {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 210px;
  padding-block: 56px 48px;
  background-color: var(--color-blue-03);
  border-bottom-right-radius: clamp(72px, 60.732px + 3.005vw, 104px);

  @media (width >=768px) {
    min-height: 300px;
  }

  @media (width >=1200px) {
    min-height: 430px;
  }
}

.c-page-head__inner {
  width: min(100% - 48px, var(--content-width));
  margin-inline: auto;
}

.c-page-head__title {
  display: grid;
  gap: 12px;
  justify-items: start;
  color: var(--color-brand);
}

.c-page-head__en {
  font-family: var(--font-en);
  font-size: clamp(40px, 28.028px + 3.192vw, 74px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-base);
}

.c-page-head__jp {
  display: flex;
  gap: clamp(12px, 10.592px + 0.3756vw, 16px);
  align-items: center;
  font-family: var(--font-jp);
  font-size: clamp(12px, 9.887px + 0.5634vw, 18px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: var(--ls-base);

  &::before {
    content: "";
    flex-shrink: 0;
    width: clamp(6px, 4.592px + 0.3756vw, 10px);
    aspect-ratio: 1;
    background-color: currentColor;
    border-radius: 50%;
  }
}

.c-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 992px;
  margin: clamp(80px, 65.92px + 3.756vw, 120px) auto 0;
  padding: 32px 24px 24px;
  background-color: var(--color-blue-02);
  border-radius: clamp(24px, 21.183px + 0.7512vw, 32px);

  @media (width >=768px) {
    display: grid;
    grid-template-columns: minmax(0, 477fr) 16px minmax(0, 247fr) 8px 108px;
    gap: 0;
    align-items: start;
    padding: 48px clamp(32px, 20.732px + 3.005vw, 64px) 48px clamp(32px, 17.915px + 3.756vw, 72px);
  }
}

.c-banner__body {
  display: grid;
  gap: clamp(24px, 21.183px + 0.7512vw, 32px);
  color: var(--color-text);
}

.c-banner__head {
  display: grid;
  gap: clamp(8px, 5.183px + 0.7512vw, 16px);
}

.c-banner__label {
  display: flex;
  gap: clamp(10px, 7.887px + 0.5634vw, 16px);
  align-items: center;
  font-family: var(--font-en);
  font-size: clamp(12px, 10.239px + 0.4695vw, 17px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-base);
  color: var(--color-brand);

  &::before {
    content: "";
    flex-shrink: 0;
    width: clamp(8px, 7.296px + 0.1878vw, 10px);
    aspect-ratio: 1;
    background-color: currentColor;
    border-radius: 50%;
  }
}

.c-banner__title {
  margin-right: -0.08em;
  font-family: var(--font-heading);
  font-size: clamp(24px, 20.479px + 0.939vw, 34px);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-base);
}

.c-banner__img {
  width: 183px;
  align-self: center;

  @media (width >=768px) {
    grid-column: 3;
    width: 100%;
  }
}

.c-banner .c-banner__btn {
  width: 108px;
  padding-block: 15px;
  justify-content: center;
  align-self: end;

  @media (width >=768px) {
    grid-column: 5;
  }
}

.c-breadcrumb {
  margin-top: 160px;

  & ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    font-size: 12px;
    line-height: 1;
    letter-spacing: var(--ls-base);
  }

  & li {
    display: flex;
    gap: 8px;
    align-items: center;

    &+li::before {
      content: "";
      width: 5px;
      height: 5px;
      margin-left: -2px;
      border-top: 1px solid var(--color-brand);
      border-right: 1px solid var(--color-brand);
      rotate: 45deg;
    }
  }

  & [aria-current="page"] {
    color: #6a747c;
  }
}

@media (any-hover: hover) {
  .c-breadcrumb a:hover {
    color: var(--color-brand);
  }
}

/* /component */

/* motion */
html.is-reveal [data-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);

  &.is-shown {
    opacity: 1;
    translate: 0 0;
  }
}

/* /motion */

/* header */
.l-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
}

.l-header__logo a {
  display: block;
}

@media (width >=1200px) {
  .l-header {
    pointer-events: none;

    & a,
    & button {
      pointer-events: auto;
    }
  }

  .l-header__logo {
    position: absolute;
    top: 26px;
    left: 32px;
  }

  .l-header__logo-sp,
  .l-header__toggle {
    display: none;
  }

  .l-header__nav {
    position: absolute;
    top: 48px;
    right: 48px;
    display: flex;
    gap: 24px;
    align-items: center;
    height: 70px;
    padding: 0 12px 0 45px;
    background-color: var(--color-white);
    border-radius: 100px;
    box-shadow: 0 0 30px rgb(141 195 222 / 0.16);
  }

  .l-header__menu {
    display: flex;
    gap: 24px;
  }

  .l-header__link {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: var(--ls-btn);
  }

  .l-header__cta {
    padding: 16px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.11em;
    color: var(--color-white);
    background-color: var(--color-brand);
    border: 1px solid var(--color-brand);
    border-radius: 100px;
  }

  .l-header__item {
    position: relative;
    display: flex;
    align-items: center;
  }

  .l-header__parent {
    display: flex;
    gap: 6px;
    align-items: center;

    &[aria-expanded="true"] {
      color: var(--color-brand);
    }
  }

  .l-header__chevron {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    rotate: 45deg;
    translate: 0 0;
    transition: rotate 0.3s, translate 0.3s;

    [aria-expanded="true"]>& {
      rotate: 225deg;
      translate: 0 2px;
    }
  }

  .l-header__sub {
    position: absolute;
    top: calc(100% + 34px);
    left: 50%;
    padding: 28px 32px;
    visibility: hidden;
    background-color: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 0 30px rgb(141 195 222 / 0.16);
    opacity: 0;
    translate: -50% -8px;
    transition: opacity 0.3s, translate 0.3s var(--ease-out), visibility 0.3s;

    &::before {
      content: "";
      position: absolute;
      inset: -34px 0 100%;
    }

    [aria-expanded="true"]+& {
      visibility: visible;
      opacity: 1;
      translate: -50% 0;
      pointer-events: auto;
    }
  }

  .l-header__sub-list {
    display: grid;
    gap: 18px;
  }

  .l-header__sub-link {
    position: relative;
    display: block;
    padding-left: 20px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: var(--ls-btn);
    white-space: nowrap;

    &::before {
      content: "";
      position: absolute;
      top: 0.7em;
      left: 0;
      width: 6px;
      height: 6px;
      background-color: var(--color-blue-01);
      border-radius: 50%;
      translate: 0 -50%;
    }

  }

  @media (any-hover: hover) {
    .l-header__link:hover {
      color: var(--color-brand);
    }

    .l-header__sub-link:hover {
      color: var(--color-brand);
    }

    .l-header__cta:hover {
      color: var(--color-brand);
      background-color: var(--color-white);
    }
  }
}

@media (width < 1200px) {
  .l-header {
    height: 71px;
    background-color: var(--color-white);
  }

  .l-header__logo {
    position: absolute;
    top: 15px;
    left: 16px;
  }

  .l-header__logo-pc,
  .l-header__nav {
    display: none;
  }

  .l-header__toggle {
    position: absolute;
    top: 10.5px;
    right: 11px;
    width: 50px;
    height: 50px;
    color: var(--color-text);
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;

    & span {
      position: absolute;
      left: 12px;
      width: 26px;
      height: 1px;
      background-color: currentColor;
      transition: top 0.3s, rotate 0.3s, left 0.3s, width 0.3s;

      &:nth-child(1) {
        top: 21.5px;
      }

      &:nth-child(2) {
        top: 27.5px;
      }
    }

    &[aria-expanded="true"] {
      color: var(--color-white);
      background-color: var(--color-brand);

      & span {
        top: 24.5px;
        left: 14px;
        width: 22px;

        &:nth-child(1) {
          rotate: 45deg;
        }

        &:nth-child(2) {
          rotate: -45deg;
        }
      }
    }
  }

  .l-main {
    padding-top: 71px;
  }
}

/* /header */

/* drawer */
.p-drawer {
  position: fixed;
  inset: 71px 0 0;
  z-index: 99;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--color-white);
  background-color: var(--color-brand);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s, visibility 0.4s;

  html.is-drawer-open & {
    visibility: visible;
    opacity: 1;
  }

  @media (width >=1200px) {
    display: none;
  }
}

html.is-drawer-open {
  overflow: hidden;
}

.p-drawer__inner {
  padding: 35px 32px 56px;
}

.p-drawer__item {
  border-bottom: 1px solid rgb(255 255 255 / 0.2);
}

.p-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 0;
  font-size: 15px;
  line-height: 1;
  text-align: left;
}

.p-drawer__plus {
  position: relative;
  width: 16px;
  height: 16px;

  &::before,
  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transition: rotate 0.3s;
  }

  &::after {
    rotate: 90deg;
  }

  [aria-expanded="true"]>&::after {
    rotate: 0deg;
  }
}

.p-drawer__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);

  &>* {
    overflow: hidden;
  }

  [aria-expanded="true"]+& {
    grid-template-rows: 1fr;
  }
}

.p-drawer__sub {
  display: grid;
  gap: 16px;
  font-size: 13px;

  & li:last-child {
    padding-bottom: 23px;
  }

  & a {
    position: relative;
    display: block;
    padding-left: 22px;

    &::before {
      content: "";
      position: absolute;
      top: 0.9em;
      left: 0;
      width: 6px;
      height: 6px;
      background-color: var(--color-blue-01);
      border-radius: 50%;
      translate: 0 -50%;
    }
  }
}

.p-drawer__btn {
  --btn-w: 100%;

  margin-top: 41px;
}

.p-drawer__privacy {
  display: block;
  width: fit-content;
  margin: 70px auto 0;
  font-size: 12px;
  line-height: 1;
}

/* /drawer */

/* footer */
.l-footer {
  --footer-split: 531px;

  margin-top: 160px;

  background: linear-gradient(var(--color-white) var(--footer-split), var(--color-blue-03) var(--footer-split));

  @media (width >=768px) {
    --footer-split: 337px;
  }
}

.l-main:has(> .c-breadcrumb:last-child)+.l-footer {
  margin-top: clamp(24px, 21.183px + 0.7512vw, 32px);
}

.l-footer__cta {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 72px 32px 114px;
  color: var(--color-white);
  text-align: center;
  background-color: var(--color-brand);
  border-radius: 48px;

  @media (width >=768px) {
    grid-template-areas:
      "head text"
      "btn .";
    grid-template-columns: minmax(0, 489px) minmax(0, 625px);
    justify-items: start;
    margin-left: max(20px, calc((100% - var(--content-width)) / 2));
    padding: 72px 40px 72px clamp(40px, 5.76vw, 83px);
    text-align: left;
    border-radius: 48px 0 0 48px;
  }
}

.l-footer__cta-head {
  @media (width >=768px) {
    grid-area: head;
  }
}

.l-footer__cta-title {
  margin-top: 16px;
  font-size: var(--fs-heading);
  line-height: 1.3;

  @media (width >=768px) {
    margin-top: 24px;
    line-height: 1.4;
  }
}

.l-footer__cta-text {
  margin-top: 26px;
  font-size: 14px;
  line-height: var(--lh-lead);
  text-align: left;

  & p+p {
    margin-top: 1.5em;
  }

  @media (width >=768px) {
    grid-area: text;
    margin-top: 0;
    font-size: 16px;
    line-height: 2.4;
  }
}

.l-footer__cta-btn {
  --btn-w: 269px;

  margin-top: 30px;

  @media (width >=768px) {
    --btn-w: 295px;

    grid-area: btn;

    margin-top: 64px;
  }
}

.l-footer__cta-img {
  position: absolute;
  bottom: -57px;
  left: 14px;
  width: calc(100% - 29px);

  @media (width >=768px) {
    right: 3.68vw;
    bottom: -55px;
    left: auto;
    width: min(655px, 45.5vw);
  }
}

.l-footer__body {
  display: grid;
  gap: 72px;
  padding: 138px 32px 0;

  @media (width >=1024px) {
    grid-template-areas:
      "info nav"
      "info sns";
    grid-template-columns: minmax(0, 449fr) minmax(0, 751fr);
    align-items: end;
    gap: 136px 0;
    max-width: calc(var(--content-width) + 80px);
    margin-inline: auto;
    padding: 222px 40px 0;
  }
}

.l-footer__info {
  display: flex;
  gap: 40px;
  align-items: start;
  margin-right: -8px;

  @media (width >=1024px) {
    grid-area: info;
    flex-direction: column;
    margin-right: 0;
    gap: 44px;
    align-self: stretch;
  }
}

.l-footer__logo {
  flex-shrink: 0;
  width: 96px;

  @media (width >=1024px) {
    width: 136px;
  }
}

.l-footer__address {
  font-size: 12px;
  line-height: var(--lh-base);

  & p+p {
    margin-top: 24px;
  }

  @media (width >=1024px) {
    margin-top: auto;
    font-size: 14px;
    line-height: 1.6;

    & p+p {
      margin-top: 38px;
    }
  }
}

.l-footer__nav {
  display: grid;
  grid-template-columns: 47% 1fr;
  gap: 24px 0;
  align-items: start;

  @media (width >=1024px) {
    grid-area: nav;
    grid-template-columns: minmax(0, 320fr) minmax(0, 267fr) auto;
    gap: 0;
  }
}

.l-footer__head {
  display: block;
  width: fit-content;
  font-size: 15px;
  font-weight: 700;
  line-height: var(--lh-base);

  @media (width >=1024px) {
    font-size: clamp(15px, 6.134px + 0.866vw, 17px);
    word-break: auto-phrase;
  }
}

.l-footer__group {
  margin-bottom: 8px;

  @media (width >=1024px) {
    margin-bottom: 0;

    &.l-footer__group--about {
      grid-row: 1 / 3;
      grid-column: 1;
    }

    &.l-footer__group--program {
      grid-row: 1;
      grid-column: 2;
    }
  }
}

.l-footer__sub {
  display: grid;
  gap: 16px;
  margin-top: 15px;
  font-size: 13px;
  line-height: var(--lh-base);

  & a {
    position: relative;
    display: block;
    width: fit-content;
    padding-left: 22px;

    &::before {
      content: "";
      position: absolute;
      top: 0.9em;
      left: 0;
      width: 6px;
      height: 6px;
      background-color: var(--color-brand);
      border-radius: 50%;
      translate: 0 -50%;
    }
  }

  @media (width >=1024px) {
    gap: 12px;
    margin-top: 10px;
    font-size: clamp(14px, 5.134px + 0.866vw, 16px);

    & a {
      padding-left: 32px;

      &::before {
        left: 10px;
      }
    }
  }
}

.l-footer__links {
  display: contents;

  @media (width >=1024px) {
    display: grid;
    align-content: start;

    &.l-footer__links--main {
      grid-row: 2;
      grid-column: 2;
      gap: 20px;
      margin-top: 35px;

      & .l-footer__head {
        font-size: clamp(14px, 5.134px + 0.866vw, 16px);
      }
    }

    &.l-footer__links--sub {
      grid-row: 1 / 3;
      grid-column: 3;
      gap: 20px;
    }
  }
}

.l-footer__sns {
  display: flex;
  gap: 16px;
  justify-content: center;

  @media (width >=1024px) {
    grid-area: sns;
    justify-self: start;
    margin-left: 87px;
  }
}

.l-footer__sns-link {
  display: grid;
  place-items: center;
  width: clamp(55px, 51.83px + 0.845vw, 64px);
  aspect-ratio: 1;
  color: var(--color-white);
  background-color: var(--color-brand);
  border-radius: 50%;
}

.l-footer__pagetop {
  display: grid;
  gap: 8px;
  justify-items: center;
  width: fit-content;
  margin-inline: auto;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-base);
  color: var(--color-brand);

  @media (width >=1024px) {
    grid-area: sns;
    justify-self: end;
    margin-inline: 0;
  }
}

.l-footer__bottom {
  display: grid;
  gap: 24px;
  justify-items: center;
  margin: 24px 32px 0;
  padding: 24px 0 33px;
  border-top: 1px dotted var(--color-brand);

  @media (width >=768px) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--content-width);
    margin: 104px auto 0;
    padding: 40px 0 47px;

    @media (width < 1280px) {
      margin-inline: 40px;
    }
  }
}

.l-footer--simple {
  background: var(--color-blue-03);

  & .l-footer__bottom {
    gap: 28px;
    max-width: none;
    margin: 0;
    padding: 40px 32px;
    border-top: 0;

    @media (width >=768px) {
      margin: 0;
      padding: 50px max(40px, (100% - var(--content-width)) / 2);
    }
  }
}

.l-footer__privacy {
  font-size: 12px;
  line-height: var(--lh-base);
}

.l-footer__copy {
  font-size: 10px;
  line-height: var(--lh-base);
  text-align: center;

  & small {
    font-size: inherit;
  }

  @media (width >=768px) {
    font-size: 12px;
    text-align: right;
  }
}

@media (any-hover: hover) {

  .l-footer__head:is(a):hover,
  .l-footer__sub a:hover,
  .l-footer__privacy:hover {
    color: var(--color-brand);
  }

  .p-drawer a:hover,
  .p-drawer button:hover {
    opacity: 0.7;
  }

  .p-drawer .c-btn:hover {
    opacity: 1;
  }

  .l-footer__sns-link:hover,
  .l-footer__pagetop:hover {
    opacity: 0.7;
  }
}

/* /footer */