main {
    margin: 0;
    margin-top: 42px;
}

.text-md {
    font-weight: 500 !important;
}

.hide {
    display: none !important;
}

.container {
    max-width: 980px;
    padding: 0;
}

.information .instructor_box .tags {
    display: flex;
    flex-direction: column;
    /* margin-bottom: 10px; */
    gap: 0;
}

.information .instructor_box .tag {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-start;
    /* background-color: #fde7e7; */
    border-radius: 6px;
    font-size: 21px;
    /* padding-left: 18px;
    padding-right: 18px; */
    max-width: 100%;
    padding: 10px 16px;
    min-width: 150px;
    flex-direction: column;
}

.information .instructor_box .tag img {
    height: 29px;
}

.information .instructor_box .tag span {
    display: inline-block;
    /* max-width: 300px; */
    overflow-wrap: break-word;
    word-break: break-word;
    vertical-align: middle;
    line-height: 24px;
    white-space: normal;
}

.information .instructor_box .content {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-top: 21px;
}

.information .instructor_box .left {
    min-width: 140px;
}

.information .instructor_box .left .instructor-avatar {
    width: 158px;
    height: auto;
    aspect-ratio: 1;
    border-radius: 100%;
    object-fit: cover;
    overflow: hidden;
}

.information .instructor_box .left .item .footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.information .instructor_box .left .item .footer a {
    text-decoration: underline;
}

.information .instructor_box .left .item .logo {
    width: 29px;
    border-radius: 0;
}

.information .instructor_box .right {
    flex: 1;
    padding-top: 33px;
}

.information .instructor_box .right .title,
.what_you_can_learn_sp .title {
    font-weight: bold;
    margin: 0;
    font-size: 23px;
}

.information .instructor_box .right .desc,
.what_you_can_learn_sp .desc {
    margin: 0;
    margin-top: 15px;
    line-height: 31px;
    font-size: 23px;
    font-weight: 500;
}

.what_you_can_learn_sp .title {
    justify-content: flex-start !important;
}

.instructor_box .images-info {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.instructor_box .images-info img {
    width: calc(25% - 10px);
    height: auto;
    max-width: 215px;
}

.tag-ask-instructor-wrapper {
    display: flex;
    gap: 8px;
}

.tag-ask-instructor-wrapper .ask-instructor-btn a {
    width: auto;
    min-width: 154px;
    font-size: 14px;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 10px;
    color: black;
    background-color: #53B9CB;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-family: "Noto Sans JP";
    font-weight: 700;
}

/* .instructor_box .images_sp {
    display: flex;
    margin-top: 20px;
    gap: 5px;
    display: none;
}

.instructor_box .images_sp img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    aspect-ratio: 1;
} */

.wave {
    margin-top: 20px;
    --size: 15px;
    --R: calc(var(--size) * 1.28);
    -webkit-mask: radial-gradient(
                var(--R) at 50% calc(1.8 * var(--size)),
                #000 99%,
                rgba(0, 0, 0, 0) 101%
            )
            calc(50% - 2 * var(--size)) 0 / calc(4 * var(--size)) 100%,
        radial-gradient(
                var(--R) at 50% calc(-0.8 * var(--size)),
                rgba(0, 0, 0, 0) 99%,
                #000 101%
            )
            50% var(--size) / calc(4 * var(--size)) 100% repeat-x;
    background: #ffd7d7;
}

.wave.wave_information {
    margin-top: 5px;
}

.wave .content {
    padding: 70px 0;
}

.profile {
    & .header .title {
        height: 57px;
        margin-left: -25px;
    }

    & .title-content {
        margin-top: 15px;
        & p {
            margin: 0;
        }

        & img {
            width: 75% !important;
            height: 8px !important;
        }
    }
}

.profile .footer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile .footer .instagram_url {
    text-decoration: underline;
    font-size: 90%;
}

.profile .body .item .desc {
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 95%;
}

.wave .content .menu {
    display: flex;
    gap: 10px;
}

.wave .content .menu .item {
    background-color: #e6e6e6;
    color: #ed837c;
    font-size: 24px;
    width: 200px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
}

.wave .content .menu .item.active {
    background-color: #fff0f0;
    color: black;
}

.wave .content .content_container {
    background-color: #fff0f0;
    border-radius: 0 0 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 60px 40px;
}

.wave .content .content_container .header {
    text-align: center;
}

.wave .content .content_container .header .title {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    justify-content: center;
    margin: auto;
}

.wave .content .content_container .header .title img {
    width: 50px;
    height: 50px;
}

.wave .content .content_container .body {
    display: flex;
    margin-top: 45px;
    flex-direction: column;
    gap: 32px;
}

.wave .content .content_container .body .item {
    display: flex;
    flex-direction: column;
    font-size: 21px;
    line-height: 31px;
}

.wave .content .content_container .body .item .title {
    position: relative;
    margin-left: -12px;
}

.wave .content .content_container .body .item .desc {
    /* padding-left: 10px; */
}

.wave .content_container .images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.wave .content_container .images img {
    width: calc(25% - 10px);
    aspect-ratio: 1;
    height: auto;
    object-fit: cover;
    max-width: 215px;
}

.wave .content_container .footer .logo {
    height: 1.5em;
    width: auto;
}

.text_two_lines {
    line-height: 1.5rem !important;
    min-height: calc(1.5em * 2) !important;
}

.lesson {
    background-color: #fff0f0 !important;
    padding-top: 0;
}

.lesson .header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff0f0;
    font-size: 21px;
    gap: 18px;
    padding-bottom: 17px;
}

