/* Common */
#page {
  overflow: hidden;
}

main * {
  box-sizing: border-box;
}

body {
  color: #231815;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

.greySection,
.whiteSection {
  padding: clamp(3.75rem, 7.14vw, 5rem) 1.25rem;
}

.greySection {
  background: #f2f2f0;
}

.whiteSection {
  background: #fff;
}

.ed__hgroup {
  text-align: center;
}

.ed__title {
  /* Max 40 Min 26 */
  font-size: clamp(1.625rem, 0.781rem + 2.46vw, 2.5rem);
  font-weight: 700;
  margin: 0;
  text-align: center;
}

.ed__lead {
  color: #9a0c1b;

  /* Max 24 Min 18*/
  font-size: clamp(1.125rem, 0.763rem + 1.05vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
}

/* Mv */
.edMv {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 5.1875rem 1.25rem;
  position: relative;
  z-index: 1;
}

.edMv__contents {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.edMv__title {
  /* Max 56 Min 32*/
  font-size: clamp(2rem, 0.553rem + 4.21vw, 3.5rem);
  text-align: center;
}

.edMv__title > span {
  /* Max 37 Min 24 */
  font-size: clamp(1.5rem, 0.716rem + 2.28vw, 2.313rem);
}

.edMv__bg {
  height: 100%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: -1;
}

.edMv__bg img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.edMv__contents .edCTA {
  margin: 0 auto;
  max-width: 15.5rem;
  width: 100%;
}

.edAbout__text {
  font-size: 1rem;
  margin-top: 2.5rem;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .edMv {
    padding: 2rem 1.25rem;
  }
  #content .edMv__title {
    /* Max 32 Min 28 */
    font-size: clamp(1.75rem, 1.511rem + 1.02vw, 2rem);
  }
  #content .edMv__title > span {
    /* Max 22 Min 18 */
    font-size: clamp(1.125rem, 0.886rem + 1.02vw, 1.375rem);
  }
  .edMv__contents .edCTA {
    max-width: 12.5rem;
  }
  .edMv__contents {
    gap: 1.375rem;
  }
  .edAbout__text {
    font-size: 0.875rem;
  }
}

/* Training */

.edTraining__article {
  margin-top: 2.5rem;
}

.edTraining__article.second {
  margin-top: 1.5rem;
}

.edTraining__body {
  background: #f3f3f3;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: clamp(6.25rem, 11.0714vw, 7.75rem) 1fr;
  padding: 2.5rem clamp(1.625rem, 3.5714vw, 2.5rem);
}

.edTraining__thumbnail {
  aspect-ratio: 1 / 1;
  height: auto;
  width: 100%;
}

.edTraining__thumbnail img {
  border-radius: 0.625rem;
  width: 100%;
}

.edTraining__articleTitle {
  color: #9a0c1b;

  /* Max 30 Min 22 */
  font-size: clamp(1.375rem, 0.893rem + 1.4vw, 1.875rem);
}

.edTraining__textArea {
  align-self: center;
}

.edTraining__textArea .edCTA {
  height: 2.5rem;
  margin-top: 0.625rem;
  max-width: 10.25rem;
}

.edTraining__notice {
  font-size: 1.125rem;
  margin-top: 2.5rem;
  text-align: center;
}

.edTraining .edCTA--center {
  margin: 1.5rem auto 0;
  max-width: fit-content;
  padding: 0 2.5rem;
}

@media screen and (max-width: 500px) {
  .edTraining__body {
    grid-template-columns: 1fr;
  }
}

/* Courses */

.courses__list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 2.5rem auto 0;
  padding: 0;
}

.courses__item {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: clamp(6.25rem, 11.0714vw, 7.75rem) 1fr;
  grid-template-rows: auto 1fr;
}

.courses__thumbnail {
  grid-column: 1;
  grid-row: span 2;
}

.courses__thumbnail img {
  border-radius: 0.625rem;
}

.courses__heading {
  color: #9a0c1b;

  /* Max 30 Min 22 */
  font-size: clamp(1.375rem, 0.893rem + 1.4vw, 1.875rem);
  grid-column: 2;
  grid-row: 1;
}

.courses__contents {
  grid-column: 2;
  grid-row: 2;
}

