/* Workshop CLASS pricing refinement */
#class .price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 42px;
}

#class .price-box {
  position: relative;
  display: grid;
  grid-template-columns: 210px 230px 1fr;
  align-items: center;
  min-height: 138px;
  padding: 26px 34px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #e6ddd2;
  box-shadow: 0 10px 30px rgba(37, 28, 20, .045);
  overflow: hidden;
}

#class .price-box::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--orange);
}

#class .price-box strong {
  display: block;
  margin: 0;
  color: var(--orange);
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: .01em;
  white-space: nowrap;
}

#class .price-box strong small {
  font-size: 18px;
  font-weight: 500;
}

#class .price-box p {
  margin: 0;
  padding-left: 28px;
  border-left: 1px solid #e7ded4;
  color: #665e56;
  font-size: 13px;
  line-height: 1.9;
}

#class .price-box:nth-child(4) {
  background: #fffaf6;
  border-color: #e5c4aa;
}

#class .price-box:nth-child(4)::before {
  content: "25歳以下対象";
  position: absolute;
  right: 22px;
  top: 16px;
  padding: 4px 11px;
  border-radius: 20px;
  background: #f7e4d2;
  color: #9b4315;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

#class .price-box:nth-child(4) p {
  padding-right: 105px;
}

/* LESSON: visual flow */
#class .section-title + .promise {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  max-width: 980px;
  margin: 0 auto;
  align-items: stretch;
}

#class .section-title + .promise::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange) 0 50%, #d9b39b 50% 100%);
}

#class .section-title + .promise > div {
  position: relative;
  min-height: 230px;
  padding: 38px 34px 34px;
  border: 1px solid #e6ddd2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(37,28,20,.04);
}

#class .section-title + .promise > div:first-child::after {
  content: "→";
  position: absolute;
  z-index: 2;
  right: -36px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-family: sans-serif;
}

#class .section-title + .promise .num {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
}

#class .section-title + .promise h3 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.35;
}

#class .section-title + .promise p {
  margin: 0;
  font-size: 14px;
  line-height: 2;
  color: #4f4943;
}

#class .section-title + .promise + .quote {
  max-width: 980px;
  margin: 30px auto 0 !important;
  padding: 25px 34px;
  border-radius: 14px;
  border: 1px solid #e8c9b3;
  background: #f7e5d6;
  text-align: center;
  line-height: 1.8;
}

#class .section-title + .promise + .quote strong {
  display: block;
  margin-bottom: 2px;
  font-size: 18px;
}

@media (max-width: 820px) {
  #class .price-grid { max-width: 620px; }
  #class .price-box { grid-template-columns: 1fr; gap: 10px; min-height: 0; padding: 26px 26px 24px; }
  #class .price-box strong { margin: 2px 0 8px; font-size: 34px; }
  #class .price-box p { padding: 14px 0 0; border-left: 0; border-top: 1px solid #e7ded4; }
  #class .price-box:nth-child(4) p { padding-right: 0; }

  #class .section-title + .promise {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 620px;
  }
  #class .section-title + .promise::before { display: none; }
  #class .section-title + .promise > div { min-height: 0; padding: 28px 26px; }
  #class .section-title + .promise > div:first-child::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -25px;
    transform: translateX(-50%);
  }
  #class .section-title + .promise + .quote { max-width: 620px; padding: 22px 24px; }
}

@media (max-width: 520px) {
  #class .price-box:nth-child(4)::before { position: static; justify-self: start; grid-row: 1; margin-bottom: 2px; }
  #class .section-title + .promise h3 { font-size: 21px; }
}