.lesson .header p {
    text-align: left;
}

.lesson .header .btn, .ask-instructor-btn a {
    width: 363px;
    height: 48px;
    border-radius: 50px;
    background-color: #44bacc;
    color: #fff;
    font-size: 21px;
}

.ask-instructor-btn {
    text-align: center;
}

.lesson .header .levels {
    display: flex;
    gap: 10px;
    justify-content: left;
}

.lesson .header .levels .btn-level {
    font-size: 16px;
    width: fit-content;
    padding-inline: 16px;
    height: 30px;
    border: none;
    background-color: #ed837c;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lesson .header .levels .unregistered {
    background-color: #cccccc;
}

.hex-shape {
    background: #d9a0a0;
    clip-path: polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);
    width: 100%;
    font-size: 13px;
    height: 80px;
    text-align: center;
}

.hex-shape .title {
    font-weight: bold;
    margin-bottom: 5px;
    text-decoration: underline;
    width: 100%;
    color: #000;
}

.hex-shape-end {
    background: #d9a0a0;
    width: 100%;
    font-size: 13px;
    clip-path: polygon(100% 0, 100% 50%, 100% 100%, 0% 100%, 25% 50%, 0% 0%);
    border-radius: 10px;
    height: 80px;
    text-align: center;
}

.hex-shape-end .title {
    font-weight: bold;
    margin-bottom: 5px;
    text-decoration: underline;
    width: 100%;
    color: #000;
}

.student_review {
    margin-top: 54px;
    padding-top: 0px;
    padding-bottom: 30px;
    display: flex;
    background-color: #fff0f0;
    width: 100% !important;
}

.student_review .container {
    width: 100% !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.student_review_content {
    width: 100%;
    display: flex;
}

.student_review_content .row {
    margin: 32px auto 0 auto;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(211px, 1fr));
    gap: 18px;
}

.student_review_content .row .item {
    width: 100%;
    /* width: 25%; */
    display: flex !important;
    white-space: normal !important;
}

.card-review {
    margin: 0 !important;
    padding: 0 !important;
}

.card-body {
    padding-top: 9px;
}

.student_review .container .heading {
    position: relative;
}

