body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap; /* 줄 바꿈을 허용하여 화면이 좁아지면 이미지가 아래로 이동 */
    align-items: center; /* 세로 중앙 정렬 */
    justify-content: space-between; /* 양쪽 정렬 */
}

.main-content {
    padding: 20px;
    background: #fff;
    margin-top: 20px;
    margin-bottom: 20px;
}

section {
    padding: 20px;
    max-width: 800px;
    margin: auto;
}

.footer {
    max-width: 80%;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.links {
    flex: 4;
    display: flex;
    flex-direction: row;
    margin: auto;
    justify-content: space-around;

}


.company-info{
    flex: 2;
    margin: 20px;
}
.company-info img {
    max-width: 150px;
    display: block;
    margin-bottom: 10px;
}

.links h3 {
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
    margin-bottom: 10px;
}
.links ul {
    list-style: none;
    padding: 0;
}
.links ul li {
    margin: 5px 0;
}
.social-icons {
    margin-top: 10px;
}
.social-icons a {
    margin: 0 5px;
    display: inline-block;
}
.social-icons img {
    width: 30px;
    height: 30px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease-in-out; /* 색 변화를 부드럽게 */
    
}

p {
    font-size: 20px;
}

a:hover {
    color: skyblue;
}

.text {
    flex: 1; /* 글자가 가변적으로 차지하는 공간 */
    min-width: 200px; /* 최소 너비 설정 */
}

.image {
flex: 1; /* 이미지도 가변적으로 차지하는 공간 */
min-width: 200px; /* 최소 너비 설정 */
text-align: right; /* 이미지 오른쪽 정렬 */
}

.image img {
max-width: 100%; /* 부모 요소보다 커지지 않도록 설정 */
height: auto; /* 비율 유지 */
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        width: 80%;
    }

    .links {
        margin: 20px;
        flex-direction: column;
    }
}