@media (min-width: 1921px) {
    html { font-size: 10.5px; }
}

@media (min-width: 1025px) {
    .keyword_recommend li:hover {
        background: #fff;
        border-color: var(--brown);
    }
    .keyword_recommend li:hover a {
        color: var(--brown);
    }
}

@media (max-width: 1600px) {
    html { font-size: 9px; }
    .header_nav .depth1 { padding-left: 26rem; padding-right: 12rem; }
    .header_nav .depth1 > li > a { padding: 0 1.1rem; }
    .main-header.on .header_nav .depth1 > li { padding: 0 1.4rem; }
    .main-header.on .header_nav .depth1 > li > a { padding: 0 1.1rem; }
}

@media (max-width: 1280px) {
    html { font-size: 8px; }
    .header_wrap,
    .header_nav .depth1,
    .main_hero_wrap,
    .site_footer_inner {
        padding-left: 4rem;
        padding-right: 4rem;
    }
    .header_nav .depth1 { padding-left: 24rem; padding-right: 10rem; }
    .main_hero_inner { padding: 0 4rem 0 12rem; }
    .main_doctor_inner { grid-template-columns: 1fr 1fr; gap: 6rem; }
}

@media (max-width: 1024px) {
    .header_wrap,
    .header_nav .depth1,
    .main_hero_wrap {
        padding-left: 2.4rem;
        padding-right: 2.4rem;
    }
    .header_nav .depth1 { padding-left: 22rem; padding-right: 8rem; }
    .main_hero_wrap { padding-top: 9rem; }
    .visual_section .bg,
    .visual_section .bg01,
    .main_hero_bg {
        background-image: url(../images/main_hero_m.png);
        background-position: 78% 2%;
    }
    .main_hero_frame { height: 72rem; border-radius: 3rem; }
    .main_hero_inner { padding: 0 2.4rem 8rem; justify-content: flex-end; }
    .story_front,
    .story_intro { padding: 0 2.4rem; }
    .sec_story {
        min-height: 100vh;
        background: #442d1d;
    }
    .story_pin {
        overflow: hidden;
        top: 0;
        width: 100%;
        height: 100vh;
        min-height: 100dvh;
        background: #442d1d;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    .story_front,
    .story_panel,
    .story_intro {
        overflow: visible;
        inset: 0;
        width: auto;
        height: auto;
        min-height: 0;
    }
    .story_front {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        padding: 80px 2.4rem 0;
        background: var(--beige);
    }
    .story_panel {
        top: -2px;
        bottom: -12px;
        height: auto;
        background: #442d1d;
        box-shadow: 0 12px 0 0 #442d1d;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    .story_front .en { font-size: 1.8rem; }
    .story_front .tit {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 1.2rem;
        font-size: 2rem;
    }
    .story_front .tit img { width: 5.6rem; }
    .intro_stage {
        top: calc(80px + (100vh - 80px) / 2);
        width: calc(100% - 4.8rem);
    }
    .intro_copy {
        font-size: 2rem;
        line-height: 1.6;
    }
    .sec_why .why_tit .tit {
        font-size: 2rem;
        line-height: 1.55;
    }
    .intro_line {
        height: 36vh;
        margin-top: 2.4rem;
    }
    .sec_precision {
        margin-top: -3px;
        padding: 8rem 0 7rem;
        position: relative;
        z-index: 1;
    }
    .precision_inner { padding: 0; }
    .precision_head {
        margin: 0 2.4rem 4rem;
    }
    .precision_head p br { display: none; }
    .sec02 .box01 .cont_wrap,
    .sec02 .box01 .card_swiper {
        display: block;
        height: auto;
        min-height: 0;
        padding: 0;
        overflow: hidden;
    }
    .sec02 .box01 .card_swiper .swiper-wrapper {
        align-items: stretch;
        height: auto;
        padding: 0;
    }
    .sec02 .box01 .card_swiper .swiper-slide {
        display: flex;
        justify-content: center;
        box-sizing: border-box;
        width: 100%;
        height: auto;
        padding: 0 2.4rem;
    }
    .sec02 .box01 .card_swiper .item01,
    .sec02 .box01 .card_swiper .item02,
    .sec02 .box01 .card_swiper .item03 {
        position: relative;
        left: auto !important;
        top: auto;
        width: 100%;
        max-width: none;
        height: 52rem;
        margin: 0;
        padding: 3.2rem 2.4rem;
        transform: none !important;
        rotate: 0 !important;
        border-radius: 2.4rem;
    }
    .card_pager {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        position: relative;
        margin: 2rem 0 0;
        text-align: center;
    }
    .card_pager .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 !important;
        border-radius: 50%;
        background: #f0e7da;
        opacity: 1;
        transition: width 0.3s ease, border-radius 0.3s ease, background 0.3s ease;
    }
    .card_pager .swiper-pagination-bullet-active {
        width: 28px;
        border-radius: 100px;
        background: #fff;
    }
    .sec02 .box01 .card_swiper .top { font-size: 2.2rem; }
    .sec02 .box01 .card_swiper .card_foot .txt { font-size: 1.5rem; }
    .sec02 .box01 .card_swiper .card_foot .txt br { display: none; }
    .sec02 .box01 .card_swiper .card_foot .tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        font-size: 1.2rem;
        letter-spacing: 0;
    }
    .main_doctor { padding: 8rem 0; }
    .main_doctor_inner {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 0 2.4rem;
    }
    .main_doctor_visual { height: 64rem; }
    .main_doctor_copy { min-height: 0; }
    .main_doctor_career { flex: none; }
    .keyword_inner,
    .system_inner,
    .treat_bars,
    .main_ctc_box { padding-left: 2.4rem; padding-right: 2.4rem; }
    .main_keyword { padding: 8rem 0 0; }
    .keyword_cont { width: 100%; margin-top: 4rem; }
    .keyword_inp { padding-left: 0; }
    .keyword_inp input {
        height: 7.2rem;
        padding: 1.2em 5em 1.2em 1.5em;
        font-size: 1.6rem;
    }
    .keyword_inp button {
        width: 6.6rem;
        height: 6.6rem;
        top: 50%;
        right: 0.3rem;
        transform: translateY(-50%);
        font-size: 1.6rem;
    }
    .keyword_recommend { margin-top: 2.4rem; }
    .keyword_recommend ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
    .keyword_recommend li { height: 4rem; }
    .keyword_recommend li a { font-size: 1.4rem; font-weight: 600; }
    .dept_swiper .swiper-slide {
        width: 28rem;
        height: 36rem;
    }
    .dept_swiper .swiper-slide-active .dept_card {
        transform: scale(0.98);
    }
    .about_pin_view,
    .sec_about {
        height: 100svh;
        overflow: hidden;
    }
    .about_map_stage {
        --hdH: 80px;
    }
    .about_map_stage .main_sec_contact {
        margin-top: calc(-100svh + var(--hdH));
        padding-top: 2.4rem;
    }
    .sec_about .about_tit {
        inset: 0;
        width: auto;
        padding: 0 2.4rem;
        margin: 0;
        transform: none;
    }
    .scroll-icon-animate {
        bottom: 3.2rem;
        width: 2.2rem;
        height: 3.6rem;
    }
    .sec_about .about_tit .en { font-size: 1.8rem; }
    .sec_about .about_tit .tit { font-size: 2rem; }
    .sec_about .about_visual {
        display: block;
        position: absolute;
        left: 50%;
        top: calc(var(--hdH) + (100svh - var(--hdH)) / 2);
        width: calc(100% - 4.8rem);
        height: calc(100svh - var(--hdH) - 8rem);
        max-height: 72svh;
        margin-top: 0;
        border-radius: 2rem;
        transform: translate(-50%, -50%) scale(0.4);
        will-change: auto;
    }
    .sec_about .about_visual_bg {
        object-fit: cover;
        object-position: center 35%;
    }
    .sec_about .about_visual_logo {
        width: min(22rem, 52%);
        height: auto;
    }
    .main_ctc_hours,
    .main_ctc_text,
    .main_ctc_phone {
        padding-right: 7.2rem;
    }
    .system_grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: 0;
    }
    .system_line { display: none; }
    .card_left,
    .card_right,
    .card_bottom {
        grid-column: auto;
        grid-row: auto;
        align-self: auto;
    }
    .system_card { max-width: none; height: 48rem; }
    .main_ctc_box { flex-direction: column; gap: 4rem; }
    .main_ctc_info { flex: none; width: 100%; }
    .main_ctc_head { margin-bottom: 4rem; }
    .main_ctc_map_wrap { min-height: 40rem; }
    .main_ctc_map_wrap iframe { pointer-events: none; }
}