.student_review .container .heading .student_review_left_image,
.student_review .container .heading .student_review_right_image{
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.student_review .container .heading .student_review_left_image {
    -webkit-transform: translate(-300%, -50%);
    transform: translate(-300%, -50%);
}

.student_review .container .heading .student_review_right_image {
    -webkit-transform: translate(150%, -50%);
    transform: translate(150%, -50%);
}

.student_review .container .review_heading_en .student_review_left_image {
    -webkit-transform: translate(-245%, -50%);
    transform: translate(-249%, -43%)
}

.student_review .container .review_heading_en .student_review_right_image {
    -webkit-transform: translate(125%, -50%);
    transform: translate(128%, -43%);
}

.student_review .container .heading .title {
    left: 0 !important;
}

.student_review .container .heading p {
    font-size: 28px;
    letter-spacing: 0px;
}

.image .square .inner img {
    object-fit: cover !important;
    aspect-ratio: 1;
}

.lesson_review_box .thumbnail {
    width: 27px;

    & img {
        width: 27px;
        height: 27px;
        object-fit: cover;
    }
}

.lesson_review_box .review_box .review {
    margin-top: 4px;
    min-height: 32px;
    max-height: 32px;
}

.lesson_review_box .view-lesson {
    margin-top: -4px;
}

.lesson_review_box .image img {
    width: 100% !important;
    height: 113px;
}

.student_review .container .lesson-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    white-space: normal;
    font-size: 14px;
    margin: 0;
}

.rating i {
    font-size: 20px !important;
}

.student_review .container .rating {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    /*-webkit-line-clamp: 2;*/
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    height: auto;
}

.student_review .container .review_box {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    height: auto;
}

.card-review {
    border: none;
    margin: 0;
}

.what_you_can_learn_sp {
    display: none;
}

.lesson_view_more_link {
    padding: 6px 15px;
    color: white;
    background-color: #ED837C;
    border-radius: 30px;
    color: white;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    -moz-text-align-last: center;
    text-align-last: center;

    & * {
        color: white;
    }
}

.text-wrapper {
    position: relative;
    font-size: 21px;
}

.text-content {
    line-height: 32px;
    color: #333;
    overflow: hidden;
    transition: max-height 0.3s ease;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 95%;
    color: #000000;
    margin-bottom: 8px;
}

.text-content.collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    max-height: 32px; /* Height for 1 line */
    position: relative;
}

.text-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.6em; /* 1 line height */
    background: linear-gradient(to bottom, transparent 0%, rgb(255, 240, 240) 100%);
    pointer-events: none;
}

.text-content.expanded {
    max-height: none;
}

.accordion-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

#toggleBtn.view-more-btn {
  padding: 8px 22px;
  background: #ffffff;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 240, 240, 0.12);
  backdrop-filter: blur(1px);
  transition: opacity 0.2s ease;
  transform: translateY(-44px);
  display: none;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

#toggleBtn.view-more-btn.show {
    display: inline-block;
}

#toggleBtn.view-more-btn:focus {
    outline: none;
}

#toggleBtn.translate-reset {
    transform: translateY(0px);
}

#toggleBtn.translate-back {
    transform: translateY(-44px);
}

.what_you_can_learn { 
    font-size: 21px;
}

