.red {
  color: #E00A65
}

/*header*/

.global-nav__item {
  letter-spacing: 0;
}

.buttons-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.buttons-nav__txt {
  display: inline-block;
  padding: 0 20px;
  background: #fff;
  color: #00469B;
  font-weight: 500;
  font-size: 15px;

  br.sp {
    display: none;
  }
}

@media (min-width: 768px) {

  .header,
  .header--scrolled {
    background: #00469B;
  }
}

@media (max-width: 767px) {
  .header {
    background: #00469B;
  }

  .buttons-nav {
    flex-direction: column;
  }

  .buttons-nav__txt {
    padding: 0 8px;
    text-align: left;
    font-size: 12px;

    br.sp {
      display: block;
    }
  }
}

/*header end*/

/* top-hero: clip-path計算用CSS変数（JSで実寸から算出） */
@property --hero-before-x {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}

@property --hero-after-x {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}

@property --hero-before-top-x {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}

@property --hero-after-bottom-x {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}

/* top-hero */
.top-hero {
  position: relative;
  background: #fff;
  min-height: 100vh;
  overflow: hidden;
}

.top-hero::before,
.top-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #00469B;
  z-index: 0;
}

.top-hero::before {
  /* clip-path: polygon(0% 0%, 0% 100%, 38% 100%); */
  clip-path: polygon(0 0, 4% 0, 4% 0, 0 0);
}

@keyframes topHeroBeforeReveal {
  to {
    /* 上辺右端・下辺右端の両方をJS変数で制御 */
    clip-path: polygon(0 0, var(--hero-before-top-x) 0, var(--hero-before-x) 100%, 0% 100%);
  }
}

