/* ===========================================
   난치성 귀질환 클리닉 페이지 스타일
   =========================================== */


/* ===========================================
   질환 탭 메뉴
   =========================================== */

.disease-tabs {
    width: 100%;
    background: #F7F7FB;
    border-bottom: 1px solid #E5E5EC;
    padding: 16px 360px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 99;
}

.disease-tabs.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.tab-item {
    flex: 1;
    padding: 8px;
    background: transparent;
    border: none;
    text-align: center;
    color: #555555;
    font-size: 20px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-item.active {
    color: #111111;
    font-weight: 700;
}

.tab-item:hover {
    color: #111111;
    font-weight: 600;
}


/* ===========================================
   질환 섹션 공통 스타일
   =========================================== */

.disease-section {
    width: 100%;
    display: block;
}


/* ===========================================
   질환 타이틀 배너
   =========================================== */

.disease-banner {
    width: 100%;
    height: 428px;
    position: relative;
    background: #1E1E1E;
    overflow: hidden;
}

.disease-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.disease-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.disease-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.disease-title {
    color: #fff;
    font-size: 42px;
    font-family: 'MaruBuriOTF', 'MaruBuri', 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 67.2px;
    margin: 0;
}

.disease-subtitle {
    color: #fff;
    font-size: 20px;
    font-family: 'MaruBuriOTF', 'MaruBuri', 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 32px;
    opacity: 0.8;
    margin: 0;
}

.vertigo-section .disease-title {
    color: #111;
}

.vertigo-section .disease-subtitle {
    color: #767676;
}


/* ===========================================
   질환 설명 콘텐츠
   =========================================== */

.disease-content {
    width: 1200px;
    margin: 0 auto;
    padding: 100px 0 0;
}

.content-intro {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.intro-title {
    color: #111111;
    font-size: 30px;
    font-family: 'MaruBuriOTF', 'MaruBuri', 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 48px;
    margin: 0;
}

.intro-description {
    color: #555555;
    font-size: 16px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 25.6px;
    margin: 0;
}

.content-detail {
    display: flex;
    align-items: center;
    gap: 60px;
}

.detail-image {
    flex-shrink: 0;
    width: 585px;
    height: 487px;
    background: #FAFAFA;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-title {
    color: #111111;
    font-size: 20px;
    font-family: 'MaruBuriOTF', 'MaruBuri', 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 32px;
    margin: 0;
}

.detail-description {
    color: #555555;
    font-size: 16px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 25.6px;
    margin: 0;
}

.detail-description strong {
    font-weight: 700;
}


/* ===========================================
   치료 사례
   =========================================== */

.case-study {
    width: 1200px;
    margin: 78px auto 0;
    background: black;
    padding: 60px 0px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.case-study .case-divider {
    border-bottom: 1px solid #616161;
    max-width: 826px;
    width: 100%;
}

.case-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.case-badge {
    color: #C3FFCC;
    font-size: 24px;
    font-family: 'MaruBuriOTF', 'MaruBuri', 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 24px;
}

.case-title {
    color: white;
    font-size: 40px;
    font-family: 'MaruBuriOTF', 'MaruBuri', 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 40px;
    margin: 0;
}

.case-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.case-info {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 826px;
    width: 100%;
    justify-content: space-between;
    flex-direction: column;
    margin: 0 auto;
}

.tinnitus-section .case-info {
    flex-direction: row;
}

.case-study .case-subtitle {
    text-align: center;
}

.case-subtitle {
    color: white;
    font-size: 20px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    line-height: 32px;
    margin: 0;
}

.case-subtitle .highlight {
    color: #F2DB78;
}

.case-highlights {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    padding: 16px 0;
}

.highlight-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-text {
    color: rgba(206, 179, 116, 0.60);
    font-size: 16px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    line-height: 20.8px;
    text-align: center;
}

.case-charts {
    width: 825px;
    background: white;
    border-top: 6px solid #A3A3A3;
    position: relative;
    margin: 0 auto;
}

.chart-comparison {
    display: flex;
    align-items: center;
    padding: 33px 29px;
}

.chart-before,
.chart-after {
    width: 380px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid #EAEAEA;
}

.chart-after {
    border-color: #5E6C5F;
}

.chart-header {
    width: 100%;
    height: 40px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    font-size: 16px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    line-height: 25.6px;
    background: #EAEAEA;
}

.chart-after .chart-header {
    background: #5E6C5F;
    color: white;
}

.chart-before img,
.chart-after img {
    width: 100%;
    object-fit: cover;
}

.chart-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 -10px;
    position: relative;
    z-index: 1;
}

.chart-single {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.chart-single img {
    max-width: 402px;
    height: auto;
}

.chart-result {
    width: 100%;
    height: 63px;
    padding: 16px;
    background: linear-gradient(301deg, rgba(0, 0, 0, 0) 39%, rgba(0, 0, 0, 0.60) 100%), #5E6C5F;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-label {
    color: white;
    font-size: 20px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    line-height: 32px;
}

.result-value {
    color: white;
    font-size: 20px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    line-height: 32px;
}

.result-value em {
    color: #D9FD0B;
    font-style: normal;
}

.case-period {
    height: 60px;
    background: #005E32;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 25px;
}

.period-label {
    color: white;
    font-size: 20px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    line-height: 32px;
}

.period-value {
    color: white;
    font-size: 18px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    line-height: 28.8px;
}

.case-details {
    max-width: 1200px;
    margin: 22px auto 150px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.detail-item {
    flex: 1;
    padding: 30px;
    border: 1px solid #E5E5EC;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.detail-item .detail-text {
    text-align: center;
    flex: unset;
}

.detail-item.highlight-detail {
    background: black;
}

.detail-item.full-width {
    flex: 1 1 100%;
}

.detail-item-group {
    display: flex;
    gap: 20px;
    flex: 1 1 100%;
}

.detail-label {
    color: #555555;
    font-size: 20px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
    margin: 0;
}

.highlight-detail .detail-label {
    color: white;
}

.detail-text {
    color: #555555;
    font-size: 17px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 300;
    line-height: 1.7em;
    margin: 0;
}

.highlight-detail .detail-text {
    color: white;
}


/* ===========================================
   치료 시스템 섹션
   =========================================== */

.treatment-systems {
    width: 100%;
    padding: 0;
    margin: 100px 0 0;
}

.systems-grid {
    display: flex;
    width: 100%;
}

.system-item {
    flex: 1;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.system-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.system-5listening {
    background: linear-gradient(360deg, rgba(0, 0, 0, 0) 0%, rgba(61, 102, 78, 0.30) 58%), #0F0F0F;
}

.system-16test {
    background: black;
}

.system-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.system-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.system-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.system-icon {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.icon-number {
    color: rgba(60, 123, 99, 0.80);
    font-size: 96.95px;
    font-family: 'Noto Serif KR', serif;
    font-weight: 400;
    line-height: 96.95px;
}

.icon-text {
    color: rgba(60, 123, 99, 0.80);
    font-size: 87.47px;
    font-family: 'Noto Serif KR', serif;
    font-weight: 400;
    line-height: 87.47px;
}

.system-labels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.system-labels .label {
    color: #A5E6C8;
    font-size: 18.95px;
    font-family: 'MaruBuriOTF', 'MaruBuri', 'Pretendard', sans-serif;
    font-weight: 600;
    line-height: 30.32px;
}

.system-title {
    position: absolute;
    left: 115px;
    top: 186px;
}

.system-title h3 {
    color: white;
    font-size: 40px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    line-height: 64px;
    margin: 0;
}


/* ===========================================
   치료 방법 섹션
   =========================================== */

.treatment-methods {
    width: 100%;
    padding: 0;
}

.methods-grid {
    display: flex;
    width: 100%;
}

.method-item {
    flex: 1;
    height: 400px;
    position: relative;
    background: black;
    overflow: hidden;
}

.method-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.method-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.method-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.method-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.method-title {
    color: white;
    font-size: 32px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    line-height: 51.2px;
    text-align: center;
    margin: 0;
}

.method-subtitle {
    color: white;
    font-size: 20px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 300;
    line-height: 32px;
    text-align: center;
    margin: 0;
}


/* ===========================================
   반응형 - 태블릿/모바일 (1024px 이하)
   =========================================== */

@media (max-width: 1024px) {
    /* 탭 메뉴 */
    .disease-tabs {
        padding: 16px 16px;
    }
    .tabs-container {
        gap: 4px;
    }
    .tab-item {
        font-size: 16px;
        line-height: 25.6px;
        padding: 8px 4px;
    }
    /* 질환 배너 */
    .disease-banner {
        height: 200px;
    }
    .disease-banner-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 75% 0;
    }
    .disease-banner-content {
        padding: 0 20px;
        text-align: center;
        gap: 0;
    }
    .disease-title {
        font-size: 26px;
        line-height: 41.6px;
    }
    .disease-subtitle {
        font-size: 14px;
        line-height: 22.4px;
    }
    /* 질환 설명 */
    .disease-content {
        width: 100%;
        padding: 60px 16px 0;
    }
    .content-intro {
        gap: 20px;
        margin-bottom: 30px;
    }
    .intro-title {
        font-size: 20px;
        line-height: 32px;
    }
    .intro-description {
        font-size: 14px;
        line-height: 22.4px;
    }
    .content-detail {
        flex-direction: column;
        gap: 30px;
    }
    .detail-image {
        width: 100%;
        height: 250px;
    }
    .detail-title {
        font-size: 16px;
        line-height: 25.6px;
    }
    .detail-description {
        font-size: 14px;
        line-height: 22.4px;
    }
    /* 치료 사례 */
    .case-study {
        width: 100%;
        margin: 60px auto 50px;
        padding: 50px 16px;
    }
    .case-badge {
        font-size: 16px;
        line-height: 16px;
    }
    .case-title {
        font-size: 24px;
        line-height: 24px;
    }
    .case-subtitle {
        font-size: 16px;
        line-height: 25.6px;
    }
    .case-highlights {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    .highlight-item {
        width: 120px;
    }
    .highlight-item img {
        width: 100%;
    }
    .case-study .highlight-item:first-child img {
        /* max-width: 120px; */
    }
    .case-study .highlight-item:first-child {
        /* width: 100%; */
    }
    .highlight-text {
        font-size: 12px;
        line-height: 15.6px;
    }
    .case-charts {
        width: 100%;
    }
    .chart-comparison {
        flex-direction: column;
        padding: 20px;
    }
    .chart-before,
    .chart-after {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .chart-before img,
    .chart-after img {}
    .chart-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }
    .chart-single {
        padding: 16px;
    }
    .chart-single img {
        max-width: 100%;
        width: 280px;
    }
    .result-label,
    .result-value {
        font-size: 14px;
        line-height: 22.4px;
    }
    .case-period {
        width: 100%;
        margin: 0px;
        padding: 16px;
    }
    .period-label,
    .period-value {
        font-size: 16px;
        line-height: 25.6px;
    }
    .case-details {
        width: 100%;
        margin: 0;
        flex-direction: column;
        gap: 16px;
        padding: 0 16px 30px;
    }
    .detail-item {
        padding: 20px 16px;
    }
    .detail-item.full-width {}
    .detail-item-group {
        flex-direction: column;
        gap: 16px;
    }
    .detail-label {
        font-size: 16px;
        line-height: 25.6px;
    }
    .detail-text {
        font-size: 14px;
        line-height: 22.4px;
        width: 100%;
    }
    /* 치료 시스템 */
    .treatment-systems {
        margin: 60px 0 0;
    }
    .systems-grid {
        flex-direction: column;
    }
    .system-item {
        height: 200px;
        flex: auto;
    }
    .icon-number {
        font-size: 37.87px;
        line-height: 37.87px;
    }
    .icon-text {
        font-size: 34.17px;
        line-height: 34.17px;
    }
    .system-labels .label {
        font-size: 7.4px;
        line-height: 11.84px;
    }
    .system-title {
        left: 30px;
        top: 50%;
        transform: translate(0%, -50%);
        /* text-align: left; */
    }
    .system-title h3 {
        font-size: 20px;
        line-height: 32px;
    }
    /* 치료 방법 */
    .methods-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .method-item {
        height: 250px;
    }
    .method-content {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: max-content;
    }
    .method-title {
        font-size: 20px;
        line-height: 32px;
    }
    .method-subtitle {
        font-size: 14px;
        line-height: 22.4px;
    }
    .tinnitus-section .case-info {
        flex-direction: column;
    }
}


/* ===========================================
   스크롤 애니메이션
   =========================================== */

.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.disease-section:nth-child(1) {
    transition-delay: 0s;
}

.disease-section:nth-child(2) {
    transition-delay: 0.1s;
}

.disease-section:nth-child(3) {
    transition-delay: 0.2s;
}

.disease-section:nth-child(4) {
    transition-delay: 0.3s;
}