/* ==========================================================================
   메인 페이지
   ========================================================================== */

.hk-section { padding: 80px 0; }
.hk-section .hk-title + * { margin-top: 48px; }

/* ----- 메인 비주얼 ----- */
.hk-hero {
    position: relative;
    height: 680px;
    overflow: hidden;
    background: #eee;
}
.hk-hero__track { position: absolute; inset: 0; }
.hk-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
}
.hk-hero__slide.is-active { opacity: 1; }
.hk-hero__bg {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
.hk-hero__content {
    position: absolute;
    left: 0; right: 0;
    top: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-inline: var(--hk-gutter);
    text-align: center;
    pointer-events: none;
}
.hk-hero__title {
    font-family: var(--hk-font-en);
    font-size: 56px;
    font-weight: 800;
    line-height: 65px;
    letter-spacing: 0;
}
.hk-hero__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 138px;
    height: 48px;
    margin-top: 32px;
    border: 1px solid var(--hk-black);
    border-radius: 25px;
    font-family: var(--hk-font-en);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
    pointer-events: auto;
    transition: background-color .2s, color .2s;
}
.hk-hero__more:hover { background: var(--hk-black); color: var(--hk-white); }
.hk-hero__dots {
    position: absolute;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
}

/* 슬라이드 표시 점 */
.hk-dots { display: flex; align-items: center; justify-content: center; gap: 12px; }
.hk-dots__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid var(--hk-black);
    border-radius: 2px;
    background: transparent;
    transition: width .3s, background-color .3s;
}
.hk-dots__dot.is-active { width: 30px; background: var(--hk-black); }
.hk-dots--round { gap: 8px; }
.hk-dots--round .hk-dots__dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: #e3e3e3;
}
.hk-dots--round .hk-dots__dot.is-active { width: 12px; background: var(--hk-blue); }

/* ----- 대표 제품 ----- */
.hk-featured { padding: 64px 0 80px; }
.hk-featured__lead {
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
}
.hk-featured__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.hk-featured__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 376px;
    padding-top: 50px;
    padding-bottom: 48px;
    border-radius: var(--hk-radius);
    background: var(--hk-bg);
    transition: box-shadow .2s, transform .2s;
}
.hk-featured__card:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.hk-featured__img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 206px;
    flex: none;
    padding-inline: 16px;
}
.hk-featured__img img { max-height: 206px; object-fit: contain; }
/* 20261008.fig 2차 메인: 제품마다 다른 누끼 이미지 크기와 중심 위치 */
.hk-featured__img--hk601 img { width: 143px; }
.hk-featured__img--beacon-i3 img { width: 215px; }
.hk-featured__img--sfan50 img { width: 248px; transform: translateX(9px); }
.hk-featured__name {
    margin-top: 47px;
    max-width: 100%;
    padding-inline: 16px;
    font-size: 20px;
    font-weight: 700;
    line-height: 25px;
    text-align: center;
}

/* ----- 사업 영역 ----- */
.hk-biz__item {
    --hk-parallax-travel: 120px;
    position: relative;
    height: 488px;
    overflow: hidden;
    color: var(--hk-white);
    background: #6f7378;
}
.hk-biz__bg {
    position: absolute;
    top: calc(0px - var(--hk-parallax-travel));
    left: 0;
    z-index: 0;
    width: 100%;
    height: calc(100% + var(--hk-parallax-travel) + var(--hk-parallax-travel));
    max-width: none;
    object-fit: cover;
    pointer-events: none;
    transform: translate3d(0, var(--hk-parallax-y, 0px), 0);
}
.hk-biz__item.is-parallax-active .hk-biz__bg { will-change: transform; }
.hk-biz__inner { position: relative; z-index: 2; height: 100%; display: flex; }
.hk-biz__item--right .hk-biz__inner { justify-content: flex-end; }
.hk-biz__text { width: 560px; max-width: 100%; padding-top: 120px; }
.hk-biz__item--right .hk-biz__text { text-align: right; width: 550px; }
.hk-biz__title {
    font-size: 32px;
    font-weight: 800;
    line-height: 40px;
}
.hk-biz__desc {
    margin-top: 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}
.hk-biz__btn { margin-top: 56px; }

