/* ============================================================
   원데이파파 — 공통 스타일 (네이비 + 골드 브랜드)
   ============================================================ */
:root {
  --navy: #16264a;        /* 브랜드 네이비 */
  --navy-2: #21386a;
  --navy-mist: #eef2f9;   /* 밝은 섹션 배경 */
  --gold: #f6b400;        /* 브랜드 골드 */
  --gold-deep: #e09a00;
  --gold-soft: #fff6d9;
  --paper: #f7f9fc;
  --card: #ffffff;
  --ink: #1a2436;
  --muted: #64708a;
  --line: #e3e9f2;
  --open: #23a55a;        /* 예약 가능 = 초록 */
  --open-soft: #e9f7ef;
  --closed: #e2513a;      /* 마감 = 다홍 */
  --closed-soft: #fdece8;
  --gray: #9aa4b5;

  /* admin.html 이 참조하는 이전 변수명 → 새 브랜드 값으로 매핑 */
  --pine: var(--navy);
  --pine-soft: var(--navy-2);
  --pine-mist: var(--navy-mist);
  --sun: var(--gold);
  --sun-deep: var(--gold-deep);
  --sun-soft: var(--gold-soft);
  --sky: #5a93a8;
  --danger: var(--closed);
  --ok: var(--open);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 44px -20px rgba(22, 38, 74, 0.38);
  --shadow-sm: 0 6px 18px -8px rgba(22, 38, 74, 0.25);
  --maxw: 1140px;
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --display: 'Jua', var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--card);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 800; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800;
  letter-spacing: .06em; color: var(--gold-deep); background: var(--gold-soft);
  padding: 7px 15px; border-radius: 999px;
}

