@layer base, components, utilities;

@layer base {
  html {
    scroll-behavior: smooth;
    @media (768px <= width) {
      font-size: min(calc(100vw / 128), 10px);
    }
    @media (width < 768px) {
      font-size: calc(100vw / 37.5);
    }
  }

  body {
    font-family: var(--font-main);
    font-size: var(--fz-16);
    font-optical-sizing: auto;
    font-feature-settings: "palt";
    line-height: 1.6;
    color: var(--text-main);
  }
}

@layer components {
  /* パーツ */
  .en {
    font-family: var(--font-en);
  }
  .title-box {
    font-weight: 700;
    .en {
      font-size: 2.4rem;
      @media (width < 768px) {
        font-size: var(--fz-16);
      }
    }
    h2 {
      font-size: 4.8rem;
      line-height: 1.2;
      @media (width < 768px) {
        font-size: 3.2rem;
      }
    }
    h2:not(:first-child) {
      margin-top: 2rem;
      @media (width < 768px) {
        margin-top: 1rem;
      }
    }
    h3 {
      font-size: 3.2rem;
      line-height: 1.2;
      @media (width < 768px) {
        font-size: 2rem;
      }
    }
    h4 {
      font-size: 2.4rem;
      line-height: 1.2;
      @media (width < 768px) {
        font-size: 2rem;
      }
    }
    h5 {
      font-size: 2rem;
      line-height: 1.2;
      @media (width < 768px) {
        font-size: 1.8rem;
      }
    }
  }
  .title-box:has(h2)+* {
    margin-top: 4rem;
  }
  .title-box:has(h3)+* {
    margin-top: 2rem;
  }
  .title-box:has(h4)+*,.title-box:has(h5)+* {
    margin-top: 1rem;
  }
  .icon-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--secondary-color);
    border-radius: 100%;
    font-size: var(--fz-14);
    font-weight: 700;
    font-family: var(--font-en);
    line-height: 1;
  }
  .image-box {
    border-radius: 2.4rem;
    overflow: hidden;
    @media (width < 768px) {
      border-radius: 1.6rem;
    }
  }
  .overlay-block {
    position: relative;
    p {
      font-size: var(--fz-18);
      font-weight: 700;
      @media (width < 768px) {
        font-size: var(--fz-16);
      }
    }
  }
  .overlay-block>.inner {
    color: #fff;
    position: relative;
    z-index: 2;
    @media (768px <= width) {
      display: flex;
      align-items: center;
      gap: 8rem;
      padding-top: 10rem;
      padding-bottom: 10rem;
      .image-box {
        width: calc(58% - 4rem);
      }
      .text-box {
        width: calc(42% - 4rem);
      }
    }
    @media (width < 768px) {
      padding-bottom: 7rem;
      .text-box {
        margin-top: 4rem;
      }
    }
  }
  .overlay-block+.overlay-block {
    margin-top: 10rem;
  }
  .overlay-block:nth-child(even)>.inner {
    flex-direction: row-reverse;
  }
  .overlay-block::before {
    content: '';
    display: block;
    width: 75%;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: 1;
  }
  @media (width < 768px) {
    .overlay-block::before {
      width: 100%;
      height: calc(100% - 8rem);
      top: auto;
      bottom: 0;
    }
  }
  .overlay-block:nth-child(even)::before {
    border-radius: 0 4rem 4rem 0;
    background-color: var(--secondary-color);
    left: 0;
  }
  @media (width < 768px) {
    .overlay-block:nth-child(even)::before {
      border-radius: 0 3rem 3rem 0;
    }
  }
  .overlay-block:nth-child(odd)::before {
    border-radius: 4rem 0 0 4rem;
    background-color: var(--primary-color);
    right: 0;
  }
  @media (width < 768px) {
    .overlay-block:nth-child(odd)::before {
      border-radius: 3rem 0 0 3rem;
    }
  }

  /* Decoration */
  .deco-triangle {
    position: relative;
    * {
      position: relative;
      z-index: 2;
    }
  }
  .deco-triangle::before {
    content: '';
    display: block;
    width: 38rem;
    aspect-ratio: 4/5.7;
    position: absolute;
    top: 0;
    pointer-events: none;
    z-index: 1;
  }
  @media (width < 768px) {
    .deco-triangle::before {
      width: 17rem;
    }
  }
  .deco-triangle.type-1-right::before {
    background: url(../img/common/deco-triangle-1.png) no-repeat center center / contain;
    right: 0;
    transform: translate3d(50%,-60%,0);
  }
  @media (width < 768px) {
    .deco-triangle.type-1-right::before {
      transform: translate3d(20%,-65%,0);
    }
  }
  .deco-triangle.type-1-left::before {
    background: url(../img/common/deco-triangle-1.png) no-repeat center center / contain;
    left: 0;
    transform: translate3d(-50%,-60%,0) scaleX(-1);
  }
  @media (width < 768px) {
    .deco-triangle.type-1-left::before {
      transform: translate3d(-20%,-65%,0) scaleX(-1);
    }
  }
  .deco-triangle.type-2-right::before {
    background: url(../img/common/deco-triangle-2.png) no-repeat center center / contain;
    right: 0;
    transform: translate3d(40%,-10%,0);
  }
  @media (width < 768px) {
    .deco-triangle.type-2-right::before {
      transform: translate3d(20%,-25%,0);
    }
  }
  .deco-triangle.type-2-left::before {
    background: url(../img/common/deco-triangle-2.png) no-repeat center center / contain;
    left: 0;
    transform: translate3d(-50%,-10%,0) scaleX(-1);
  }
  @media (width < 768px) {
    .deco-triangle.type-2-left::before {
      transform: translate3d(-20%, -25%, 0) scaleX(-1);
    }
  }
  .deco-triangle.type-3-right::before {
    background: url(../img/common/deco-triangle-3.png) no-repeat center center / contain;
    right: 0;
    transform: translate3d(50%,-30%,0);
  }
  @media (width < 768px) {
    .deco-triangle.type-3-right::before {
      transform: translate3d(20%,-30%,0);
    }
  }
  .deco-triangle.type-3-left::before {
    background: url(../img/common/deco-triangle-3.png) no-repeat center center / contain;
    left: 0;
    transform: translate3d(-60%,-30%,0) scaleX(-1);
  }
  @media (width < 768px) {
    .deco-triangle.type-3-left::before {
      transform: translate3d(-20%,-30%,0) scaleX(-1);
    }
  }
  @media (768px <= width) {
    .deco-triangle.center::before {
      top: 0;
      bottom: 0;
      margin: auto 0;
      transform: translate3d(-50%,0,0) scaleX(-1);
    }
  }
  @media (width < 768px) {
    .deco-triangle.center::before {
      transform: translate3d(-20%,0,0) scaleX(-1);
    }
  }

  /* header */
  header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 50;
    pointer-events: none;
    .left-block,.right-block,.menu-list {
      pointer-events: all;
    }
  }
  .header-inner {
    margin: 0 auto;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    @media (width < 768px) {
      padding: 1rem;
    }
    .left-block {
      display: flex;
      align-items: center;
      gap: 2rem;
      background-color: #fff;
      border-radius: 30px;
      padding: 1rem 4rem;
      @media (width < 768px) {
        padding: 0.7rem 2.7rem;
      }
      img {
        max-width: 8.8rem;
        height: auto;
        @media (width < 768px) {
          max-width: 7rem;
        }
      }
      @media (768px <= width) {
        a {
          transition: opacity .6s var(--ease);
        }
        a:hover {
          opacity: .4;
        }
      }
    }
    .sns-list {
      display: flex;
      align-items: center;
      gap: 2rem;
      li {
        width: 2rem;
      }
    }
    .right-block {
      display: flex;
      align-items: center;
      gap: 2rem;
      .button-wrap {
        gap: 2rem !important;
      }
    }
  }
  /* グローバルメニュー */
  html.is-menu-open,
  html.is-menu-open body {
    overflow: hidden;
  }
  .menu-list {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: block;
    background-color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .menu-list__panel::before {
    content: '';
    display: block;
    width: 38rem;
    aspect-ratio: 4/5.7;
    pointer-events: none;
    background: url(../img/common/deco-triangle-1.png) no-repeat center center / contain;
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate3d(15%, 10%, 0);
    z-index: 1;
  }
  @media (width < 768px) {
    .menu-list__panel::before {
      width: 17rem;
      transform: translate3d(20%, 45%, 0);
    }
  }
  .menu-list__panel {
    width: 90vw;
    max-width: 90vw;
    height: 100%;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 5rem 0 0 5rem;
    padding: 12rem 8rem 12rem 12rem;
    display: flex;
    gap: 10rem;
    transform: translateX(100vw);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    @media (768px <= width) {
      overflow: hidden;
    }
    @media (width < 768px) {
      overflow-x: hidden;
      flex-direction: column;
      gap: 4rem;
      padding: 5rem 2.4rem;
    }
    * {
      z-index: 2;
    }
    .logo {
      @media (width < 768px) {
        width: 70%;
        margin: 4rem auto 0;
      }
    }
    .left-block {
      @media (768px <= width) {
        width: 26%;
      }
      .sns-list {
        display: flex;
        justify-content: center;
        gap: 3rem;
        @media (768px <= width) {
          margin-top: 8rem;
        }
        li {
          width: 2.4rem;
          a {
            @media (768px <= width) {
              transition: opacity .6s var(--ease);
            }
          }
          a:hover {
            @media (768px <= width) {
              opacity: .4;
            }
          }
        }
      }
      .button-wrap {
        @media (768px <= width) {
          margin: 0 auto;
          position: absolute;
          bottom: 12rem;
          left: 0;
          right: 0;
        }
        @media (width < 768px) {
          margin-top: 4rem;
        }
      }
    }
    .right-block {
      a {
        @media (768px <= width) {
          transition: opacity .6s var(--ease);
        }
      }
      a:hover {
        @media (768px <= width) {
          opacity: .4;
        }
      }
      .menu-link {
        display: grid;
        @media (768px <= width) {
          grid-template-rows: repeat(4, auto);
          grid-auto-flow: column;
          gap: 4rem 10rem;
        }
        @media (width < 768px) {
          gap: 3rem 0;
          grid-template-columns: repeat(1, 1fr);
        }
        p {
          color: var(--primary-color);
          font-size: 2.4rem;
          font-weight: 700;
          line-height: 1.4;
          @media (width < 768px) {
            font-size: 2rem;
          }
          .en {
            display: block;
            color: var(--secondary-color);
            font-size: var(--fz-16);
          }
        }
      }
    }
  }
  .is-menu-open {
    .menu-list {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }
    .menu-list__panel {
      transform: translateX(10vw);
    }
  }

  /* footer */
  footer {
    background-color: var(--primary-color);
    padding: 10rem 0 6rem;
    color: #fff;
    @media (width < 768px) {
      padding: 5rem 0 3rem;
    }
    .footer-top,.footer-bottom {
      @media (768px <= width) {
        display: flex;
        justify-content: space-between;
        gap: 8rem;
      }
    }
    .footer-bottom {
      border-top: 1px solid #fff;
      margin-top: 8rem;
      padding-top: 4rem;
      @media (width < 768px) {
        margin-top: 5rem;
        padding-top: 3.5rem;
      }
      a {
        font-size: var(--fz-14);
      }
      p {
        font-size: 1rem;
        @media (width < 768px) {
          margin-top: 3rem;
        }
      }
    }
    .nav {
      li:not(:first-child) {
        margin-top: 1rem;
      }
      a {
        font-weight: 700;
      }
    }
    .logo {
      width: 30rem;
      @media (width < 768px) {
        width: 70%;
        margin-top: 5rem;
        margin-right: auto;
        margin-left: auto;
      }
    }
    @media (width < 768px) {
      .sns-list {
        display: flex;
        justify-content: center;
        gap: 4rem;
        margin-top: 5rem;
        li {
          width: 2.4rem;
        }
      }
    }
  }

  /* Fixed Button */
  .fixed-btn {
    width: 12rem;
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 100;
    @media (768px <= width) {
      a {
        transition: opacity .6s var(--ease);
      }
      a:hover {
        opacity: .6;
      }
    }
    @media (width < 768px) {
      width: 10rem;
    }
    .close-btn {
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 2.8rem;
      height: 2.8rem;
      background-color: #fff;
      border: 1px solid var(--cGray2);
      border-radius: 100%;
      position: absolute;
      top: 0;
      right: 0;
      z-index: 101;
      @media (768px <= width) {
        transition: transform .6s var(--ease);
      }
    }
    .close-btn:hover {
      transform: scale(1.2);
    }
    .close-btn::after {
      content: '×';
      display: block;
      color: #000;
      font-size: var(--fz-18);
      line-height: .1;
    }
  }

  /* button-wrap */
  .button-wrap {
    display: flex;
    @media (768px <= width) {
      justify-content: center;
      align-items: flex-start;
      gap: 8rem;
    }
    @media (width < 768px) {
      flex-direction: column;
      gap: 2rem;
    }
  }
  /* button */
  .button {
    border: 2px solid var(--cGray2);
    border-radius: 4rem;
    font-weight: 700;
    text-align: left;
    position: relative;
  }
  .button::before {
    content: "";
    margin: auto 0;
    position: absolute;
    top: 0;
    bottom: 0;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' fill='none' viewBox='0 0 11 11'%3E%3Cmask id='a' width='11' height='11' x='0' y='0' maskUnits='userSpaceOnUse' style='mask-type:alpha'%3E%3Cpath fill='%23d9d9d9' d='M0 0h10.667v10.667H0z'/%3E%3C/mask%3E%3Cg mask='url(%23a)'%3E%3Cpath fill='%23fff' d='M7.189 5.778H1.778v-.89h5.41L4.7 2.4l.633-.622L8.89 5.333 5.333 8.89 4.7 8.267z'/%3E%3C/g%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    z-index: 1;
    transition: all ease 300ms;
  }
  /* タイプ１ */
  .button.type-1 {
    overflow: hidden;
    display: inline-block;
    @media (width < 768px) {
      display: block;
      width: 80%;
      margin: 0 auto;
    }
  }
  .button.type-1::before {
    right: 2rem;
  }
  .button.type-1.bg-white {
    background-color: #fff;
    color: var(--primary-color);
  }
  .button.type-1.bg-white::after {
    background-color: #FFE2E4;
  }
  .button.type-1.bg-white::before {
    background-color: var(--primary-color);
  }
  .button.type-1.bg-yellow {
    background-color: var(--cYellow1);
    color: #000;
  }
  .button.type-1.bg-yellow::after {
    background-color: #fff;
  }
  .button.type-1.bg-yellow::before {
    background-color: #000;
  }
  .button.type-1::after {
    content: '';
    aspect-ratio: 1/1;
    display: block;
    height: 100%;
    border-left: 2px solid var(--cGray2);
    position: absolute;
    top: 0;
    right: 0;
  }
  /* タイプ２ */
  .button.type-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .button.type-2::before {
    right: 2rem;
  }
  .button.type-2.bg-pink {
    background-color: #FFE2E4;
    color: var(--primary-color);
  }
  .button.type-2.bg-pink::before {
    background-color: var(--primary-color);
  }
  .button.type-2.bg-yellow {
    background-color: var(--cYellow1);
    color: #000;
  }
  .button.type-2.bg-yellow::before {
    background-color: #000;
  }
  /* 共通設定 */
  @media (min-width: 768px) {
    .button.forward-link {
      transition: all 0.6s var(--ease);
    }
    .button.forward-link:hover {
      opacity: .4;
    }
    .button.forward-link:hover::before {
      transform: scale(1.4);
    }
  }
  .button.outside-link {
    transition: all 0.6s var(--ease);
  }
  .button.outside-link::before {
    transform: rotate(-45deg);
  }
  @media (min-width: 768px) {
    .button.outside-link:hover {
      opacity: .4;
    }
    .button.outside-link:hover::before {
      transform: rotate(-45deg) scale(1.4);
    }
  }
  .button.header-small {
    min-width: 12rem;
    padding: 0.7rem 1.5rem;
    font-size: var(--fz-14);
  }
  .button.header-small::before {
    width: 1.5rem;
    height: 1.5rem;
    right: 1rem;
  }
  .button.small {
    min-width: 26rem;
    padding: 1.2rem 8rem 1.2rem 3rem;
    font-size: var(--fz-16);
  }
  .button.small::before {
    width: 1.8rem;
    height: 1.8rem;
  }
  .button.large {
    min-width: 36rem;
    padding: 1.6rem 8rem 1.6rem 3rem;
    font-size: var(--fz-18);
    @media (width < 768px) {
      min-width: auto;
      width: 100%;
    }
  }
  .button.large::before {
    width: 2rem;
    height: 2rem;
  }
  .button.icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    img {
      width: auto;
      height: 2rem;
    }
  }

  /* テキストリンク */
  .link-forward,
  .link-outside {
    display: flex;
    align-items: center;
    position: relative;
    gap: 8px;
    width: fit-content;
  }
  .link-forward::after,
  .link-outside::after {
    content: "";
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 8px;
    position: relative;
    transition: all ease 300ms;
  }
  .link-forward::before,
  .link-outside::before {
    content: "";
    width: 11px;
    height: 11px;
    margin: auto 0;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 2px;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' fill='none' viewBox='0 0 11 11'%3E%3Cmask id='a' width='11' height='11' x='0' y='0' maskUnits='userSpaceOnUse' style='mask-type:alpha'%3E%3Cpath fill='%23d9d9d9' d='M0 0h10.667v10.667H0z'/%3E%3C/mask%3E%3Cg mask='url(%23a)'%3E%3Cpath fill='%23fff' d='M7.189 5.778H1.778v-.89h5.41L4.7 2.4l.633-.622L8.89 5.333 5.333 8.89 4.7 8.267z'/%3E%3C/g%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    z-index: 1;
    transition: all ease 300ms;
  }
  .link-forward:hover::after,
  .link-outside:hover::after {
    transform: translateX(3px);
  }
  .link-forward:hover::before,
  .link-outside:hover::before {
    right: -1px;
  }
  .link-outside::before {
    transform: rotate(-45deg);
  }
  .link-forward.pink::after, .link-outside.pink::after {
    background: var(--primary-color);
  }
  .link-forward.pink::before, .link-outside.pink::before {
    background-color: #fff;
  }
  .link-forward.white::after, .link-outside.white::after {
    background: #fff;
  }
  .link-forward.white::before, .link-outside.white::before {
    background-color: var(--primary-color);
  }

  /* ハンバーガーボタン */
  .header-hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 1;
    gap: .3rem;
    border: none;
    background: #fff;
    border-radius: 100%;
    padding: 1.1rem 1.2rem;
    cursor: pointer;
    color: var(--text-main);
    position: relative;
    z-index: 100;
    @media (width < 768px) {
      padding: .8rem 1rem;
    }
  }
  .header-hamburger__icon {
    position: relative;
    width: 2.4rem;
    height: 1.6rem;
    display: inline-block;
  }
  .header-hamburger__line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease, bottom 0.25s ease;
  }
  .header-hamburger__line:nth-child(1) {
    top: 0;
  }
  .header-hamburger__line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }
  .header-hamburger__line:nth-child(3) {
    bottom: 0;
  }
  .header-hamburger__text {
    color: var(--primary-color);
    font-size: var(--fz-12);
    font-family: var(--font-en);
    font-weight: 900;
    letter-spacing: 0.02em;
    @media (width < 768px) {
      font-size: 1rem;
    }
  }
  .header-hamburger.is-open .header-hamburger__line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }
  .header-hamburger.is-open .header-hamburger__line:nth-child(2) {
    opacity: 0;
  }
  .header-hamburger.is-open .header-hamburger__line:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
  }

  /* SP時横スクロール */
  @media (width < 768px) {
    .scroll-container {
      width: calc(100% + 4rem);
      overflow-x: auto;
      margin-left: -2rem;
      padding: 0 2rem 2rem;
      -webkit-overflow-scrolling: touch;
      .scroll-content {
        width: max-content;
        >*:not(img,table) {
          max-width: 70vw;
        }
        >img {
          max-width: 250vw;
        }
      }
    }
  }

  /* Tag */
  .tag {
    display: inline-block;
    border-radius: 2rem;
    padding: .5rem 1rem;
    font-size: var(--fz-12);
    line-height: 1;
  }
  .tag.white {
    border: 1px solid #fff;
    color: #fff;
  }
  .tag+* {
    margin-top: 1rem;
  }

  /* Icon */
  *:has(>.icon-instructor) {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .icon-instructor {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    aspect-ratio: 1 / 1;
    display: block;
    overflow: hidden;
    border-radius: 100%;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  /* List */
  /* 流れ */
  .flow-list {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 3rem;
    li {
      position: relative;
    }
    .item-wrap {
      overflow: hidden;
      height: 100%;
      background-color: #fff;
      border: 2px solid var(--secondary-color);
      border-radius: 1.4rem;
      .image {
        border-bottom: 2px solid var(--secondary-color);
      }
      .text {
        padding: 2rem;
        >p {
          font-size: var(--fz-14);
        }
      }
      .name {
        margin-bottom: 1rem;
        color: var(--secondary-color);
        p {
          font-size: var(--fz-18);
          font-weight: 900;
          line-height: 1.4;
        }
      }
    }
    li:not(:first-child)::before {
      content: '';
      display: block;
      width: 1.6rem;
      height: 1.6rem;
      background: url(../img/icon/icon-arrow-flow.png) no-repeat center center;
      background-size: contain;
      margin: auto 0;
      position: absolute;
      top: 0;
      bottom: 0;
      left: -2.2rem;
    }
  }
  .flow-list.zigzag {
    .item-wrap {
      height: auto;
      min-height: 46rem;
    }
    li:nth-child(even) {
      margin-top: 4rem;
    }
    li:not(:nth-child(even))::before {
      top: 22.2rem;
      bottom: auto;
    }
    li:not(:nth-child(odd))::before {
      top: 18.2rem;
      bottom: auto;
    }
  }

  /* アイテムリスト */
  .item-list {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 3rem;
    li {
      position: relative;
    }
    .item-wrap {
      overflow: hidden;
      /* min-height: 46rem; */
      background-color: fff;
      border: 2px solid var(--secondary-color);
      border-radius: 1.4rem;
      .text {
        background-color: var(--primary-color);
        padding: 2rem;
        color: #fff;
        .name {
          margin-bottom: 1rem;
          p {
            font-weight: 700;
            line-height: 1.6;
          }
        }
        >p {
          font-size: var(--fz-14);
        }
      }
    }
  }
  /* SP時縦並びレイアウト */
  @media (width < 768px) {
    .sp-vertical {
      display: flex;
      flex-direction: column;
      gap: 3rem;
      li {
        width: 100%;
      }
    }
    .flow-list.sp-vertical {
      li:not(:first-child)::before {
        margin: 0 auto;
        top: -2.2rem;
        left: 0;
        right: 0;
        transform: rotate(90deg);
      }
    }
  }
  /* 注意事項 */
  .rice-list {
    li:not(:first-child) {
      margin-top: 0.5rem;
    }
  }

  /* テーブルレイアウト */
  .table-layout {
    width: 100%;
    @media (768px <= width) {
      table-layout: fixed;
    }
    .no-bg {
      background-color: inherit;
    }
    th,td {
      padding: 1rem 2rem;
      font-size: var(--fz-14);
      text-align: center;
      line-height: 1.4;
      @media (width < 768px) {
        min-width: 20rem;
      }
    }
    th:not(:first-child):not(:last-child),
    td:not(:last-child) {
      border-right: 5px solid #fff;
    }
    td {
      background-color: var(--cGray3);
      color: #000;
    }
    tr:not(:first-child) {
      th {
        border-top: 5px solid #fff;
      }
      td {
        border-top: 5px solid #fff;
      }
    }
    thead {
      th {
        background-color: var(--secondary-color);
      }
    }
    tbody {
      th {
        background-color: var(--primary-color);
      }
    }
  }
}

/* splideSlide[default] */
.js-slide-default {
  .splide__track {
    overflow: hidden;
    border-radius: 2.4rem;
  }
  .splide__pagination {
    bottom: -1.5em;
    .splide__pagination__page {
      width: .8rem;
      height: .8rem;
      background-color: var(--cGray);
      border-radius: 0;
      margin: 0 .6rem;
      transform: rotate(45deg);
    }
    .splide__pagination__page.is-active {
      opacity: 1;
      background-color: #fff;
    }
  }
}
/* splideSlide[item] */
.js-slide-item {
  position: relative;
  .splide__slide:nth-child(even) {
    background-color: var(--secondary-color);
  }
  .splide__slide:nth-child(odd) {
    background-color: var(--primary-color);
  }
  .splide__slide {
    border-radius: 3rem;
    padding: 3rem;
    color: #fff;
    @media (width < 768px) {
      padding: 3rem 1rem;
    }
  }
  .splide__arrows {
    display: flex;
    gap: 1.5rem;
    position: absolute;
    right: 0;
    @media (768px <= width) {
      top: 0;
      transform: translateY(-100%);
    }
    @media (width < 768px) {
      bottom: 0;
      transform: translateY(180%);
    }
    .splide__arrow {
      opacity: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 7rem;
      height: 7rem;
      background-color: var(--primary-color);
      border-radius: 100%;
      position: relative;
      right: 0;
      left: 0;
      svg {
        display: none;
      }
    }
    .splide__arrow::after {
      content:'';
      display: block;
      width: 3rem;
      height: 3rem;
      background-color: #fff;
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' fill='none' viewBox='0 0 11 11'%3E%3Cmask id='a' width='11' height='11' x='0' y='0' maskUnits='userSpaceOnUse' style='mask-type:alpha'%3E%3Cpath fill='%23d9d9d9' d='M0 0h10.667v10.667H0z'/%3E%3C/mask%3E%3Cg mask='url(%23a)'%3E%3Cpath fill='%23fff' d='M7.189 5.778H1.778v-.89h5.41L4.7 2.4l.633-.622L8.89 5.333 5.333 8.89 4.7 8.267z'/%3E%3C/g%3E%3C/svg%3E");
      mask-size: contain;
      mask-repeat: no-repeat;
      mask-position: center;
    }
    .splide__arrow--prev::after {
      transform: rotate(180deg);
    }
    .splide__arrow:disabled {
      opacity: .3;
    }
  }
  .name {
    display: flex;
    align-items: center;
    .image {
      width: 10rem;
      aspect-ratio: 1/1;
      border-radius: 100%;
      overflow: hidden;
      margin-right: 2rem;
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
    p {
      font-size: 3.2rem;
    }
  }
  .detail {
    margin-top: 2rem;
    font-size: var(--fz-14);
  }
  .comment {
    margin-top: 2rem;
  }
}

/* JOIN US */
.join-area {
  background-color: var(--secondary-color);
  position: relative;
  .join-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  .title-box {
    h2 {
      color: #fff;
      font-size: 9.6rem;
      font-family: var(--font-en);
      font-weight: 700;
      text-align: center;
      @media (width < 768px) {
        font-size: 4.8rem;
      }
    }
    p {
      color: #fff;
      font-size: 2rem;
      text-align: center;
      @media (width < 768px) {
        font-size: var(--fz-14);
      }
    }
  }
}

@layer utilities {
  @media (768px <= width) {
    .sp { display: none !important; }
  }
  @media (width < 768px) {
    .pc { display: none !important; }
  }
}
