@layer base, components, utilities;

/* ----------旧環境からの移植CSS---------- */
@layer base {
  small {
    line-height: 1.2rem;
  }
  img {
    width: 100%;
    height: auto;
  }
  main {
    overflow-x: hidden;
  }
  section {
    background-color: #fff;
    padding: 10rem 0;
    @media (width < 768px) {
      padding: 7rem 0;
    }
  }
  .page section:first-child {
    @media (width < 768px) {
      padding: 2rem 0 7rem;
    }
  }
}

@layer components {
  .inner {
    width: 100%;
    @media (768px <= width) {
      max-width: var(--w-site);
      margin: 0 auto;
      padding: 0 2rem;
    }
    @media (width < 768px) {
      padding: 0 1.5rem;
    }
    [class$="-area"]:not(:first-child) {
      padding-top: 10rem;
    }
  }
  .small-inner {
    @media (768px <= width) {
      max-width: 880px;
      margin: 0 auto;
    }
    /* @media (width < 768px) {
      padding: 0 5%;
    } */
  }

  /* アイコン */
  .ico-wrap {
    display: inline-block;
    margin-right: 20px;
  }
  .ico-attention {
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 30px;
    height: 30px;
    background-color: var(--BtnP);
    border-radius:100%;
    color:#fff;
    font-style: normal;
  }
  .ico-category {
    display: inline-block;
    border-radius: 2rem;
    margin-right: 1rem;
    padding: .7rem 1rem;
    color: #fff;
    font-size: var(--fz-14);
    font-weight: 400;
    line-height: 1.4rem;
    @media (width < 768px) {
      padding: .4rem 1rem;
    }
  }
  .ico-category.pink {
    background-color: var(--primary-color);
  }
  .ico-category.pink-light {
    background-color: var(--secondary-color);
  }
  .link-blank,
  .link-mail,
  .link-arrow {
    display: inline-flex;
    align-items: center;
  }
  .link-blank:after {
    content:'';
    display: block;
    width: 1rem;
    height: 1rem;
    background: url("../img/icon/ico-blank.png") no-repeat center center;
    background-size: contain;
    margin-left: 4px;
  }
  .link-mail:before {
    content:'';
    display: block;
    width: 1rem;
    height: 1rem;
    background: url("../img/icon/ico-mail.png") no-repeat center center;
    background-size: contain;
    margin-right: 4px;
  }
  .link-arrow:before {
    content:'';
    display: block;
    width: 1rem;
    height: 1rem;
    background: url("../img/icon/ico-arrow.png") no-repeat center center;
    background-size: contain;
    margin-right: 4px;
  }
  @media (768px <= width) {
    .link-blank,
    .link-mail,
    .link-arrow {
      transition: all ease 300ms;
    }
    .link-blank:hover,
    .link-mail:hover,
    .link-arrow:hover {
      opacity:0.6;
      transition: all ease 300ms;
    }
  }
  @media (768px <= width) {
    .link-hover {
      display: block;
      transition:all ease 300ms;
    }
    .link-hover:hover {
      opacity: 0.6;
      transition:all ease 300ms;
    }
  }

  /* タイトル */
  .page-title {
    background: url(../img/common/under-titlebg-pc-left.png) no-repeat center left / contain, url(../img/common/under-titlebg-pc-right.png) no-repeat center right / contain;
    padding: calc(12.2vw - 5.6rem) 0;
    text-align: center;
    line-height: 1.2;
    @media (width < 768px) {
      background: url(../img/common/under-titlebg-sp-left.png) no-repeat center left / contain, url(../img/common/under-titlebg-sp-right.png) no-repeat center right / contain;
      padding: calc(18.5vw - 3.2rem) 0;
    }
    h1 {
      color: var(--primary-color);
      /* font-size: 3.4vw; */
      font-size: 5.6rem;
      font-weight: 700;
      @media (width < 768px) {
        /* font-size: 8.7vw; */
        font-size: 3.2rem;
      }
    }
    p {
      margin-bottom: 3rem;
      color: var(--secondary-color);
      /* font-size: 1.5vw; */
      font-size: 2.4rem;
      font-weight: 700;
      @media (width < 768px) {
        margin-bottom: 1.5rem;
        /* font-size: 4.4vw; */
        font-size: var(--fz-16);
      }
    }
  }
  .page-title.v2 {
    background: url(../img/common/under-titlebg-pc-v2-left.png) no-repeat center left / contain, url(../img/common/under-titlebg-pc-v2-right.png) no-repeat center right / contain;
    padding: calc(12vw - 5.6rem) 0 0;
    @media (width < 768px) {
      background: url(../img/common/under-titlebg-sp-v2-left.png) no-repeat center left / contain, url(../img/common/under-titlebg-sp-v2-right.png) no-repeat center right / contain;
      padding: calc(22vw - 3.2rem) 0 0;
    }
  }
  .title-first + * {
    margin-top: 60px;
    @media (width < 768px) {
      margin-top: 30px;
    }
  }
  .title-first>* {
    display: inline-block;
    position: relative;
    @media (width < 768px) {
      max-width: calc(100% - 10px);
    }
    span {
      display: block;
      background-color: #fff;
      border:1px solid var(--cBlack);
      padding: 10px 80px;
      font-size: 5rem;
      font-weight: bold;
      position: relative;
      z-index: 1;
      @media (width < 768px) {
        padding: 10px 0;
        font-size: 5.5vw;
      }
    }
  }
  .title-first>*:after {
    content: '';
    display: inline-block;
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: -10px;
    right: -10px;
    z-index: 0;
    @media (width < 768px) {
      bottom: -5px;
      right: -5px;
    }
  }
  @media (width < 768px) {
    .title-first > * span:before,
    .title-first > * span:after {
      content:'　';
    }
  }
  .title-first>*.pink {
    color: var(--primary-color);
  }
  .title-first>*.pink:after {
    background-color: var(--primary-color);
  }

  .title-first>*.blue {
    color: var(--cTextB);
  }
  .title-first>*.blue:after {
    background-color: var(--cTextB);
  }

  .title-first>*.yellow {
    color: var(--cYellow1);
  }
  .title-first>*.yellow:after {
    background-color: var(--cYellow1);
  }

  .title-first.center {
    text-align: center;
  }
  .title-second {
    font-size: 4rem;
    font-weight: bold;
    @media (width < 768px) {
      font-size: 6vw;
    }
  }
  .title-second + * {
    margin-top: 40px;
    @media (width < 768px) {
      margin-top: 20px;
    }
  }
  .title-second.pink {
    color:var(--primary-color);
  }
  .title-second.blue {
    color:var(--cTextB);
  }
  .title-second.yellow {
    color:var(--cYellow1);
  }
  .title-second.center {
    text-align: center;
  }
  .title-third {
    font-size: 3rem;
    font-weight: bold;
    @media (width < 768px) {
      font-size: 4.5vw;
    }
  }
  .title-third:after {
    content:'';
    display: block;
    width: 100%;
    height: 0;
    margin-top: 10px;
  }
  .title-third.pink {
    color:var(--primary-color);
  }
  .title-third.pink:after {
    border-bottom:2px dotted var(--primary-color);
  }
  .title-third.blue {
    color:var(--cTextB);
  }
  .title-third.blue:after {
    border-bottom:2px dotted var(--cTextB);
  }
  .title-third.yellow {
    color:var(--cYellow1);
  }
  .title-third.yellow:after {
    border-bottom:2px dotted var(--cYellow1);
  }
  .tag-name {
    display: inline-block;
    background-color: var(--secondary-color);
    padding: 10px;
  }

  /* ボタン */
  .btn-wrap {
    @media (768px <= width) {
      display: flex;
      justify-content: center;
    }
  }
  @media (768px <= width) {
    .btn-wrap.align-bottom {
      align-items: flex-end;
    }
  }
  .btn-wrap.two {
    @media (768px <= width) {
      >.btn:nth-child(2n) {
        margin-left: 8%;
      }
    }
    @media (width < 768px) {
      >.btn:not(:first-child) {
        margin-top: 20px;
      }
    }
  }
  .btn-wrap.three {
    .btn {
      @media (768px <= width) {
        width: 31%!important;
        min-width: inherit;
        padding: 20px 0;
        font-size: 2rem;
      }
    }
    @media (768px <= width) {
      .btn:not(:first-child) {
        margin-left: 3.5%;
      }
      .btn:after {
        width: 40px;
        height: 40px;
        right: 10px;
      }
    }
    @media (width < 768px) {
      .btn:not(:first-child) {
        margin-top: 20px;
      }
    }
  }
  .deco-btn {
    p {
      margin-bottom: 10px;
      text-align: center;
      span {
        color: var(--primary-color);
        font-size: 2.4rem;
        font-weight: bold;
        position: relative;
        @media (width < 768px) {
          font-size: var(--fz-18);
        }
      }
      span:before, span:after {
        content: '';
        display: block;
        width: 30px;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 2px;
        position: absolute;
        bottom: 0;
        @media (width < 768px) {
          width: 20px;
        }
      }
      span:before {
        left: -10px;
        transform: rotate(-135deg);
        transform-origin: 0 0 0;
      }
      span:after {
        right: 0;
        transform: rotate(135deg);
        transform-origin: 100% 0 0;
      }
    }
  }
  .btn {
    display: block;
    border-radius: 50px;
    color:#fff;
    font-size: 2.2rem;
    text-align: center;
    position: relative;
    @media (768px <= width) {
      width: 46%;
      min-width: 400px;
      padding: 30px 0;
    }
    @media (width < 768px) {
      width: 100%;
      padding: 15px 0;
      font-size: 4vw;
    }
  }
  .btn.pink {
    background-color: var(--primary-color);
    border:2px solid var(--primary-color);
  }
  .btn.pink:after {
    background: url("../img/icon/ico-arrow-pink.png") no-repeat;
    background-size: contain;
  }
  .btn.blue {
    background-color: var(--cBtnB);
    border:2px solid var(--cBtnB);
  }
  .btn.blue:after {
    background: url("../img/icon/ico-arrow-blue.png") no-repeat;
    background-size: contain;
  }
  .btn.yellow {
    background-color: var(--cYellow1);
    border:2px solid var(--cYellow1);
  }
  .btn.yellow:after {
    background: url("../img/icon/ico-arrow-yellow.png") no-repeat;
    background-size: contain;
  }
  .btn:after {
    content:'';
    display: block;
    width: 50px;
    height: 50px;
    margin: auto 0;
    position: absolute;
    right: 15px;
    top: 0;
    bottom: 0;
    @media (width < 768px) {
      width: 30px;
      height: 30px;
    }
  }
  @media (768px <= width) {
    .btn {
      transition:all ease 600ms;
    }
    .btn:hover {
      background-color: #fff;
    }
    .btn.pink:hover {
      border:2px solid var(--primary-color);
      color: var(--primary-color);
    }
    .btn.blue:hover {
      border:2px solid var(--cBtnB);
      color: var(--cTextB);
    }
    .btn.yellow:hover {
      border:2px solid var(--cYellow1);
      color: var(--cYellow1);
    }
  }
  @media (768px <= width) {
    .btn.small {
      max-width: 320px;
      padding: 20px 0;
    }
  }
  .btn-normal {
    border-radius: 20px;
    padding: 4px 20px;
    color:#fff;
    font-size: var(--fz-14);
  }
  .btn-normal.pink {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
  }
  .btn-normal.blue {
    background-color: var(--cBtnB);
    border: 2px solid var(--cBtnB);
  }
  .btn-list {
    display: flex;
    flex-wrap: wrap;
  }
  .btn-list li a {
    display: block;
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 30px 0;
    color:var(--primary-color);
    font-size: 2rem;
    text-align: center;
  }
  @media (768px <= width) {
    .btn-list li {
      width: 23.5%;
    }
    .btn-list li:not(:nth-child(4n+1)) {
      margin-left: 2%;
    }
    .btn-list li:nth-child(n+5) {
      margin-top: 2%;
    }
    .btn-list li a {
      transition:all ease 300ms;
    }
    .btn-list li a:hover {
      background-color: var(--primary-color);
      color:#fff;
      transition:all ease 300ms;
    }
  }
  @media (width < 768px) {
    .btn-list li {
      width: 48%;
    }
    .btn-list li:not(:nth-child(2n+1)) {
      margin-left: 4%;
    }
    .btn-list li:nth-child(n+3) {
      margin-top: 4%;
    }
  }

  /* 背景 */
  .bg-pink.dark {
    background-color: var(--primary-color);
  }
  .bg-pink.thin {
    background-color: var(--secondary-color);
  }
  .bg-blue.dark {
    background-color: var(--cBgB2);
  }
  .bg-blue.thin {
    background-color: var(--cBgB1);
  }
  .bg-yellow.dark {
    background-color: var(--cYellow2);
  }
  .bg-yellow.thin {
    background-color: #FFFDDF;
  }
  .bg-yellow.with-mark {
    background-image: url("../img/kids_school/kids-bg-mark.png");
    background-position: 60px;
  }
  .bg-white {
    background-color: #fff;
  }
  .bg-secondary {
    background-color: var(--secondary-color);
    border-radius: 4rem 4rem 0 0;
    color: #fff;
  }
  .bg-gray {
    background-color: var(--cGray3);
  }

  /* ボックス */
  .box-gray {
    background-color: var(--cGray3);
    padding: 10rem 16rem;
    border-radius: 4rem;
    @media (width < 768px) {
      padding: 6rem 1rem;
    }
  }
  .box-pink {
    background-color: var(--secondary-color);
    padding: 10rem 16rem;
    border-radius: 4rem;
    @media (width < 768px) {
      padding: 6rem 1rem;
    }
  }
  .box-pink.wrap {
    border-radius: 4rem 4rem 0 0;
    padding: 10rem 0;
    @media (width < 768px) {
      padding: 6rem 0;
    }
  }
  @media (768px <= width) {
    .box {
      display: flex;
      flex-wrap: wrap;
    }
  }
  .box li,
  .box > div {
    border:1px solid var(--cBlack);
    background-color: #fff;
  }
  .box li *,
  .box > div * {
    word-break: break-all;
  }
  .box li .name,
  .box > div .name {
    padding: 15px 0;
    font-size: 2.4rem;
    text-align: center;
  }
  @media (width < 768px) {
    .box li .name,
    .box > div .name {
      padding: 10px 0;
      font-size: 4.5vw;
    }
  }
  .box li .text,
  .box > div .text {
    padding: 20px 30px;
    line-height: 1.8rem;
  }
  @media (width < 768px) {
    .box li .text,
    .box > div .text {
      padding: 10px 5%;
    }
  }
  .box.second li {
    background-color: var(--cBgP2);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    overflow: hidden;
    .name {
      background-color: #fff !important;
      border-bottom: 2px solid var(--primary-color);
      color: var(--primary-color) !important;
    }
  }
  .box.pink.thin li .name,
  .box.pink.thin > div .name {
    background-color: var(--secondary-color);
    color:var(--cBlack);
  }
  .box.pink.dark li .name,
  .box.pink.dark > div .name {
    background-color: #FF8FBD;
    color:#fff;
  }
  .box.blue li .name,
  .box.blue > div .name {
    background-color: var(--cBgB1);
  }
  .box.single > div:not(:first-child) {
    margin-top: 40px;
  }
  @media (width < 768px) {
    .box.single > div:not(:first-child) {
      margin-top: 20px;
    }
  }
  @media (768px <= width) {
    .box.two li {
      width: 46%;
      margin: 2%;
    }
    .box.three li {
      width: 29.333%;
      margin: 2%;
    }
  }
  @media (width < 768px) {
    .box li {
      width: 100%;
    }
    .box li:not(:first-child) {
      margin-top: 20px;
    }
  }
  .box .fab {
    display: block;
    margin: 0 auto 20px;
    color:var(--primary-color);
    font-size: 6rem;
    text-align: center;
    @media (width < 768px) {
      font-size: 12vw;
    }
  }
  .inline-box:not(:first-child) {
    margin-top: 40px;
  }
  .inline-box > *:not(:first-child) {
    margin-top: 20px;
  }

  /* テーブル */
  @media (width < 768px) {
    .table-content {
      overflow-x: scroll;
    }
  }
  .table-base {
    width: 100%;
  }
  .table-base.pink th {
    background-color: var(--secondary-color);
    color: #fff;
  }
  .table-base.blue th {
    background-color: var(--cBgB1);
  }
  .table-base th,
  .table-base td {
    border:5px solid #fff;
    padding: 1rem 3rem;
    text-align: center;
    vertical-align: middle;
  }
  @media (width < 768px) {
    .table-base th,
    .table-base td {
      padding: 6px 2%;
      /* min-width: 12rem; */
      font-size: var(--fz-14);
    }
  }
  .table-base td {
    background-color: var(--cGray3);
  }
  .table-left dl:not(:first-child) {
    margin-top: 6px;
  }
  @media (768px <= width) {
    .table-left dl {
      display: flex;
    }
  }
  .table-left.pink dt {
    background-color: var(--primary-color);
    color: #fff;
  }
  .table-left.blue dt {
    background-color: var(--cBgB1);
  }
  .table-left dt {
    width: 20%;
    background-color: var(--secondary-color);
    @media (768px <= width) {
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 11rem;
    }
  }
  .table-left dd {
    width: 80%;
    background-color: var(--cGray3);
  }
  .table-left dt,
  .table-left dd {
    padding: 1rem 2rem;
    @media (width < 768px) {
      width: 100%;
      padding: 20px 5%;
    }
  }
  @media (768px <= width) {
    .table-left.wide dt {
      width: 45%;
    }
    .table-left.wide dd {
      width: 55%;
    }
  }

  /* youtube */
  .youtube-wrap {
    width: 60%;
    margin: 0 auto;
    @media (width < 768px) {
      width: 100%;
    }
  }
  .youtube-wrap.w-full {
    @media (768px <= width) {
      width: 100%;
    }
  }
  .youtube {
    overflow: hidden;
    width: 100%;
    border-radius: 3rem;
    padding-top: 56.25%;
    position: relative;
    iframe {
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      right: 0;
    }
  }

  /* リスト */
  .list-mark {
    margin-left: 1em;
    text-indent: -1em;
  }
  .text-list li {
    margin-left: 1em;
    text-indent: -1em;
  }
  .text-list li:not(:first-child) {
    margin-top: 10px;
  }
  .sub-list li {
    color:var(--cGray);
    font-size: 0.8rem;
    line-height: 1.4rem;
  }

  /* インストラクターリスト */
  .top {
    .instructor-list {
      display: flex;
      align-items: flex-start;
      justify-content: center;
      li:nth-child(even) {
        margin-top: 4rem;
      }
    }
  }
  .instructor-list {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 3rem 2rem;
    @media (width < 768px) {
      grid-template-columns: repeat(2,1fr);
    }
    li {
      overflow: hidden;
      display: flex;
      flex-direction: column;
      background-color: var(--cBgP2);
      border: 2px solid var(--secondary-color);
      border-radius: 1.4rem;
      .name {
        background-color: #fff;
        border-bottom: 2px solid var(--secondary-color);
        color: var(--secondary-color);
        font-family: var(--font-en);
        font-size: 2.6rem;
        text-align: center;
        @media (width < 768px) {
          font-size: 5vw;
        }
      }
      .table-left {
        flex-grow: 1;
        dd {
          background-color: #fff;
        }
      }
      .btn-normal {
        display: block;
        width: 30%;
        margin: 1.5rem auto;
        @media (width < 768px) {
          width: 50%;
        }
      }
    }
    .iziModal {
      border: 2px solid var(--secondary-color);
      border-radius: 30px !important;
      @media (width < 768px) {
        border-radius: 10px !important;
      }
      .iziModal-content {
        padding: 0 !important;
        @media (width < 768px) {
          padding: 0 !important;
        }
      }
      .name {
        border-bottom: 2px solid var(--secondary-color);
        padding: 20px 0;
        color: var(--primary-color);
        font-size: 36px;
        text-align: center;
      }
      .instructor-detail {
        display: flex;
        justify-content: space-between;
        background-color: var(--cBgP2);
        padding: 40px;
        @media (width < 768px) {
          display: block;
          padding: 20px 5%;
        }
        .image {
          width: 32%;
          @media (width < 768px) {
            width: 100%;
          }
          img {
            border-radius: 30px;
          }
          .to-text {
            margin-top: 30px;
            @media (width < 768px) {
              margin-top: 20px;
            }
            i {
              display: block;
              background-color: var(--primary-color);
              border-radius: 10px;
              padding: 6px 0;
              color: #fff;
              font-size: 24px;
              font-style: normal;
              text-align: center;
              position: relative;
              @media (width < 768px) {
                border-radius: 4px;
                font-size: 18px;
              }
            }
            p {
              margin-top: 20px;
              color: var(--primary-color);
              @media (width < 768px) {
                margin-top: 10px;
              }
            }
          }
        }
        .text {
          width: 63%;
          @media (width < 768px) {
            width: 100%;
            margin-top: 40px;
          }
        }
      }
    }
    .iziModal .instructor-detail .to-text i:before,
    .iziModal .instructor-detail .to-text i:after {
      content: '';
      display: block;
      background-color: #fff;
      margin: auto 0;
      position: absolute;
      top: 0;
      bottom: 0;
    }
    .iziModal .instructor-detail .to-text i:before {
      width: 25px;
      height: 2px;
      left: 0;
    }
    .iziModal .instructor-detail .to-text i:after {
      width: 6px;
      height: 6px;
      border-radius: 100%;
      left: 24px;
    }
  }

  /* アコーディオン */
  .accordion+.accordion {
    margin-top: 2rem;
  }
  .accordion-item:not(:first-child) {
    margin-top: 2rem;
  }
  .accordion-title {
    cursor: pointer;
    padding: 1.5rem 4rem 2rem 3rem;
    color: #fff;
    font-size: var(--fz-18);
    font-weight: bold;
    position: relative;
    transition:all ease 300ms;
    @media (width < 768px) {
      padding: 1rem 4rem 1rem 1rem;
      font-size: var(--fz-14);
      text-align: left;
    }
  }
  .accordion-title.pink {
    background-color: var(--secondary-color);
  }
  .accordion-title.blue {
    background-color: var(--cBgB2);
  }
  .accordion-title::before,
  .accordion-title::after {
    content: '';
    width: 2rem;
    height: 2px;
    background-color: #fff;
    margin: auto 0;
    position: absolute;
    right: 2rem;
    top: 0;
    bottom: 0;
    transition: all 0.3s;
  }
  @media (width < 768px) {
    .accordion-title::before,
    .accordion-title::after {
      width: 1.5rem;
      height: 2px;
      right: 1rem;
    }
  }
  .accordion-title::after {
    transform: rotate(90deg);
  }
  @media (768px <= width) {
    .accordion-title:hover {
      opacity: 0.6;
      transition:all ease 300ms;
    }
  }
  .accordion-content {
    display: none;
    background-color: #fff;
    padding:6rem;
    @media (width < 768px) {
      padding: 2rem 1rem;
    }
  }
  .accordion-content.is-open {
    display: block;
  }
  .accordion-item.is-active {
    @media (768px <= width) {
      .accordion-title:hover {
        opacity: 1;
      }
    }
    .accordion-title {
      background-color: var(--primary-color);
    }
    .accordion-title::before {
      transform: rotate(180deg);
    }
    .accordion-title::after {
      transform: rotate(180deg);
      opacity: 0;
    }
  }

  /* ギャラリー */
  .iziModal {
    @media (768px <=width) {
      width: calc(90% - 108px);
      max-width: 110rem;
    }
    @media (width < 768px) {
      width: calc(100% - 6rem);
    }
  }
  .iziModal .close-btn {
    width: 34px;
    height: 34px;
    background: var(--primary-color);
    border: 2px solid #fff;
    border-radius: 100%;
    position: fixed;
    top: 32px;
    right: 18px;
    z-index: 1000;
  }
  @media (width < 768px) {
    .iziModal .close-btn {
      right: 4px;
    }
  }
  .iziModal .close-btn:before,
  .iziModal .close-btn:after {
    content:'';
    display: block;
    width: 15px;
    height: 2px;
    background: #fff;
    margin: auto;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
  }
  .iziModal .close-btn:before {
    transform: rotate(45deg);
  }
  .iziModal .close-btn:after {
    transform: rotate(-45deg);
  }
  .modal-container {
    padding: 40px;
    @media (width < 768px) {
      padding: 8% 5%;
    }
  }
  .modal-container>* {
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .modal-container>*::-webkit-scrollbar {
    display: none;
  }
  .modal-container .title-first > * span {
    font-size: 2.5rem;
  }
  @media (width < 768px) {
    .modal-container .title-first > * span {
      font-size: 6vw;
    }
  }
  .modal-container .title-first + img {
    margin-top: 40px;
  }
  @media (width < 768px) {
    .modal-container .title-first + img {
      margin-top: 30px;
    }
  }
  .modal-container .title-first + p {
    margin: 20px 0;
    text-align: center;
  }
  @media (width < 768px) {
    .modal-container .title-first + p {
      margin: 20px 0;
    }
  }
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
  }
  .modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
  .modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-height: 90vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
  }
  .modal-container.is-open {
    opacity: 1;
    visibility: visible;
  }
  /* Slide animations for modal transitions */
  .modal-container.slide-in-from-right {
    transform: translate(0, -50%);
  }
  .modal-container.slide-in-from-right.is-open {
    transform: translate(-50%, -50%);
  }
  .modal-container.slide-in-from-left {
    transform: translate(-100%, -50%);
  }
  .modal-container.slide-in-from-left.is-open {
    transform: translate(-50%, -50%);
  }
  .modal-container.slide-out-to-left {
    transform: translate(-100%, -50%);
    opacity: 0;
  }
  .modal-container.slide-out-to-right {
    transform: translate(0, -50%);
    opacity: 0;
  }
  body.modal-open {
    overflow: hidden;
  }
  .modal-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: calc(100% + 18rem);
    height: 6rem;
    margin-left: -9rem;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    @media (width < 768px) {
      width: calc(100% + 8rem);
      margin-left: -4rem;
    }
  }
  .modal-nav button {
    pointer-events: auto;
    color: white;
    border: none;
    border-radius: 50%;
    width: 6rem;
    height: 6rem;
    background-size: 100% !important;
    font-size: 2.4rem;
    cursor: pointer;
    margin: 0 10px;
    @media (width < 768px) {
      width: 3rem;
      height: 3rem;
    }
  }
  .modal-nav button:hover {
    opacity: 0.7;
  }
  .modal-nav button:disabled {
    opacity: 0.2;
    cursor: default;
  }
  /* Hide original modal content */
  [data-izimodal-group] {
    display: none;
  }
  .modal-nav {
    z-index: 1000!important;
  }
  .modal-next {
    background: url(../img/icon/ico-arrow-pink.png) no-repeat 50% 50%;
  }
  .modal-prev {
    background: url(../img/icon/ico-arrow-pink.png) no-repeat 50% 50%;
    transform: rotate(180deg);
  }

  .tab-titles li * {
    pointer-events: none;
  }

  /* クラス概要 */
  .practice-click-text {
    margin-bottom: 40px;
    color:var(--primary-color);
    font-size: var(--fz-12);
    text-align: center;
    @media (width < 768px) {
      margin-bottom: 20px;
      text-align: left;
    }
  }
  .class-mark-list {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem;
    @media (width < 768px) {
      grid-template-columns: repeat(2,1fr);
    }
    li {
      background-color: #fff;
      border: 1px solid var(--primary-color);
      border-radius: 4rem;
      padding: 1.5rem;
      color: var(--primary-color);
      font-size: var(--fz-14);
      font-weight: 700;
      text-align: center;
      @media (width < 768px) {
        padding: 1rem;
        font-size: var(--fz-12);
      }
      p {
        line-height: 1.2;
      }
    }
    li.show-tab {
      background-color: var(--primary-color);
      color: #fff;
    }
  }
  @media (768px <= width) {
    .class-mark-list li {
      cursor: pointer;
      transition: all ease 300ms;
    }
    .class-mark-list li:hover {
      background-color: var(--primary-color);
      color: #fff;
    }
  }
  .class-mark-contents {
    margin-top: 2.4rem;
    .practice-level {
      background-color: var(--primary-color);
      padding: 3rem;
      @media (width < 768px) {
        padding: 2rem 1rem;
      }
      .name {
        color: #fff;
        font-size: 2rem;
        font-weight: 900;
      }
      .text {
        margin-top: 2rem;
        font-size: var(--fz-14);
        font-weight: 700;
        >p {
          color: #fff;
        }
      }
    }
  }
}

@layer utilities {
}
