@charset "utf-8";

:root {
  --color-primary: #1f3b9e;
  --color-primary-light: #eef6fd;
  --color-primary-dark: #182e4c;
  --color-accent: #b08305;
  --color-background: #ffffff;
  --color-text: #333333;
  --color-text-secondary: #ffffff;
  --color-gray: #f2f2f2;
  --color-red: #e52d2c;
  --color-beige: #f8f3eb;
  --color-yellow: #fee302;
  --shadow: 5px 5px 10px 0px #3b5d8a1a;
}
@media screen and (min-width: 768px) {
  /* zoomの拡大を相殺 */
  :where(.mainvisual, .navigation, .junior-high-exam, .voice, .pro-teacher, .cram-school, .tokusei-support, .futoukou-support, .learning-habit, .tokusei-support, .eiken-support, .md-course-fee) {
    zoom: calc(1 / 0.9);
  }
  [id] {
      scroll-margin-top: 130px;
  }
}
h3 {
  padding: 0;
}
.md-course-page-container .md-contact {
  padding-bottom: 0;
}

/*-------------------------
    common
-------------------------*/
.pc {
  display: none !important;
}
.sp {
  display: block !important;
}
.u-color-primary {
  color: var(--color-primary);
}
.u-color-accent {
  color: var(--color-accent);
}
.u-color-red {
  color: var(--color-red);
}
.u-color-yellow {
  color: var(--color-yellow);
}
.u-text-underline {
  background: linear-gradient(transparent 80%, var(--color-accent) 80%);
}
.u-text-bold {
  font-weight: 700;
}
.u-text-align-center {
  text-align: center;
}
.u-text-align-left {
  text-align: left;
}
.u-text-align-right {
  text-align: right;
}
@media screen and (min-width: 768px) {
  .pc {
    display: block !important;
  }
  .sp {
    display: none !important;
  }
}

/*-------------------------
    contents-inner
-------------------------*/
.contents-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
}
@media screen and (min-width: 768px) {
  .contents-inner {
    max-width: 1000px;
  }
}
@media screen and (min-width: 1025px) {
  .contents-inner {
    padding: 0;
  }
}

/*-------------------------
    bg-gray
-------------------------*/
.bg-gray,
.bg-gray--arrow {
  background: var(--color-gray);
}
.bg-gray .contents-inner,
.bg-gray--arrow .contents-inner {
  padding: 30px 20px;
}
.bg-gray--arrow {
  position: relative;
}
.bg-gray--arrow::after {
  content: '';
  position: absolute;
  bottom: -27px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gray);
  height: 28px;
  width: 54px;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}
@media screen and (min-width: 768px) {
  .bg-gray .contents-inner,
  .bg-gray--arrow .contents-inner {
    padding: 40px 0 60px;
  }
  .bg-gray--arrow::after {
    bottom: -39px;
    height: 40px;
    width: 82px;
  }
}

/*-------------------------
    title
-------------------------*/
/* contents-title */
.contents-title {
  background: var(--color-primary);
  color: var(--color-text-secondary);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.4;
  text-align: center;
  padding: 17px 0;
}

@media screen and (min-width: 768px) {
  .contents-title {
    font-size: 36px;
    padding: 20px 0 24px;
    line-height: 1;
  }
}

/*-------------------------
    button
-------------------------*/
.button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-text-secondary);
  background: var(--color-primary);
  width: 100%;
  max-width: 280px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50px;
  padding: 12px 37px 12px 12px;
}
.button::after {
  content: '';
  position: absolute;
  background: url('../assets/images/md-img/icon-arrow.svg') no-repeat center center / contain;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
}
.pro-teacher .button {
  background: #EBD477;
  color: var(--color-primary);
  font-size: 16px;
}
.pro-teacher .button::after {
  background: url('../assets/images/md-img/icon-arrow-white.svg') no-repeat center center / contain;
}
.cram-school .button-wrapper {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cram-school .button {
  font-size: 13px;
}
.cram-school .button::after {
  width: 22px;
  height: 22px;
}
@media screen and (min-width: 768px) {
  .button {
    max-width: 310px;
    font-size: 24px;
    padding: 12px 45px 12px 12px;
  }
  .button::after {
    right: 20px;
  }
  .pro-teacher .button-wrapper {
    margin-top: 60px;
  }
  .pro-teacher .button {
    max-width: 350px;
    font-size: 20px;
    padding: 16px 53px 16px 27px;
  }
  .cram-school .button-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
  }
  .cram-school .button {
    max-width: 410px;
    font-size: 20px;
  }

}

