/* global */
html,
body {
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
    font-size: 13px;
}

header,
footer {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.mobile-only {
    display: none;
}





/* header */
header {
    text-align: center;
    border-bottom: 1px solid #c4c4c4;
}

header .catchphrase {
    margin: 0;
}

header nav {
    text-align: left;
}

header nav a {
    display: inline-block;
    margin: 0 20px 0 0;
    color: #808080;
    font-size: 14px;
    text-decoration: none;
    padding: 5px;
}

nav a:visited {
    color: #808080;
}

nav a:hover {
    color: #808080;
    text-decoration: underline;
}


.headlogo {
    width: 150px;
}

.responsive-img img {
    width: 200px;
    height: auto;
}





/* main.html */
/* main */
main {
    padding: 0 0 20px 0;
}

main * {
    font-size: 20px;
}

section,
.container {
    padding: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

#face {
    max-width: 1400px;
}

.slider {
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.container {
    display: flex;
    flex-wrap: wrap;
}

.headline {
    font-weight: 300;
    font-size: 1.2em;
    text-align: center;
    line-height: 1.5em;
}

/* 슬라이드 */
/* 슬라이드 섹션 */
.slider {
    max-width: 3920px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.slides {
    display: flex;
    transition: transform 0.3s ease-out;
}

.slide {
    width: 100%;
    aspect-ratio: 21 / 9;
    flex-shrink: 0;
}

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

/* 내비게이터 스타일 (우하단, 원형 도트) */
.slider-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
}

.slider-indicator button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.slider-indicator button.active {
    background-color: rgba(255, 255, 255, 0.9);
}

/* 소개 */
.about-headline {
    margin: 0 auto;
    width: 100%;
}

.about-headline h1 {
    margin: 30px 0 15px 0;
    font-size: 1.5em;
    text-align: center;
    color: rgb(35, 35, 35);
}

.about-body {
    display: flex;
    margin: 0 auto;
}

.about-img {
    flex: 1;
    aspect-ratio: 16/9;
    margin: 0 10px;
}

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

.about-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-txt {
    flex: 1;
    margin: 0 10px;
}


/* store.html  */
section {
    font-size: 16px;
}

.container {
    display: flex;
    flex-wrap: wrap;
}

.item {
    width: 100%;
    padding: 30px;
    text-align: center;
}

.item a,
.item a:visited {
    display: inline-block;
    color: #808080;
    font-size: 12px;
    text-decoration: none;
    padding: 10px;
    border-radius: 20px;
    transition: all 0.5s;
}

.item a:hover {
    display: inline-block;
    color: white;
    font-size: 12px;
    text-decoration: none;
    padding: 10px;
    border-radius: 20px;
    background-color: #808080;
}

.orderbutton {
    display: inline;
    /* border-radius: 40px;
    padding: 3px 5px; */
}

#item1 {
    display: block;
}

#img1 {
    width: 200px;
}





/* footer */
footer {
    border-top: 1px solid #c4c4c4;
    color: #808080;
}

footer nav {
    display: flex;
    margin-bottom: 10px;
    justify-content: space-between;
    align-items: start;
}

.top-links {
    display: inline-block;
    margin: 0 20px 10px 0;
    color: #080808;
    font-size: 14px;
    text-decoration: none;
}

/* 아이콘 이미지 */
.nav-icon {
    width: 40px;
    border: 1px solid #b4b4b4;
    border-radius: 20%;
    /* 원하는 크기로 조절 */
    height: auto;
    vertical-align: middle;
}


.left-links a,
.left-links a:hover,
.left-links a:visited {
    color: #808080;
}

.right-links a,
.right-links a:hover {
    text-decoration: none;
}

.nonedecoration {
    text-decoration: none;
    color: #808080;
}

footer p {
    margin-top: 0;
    margin-bottom: 0;
}

footer p span {
    display: inline-block;
    margin-right: 1em;
}






/* 모바일 화면 숨김 요소 */
.top-shortcut,
.biz-btn,
.biz-copy {
    display: none;
}

