/* ============================================================
   happyscience.css
   해피사이언스축제 공통 스타일
   디자인 테마: 흰색 베이스 (참고: scipia/happyScienceDay)
   ============================================================ */

/* ---------- CSS 변수 (색상/폰트 한 곳에서 관리) ---------- */
:root {
    --color-bg:        #ffffff;   /* 메인 배경 (화이트) */
    --color-surface:   #f7f8fa;   /* 카드/섹션 배경 (연회색) */
    --color-border:    #e0e0e0;   /* 테두리 */

    --color-primary:   #2c6fbb;   /* 파랑 (포인트) */
    --color-secondary: #e74c3c;   /* 빨강 (강조/필수) */
    --color-accent:    #f39c12;   /* 주황 (경고/별) */
    --color-green:     #27ae60;   /* 초록 (성공) */

    --color-text:      #333333;   /* 본문 텍스트 */
    --color-muted:     #666666;   /* 보조 텍스트 */
    --color-light:     #999999;   /* 더 연한 텍스트 */

    --font-title:  'Noto Sans KR', sans-serif;
    --font-body:   'Noto Sans KR', sans-serif;

    --nav-height: 64px;
    --radius: 6px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ---------- 기본 초기화 ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

html.menu-open {
    overflow: hidden !important;
}
html.menu-open body {
    position: fixed;
    left: 0;
    right: 0;
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: #1a4f8a; }

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

ul, ol { list-style: none; }

/* ---------- 상단 네비게이션 ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: #111111;
    border-bottom: 1px solid #333333;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav__logo-img {
    height: 36px;
    width: auto;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.nav__item {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius);
    transition: all 0.2s;
    white-space: nowrap;
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
}

.nav__link .arrow {
    font-size: 0.55rem;
    transition: transform 0.2s;
    color: rgba(255, 255, 255, 0.5);
}

.nav__item:hover .arrow {
    transform: rotate(180deg);
}

/* 드롭다운 */
.nav__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    padding-top: 0;
    z-index: 100;
    background: #222222;
    border: 1px solid #444444;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.nav__item:hover .nav__dropdown {
    display: block;
}

.nav__dropdown li a {
    display: block;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.2s;
    border-bottom: 1px solid #333333;
}

.nav__dropdown li:last-child a {
    border-bottom: none;
}

.nav__dropdown li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding-left: 22px;
}

/* AI직업스케치 이미지 버튼 (오른쪽 끝, 테두리 없음) */
.nav__btn-img {
    height: 36px;
    width: auto;
    display: block;
}

.nav__btn-ai {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.nav__btn-ai:hover {
    opacity: 0.7;
}

.nav__btn-img--logo {
    height: 36px;
    width: auto;
}

/* ---------- 메인 히어로 섹션 ---------- */
.main-hero {
    position: relative;
    width: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
}

.main-hero__img {
    width: 100%;
    height: auto;
    display: block;
}

.main-hero__cta {
    position: relative;
    z-index: 2;
    padding-bottom: clamp(40px, 5vw, 60px);
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
}

/* ---------- 메인 SNS 버튼 (배경 위) ---------- */
.main-sns {
    position: absolute;
    right: 40px;
    bottom: 160px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.main-sns a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.2s, opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.main-sns a:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.main-sns a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- 메인 콘텐츠 ---------- */
.main-content {
    margin-top: var(--nav-height);
}

/* ---------- 히어로 배너 ---------- */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero img {
    width: 100%;
    display: block;
}

.hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.hero__subtitle {
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
}

/* ---------- 페이지 헤더 (서브 페이지) ---------- */
.page-header {
    padding: 48px 0 32px;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 48px;
}

.page-header__breadcrumb {
    font-size: 0.8rem;
    color: var(--color-light);
    margin-bottom: 12px;
}

.page-header__breadcrumb span {
    margin: 0 6px;
    color: #ccc;
}

.page-header__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
}

.page-header__title em {
    color: var(--color-primary);
    font-style: normal;
}

/* ---------- 컨테이너 ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 64px 0;
}

/* ---------- 카드 ---------- */
.card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(44, 111, 187, 0.12);
    transform: translateY(-2px);
}

.card__img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card__body {
    padding: 20px;
}