/* 섹션을 '한 페이지'처럼 — 넉넉한 여백 + 스크롤 오프셋 + 교차 배경 */
.section { padding: 96px 0; scroll-margin-top: 82px; }
.section.tint { background: var(--navy-mist); }
.section.plain { background: var(--card); }
.section-head { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); color: var(--navy); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 16.5px; }
.section-num {
  display: inline-block; font-family: var(--display); font-size: 15px; color: var(--gold-deep);
  letter-spacing: .1em;
}

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none;
  border-radius: 999px; font-weight: 800; font-size: 15px; padding: 15px 28px;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 22px -8px rgba(246,180,0,.6); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-white { background: #fff; color: var(--navy); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
/* 이전 클래스 호환(admin) */
.btn-sun { background: var(--gold); color: var(--navy); }
.btn-sun:hover { background: var(--gold-deep); }
.btn-pine { background: var(--navy); color: #fff; }
.btn-pine:hover { background: var(--navy-2); }

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { height: 50px; width: auto; opacity: .92; }
.brand-name { font-family: var(--display); font-size: 24px; color: var(--navy); letter-spacing: .01em; }
.brand-name em { font-style: normal; color: var(--gold-deep); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 15.5px; color: var(--ink);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--navy-mist); color: var(--navy); }
.nav-links a.cta { background: var(--gold); color: var(--navy); margin-left: 8px; font-weight: 800; }
.nav-links a.cta:hover { background: var(--gold-deep); }
.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 25px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* 히어로 (전체화면 사진) */
.hero-full {
  position: relative; min-height: calc(100vh - 80px);
  background: #0f1d3a url('assets/hero.jpg') center center / cover no-repeat;
  background-attachment: scroll;
  display: flex; align-items: center; overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,29,58,.90) 0%, rgba(15,29,58,.66) 46%, rgba(15,29,58,.24) 100%);
}
.hero-inner { position: relative; z-index: 2; color: #fff; max-width: 660px; padding: 70px 22px; }
.hero-inner h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.14; margin: 20px 0 18px; color: #fff; text-shadow: 0 2px 22px rgba(0,0,0,.35); }
.hero-inner h1 .hl { color: var(--gold); }
.hero-sub { font-size: 18px; color: #e6edf8; max-width: 520px; margin-bottom: 30px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust b { display: block; font-family: var(--display); font-size: 27px; color: var(--gold); }
.hero-trust small { color: #c3d0e6; font-size: 13.5px; }
@media (max-width: 700px) {
  .hero-full { min-height: 88vh; background-position: 62% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(15,29,58,.55) 0%, rgba(15,29,58,.82) 100%); }
  .hero-inner { padding: 54px 22px; }
}

/* 회사소개 */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.value:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value .ic {
  width: 56px; height: 56px; border-radius: 15px; background: var(--navy-mist);
  display: grid; place-items: center; font-size: 28px; margin-bottom: 16px;
}
.value h3 { font-size: 19px; color: var(--navy); margin-bottom: 9px; }
.value p { color: var(--muted); font-size: 14.5px; }
.about-slogan {
  margin-top: 46px; background: var(--navy); border-radius: var(--radius); padding: 40px;
  display: flex; align-items: center; gap: 30px; color: #fff; flex-wrap: wrap; justify-content: center;
  text-align: center;
}
.about-slogan img { height: 132px; width: auto; background: #fff; border-radius: 16px; padding: 12px; }
.about-slogan .quote { font-family: var(--display); font-size: clamp(20px,3vw,28px); }
.about-slogan .quote em { color: var(--gold); font-style: normal; }
.about-target { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }
.chip { background: var(--card); border: 1px solid var(--line); color: var(--navy); font-weight: 700; font-size: 14px; padding: 9px 17px; border-radius: 999px; }

/* 리스트(공지/안전이야기) */
.panel-wide { max-width: 780px; margin: 0 auto; }
.item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 14px; box-shadow: var(--shadow-sm); transition: border-color .15s;
}
.item:hover { border-color: var(--gold); }
.item .meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.item .meta time { font-size: 12.5px; color: var(--muted); }
.pin { font-size: 11px; font-weight: 800; color: var(--gold-deep); background: var(--gold-soft); padding: 3px 9px; border-radius: 999px; }
.item h4 { font-size: 17px; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.item h4::after { content: '+'; color: var(--gold-deep); font-size: 22px; font-weight: 800; }
.item.open h4::after { content: '−'; }
.item p { color: var(--muted); font-size: 14.5px; white-space: pre-line; display: none; }
.item.open p { display: block; margin-top: 10px; }

/* 예약 */
.reserve { background: linear-gradient(180deg, var(--navy-mist), var(--card)); }
.reserve-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 26px; align-items: start; }
.calendar-card, .side-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-head h3 { font-family: var(--display); font-size: 23px; color: var(--navy); }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--paper); color: var(--navy); font-size: 17px; font-weight: 800; }
.cal-nav button:hover { background: var(--navy-mist); }