.courses__detailList {
  display: grid;
  grid-template-columns: 6.25rem 1fr;
  gap: 0.625rem 0;

  dt {
    font-size: 1.125rem;
    font-weight: 700;
  }
}

.courses__disclaimer {
  margin-top: 1rem;
}

.courses__subheading {
  font-size: 1.125rem;
  font-weight: 700;
}

.coursesBox {
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: clamp(3.75rem, 7.1429vw, 5rem);
  padding: 2.5rem clamp(1.625rem, 3.5714vw, 2.5rem);
}

.coursesBox__title {
  border-bottom: 1px solid #939393;

  /* Max 28 Min 22 */
  font-size: clamp(1.375rem, 1.013rem + 1.05vw, 1.75rem);
  font-weight: 700;
  padding-bottom: 1rem;
  text-align: center;
}

.coursesBox__points {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 3.5714vw, 2.5rem);
  justify-content: center;
}

.courseBox__label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  max-width: 9.3125rem;
  width: 100%;
}

.courseBox__label dt {
  align-items: center;
  background: #9a0c1b;
  border-radius: 100px;
  color: #fff;
  display: flex;
  font-size: 0.875rem;
  font-weight: 700;
  height: 1.5625rem;
  justify-content: center;
  max-width: 9.375rem;
  text-align: center;
  width: 100%;
}

.courseBox__label dd {
  /* Max 18 Min 16 */
  font-size: clamp(1rem, 0.879rem + 0.35vw, 1.125rem);
  font-weight: 700;
  margin: 0;
  text-align: center;
}

.coursesBox__pointList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.coursesBox__pointList li {
  font-size: 1rem;
  font-weight: 500;
}

.coursesBox__pointList li > span {
  color: #9a0c1b;
}

.courseBox__articleDisplay {
  display: grid;
  gap: clamp(1.625rem, 3.5714vw, 2.5rem);
  grid-template-columns: 1fr 1fr;
}

.coursesBox__articleHead {
  align-items: center;
  background: #9a0c1b;
  display: flex;
  height: 3.375rem;
  justify-content: center;
}

.coursesBox__articleTitle {
  color: #fff;

  /* Max 19 Min 17 */
  font-size: clamp(1.063rem, 0.942rem + 0.35vw, 1.188rem);
  font-weight: 700;
}

.coursesBox__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 1.5rem clamp(1rem, 2.6786vw, 1.875rem) 0;
}

.coursesBox__item {
  display: grid;
  gap: 0.875rem;
  grid-template-columns: 1.5rem 1fr;
}

@media screen and (max-width: 767px) {
  .courses__item {
    gap: 1rem;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    justify-items: center;
  }
  .courses__contents {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0.5rem;
  }
  .courses__thumbnail {
    grid-row: 2;
  }
  .courses__heading {
    grid-column: 1;
    grid-row: 1;
  }
  .courses__sublist {
    grid-template-columns: 1fr 1fr;
  }
  .coursesBox {
    gap: 2rem;
  }
  .courseBox__articleDisplay {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 500px) {
  .courses__sublist {
    grid-template-columns: 1fr;
  }
  .coursesBox__list {
    padding: 1.5rem 0 0;
  }
}

/* Cases */

.cases__list {
  display: grid;
  gap: 1rem 1.25rem;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 2.5rem auto 0;
  padding: 0;
}

.cases__list li {
  background: #f2f2f0;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.625rem 1rem;
  text-align: center;
  width: 100%;
}

.applicationBox {
  background: #9a0c1b;
  border-radius: 1rem;
  margin-top: clamp(3.75rem, 8.6607vw, 6.0625rem);
  padding: clamp(2.5rem, 5.3571vw, 3.75rem) 1.25rem;
}

.applicationBox .ed__title,
.applicationBox .ed__lead {
  color: #fff;
}

.applicationBox__text {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 2.5rem;
  text-align: center;
}

.applicationBox .edCTA {
  margin: 2.5rem auto 0;
  max-width: 16.25rem;
}

@media screen and (max-width: 767px) {
  .cases__list {
    grid-template-columns: 1fr 1fr;
  }
  .applicationBox .edCTA {
    max-width: 200px;
  }
}

@media screen and (max-width: 374px) {
  .cases__list {
    grid-template-columns: 1fr;
  }
}