/*-------------------------
    navigation
-------------------------*/
.navigation {
  background: var(--color-primary);
  padding: 16px 0;
  margin-top: 3rem;
}
.navigation .contents-inner {
  max-width: 848px;
}
.navigation__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  padding: 0;
  justify-content: space-between;
}
.navigation__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  border-bottom: 1px solid #fff;
  width: calc(50% - 6px);
  font-weight: 700;
  text-align: left;
  letter-spacing: 0;
}
.navigation__item a {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-secondary);
  font-size: 14px;
  width: 100%;
  height: 100%;
}
.navigation__item a::after {
  content: '';
  background: url('/course/assets/images/md-img/down-arrow.svg') no-repeat center center / contain;
  width: 20px;
  height: 20px;
}

@media screen and (min-width: 768px) {
  .navigation {
    padding: 16px;
    margin-top: 20px;
  }
  .navigation__list {
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
  }
  .navigation__item {
    justify-content: center;
    width: calc(100% / 7);
    min-height: 48px;
    border-right: 1px solid #fff;
    border-bottom: none;
    text-align: center;
    flex: 1;
  }
  .navigation__item:first-child {
    border-left: 1px solid #fff;
  }
  .navigation__item a {
    font-size: 15px;
    justify-content: center;
    line-height: 1.26;
    padding-bottom: 12px;
  }
  .navigation__item a::after {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: -6px;
    transform: translateX(-50%);
  }
}

/*-------------------------
    カードレイアウト
-------------------------*/
.card {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card + .card {
  margin-top: 24px;
}
.card__title {
  color: var(--color-text);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 16px;
}
.card__contents {
  flex: 1;
  background: var(--color-background);
  border-radius: 8px;
  overflow: hidden;
}
.card__picture {
  display: block;
}
.card__picture-note {
  font-size: 10px;
  text-align: right;
}
.card__image {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
}
.card__text {
  padding: 20px 16px;
}
.card__description {
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  padding-left: 26px;
}
.card__description::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  width: 18px;
  height: 18px;
  background: url('/course/elementary/assets/images/md-img/icon-check.svg') no-repeat center center / contain;
}
.card__message {
  background: var(--color-primary-light);
  border-radius: 4px;
  padding: 12px 16px;
  margin-top: 10px;
}
.card__message-title {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
}
.card__message-description {
  font-size: 14px;
  line-height: 1.6;
}
.card__notes {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  text-align: left;
  margin-top: 16px;
}

@media screen and (min-width: 768px) {
  .card + .card {
    margin: 0;
  }
  .card__title {
    font-size: 26px;
    min-height: 72px;
  }
  .card__title--oneline {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .card__text {
    padding: 24px;
  }
  .card__description {
    font-size: 16px;
    padding-left: 40px;
  }
  .card__description::before {
    width: 24px;
    height: 24px;
  }
  .contents-column {
    display: flex;
    gap: 60px;
  }
  .card__message {
    padding: 12px 20px;
    margin-top: 17px;
  }
  .card__notes {
    text-align: right;
  }
  /* 注釈がないカードの、注釈分の高さを疑似要素で補う */
  .card--notes-space::after {
    content: '';
    display: block;
    height: 15px;
    margin-top: 16px;
  }
}

/* md-course__cards */
.md-course__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
  letter-spacing: 0.04em;
  font-feature-settings: 'palt' on;
}
.md-course__card {
  background: var(--color-primary-light);
  padding: 8px;
}
.md-course__card-title {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  color: #182e4c;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.md-course__card-title img {
  width: 18px;
  flex: 0 0 auto;
  margin: 0;
}
.md-course__card-description {
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0;
}
.md-course__card-description::before {
  content: '';
  background: url('/course/common/img/icon-check.svg') no-repeat center center / contain;
  width: 10px;
  aspect-ratio: 10/13;
}
@media screen and (min-width: 768px) {
  .md-course__cards {
    gap: 12px;
    margin-top: 12px;
  }
  .md-course__card {
    padding: 12px 16px;
  }
  .md-course__card-title {
    gap: 6px;
    font-size: 16px;
  }
  .md-course__card-title img {
    width: 20px;
  }
  .md-course__card-description {
    gap: 4px;
    font-size: 12px;
  }
}

