/* 홈 화면 (index.php) - 모든 스타일은 .yh 하위로 한정 */
.yh {
    --yh-navy: #1d2b44;
    --yh-blue: #29a9e1;
    --yh-blue-dk: #1b7fb0;
    --yh-text: #4a5566;
    --yh-muted: #8a94a3;
    --yh-line: #e6edf3;
    --yh-soft: #f4f8fb;
    font-family: var(--ys-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--yh-text);
    word-break: keep-all;
}

.yh *,
.yh *::before,
.yh *::after {
    box-sizing: border-box;
}

.yh h1, .yh h2, .yh h3, .yh p {
    font-family: var(--ys-font);
}

.yh a:hover {
    text-decoration: none;
}

.yh-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.yh-section {
    padding: 64px 0;
}

.yh-soft {
    background: var(--yh-soft);
}

.yh-tight {
    padding-top: 0;
}

.yh-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.yh-eyebrow {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--yh-blue);
}

.yh-head h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.3;
    color: var(--yh-navy);
}

.yh-more {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--yh-blue-dk) !important;
}

/* Buttons */
.yh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform .2s, background-color .2s;
}

.yh-btn:hover {
    transform: translateY(-2px);
}

.yh-btn svg {
    width: 20px;
    height: 20px;
}

.yh-btn-navy,
a.yh-btn-navy:link,
a.yh-btn-navy:visited {
    background: var(--yh-navy);
    color: #fff;
}

.yh-btn-navy:hover {
    background: #2a3d5e;
}

.yh-btn-kakao,
a.yh-btn-kakao:link,
a.yh-btn-kakao:visited {
    background: #fee500;
    color: #191919;
}

.yh-btn-kakao:hover {
    background: #f5dc00;
}

.yh-btn-line,
a.yh-btn-line:link,
a.yh-btn-line:visited {
    border: 2px solid rgba(255, 255, 255, .7);
    color: #fff;
}

/* 1. Hero - 미라클 광레이저 */
.yh-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(120deg, #e6f4fd 0%, #f5fafe 50%, #fdf2f5 100%);
}

.yh-hero::before,
.yh-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(60px);
    opacity: .7;
    pointer-events: none;
}

.yh-hero::before {
    width: 420px;
    height: 420px;
    right: 8%;
    top: -120px;
    background: #cdeafb;
}

.yh-hero::after {
    width: 360px;
    height: 360px;
    left: -120px;
    bottom: -160px;
    background: #fbdde5;
}

.yh-hero .yh-wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 24px;
    padding-top: 56px;
    padding-bottom: 104px;
}

.yh-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 16px 5px 5px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(29, 43, 68, .08);
    font-size: 14px;
    font-weight: 700;
    color: var(--yh-navy);
}

.yh-badge b {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--yh-blue);
    color: #fff;
    font-size: 12px;
    letter-spacing: .06em;
}

.yh-hero-kicker {
    margin: 22px 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: var(--yh-text);
}

.yh-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5.4vw, 62px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.035em;
    color: var(--yh-navy);
}

.yh-hero h1 span {
    color: var(--yh-blue);
}

.yh-hero-sub {
    margin: 0 0 22px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--yh-text);
}

.yh-hero-sub b {
    color: var(--yh-navy);
}

.yh-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.yh-chips li {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid #cfe7f4;
    font-size: 14px;
    font-weight: 600;
    color: var(--yh-blue-dk);
}

.yh-targets {
    margin: 0 0 28px;
    font-size: 15px;
    color: var(--yh-text);
}

.yh-targets b {
    margin-right: 8px;
    font-size: 13px;
    color: var(--yh-muted);
}

.yh-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.yh-hero-visual {
    position: relative;
    text-align: center;
}

.yh-hero-visual > img {
    width: min(100%, 460px);
    height: auto;
    mix-blend-mode: multiply;
}

/* 2. Quick menu */
.yh-quick {
    position: relative;
    z-index: 2;
    margin-top: -56px;
}

.yh-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(29, 43, 68, .10);
    overflow: hidden;
}

.yh-quick-grid a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    border-right: 1px solid var(--yh-line);
    text-decoration: none !important;
    transition: background-color .2s;
}

.yh-quick-grid a:last-child {
    border-right: 0;
}

.yh-quick-grid a:hover {
    background: var(--yh-soft);
}

.yh-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #e7f4fb;
    color: var(--yh-blue-dk);
}

.yh-icon svg {
    width: 24px;
    height: 24px;
}

.yh-quick-text strong {
    display: block;
    font-size: 16px;
    color: var(--yh-navy);
}

.yh-quick-text small {
    display: block;
    font-size: 13px;
    color: var(--yh-muted);
}

/* 3. 대표 시술 cards */
.yh-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.yh-card {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--yh-line);
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s;
}

.yh-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(29, 43, 68, .12);
}