@media (max-width: 1024px) {
    .student_review_content .row {
        margin: 32px auto 0 auto;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(211px, 1fr));
        gap: 18px;
    }

    .information .instructor_box .content
    {
        padding: 0 3%;
        gap: 16px;
    }

    .tag-ask-instructor-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 568px) {
    main {
        margin-top: 0px;
    }

    .information .instructor_box {
        /* padding-bottom: 20px; */
    }

    .information .instructor_box .left {
        position: relative;
        width: 140px;
        min-width: 140px;
    }

    .information .instructor_box .left .instructor-avatar {
        width: 100%;
    }

    .wave {
        margin-top: 2px;
    }

    .wave .content .menu .item {
        width: 120px;
        height: 50px;
        font-size: 14px;
    }

    .home_jp .wave .content .menu .item {
        width: 140px;
    }

    .information .instructor_box .tag {
        /* padding: 4px 8px; */
        padding: 0;
        font-size: 16px;
        gap: 4px;
    }

    .information .instructor_box .tag span {
        max-width: 100%;
    }
    /* .instructor_box .images_sp {
        display: flex;
        justify-content: center;
    } */
    .information .instructor_box .tags {
        justify-content: center !important;
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .information .instructor_box .content {
        align-items: flex-start;
        margin-top: 6px;
    }

    .wave .content .content_container {
        padding: 10px 10px 10px 10px;
    }

    .wave .content .content_container .header .title {
        font-size: 14px;
    }

    .wave .content .content_container .header .title_sp_en{
        letter-spacing: 0px !important;
    }

    .wave .content_container .images img {
        width: calc(50% - 5px);
    }

    .instructor_box .images-info {
        display: flex;
        justify-content: center;
    }

    .information .instructor_box .right {
        display: none;
    }
    .what_you_can_learn_sp {
        display: block;
    }

    .lesson .header {
        gap: 4px;
    }

    .ask-instructor-wrapper {
        margin-bottom: 16px;
    }

    .lesson .header, .lesson .header .btn, 
    .ask-instructor-btn a,
    .what_you_can_learn_sp .desc
    {
        font-size: 16px;
        line-height: 20px;
    }

    .lesson .header .btn, .ask-instructor-btn a {
        width: fit-content;
        padding-block: 8px;
        height: auto;
    }

    .lesson .header .levels {
        flex-wrap: wrap;
    }

    .lesson .header .levels .btn-level {
        padding-inline: 10px;
    }

    .wave .content {
        padding-inline: 10px;
        padding-top: 40px;
    }

    .wave .content .content_container .body .item {
        font-size: 14px;
        line-height:20px;
    }

    .student_review {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    /* .student_review .title{
        border: 1px solid #000;
        width: 100% !important;
    } */

    .student_review_content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .student_review .container .heading p {
        font-size: 18px !important;
    }

    .student_review .container .heading .student_review_left_image {
        -webkit-transform: translate(-200%, -50%) scale(0.8);
        transform: translate(-200%, -50%) scale(0.8);
    }

    .student_review .container .heading .student_review_right_image {
        -webkit-transform: translate(85%, -50%) scale(0.8);
        transform: translate(85%, -50%) scale(0.8);
    }

    .student_review .container .review_heading_en .student_review_left_image {
        -webkit-transform: translate(-175%, -50%) scale(0.6);
        transform: translate(-175%, -50%) scale(0.6);
    }

    .student_review .container .review_heading_en .student_review_right_image {
        -webkit-transform: translate(60%, -50%) scale(0.6);
        transform: translate(60%, -50%) scale(0.6);
    }

    .student_review .title img {
        position: relative;
        top: 5px;
        width: 120px !important;
    }

    .student_review .container .review_heading_en .title img {
        top: -3px;
        width: 100px !important;
    }

    .student_review_content {
        /* margin-top: 25px !important; */
    }

    .student_review_content .row {
        /* width: 100% !important;
        gap: 10px !important; */

        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .student_review_content .row .card {
        /*max-width: 155px;*/
    }

    .student_review .container .rating {
        min-height: 55px;
    }

    .student_review .container .rating i {
        font-size: 16px !important;
    }

    .lesson_view_more_link {
        font-size: 11px;
        padding: 6px 4px;
    }

    .view_more_review {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .profile {
        & .header .title {
            font-size: 22px !important;
            height: 57px;
            margin-left: -25px;
        }

        & .title-content {
            font-size: 17px;
        }
    }

    .wave .content .content_container .body .item .title {
        margin-left: -8px;
    }

    .text-wrapper {
        font-size: 14px;
    }

    .text-content {
        line-height: 1.6;
    }

    .text-content.collapsed {
        max-height: 1.6em;
    }

    .what_you_can_learn { 
        font-size: 14px;
    }

    #toggleBtn.view-more-btn {
        transform: translateY(-36px);
        padding: 6px 18px;
    }

    .detail_en #toggleBtn.view-more-btn {
        transform: translateY(-31px);
    }

    #toggleBtn.translate-back {
        transform: translateY(-36px);
    }

    .detail_en #toggleBtn.translate-reset,
    .detail_jp #toggleBtn.translate-reset {
        transform: translateY(0px);
    }

    .information .instructor_box .left .item .instagram {
        min-width: 21px;
        width: 21px;
    }

    .information .instructor_box .left .item .footer a {
        font-size: 14px;
    }
}

@media (max-width: 476px) {
    .tag-ask-instructor-wrapper .ask-instructor-btn a {
        width: 100%;
    }
 }

@media (max-width: 414px) {

    .profile .header .title  .title-content img {
        height: 8px !important;
        width: 70% !important;
    }

    .profile .header .title .title-content p {
        font-size: 17px !important;
    }
}