/* 모달 기본 숨김 (display: none 대신 opacity와 visibility 사용) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 모달이 표시될 때 */
.modal.active {
    opacity: 1;
    visibility: visible;
}

/* 모달 내부 컨텐츠 */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    text-align: left;
}

.modal-header {
    display: flex;
    justify-content: center;
    /* 좌우 정렬 */
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    padding-bottom: 0.5em;
}

.modal-body {
    display: block;
    font-size: 12px;
}

.modal-footer {
    display: flex;
    justify-content: center;
    /* 좌우 정렬 */
    align-items: center;
}

.modal-footer a {
    display: inline-block;
    color: #808080;
    font-size: 12px;
    margin: 0.5em 1em 0 1em;
}

.modal-footer a:visited {
    color: #808080;
}

/* 닫기 버튼 스타일 */
.close {
    display: inline;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: black;
}






/* 태블릿 화면 (최대 1123px) */
@media screen and (max-width: 1123px) {

    /* 전역 설정 */
    header,
    footer {
        max-width: 100%;
    }

    /* 헤더 조정 */
    .catchphrase {
        display: none;
    }

    /* 모바일 only 요소 표시 */
    .mobile-only {
        display: block;
    }

    .slider-btn {
        display: none;
    }

    /* 로고 좌측 이동, 숏컷 표시시 */
    .top {
        display: flex;
        justify-content: space-between;
    }

    .top-shortcut {
        display: flex;
        gap: 5px;
    }

    .shortcut-icon {
        display: flex;
        width: 40px;
        height: 40px;
        border: 1px solid #b4b4b4;
        border-radius: 10px;
    }

    #headlogo {
        margin: 0;
    }

    /* 컨텐츠 영역 가로폭 최대값 */
    .container {
        max-width: 600px;
    }

    /* 컨텐츠 세로 정렬 */
    .about-body {
        display: flex;
        margin: 0 auto;
    }

    .about-img {
        flex: 1;
        margin: 0 10px 0 10px;
    }

    .about-body {
        display: flex;
        flex-direction: column;
    }

    /* 데스크탑 사업자 정보 숨기기 */
    .biz-info {
        display: none;
    }

    /* '사업자 정보' 버튼 보이기 */
    .biz-btn {
        display: block;
        width: fit-content;
        padding: 6px 9px;
        background: #dadada;
        color: rgb(113, 113, 113);
        text-decoration: none;
        border-radius: 50px;
        margin: 0 auto;
    }

    /* 카피라이트 표시 */
    .biz-copy {
        display: block;
        margin: 1em;
        text-align: center;
    }

}





/* 모바일 화면 (최대 768px) */
@media screen and (max-width: 768px) {

    /* 전역 */
    /* 바디 폰트 축소 */
    section p,
    section p *,
    .headline {
        font-size: 14px;
    }

    .about-headline {
        font-size: 14px;
    }

    /* 헤더, 푸터 패딩 축소 */
    header {
        padding: 0;
    }

    /* 컨텐츠 영역 가로폭 최대값 */
    .container {
        max-width: 400px;
    }

    /* 헤더 */
    /* 로고의 좌, 상단에 마진 적용 */
    .responsive-img img {
        width: 120px;
        margin: 10px 0 0 10px;
    }

    .top-shortcut {
        padding: 10px 10px 0 0;
    }

    .shortcut-icon {
        width: 30px;
        height: 30px;
        border-radius: 7.5px;
    }

    header nav {
        margin: 5px;
    }

    header nav a {
        margin: 0;
        padding: 10px;
    }

    /* 슬라이더 내비게이터 도트 축소 */
    .slider-indicator {
        bottom: 10px;
        right: 0px;
        scale: 50%;
    }

    /* biz 콘텐츠 제목 부분 가운데 정렬 */
    section {
        padding: 0px;
    }

    .notice-header {
        text-align: center;
    }

    footer {
        padding: 13px 10px 10px 10px;
    }

}