/*-------------------------
    中学受験対策
-------------------------*/
.junior-high-exam .card__picture--with-padding {
  padding: 20px 40px 0;
}
@media screen and (min-width: 768px) {
  .junior-high-exam .card__picture--with-padding {
    padding: 30px 90px 0;
  }
}

/*-------------------------
    合格実績
-------------------------*/
.achievement {
  margin-top: 24px;
}
.achievement img {
  display: block;
  margin: 0 auto;
}
@media screen and (min-width: 768px) {
  .achievement {
    margin-top: 60px;
  }
}

/*-------------------------
    生徒さまの声
-------------------------*/
.voice {
  padding: 58px 0 40px;
}
.voice img {
  max-width: none;
}
.voice .contents-title {
  background: none;
  color: var(--color-primary-dark);
  padding: 0;
  margin-bottom: 24px;
}
.voice__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.voice__item {
  background: var(--color-background);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid #cccccc;
}
.voice__picture {
  display: block;
}
.voice__image {
  display: block;
  width: 100%;
}
.voice__body {
  position: relative;
  padding: 16px 20px 20px;
}
.voice__title {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  text-align: left;
}
.voice__name {
  position: absolute;
  top: -35px;
  left: 0;
  background: var(--color-background);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  border-radius: 0 4px 0 0;
  padding: 8px 10px 4px 14px;
}
.voice__name-honorifics {
  font-size: 16px;
  margin-left: 5px;
}
.voice__description {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 8px;
}
.voice__notes {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
  margin-top: 24px;
}

@media screen and (min-width: 768px) {
  .voice {
    padding: 70px 0 40px;
  }
  .voice__list {
    gap: 40px;
  }
  .voice__item {
    display: flex;
    gap: 40px;
    padding: 40px;
    box-shadow: none;
  }
  .voice__picture {
    flex: 1 0 400px;
  }
  .voice__body {
    padding: 8.5px 0;
  }
  .voice__title {
    font-size: 24px;
  }
  .voice__name {
    position: static;
    background: none;
    font-size: 24px;
    border-radius: 0;
    padding: 0;
    margin-top: 8px;
  }
  .voice__name-honorifics {
    font-size: 20px;
  }
  .voice__notes {
    margin-top: 40px;
  }
}

/* voice-contents-type02 */
.voice-contents-type02 .contents-column {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 24.5px 20px 0;
}
.voice-contents-type02 .voice__image {
  width: 60px;
  aspect-ratio: 1/1;
}
.voice-contents-type02 .voice__name {
  position: static;
  background: none;
  font-size: 24px;
  line-height: 1.4;
  border-radius: 0;
  padding: 0;
}
.voice-contents-type02 .voice__name-honorifics {
  font-size: 14px;
  margin-left: 5px;
}

@media screen and (min-width: 768px) {
  .voice-contents-type02 .voice__item {
    align-items: flex-start;
    padding: 40px 50px;
  }
  .voice-contents-type02 .contents-column {
    padding: 0;
  }
  .voice-contents-type02 .voice__picture {
    flex: 1 0 400px;
  }
  .voice-contents-type02 .voice__image {
    width: 130px;
    flex: 1 0 130px;
  }
  .voice-contents-type02 .voice__body {
    padding: 0;
  }
  .voice-contents-type02 .voice__name {
    font-size: 33px;
    margin-top: 0;
  }
  .voice-contents-type02 .voice__name-honorifics {
    font-size: 20px;
    margin: 0 5px;
  }
  .voice-contents-type02 .voice__description {
    margin-top: 12px;
  }
  .voice-contents-type02 .voice__notes {
    margin-top: 40px;
  }
}