.yh-card-img {
    aspect-ratio: 4 / 3;
    background: #eef3f7;
    overflow: hidden;
}

.yh-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.yh-card:hover .yh-card-img img {
    transform: scale(1.04);
}

.yh-card-body {
    padding: 16px 18px 18px;
}

.yh-card-body small {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--yh-blue);
}

.yh-card-body h3 {
    margin: 4px 0 6px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--yh-navy);
}

.yh-card-body p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--yh-text);
}

.yh-card-body .yh-card-facts {
    font-size: 12px;
    color: var(--yh-muted);
}

.yh-card-more {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--yh-blue-dk);
}

/* Carousels (promo banners, equipment) */
.yh .carousel {
    border-radius: 20px;
    overflow: hidden;
}

.yh .carousel-control-prev,
.yh .carousel-control-next {
    top: 50%;
    bottom: auto;
    width: 40px;
    height: 40px;
    margin: 0 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .2s;
}

.yh .carousel:hover .carousel-control-prev,
.yh .carousel:hover .carousel-control-next {
    opacity: 1;
}

.yh .carousel-control-prev-icon,
.yh .carousel-control-next-icon {
    width: auto;
    height: auto;
    background: none;
}

.yh .carousel-control-prev-icon::after,
.yh .carousel-control-next-icon::after {
    font-size: 26px;
    line-height: 1;
    color: var(--yh-navy);
}

.yh .carousel-control-prev-icon::after {
    content: "\2039";
}

.yh .carousel-control-next-icon::after {
    content: "\203A";
}

.yh .carousel-indicators {
    margin-bottom: 10px;
}

.yh .carousel-indicators li {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    border: 0;
    border-radius: 4px;
    background: rgba(29, 43, 68, .3);
    transition: width .3s;
}

.yh .carousel-indicators li.active {
    width: 22px;
    background: var(--yh-navy);
}

/* 5. 시술 장비 */
.yh-head-sub {
    margin: 8px 0 0;
    font-size: 15px;
    color: var(--yh-text);
}

.yh-devices {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.yh-device {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--yh-line);
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s;
}

.yh-device:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(29, 43, 68, .12);
}

.yh-device-img {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: linear-gradient(160deg, #f1f7fb 0%, #e3eef6 100%);
    isolation: isolate;
}

.yh-device-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;     /* 사진의 흰 배경을 없애고 장비만 보이게 */
    transition: transform .4s;
}

.yh-device:hover .yh-device-img img {
    transform: scale(1.04);
}

.yh-device-new {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--yh-blue);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .06em;
}

.yh-device-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 16px 16px;
}

.yh-device-body small {
    font-size: 12px;
    font-weight: 700;
    color: var(--yh-blue);
}

.yh-device-body strong {
    margin: 2px 0 6px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.3;
    color: var(--yh-navy);
}

.yh-device-desc {
    flex: 1;
    font-size: 13px;
    line-height: 1.55;
    color: var(--yh-text);
}

.yh-device-more {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--yh-blue-dk);
}

/* 6. 진료 안내 */
.yh-info {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 32px 40px;
    border-radius: 20px;
    background: var(--yh-navy);
    color: #cfd8e3;
}

.yh-info .yh-btns {
    flex-direction: column;
    align-items: stretch;
}

.yh-info .yh-btns .yh-btn {
    justify-content: center;
}

.yh-info h3 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.yh-hours {
    margin: 0;
}

.yh-hours div {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-size: 15px;
}

.yh-hours dt {
    font-weight: 500;
}

.yh-hours dd {
    margin: 0;
    font-weight: 700;
    color: #fff;
}

.yh-hours .yh-closed dd {
    color: #ff9fae;
}

.yh-tel {
    display: block;
    margin: 4px 0 2px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #fff !important;
}

.yh-address {
    margin: 0;
    font-size: 14px;
    color: #cfd8e3;
}

.yh-info .yh-btns .yh-btn {
    padding: 11px 20px;
    font-size: 14px;
}

/* 7. Boards */
.yh-boards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.yh-board {
    padding: 24px 24px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--yh-line);
}

.yh-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.yh-board-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--yh-navy);
}

.yh-latest {
    margin: 0;
    padding: 0;
    list-style: none;
}

.yh-latest li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--yh-line);
    font-size: 14px;
}

.yh-latest li:last-child {
    border-bottom: 0;
}

.yh-latest a {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--yh-text) !important;
}

.yh-latest a:hover .yh-latest-subject {
    color: var(--yh-navy);
    text-decoration: underline;
}

.yh-latest-subject {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.yh-latest time {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--yh-muted);
}

.yh-latest-empty {
    color: var(--yh-muted);
}

.yh-tag {
    flex-shrink: 0;
    padding: 0 6px;
    border-radius: 4px;
    background: #eef1f5;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    color: var(--yh-muted);
}

