/* 기본 스타일 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333333;
}

.container {
    max-width: 70%; /* 모든 콘텐츠의 최대 너비를 70%로 설정 */
    margin: 0 auto; /* 중앙 정렬 */
    padding: 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.center-text {
    text-align: center;
    width: 100%;
}

header {
    background-color: #f4f4f4;
    padding: 10px 0;
    border-bottom: 1px solid #dddddd;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: inherit;
    font-size: 1.0em;
}

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

a:visited {
    color: inherit;
}

a:hover {
    text-decoration: none;
}

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

/* Contact 관련 */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px 0;
}

.image-container img {
    width: 100%;
    height: auto;
}

.image-container, .contact-map {
    flex: 1;
    width: 100%;
    padding: 5px;
}

.contact-map {
    flex: 1;
}

.contact-info {
    flex: 1;
    padding-left: 20px;
}

.contact-info p {
    margin: 10px 0;
}

.contact-page .contact-container {
    display: flex;
    align-items: center; /* 세로로 가운데 정렬 */
}

.contact-page .contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 20px; /* 지도와 글 사이 간격 */
}


/* Footer 관련 */
footer {
    background-color: #f4f4f4;
    padding: 10px 0;
    border-top: 1px solid #dddddd;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
}

#map {
    width: 100%;
    height: 400px;
}

#mainmap {
    background-color: #F0FBFF;
}

/* Main intro 관련 */
main .intro {
    padding: 20px 0;
    text-align: center;
}

/* 슬라이드쇼 관련 */
.slideshow-container {
    position: relative;
    width: 100%;
    margin: auto;
}

.mySlides {
    display: none;
}

img {
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }
    to {
        opacity: 1
    }
}

/* Products 관련 */
.products {
    padding: 20px 0;
}

.glasses-list, .lens-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 100%;
}

.product-item {
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #dddddd;
    width: calc(22% - 20px);
	max-width: 270px;
	height: auto;
    box-sizing: border-box;
    margin-bottom: 20px;
    text-align: center;
}

.product-item img {
    width: 100%;
    height: auto;
}

.brand-logo {
    margin-top: 10px;
    max-width: 80%;
    height: auto;
}

/* 텍스트 레이아웃 관련 */
.text-layout .container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 40px 0;
}

.left-column {
    flex: 1;
    margin-right: 40px;
}

.left-column h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin: 0;
}

.right-column {
    flex: 1;
}

.right-column h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 0 20px;
}

.right-column p {
    font-size: 1em;
    line-height: 1.6;
}

/* Solution section 관련 */
.solution-section {
    padding: 40px 0;
}

.solution-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.solution-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.solution-image {
    width: 50%;
    margin-right: 20px;
}

.solution-image1 {
    width: 40%;
    margin-right: 10px;
}

.solution-text {
    width: 50%;
}

.solution-text h3 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
}

.solution-text p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Features section 관련 */
.features-container {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.feature-column {
    width: 45%;
}

.feature-column h4 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
}

.feature-column ul {
    list-style: none;
    padding: 0;
}

.feature-column li {
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.feature-column li::before {
    content: '○';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8em;
}

/* Locations 관련 CSS */
.state-section {
    max-width: 70%; /* 주(State) 섹션의 최대 너비를 80%로 설정 */
    margin: 0 auto 40px auto; /* 중앙 정렬 및 아래쪽 여백 추가 */
}

.state-title {
    background-color: #F0FFF0;
    padding: 10px;
    text-align: center;
}

.state-title h2 {
    color: #333;
    margin: 0;
    font-size: 1.8em;
}

.store-group {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 90%; /* store-group의 너비도 80%로 설정 */
    margin: 0 auto 20px auto; /* 중앙 정렬 및 아래쪽 여백 추가 */
}

.store {
    width: 30%;
    min-width: 250px;
    margin-bottom: 30px;
    text-align: center;
}

.store h3 {
    font-size: 1.5em;
    color: #333;
}

.store p {
    margin: 5px 0;
}

.red-text {
    color: red;
}

em {
    font-style: italic;
}


@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .image-container, .contact-map {
        width: 100%;
        aspect-ratio: auto; /* 비율 고정 해제 */
        margin-bottom: 20px; /* 여백 추가 */
    }

    .product-item {
        width: 100%;
        max-width: 300px; /* 모바일에서 아이템 최대 너비 제한 */
    }

    .header-container {
        flex-direction: column;
        align-items: center;
    }
	
	h2, h3 {
        font-size: 1.2em; /* 글꼴 크기 줄이기 */
    }

    img {
        max-width: 100%;
        height: auto;
    }
	
	
	.container {
        max-width: 90%; /* 여백 줄이기 */
        padding: 10px; /* 패딩 최소화 */
    }
	
	nav ul {
        flex-direction: column; /* 세로 정렬로 변경 */
        align-items: center;
    }

    nav ul li {
        margin: 5px 0; /* 항목 간의 여백 조정 */
    }

    nav ul li a {
        font-size: 0.9em; /* 폰트 크기 줄이기 */
    }
	
	/* 가로 정렬
	nav ul {
        flex-direction: row;
        justify-content: center;
        padding: 0;
    }

    nav ul li {
        margin: 0 8px;
    }

    nav ul li a {
        padding: 5px 8px;
        font-size: 0.9em;
    }*/
	
	/* 브랜드와 렌즈 이미지의 레이아웃을 세로 정렬로 변경 */
    .glasses-list, .lens-list {
        flex-direction: column;
        align-items: center;
    }

    /* 각 아이템을 화면 너비의 거의 전부를 차지하도록 조정 */
    .product-item {
        width: 90%; /* 이미지가 충분히 크도록 너비를 크게 설정 */
        max-width: 400px;
        margin-bottom: 15px;
        text-align: center;
    }

    .product-item img {
        width: 100%;
        height: auto;
        object-fit: contain; /* 이미지 비율 유지 */
    }

    /* 브랜드 로고 이미지의 너비와 여백 조정 */
    .brand-logo {
        margin-top: 10px;
        max-width: 90%; /* 이미지가 화면 너비에 맞게 크기 조정 */
        height: auto;
    }
	
	.container {
        max-width: 100%;
        padding: 10px;
    }

    .header-container {
        padding: 10px 0;
    }
}