@charset "utf-8";
.school {
  padding-top: 80px;
}

@media screen and (min-width: 768px) {
  .school {
    padding-top: 139px;
    padding-bottom: 149px;
  }
}

.school__inner {
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

@media screen and (min-width: 900px) {
  .school__inner {
    padding-right: 40px;
    padding-left: 0;
    max-width: calc(1326px + 40px);
    margin-inline: auto;
  }
}

.school__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media screen and (min-width: 900px) {
  .school__container {
    flex-direction: row;
    gap: 0;
    justify-content: space-between;
  }
}

.school__sidebar {
  background: #efeffa;
  width: 100%;
  align-self: flex-start;
  padding-bottom: 20px;
  border-radius: 0 0 10px 10px;
}

@media screen and (min-width: 900px) {
  .school__sidebar {
    flex-shrink: 0;
    width: fit-content;
    height: fit-content;
    position: sticky;
    z-index: 10;
    top: 80px;
    left: 0;
    margin-top: 31px;
    flex-direction: column;
    width: 258px;
  }
}

.school__sidebar-head {
  padding: 0 23px 18px;
  border-bottom: 1px solid #58428b;
}

.school__sidebar-heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 26px;
  color: var(--sub-color);
}

.school__sidebar-box {
  margin-top: 26px;
  padding-left: 25px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

@media screen and (min-width: 900px) {
  .school__sidebar-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

.school__sidebar-box-button-text {
  min-width: 165px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 20px;
  color: var(--sub-color);
  padding: 6px 12px 6px 12px;
  background: var(--white-color);
  border-radius: 40px;
}

@media screen and (min-width: 900px) {
  .school__sidebar-box-button-text {
    padding: 13px 19px 13px 16px;
  }
}

.school__main {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  background: var(--white-color);
  border-radius: 10px;
  padding: 40px 20px 40px;
  border-bottom: 2px solid #d0d0d0;
  max-width: 1009px;
}

@media screen and (min-width: 768px) {
  .school__main {
    padding: 94px 80px 120px 70px;
  }
}

.school__main-head {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  padding-bottom: 57px;
  border-bottom: 2px solid #d0d0d0;
  justify-content: center;
}

@media screen and (min-width: 768px) {
  .school__main-head {
    flex-direction: row;
    align-items: self-start;
    justify-content: space-between;
    gap: 20px;
  }
}

.school__main-head-box {
  max-width: 415px;
}

.school__main-head-heading-en {
  display: inline-block;
  margin-top: 37px;
  padding: 6px 16px 4px 10px;
  font-size: 18px;
  font-family: var(--ff-space);
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--white-color);
  background: var(--title-color);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

.school__main-head-heading-ja {
  margin-top: 15px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 37px;
  color: var(--sub-color);
}

@media screen and (min-width: 414px) {
  .school__main-head-heading-ja {
    font-size: 20px;
  }
}

@media screen and (min-width: 600px) {
  .school__main-head-heading-ja {
    font-size: 24px;
  }
}

@media screen and (min-width: 1070px) {
  .school__main-head-heading-ja {
    font-size: 26px;
  }
}

.school__main-head-heading-jdescription,
.school__main-head-heading-text {
  letter-spacing: 0.06em;
  line-height: 2.2;
  font-size: 14px;
}

.school__main-head-heading-jdescription {
  margin-top: 32px;
}

.school__main-head-heading-text {
  margin-top: 27px;
}

@media screen and (min-width: 768px) {
  .school__main-head-heading-jdescription,
  .school__main-head-heading-text {
    font-size: 15px;
  }
}

.school__main-head-image {
  aspect-ratio: 380/390;
  max-width: 380px;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.school__main-head-image img {
  aspect-ratio: 380/390;
  object-fit: cover;
  width: 100%;
  border-radius: 10px;
}

.school__class {
  padding-block: 60px 70px;
  border-bottom: 2px solid #d0d0d0;
}

@media screen and (min-width: 768px) {
  .school__class {
    margin-inline: 5px;
  }
}

.school__class-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 29px;
  color: var(--sub-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.school__class-title::before {
  content: "";
  width: 15px;
  height: 15px;
  padding-right: 15px;
  background: var(--title-color);
  border-radius: 50%;
}

.school__class-title-small {
  font-size: 19px;
}

.school__class-description {
  margin-top: 37px;
  letter-spacing: normal;
  line-height: 2.2;
  font-size: 13px;
}

@media screen and (min-width: 414px) {
  .school__class-description {
    font-size: 14px;
    letter-spacing: 0.06em;
  }
}

@media screen and (min-width: 768px) {
  .school__class-description {
    letter-spacing: 0.09em;
  }
}

@media screen and (min-width: 1200px) {
  .school__class-description {
    letter-spacing: 0.22em;
    font-size: 15px;
  }
}

.school__class-image {
  margin-top: 44px;
  width: 100%;
  aspect-ratio: 848/380;
  object-fit: cover;
  border-radius: 10px;
}

.school__class-bottom {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 41px;
}

@media screen and (min-width: 768px) {
  .school__class-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
  }
}

.school__class-bottom-box {
  background: #fafafc;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  width: 100%;
  padding-bottom: 38px;
}

.school__class-bottom-box-title {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 26px;
  color: var(--white-color);
  padding: 7px 38px 6px;
  border-radius: 5px 0 5px 0;
  background: #5d59b8;
}

.school__class-bottom-box:nth-of-type(2) .school__class-bottom-box-title {
  background: #8e73c2;
}

.school__class-bottom-box-text {
  margin-top: 24px;
  width: 85%;
  margin-inline: auto;
  letter-spacing: 0.08em;
  line-height: 2.2;
}

@media screen and (min-width: 414px) {
  .school__class-bottom-box-text {
    font-size: 14px;
  }
}

@media screen and (min-width: 1200px) {
  .school__class-bottom-box-text {
    font-size: 15px;
  }
}

.school__price {
  margin-top: 60px;
}

.school__table-container {
  margin-top: 70px;
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #d9d9d9;
}

.school__price-table {
  width: 100%;
  display: table;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: none;
  min-width: 480px;
}

@media screen and (min-width: 768px) {
  .school__price-table {
    min-width: 580px;
  }
}

.school__price-table-row {
  display: table-row;
  width: 100%;
}

.school__price-table-row:first-of-type {
  background: #f7f7f7;
}

.school__price-table-row:not(:first-of-type) .school__price-table-th,
.school__price-table-row:not(:first-of-type) .school__price-table-td {
  padding-block: 22px;
}

.school__price-table-row:first-of-type
  .school__price-table-th:not(:first-of-type) {
  border-left: 1px solid #d9d9d9;
  width: 24%;
  min-width: 149px;
}

.school__price-table-row:first-of-type .school__price-table-th {
  padding-block: 12px;
}

.school__price-table-row .school__price-table-th:first-of-type {
  width: 29%;
  min-width: 180px;
}

.school__price-table-th-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 26px;
  color: var(--sub-color);
  text-align: center;
}

@media screen and (min-width: 768px) {
  .school__price-table-th-text {
    font-size: 14px;
  }
}

@media screen and (min-width: 1000px) {
  .school__price-table-th-text {
    font-size: 18px;
  }
}

.school__price-table-th,
.school__price-table-td {
  display: table-cell;
  vertical-align: middle;
}

.school__price-table-td {
  border-left: 1px solid #d9d9d9;
  width: 24%;
  min-width: 149px;
}

.school__price-table-th-text,
.school__price-table-td-text {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0; /* デフォルトのマージンを削除 */
}

.school__price-table-td-text {
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 26px;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .school__price-table-td-text {
    font-size: 14px;
  }
}

@media screen and (min-width: 1000px) {
  .school__price-table-td-text {
    font-size: 18px;
  }
}

.school__price-table-row:not(:last-of-type) .school__price-table-th,
.school__price-table-row:not(:last-of-type) .school__price-table-td {
  border-bottom: 1px solid #d9d9d9;
}