/* ----- S-FAN LITE ----- */
.hk-spot { padding: 160px 0 80px; }
.hk-spot__inner { display: flex; align-items: flex-start; gap: 48px; }
.hk-spot__media {
    flex: 0 0 498px;
    height: 360px;
    border-radius: var(--hk-radius);
}
.hk-spot__body { flex: 1 1 auto; min-width: 0; }
.hk-spot__title {
    font-family: var(--hk-font-en);
    font-size: 40px;
    font-weight: 800;
    line-height: 64px;
    letter-spacing: 0;
}
.hk-spot__desc {
    margin-top: 20px;
    font-size: 18px;
    line-height: 32px;
    letter-spacing: 0;
}
.hk-spot__btn { margin-top: 100px; }

/* ----- 어플리케이션 ----- */
.hk-apps { padding: 80px 0; }
.hk-apps__inner { display: flex; align-items: flex-start; gap: 48px; }
.hk-apps__visual { flex: 0 0 498px; }
.hk-apps__visual img { display: block; width: 498px; border-radius: var(--hk-radius); }
.hk-apps__cards { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hk-app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 270px;
    padding-top: 51px;
    border-radius: var(--hk-radius);
    background: var(--hk-bg);
    text-align: center;
}
.hk-app-card__logo { height: 40px; width: auto; }
.hk-app-card__desc {
    margin-top: 8px;
    font-family: var(--hk-font-en);
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: 0;
}
.hk-stores { display: flex; justify-content: center; gap: 10px; margin-top: 37px; }

/* ----- 주요 개발 사례 ----- */
.hk-cases__viewport { overflow: hidden; border-radius: var(--hk-radius); }
.hk-cases__track { display: flex; transition: transform .5s ease; }
.hk-case {
    flex: 0 0 100%;
    display: flex;
    height: 400px;
    background: var(--hk-bg);
    border-radius: var(--hk-radius);
}
.hk-case__media { flex: 0 0 450px; border-radius: var(--hk-radius) 0 0 var(--hk-radius); }
.hk-case__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 60px 0 80px;
}
.hk-case__title { font-size: 24px; font-weight: 800; line-height: 30px; }
.hk-case__text { margin-top: 20px; font-size: 18px; font-weight: 600; line-height: 30px; }
.hk-case__more { margin-top: 48px; }
.hk-cases__dots { margin-top: 32px; }

/* ----- 공지사항 / 인증특허 카드 ----- */
.hk-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.hk-home-card { display: block; }
.hk-home-card__img {
    display: block;
    height: 236px;
    border-radius: var(--hk-radius);
    overflow: hidden;
    transition: opacity .2s;
}
.hk-home-card__img--cert { height: 492px; border-radius: 0; background: #f1f1f1; }
.hk-home-card__img--cert img { width: 100%; height: 100%; object-fit: cover; }
.hk-home-card:hover .hk-home-card__img { opacity: .85; }
.hk-home-card__title {
    display: block;
    margin-top: 20px;
    overflow: hidden;
    font-size: 16px;
    line-height: 20px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.hk-home-card:hover .hk-home-card__title { text-decoration: underline; text-underline-offset: 3px; }
.hk-home-cert .hk-home-card__title { margin-top: 24px; }
.hk-home-btn { margin-top: 80px; text-align: center; }

/* ----- 고객 지원 ----- */
.hk-support { padding: 80px 0; background: var(--hk-bg); }
.hk-support__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.hk-support__box {
    min-height: 390px;
    padding: 40px;
    border-radius: var(--hk-radius);
    background: var(--hk-white);
}
.hk-support__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hk-support__title { font-size: 24px; font-weight: 600; line-height: 30px; }
.hk-support__list { margin-top: 40px; }
.hk-support__list li + li { margin-top: 20px; }
.hk-support__list a { display: block; }
.hk-support__item {
    display: block;
    overflow: hidden;
    font-size: 20px;
    line-height: 25px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.hk-support__list a:hover .hk-support__item { color: var(--hk-blue); }
.hk-support__list time {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    line-height: 15px;
    color: var(--hk-date);
}
.hk-support__side { display: flex; flex-direction: column; gap: 14px; }
.hk-contact {
    min-height: 240px;
    padding: 40px;
    border-radius: var(--hk-radius);
    background: var(--hk-blue);
    color: var(--hk-white);
}
.hk-contact__title { font-size: 24px; font-weight: 800; line-height: 30px; }
.hk-contact__tel { margin-top: 6px; font-size: 20px; font-weight: 600; line-height: 24px; }
.hk-contact__tel + .hk-contact__title { margin-top: 16px; }
.hk-hours {
    flex: 1 1 auto;
    padding: 30px 40px;
    border-radius: var(--hk-radius);
    background: #8fa1b4;
    color: var(--hk-white);
    font-size: 16px;
    line-height: 20px;
}
.hk-hours p + p { margin-top: 8px; }
.hk-hours strong { font-weight: 800; }

/* ----- 온라인 구매 안내 ----- */
.hk-shops { padding: 80px 0; background: var(--hk-bg); }
.hk-shops__lead { margin-top: 20px; font-size: 24px; line-height: 30px; }
.hk-shops__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 48px;
}
.hk-shops__item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    padding: 0 20px;
    border-radius: var(--hk-radius);
    background: var(--hk-white);
    box-shadow: var(--hk-shadow);
    font-weight: 700;
    transition: transform .2s;
}
.hk-shops__item:hover { transform: translateY(-2px); }
.hk-shops__item img { max-height: 43px; max-width: 173px; width: auto; }

/* ----- 고객사 ----- */
.hk-partners { padding: 80px 0 240px; background: var(--hk-bg); }
.hk-partners__grid { margin-top: 48px; display: flex; flex-direction: column; gap: 25px; }
.hk-partners__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    min-height: 100px;
}
.hk-partners__row img { display: block; }