/*-------------------------
    厳選された教師
-------------------------*/
.pro-teacher {
  background: #1F3B9E;
  padding: 40px 0;
}
.pro-teacher .contents-inner {
  padding: 0;
}
.pro-teacher__title {
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 16px;
  text-align: center;
}
.pro-teacher__lead {
  font-size: 18px;
  text-align: center;
  color: #ffffff;
  font-weight: bold;
  margin-bottom: 24px;
}
.pro-teacher__lead:last-of-type {
  font-size: 24px;
}
.pro-teacher__slide {
  margin-bottom: 40px;
}
.splide.is-initialized:not(.is-active) .splide__list {
  display: flex;
  justify-content: space-between;
  gap: 26px;
}
.pro-teacher__card {
  position: relative;
  border-radius: 10px;
  padding: 40px 12px 14px;
  background: #fff;
  box-shadow: 4px 6px 8px 0px #00000026;
}
.pro-teacher__card .card__label {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(233.87deg, #F0D76F 5.99%, #FEF5CE 28.7%, #FFF2A9 47.23%, #F0D76F 79.8%, #C68A01 101.35%);
  color: var(--color-primary);
  padding: 7px 12px;
  border-top-left-radius: 10px;
  font-size: 12px;
  font-weight: bold;
}
.pro-teacher__card .card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pro-teacher__card .card__image {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}
.pro-teacher__card .card__content {
  width: 100%;
}
.pro-teacher__card .card__school {
  font-size: 14px;
  font-weight: bold;
}
.pro-teacher__card .card__name {
  font-size: 20px;
  margin: 0 0 12px;
  font-weight: bold;
}
.pro-teacher__card .card__head {
  font-size: 16px;
  font-weight: bold;
}
.pro-teacher__card .card__text {
  padding: 0;
  font-size: 14px;
}
.splide__progress {
  background: #fff;
  margin: 20px 20px 0;
}
.splide__progress__slide {
  background: #999;
  height: 5px;
  transition: width 0.4s ease;
  width: 0;
}
.pro-teacher__silde-note {
  text-align: left;
  color: #ffffff;
  font-size: 10px;
  margin-top: 12px;
  margin: 20px 20px 0;
}

.pro-teacher__contents {
  background:#ffffff;
  padding: 30px 20px;
  border-radius: 8px;
  margin: 0 20px;
}
.pro-teacher__description {
  font-size: 14px;
  margin-top: 16px;
}
.pro-teacher__note {
  margin-top: 16px;
  font-size: 10px;
}
@media screen and (min-width: 768px) {
  .pro-teacher {
    padding: 90px 0;
  }
  .pro-teacher .contents-inner {
    max-width: 1080px;
  }
  .pro-teacher__slide {
    margin-bottom: 60px;
  }
  .pro-teacher__card {
    flex: 1;
  }
  .splide__progress ,
  .splide__progress__slide {
    display: none;
  }
  .pro-teacher__title {
    font-size: 40px;
    margin-bottom: 20px;
  }
  .pro-teacher__lead {
    font-size: 32px;
    margin-bottom: 40px;
  }
  .pro-teacher__lead:last-of-type {
    font-size: 32px;
    margin-bottom: 28px;
  }
  .pro-teacher__silde-note {
    text-align: right;
    margin: 12px 0 0;
  }
  .pro-teacher__contents {
    display: flex;
    align-items: center;
    padding: 40px 100px;
    gap: 40px;
    border-radius: 8px;
  }
  .pro-teacher__text {
    flex: 1;
  }
  .pro-teacher__description {
    font-size: 20px;
  }
  .pro-teacher__note {
    margin-top: 12px;
    font-size: 10px;
  }
}
/*-------------------------
    英検®対策
-------------------------*/
.eiken-support__notes-container {
  margin-top: 24px;
}
.eiken-support__notes {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  text-align: left;
  margin-top: 0;
}
@media screen and (min-width: 768px) {
  .eiken-support__notes {
    text-align: left;
  }
  .eiken-support__notes-container {
    margin-top: 16px;
  }
}

/*-------------------------
    course-fee
-------------------------*/
.md-course-fee__btn-wrap {
  max-width: 450px;
  margin: 0 auto;
}
