body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: flex-start; /* 페이지 왼쪽 정렬 */
}

.header {
    background-image: url('background.jpg');
    background-size: cover;
    color: white;
    text-align: left;
    padding: 20px;
    width: 50vw; /* 화면의 반만 사용 */
    position: relative; /* 이것을 추가합니다 */
}

.company-info {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 상호명을 왼쪽으로 */
}

.company-logo {
    width: 120px;
    height: auto;
    margin-left: 10px;
}

.bottom-logo {
    width: 800px;
    height: 120px;
    margin-left: 10px;
    float: left; /* 이미지를 왼쪽으로 붙이기 */
}


.header-line {
    border: none;
    height: 2px;
    background-color: #333;
    width: 100%; /* 헤더 너비와 동일하게 조정 */
    position: absolute;
    bottom: 0; /* 헤더의 바닥에서 위치 */
}

main {
    width: 50vw; /* 메인 콘텐츠의 너비도 header와 동일하게 조정 */
    display: flex;
    padding: 20px;
}

#nav {
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    border-right: 2px solid #ccc;
}

#content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
}

.product {
    width: 200px;
    height: auto; /* 높이를 auto로 설정하여 이미지 크기에 맞게 조정 */
    margin: 10px auto; /* 위아래 마진은 10px, 좌우 마진은 자동으로 설정하여 가운데 정렬 */
    background-color: #f0f0f0;
    text-align: center;
    /* box-shadow를 제거하여 그림자 효과를 없앰 */
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* 내용물을 가운데 정렬 */
}

.product-image {
    width: 100%; /* 이미지가 .product 컨테이너에 맞게 조정되도록 설정 */
    height: auto; /* 이미지의 원래 비율 유지 */
}

.product:hover {
    transform: scale(1.05);
    cursor: pointer;
}

footer {
    text-align: center;
    font-size: 12px;
    padding: 10px 0;
    width: 50vw; /* 푸터의 너비도 header와 동일하게 조정 */
}
