:root {
  --page10-paper: #fff4f1;
  --page10-ink: #202033;
  --page10-coral: #fa8d84;
  --page10-coral-deep: #ed706b;
  --page10-rose-wash: #fff0ed;
  --page10-line: #e6dfde;
}

.page10-content,
.page10-content *,
.page10-content *::before,
.page10-content *::after { box-sizing: border-box; }

.page10-content {
  position: relative;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: var(--page10-paper);
  color: var(--page10-ink);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  isolation: isolate;
}

.page10-baseline {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 1920px;
  height: 1080px;
  pointer-events: none;
  user-select: none;
}

.comparison-course-target {
  position: absolute;
  z-index: 2;
  left: var(--target-x);
  top: 182px;
  width: 612px;
  height: 858px;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 34px;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.proposal-start {
  position: absolute;
  z-index: 2;
  right: 62px;
  top: 46px;
  display: grid;
  grid-template-columns: auto auto 34px;
  align-items: baseline;
  gap: 10px;
  min-width: 392px;
  height: 66px;
  padding: 15px 17px 13px 26px;
  border: 2px solid var(--page10-coral);
  border-radius: 999px;
  background: rgb(255 255 255 / .88);
  color: var(--page10-ink);
  font: inherit;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 14px rgb(32 32 51 / .06);
}

.proposal-start strong { color: var(--page10-coral-deep); font-size: 23px; letter-spacing: .01em; }
.proposal-start i {
  align-self: center;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--page10-coral);
  color: #fff;
  font-size: 22px;
  font-style: normal;
}

.proposal-page-heading {
  position: absolute;
  left: 58px;
  top: 46px;
  display: flex;
  align-items: baseline;
  gap: 28px;
}