.card__tag {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(44, 111, 187, 0.08);
    border: 1px solid var(--color-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.card__text {
    font-size: 0.875rem;
    color: var(--color-muted);
}

/* ---------- 그리드 ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 버튼 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--color-primary);
    color: #ffffff;
}

.btn--primary:hover {
    background: #1a4f8a;
    color: #ffffff;
    transform: translateY(-2px);
}

/* 서브페이지용 둥근 예약 버튼 (PPT 스타일) */
.btn--reserve {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
    letter-spacing: 0.02em;
}

.btn--reserve:hover {
    background: linear-gradient(135deg, #0096c7, #005f8a);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn--outline:hover {
    background: rgba(44, 111, 187, 0.06);
    color: var(--color-primary);
}

/* ---------- 배지 / 태그 ---------- */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge--primary { background: var(--color-primary); color: #fff; }
.badge--secondary { background: var(--color-secondary); color: #fff; }
.badge--accent { background: var(--color-accent); color: #fff; }
.badge { margin-bottom: 6px; }

/* ---------- 테이블 ---------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

th {
    background: var(--color-surface);
    color: var(--color-primary);
    font-weight: 700;
    white-space: nowrap;
}

td { color: var(--color-text); }

tbody tr:last-child td,
tbody tr:last-child th { border-bottom: none; }
tr:hover td { background: #f9fbfd; }

/* ---------- 정보 박스 ---------- */
.info-box {
    background: var(--color-surface);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin: 24px 0;
}

.info-box--warning {
    border-color: var(--color-accent);
    background: #fffcf0;
}

.info-box__title {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.info-box--warning .info-box__title {
    color: var(--color-accent);
}

/* ---------- 섹션 제목 ---------- */
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* ---------- 소제목 (서브 타이틀) ---------- */
.sub-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- 인트로 메시지 ---------- */
.intro-message {
    text-align: center;
    margin-bottom: 40px;
}

.intro-message__slogan {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.intro-message__text {
    font-size: 1rem;
    color: var(--color-muted);
    line-height: 1.8;
}

/* ---------- 맵 이미지 ---------- */
.map-img {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

/* ---------- 공지사항 목록 ---------- */
.notice-list li {
    border-bottom: 1px solid var(--color-border);
}

.notice-list a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    color: var(--color-text);
    transition: all 0.2s;
}

.notice-list a:hover {
    color: var(--color-primary);
    padding-left: 8px;
}

.notice-list .num {
    width: 40px;
    text-align: center;
    color: var(--color-light);
    font-size: 0.875rem;
}

.notice-list .title { flex: 1; }

.notice-list .date {
    color: var(--color-light);
    font-size: 0.875rem;
    white-space: nowrap;
}

/* ---------- FAQ 아코디언 ---------- */
.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-q {
    width: 100%;
    text-align: left;
    padding: 18px 24px;
    background: #ffffff;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    transition: background 0.2s;
}

.faq-q:hover { background: #f5f8fc; }

.faq-q .q-mark {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 900;
    flex-shrink: 0;
}

.faq-q .faq-arrow {
    margin-left: auto;
    color: var(--color-light);
    transition: transform 0.3s;
}

.faq-item.is-open .faq-arrow {
    transform: rotate(180deg);
}

.faq-a {
    display: none;
    padding: 20px 24px 20px 60px;
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.8;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.faq-item.is-open .faq-a {
    display: block;
}

/* ---------- 푸터 ---------- */
.footer {
    background: #f5f5f5;
    border-top: 1px solid var(--color-border);
    padding: 24px 0 16px;
    margin-top: 0;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    align-items: flex-start;
}

.footer__info p {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 4px;
}

.footer__sns {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer__sns a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    transition: opacity 0.2s;
}

.footer__sns a:hover {
    opacity: 0.7;
}

.footer__sns a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.footer__copy {
    font-size: 0.75rem;
    color: var(--color-light);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ---------- AI직업스케치 네비게이션 ---------- */
.nav__logo--back {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.nav__logo--back:hover {
    opacity: 0.7;
}

.nav__ai-title {
    display: flex;
    align-items: center;
}

.nav__ai-title img {
    height: 32px;
    width: auto;
}

/* ---------- 예약하기 카드 호버 오버레이 ---------- */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: var(--radius);
}

.card:hover .card-overlay {
    opacity: 1;
}

/* ---------- 플레이스홀더 (지도, 배치도) ---------- */
.placeholder-box {
    width: 100%;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-light);
    font-size: 0.95rem;
    text-align: center;
}

/* ---------- 갤러리 ---------- */
.gallery-page {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    overflow: hidden;
}

/* 초성 필터 바 */
.consonant-bar {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 24px 0 32px;
    flex-wrap: wrap;
}

.consonant-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.consonant-btn:hover,
.consonant-btn.is-active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

/* 캐러셀 */
.gallery-carousel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 60px;
}

.gallery-track {
    display: flex;
    gap: 32px;
    transition: transform 0.4s ease;
    overflow: hidden;
}

.gallery-slide {
    flex: 0 0 calc(33.333% - 22px);
    min-width: 280px;
}

.gallery-frame {
    background: #fff;
    padding: 12px;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    margin-bottom: 16px;
}

.gallery-frame img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

.gallery-frame .placeholder-img {
    width: 100%;
    aspect-ratio: 3/4;
    background: #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.gallery-info {
    text-align: center;
}

.gallery-info .name {
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.gallery-info .desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    line-height: 1.5;
}

.gallery-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.gallery-actions .btn {
    padding: 6px 16px;
    font-size: 0.8rem;
}

/* 갤러리 화살표 */
.gallery-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.gallery-arrow:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.gallery-arrow--left { left: 0; }
.gallery-arrow--right { right: 0; }

/* ---------- 폼 입력 필드 ---------- */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
textarea {
    background: #ffffff !important;
    border: 1px solid var(--color-border) !important;
    color: var(--color-text) !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(44, 111, 187, 0.1);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--color-light) !important;
}

/* ---------- 문의하기 2칸 레이아웃 ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* ---------- 햄버거 버튼 ---------- */
.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    margin-left: auto;
    flex-shrink: 0;
}

.nav__hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* 햄버거 → X 애니메이션 */
.nav__hamburger.is-open .nav__hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.is-open .nav__hamburger-line:nth-child(2) {
    opacity: 0;
}
.nav__hamburger.is-open .nav__hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 모바일 메뉴 오버레이 배경 */
.nav__overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.nav__overlay.is-visible { display: block; }

/* ---------- 반응형 ---------- */

/* ── 1024px: 태블릿 가로 ── */
@media (max-width: 1024px) {
    .nav__link { padding: 8px 14px; font-size: 0.9rem; }
    .nav__inner { gap: 16px; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { gap: 32px; }
    .gallery-slide {
        flex: 0 0 calc(50% - 16px);
        min-width: 240px;
    }
}

/* ── 768px: 태블릿 세로 / 모바일 ── */
@media (max-width: 768px) {
    :root { --nav-height: 56px; }

    /* 메인 히어로: 이미지 비율 유지 */
    .main-hero {
        min-height: auto;
    }
    .main-hero__img {
        position: relative;
        height: auto;
        object-fit: contain;
    }
    .main-hero__cta {
        position: relative;
        z-index: auto;
        padding: 20px 16px;
        padding-bottom: 20px;
    }

    /* 햄버거 버튼 표시 */
    .nav__hamburger { display: flex; }

    /* 모바일 메뉴 드로어 */
    .nav__menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -220px;
        width: 220px;
        height: 100vh;
        background: #111111;
        padding: 72px 0 24px;
        gap: 0;
        z-index: 1050;
        overflow-y: auto;
        transition: right 0.3s ease;
        box-shadow: -4px 0 16px rgba(0,0,0,0.3);
    }

    .nav__menu.is-open {
        right: 0;
    }

    .nav__item {
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: 1px solid #333333;
        width: 100%;
    }

    .nav__menu {
        align-items: stretch;
    }

    .nav__link {
        padding: 14px 20px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    /* 모바일 드롭다운: 항상 펼침 */
    .nav__dropdown {
        position: static;
        background: #1a1a1a;
        border: none;
        border-radius: 0;
        box-shadow: none;
        min-width: unset;
        display: block !important;
    }

    .nav__dropdown li a {
        padding: 10px 20px 10px 36px;
        border-bottom: 1px solid #2a2a2a;
        text-align: left;
    }

    .nav__dropdown li a:hover { padding-left: 40px; }

    .nav__link .arrow {
        margin-left: auto;
        transition: transform 0.3s;
    }

    .nav__link .arrow {
        transform: rotate(180deg);
    }

    /* 네비 이미지 모바일 축소 */
    .nav__logo-img {
        height: auto;
        max-height: 28px;
        max-width: 100px;
    }

    .nav__btn-img {
        height: auto;
        max-height: 28px;
        max-width: 140px;
    }

    /* AI 버튼 → 햄버거 바로 왼쪽 */
    .nav__btn-ai {
        margin-left: auto;
        min-width: 0;
        order: 9;
    }

    /* 햄버거를 맨 오른쪽으로 */
    .nav__hamburger {
        order: 10;
        margin-left: 8px;
    }

    /* Hero */
    .hero__title { font-size: 1.5rem; }
    .hero__overlay { padding: 24px; }
    .hero__subtitle { font-size: 0.85rem; }

    /* 그리드 */
    .grid--2,
    .grid--3,
    .grid--4 { grid-template-columns: 1fr; }

    /* 문의 레이아웃 */
    .contact-layout { grid-template-columns: 1fr; gap: 24px; }

    /* 페이지 헤더 */
    .page-header { padding: 32px 0 24px; margin-bottom: 32px; }
    .page-header__title { font-size: 1.4rem; }

    /* 갤러리 */
    .gallery-slide {
        flex: 0 0 calc(50% - 16px);
        min-width: 200px;
    }
    .gallery-carousel { padding: 0 48px; }
    .gallery-track { gap: 24px; }

    /* SNS 플로팅 버튼 → 우하단 고정 */
    .main-sns {
        position: fixed;
        right: 16px;
        bottom: 16px;
        flex-direction: row;
        gap: 8px;
        z-index: 900;
    }
    .main-sns a {
        width: 40px;
        height: 40px;
    }

    /* 테이블 */
    th, td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    /* FAQ */
    .faq-q { padding: 14px 16px; font-size: 0.9rem; }
    .faq-a { padding: 16px 16px 16px 44px; font-size: 0.85rem; }

    /* Footer */
    .footer {
        padding: 16px 0 10px;
    }
    .footer__inner {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        text-align: left;
    }
    .footer__info p {
        margin-bottom: 2px;
        line-height: 1.4;
    }
    .footer__sns { justify-content: flex-start; }
    .footer__copy {
        margin-top: 10px;
        padding-top: 8px;
        text-align: center;
    }
}

/* ── 480px: 소형 모바일 ── */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 40px 0; }

    .hero__title { font-size: 1.25rem; }
    .hero__overlay { padding: 16px; }
    .hero__subtitle { font-size: 0.75rem; margin-bottom: 4px; }

    .page-header__title { font-size: 1.2rem; }

    .section-title { font-size: 1.2rem; gap: 8px; }
    .section-title::before { height: 20px; }

    .card__body { padding: 16px; }
    .card__title { font-size: 1rem; }
    .card__text { font-size: 0.8rem; }

    .gallery-slide {
        flex: 0 0 100%;
        min-width: unset;
    }
    .gallery-carousel { padding: 0 40px; }
    .gallery-arrow { width: 36px; height: 36px; font-size: 1rem; }
    .gallery-track { gap: 16px; }

    .btn { padding: 10px 20px; font-size: 0.85rem; }
    .btn--reserve { padding: 12px 28px; font-size: 0.9rem; }

    .info-box { padding: 16px; }

    .consonant-btn { width: 32px; height: 32px; font-size: 0.75rem; }
    .consonant-bar { gap: 4px; padding: 16px 0 24px; }

    /* 폼 입력 터치 최적화 */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: 16px !important;   /* iOS 줌 방지 */
        min-height: 44px;
    }

    .footer { padding: 12px 0 8px; }
    .footer__inner { gap: 8px; }
    .footer__info p { font-size: 0.7rem; margin-bottom: 1px; line-height: 1.3; }
    .footer__copy { font-size: 0.65rem; margin-top: 6px; padding-top: 6px; }
}

/* ── 375px: 초소형 모바일 ── */
@media (max-width: 375px) {
    .container { padding: 0 12px; }
    .nav__inner { padding: 0 12px; }
    .nav__logo-img { max-height: 24px; max-width: 80px; }
    .nav__btn-img { max-height: 24px; max-width: 110px; }

    .hero__title { font-size: 1.1rem; }
    .hero__overlay { padding: 12px; }

    .gallery-carousel { padding: 0 32px; }
    .gallery-arrow { width: 28px; height: 28px; font-size: 0.85rem; }
}