.yh-tag-new {
    background: #ffe9ee;
    color: #e0405e;
}

.yh-board-ba {
    background: linear-gradient(160deg, #eaf6fd 0%, #fdf3f6 100%);
    border: 0;
}

.yh-board-ba p {
    margin: 6px 0 18px;
    font-size: 14px;
    color: var(--yh-text);
}

.yh-board-ba .yh-btns .yh-btn {
    padding: 11px 18px;
    font-size: 14px;
}

.yh-btn-white,
a.yh-btn-white:link,
a.yh-btn-white:visited {
    background: #fff;
    color: var(--yh-navy);
}

/* Tablet */
@media (max-width: 991px) {
    .yh-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .yh-boards {
        grid-template-columns: 1fr;
    }

    /* 장비: 가로로 밀어서 보기 */
    .yh-devices {
        display: flex;
        gap: 14px;
        margin: 0 -20px;
        padding: 4px 20px 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px;
        scrollbar-width: none;
    }

    .yh-devices::-webkit-scrollbar {
        display: none;
    }

    .yh-device {
        flex: 0 0 240px;
        scroll-snap-align: start;
    }

    .yh-info {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .yh-info .yh-btns {
        grid-column: 1 / -1;
        flex-direction: row;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .yh-section {
        padding: 44px 0;
    }

    .yh-head h2 {
        font-size: 22px;
    }

    .yh-hero .yh-wrap {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 32px;
        padding-bottom: 84px;
        text-align: center;
    }

    .yh-hero-kicker {
        font-size: 16px;
    }

    .yh-hero-sub {
        font-size: 16px;
    }

    .yh-hero-sub br {
        display: none;
    }

    .yh-chips,
    .yh-btns {
        justify-content: center;
    }

    .yh-hero .yh-btns .yh-btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .yh-hero-visual {
        margin-top: 28px;
    }

    .yh-hero-visual > img {
        width: 60%;
    }

    .yh-quick {
        margin-top: -44px;
    }

    .yh-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .yh-quick-grid a {
        flex-direction: column;
        gap: 8px;
        padding: 16px 8px;
        text-align: center;
    }

    .yh-quick-grid a:nth-child(2) {
        border-right: 0;
    }

    .yh-quick-grid a:nth-child(-n+2) {
        border-bottom: 1px solid var(--yh-line);
    }

    .yh-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .yh-quick-text strong {
        font-size: 15px;
    }

    .yh-quick-text small {
        font-size: 12px;
    }

    .yh-cards {
        gap: 12px;
    }

    .yh-card-body {
        padding: 12px 12px 14px;
    }

    .yh-card-body h3 {
        font-size: 16px;
    }

    .yh-card-body p {
        font-size: 13px;
    }

    .yh-card-body .yh-card-facts {
        display: none;
    }

    .yh .carousel {
        border-radius: 14px;
    }

    .yh .carousel-control-prev,
    .yh .carousel-control-next {
        display: none;
    }

    .yh-tel {
        font-size: 26px;
    }
}

/* 시술 장비 · 진료 안내 - 휴대폰 */
@media (max-width: 767px) {
    .yh-head-sub {
        font-size: 14px;
    }

    .yh-devices {
        margin: 0 -16px;
        padding: 4px 16px 14px;
        scroll-padding: 0 16px;
    }

    .yh-device {
        flex-basis: 68%;
    }

    .yh-info {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 26px 22px;
    }

    .yh-info .yh-btns {
        flex-wrap: wrap;
    }

    .yh-info .yh-btns .yh-btn {
        flex: 1 1 auto;
    }

    .yh-info .yh-btns .yh-btn-kakao {
        flex-basis: 100%;
    }
}

/* 이벤트 · 소식 띠 (site_config.php 의 event) */
.yh-event-wrap {
    margin-bottom: 56px;
}

.yh-event {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px 18px 24px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--yh-navy) 0%, #1f5a86 60%, var(--yh-blue-dk) 100%);
    color: #fff !important;
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s;
}

.yh-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(29, 43, 68, .22);
}

.yh-event em {
    flex-shrink: 0;
    padding: 5px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--yh-navy);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .06em;
}

.yh-event-text {
    flex: 1;
    min-width: 0;
}

.yh-event-text strong {
    margin-right: 12px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.yh-event-text span {
    font-size: 15px;
    color: #cfe3f2;
}

.yh-event-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    font-size: 18px;
    transition: transform .2s;
}

.yh-event:hover .yh-event-arrow {
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .yh-event-wrap {
        margin-bottom: 24px;
    }

    .yh-event {
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
        border-radius: 18px;
    }

    .yh-event-text strong {
        display: block;
        margin: 0 0 2px;
        font-size: 16px;
    }

    .yh-event-text span {
        font-size: 13px;
    }

    .yh-event-arrow {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
}