.top-hero.is-animated::before {
  animation: topHeroBeforeReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.top-hero::after {
  clip-path: polygon(82% 100%, 100% 100%, 100% 100%, 82% 100%);
}

@keyframes topHeroAfterReveal {
  to {
    /* 上辺左端・下辺左端の両方をJS変数で制御 */
    clip-path: polygon(var(--hero-after-x) 0, 100% 0, 100% 100%, var(--hero-after-bottom-x) 100%);
  }
}

.top-hero.is-animated::after {
  animation: topHeroAfterReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* White content overlays */
.top-hero__content-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.top-hero__content-overlay .top-hero-btn .button {
  color: white;
}

.top-hero__content-overlay .top-hero-btn .button::after {
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='52.951' height='3.926' viewBox='0 0 52.951 3.926'><path id='パス_686' data-name='パス 686' d='M1346.215,1676.579h52.8l-9.622-2.948' transform='translate(-1346.215 -1673.153)' fill='none' stroke='%23fff' stroke-width='1'/></svg>");
}

.top-hero__content-overlay--before {
  clip-path: polygon(0 0, 4% 0, 4% 0, 0 0);
}

.top-hero__content-overlay--after {
  clip-path: polygon(82% 100%, 100% 100%, 100% 100%, 82% 100%);
}

.top-hero.is-animated .top-hero__content-overlay--before {
  animation: topHeroBeforeReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.top-hero.is-animated .top-hero__content-overlay--after {
  animation: topHeroAfterReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.top-hero>.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-hero__content {
  width: fit-content;
  max-width: 688px;
  margin: 50px auto 0;
  text-align: center;
}

.top-hero__scroll {
  position: absolute;
  right: 60px;
  top: auto;
  bottom: 30px;
  z-index: 2;
}

.top-hero-img {
  text-align: center;

  /* img {
    max-width: none;
    width: 100%;
  } */
}

.top-hero-txt {
  width: fit-content;
  margin: 37px auto 0;
  font-size: 22px;
  font-weight: 700;
  text-align: left;
}

.top-hero-txt span {
  display: block;
}

.top-hero-txt span:nth-child(1) {
  padding-left: 0;
}

.top-hero-txt span:nth-child(2) {
  padding-left: 1em;
}

.top-hero-txt span:nth-child(3) {
  padding-left: 2em;
}

.top-hero-txt span:nth-child(4) {
  padding-left: 3em;
}

.top-hero-btn {
  margin: 40px 0 0 200px;
  width: fit-content;

  .button {
    min-width: 162px;
    height: 32px;
    font-size: 14px;
    color: var(--font-black-color);

    &::after {
      right: -30px;
      background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='52.951' height='3.926' viewBox='0 0 52.951 3.926'><path id='パス_686' data-name='パス 686' d='M1346.215,1676.579h52.8l-9.622-2.948' transform='translate(-1346.215 -1673.153)' fill='none' stroke='%23000' stroke-width='1'/></svg>");
    }
  }
}

@media screen and (max-width: 767px) {

  .top-hero::before,
  .top-hero__content-overlay--before {
    /* 初期状態: 左端に折りたたむ（4点でtoに合わせる） */
    clip-path: polygon(0 0, var(--hero-before-top-x) 0, 0 100%, 0 100%);
  }

  @keyframes topHeroBeforeReveal {
    to {
      /* JSが --hero-before-top-x / --hero-before-x にセット */
      clip-path: polygon(0 0, var(--hero-before-top-x) 0, var(--hero-before-x) 100%, 0 100%);
    }
  }

  /* .top-hero.is-animated::before {
    animation: topHeroBeforeReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  } */

  .top-hero::after,
  .top-hero__content-overlay--after {
    /* 初期状態: 右端に折りたたむ（4点でtoに合わせる） */
    clip-path: polygon(100% 100%, 100% 100%, 100% 100%, 100% 100%);
  }

  @keyframes topHeroAfterReveal {
    to {
      /* JSが --hero-after-x / --hero-after-bottom-x にセット */
      clip-path: polygon(var(--hero-after-x) 0, 100% 0, 100% 100%, var(--hero-after-bottom-x) 100%);
    }
  }

  /* .top-hero.is-animated .top-hero__content-overlay--before {
    animation: none;
    clip-path: polygon(0 0, var(--hero-before-top-x) 0, var(--hero-before-x) 100%, 0 100%);
  }

  .top-hero.is-animated .top-hero__content-overlay--after {
    animation: none;
    clip-path: polygon(var(--hero-after-x) 0, 100% 0, 100% 100%, var(--hero-after-bottom-x) 100%);
  } */

  /* .top-hero.is-animated::after {
    animation: topHeroAfterReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  } */

  .top-hero__content {
    max-width: 355px;
  }

  .top-hero-img {
    width: 80%;
    margin: 0 auto;
  }

  .top-hero-txt {
    margin: 20px auto 0;
    font-size: 16px;
  }

  .top-hero-btn {
    margin: 20px auto 0 60px;
  }

  .top-hero__scroll {
    right: 30px;
    bottom: 25px;
  }

  /* .top-hero__content-overlay .top-hero__content {
    padding: 0 20px;
  } */
}

.wp-block-image figcaption {
  text-align: left;
  font-size: 80%;
  background-color: #EEEEEE;
  padding: 5px;
  margin-top: 0;
}

.post__content h4.has-text-color {
  border-bottom: 0;
  margin-top: 0;
}

.post__content h5.has-text-color {
  margin-top: 0;
  margin-bottom: 0;
}

.privacy-policy__title,
.privacy-policy__list__title {
  font-size: 1em;
  font-weight: bold;
}

.privacy-policy__box {
  max-height: 200px;
  overflow-y: scroll;
}

@media screen and (max-width: 767px) {
  .privacy-policy__box {
    max-height: 50svh;
  }
}

.privacy-policy__list {
  margin-bottom: 1em;
}

.privacy-policy__list__contents {
  margin: auto auto 1em 2em;
}

.privacy-policy__list__contents span {
  font-weight: bold;
}

.privacy-policy__list__innnerList {
  margin: 1em auto 1em 1em;
}

.privacy-policy__list__innnerList.cnt li {
  list-style-type: none;
  counter-increment: cnt;
}

.privacy-policy__list__innnerList.cnt li::before {
  content: "("counter(cnt) ") ";
}

.privacy-policy__list__innnerList li {
  list-style-type: decimal;
  margin-bottom: 2px;
}

.privacy-policy__text span {
  font-weight: bold;
}


.top-prologue__logo--2 {
  margin-bottom: 50px;
}

@media (max-width: 767px) {
  .top-prologue__logo--2 {
    width: 100%;
    margin-bottom: 40px;
  }
}