@media (max-width: 960px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
    .main-header {
        overflow: visible;
        left: 0;
        right: 0;
        width: auto;
    }
    .header_wrap {
        position: relative;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 56px 0 16px;
        overflow: visible;
    }
    .header_left {
        flex: 0 1 auto;
        min-width: 0;
        margin-right: 0;
    }
    .header_logo { width: 160px; max-width: 100%; }
    .hamberger {
        position: absolute;
        top: 50%;
        right: 16px;
        flex: none;
        width: 40px;
        height: 40px;
        margin: 0;
        transform: translateY(-50%);
    }
    .header_nav,
    .main-header .gnb_bg { display: none; }
    .site_footer_inner { padding: 3rem 2.4rem; }
    .site_footer_top,
    .site_footer_bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .site_footer_logo img { object-position: left center; }
}

@media (max-width: 768px) {
    html { font-size: 10px; }
    :root {
        --fs-en: 1.2rem;
        --fs-label: 1.3rem;
        --fs-title: 2rem;
        --fs-display: 1.8rem;
        --fs-hero: 2rem;
        --fs-lead: 1.4rem;
        --fs-body: 1.4rem;
        --fs-card: 1.6rem;
        --sect-pd: 6.4rem;
    }
    .main_hero_frame { height: 48rem; border-radius: 2.4rem; }
    .main_hero_label { font-size: 1.4rem; }
    .main_hero_title { font-size: 2.3rem; line-height: 1.4; }
    .main_hero_desc { font-size: 1.6rem; }
    .story_front .en { font-size: 1.6rem; }
    .story_front .tit { font-size: 2rem; }
    .intro_copy {
        font-size: 2rem;
        line-height: 1.55;
    }
    .sec_about .about_tit .en { font-size: 1.6rem; }
    .sec_about .about_tit .tit { font-size: 2rem; }
    .sec_about .about_visual_logo { width: min(16rem, 40%); }
    .precision_head { margin-bottom: 3.2rem; }
    .precision_head h2 { font-size: 2rem; }
    .precision_head p { font-size: 1.4rem; }
    .sec02 .box01 .card_swiper .top { font-size: 1.6rem; }
    .sec02 .box01 .card_swiper .card_foot .txt { font-size: 1.3rem; }

    .main_doctor { padding: 6.4rem 0; }
    .main_doctor_inner { gap: 2.8rem; padding: 0 2.4rem; }
    .main_doctor_visual {
        height: 42rem;
        border-radius: 2.4rem;
    }
    .main_doctor_copy { min-height: 0; }
    .main_doctor_label { font-size: 1.2rem; }
    .main_doctor_headline {
        margin-bottom: 2rem;
        font-size: 1.8rem;
    }
    .main_doctor_name { font-size: 1.8rem; }
    .main_doctor_role {
        margin-bottom: 1.4rem;
        font-size: 1.4rem;
    }
    .main_doctor_quote {
        margin-bottom: 2.4rem;
        font-size: 1.4rem;
    }
    .main_doctor_career { font-size: 1.3rem; }

    .main_sec_dept { padding: 6.4rem 0; }
    .dept_head { margin-bottom: 3.2rem; padding: 0 2.4rem; }
    .dept_head .en { font-size: 1.2rem; }
    .dept_head h2 { font-size: 2rem; }
    .dept_head .desc { font-size: 1.4rem; }
    .dept_swiper { padding: 2.4rem 0; }
    .dept_swiper .swiper-slide {
        width: 24rem;
        height: 32rem;
    }
    .dept_card .tit { font-size: 1.6rem; }
    .dept_card .sub { font-size: 1.2rem; }

    .keyword_title { font-size: 2rem; }
    .keyword_label { font-size: 1.2rem; }
    .keyword_cont { margin-top: 2.4rem; }
    .keyword_inp input { height: 5.2rem; font-size: 1.3rem; }
    .keyword_inp button { width: 4.8rem; height: 4.8rem; font-size: 1.2rem; }
    .keyword_recommend li a { font-size: 1.2rem; }

    .sec_why { padding: 0 2.4rem; }
    .sec_why .why_tit .tit { font-size: 2rem; }

    .sec_system { padding: 6.4rem 0 8rem; }
    .system_head { margin-bottom: 3.2rem; }
    .system_head .en { font-size: 1.2rem; }
    .system_head h2 { font-size: 2rem; }
    .system_head .desc { font-size: 1.4rem; }
    .system_card { height: 36rem; border-radius: 2.4rem; }
    .system_card figcaption { padding: 2.4rem 2rem 2.8rem; }
    .system_card .tit { font-size: 1.6rem; }
    .system_card .txt { font-size: 1.3rem; }

    .treat_head { margin-bottom: 3.2rem; padding: 0 2.4rem; }
    .treat_head .en { font-size: 1.2rem; }
    .treat_head h2 { font-size: 2rem; }
    .treat_bars li {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.2rem;
        padding: 2.4rem;
    }
    .treat_bars .num {
        width: 3.6rem;
        height: 3.6rem;
        margin-top: 0.1rem;
        font-size: 1.3rem;
    }
    .treat_bars li > div { flex: 1; min-width: 0; }
    .treat_bars .tit { margin-bottom: 0.6rem; padding-bottom: 0.6rem; font-size: 1.6rem; }
    .treat_bars .txt { font-size: 1.3rem; }

    .main_ctc_head { margin-bottom: 2.4rem; }
    .main_ctc_head_title { font-size: 2rem; }
    .main_ctc_head_desc { font-size: 1.4rem; }
    .main_ctc_phone { font-size: 1.8rem; }
    .main_ctc_block { padding: 2.4rem 0; }
    .main_ctc_label { margin-bottom: 1.2rem; font-size: 1.3rem; }
    .main_ctc_text,
    .main_ctc_hours { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    html { font-size: 10px; }
    .header_logo { width: 148px; height: 32px; max-width: 100%; }
    .header_wrap {
        padding-left: 16px;
        padding-right: 56px;
    }
    .hamberger { right: 16px; }
    .header_nav .depth1,
    .main_hero_wrap {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
    }
    .main_hero_wrap { padding-top: 8.4rem; }
    .main_hero_frame { height: 42rem; border-radius: 2.4rem; }
    .story_front,
    .story_intro { padding-left: 2rem; padding-right: 2rem; }
    .precision_head { margin-left: 2rem; margin-right: 2rem; }
    .sec02 .box01 .card_swiper .swiper-slide { padding-left: 2rem; padding-right: 2rem; }
    .sec02 .box01 .card_swiper .item01,
    .sec02 .box01 .card_swiper .item02,
    .sec02 .box01 .card_swiper .item03 {
        height: 48rem;
        border-radius: 2rem;
    }
}