@media (max-width: 320px) {
    .student_review .container .heading p {
     font-size: 17px !important;
    }

    .student_review .container .heading .student_review_left_image {
        -webkit-transform: translate(-190%, -50%) scale(0.7);
        transform: translate(-190%, -50%) scale(0.7);
    }

    .student_review .container .heading .student_review_right_image {
        -webkit-transform: translate(75%, -50%) scale(0.7);
        transform: translate(75%, -50%) scale(0.7);
    }

    .student_review .container .review_heading_en .student_review_left_image {
        -webkit-transform: translate(-165%, -50%) scale(0.5);
        transform: translate(-165%, -50%) scale(0.5);
    }

    .student_review .container .review_heading_en .student_review_right_image {
        -webkit-transform: translate(50%, -50%) scale(0.5);
        transform: translate(50%, -50%) scale(0.5);
    }

    .student_review .title img {
        position: relative;
        top: 2px;
        width: 110px !important;
    }
}

/* Accordion */

.accordion-item {
  overflow: hidden;
  margin-right: auto;
  padding-bottom: 4px;
  position: relative;
}

.accordion-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* .accordion-content {
    line-break: anywhere;
} */

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-item .accordion-button-container {
    position: absolute;
}

.accordion-item.active .accordion-button-container {
    position: relative;
}

.please-scroll {
    position: relative;
}

.please-scroll::before {
    position: absolute;
    content: "→";
    display: inline-block;
    rotate: 90deg;
    top: 23px;
    left: -4px;
    font-size: 14px;
    z-index: 1;
}

@media screen and (max-width: 1024px) {
    .genre_lesson_container {
        & .other_lesson_list {
            padding-left: 14px;
            margin-top: 10px !important;
        }
    }
}

/* Fix container top margin on teacher genre detail page */
.detail_en, .detail_jp {
    margin-top: -16px;
}

