.to-be main {
  background: url("../img/pink-bg.jpg") center/cover;
}
.to-be .anchor-container {
  display: flex;
  padding: 20px 100px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  background: #FFF;
  margin-bottom: 70px;
}
.to-be .anchor-list {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 800px;
  gap: 100px;
}
.to-be .anchor-list a {
  color: #6F380B;
  font-family: "M PLUS Rounded 1c";
  font-size: 26px;
  font-style: normal;
  font-weight: 500;
  text-decoration: underline;
  text-underline-position: from-font;
}
.to-be .to-be-methods-grid {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.to-be .to-be-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 0;
  align-self: stretch;
  border-radius: 10px;
}
.to-be .to-be-method-head {
  display: flex;
  padding: 6px 0;
  justify-content: center;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  border-radius: 10px 10px 0 0;
  border: 1px solid #6F380B;
  border-bottom: none;
  background: #6F380B;
  color: #FFF;
  text-align: center;
  font-family: "M PLUS Rounded 1c";
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}
.to-be .to-be-method-body {
  display: flex;
  padding: 8px 0;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  border-radius: 0 0 10px 10px;
  border: 1px solid #6F380B;
  border-top: none;
  color: #6F380B;
  text-align: center;
  font-family: "M PLUS Rounded 1c";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 28px;
}
.to-be .border-box {
  padding: 30px 40px;
  gap: 4px;
  width: 600px;
}
.to-be .flow-step {
  display: flex;
  padding: 10px 18px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  text-align: center;
  width: 100%;
  border-radius: 6px;
  border: 2px solid;
  color: #1D0E02;
  font-family: "M PLUS Rounded 1c";
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
}
.to-be .flow-step-brackets {
  font-size: 16px;
}
.to-be .flow-step--lightblue {
  border-color: #007AB3;
  background: #E0F5FF;
}
.to-be .flow-step--yellow1,
.to-be .flow-step--yellow2 {
  border-color: #535100;
  background: #FFFEE0;
}
.to-be .flow-step--yellow2 {
  align-self: stretch;
  flex: 1;
}
.to-be .flow-step--green {
  border-color: #00690E;
  background: #E0FFE4;
  align-self: stretch;
  flex: 1;
}
.to-be .flow-step--blue {
  border-color: #0B0054;
  background: #E4E0FF;
}
.to-be .flow-step--pink {
  border-color: #500046;
  background: #FFE0FB;
}
.to-be .flow-step--red {
  border-color: #580000;
  background: #FFE0E0;
}
.to-be .flow-step-separator {
  margin: 6px 0;
  height: 1px;
  width: 100%;
  background: #767676;
  border-radius: 1px;
}
.to-be .flow-column-box {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  gap: 20px;
}
.to-be .flow-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex: 1 0 0;
  align-self: stretch;
  gap: 4px;
}
.to-be .description-text {
  text-align: left;
}
.to-be .inner-container-left--subjects {
  position: relative;
}
.to-be .inner-container-left--subjects .study-image {
  position: absolute;
  right: 0;
  top: 118px;
  width: 450px;
  height: auto;
  aspect-ratio: 197/102;
}
.to-be .inner-container-left--subjects > .description-text,
.to-be .inner-container-left--subjects > .bullet {
  width: 390px;
  align-self: flex-start;
}
.to-be .inner-container-left--subjects .come-sentence {
  margin-top: 12px;
}
.to-be .treatment-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 24px;
}
.to-be .treatment-point-list {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.to-be .treatment-point-item {
  position: relative;
  padding-left: 32px;
  color: #7A400F;
  font-family: "M PLUS Rounded 1c";
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}
.to-be .treatment-point-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  background: url("../img/treatment-check.svg") center/contain no-repeat;
}
.treatment-point-item span {
  color: #A30677;
  font-weight: 700;
  font-size: 20px;
}
.treatment-graph-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.treatment-graph-title {
  color: #6F380B;
  text-align: center;
  font-family: "Rounded Mplus 1c";
  font-size: 18px;
  font-weight: 500;
}
.graph-box {
  width: 100%;
  height: auto;
  border: 1px solid #574B38;
}
.graph-box img {
  width: 100%;
  height: auto;
}
.to-be .treatment-note {
  width: 100%;
  color: #5C4635;
  text-align: right;
  font-family: "M PLUS Rounded 1c";
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}
.to-be .treatment-note--top {
  margin-top: -4px;
}
.to-be .treatment-chart-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.to-be .treatment-chart-placeholder {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #8C8C8C;
  background: repeating-linear-gradient(135deg, #F7F7F7 0 18px, #ECECEC 18px 36px);
}
.to-be .treatment-chart-placeholder span {
  display: inline-block;
  color: #706F6F;
  font-family: "M PLUS Rounded 1c";
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px 18px;
  border-radius: 999px;
}
.to-be .treatment-chart-placeholder--first {
  aspect-ratio: 16/10;
  min-height: 350px;
}
.to-be .treatment-chart-placeholder--second {
  aspect-ratio: 16/9;
  min-height: 320px;
}
.to-be .treatment-arrow {
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 34px solid #7A400F;
  margin: 6px 0;
}

/* =============================================
   Responsive：タブレット (max-width: 1040px)
   ============================================= */

@media (max-width: 1040px) {
  .to-be .lower-page-inner {
    width: calc(100% - 48px);
  }

  .to-be .white-container-area,
  .to-be .inner-container,
  .to-be .inner-container-left {
    width: 100%;
  }

  .to-be .description-separator {
    width: 100%;
  }

  .to-be .border-box {
    width: 100%;
  }

  .to-be .anchor-list {
    width: 100%;
    gap: 40px;
  }

  .to-be .inner-container-left--subjects .study-image {
    width: min(450px, 45%);
  }

  .to-be .inner-container-left--subjects > .description-text,
  .to-be .inner-container-left--subjects > .bullet {
    width: 55%;
  }
}

/* =============================================
   Responsive：SP (max-width: 768px)
   ============================================= */

@media (max-width: 768px) {
  .to-be main {
    padding: 70px 0 80px;
  }

  .to-be .lower-page-title {
    padding: 48px 0 36px;
  }

  .to-be .lower-page-title-container img {
    width: 70px;
    height: 70px;
  }

  .to-be .lower-page-subtitle {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1.6px;
  }

  .to-be .lower-page-heading {
    font-size: 32px;
    letter-spacing: 1px;
  }

  .to-be .anchor-container {
    padding: 16px 20px;
    border-radius: 20px;
    margin-bottom: 40px;
    width: calc(100% - 32px);
    box-sizing: border-box;
  }

  .to-be .anchor-list {
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .to-be .anchor-list a {
    font-size: 18px;
  }

  .to-be .lower-page-inner {
    width: calc(100% - 32px);
    gap: 40px;
  }

  .to-be .white-container {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .to-be .white-container-area {
    width: 100%;
    gap: 36px;
  }

  .to-be .container-title {
    flex-direction: column;
    margin-left: 0;
  }

  .to-be .container-title img {
    width: 40px;
    height: auto;
  }

  .to-be .container-title-text {
    font-size: 22px;
  }

  .to-be .inner-container,
  .to-be .inner-container-left {
    width: 100%;
    gap: 20px;
  }

  .to-be .description-title {
    font-size: 20px;
  }

  .to-be .description-text {
    font-size: 15px;
    line-height: 26px;
  }

  .to-be .description-separator {
    width: 100%;
  }

  /* メソッドカード：横→縦 */
  .to-be .to-be-methods-grid {
    flex-direction: column;
    gap: 16px;
  }

  /* フローボックス */
  .to-be .border-box {
    width: 100%;
    padding: 16px 16px 20px;
  }

  /* フローカラム：横→縦 */
  .to-be .flow-column-box {
    flex-direction: column;
  }

  .to-be .flow-step {
    font-size: 17px;
  }

  /* 試験科目の画像：絶対配置のため非表示 */
  .to-be .inner-container-left--subjects .study-image {
    display: none;
  }

  .to-be .inner-container-left--subjects > .description-text,
  .to-be .inner-container-left--subjects > .bullet {
    width: 100%;
  }

  .to-be .treatment-point-item {
    font-size: 16px;
  }
}