.cal-legend { display: flex; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink); font-weight: 600; }
.legend-box { width: 15px; height: 15px; border-radius: 5px; display: inline-block; }
.legend-box.open { background: var(--open); }
.legend-box.closed { background: var(--closed); }
.legend-box.past { background: var(--gray); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.open { background: var(--open); }
.dot.closed { background: var(--closed); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); padding: 6px 0; }
.cal-dow.sun { color: var(--closed); }
.cal-dow.sat { color: var(--navy-2); }
.cal-cell {
  aspect-ratio: 1/1; border: 1.5px solid var(--line); border-radius: 13px; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  font-size: 15px; font-weight: 800; color: var(--ink); position: relative; transition: transform .12s, box-shadow .12s, border-color .12s;
}
.cal-cell.empty { border: none; background: transparent; }
.cal-cell.past { color: var(--gray); background: var(--paper); border-color: transparent; cursor: default; }
.cal-cell.selectable { cursor: pointer; background: var(--open-soft); border-color: #bfe6cd; }
.cal-cell.selectable:hover { transform: translateY(-3px); box-shadow: 0 10px 18px -8px rgba(35,165,90,.4); border-color: var(--open); }
.cal-cell.full { background: var(--closed-soft); border-color: #f4c7bd; color: #b8432f; cursor: not-allowed; }
.cal-cell.active { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow-sm); }
.cal-cell .cell-dots { display: flex; gap: 4px; height: 9px; }
.cal-cell .full-tag { position: absolute; bottom: 6px; font-size: 10px; font-weight: 800; color: var(--closed); }
.cal-cell.active .full-tag { color: #fff; }

/* 슬롯 선택 */
.slot-picker { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 20px; }
.slot-picker .picker-date { font-weight: 800; color: var(--navy); margin-bottom: 14px; font-size: 15.5px; }
.slot-row {
  display: flex; align-items: center; gap: 13px; border: 1.5px solid var(--line);
  border-left-width: 5px; border-radius: var(--radius-sm); padding: 15px 17px; margin-bottom: 11px;
  background: var(--card); transition: border-color .12s, background .12s;
}
.slot-row.pickable { cursor: pointer; border-left-color: var(--open); }
.slot-row.pickable:hover { background: var(--open-soft); }
.slot-row.picked { border-color: var(--navy); border-left-color: var(--navy); background: var(--navy-mist); }
.slot-row.closed { border-left-color: var(--closed); background: var(--closed-soft); opacity: .85; cursor: not-allowed; }
.slot-check { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: 14px; color: #fff; background: #fff; }
.slot-row.picked .slot-check { background: var(--navy); border-color: var(--navy); }
.slot-info b { display: block; font-size: 15.5px; color: var(--ink); }
.slot-info small { color: var(--muted); font-size: 13px; }
.slot-status { margin-left: auto; font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.slot-status.open { color: var(--open); background: var(--open-soft); }
.slot-status.closed { color: var(--closed); background: #fff; }

/* 사이드 폼 */
.side-card h3 { color: var(--navy); font-size: 20px; margin-bottom: 6px; }
.side-card .hint { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.selected-list { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.selected-list li { display: flex; align-items: center; gap: 10px; background: var(--gold-soft); border-radius: 10px; padding: 11px 13px; font-size: 14px; font-weight: 700; color: var(--navy); }
.selected-list li button { margin-left: auto; border: none; background: none; color: var(--gold-deep); font-size: 19px; font-weight: 900; line-height: 1; }
.empty-note { color: var(--muted); font-size: 14px; padding: 20px; text-align: center; border: 1.5px dashed var(--line); border-radius: 12px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13.5px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.field label .req { color: var(--closed); }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; transition: border-color .12s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 76px; }
.form-error { color: var(--closed); font-size: 13px; margin: -6px 0 12px; display: none; }
.form-error.show { display: block; }

/* 완료 모달 */
.overlay { position: fixed; inset: 0; background: rgba(22,38,74,.6); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.overlay.show { display: flex; }
.modal { background: #fff; border-radius: 22px; padding: 36px 30px; max-width: 420px; width: 100%; text-align: center; box-shadow: var(--shadow); animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal .big-emoji { font-size: 52px; margin-bottom: 10px; }
.modal h3 { color: var(--navy); font-size: 22px; margin-bottom: 10px; }
.modal p { color: var(--muted); font-size: 15px; margin-bottom: 22px; white-space: pre-line; }

/* 푸터 */
.site-footer { background: var(--navy); color: #c3d0e6; padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer-brand img { height: 92px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: #9fb1cf; font-size: 14px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: #aec0dd; font-size: 14px; margin-bottom: 9px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.13); margin-top: 38px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #8497b8; }

/* ============= 상시 우측 하단 바로가기 도크 ============= */
.dock {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; flex-direction: column; gap: 11px; align-items: flex-end;
}
.dock a {
  display: flex; align-items: center; gap: 0; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow); font-size: 23px; font-weight: 800;
  justify-content: center; position: relative; transition: transform .15s, width .2s;
  overflow: hidden; white-space: nowrap;
}
.dock a:hover { transform: translateY(-3px); }
.dock a .dock-label {
  position: absolute; right: 66px; background: var(--navy); color: #fff; font-size: 13px;
  font-weight: 700; padding: 7px 13px; border-radius: 9px; opacity: 0; pointer-events: none;
  transition: opacity .15s; box-shadow: var(--shadow-sm);
}
.dock a:hover .dock-label { opacity: 1; }
.dock .d-naver { color: #03c75a; }
.dock .d-insta { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.dock .d-kakao { background: #fee500; color: #3c1e1e; }
.dock .d-reserve { background: var(--gold); color: var(--navy); font-size: 25px; }
.dock .d-reserve .dock-label { background: var(--gold-deep); }

/* ============= 관리자 ============= */
.admin-body { background: var(--navy-mist); }
.admin-top { background: var(--navy); color: #fff; padding: 16px 0; }
.admin-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-top .brand-name { color: #fff; }
.admin-top .brand-name em { color: var(--gold); }
.admin-badge { font-size: 13px; background: rgba(255,255,255,.16); padding: 6px 14px; border-radius: 999px; font-weight: 700; }
.gate { max-width: 390px; margin: 80px auto; background: #fff; border-radius: 22px; padding: 40px 32px; box-shadow: var(--shadow); text-align: center; }
.gate img.gate-logo { height: 84px; width: auto; margin: 0 auto 14px; }
.gate h2 { color: var(--navy); font-size: 22px; margin-bottom: 8px; }
.gate p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.admin-tabs { display: flex; gap: 8px; margin: 26px 0 20px; flex-wrap: wrap; }
.admin-tabs button { border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 700; padding: 10px 20px; border-radius: 999px; font-size: 14.5px; }
.admin-tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font-family: var(--display); font-size: 30px; color: var(--navy); }
.stat small { color: var(--muted); font-size: 13px; }
.stat.pending b { color: var(--gold-deep); }
.stat.approved b { color: var(--open); }
.res-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.res-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.res-top h4 { font-size: 17px; color: var(--navy); }
.res-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 12px; font-size: 14px; color: var(--ink); }
.res-meta span b { color: var(--muted); font-weight: 700; margin-right: 6px; font-size: 13px; }
.res-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.res-slot { background: var(--navy-mist); color: var(--navy); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 8px; }
.status-tag { font-size: 12.5px; font-weight: 800; padding: 5px 13px; border-radius: 999px; }
.status-tag.pending { background: var(--gold-soft); color: var(--gold-deep); }
.status-tag.approved { background: var(--open-soft); color: var(--open); }
.status-tag.rejected { background: var(--closed-soft); color: var(--closed); }
.res-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.res-memo { width: 100%; margin-top: 12px; }
.res-memo input { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; font-family: inherit; font-size: 14px; }
.admin-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.admin-list-item { background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; }
.admin-list-item .meta { display:flex; justify-content: space-between; align-items:center; gap: 10px; }
.admin-list-item h4 { font-size: 15px; color: var(--navy); }
.admin-list-item p { font-size: 13.5px; color: var(--muted); white-space: pre-line; margin-top: 6px; }
.admin-list-item button.del { border:none; background:none; color: var(--closed); font-weight:800; font-size:13px; }
.notice-banner { background: var(--gold-soft); border: 1px solid #f2d79a; color: #7a5406; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13.5px; margin-bottom: 20px; }

/* ============= 반응형 ============= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .value-grid { grid-template-columns: 1fr; }
  .reserve-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .admin-editor { grid-template-columns: 1fr; }
  .about-slogan { flex-direction: column; }

  .nav-links {
    position: fixed; top: 80px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 2px; padding: 12px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 15px; border-radius: 12px; }
  /* 햄버거 안에서는 예약을 특별히 표시하지 않음 */
  .nav-links a.cta { background: transparent; color: var(--ink); margin-left: 0; font-weight: 700; text-align: left; }
  .nav-links a.cta:hover { background: var(--navy-mist); color: var(--navy); }
  .nav-toggle { display: block; }

  .dock { right: 14px; bottom: 14px; gap: 9px; }
  .dock a { width: 50px; height: 50px; font-size: 21px; }
  .dock a .dock-label { display: none; }
}
@media (max-width: 520px) {
  .section { padding: 66px 0; }
  .hero-trust { gap: 20px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .cal-cell { font-size: 13px; border-radius: 11px; }
  .brand-name { font-size: 21px; }
  .brand-logo { height: 44px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* 슬로건 배지 (이미지 대체) */
.slogan-badge { width: 104px; height: 104px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-size: 52px; flex: none; }


/* ===== 지사 문의 폼 ===== */
.field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; transition: border-color .12s;
}
.field select:focus { outline: none; border-color: var(--gold); }
.field input[type="file"] { padding: 10px 12px; background: var(--paper); cursor: pointer; }
.region-row { display: flex; gap: 10px; }
.region-row select { flex: 1; min-width: 0; }
.region-row input { flex: 1.15; min-width: 0; }
@media (max-width: 560px) { .region-row { flex-direction: column; } }


/* ===== 예약 팝업 ===== */
.reserve-overlay { position: fixed; inset: 0; background: rgba(22,38,74,.62); backdrop-filter: blur(3px); display: none; z-index: 90; overflow-y: auto; padding: 30px 16px; }
.reserve-overlay.show { display: block; }
.reserve-modal { position: relative; background: #fff; border-radius: 24px; max-width: 1060px; margin: 0 auto; padding: 42px 34px 34px; box-shadow: var(--shadow); animation: pop .25s ease; }
.reserve-close { position: absolute; top: 16px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--navy-mist); color: var(--navy); font-size: 24px; font-weight: 800; cursor: pointer; z-index: 2; line-height: 1; }
.reserve-close:hover { background: var(--gold); }
.reserve-modal-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.reserve-modal-head h2 { font-size: clamp(24px, 3.4vw, 34px); color: var(--navy); margin: 12px 0 10px; }
.reserve-modal-head p { color: var(--muted); font-size: 15px; word-break: keep-all; }
@media (max-width: 720px) { .reserve-modal { padding: 34px 16px 22px; border-radius: 18px; } .reserve-overlay { padding: 16px 10px; } }

/* ===== 사진 자리 표시 ===== */
.photo-slot { border: 2px dashed #b9c6dd; background: var(--navy-mist); border-radius: 18px; min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #5a6c8c; text-align: center; padding: 30px 20px; margin: 30px auto 0; word-break: keep-all; }
.photo-slot .ph-ic { font-size: 34px; }
.photo-slot b { color: var(--navy); font-size: 16px; }
.photo-slot small { font-size: 13.5px; }

/* ===== 절차 타임라인 ===== */
.timeline { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 20px; padding: 14px 28px; box-shadow: var(--shadow); }
.tl-step { display: flex; align-items: flex-start; gap: 18px; padding: 19px 0; border-bottom: 1px dashed var(--line); }
.tl-step:last-child { border-bottom: none; }
.tl-num { flex: 0 0 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--display); font-size: 19px; display: flex; align-items: center; justify-content: center; }
.tl-step h4 { color: var(--navy); font-size: 17px; margin: 3px 0 5px; }
.tl-step p { color: var(--muted); font-size: 14.5px; word-break: keep-all; }

/* ===== 서류 카드 ===== */
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 900px; margin: 0 auto; }
.doc-card { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 24px 16px; text-align: center; }
.doc-card .ic { font-size: 27px; margin-bottom: 9px; }
.doc-card b { color: var(--navy); font-size: 15px; display: block; margin-bottom: 6px; }
.doc-card p { color: var(--muted); font-size: 13px; word-break: keep-all; }
@media (max-width: 860px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== CTA 밴드 ===== */
.cta-band { background: var(--navy); border-radius: 26px; padding: 52px 30px; text-align: center; color: #fff; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 10px; }
.cta-band p { color: #c3d0e6; margin-bottom: 26px; word-break: keep-all; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== 소식 페이지 ===== */
.news-filter { display: flex; gap: 10px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.news-filter button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 22px; font-size: 14.5px; font-weight: 800; font-family: inherit; color: var(--muted); cursor: pointer; transition: all .12s; }
.news-filter button:hover { border-color: var(--navy); color: var(--navy); }
.news-filter button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.type-badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 999px; }
.type-badge.notice { background: var(--gold-soft); color: var(--gold-deep); }
.type-badge.safety { background: #e5f3ea; color: #1f7a46; }


/* ===== 한국어 줄바꿈 보정: 단어 중간에서 끊기지 않게 ===== */
h1, h2, h3, h4, p, li, .quote, .chip { word-break: keep-all; }


/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; transition: border-color .15s; }
.faq-item.open { border-color: var(--gold); }
.faq-q { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 19px 22px; font-family: inherit; font-size: 16.5px; font-weight: 800; color: var(--navy); word-break: keep-all; }
.faq-q:hover { background: var(--navy-mist); }
.faq-mark { font-family: var(--display); font-size: 19px; color: var(--navy); flex: 0 0 auto; }
.faq-mark.gold { color: var(--gold-deep); }
.faq-arrow { margin-left: auto; font-size: 20px; color: var(--muted); transition: transform .18s; flex: 0 0 auto; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 4px 22px 22px 22px; gap: 12px; }
.faq-item.open .faq-a { display: flex; align-items: flex-start; }
.faq-a p { color: var(--muted); font-size: 15px; line-height: 1.75; word-break: keep-all; }
.faq-a p b { color: var(--navy); }
.faq-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.faq-links a { display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 800; color: var(--navy); text-decoration: none; transition: all .12s; }
.faq-links a:hover { border-color: var(--gold); background: var(--gold-soft); }


/* ===== 마감 구분(별도 문의) · 공휴일 · 기간 설정 ===== */
.dot.inquiry { background: var(--gold); }
.legend-box.inquiry { background: var(--gold); }
.cal-cell .full-tag.inquiry { color: var(--gold-deep); }
.slot-row.inquiry { cursor: pointer; border-left-color: var(--gold); background: var(--gold-soft); }
.slot-row.inquiry:hover { filter: brightness(.98); }
.slot-status.inquiry { color: var(--gold-deep); font-weight: 800; }
.cal-cell .hol-name { display: block; font-size: 8.5px; line-height: 1.1; font-weight: 800; color: #d64533; margin-top: 1px; letter-spacing: -0.02em; }
.cal-cell.holiday > span:first-child, .cal-cell.sun > span:first-child { color: #d64533; }
.cal-cell.sat > span:first-child { color: #2b6cb0; }
.cal-cell.past .hol-name, .cal-cell.past > span:first-child { color: var(--gray); }
.cal-cell.active > span:first-child, .cal-cell.active .hol-name { color: #fff; }
.kind-pick { display: flex; gap: 8px; margin-bottom: 6px; }
.kind-pick button { flex: 1; padding: 12px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; font-family: inherit; font-size: 14.5px; cursor: pointer; color: var(--muted); transition: all .12s; }
.kind-pick button.active[data-kind="closed"] { background: #fdecea; border-color: var(--closed); color: var(--closed); }
.kind-pick button.active[data-kind="inquiry"] { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-deep); }
.range-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.range-slots { display: flex; gap: 16px; margin: 4px 0 14px; font-size: 14.5px; font-weight: 700; color: var(--navy); }
.range-slots label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.block-layout { display: grid; grid-template-columns: 380px 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .block-layout { grid-template-columns: 1fr; } }


/* ===== 일정 차단: 달력 범위 선택 ===== */
.cal-cell.sel { background: var(--navy-mist); box-shadow: inset 0 0 0 2px var(--navy); border-color: var(--navy); }
.cal-cell.sel > span:first-child { color: var(--navy); font-weight: 900; }
.sel-summary { background: var(--paper); border: 1.5px dashed var(--line); border-radius: 12px; padding: 13px 15px; font-size: 14.5px; color: var(--navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sel-summary .sel-empty { color: var(--muted); font-weight: 700; }
.sel-summary .sel-days { color: var(--muted); font-weight: 800; }
.sel-summary .sel-reset { margin-left: auto; border: none; background: none; color: var(--closed); font-weight: 800; font-size: 12.5px; cursor: pointer; font-family: inherit; text-decoration: underline; }


/* ===== 안전교육 마감 · 요일 휴무 · 겹침 방지 ===== */
.dot.training { background: #5b6fd8; }
.legend-box.training { background: #5b6fd8; }
.cal-cell .full-tag.training { color: #4257c4; }
.slot-row.training { border-left-color: #5b6fd8; background: #eef1fc; }
.slot-status.training { color: #4257c4; font-weight: 800; }
.cal-cell.offday { background: var(--paper); border-color: transparent; color: #9aa5b5; cursor: default; }
.cal-cell.offday > span:first-child { color: #9aa5b5 !important; }
.cal-cell .off-label { font-size: 9.5px; font-weight: 800; color: #9aa5b5; line-height: 1; }
.cal-cell { overflow: hidden; }
.cal-cell .hol-name { white-space: nowrap; overflow: hidden; max-width: 96%; }
.wk-pick { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 10px; }
.wk-pick button { width: 40px; height: 40px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; font-family: inherit; font-size: 14px; cursor: pointer; color: var(--navy); transition: all .12s; }
.wk-pick button.off { background: #f1f3f7; border-color: #d6dbe4; color: #9aa5b5; text-decoration: line-through; }

.cal-cell.offwk { background: #f1f3f7; border-color: #e0e5ec; }
.cal-cell.offwk > span:first-child { color: #9aa5b5 !important; }


/* ===== 달력 글자 겹침 방지 (마감 표식을 흐름 배치로) ===== */
.cal-cell .full-tag { position: static; bottom: auto; line-height: 1; }
@media (max-width: 560px) {
  .cal-cell { gap: 2px; }
  .cal-cell .hol-name { font-size: 7.5px; }
  .cal-cell .full-tag { font-size: 9px; }
  .cal-cell .off-label { font-size: 8.5px; }
  .cal-cell .cell-dots { height: 7px; }
  .cal-cell .cell-dots .dot { width: 7px; height: 7px; }
}


/* 셀 내부 요소가 찌그러져 사라지지 않게 고정 */
.cal-cell > * { flex-shrink: 0; }
.cal-cell > span:first-child { line-height: 1.15; }


/* ===== 예약 불가 유형별 칸 색상 ===== */
.cal-cell.full { cursor: pointer; }
.cal-cell.fclosed { background: var(--closed-soft); border-color: #f4c7bd; color: #b8432f; }
.cal-cell.ftrain { background: #eef1fc; border-color: #c9d3f4; color: #4257c4; }
.cal-cell.ftrain .full-tag.training { color: #4257c4; }
.cal-cell.finq { background: var(--gold-soft); border-color: #ecd79e; color: var(--gold-deep); }
.cal-cell.finq .full-tag.inquiry { color: var(--gold-deep); }
.cal-cell.ftrain:hover, .cal-cell.finq:hover, .cal-cell.fclosed:hover { filter: brightness(.97); }
.kind-pick button { font-size: 13px; padding: 12px 4px; }