/* Roadmap */
.roadmap-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.roadmap-tab {
    background: #e6e6e6;
    font-size: 22px;
    width: min(261px, 100%);
    text-align: center;
    padding: 13px 8px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.roadmap-tab.active {
    background: #ed837c;
}

.roadmap-steps-title {
    font-size: 24px;
    text-align: center;
    margin-block: 20px 32px;
}

.experience-item {
    margin-top: 60px;
    margin-bottom: 0;
    margin-top: 0.5em;
}

.experience-item__header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.experience-item__header::before {
    content: "";
    background-image: url("/images/yellow-heart.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    width: 27px;
    aspect-ratio: 1;
    transform: translateY(2px);
}

.rm-experience-lesson {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: white;
    border-radius: 8px;
}

.rm-experience-lesson .lesson_item_image {
    min-width: 178px;
    max-width: 178px;
    aspect-ratio: 1;
    height: auto;
    object-fit: cover;
}

.rm-experience__title {
    font-size: 20px;
    margin-bottom: 14px;
    font-weight: normal;
    display: none;
    width: fit-content;
}

.rm-experience-lesson__title {
    margin-block: 5px;
    font-size: 20px;
}

.rm-experience-lesson__title a {
    text-decoration: none;
}

.lesson_view_more_link {
    padding: 6px 15px;
    color: white;
    background-color: #ED837C;
    border-radius: 30px;
    color: white;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    -moz-text-align-last: center;
    text-align-last: center;
    text-decoration: none;
}

@media (max-width: 568px) {
    .experience-item {
        margin-top: 24px;
        margin-bottom: 0;
    }

    .lesson_view_more_link {
        font-size: 11px;
        padding: 6px 4px;
    }
}

.rm-experience-lesson__teacher-name {
    font-weight: 400;
    line-height: 138%;
}

.rm-experience-lesson__title a {
    color: #fa8b8b;
    line-height: 138%;
    word-break: break-word;
}

.rm-experience-text {
    margin-bottom: 12px;
}

.rm-experience-text__title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #d9455b;
}

.rm-experience-text__desc {
    font-size: 18px;
    line-height: 28px;
    margin-top: 4px;
    font-weight: normal;
}

.rm-experience-text__desc * {
    font-weight: normal;
}

.rm-experience-lesson-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.rm-experience-lesson__content {
    height: 100%;
    flex-grow: 1;
}

.rm-experience-lesson__info * {
    font-weight: 400;
    line-height: 138%;
    word-break: breadk-word;
}

.rm-experience-lesson__info--price::before {
    position: relative;
    top: 4px;
    width: 20px;
    background-image: url("/images/icon-yen-black.png");
    background-size: contain;
    background-repeat: no-repeat;
    height: auto;
    content: "";
    display: inline-block;
    aspect-ratio: 1;
}

.rm-experience-lesson__info--clock::before {
    position: relative;
    top: 4px;
    width: 20px;
    background-image: url("/images/icon-clock-black.png");
    background-size: contain;
    background-repeat: no-repeat;
    height: auto;
    content: "";
    display: inline-block;
    aspect-ratio: 1;
}


.rm-experience-lesson__info--schedule::before {
    position: relative;
    top: 4px;
    width: 20px;
    background-image: url("/images/icon-schedule-black.png");
    background-size: contain;
    background-repeat: no-repeat;
    height: auto;
    content: "";
    display: inline-block;
    aspect-ratio: 1;
}

.rm-experience-lesson__view-more-btn {
    margin-top: 6px;
}

.rm-experience-lesson__view-more-btn {
    text-align: center;
}

.experience-item__remark {
    font-size: 18px;
    font-weight: normal;
}

.rm-experience-lesson__course-box {
    background-color: #ed837d;
    border-radius: 9999px;
    padding: 0px 13px;
    font-size: 14px;
    color: white;
    font-weight: 600;
    display: inline-block;
    /* height: 22px; */
    padding: 2px 12px;
    margin-bottom: 8px;
}

@media screen and (max-width: 960px) {
    .rm-experience-lesson__course-box {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .experience-item__remark {
        font-size: 16px;
    }

    .roadmap-tabs {
        margin-bottom: 16px;
    }

    .rm-experience-lesson-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .experience-item__header {
        font-size: 16px;
    }

    .rm-experience-lesson__info {
        font-size: 14px;
    }

    .rm-experience-lesson__title {
        font-size: 15px;
    }

    .rm-experience__title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .experience-item__body {
    }

    .rm-experience-lesson {
        gap: 8px;
        padding: 8px
    }

    .roadmap-tab {
        font-size: 16px;
    }

    .rm-experience-text {
        margin-bottom: 10px;
    }

    .rm-experience-text__desc {
        font-size: 14px;
        margin-top: 0;
    }

    .rm-experience-text__title {
        margin-bottom: 0;
        font-size: 16px;
    }

    .rm-experience-lesson .lesson_item_image {
        min-width: 140px;
        max-width: 140px;
    }
}

/* Learning steps */
.learning-step-item {
    margin-bottom: 40px;
    position: relative;
}

.learning-step-content {
    margin-bottom: 24px;
}

/* .learning-step-content__header::before {
    content: "";
    background-image: url("/images/yellow-heart.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    width: 27px;
    aspect-ratio: 1;
    transform: translateY(2px);
} */

.learning-step-item__title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
}

.learning-step-content__header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.learning-step-content__body {
    font-size: 18px;
    font-weight: normal;
}

@media screen and (max-width: 960px) {
    .learning-step-content__header,
    .learning-step-item__title {
        font-size: 16px;
    }

    .learning-step-content__body {
        font-size: 14px;
    }
    .roadmap-steps-title {
        font-size: 18px;
        margin-block: 20px;
    }

    .learning-step-item .rm-experience-lesson {
        margin-bottom: 10px;
    }
}

/* .rm-experience-lesson-list for teacher genre */
.teacher_genre_detail .rm-experience-lesson-list {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.teacher_genre_detail .rm-experience-lesson {
    max-width: 442px;
}

.experience-item__header {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 24px;
}

.experience-item__header::before {
    display: none;
}

.experience-item__header span {
    display: block;
    width: fit-content;
    max-width: 308px;
    font-weight: 400;
    font-size: 29px;
}

.experience-item__header.experience-item__header--en span {
    font-family: "Giulia-Light", sans-serif !important;
}

.experience-item__header.experience-item__header--jp span {
    font-weight: bold;
    font-size: 24px;
}

.experience-item__header--first-timer {
    background-image: url("/images/experience-first-timer-pc.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 74px;
}

.experience-item__header--beginner-intermediate {
    background-image: url("/images/experience-intermediate-pc.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 74px;
}

.experience-item__header--advanced {
    background-image: url("/images/experience-advance-pc.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 74px;
}

@media screen and (max-width: 768px) {
    .experience-item__header {
        margin-bottom: 12px;
    }
    .experience-item__header span {
        max-width: 186px;
        font-size: 14px;
        line-height: 1.2em;
    }

    .experience-item__header.experience-item__header--en span {
        max-width: 236px;
        font-size: 18px;
        line-height: 1.2em;
    }

    .experience-item__header.experience-item__header--jp span {
        max-width: 200px;
        font-size: 16px;
        line-height: 1.2em;
    }

    .experience-item__header--first-timer {
        background-image: url("/images/experience-first-timer-sp.png");
    }

    .experience-item__header--beginner-intermediate {
        background-image: url("/images/experience-intermediate-sp.png");
    }

    .experience-item__header--advanced {
        background-image: url("/images/experience-advance-sp.png");
        margin-bottom: 24px;
    }
}
/* ===================================
   Phase-Based Learning Steps
   (Reuses existing .roadmap-tab, 
    .experience-item, .rm-learning-step)
   =================================== */

.phase-tab {
    background: #e6e6e6;
    font-size: 22px;
    text-align: center;
    padding: 13px 8px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    max-width: 200px;
    width: min(261px, 100%);
}

.phase-tab.active {
    background: #ed837c;
}

/* Learning Step Goal Section */

.learning-step-goal__label {
    font-size: 14px;
    color: #ed837c;
}

.learning-step-goal__label::before {
    content: "";
    background-image: url("/images/icon-goal.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    width: 18px;
    aspect-ratio: 1;
    transform: translateY(2px);
    margin-right: 0px;
}

.learning-step-goal-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.learning-step-goal__text {
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    transition: max-height 0.3s ease;
    word-break: break-word;
}

.learning-step-goal__text.collapsed {
    max-height: calc(1.7em * 2); /* 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.learning-step-goal__text.expanded {
    max-height: 1000px;
}

.learning-step-goal-wrapper .toggle-icon {
    flex-shrink: 0;
    font-size: 18px;
    color: #ed837c;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 2px;
}

.learning-steps-comment-wrapper .toggle-icon i::before,
.learning-step-goal-wrapper .toggle-icon i::before {
    color: #ed837c;
}

/* Milestones Section */
.learning-step-milestones {
    margin-top: 24px;
}

.learning-step-milestones__label {
    margin-bottom: 6px;
    background-image: url("/images/icon-steps.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    aspect-ratio: 150/47;
    width: 78px;
    height: auto;
    display: flex;
    align-items: center;
    padding-left: 14px;
    white-space: nowrap;
    font-size: 14px;
}

.teacher_genre_page--jp .learning-step-milestones__label {
    font-size: 12px;
}

.learning-step-milestones__list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Comment Section - Accordion */


.learning-steps-comment-accordion {
    margin-block: 20px;
}

.learning-steps-comment-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px;
    padding-left: 74px;
    background: white;
    color: black;
    border-radius: 8px;
    min-height: 60px;
    align-items: center;
}

.learning-steps-comment-wrapper::before {
    content: "";
    background-image: url("/images/instructor-image.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    width: 71px;
    aspect-ratio: 1;
    position: absolute;
    margin-top: 4px;
    flex-shrink: 0;
    top: -11px;
    left: 0;
}

.learning-steps-comment-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: black;
}

.learning-steps-comment-content.collapsed {
    max-height: calc(1.7em * 2); /* 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.learning-steps-comment-content.expanded {
    max-height: 1000px;
}

.toggle-icon i {
    cursor: pointer;
    transition: transform 0.3s ease;
}

@media screen and (min-width: 1024px) {
    .learning-steps-comment-wrapper {
        min-height: 100px;
        padding-left: 110px;
    }

    .learning-steps-comment-wrapper::before {
        top: -4px;
    }
}

/* Empty State */
.phase-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 18px;
    padding-block: 0;
}

/* Phase panel visibility */
.phase-panel.hide {
    display: none;
}


.learning-step-item .learning-step-header span {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: min(600px, 100%);
    aspect-ratio: 628/78;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    padding: 6px;
}

.phase-panel > .learning-step-header span {
    background-image: url("/images/first-course-bg.png");
}

.phase-panel > .learning-step-item--0 .learning-step-header span {
    background-image: url("/images/first-course-bg.png");
}

.phase-panel > .learning-step-item--1 .learning-step-header span {
    background-image: url("/images/second-course-bg.png");
}

.phase-panel > .learning-step-item--2 .learning-step-header span {
    background-image: url("/images/third-course-bg.png");
}

.rm-learning-step {
    /* esclipsis */
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-learning-step__title {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url("/images/icon-mastery-lesson.png");
    display: flex;
    align-items: center;
    aspect-ratio: 100/47;
    width: 54px;
    height: auto;
    line-height: 96%;
    padding-left: 15px;
}

.learning-step-milestones-connector {
    position: absolute;
    width: 4px;
    height: 40px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url("/images/icon-step-line.png");
    z-index: 0;
}

.rm-learning-step-text {
    padding-left: 24px;
}

.rm-learning-step__title {
    white-space: nowrap;
}

.rm-learning-step-lesson__title {
    display: inline-block;
    margin-left: 24px;
    color: #fa8b8b;
}

.teacher_genre_detail .rm-learning-step-lesson-list {
    justify-content: flex-start;
    padding-left: 24px;
}

.learning-step-separator {
    width: 100%;
    height: 5px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url("/images/icon-separator-line.png");
    margin-block: 27px;
}

.learning-step-goal__text {
    margin-block: 0;
}

.learning-step-goal__text .learning-steps-comment-wrapper {
    padding: 0;
    background: none;
    min-height: auto;
}

.learning-step-goal__text .learning-steps-comment-wrapper::before {
    display: none;
}

.learning-step-last-lesson-image {
    text-align: center;
    margin: 20px auto;
    width: min(100%, 200px);
    aspect-ratio: 1;
    height: auto;
    position: relative;
}

.learning-step-last-lesson-image img {
    overflow: hidden;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* .learning-step-last-lesson-image::after {
    content: "";
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url("/images/roadmap-icon-star.png");
    width: 48px;
    display: inline-block;
    height: auto;
    aspect-ratio: 1;
    position: absolute;
    left: calc(100% + 4px);
    bottom: 0;
} */

/* Responsive */
@media (max-width: 568px) {
    .phase-tabs {
        gap: 8px;
        margin-top: 16px;
    }
    
    .phase-tab {
        width: 100%;
        font-size: 16px;
    }

    .phase-panel > .learning-step-item .learning-step-header span {
        aspect-ratio: 312 / 55;
        width: 100%;
        height: auto;
    }

    .teacher_genre_detail .rm-learning-step-lesson-list {
        padding-left: 16px;
    }
    
    .rm-learning-step-lesson-list {
        padding-left: 14px;
    }

    .learning-step-milestones-connector {
        width: 2px;
    }

    .learning-step-item .learning-step-header span {
        background-size: cover;
        font-size: 18px;
    }

    .teacher_genre_detail .rm-experience-lesson__teacher-name {
        font-size: 14px;
    }

    .teacher_genre_detail .rm-experience-lesson__title a {
        font-size: 14px;
    }

    .teacher_genre_detail .rm-experience-lesson .lesson_item_image {
        min-width: auto;
        max-width: 124px;
    }

    .learning-step-milestones {
        margin-top: 8px;
        margin-left: -10px;
    }
}

@media (min-width: 960px) {
   .toggle-icon i {
        font-size: 32px;
   }

   .learning-steps-comment-wrapper::before {
        width: 100px;
   }

   .learning-steps-comment-content {
    font-size: 20px;
   }

   .learning-step-separator {
        height: 9px;
    }

    .rm-learning-step__title {
        width: 81px;
    }

    .rm-learning-step-lesson__title {
        margin-left: 42px;
    }

    .learning-step-milestones__label {
        width: 122px;
        font-size: 22px;
    }

    .learning-step-goal__label {
        font-size: 22px;
        line-height: 133%;
    }

    .learning-step-goal__label::before {
        width: 24px;
    }
}

.experience-item__phase-number {
    text-align: center;
    font-size: 20px;
    margin-block: 0.8em;
}

@media (min-width: 960px) {
    .experience-item__phase-number {
        font-size: 24px;
        margin-top: 0;
    }
}