/* ==========================================================================
   반응형
   ========================================================================== */
@media (max-width: 1120px) {
    .hk-spot__media,
    .hk-apps__visual { flex-basis: 44%; }
    .hk-apps__visual img { width: 100%; }
    .hk-case__media { flex-basis: 40%; }
    .hk-case__body { padding: 0 40px; }
    .hk-partners__row { flex-wrap: wrap; justify-content: center; gap: 24px 40px; }
    .hk-partners__row img { max-width: 180px; }
}

@media (max-width: 1000px) {
    .hk-hero { height: 560px; }
    .hk-hero__content { top: 150px; }
    .hk-hero__title { font-size: 46px; line-height: 54px; }
    .hk-hero__dots { bottom: 64px; }

    .hk-featured__list { gap: 14px; }
    .hk-featured__card { min-height: 320px; padding-top: 40px; padding-bottom: 39px; }
    .hk-featured__img { height: 180px; }
    .hk-featured__img img { max-height: 170px; }
    .hk-featured__img--sfan50 img { transform: none; }
    .hk-featured__name { margin-top: 36px; }

    .hk-biz__item { --hk-parallax-travel: 80px; height: auto; min-height: 420px; }
    .hk-biz__text { padding: 100px 0 80px; }
    .hk-biz__item::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background: rgba(0, 0, 0, 0.25);
        pointer-events: none;
    }

    .hk-spot { padding-top: 110px; }
    .hk-spot__inner,
    .hk-apps__inner { flex-direction: column; gap: 32px; }
    .hk-spot__media { flex: none; width: 100%; height: auto; aspect-ratio: 498 / 360; }
    .hk-spot__btn { margin-top: 40px; }
    .hk-apps__visual { flex: none; width: 100%; max-width: 498px; margin-inline: auto; }
    .hk-apps__cards { width: 100%; }

    .hk-case { flex-direction: column; height: auto; }
    .hk-case__media { flex: none; height: 260px; border-radius: var(--hk-radius) var(--hk-radius) 0 0; }
    .hk-case__body { padding: 36px 32px 40px; }

    .hk-home-card__img--cert { height: auto; aspect-ratio: 348 / 492; }
    .hk-home-card__img { height: auto; aspect-ratio: 348 / 236; }
    .hk-home-card__img--cert { aspect-ratio: 348 / 492; }

    .hk-support__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hk-support__side { grid-column: 1 / -1; flex-direction: row; }
    .hk-contact, .hk-hours { flex: 1 1 0; }

    .hk-shops__lead { font-size: 20px; }
    .hk-partners { padding-bottom: 160px; }
}