.proposal-page-heading h1 {
  margin: 0;
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.proposal-page-heading p {
  margin: 0;
  color: var(--page10-coral-deep);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .04em;
}

.comparison-return {
  position: absolute;
  right: 70px;
  top: 57px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 2px solid rgb(32 32 51 / .18);
  border-radius: 999px;
  background: rgb(255 255 255 / .62);
  color: var(--page10-ink);
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.comparison-return span { color: var(--page10-coral-deep); font-size: 24px; }

.selected-plan {
  position: absolute;
  left: 68px;
  top: 105px;
  width: 612px;
  height: 915px;
  overflow: hidden;
}

.selected-plan::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  top: 57px;
  width: 612px;
  height: 858px;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(32 32 51 / .10);
}

.selected-plan img {
  position: absolute;
  z-index: 1;
  left: var(--course-source-x);
  top: -125px;
  display: block;
  width: 1920px;
  height: 1080px;
  max-width: none;
  user-select: none;
}

.selected-plan.is-course-updated img { animation: page10-course-pulse .2s ease-out; }

@keyframes page10-course-pulse {
  0% { opacity: .58; filter: saturate(.7); }
  100% { opacity: 1; filter: saturate(1); }
}

.selected-plan--neutral { display: grid; align-items: start; padding-top: 162px; }
.neutral-plan-card {
  position: relative;
  z-index: 1;
  margin: 0 34px;
  padding: 46px 38px;
  border: 2px dashed #f1c8c2;
  border-radius: 28px;
  background: #fffaf9;
  text-align: center;
}
.neutral-plan-card span { color: #c96f68; font-size: 17px; font-weight: 800; letter-spacing: .11em; }
.neutral-plan-card strong { display: block; margin-top: 17px; font-size: 36px; }
.neutral-plan-card p { margin: 24px 0 0; color: #706d76; font-size: 18px; line-height: 1.7; }

.proposal-sheet {
  position: absolute;
  left: 730px;
  top: 162px;
  width: 1120px;
  height: 858px;
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(32 32 51 / .10);
}

.proposal-sheet::before,
.proposal-sheet::after {
  content: "";
  position: absolute;
  z-index: 2;
  border: 4px solid rgb(255 255 255 / .68);
  border-radius: 50%;
  opacity: .75;
}
.proposal-sheet::before { right: 64px; top: 24px; width: 56px; height: 56px; }
.proposal-sheet::after { right: 48px; top: 17px; width: 26px; height: 26px; }

.proposal-sheet-heading {
  position: relative;
  height: 108px;
  padding: 22px 58px 19px;
  background: var(--page10-coral);
  color: #fff;
}
.proposal-sheet-heading span { display: block; margin-bottom: 4px; font-size: 19px; font-weight: 700; letter-spacing: .06em; }
.proposal-sheet-heading h2 { margin: 0; font-size: 39px; font-weight: 800; line-height: 1; letter-spacing: .03em; }

.proposal-sheet-body { position: relative; height: 750px; padding: 28px 54px 30px; }
.proposal-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0 0 24px;
  border-bottom: 2px solid var(--page10-line);
}
.proposal-summary > div { min-height: 81px; padding: 0 38px; }
.proposal-summary > div:first-child { padding-left: 0; border-right: 2px solid var(--page10-line); }

.proposal-summary dt,
.proposal-price-lines dt,
.payment-breakdown dt {
  color: #706d76;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
}
.proposal-summary dd { margin: 6px 0 0; }

.material-select {
  max-width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 34px 1px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--page10-ink);
  font: inherit;
  font-size: 27px;
  font-weight: 800;
  cursor: pointer;
}
.material-select:hover { border-bottom-color: #ffd3ce; }
.course-select { color: var(--page10-coral-deep); font-size: 31px; }

.proposal-price-block {
  display: grid;
  grid-template-columns: 310px 1fr;
  align-items: center;
  min-height: 226px;
  border-bottom: 2px solid var(--page10-line);
}
.proposal-price-lines { margin: 0; padding-right: 34px; border-right: 2px solid var(--page10-line); }
.proposal-price-lines > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 10px 0; }
.proposal-price-lines dd { display: flex; align-items: baseline; margin: 0; font-size: 27px; font-weight: 800; white-space: nowrap; }
.proposal-price-lines .discount dd { color: var(--page10-coral-deep); }
.proposal-price-lines input,
.payment-breakdown input {
  min-width: 0;
  border: 0;
  border-bottom: 2px solid #ffd3ce;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-align: right;
}
.proposal-price-lines input { width: 122px; }
.proposal-price-lines dd span { margin-left: 2px; }

.final-offer { padding-left: 46px; text-align: center; }
.final-offer p { margin: 0 0 6px; color: var(--page10-coral-deep); font-size: 23px; font-weight: 800; letter-spacing: .06em; }
.final-offer strong {
  display: inline-block;
  padding: 2px 10px 10px;
  border-bottom: 6px solid #ffd3ce;
  color: var(--page10-coral-deep);
  font-size: 57px;
  font-weight: 800;
  line-height: 1.08;
  white-space: nowrap;
}
.final-offer small { margin-left: 7px; color: var(--page10-ink); font-size: 23px; }
.final-offer.is-invalid strong { color: #c43d4e; border-bottom-color: #f5a9b2; }

.proposal-payment { padding-top: 19px; }
.payment-heading {
  display: grid;
  grid-template-columns: max-content 184px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  column-gap: 16px;
}
.payment-heading p {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}
.payment-heading .material-select {
  width: 100%;
  min-width: 0;
  height: 39px;
  padding-right: 38px;
  font-size: 20px;
  white-space: nowrap;
}
.payment-category {
  width: 184px;
  min-width: 184px;
  flex: 0 0 184px;
  color: var(--page10-coral-deep);
}
.payment-method { width: 100%; min-width: 0; }

.payment-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 10px 0 0;
  padding: 12px 0 13px;
  border-top: 1px solid var(--page10-line);
  border-bottom: 1px solid var(--page10-line);
}
.payment-breakdown > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 0 33px; }
.payment-breakdown > div:first-child { padding-left: 0; border-right: 2px solid var(--page10-line); }
.payment-breakdown dd { display: flex; align-items: baseline; margin: 0; font-size: 24px; font-weight: 800; white-space: nowrap; }
.payment-breakdown input { width: 150px; }
.payment-breakdown dd span { margin-left: 3px; }

.payment-total {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
}
.payment-total > span { color: #706d76; font-size: 19px; font-weight: 700; }
.payment-total > strong { font-size: 31px; }
.payment-total em {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--page10-ink);
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
}
.payment-total em i {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: var(--page10-coral);
  color: #fff;
  font-size: 20px;
  font-style: normal;
}
.payment-total.status-short em,
.payment-total.status-over em,
.payment-total.status-invalid-discount em { color: #b6414d; }
.payment-total.status-short em i,
.payment-total.status-over em i,
.payment-total.status-invalid-discount em i { background: #d95a66; }
.payment-total.status-missing-method em,
.payment-total.status-unavailable em { color: #8b858d; }
.payment-total.status-missing-method em i,
.payment-total.status-unavailable em i { background: #aaa2a6; }

.page10-content button:focus-visible,
.page10-content input:focus-visible,
.page10-content select:focus-visible {
  outline: 6px solid #2489ff;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .selected-plan.is-course-updated img { animation: none; }
}
