/* layout.css — 초기화 · 디자인 변수 · 공통 틀(헤더 · 전체메뉴 · 서브 비주얼 · 2뎁스 탭 · 3뎁스 탭 · 푸터 · 떠 있는 버튼) · 공통 부품 · 모션
 * 261116 서해안청소년수련원 — 메인 시안 designfrog/seohaean(원본 _작업/seohaean_시안_261116/assets: kit.css + style.css + hover-ripple · drag-marquee · pixel-reveal)
 *   + 사이트 추가분(서브 화면 · 새 메인 섹션)을 한 파일로 모아 _tools/split_css.js 로 layout · contents · front 에 나눔
 *   시안 전용(안내 띠 · 달라진 점 · 조감도 핀 지도 · 시안 폼 · 그래프 등)은 --drop 으로 뺐다
 * 색: --c1 빨강(포인트 하나) · --blue «서해안» 파랑 · --dark 푸터. 키트 화면견본 · skins.css 가 쓰는 --navy(강조) = --c1 빨강, --sub · --bg 도 여기서
 * 글자: PC 최소 16px · 휴대폰(≤768px) 최소 14px (로고 글자 «재단법인» · 영문만 예외), 크기 단계는 type.css 가 마지막에 덮음
 * ★CSS 를 고치면 common/include/init.php 의 ASSET_VER 를 올린다 */
/* @@kit.css (designfrog MVP 키트 공통 부품) */
/* MVP 시작 키트 — 공통 부품 CSS (261028, 명크린 시안에서 검증한 것)
   사이트 디자인은 style.css 에. 이 파일은 색 변수만 바꿔 쓰고 되도록 고치지 않는다.
   글자 최소 16px · 본문 18px, 모서리 작게(4px) — 알약 · 그라데이션 글자 · 둥근 카드 남발 금지(«AI 같다») */
:root {
  /* ▼ 사이트마다 바꿀 색 (로고 색에서) */
  --c1: #0035a0;      /* 주색 */
  --c1-d: #00297d;    /* 주색 진하게 */
  --c2: #2fa8ff;      /* 보조색 */
  --c3: #13c2a3;      /* 포인트 (그래프 세 번째 등) */
  --navy: #0b1f4d;    /* 푸터 · 어두운 면 */
  /* ▲ */
  --ink: #0f1b2d; --ink2: #3b4a60; --mute: #64728a; --line: #dde4ee;
  --bg2: #f4f7fb; --red: #e5383b;
  --r: 4px; --bar: 40px; --hd: 80px; --quick-h: 80px;
  --pad: clamp(20px, 5vw, 64px); --sec: clamp(88px, 10vw, 140px);
  --ease: cubic-bezier(.2,.7,.2,1); --pop: cubic-bezier(.34,1.56,.64,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + var(--hd) + 16px); scrollbar-gutter: stable; }   /* 261118 전체 메뉴를 열면 body.is-menu(overflow:hidden)로 세로 스크롤바가 사라져 화면이 옆으로 튀던 것 — 스크롤바 자리를 늘 남겨 둠 */
