/* ===== 기본 리셋 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #1a1a2e;
}
.main-content {
    background: #fff;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* 로딩 표시 (데이터 받아올 때까지) */
.site-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    color: #fff;
    font-size: 1rem;
    z-index: 9999;
}

/* ===== 헤더 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    display: none;
}

.logo img[style*="display: none"] + .logo-text {
    display: block;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-list a {
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: #e94560;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* ===== 히어로 배너 (헤더 바로 아래 붙음, 흰 칸 없음) ===== */
.hero-banner {
    margin: 0;
    padding-top: 56px;
    width: 100%;
    height: calc(56px + 42vh);
    max-height: calc(56px + 280px);
    min-height: calc(56px + 160px);
    background: #1a1a2e;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.hero-banner img {
    width: 100%;
    flex: 1;
    min-height: 160px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* 배너 이미지 깨짐/실패 시 빈 공간 최소화 */
.hero-banner.banner-failed {
    max-height: 72px;
    min-height: 0;
    height: auto;
}
.hero-banner.banner-failed img {
    display: none;
}

/* ===== 메인 콘텐츠 ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section {
    margin-bottom: 60px;
}

/* 헤더와 배너 사이 흰 칸 없음 (배너가 padding-top으로 헤더 높이만큼만 띄움) */

.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1a1a2e;
    border-bottom: 3px solid #e94560;
    padding-bottom: 10px;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #555;
}
.section-subtitle:empty {
    display: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.more-link {
    color: #e94560;
    font-weight: 500;
    transition: opacity 0.3s;
}

.more-link:hover {
    opacity: 0.8;
}

/* ===== 인트로 섹션 ===== */
.intro-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #555;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 25px;
    border: 2px solid #e94560;
    background: #fff;
    color: #e94560;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    background: #e94560;
    color: #fff;
}

.tab-contents .tab-content {
    display: none;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tab-contents .tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 15px;
    color: #1a1a2e;
}

.tab-content p {
    color: #555;
    line-height: 1.8;
}

/* ===== 파트너 그리드 ===== */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.partner-item {
    position: relative;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
    min-height: 0;
}
.partner-item:hover {
    opacity: 0.9;
}

.partner-item img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* 파트너 이미지 로드 실패 시 깨진 아이콘 숨김, 칸은 유지 */
.partner-item img.partner-img-failed {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    pointer-events: none;
}

/* ===== 카드 그리드 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.card h4 {
    padding: 15px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

/* ===== 리조트 그리드 ===== */
.resort-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.resort-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s;
}

.resort-card:hover {
    background: #e8e8e8;
}

.resort-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.resort-card span {
    font-weight: 600;
    color: #333;
}

/* ===== 푸터 ===== */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-text {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #ccc;
}

.footer-title {
    font-size: 1.2rem;
    margin: 25px 0 10px;
}

.footer-subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-link img,
.contact-link .telegram-icon {
    margin: 0 auto 20px;
    cursor: pointer;
    transition: transform 0.3s;
    display: block;
}

.contact-link .telegram-icon {
    width: 50px;
    height: 50px;
    color: #fff;
    margin-left: auto;
    margin-right: auto;
}

.contact-link .telegram-icon svg {
    width: 100%;
    height: 100%;
}

.contact-link:hover .telegram-icon,
.contact-link img:hover {
    transform: scale(1.1);
}

.copyright {
    font-size: 0.85rem;
    color: #888;
    margin-top: 30px;
}

/* ===== 이미지 플레이스홀더 (이미지 없을 때) ===== */
img[src=""],
img:not([src]) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 80px;
}

/* ===== 반응형 (오카다 스타일·한눈에 들어오는 모바일) ===== */
@media (max-width: 992px) {
    .main-content {
        padding: 24px 16px;
    }
    .section {
        margin-bottom: 40px;
    }
    .section-title {
        font-size: 1.45rem;
        margin-bottom: 14px;
    }
    .partner-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .resort-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .card-grid {
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 10px 14px;
    }
    .hero-banner {
        padding-top: 52px;
        height: calc(52px + 32vh);
        max-height: calc(52px + 200px);
        min-height: calc(52px + 120px);
    }
    .main-content {
        padding: 16px 12px;
    }
    .section {
        margin-bottom: 28px;
    }
    .section-header {
        margin-bottom: 12px;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 0;
        padding-bottom: 6px;
        border-bottom-width: 2px;
    }
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    .more-link {
        font-size: 0.85rem;
        padding: 6px 12px;
        background: #fff;
        border: 1px solid #e94560;
        border-radius: 6px;
        white-space: nowrap;
    }
    .nav {
        display: none;
    }
    .nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a2e;
        padding: 16px;
    }
    .nav.active .nav-list {
        flex-direction: column;
        gap: 4px;
    }
    .nav.active .nav-list a {
        display: block;
        padding: 10px 0;
    }
    .menu-toggle {
        display: flex;
    }
    .logo img {
        height: 32px;
    }
    .logo-text {
        font-size: 1.2rem;
    }
    /* 파트너: 모바일 3열 컴팩트 (오카다처럼 한눈에) */
    .partner-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .partner-item {
        aspect-ratio: 1;
        min-height: 0;
    }
    .partner-item img {
        width: 75%;
        height: 75%;
    }
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .card h4 {
        padding: 10px 8px;
        font-size: 0.8rem;
        line-height: 1.35;
    }
    .card img {
        aspect-ratio: 16/10;
    }
    .resort-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .resort-card {
        padding: 12px;
    }
    .resort-card img {
        margin-bottom: 6px;
    }
    .resort-card span {
        font-size: 0.85rem;
    }
    .footer {
        padding: 28px 16px;
    }
    .footer-title {
        font-size: 1.05rem;
        margin: 16px 0 8px;
    }
    .footer-subtitle {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    .copyright {
        margin-top: 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        padding-top: 48px;
        height: calc(48px + 28vh);
        max-height: calc(48px + 160px);
        min-height: calc(48px + 100px);
    }
    .main-content {
        padding: 12px 10px;
    }
    .section-title {
        font-size: 1.1rem;
    }
    .partner-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .card h4 {
        font-size: 0.75rem;
        padding: 8px 6px;
    }
    .resort-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* 모바일 세로 안전 영역 (노치·홈 인디케이터) */
@supports (padding: max(0px)) {
    .header-inner {
        padding-left: max(15px, calc(15px + env(safe-area-inset-left)));
        padding-right: max(15px, calc(15px + env(safe-area-inset-right)));
    }
    .main-content {
        padding-left: max(12px, calc(12px + env(safe-area-inset-left)));
        padding-right: max(12px, calc(12px + env(safe-area-inset-right)));
    }
    .footer {
        padding-bottom: max(28px, calc(28px + env(safe-area-inset-bottom)));
    }
}
