.ts-school-plan-page {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  color: #181818;
  padding-bottom: 88px;
}

.ts-school-plan-page::before {
  content: none;
}

.ts-school-plan-page > * {
  position: relative;
  z-index: 1;
}

.ts-school-plan-page * {
  box-sizing: border-box;
}

.ts-school-plan-page h1,
.ts-school-plan-page h2,
.ts-school-plan-page h3,
.ts-school-plan-page p,
.ts-school-plan-page figure,
.ts-school-plan-page ul {
  margin: 0;
}

.ts-school-plan-page ul {
  padding: 0;
}

.ts-school-plan-page img {
  display: block;
  width: 100%;
  height: auto;
}

.ts-school-plan-page .ts-container {
  width: min(calc(100% - 24px), 1120px);
  margin-inline: auto;
}

.ts-school-plan-hero {
  position: relative;
  overflow: hidden;
}

.ts-school-plan-hero__media {
  position: relative;
}

.ts-school-plan-hero__media img {
  width: 100%;
  display: block;
}

.ts-school-plan-intro {
  padding: 110px 0 7px;
}

.ts-school-plan-intro__inner {
  display: grid;
  gap: 16px;
  text-align: center;
}

.ts-school-plan-intro__kicker {
  color: #181818;
  font-family: var(--font-mincho);
  font-size: clamp(18px, 4.6vw, 36px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.ts-school-plan-intro__title {
  color: #2f2f2f;
  font-family: var(--font-mincho);
  font-size: clamp(15px, 3.2vw, 26px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.ts-school-plan-intro__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.ts-school-plan-intro__nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid rgba(24, 24, 24, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #2f2f2f;
  font-family: var(--font-kaku);
  font-size: 15px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.ts-school-plan-intro__nav-link:hover,
.ts-school-plan-intro__nav-link:focus-visible {
  color: #ffffff;
  background: #307ec1;
  border-color: #307ec1;
}

.ts-school-plan-courses__inner {
  display: grid;
  gap: 82px;
}

.ts-plan-course {
  position: relative;
  display: grid;
  gap: 24px;
  padding: 0px 0 88px;
  scroll-margin-top: calc(var(--header-offset) + 8px);
}

.ts-plan-course::before,
.ts-plan-course::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
}

.ts-plan-course::before {
  top: 320px;
  bottom: 0;
  background: #ececec url("../img/school-plan/school-plan-bg.png") center top / 110% 100% no-repeat;
}

.ts-plan-course::after {
  content: none;
}

.ts-plan-course__head {
  width: min(100%, 1120px);
  margin-inline: auto;
  margin-block: 28px;
  display: grid;
  grid-template-columns: minmax(132px, 41%) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.ts-plan-course__media {
  overflow: hidden;
  background: #d8d8d8;
  aspect-ratio: 4 / 3;
}

.ts-plan-course__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.ts-plan-course__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ts-plan-course__body {
  display: grid;
  gap: 6px;
}

.ts-plan-course__en {
  color: #555555;
  font-family: var(--font-bona);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

.ts-plan-course__title {
  font-family: var(--font-mincho);
  font-size: clamp(18px, 4.9vw, 38px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: 0.02em;
}

.ts-plan-course__title-paren {
  font-size: max(0.62em, 15px);
}

.ts-plan-course__subtitle {
  font-family: var(--font-mincho);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.ts-school-plan-page .ts-plan-course__text {
  margin-top: 10px;
  font-family: var(--font-kaku);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.84;
  letter-spacing: 0.02em;
}

.ts-plan-course__message {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  border: 2px solid #56a2dc;
  background: #ffffff;
  box-shadow: 6px 6px 0 rgba(67, 132, 188, 0.38);
  padding: 10px 12px;
}

.ts-plan-course__message-label {
  color: #328fd4;
  font-family: var(--font-kaku);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ts-plan-course__message-list {
  list-style: none;
  display: grid;
  gap: 3px;
}

.ts-plan-course__message-list li {
  position: relative;
  padding-left: 0.95em;
  font-family: var(--font-kaku);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.ts-plan-course__message-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
}

.ts-plan-course__price-wrap {
  margin-block: 28px;
  display: grid;
  gap: 50px;
}

.ts-plan-course__price-heading {
  text-align: center;
  font-family: var(--font-mincho);
  font-size: clamp(15px, 2.6vw, 30px);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.ts-plan-course__chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ts-plan-course__chips--double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 742px);
  margin-inline: auto;
}

.ts-plan-course__chips--single {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 365px);
  margin-inline: auto;
}

.ts-plan-course__chip {
  background: #f9f9f9;
  min-height: 94px;
  border: 1px solid rgba(24, 24, 24, 0.06);
  padding: 0 8px 12px;
  color: #181818;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-content: start;
  gap: 8px;
  text-align: center;
}

.ts-plan-course__chip > span:first-child {
  width: min(100%, 82%);
  min-height: 34px;
  border-radius: 999px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 12px;
  transform: translateY(-50%);
  background: var(--chip-bg, #2d5db7);
  color: #ffffff;
  font-family: var(--font-mincho);
  font-size: clamp(15px, 1.55vw, 18px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.ts-plan-course__chip > span:nth-child(2) {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -12px;
  min-height: 28px;
  font-family: var(--font-mincho);
  font-size: clamp(15px, 1.7vw, 30px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}

.ts-plan-course__chip-note {
  margin-top: -8px;
  font-family: var(--font-mincho);
  font-size: clamp(9px, 1.45vw, 15px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.ts-plan-course__price-suffix {
  font-size: max(0.62em, 15px);
  line-height: 1;
}

.ts-plan-course__chip--blue {
  --chip-bg: #2e5cb7;
}

.ts-plan-course__chip--cyan {
  --chip-bg: #4a99e8;
}

.ts-plan-course__chip--green {
  --chip-bg: #54bba9;
}

.ts-plan-course__chip--purple {
  --chip-bg: #2f157f;
}

.ts-plan-course__checkpoint {
  text-align: center;
  color: #4e4e4e;
  font-family: var(--font-kaku);
  font-size: clamp(9px, 1.45vw, 16px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.ts-plan-course__spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ts-plan-course__spec {
  background: #fcfcfc;
  min-height: 96px;
  border: 1px solid rgba(24, 24, 24, 0.06);
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-content: stretch;
  gap: 0;
  text-align: center;
}

.ts-plan-course__spec-label {
  width: 100%;
  min-height: clamp(28px, 4.2vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  color: #ffffff;
  background: #2f6ea5;
  font-family: var(--font-mincho);
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.ts-plan-course__spec-value {
  width: 100%;
  display: block;
  align-self: center;
  padding: 10px 8px;
  font-family: var(--font-mincho);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.56;
  letter-spacing: 0.02em;
}

.ts-plan-course__spec-nowrap {
  white-space: nowrap;
}

.ts-plan-course__duration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  margin-top: 0.15em;
  font-size: 15px;
}

.ts-plan-course__notes {
  list-style: none;
  display: grid;
  gap: 2px;
}

.ts-plan-course__notes li {
  position: relative;
  padding-left: 1.05em;
  color: #3f3f3f;
  font-family: var(--font-kaku);
  font-size: clamp(9px, 1.25vw, 12px);
  font-weight: 300;
  line-height: 1.68;
  letter-spacing: 0.01em;
}

.ts-plan-course__notes li::before {
  content: "※";
  position: absolute;
  left: 0;
  top: 0;
}

.ts-plan-course__meta {
  display: grid;
  gap: 6px;
}

.ts-plan-course__meta-row {
  display: flex;
  gap: 18px;
  align-items: center;
  font-family: var(--font-kaku);
  font-size: clamp(15px, 1.25vw, 16px);
  font-weight: 300;
  line-height: 1.62;
  letter-spacing: 0.01em;
}

.ts-plan-course__meta-label {
  flex: 0 0 12em;
  width: 12em;
  min-width: 12em;
  min-height: 2.2em;
  margin-top: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  color: #ffffff;
  background: #3d3d3d;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
}

.ts-plan-course__meta-row:nth-child(2) .ts-plan-course__meta-label {
  color: #2b2b2b;
  background: #ffffff;
}

.ts-plan-course__cta {
  width: 480px;
  min-height: 72px;
  margin-inline: auto;
  margin-top: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: #307ec1;
  color: #ffffff;
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-mincho);
  font-size: clamp(15px, 1.85vw, 20px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.ts-plan-course__cta-text {
  display: inline-block;
  text-align: center;
  word-break: keep-all;
  line-break: strict;
}

.ts-plan-course__cta-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #307ec1;
  border: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  line-height: 1;
}

.ts-plan-course__cta:hover,
.ts-plan-course__cta:focus-visible {
  color: #ffffff;
  background: #2f7fc3;
}
