@charset "UTF-8";

/* トップページ・lp・catalog専用CSS */

/* 夏期講習 */
.p-kakikoushu-wrap {
  margin-top: -21px;
}

.p-kakikoushu {
  container-type: inline-size;
  max-width: 600px;
  width: 100%;
  margin-inline: auto;
}

.p-kakikoushu__mv {
  position: relative;
  z-index: 2;

  span {
    position: absolute;
    top: 13.8cqw;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    color: #0b1142;
    font-size: 4.8cqw;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.05em;
  }
}

.p-kakikoushu__body {
  position: relative;
  z-index: 1;
  background-image: linear-gradient(to bottom, #d5f5ff, #ffffff);
  padding: 33.06666666667cqw 18px 225px;
  margin-top: -22.4cqw;

  &::before {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    display: block;
    content: '';
    width: 100%;
    height: 100%;
    background-image: url('/assets/chugaku/images/ab/top_kakikoushu/b/body_back.webp');
    mix-blend-mode: darken;
    background-repeat: no-repeat;
    background-position: top;
    background-size: cover;
  }
}

.p-kakikoushu__button {
  display: grid;
  row-gap: 15px;
  max-width: 327px;
  margin-inline: auto;
}

.p-kakikoushu__body-catch {
  max-width: 340px;
  width: 100%;
  margin: 40px auto 0;
}

.p-kakikoushu__point {
  display: grid;
  row-gap: 20px;
  margin-top: 40px;
}

.p-kakikoushu__enjoy {
  display: block;
  max-width: 272px;
  width: 100%;
  margin: 20px auto;
}

.p-kakikoushu__point-item-inner {
  position: relative;
  z-index: 1;
  background-color: #0094e4;
  border-radius: 10px;
  overflow: hidden;
  padding: 29px 25px 35px;
  &::before {
    position: absolute;
    z-index: -1;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    content: '';
    background-color: #fff;
    width: 179.4117647059%;
    aspect-ratio: 1;
    border-radius: 50%;
  }
}

.p-kakikoushu__point-en {
  display: block;
  max-width: 51.6px;
  width: 100%;
  margin-inline: auto;
}

.p-kakikoushu__point-heading {
  position: relative;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-align: center;
  margin: 8px -10px 0;

  span {
    &.-ls-2_4 {
      letter-spacing: -0.24em;
    }

    &.-ls-3 {
      letter-spacing: -0.3em;
    }

    &.-ls-2_8 {
      letter-spacing: -0.28em;
    }

    &.-ls-3_2 {
      letter-spacing: -0.28em;
    }
  }
}

.p-kakikoushu__body-img {
  max-width: 100%;
  width: 100%;
  margin-top: 25px;
}

.p-kakikoushu__body-text {
  color: #0b1142;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-top: 24px;

  span {
    color: #fd4677;
    font-weight: 700;
  }
}

.p-kakikoushu__button-foot {
  display: grid;
  row-gap: 15px;
  max-width: 327px;
  margin: 40px auto 0;
}

.p-kakikoushu__voice {
  padding-top: 40px;
}

.p-kakikoushu__voice-heading {
  color: #0b1142;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.p-kakikoushu__voice-slide {
  margin: 15px -18px 0;

  .slick-dots {
    display: flex;
    gap: 15px;
    justify-content: center;
    bottom: -30px;

    li {
      width: auto;
      height: auto;
      line-height: 1;
      margin: 0;

      &.slick-active {
        button {
          background-color: #0b1142;
        }
      }
    }

    button {
      display: block;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background-color: rgba(11, 17, 66, 0.2);
      transition: backgroun-color 0.3s;
      padding: 0;

      &::before {
        content: none !important;
      }
    }
  }
}

.p-kakikoushu__voice-item {
  grid-template-columns: 52px 1fr;
  align-items: flex-start;
  column-gap: 20px;
  background-color: #fff;
  border-radius: 5px;
  max-width: 340px;
  width: 100%;
  min-height: 125px;
  padding: 25px 20px 22px;
  margin-inline: 10px;
}

.p-kakikoushu__voice-item.slick-slide {
  display: grid;
}

.p-kakikoushu__voice-icon {
  p {
    color: #0059ab;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    margin-top: 5px;
  }
}

.p-kakikoushu__voice-text {
  color: #333;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.p-kakikoushu__voice-attention {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  padding-inline: 20px;
  margin-top: 55px;
}

.p-result-cta {
  margin-block: 30px;
}

.p-result-cta__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.5;
  max-width: 300px;
  width: 100%;
  border-radius: calc(infinity * 1px);
  background-color: #0059ab;
  min-height: 59px;
  padding: 15px 20px;
  padding-right: 35px;
  margin-inline: auto;
  transition: opacity 0.3s;
  &::after {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    display: block;
    content: '';
    width: 12px;
    aspect-ratio: 12 / 14;
    background-image: url('/assets/chugaku/images/ab/top_kakikoushu/b/button-arrow.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }
  &:hover {
    opacity: 0.7;
  }
}

.p-result-cta__attention {
  margin-top: 10px;
  li {
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-align: center;
    &::before {
      content: '※';
    }
  }
}

/* 2学期のテストで結果が出た */
.p-score-result {
  container-type: inline-size;
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: 100%;
  background-image: url('/assets/chugaku/images/ab/top_kakikoushu/b/result_back.webp');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 92px;
  margin-inline: auto;

  .p-kakikoushu & {
    padding-bottom: 0;
    margin-top: -172px;
    padding-top: 36px;
  }

  .p-important-points & {
    padding-bottom: 0;
  }

  &::after {
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 0;
    display: block;
    content: '';
    width: 100%;
    height: calc(100% - 92px);
    background-color: #fff;
  }
}

.p-score-result__title {
  position: relative;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #0059ab;
  letter-spacing: 0.05em;
  &::before {
    position: absolute;
    top: -43px;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    content: '';
    max-width: 335px;
    width: 100%;
    aspect-ratio: 335 / 59;
    background-image: url('/assets/chugaku/images/result_title-accent.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }
  span {
    position: relative;
    display: inline-block;
    padding-inline: 20px;
  }
}

.p-score-result__body {
  width: 100%;
  margin-inline: auto;
  padding-inline: 5.333cqw;
  box-sizing: border-box;
  margin-top: 10px;
}

.p-score-result__body .c-list-attention li {
  font-size: 10px;
  line-height: 1.4;
}

.p-score-result__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.p-score-result__item {
  position: relative;
  width: 100%;
  aspect-ratio: 335 / 167;
  background-image: url('/assets/chugaku/images/result-item_bg_01.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(4px 4px 7px rgba(29, 46, 71, 0.05));
  margin-inline: auto;
}

.p-score-result__item--02 {
  background-image: url('/assets/chugaku/images/result-item_bg_02.webp');
}

.p-score-result__item--03 {
  background-image: url('/assets/chugaku/images/result-item_bg_03.webp');
}

.p-score-result__item-icon {
  position: absolute;
  top: 1.067cqw;
  left: 1.45cqw;
  width: 16.8cqw;
  height: 16.8cqw;
  object-fit: contain;
}

.p-score-result__item-name {
  position: absolute;
  top: 11.467cqw;
  left: 21.333cqw;
  font-size: 4.565cqw;
  font-weight: 500;
  color: #333;
  line-height: 1;
}

.p-score-result__item-name .suffix {
  font-size: 2.853cqw;
  margin-left: 0.533cqw;
}

.p-score-result__item--text {
  position: absolute;
  top: 22.667cqw;
  left: 4.267cqw;
  font-size: 3.733cqw;
  font-weight: 600;
  color: #333;
  line-height: 1;
}

.p-score-result__item-up {
  position: absolute;
  font-feature-settings: 'palt';
  top: 27.467cqw;
  left: 2.933cqw;
  font-size: 13.333cqw;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fd4677;
  font-family: 'Roboto', sans-serif;
  span {
    letter-spacing: -0.13em;
  }
}

.p-score-result__item-before-score {
  position: absolute;
  top: 26.1cqw;
  right: 28.8cqw;
  font-size: 5.333cqw;
  color: #fff;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.06em;
  font-family: 'Roboto', sans-serif;

  .p-score-result__item--02 & {
    top: 27.3cqw;
  }

  .p-score-result__item--03 & {
    top: 28.3cqw;
  }
}

.p-score-result__item-before-date {
  position: absolute;
  top: 34cqw;
  right: 24cqw;
  font-size: 2.1333333333cqw;
  width: 15.2cqw;
  color: #fff;
  line-height: 1.2;
  text-align: center;
  font-weight: 700;
}

.p-score-result__item-after-score {
  position: absolute;
  top: 15cqw;
  right: 8.533cqw;
  font-size: 6.933cqw;
  color: #fff;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.06em;
  font-family: 'Roboto', sans-serif;
}

.p-score-result__item-after-date {
  position: absolute;
  top: 34cqw;
  right: 4.3cqw;
  color: #fff;
  font-size: 2.1333333333cqw;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  width: 16.8cqw;
}

.p-score-result__more {
  &:has(input:checked) {
    label i:after {
      transform: rotate(0);
    }
    .c-button-more__main {
      height: auto;
      padding-top: 10px;
      opacity: 1;
    }
  }
}

/* テストが楽しみになる のボタンを非表示 */
div[data-ab-experiment-id='chugaku_kakikoushu'][data-ab-variant-id='b'] {
  .p-test-fun__buttons {
    display: none;
  }
}

.p-test-fun {
  position: relative;
  container-type: inline-size;
  margin-top: -20px;
}

.p-test-fun__buttons {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  gap: 19px;
  margin-top: 30px;
}

.p-test-fun__button {
  text-align: center;
}

.p-test-fun__body {
  position: relative;
  margin-top: 106px;
  padding-bottom: 68cqw;
}

.p-test-fun__body::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 106px);
  background-color: #eaf2fa;
  z-index: 0;
}

.p-test-fun__body-inner {
  position: relative;
  z-index: 1;
  background-image: url('/assets/chugaku/images/test_fun_bg.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 112% auto;
}

.p-test-fun__title {
  text-align: center;
  transform: translateY(-40px);
}

.p-test-fun__text {
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: #333333;
  margin-top: -30px;
}

.p-test-fun__text strong {
  font-weight: 700;
  color: #0059ab;
}

.p-test-fun__img {
  position: relative;
  width: 100%;
  display: block;
  max-width: 309px;
  margin-inline: auto;
  margin-top: 17px;
}

.p-test-fun__img .i {
  position: absolute;
  top: 11%;
  right: 18%;
  display: inline-block;
  width: 33px;
  height: 60px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url('data:image/svg+xml,%3Csvg%20width%3D%2233%22%20height%3D%2260%22%20viewBox%3D%220%200%2033%2060%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M14.9011%2040.8493L9.60332%2038.9166C7.71644%2038.2282%207.5351%2037.8237%208.17065%2035.8562L13.8997%2017.8978C15.298%2013.1632%2018.4759%202.6488%2019.0207%201.15567C19.4837%20-0.113488%2020.028%20-0.253264%2021.6246%200.329187L30.4784%203.55915C32.075%204.1416%2032.4015%204.59908%2031.9385%205.86824C31.3938%207.36137%2027.082%2017.3775%2024.749%2022.8708L17.9679%2039.4303C17.1872%2041.3449%2016.788%2041.5376%2014.9011%2040.8493ZM10.8629%2044.7054C14.7818%2046.1351%2016.6226%2050.1057%2015.1791%2054.0625C13.6811%2058.1686%209.76122%2060.799%204.82631%2058.9987C0.907411%2057.569%20-0.942428%2053.8489%200.473816%2049.9667C2.08071%2045.562%206.07318%2042.9581%2010.8629%2044.7054Z%22%20fill%3D%22%230059AB%22%2F%3E%3C%2Fsvg%3E');
}

.p-test-fun__button2 {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 20px;
  margin-top: 30px;
}

@media screen and (max-width: 356px) {
  .p-test-fun__img .i {
    width: calc(33 / 357 * 100vw);
    height: calc(60 / 357 * 100vw);
  }
}

.p-test-fun__tablet {
  container-type: inline-size;
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 0 0 23.467cqw;
  margin-top: -60cqw;

  &::before {
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    content: '';
    width: 150.4cqw;
    aspect-ratio: 564 / 503;
    border-radius: 50%;
    background-color: #0059ab;
  }
}

.p-test-fun__tablet-img {
  display: block;
  max-width: 67.733cqw;
  width: 100%;
  margin-inline: auto;
}

.p-test-fun__tablet-text {
  color: #fff;
  font-size: 5.333cqw;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0;
  margin-top: 4.267cqw;

  span {
    letter-spacing: 0.1em;
  }
}

.p-test-fun__tablet-list {
  width: fit-content;
  margin: 3.467cqw auto 0;

  li {
    position: relative;
    color: #fff;
    font-size: 4.267cqw;
    font-weight: 500;
    line-height: 1.76;
    text-align: left;
    padding-left: 7.467cqw;

    &::before {
      position: absolute;
      top: 1.6cqw;
      left: 0;
      display: block;
      content: '';
      width: 4.8cqw;
      aspect-ratio: 1;
      border-radius: 50%;
      background-image: url('/assets/chugaku/images/test_fun_check.svg');
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
      box-shadow: 0 1.067cqw 1.067cqw rgba(0, 0, 0, 0.1);
    }
  }
}

/* だから2学期にテストの点数が上がる */
.p-result {
  position: relative;
  z-index: 2;
  background-color: #eaf2fa;
  padding-bottom: 74px;
  margin-top: -17px;

  .p-score-result {
    background-image: none;
    &::after {
      content: none;
    }

    .p-test-fun & {
      padding-top: 40px;
    }
  }

  .p-test-fun & {
    margin-top: clamp(-450px, calc(-60cqw + 10px), -200px);
    padding-bottom: clamp(200px, 70cqw, 500px);
    background: linear-gradient(to bottom, #eaf2fa 120px, #fff 120px);
    position: relative;
    z-index: 1;

    &::before {
      content: '';
      position: absolute;
      inset: 0;
      background-color: #fff;
      mask-image: url(/assets/chugaku/images/test_fun_bg.png);
      -webkit-mask-image: url(/assets/chugaku/images/test_fun_bg.png);
      mask-repeat: no-repeat;
      -webkit-mask-repeat: no-repeat;
      mask-position: center top;
      -webkit-mask-position: center top;
      mask-size: 112% auto;
      -webkit-mask-size: 112% auto;
      pointer-events: none;
      z-index: -1;
    }
  }

  .p-result-cta {
    display: none;
  }

  + .p-important-points__point {
    position: relative;
    z-index: 2;
  }
}

.p-result__heading {
  max-width: 250px;
  width: 100%;
  margin-inline: auto;
  padding-bottom: 60px;
}

.p-test-fun02 {
  container-type: inline-size;
  padding-bottom: 64px;
  margin-top: 76px;
}

.p-test-fun02__body {
  position: relative;

  .p-test-fun__tablet {
    padding-bottom: 15cqw;
    margin-top: -24cqw;
    &::before {
      width: 181.8666666667cqw;
      aspect-ratio: 682 / 695;
    }
  }

  .p-test-fun__tablet-text {
    margin-top: 9cqw;
  }
}

.p-test-fun02__title {
  position: absolute;
  top: 12cqw;
  left: 6.5cqw;
  width: 52.8cqw;
  img {
    width: 100%;
  }
}

.p-test-fun02__text {
  color: #fff;
  font-size: 5.3333333333cqw;
  font-weight: 700;
  text-align: center;
  margin-top: 10.5cqw;
}

.p-test-fun02__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-top: 0.2cqw;
}

.p-test-fun02__price-label {
  display: inline-block;
  transform: translateY(-2cqw);
  color: #0059ab;
  font-size: 4.5333333333cqw;
  font-weight: 700;
  background-color: #fff;
  border-radius: calc(infinity * 1px);
  padding: 0.5333333333cqw 2.6666666667cqw;
  margin-right: 1cqw;
}

.p-test-fun02__price-value {
  font-size: 17.3333333333cqw;
  font-weight: 900;
  line-height: 1.2;
  span {
    &.-ls {
      letter-spacing: -0.13em;
    }
    &.-comma {
      font-size: 0.7384615385em;
    }
  }
}

.p-test-fun02__price-unit {
  position: relative;
  display: inline-block;

  font-size: 7.7333333333cqw;
  font-weight: 700;
  letter-spacing: 0.08em;

  margin-left: 0.22em;
  span {
    position: absolute;
    top: -1.2cqw;
    right: 0.2cqw;
    white-space: nowrap;
    letter-spacing: -0.14em;
    font-size: 3.2cqw;
    font-weight: 400;
  }
}

.p-test-fun02__tax {
  color: #fff;
  font-size: 4cqw;
  font-weight: 500;
  text-align: center;
  margin-top: 1cqw;
}

.p-test-fun02__buttons {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  margin-top: 30px;
  gap: 19px;
}

/* 資料請求 */
.p-apply {
  padding-bottom: 52px;
}

.p-apply__inner {
  max-width: 750px;
  margin: 0 auto;
}

.p-apply__box {
  overflow: hidden;
  width: clamp(340px, calc(340 / 375 * 100vw), 500px);
  margin: 0 auto;
}

.p-apply__carousel {
  overflow-x: hidden;
  width: 100%;
}

.p-apply__swiper {
  overflow: visible;
}

.p-apply__swiper .slick-list {
  margin: 0 -10px;
}

.p-apply__swiper .slick-slide {
  display: flex;
  justify-content: center;
  margin: 0 10px;
}

.p-apply__swiper .slick-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.p-apply__pagination .slick-dots {
  position: static !important;
  bottom: auto !important;
  display: flex !important;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.p-apply__pagination .slick-dots li {
  width: clamp(10px, calc(10 / 375 * 100vw), 14px) !important;
  height: clamp(10px, calc(10 / 375 * 100vw), 14px) !important;
  margin: 0 clamp(4px, calc(8 / 375 * 100vw), 8px) !important;
}

.p-apply__pagination .slick-dots li button {
  padding: 0 !important;
  width: clamp(10px, calc(10 / 375 * 100vw), 14px) !important;
  height: clamp(10px, calc(10 / 375 * 100vw), 14px) !important;
  background: transparent !important;
}

.p-apply__pagination .slick-dots li button::before {
  width: clamp(10px, calc(10 / 375 * 100vw), 14px) !important;
  height: clamp(10px, calc(10 / 375 * 100vw), 14px) !important;
  background: #0b1142 !important;
  opacity: 0.4 !important;
  transition: opacity 0.3s;
  top: 0 !important;
  left: 0 !important;
}

.p-apply__pagination .slick-dots li.slick-active button::before {
  opacity: 1 !important;
}

.p-apply__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(300px, calc(300 / 375 * 100vw), 450px);
  margin: 0 auto;
}

.p-apply__detail {
  position: relative;
  margin-top: 0;
  width: 100%;
}

.p-apply__detail-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.p-apply__content-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease;
}

.p-apply__detail-checkbox:checked ~ .p-apply__content-detail {
  max-height: 1200px;
  opacity: 1;
}

.p-apply__more {
  width: 90%;
  margin-inline: auto;
  p,
  li {
    font-size: 10px !important;
    line-height: 1.5;
    letter-spacing: 0 !important;
  }

  ul {
    margin-top: 0.85lh;
  }
}

.p-apply__cta {
  display: block;
  max-width: 327px;
  width: 100%;
  margin: 35px auto 0;
}