@media (max-width: 700px) {
    .hk-featured__list,
    .hk-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hk-home-grid > li:nth-child(3) { display: none; }
    .hk-shops__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hk-support__grid { grid-template-columns: minmax(0, 1fr); }
    .hk-support__side { flex-direction: column; }
    .hk-contact, .hk-hours { flex: none; }
    .hk-featured__list > li:nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 500px) {
    .hk-section { padding: 64px 0; }
    .hk-section .hk-title + * { margin-top: 28px; }

    .hk-hero { height: 440px; }
    .hk-hero__content { top: 96px; }
    .hk-hero__title { font-size: 32px; line-height: 40px; }
    .hk-hero__more { width: 120px; height: 42px; margin-top: 24px; font-size: 17px; }
    .hk-hero__dots { bottom: 40px; }

    .hk-featured { padding: 44px 0 64px; }
    .hk-featured__lead { font-size: 16px; }
    .hk-featured__list { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
    .hk-featured__list > li:nth-child(3) { grid-column: auto; }
    .hk-featured__card { min-height: 260px; padding-top: 28px; padding-bottom: 23px; }
    .hk-featured__img { height: 160px; }
    .hk-featured__img img { max-height: 150px; }
    .hk-featured__name { margin-top: 24px; font-size: 18px; }

    .hk-biz__item { --hk-parallax-travel: 56px; min-height: 0; }
    .hk-biz__text { padding: 64px 0; }
    .hk-biz__title { font-size: 24px; line-height: 32px; }
    .hk-biz__desc { margin-top: 16px; font-size: 15px; }
    .hk-biz__btn { margin-top: 32px; }

    .hk-spot { padding: 64px 0; }
    .hk-spot__title { font-size: 32px; line-height: 48px; }
    .hk-spot__desc { margin-top: 12px; font-size: 16px; line-height: 28px; }
    .hk-spot__desc br { display: none; }
    .hk-apps { padding: 32px 0 64px; }
    .hk-app-card { height: auto; padding: 36px 16px; }
    .hk-app-card__logo { height: 30px; }
    .hk-stores { flex-wrap: wrap; margin-top: 28px; }

    .hk-case__media { height: 200px; }
    .hk-case__body { padding: 28px 20px 32px; }
    .hk-case__title { font-size: 20px; }
    .hk-case__text { font-size: 16px; line-height: 26px; }
    .hk-case__text br { display: none; }
    .hk-case__more { margin-top: 28px; }

    .hk-home-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .hk-home-grid > li:nth-child(3) { display: block; }
    .hk-home-cert .hk-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hk-home-cert .hk-home-grid > li:nth-child(3) { display: none; }
    .hk-home-cert .hk-home-card__title { font-size: 14px; white-space: normal; }
    .hk-home-card__title { margin-top: 14px; }
    .hk-home-btn { margin-top: 44px; }

    .hk-support { padding: 64px 0; }
    .hk-support__box { min-height: 0; padding: 28px 24px; }
    .hk-support__title { font-size: 20px; }
    .hk-support__list { margin-top: 24px; }
    .hk-support__item { font-size: 17px; }
    .hk-contact, .hk-hours { padding: 28px 24px; }
    .hk-contact { min-height: 0; }
    .hk-contact__title { font-size: 20px; }
    .hk-contact__tel { font-size: 17px; }

    .hk-shops { padding: 64px 0; }
    .hk-shops__lead { font-size: 16px; line-height: 1.5; margin-top: 12px; }
    .hk-shops__list { gap: 10px; margin-top: 28px; }
    .hk-shops__item { height: 64px; padding: 0 12px; }
    .hk-shops__item img { max-height: 30px; max-width: 100%; }

    .hk-partners { padding: 64px 0 110px; }
    .hk-partners__grid { gap: 20px; margin-top: 32px; }
    .hk-partners__row { min-height: 0; gap: 20px 28px; }
    .hk-partners__row img { max-width: 120px; }
}

/* 관리자에서 올린 이미지 */
.hk-case__media { overflow: hidden; }
.hk-case__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hk-home-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
    .hk-biz__bg { transform: none; }
    .hk-biz__item.is-parallax-active .hk-biz__bg { will-change: auto; }
}