body { margin: 0; background: #fff; color: var(--ink); font: 400 18px/1.75 "Pretendard Variable", Pretendard, system-ui, sans-serif; letter-spacing: -.01em; word-break: keep-all; overflow-x: hidden; font-size-adjust: from-font; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, .title { text-wrap: balance; margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
:focus-visible { outline: 2px solid var(--c2); outline-offset: 3px; }
.title { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.25; font-weight: 800; letter-spacing: -.04em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: var(--r); font-size: 17px; font-weight: 700; white-space: nowrap; transition: background .3s, color .3s; }
.btn .ic { width: 18px; height: 18px; }
.btn--main { background: var(--c1); color: #fff; }
.btn--main:hover { background: var(--c1-d); }
.btn--lg { height: 60px; padding: 0 32px; font-size: 18px; }
.more { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 2px solid var(--ink); font-size: 16px; font-weight: 700; white-space: nowrap; transition: color .3s, border-color .3s; }
.more:hover { color: var(--c1); border-color: var(--c1); }
.more .ic { width: 16px; height: 16px; }
/* ---------- 헤더 + 시안 안내 띠 ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 100; transition: transform .45s var(--ease); }
.hd.is-hide { transform: translateY(-100%); }
.hd__in { display: flex; align-items: center; gap: 28px; height: var(--hd); padding: 0 var(--pad); background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .35s; }
.hd.is-solid .hd__in { box-shadow: 0 6px 24px rgba(15,27,45,.08); }
.gnb { display: flex; gap: clamp(14px, 2vw, 32px); margin-left: auto; font-size: 17px; font-weight: 700; }
.gnb a { position: relative; padding: 8px 0; color: var(--ink2); transition: color .3s; }
.gnb a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--c1); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.gnb a:hover, .gnb a.is-on { color: var(--c1); }
.gnb a:hover::after, .gnb a.is-on::after { transform: scaleX(1); }
.hd__tel { display: flex; align-items: center; gap: 8px; color: var(--c1); white-space: nowrap; }
.hd__tel .ic { width: 22px; height: 22px; }
.hd__tel span { font-size: 16px; color: var(--mute); }
.hd__tel b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.hd__menu { display: none; width: 44px; height: 44px; place-items: center; margin-left: auto; color: var(--ink); }
.hd__menu .ic { width: 26px; height: 26px; }
/* 모바일 메뉴 (<dialog>) */
dialog.mnav { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: var(--ink); }
dialog.mnav::backdrop { background: transparent; }
.mnav__in { display: flex; flex-direction: column; height: 100%; padding: calc(var(--bar) + 16px) 24px 32px; }
.mnav__x { align-self: flex-end; display: grid; place-items: center; width: 48px; height: 48px; }
.mnav__x .ic { width: 28px; height: 28px; }
.mnav nav { display: grid; margin: 16px 0 auto; }
.mnav nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 700; }
.mnav .btn { margin-top: 24px; height: 60px; }
/* ---------- 푸터 (하단 고정 바만큼의 여백은 푸터 안에서 — body 에 padding 주면 흰 띠 생김) ---------- */
.ft { padding: 40px 0 calc(28px + var(--dock-h, 0px)); background: var(--dark); color: rgba(255,255,255,.7); font-size: 16px; }
.ft__in { display: grid; grid-template-columns: auto 1fr; column-gap: 48px; row-gap: 6px; }
.ft__logo { grid-row: span 3; width: auto; height: 40px; }
.ft__info { margin: 0; }
.ft__info i { display: inline-block; width: 1px; height: 12px; margin: 0 10px; background: rgba(255,255,255,.25); }
.ft__info a { text-decoration: underline; text-underline-offset: 3px; }
.ft__copy { margin: 0; }
.ft__prix { margin: 0; color: rgba(255,255,255,.45); }
.totop { position: fixed; right: 24px; bottom: calc(var(--quick-h) + 20px); z-index: 80; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r); background: #fff; color: var(--c1); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.1); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s; }
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
/* ---------- 등장 모션 (화면에 들어오면 .is-in, 아래로 벗어나면 리셋 → 다시 재생) ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .8s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js [data-reveal="up"] { transform: translateY(30px); }
.js [data-reveal="pop"] { transform: scale(.8); transition-timing-function: var(--ease), var(--pop); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (max-width: 768px) { .js [data-reveal="up"] { transform: translateY(20px); } .js [data-reveal="up"].is-in { transform: none; } }   /* 261116 휴대폰은 덜 움직이게 */
/* 화면 맨 아래에 붙은 요소에는 data-reveal 쓰지 말 것 — 관찰선(아래 12%) 밖이라 끝내 안 보임 (261028 명크린 히어로 전화번호) */
.title .w, .hero__title .w { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
/* 받침 · g 아래가 잘리지 않게 */
.js .title .ch { display: inline-block; transform: translateY(100%); opacity: 0; transition: transform .6s var(--ease) var(--d, 0s), opacity .6s var(--d, 0s); }
.js .title.is-in .ch { transform: none; opacity: 1; }
.js .hero__title .ch { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform .8s var(--ease) var(--d, 0s), opacity .8s var(--d, 0s); }
.is-ready .hero__title .ch { transform: none; opacity: 1; }
/* ---------- 반응형 (공통 부품만) ---------- */
@media (max-width: 1280px) {
  .hd__tel span { display: none; }
  .gnb { gap: 18px; font-size: 16px; }
}
@media (max-width: 1100px) {
  :root { --hd: 68px; --quick-h: 0px; --dock-h: 72px; }
  .gnb, .hd__tel, .hd__cta { display: none; }
  .hd__menu { display: grid; }
  .totop { bottom: 92px; }
}
@media (max-width: 768px) {
  .bars__n { font-size: 18px; }
  .ft__in { grid-template-columns: 1fr; }
  .ft__logo { grid-row: auto; margin-bottom: 12px; }
  .ft__info i { display: block; width: 0; height: 0; margin: 0; }
}
/* ---------- 움직임 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .title .ch, .js .hero__title .ch { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { transition-duration: .01s !important; }
}
/* @@hover-ripple */
/* hover-ripple · 마우스를 올린 자리에서 물결이 퍼지는 버튼 (261102, 효종당 돌잔치 페이지 «클릭 물결»을 hover 로 — 방식만 참고해 새로 씀)
   색: --rp-c(물결 색, 기본 흰색 반투명) --rp-dur(퍼지는 시간) */
[data-ripple] { position: relative; overflow: hidden; isolation: isolate; --rp-c: rgba(255,255,255,.55); --rp-dur: 1.4s; }
[data-ripple] .rp { position: absolute; z-index: -1; width: var(--rp-s); height: var(--rp-s); margin: calc(var(--rp-s) / -2) 0 0 calc(var(--rp-s) / -2); border-radius: 50%; background: var(--rp-c); pointer-events: none;
  transform: scale(0); opacity: 1; animation: rpGo var(--rp-dur) cubic-bezier(.25,.6,.3,1) forwards; }
@keyframes rpGo { 55% { opacity: .55; } 100% { transform: scale(1); opacity: 0; } }
[data-ripple-fill] .rp { animation-name: rpFill; }
/* 퍼진 뒤 은은하게 남아 있는 판 (나가면 사라짐) */
@keyframes rpFill { 100% { transform: scale(1); opacity: .22; } }
[data-ripple-fill] .rp.out { animation: rpOut .35s ease forwards; }
@keyframes rpOut { from { transform: scale(1); opacity: .22; } to { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  [data-ripple] .rp { display: none; }
}
/* @@style.css (사이트 디자인) */
/* 서해안청소년수련원 시안 — 사이트 디자인 (261104)
   기준: welcomefare.co.kr (흰 바탕 + 빨강 하나 · Pretendard 좁은 자간 · 사진 왼쪽 아래 한 모서리만 둥글게 · 두 색 제목 · 테두리 알약 버튼 · 떠 있는 원형 버튼)
   첫 화면: ciyc.kr (한 화면 영상 + 영문 한 줄 + 큰 한글 + 5칸 흐림 퀵메뉴)
   글자 최소 PC 16 / 휴대폰 14, 본문 18 */
:root {
  --c1: #da1414; --c1-d: #b40f0f; --c2: #1f4d3a; --c3: #0a7de9; --dark: #252726;
  --navy: #da1414;   /* 키트 게시판 · 문의 화면(skins.css · board.css · contact.css)의 «강조 색» 이름 — 사이트 포인트 빨강으로 (261116) */
  --sub: #575759; --bg: #f6f7f4;   /* 키트 화면견본 변수 이름 */
  --ink: #111; --ink2: #575759; --mute: #8a8a8c; --line: #e4e4e2; --bg2: #f6f7f4;
  --g1: #ebece8; --g3: #d9dbd6; --g5: #6b6b6d; --g7: #3a3a3c;   /* 키트 widget.css(글 보기 표 · 첨부 · 안내봇 · 팝업)의 회색 이름 — 정의가 없어 표 테두리가 사라졌음 (261116 검수4) */
  --forest: #1f4d3a; --blue: #0a7de9;
  --hd: 92px; --bar: 0px; --quick-h: 0px; --w: 1500px; --sec: clamp(96px, 9vw, 170px);
  --mk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23da1414'%3E%3Ccircle cx='20' cy='20' r='18.2' stroke-width='3.4'/%3E%3Ccircle cx='11.2' cy='20' r='6.6' stroke-width='3.6'/%3E%3Ccircle cx='28.8' cy='20' r='6.6' stroke-width='3.6'/%3E%3C/g%3E%3Crect x='18.3' y='12.6' width='3.4' height='14.8' fill='%23da1414'/%3E%3C/svg%3E");
}
body { color: var(--ink2); letter-spacing: -.02em; }
.wrap { max-width: calc(var(--w) + var(--pad) * 2); }
.ic { stroke-width: 1.8; }
/* ---------- 제목 (앞 단어만 빨강) ---------- */
.title { color: var(--ink); font-size: clamp(32px, 3.6vw, 56px); font-weight: 800; line-height: 1.22; letter-spacing: -.05em; }
.title b { color: var(--c1); font-weight: 800; }
.eyebrow { margin: 0 0 14px; color: var(--c1); font-size: 18px; font-weight: 700; letter-spacing: .01em; }
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 64px; }
.shead__p { margin: 20px 0 0; font-size: 18px; color: var(--ink2); }
.shead--row { align-items: center; }
/* 알약 버튼: 흰 바탕 얇은 테두리 + 빨간 글자 + › */
.pill, .more { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; height: 56px; padding: 0 22px 0 26px; border: 1px solid #dcdcdc; border-bottom-width: 1px; border-radius: 999px; background: #fff; color: var(--c1); font-size: 17px; font-weight: 600; white-space: nowrap; transition: border-color .3s, background .3s; --rp-c: rgba(218, 20, 20, .12); }
.pill .ic, .more .ic { width: 18px; height: 18px; stroke-width: 2; transition: transform .3s; }
.pill:hover, .more:hover { border-color: var(--c1); color: var(--c1); }
.pill:hover .ic, .more:hover .ic { transform: translateX(3px); }
.more { height: 52px; min-width: 132px; }
.pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 540px; }
/* 섹션 공통 — 흰 면만 두지 않기: 오른쪽에 로고 마크를 아주 옅게 크게 + 등고선 질감 */
.sec { position: relative; padding: var(--sec) 0; overflow: hidden; overflow: clip; isolation: isolate; }
/* clip: 넘침은 자르되 sticky(이용안내 왼쪽 글)는 살림 — hidden 이면 sticky 가 안 됨 */
.sec::after { content: ""; position: absolute; z-index: -1; right: -180px; top: 90px; width: 640px; height: 640px; background: var(--mk) center / contain no-repeat; opacity: .035; pointer-events: none; }
/* ---------- 헤더: 처음 투명 → 내리면 흰 바탕 ---------- */
.hd__in { position: relative; height: var(--hd); gap: 40px; padding: 0 clamp(20px, 3.4vw, 64px); background: transparent; border-bottom: 1px solid rgba(255,255,255,.18); color: #fff; transition: background .35s, color .35s, border-color .35s, box-shadow .35s; }
.hd.is-scrolled .hd__in, .hd.is-drop .hd__in { background: #fff; color: var(--ink); border-color: var(--line); }
.hd.is-scrolled .hd__in { box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo__mk { width: 44px; height: 44px; color: #fff; transition: color .35s; }
.logo__tx { display: grid; line-height: 1.15; }
.logo__k { display: flex; align-items: center; gap: 6px; font-size: 23px; font-weight: 800; letter-spacing: -.05em; white-space: nowrap; }
.logo__k small { display: inline-block; margin-right: 3px; font-size: 11px; font-weight: 600; line-height: 1.1; letter-spacing: 0; opacity: .8; }
.logo__k b { font-weight: 800; transition: color .35s; }
.logo__e { margin-top: 3px; font-size: 11px; font-weight: 600; letter-spacing: .16em; opacity: .7; }
.hd.is-scrolled .logo__mk, .hd.is-drop .logo__mk { color: var(--c1); }
.hd.is-scrolled .logo__k b, .hd.is-drop .logo__k b { color: var(--blue); }
.hd.is-scrolled .logo__k, .hd.is-drop .logo__k { color: #393939; }
.hd.is-scrolled .logo__e, .hd.is-drop .logo__e, .hd.is-scrolled .logo__k small, .hd.is-drop .logo__k small { color: #8f8f8f; opacity: 1; }
.gnb { margin: 0 auto; height: 100%; font-size: 18px; }
.gnb > ul { display: flex; height: 100%; }
.gnb > ul > li { position: relative; display: flex; align-items: center; height: 100%; }
.gnb > ul > li > a { position: relative; display: flex; align-items: center; height: 100%; padding: 0 clamp(14px, 1.9vw, 34px); color: inherit; font-weight: 700; letter-spacing: -.03em; }
.gnb > ul > li > a::after { left: clamp(14px, 1.9vw, 34px); right: clamp(14px, 1.9vw, 34px); bottom: -1px; height: 3px; background: var(--c1); }
.gnb a:hover, .gnb a.is-on { color: inherit; }
.gnb > ul > li:hover > a { color: var(--c1); }
.gnb > ul > li > ul { position: absolute; left: 50%; top: 100%; width: max-content; min-width: 100%; padding: 30px 0 36px; transform: translateX(-50%); text-align: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.gnb > ul > li > ul a { display: block; padding: 7px 10px; color: var(--ink2); font-size: 16px; font-weight: 500; transition: color .2s; }
.gnb > ul > li > ul a::after { display: none; }
.gnb > ul > li > ul a:hover { color: var(--c1); }
.hd.is-drop .gnb > ul > li > ul { opacity: 1; visibility: visible; }
.hd__drop { position: absolute; left: 0; right: 0; top: 100%; height: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0,0,0,.06); overflow: hidden; transition: height .4s var(--ease); pointer-events: none; }
.hd__drop::after { content: ""; position: absolute; right: 4%; top: 30px; width: 300px; height: 300px; background: var(--mk) center / contain no-repeat; opacity: .05; }
.hd.is-drop .hd__drop { height: 380px; }
.hd__tel { gap: 10px; color: inherit; }
.hd__tel .ic { width: 22px; height: 22px; color: inherit; }
.hd__tel span { color: inherit; opacity: .75; }
.hd__tel b { font-size: 20px; }
.hd.is-scrolled .hd__tel, .hd.is-drop .hd__tel { color: var(--c1); }
.hd.is-scrolled .hd__tel span, .hd.is-drop .hd__tel span { color: var(--ink2); }
.hd__menu { display: grid; width: 48px; height: 48px; margin-left: 0; color: inherit; }
/* 전체 메뉴 (휴대폰 · PC 공통 <dialog>) */
.mnav__in { max-width: 560px; margin-left: auto; padding: calc(var(--bar) + 12px) 24px 32px; background: #fff; overflow-y: auto; }
dialog.mnav { background: rgba(17,17,17,.4); }
.mnav__top { display: flex; align-items: center; justify-content: space-between; }
.mnav__logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.mnav__logo svg { width: 34px; height: 34px; color: var(--c1); }
.mnav__nav { display: block !important; margin: 20px 0 24px !important; border-top: 2px solid var(--ink); }
.mnav__nav details { border-bottom: 1px solid var(--line); }
.mnav__nav summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; color: var(--ink); font-size: 20px; font-weight: 700; cursor: pointer; list-style: none; }
.mnav__nav summary::-webkit-details-marker { display: none; }
.mnav__nav summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .3s; }
.mnav__nav details[open] summary { color: var(--c1); }
.mnav__nav details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.mnav__nav p { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin: 0; padding: 0 4px 18px; }
.mnav__nav p a { padding: 8px 0; border: 0; color: var(--ink2); font-size: 16px; font-weight: 500; }
.mnav .btn { margin-top: auto; border-radius: 999px; }
/* ---------- 전체 메뉴 움직임 (261116) — main.js 가 열 때 .is-in, 닫을 때 .is-out(0.28초 뒤 숨김) ---------- */
body.is-menu { overflow: hidden; }   /* 열린 동안 뒤 페이지 스크롤 잠금 */
dialog.mnav { overflow: hidden; overflow: clip; background: rgba(17,17,17,0); transition: background-color .35s ease; }   /* overflow clip: 261118-2 hidden 은 스크립트 · 포커스로 스크롤이 돼서, showModal 포커스가 화면 밖 패널을 보이려고 dialog 를 옆으로 582px 스크롤 → 패널이 미끄러지지 않고 툭 튀어나오고 오른쪽에 ☰ · 사진 · 빨간 칸 띠가 보였다가 돌아옴. clip 은 스크롤 자체가 안 됨(hidden 은 옛 브라우저용). overflow: 261118 패널이 오른쪽 밖(translateX 104%)에서 들어오고 나가는 동안 dialog 기본 overflow:auto 가 화면 아래 가로 스크롤바를 띄우던 것 (패널 안 세로 스크롤은 .mnav__in 이 함) */
dialog.mnav.is-in { background: rgba(17,17,17,.45); }
.mnav__in { transform: translateX(104%); transition: transform .45s cubic-bezier(.16,.84,.24,1); }
.mnav.is-in .mnav__in { transform: none; }
.mnav__top, .mnav__nav > details, .mnav__in > .btn { opacity: 0; transform: translateY(14px); }
.mnav.is-in .mnav__top { opacity: 1; transform: none; transition: opacity .35s ease .1s, transform .45s var(--ease) .1s; }
.mnav.is-in .mnav__nav > details, .mnav.is-in .mnav__in > .btn { opacity: 1; transform: none; transition: opacity .4s ease calc(.16s + var(--i, 0) * .06s), transform .5s var(--ease) calc(.16s + var(--i, 0) * .06s); }
dialog.mnav.is-out { transition-duration: .28s; }
.mnav.is-out .mnav__in { transform: translateX(104%); transition: transform .28s cubic-bezier(.5,0,.9,.4); }
.mnav.is-out .mnav__top, .mnav.is-out .mnav__nav > details, .mnav.is-out .mnav__in > .btn { opacity: 0; transform: none; transition: opacity .16s ease; }
/* 펼치고 접기: 높이는 main.js(Web Animations), 접히는 중에도 화살표 · 색은 바로 */
.mnav__nav p { overflow: hidden; }
.mnav__nav details.is-closing summary { color: var(--ink); }
.mnav__nav details.is-closing summary::after { transform: rotate(45deg) translateY(-3px); }
/* 포커스 링 — 키보드일 때만, 사이트 빨강 (전엔 X 버튼에 공통 초록 링이 보였음) */
.mnav :focus { outline: 0; }
.mnav :focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; border-radius: 6px; }
.mnav__in:focus-visible { outline: 0; }
@media (prefers-reduced-motion: reduce) {
  dialog.mnav, .mnav__in, .mnav__top, .mnav__nav > details, .mnav__in > .btn { transition: none !important; }
  .mnav__top, .mnav__nav > details, .mnav__in > .btn { opacity: 1; transform: none; }
}
/* ---------- 푸터 ---------- */
.ft { padding: 64px 0 52px; background: var(--dark); color: rgba(255,255,255,.62); }
.ft__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.ft__logo { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.ft__logo svg { width: 40px; height: 40px; color: #fff; }
.ft__links { display: flex; gap: 24px; font-size: 16px; }
.ft__links b { color: #fff; }
/* 회사 정보 줄: 구분선은 항목 앞(::before) — 줄 맨 앞으로 넘어간 항목의 구분선은 왼쪽 25px 를 잘라(clip-path) 안 보이게 (261116 검수4) */
.ft__info { display: flex; flex-wrap: wrap; row-gap: 4px; margin: 0 0 6px -25px; clip-path: inset(0 0 0 25px); }
.ft__info > span { position: relative; margin-left: 25px; }
.ft__info > span::before { content: ""; position: absolute; left: -13px; top: 50%; width: 1px; height: 12px; margin-top: -6px; background: rgba(255,255,255,.25); }
.ft__copy { margin: 0; }
.ft__prix { margin: 14px 0 0; color: rgba(255,255,255,.4); }
/* ---------- 떠 있는 예약 문의 + TOP ---------- */
.fab { position: fixed; right: 28px; bottom: 28px; z-index: 95; display: grid; justify-items: center; gap: 12px; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .4s, transform .4s var(--ease), visibility .4s; }
.fab.is-on { opacity: 1; visibility: visible; transform: none; }
/* 첫 화면 퀵메뉴를 가리지 않게 히어로를 지나면 나타남 */
.fab__rsv { display: grid; place-items: center; align-content: center; gap: 2px; width: 86px; height: 86px; border-radius: 50%; background: var(--c1); color: #fff; font-size: 16px; font-weight: 800; line-height: 1.15; text-align: center; letter-spacing: -.04em; box-shadow: 0 10px 24px rgba(218,20,20,.38); transition: background .3s, transform .3s var(--pop); }
.fab__rsv .ic { width: 24px; height: 24px; }
.fab__rsv:hover { background: var(--c1-d); transform: translateY(-3px); }
.fab .totop { position: static; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.fab__tel { display: none; }
/* 떠 있는 버튼이 내용을 가리지 않게 (261116 검수4)
   - 첫 화면을 지나면(main.js → html.fab-on): AI 안내봇(키트 widget.css)은 말풍선 없이 원형만, 예약 문의 원과 같은 세로줄에 — 게시판 목록 오른쪽 칸(작성일 · 조회)을 가리던 것
   - 메인 조감도 핀 지도 · 푸터가 화면에 있으면(html.fab-mini): 예약 문의도 86 → 58px 원(글자 숨김, aria-label 그대로), 카드 · 푸터 링크 오른쪽을 겹치는 만큼만 비움 */
@media (min-width: 1101px) {
  .fab__rsv { position: relative; transition: background .3s, transform .3s var(--pop), width .3s, height .3s; }
  /* 261116 글자 잘림 — 58 → 86 으로 커지는 0.3초 동안 글자가 먼저 나와 작은 원 밖으로 넘쳤다. 원이 다 커진 뒤(.3s) 글자가 나타나고, 작아질 땐 바로 숨김 */
  .fab__rsv span { transition: opacity .2s .3s; }
  html.fab-on .bot-fab { right: 42px; padding: 0 7px; }
  html.fab-on .bot-fab .txt { display: none; }
  html.fab-mini .fab__rsv { width: 58px; height: 58px; }
  html.fab-mini .fab__rsv span { position: absolute; opacity: 0; pointer-events: none; transition: none; }
  html.fab-mini .bot-fab { right: 28px; bottom: 162px; padding: 0 7px; }
  html.fab-mini .bot-fab .txt { display: none; }
  /* 오른쪽 28 + 원 58 + 여유 20 = 106 에서 화면 오른쪽 여백만큼 뺀 값 — 넓은 화면(양옆 여백이 충분)에서는 0 */
  .amap > .amap__card, .ft .ft__links { margin-right: max(0px, calc(106px - max(var(--pad), (100vw - var(--w)) / 2))); }
}
/* 휴대폰 · 태블릿: 떠 있는 원형 버튼이 글 · 버튼을 가려서(261104) 화면 아래 고정 띠로 — 내용은 띠 위로 지나가고, 푸터 아래에 띠만큼 여유 */
@media (max-width: 1100px) {
  .fab { left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 48px; gap: 10px; align-items: center; justify-items: stretch; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
  .fab__rsv { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; height: 48px; white-space: nowrap; border-radius: 999px; font-size: 16px; box-shadow: none; }
  .fab__rsv:hover { transform: none; }
  .fab__rsv .ic { width: 20px; height: 20px; }
  .fab__rsv br { display: none; }
  .fab__tel { display: inline; font-weight: 800; letter-spacing: 0; }
  .fab .totop { width: 48px; height: 48px; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .ft { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
/* 휴대폰 · 태블릿: 첫 화면을 지나 아래 띠가 나오면(html.fab-on) AI 안내봇 원을 띠 왼쪽 칸으로 — 본문 오른쪽 위에 떠서 표 · 카드 · 버튼을 가리던 것 (261116 검수4) */
@media (max-width: 1100px) {
  html.fab-on .bot-fab { left: 16px; right: auto; bottom: calc(10px + env(safe-area-inset-bottom)); width: 48px; height: 48px; padding: 0; justify-content: center; box-shadow: none; }
  html.fab-on .bot-fab .av { width: 40px; height: 40px; }
  html.fab-on .bot-fab .txt { display: none; }
  html.fab-on:has(.bot-fab) .fab { padding-left: 74px; }
}
/* ---------- 반응형 ---------- */
@media (max-width: 1500px) {
  .gnb { font-size: 17px; }
  .hd__tel span { display: none; }
}
@media (max-width: 1280px) {
  .hd__tel { display: none; }
  .shead { flex-direction: column; align-items: flex-start; }
  .shead--row { flex-direction: row; align-items: center; }
}
@media (max-width: 1100px) {
  :root { --hd: 70px; }
  .gnb { display: none; }
  .hd__menu { display: grid; margin-left: auto; }
}
@media (max-width: 768px) {
  :root { --hd: 64px; --sec: 88px; }
  body { font-size: 16px; }
  .hd__in { gap: 12px; padding: 0 16px; }
  .logo { gap: 9px; }
  .logo__mk { width: 34px; height: 34px; }
  .logo__k { font-size: 18px; gap: 4px; }
  .logo__k small { display: none; }
  .logo__e { display: none; }
  .title { font-size: 32px; }
  .eyebrow { font-size: 16px; }
  .shead { margin-bottom: 40px; gap: 28px; }
  .shead__p { font-size: 16px; }
  .pill { height: 50px; padding: 0 16px 0 18px; font-size: 16px; }
  .more { height: 44px; min-width: 0; padding: 0 14px 0 18px; font-size: 16px; }
  .pills { display: flex; flex-wrap: wrap; gap: 8px; }
  .pills .pill { flex: 1 1 150px; }
  /* 긴 문구(고등학교 임원 1박 2일)는 한 줄 전체로 */
  .sec::after { width: 320px; height: 320px; right: -110px; top: 40px; }
  /* 푸터 · 버튼 */
  .ft { padding: 44px 0 calc(96px + env(safe-area-inset-bottom)); font-size: 14px; }
  .ft__top { flex-direction: column; align-items: flex-start; }
  .ft__logo { font-size: 17px; }
  .ft__links { gap: 14px; font-size: 14px; flex-wrap: wrap; }
  .ft__info { flex-direction: column; row-gap: 2px; }   /* 휴대폰은 한 줄에 하나 — 구분선은 모두 잘림 */
  .ft__info > span { white-space: normal; }
}
@media (max-width: 400px) {
  .logo__k { font-size: 17px; }
}
/* 2차 메뉴가 펼침 판 위에 오게 */
.hd__in > .logo, .hd__in > .gnb, .hd__in > .hd__tel, .hd__in > .hd__menu { position: relative; z-index: 2; }
.hd__drop { z-index: 1; }
/* 2차 메뉴 펼침 (261116 검수5 — 넥스트정보기술 방식): 1차 메뉴 사이가 살짝 벌어짐 · 판은 가장 긴 목록 높이(--drop, main.js)로 열림 · 2차 목록은 위에서 살짝 내려오며
   왼쪽 = 올린 메뉴 소개(영문 · 이름 · 한 줄), 오른쪽 = 대표 사진 (header.php $DROP). 1100px 이하(전체 메뉴 버튼)는 해당 없음 */
.gnb > ul > li > a, .gnb > ul > li > a::after { transition: padding .4s var(--ease), left .4s var(--ease), right .4s var(--ease), color .3s, transform .35s var(--ease); }
.hd.is-drop .gnb > ul > li > a { padding: 0 calc(clamp(14px, 1.9vw, 34px) + 10px); }
.hd.is-drop .gnb > ul > li > a::after { left: calc(clamp(14px, 1.9vw, 34px) + 10px); right: calc(clamp(14px, 1.9vw, 34px) + 10px); }
.gnb > ul > li > ul { padding: 34px 0 30px; transform: translate(-50%, -10px); transition: opacity .3s, visibility .3s, transform .45s var(--ease); }
.hd.is-drop .gnb > ul > li > ul { transform: translate(-50%, 0); transition-delay: .08s; }
.gnb > ul > li > ul a { padding: 8px 12px; font-size: 17px; }
.gnb > ul > li > ul a.is-on { color: var(--c1); font-weight: 700; }
.gnb > ul > li:hover > ul a { color: var(--ink); }
.gnb > ul > li:hover > ul a:hover, .gnb > ul > li > ul a:focus-visible { color: var(--c1); }
.gnb > ul > li > ul a.is-on, .gnb > ul > li:hover > ul a.is-on { color: var(--c1); }   /* 261116 현재 페이지는 늘 빨강 */
.hd.is-drop .hd__drop { height: var(--drop, 300px); pointer-events: auto; }
.hd__drop::after { display: none; }
.hd__drop { border-top: 1px solid var(--line); }
.hd__intro { position: absolute; left: clamp(20px, 3.4vw, 64px); top: 40px; width: clamp(170px, 15vw, 280px); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease); }
.hd__intro.is-on { opacity: 1; transform: none; transition-delay: .1s; }
.hd__intro-e { margin: 0; color: var(--c1); font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.hd__intro-t { margin: 6px 0 12px; color: var(--ink); font-size: 30px; font-weight: 800; letter-spacing: -.05em; line-height: 1.2; }
.hd__intro-p { margin: 0; color: var(--ink2); font-size: 16px; line-height: 1.6; word-break: keep-all; }
.hd__ph { position: absolute; right: clamp(20px, 3.4vw, 64px); top: 32px; width: clamp(220px, 20vw, 360px); height: calc(var(--drop, 300px) - 64px); overflow: hidden; border-radius: 0 0 0 24px; background: #eef0ec; opacity: 0; transition: opacity .4s; }
.hd__ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.hd__ph.is-on { opacity: 1; }
.hd.is-drop .hd__ph.is-on img { transform: none; }
@media (max-width: 1400px) { .hd__ph { display: none; } }   /* 2차 목록(고객센터 열)과 겹치지 않게 — 1400 이하는 사진 없이 왼쪽 소개만 */
@media (max-width: 1280px) { .hd__intro-t { font-size: 26px; } }
@media (max-width: 1180px) { .hd__intro { display: none; } }
@media (prefers-reduced-motion: reduce) { .gnb > ul > li > a, .gnb > ul > li > a::after, .gnb > ul > li > ul, .hd__intro, .hd__ph, .hd__ph img, .hd__drop { transition: none; } }
/* ===== 261116 사이트 추가 (시안에 없던 서브 화면 · 새 메인 섹션) — 시안과 같은 말투: 흰 바탕 + 빨강 하나 · 왼쪽 아래 한 모서리만 둥글게 · 테두리 알약 ===== */
.skip { position: absolute; left: -9999px; }
/* 본문 바로가기 — 포커스되면 보이게 */
.skip:focus { left: 16px; top: 16px; z-index: 10000; padding: 10px 16px; background: #000; color: #fff; }
.nw { white-space: nowrap; }
[hidden] { display: none !important; }
.inner { width: 100%; max-width: calc(1440px + var(--pad) * 2);   /* 261116 서브 본문 폭 1280 → 1440 (사용자) */ margin: 0 auto; padding: 0 var(--pad); }
.fab .totop { opacity: 1; visibility: visible; transform: none; }
.gnb > ul > li.is-cur > a::after { transform: scaleX(1); }
.hd.is-scrolled .gnb > ul > li.is-cur > a { color: var(--c1); }
.hd.is-drop .gnb > ul > li.is-cur > a { color: var(--c1); }
.pill--main { background: var(--c1); border-color: var(--c1); color: #fff; --rp-c: rgba(255, 255, 255, .3); }
.pill--main:hover { background: var(--c1-d); border-color: var(--c1-d); color: #fff; }
/* 서브 비주얼 (sub_top.php) — 메인 첫 화면처럼 사진 위 왼쪽 어둡게 + 흰 글자 */
.sv { position: relative; display: flex; align-items: flex-end; height: clamp(380px, 32vw, 500px); overflow: hidden; background: #0e1f17; color: #fff; }
.sv__bg, .sv__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,22,15,.66) 0%, rgba(8,22,15,.3) 50%, rgba(8,22,15,.08) 80%), linear-gradient(180deg, rgba(0,0,0,.4) 0%, transparent 30%, transparent 65%, rgba(0,0,0,.3) 100%); }
.sv__in { position: relative; padding-bottom: 56px; }
.sv__en { margin: 0 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -.01em; opacity: .9; }
.sv__t { margin: 0; color: #fff; font-weight: 800; letter-spacing: -.05em; }
.bc ol { display: flex; flex-wrap: wrap; align-items: center; margin-top: 16px; font-size: 16px; }
.bc li { display: flex; align-items: center; }
.bc li + li::before { content: ""; width: 7px; height: 7px; margin: 0 14px 0 10px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.bc a { display: inline-flex; align-items: center; min-height: 32px; color: rgba(255,255,255,.82); transition: color .2s; }
.bc a:hover, .bc a[aria-current] { color: #fff; }
.bc a[aria-current] { font-weight: 700; }
/* 2뎁스 탭 — 같은 1뎁스 메뉴 */
.snb { position: relative; background: #fff; border-bottom: 1px solid var(--line); }
.snb ul { display: flex; overflow-x: auto; scrollbar-width: none; }
.snb ul::-webkit-scrollbar { display: none; }
.snb li { flex: none; }
.snb a { position: relative; display: flex; align-items: center; height: 70px; padding: 0 26px; color: var(--ink2); font-size: 17px; font-weight: 600; white-space: nowrap; transition: color .25s; }
.snb li:first-child a { padding-left: 0; }
.snb a::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: -1px; height: 3px; background: var(--c1); transform: scaleX(0); transition: transform .3s var(--ease); }
.snb li:first-child a::after { left: 0; }
.snb a:hover { color: var(--ink); }
.snb a.is-on { color: var(--c1); font-weight: 700; }
.snb a.is-on::after { transform: none; }
/* 페이지 제목 + 3뎁스 탭 */
.pg-hd { padding-top: 88px; text-align: center; }
.pg-hd--nosv { padding-top: calc(var(--hd) + 72px); }
.pg-hd__en { margin: 0 0 6px; color: var(--c1); font-size: 18px; font-weight: 700; letter-spacing: .01em; }
.pg-tit { margin: 0; color: var(--ink); font-weight: 800; letter-spacing: -.05em; }
.tab3 ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.tab3 a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid #dcdcdc; border-radius: 999px; background: #fff; color: var(--ink2); font-size: 16px; font-weight: 600; transition: border-color .25s, color .25s, background .25s; }
.tab3 a:hover { border-color: var(--c1); color: var(--c1); }
.tab3 a.is-on { border-color: var(--c1); background: var(--c1); color: #fff; }
.sub .sec { padding: 64px 0 var(--sec); }
.sub-con { padding: 56px 0 var(--sec); }
.nlist--empty { margin: 0; padding: 56px 0; border-bottom: 1px solid var(--line); color: var(--mute); text-align: center; }
@media (max-width: 768px) {
  .sv { height: 300px; }
  .sv__in { padding-bottom: 32px; }
  .sv__en { font-size: 16px; }
  .bc ol { margin-top: 10px; font-size: 14px; }
  .snb a { height: 54px; padding: 0 16px; font-size: 15px; }
  .snb a::after { left: 16px; right: 16px; }
  .pg-hd { padding-top: 52px; }
  .pg-hd--nosv { padding-top: calc(var(--hd) + 44px); }
  .pg-hd__en { font-size: 14px; }
  .tab3 ul { justify-content: flex-start; gap: 6px; margin-top: 24px; }
  .tab3 a { min-height: 44px; padding: 0 16px; font-size: 14px; }
  .sub .sec { padding: 40px 0 88px; }
  .sub-con { padding: 32px 0 88px; }
}
@keyframes rvIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rvPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── 나타나는 모션 (키트 main.js [data-rv] → .is-in — 화면견본 · 게시판 화면) */
.js [data-rv] { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.js [data-rv].is-in { opacity: 1; transform: none; }
