.c-page {
  figure {
    margin: 25px 0;
    text-align: center;

    img {
      width: auto;
      max-width: 90%;
      height: auto;
    }
  }
}

.c-page__frame {

  .detail_btn,
  .detail_btn2 {
    text-align: center;

    a {
      display: inline-block;
      padding: 15px 20px;
      font-size: 18px;
      font-weight: 500;
      text-decoration: none;
      border-radius: 7px;
      transition: all 0.2s;

      &:hover {
        opacity: 0.8;
      }
    }
  }

  .detail_btn a {
    color: #404040;
    background-color: #f7d04c;
  }

  .detail_btn2 a {
    color: #fff;
    background-color: #6ca9d7;
  }

  .c-consultation-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    margin: 20px auto 0;
    font-family: "Noto Sans JP", sans-serif;
  }

  .c-consultation-buttons__label {
    background-color: #3b7b51;
    color: #fff;
    padding: 12px 0;
    width: 100%;
    text-align: center;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
    letter-spacing: 0.05em;

    &::after {
      content: "";
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      border-left: 13px solid transparent;
      border-right: 13px solid transparent;
      border-top: 10px solid #3b7b51;
    }
  }

  .c-consultation-buttons__link {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #7ab3cf;
    color: #fff;
    text-decoration: none;
    width: 100%;
    padding: 20px 0;
    border-radius: 20px;
    transition: opacity 0.3s;
    margin-top: 13px;
    user-select: none;

    &:hover {
      opacity: 0.9;
    }
  }

  .c-consultation-buttons__icon {
    width: 60px;
    margin-right: 15px;
    display: flex;
    align-items: center;

    img {
      width: 100%;
      height: auto;
    }
  }

  .c-consultation-buttons__text {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;

    .small {
      font-size: 1.6rem;
      background-color: #fff;
      color: #7ab3cf;
      padding: 3px 20px;
      border-radius: 20px;
      display: inline-block;
      margin-bottom: 5px;
      text-align: center;
      font-weight: 500;
      letter-spacing: 0.05em;
    }

    .large {
      font-size: 2.4rem;
      font-weight: 600;
      line-height: 1;
      letter-spacing: 0.05em;
      color: #fff;
      text-align: center;
    }
  }

  .symptom-check-box {
    position: relative;
    border: 2px solid #cc807a;
    border-radius: 20px;
    padding: 45px 30px 30px;
    margin: 50px auto;
    max-width: 650px;
    background-color: #fff;
    box-sizing: border-box;

    .symptom-title {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translate(-50%, -50%);
      background-color: #fff;
      padding: 0 15px;
      color: #cc807a;
      margin: 0;
      text-align: center;
      font-size: 16px;
      line-height: 1.6;
      width: 100%;
      max-width: max-content;
      box-sizing: border-box;
      border: none;
    }

    .symptom-list {
      list-style: none;
      padding: 0;
      margin: 0;

      li {
        position: relative;
        padding-left: 35px;
        margin-bottom: 18px;
        font-size: 16px;
        font-weight: bold;
        color: #000;
        line-height: 1.5;

        &:last-child {
          margin-bottom: 0;
        }

        &::before {
          content: "\2714";
          position: absolute;
          left: 0;
          top: 2px;
          width: 16px;
          height: 16px;
          border: 2px solid #cc807a;
          color: #cc807a;
          font-size: 14px;
          display: flex;
          align-items: center;
          justify-content: center;
        }
      }
    }
  }

  .doctor-profile {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin: 50px auto;
    font-family: sans-serif;
    color: #333;

    .doctor-profile-content {
      flex: 1;

      .doctor-intro {
        font-size: 16px;
        line-height: 1.8;
        margin-top: 0;
        margin-bottom: 40px;
      }

      p {
        padding: 0;
      }

      .doctor-details {
        display: flex;
        gap: 15px;

        .doctor-history,
        .doctor-qualifications {
          flex: 1;

          h4 {
            font-size: 16px;
            color: #555;
            margin-top: 0;
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 2px dashed #7a9c80;
          }

          p {
            font-size: 14px;
            line-height: 1.8;
            margin: 0;
            padding: 0;
          }

          ul {
            list-style: none;
            padding: 0;
            margin: 0;
            font-size: 13px;
            line-height: 1.6;

            li {
              margin-bottom: 2px;
              text-indent: -1em;
              padding-left: 1em;
            }
          }
        }
      }
    }

    .doctor-profile-image {
      width: 250px;
      flex-shrink: 0;
      margin: 0;
      padding: 0;

      img {
        width: 100%;
        height: auto;
        display: block;
      }

      .doctor-name {
        text-align: center;
        font-size: 16px;
        font-weight: bold;
        margin-top: 15px;
        margin-bottom: 0;
        letter-spacing: 0.05em;
      }
    }
  }

  table.ortho-comparison-table.bracket {
    .col-category {
      width: 13%;
    }

    .col-type {
      width: 29%;
    }

    thead .col-type {
      vertical-align: top;
    }

    td {
      text-align: center;
    }
  }

  .treatment-steps-wrapper {
    max-width: 800px;
    margin: 30px auto 0;
    font-family: sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 30px;

    p {
      padding: 0;
    }

    .step-item {
      display: flex;
      align-items: flex-start;
      gap: 30px;

      .step-badge {
        flex-shrink: 0;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background-color: #fdf5e6;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #cc807a;

        .badge-text {
          font-size: 14px;
          font-weight: bold;
          line-height: 1;
          margin-bottom: 2px;
        }

        .badge-num {
          font-size: 28px;
          font-weight: bold;
          line-height: 1;
        }
      }

      .step-content {
        flex: 1;

        .step-title {
          font-size: 20px;
          margin-top: 0;
          margin-bottom: 15px;
          color: #000;
          padding: 5px 0;
          border-bottom: 1px solid #cc807a;
        }

        .step-desc {
          font-size: 15px;
          line-height: 1.8;
          margin-top: 0;
          margin-bottom: 25px;
        }

        .price-section {
          margin-bottom: 25px;

          &:last-child {
            margin-bottom: 0;
          }

          .price-header {
            background-color: #cc807a;
            color: #fff;
            font-weight: bold;
            font-size: 15px;
            padding: 8px 20px;
            border-radius: 5px;
            margin-bottom: 15px;
            display: block;
          }

          .price-body {
            padding-left: 10px;

            p {
              margin-top: 0;
              margin-bottom: 15px;
              font-size: 15px;
              line-height: 1.6;

              &:last-child {
                margin-bottom: 0;
              }

              strong {
                font-size: 16px;
                color: #000;
              }

              .note {
                font-size: 13px;
                color: #555;
              }
            }
          }
        }
      }
    }
  }

  ul.dotted_list {
    padding: 0 0 0 1.8em;
    list-style-type: disc;

    >li {
      list-style-type: disc;
    }

    >li+li {
      margin-top: 0.5em;
    }
  }

  .faq-wrapper {
    max-width: 800px;
    margin: 30px auto;
    font-family: sans-serif;
    color: #333;

    p {
      padding: 0;
    }

    .faq-list {
      margin: 0;
      padding: 0;
    }

    .faq-item {
      margin-bottom: 50px;

      &:last-child {
        margin-bottom: 0;
      }
    }

    .faq-q {
      position: relative;
      padding-left: 35px;
      padding-bottom: 15px;
      margin: 0 0 20px 0;
      border-bottom: 1px solid #cc807a;
      font-size: 18px;
      line-height: 1.5;
      font-weight: normal;

      &::before {
        content: "Q.";
        position: absolute;
        left: 0;
        top: 0;
        font-family: Arial, Helvetica, sans-serif;
      }
    }

    .faq-a {
      position: relative;
      padding-left: 35px;
      margin: 0;

      &::before {
        content: "A.";
        position: absolute;
        left: 0;
        top: 0;
        font-family: Arial, Helvetica, sans-serif;
        line-height: 1.8;
      }

      p {
        margin: 0 0 10px 0;
        font-size: 16px;
        line-height: 1.8;

        &:last-child {
          margin-bottom: 0;
        }
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .c-page__frame .symptom-check-box {
    margin: 20px 0 40px;
    padding: 20px;

    .symptom-title {
      position: static;
      margin-bottom: 20px;
      padding: 0;
      transform: unset;
      font-size: 14px;
    }

    .symptom-list li {
      font-size: 14px;
    }
  }

  .c-page__frame .doctor-profile {
    flex-direction: column;
    gap: 30px;

    .doctor-profile-image {
      width: 100%;
      max-width: 400px;
      margin: 0 auto;
      order: -1;
    }

    .doctor-profile-content .doctor-details {
      flex-direction: column;
      gap: 30px;
    }
  }
}

@media screen and (max-width: 600px) {
  .c-page__frame .treatment-steps-wrapper {
    gap: 30px;

    .step-item {
      gap: 15px;

      .step-badge {
        width: 60px;
        height: 60px;

        .badge-text {
          font-size: 11px;
        }

        .badge-num {
          font-size: 22px;
        }
      }

      .step-content {
        .step-title {
          font-size: 18px;
          padding-top: 0;
        }

        .price-section .price-body {
          padding-left: 0;
        }
      }
    }
  }

  .c-page__frame .faq-wrapper {
    .faq-item {
      margin-bottom: 40px;
    }

    .faq-q {
      font-size: 16px;
      padding-left: 30px;
    }

    .faq-a {
      padding-left: 30px;

      p {
        font-size: 15px;
      }
    }
  }
}

.feature-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 25px;
  margin-bottom: 60px;
  font-family: sans-serif;
  color: #333;

  &.reverse {
    flex-direction: row-reverse;
  }

  .feature-text {
    flex: 1;

    p {
      font-size: 16px;
      line-height: 1.8;
      margin: 0;
      padding: 0;
    }
  }

  .feature-image {
    width: 45%;
    margin: 0;
    padding: 0;
    flex-shrink: 0;

    img {
      width: 100%;
      max-width: unset;
      height: auto;
      display: block;
    }
  }
}

@media screen and (max-width: 768px) {

  .feature-content,
  .feature-content.reverse {
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 50px;
  }

  .feature-content {
    padding: 0 16px;

    .feature-image {
      width: 100%;
      max-width: 500px;
      margin: 0 auto;
    }
  }
}

.ortho-comparison-table {
  width: 100%;
  margin: 20px 0 40px;
  border-collapse: collapse;
  font-family: sans-serif;
  background-color: #fff;

  th,
  td {
    border: 1px solid #766255;
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
    vertical-align: middle;
  }

  .col-category,
  .col-type {
    background-color: #f8f8f8;
    text-align: center;
    font-weight: bold;
  }

  .col-category {
    width: 20%;
    text-align: left;
  }

  .empty-cell {
    border-bottom: none;
  }

  .col-type {
    width: 40%;
    padding: 10px;
    font-size: 16px;

    img {
      display: block;
      width: 100%;
      height: auto;
      margin-top: 10px;
    }
  }
}

@media screen and (max-width: 768px) {
  .ortho-comparison-table {

    th,
    td {
      padding: 5px;
      font-size: 12px;
    }

    .col-type {
      padding: 3px;
      font-size: 14px;
    }
  }
}