/* 1. 여백 초기화 */

@font-face {
    font-family: 'Aritaburi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/Arita-buri-SemiBold.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(42, 42, 42);
    width: 100%;
    overflow-x: hidden;
    font-family: 'Aritaburi', serif;
    position: relative; /* 로고 배치의 기준점이 됩니다 */
}

a {
    text-decoration: none;
    color: inherit;
}








#logo {
     position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

#logo img {
    width: 70px;
    height: auto;
}




#sidemenu {
    position: fixed;
    top: 0%;
    left: 7%;
    transform: translateX(-50%);
    z-index: 100;

    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#sidemenu_img {
    width: 70px;
    height: auto;
    cursor: pointer;
    display: block;
}

.menulist {
    list-style: none;
    margin-top: 10px;
    overflow: hidden;    
    max-height: 0;
    padding: 0;
    border: none;
    transition: all 0.5s ease-in-out; 
    background-color: rgba(255, 255, 255, 0.522);
    text-align: center;
    width: 70px;
}

#sidemenu:hover .menulist {
    max-height: 300px;   
    padding: 15px 10px;
    border: 1px solid #eee;
}



.menulist a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    display: block;
    padding: 10px 0;
}

.menulist a:hover {
    color: #8b8a8a; /* 마우스 올리면 색상 변경 */
}









#mainvisual {
    position: relative;
    width: 100%;
}

#mainvideo {
    display: block;
    width: 100%;
    top: 10%;      /* 가로로 꽉 차게 */
    height: auto;        /* 이미지 비율 유지 */
    margin-top: 50px;
}

#rightButton {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 50;
}

#rightButton img {
    width: 50px;
    height: auto;
    display: block;
}


#leftButton {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 50;
}

#leftButton img {
    width: 50px;
    height: auto;
    display: block;
}


/* 2. 메인 비디오/이미지: 공중에 띄우지 않습니다(absolute 제거) */
    
    /* top, left, transform 등 위치 속성은 모두 삭제합니다 */


/* 3. 구매 정보 영역 */
#purchase {
    background-color: rgb(42, 42, 42);
    color:#7a7a7a;
    width: 100%;
    display: flex;
    position: relative;
    
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;

}


#text {
    font-size: 10px;
    color:#8b8a8a
}

#price {
    font-size: 17px;
    color:#bababa;
    position: absolute;
    top: 50%;
    right: calc(3% + 150px);
    transform: translate(-50%, -50%);
}



#purchasebox {
    position: relative;
    width: 150px;
    cursor: pointer;
}

#purchasebutton {
    width: 150px;
    cursor: pointer;
    display: block;
    position: relative;
    z-index: 2;
}

#productselect {
    background-color: rgba(200, 200, 200, 0.8);
    width: 150px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 1;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;

    text-decoration: none;
    padding: 30px 0 9px 0;

    letter-spacing: 1.5px;
    white-space: nowrap;

    transition: top 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

#productselect.show {
    top: 100%;
    transform: translate(-50%, -30%);
    opacity: 1;
}

#주문가능 {
    color: black;
    font-size: 13px;
}

#갯수 {
    color:#eee;
font-size: 13px;
}



/* 4. 상세 섹션: 이것도 absolute를 제거해야 비디오 아래로 자연스럽게 붙습니다 */
#detail {
    width: 100%;
    height: auto;
 
}

/*동영상*/
#detail1,
#detail2 {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;

    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#detail1.show,
#detail2.show {
    opacity: 1;
    transform: translateY(0);
}






#detail3_section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: rgb(42, 42, 42);
}

#detail3 {
    width: 100%;
    height: auto;
    display: block;
}

.side_item {
    position: absolute;
    width: 23%;
    height: auto;
    opacity: 0;
    z-index: 5;
    pointer-events: none;

    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 왼쪽 이미지는 왼쪽에서 등장 */
.left_item {
    transform: translateX(-80px);
}

/* 오른쪽 이미지는 오른쪽에서 등장 */
.right_item {
    transform: translateX(80px);
}

/* 각 이미지가 화면 위치에 도달했을 때 */
.side_item.show {
    opacity: 1;
    transform: translateX(0);
}


.item1 {
    top: 8%;
    left: 0%;
    width: 35%;
}

.item4 {
    top: 8%;
    right: 0%;
    width: 40%;
}

.item2 {
    top: 35%;
    left: 0%;
    width: 26%;
}

.item5 {
    top: 45%;
    right: -5%;
    width: 40%;
}


.item3 {
    top: 67%;
    left: 0%;
    width: 30%;
}


#last {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}
