/*
  [생성일] 2026-11-24
  [경위] 루트연기학원 홈페이지 정리 시안 스타일. 아임웹 기본 위젯으로 옮길 수 있는 것만 씀(사진 모서리 · 그림자 · 그라데이션 없음, 글꼴 Pretendard 하나)
  [변경이력]
    - 2026-11-24: 최초 생성 (v1)
    - 2026-11-24: v2 — 의뢰인 관점 점검 반영(안내 띠 두 줄 · 첫 화면 「원장님 배너안」 · 휴대폰 첫 화면 사진 위치 · 인사말 사진 머리 잘림)
*/

/* 색 · 간격 기준 — 로고 남색 #113B57, 로고 마름모 노랑 #EDDE36 (2026-11-24 로고 PNG 실측) */
:root {
  --navy: #113B57;
  --navy-deep: #0B2A40;
  --yellow: #EDDE36;
  --ink: #18222B;
  --ink-2: #4A5560;
  --ink-3: #7A848D;
  --paper: #F5F4EF;
  --line: rgba(24, 34, 43, .1);
  --line-on-navy: rgba(255, 255, 255, .16);
  --r: 4px;
  --wrap: 1200px;
  --hd: 72px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* v2: 첫 화면 두 안 전환용 */
html { scroll-behavior: smooth; scroll-padding-top: var(--hd); }
body { margin: 0; font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.65; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.pc { display: inline; }

/* 시안 안내 띠 (시안 전용) */
.sian-band { background: var(--yellow); color: var(--navy-deep); font-size: 14px; line-height: 1.5; text-align: center; padding: 8px 16px; }
.sian-band a { font-weight: 600; text-underline-offset: 3px; }
/* v2: 안내 띠 둘째 줄 — 첫 화면 두 안 고르기 (시안 전용) */
.sb-m { display: none; }
.sb-2 { margin-top: 6px; display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; font-weight: 600; }
.sb-pick { font: inherit; font-size: 13px; font-weight: 600; height: 30px; padding: 0 12px; border: 1px solid var(--navy-deep); background: transparent; color: var(--navy-deep); border-radius: var(--r); cursor: pointer; }
.sb-pick.on { background: var(--navy-deep); color: var(--yellow); }

/* 버튼: 아임웹 버튼 위젯 커스텀 스타일 */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px; border-radius: var(--r); font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-full { width: 100%; }
.btn-yellow { background: var(--yellow); color: var(--navy-deep); }
.btn-yellow:hover { background: #F4E85E; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-line { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-line:hover { background: var(--paper); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* 헤더: 아임웹 기본 헤더(상단 고정) */
.hd { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.hd-in { max-width: 1280px; margin: 0 auto; padding: 0 32px; height: var(--hd); display: flex; align-items: center; gap: 32px; }
.hd-logo img { width: 140px; }
.hd-nav { display: flex; gap: 28px; margin-left: auto; }
.hd-nav a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); padding: 8px 0; }
.hd-nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.hd-act { display: flex; gap: 8px; }
.hd-menu { display: none; }

/* 첫 화면: 섹션 배경 이미지 + 텍스트 */
.hero { position: relative; min-height: max(600px, calc(100vh - var(--hd) - 37px)); background: #0B0F12 url(../img/hero_blackbox.jpg) center 60% / cover no-repeat; color: #fff; display: flex; align-items: center; }
.hero-in { max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 96px 32px 112px; }
.hero-pre { font-size: 15px; color: rgba(255, 255, 255, .78); margin-bottom: 20px; }
.hero h1 { font-size: 56px; line-height: 1.22; font-weight: 700; letter-spacing: -.02em; }
.hero-sub { margin-top: 20px; font-size: 18px; color: rgba(255, 255, 255, .84); }
.hero-open { margin-top: 32px; display: grid; gap: 8px; }
.hero-open li { font-size: 16px; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .9); }
.hero-open b { color: var(--yellow); font-weight: 600; }
.dot { width: 8px; height: 8px; background: var(--yellow); transform: rotate(45deg); flex: none; }
.hero-btns { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cap { position: absolute; right: 32px; bottom: 24px; font-size: 13px; color: rgba(255, 255, 255, .6); }

/* v2: 첫 화면 다른 안 — 원장님 배너 그대로(섹션 배경색 + 이미지 + 버튼) */
.hero-b { background: #0C3956; padding: 0 0 48px; }
.hero-b img { width: 100%; max-width: 1920px; margin: 0 auto; }
.hero-b-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 0 20px; }

/* 신뢰 줄: 4칸 섹션 텍스트 */
.facts { background: var(--navy); color: #fff; }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-in > div { padding: 32px 24px; border-left: 1px solid var(--line-on-navy); }
.facts-in > div:first-child { border-left: 0; padding-left: 0; }
.f-num { font-size: 32px; font-weight: 700; line-height: 1.2; color: var(--yellow); font-variant-numeric: tabular-nums; }
.f-num small { font-size: 18px; font-weight: 600; margin-left: 2px; }
.f-txt { margin-top: 6px; font-size: 15px; color: rgba(255, 255, 255, .78); }

/* 공통 구간 */
.sec { padding: 112px 0; }
.sec-tight { padding: 80px 0; }
.sec-paper { background: var(--paper); }
.sec-navy { background: var(--navy); color: #fff; }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.sec-head.row .sec-lead { max-width: 440px; margin-top: 0; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.sec-navy .eyebrow { color: var(--yellow); }
.mark { width: 12px; height: 12px; }
h2 { font-size: 40px; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; }
.sec-lead { margin-top: 16px; font-size: 17px; color: var(--ink-2); }
.sec-navy .sec-lead { color: rgba(255, 255, 255, .78); }

/* 모집 과정 카드: 칸 배경색 + 텍스트 · 구분선 · 버튼 */
.group-t { font-size: 18px; font-weight: 600; color: var(--ink-2); padding-bottom: 12px; border-bottom: 2px solid var(--navy); margin-bottom: 24px; }
.cards + .group-t { margin-top: 56px; }
.cards { display: grid; gap: 16px; }
.c4 { grid-template-columns: repeat(4, 1fr); }
.c3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); padding: 28px 24px 24px; display: flex; flex-direction: column; }
.card-tag { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.card-tag.open { color: var(--navy); }
.card-tag.open::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--yellow); outline: 1px solid var(--navy); transform: rotate(45deg); margin-right: 8px; vertical-align: 1px; }
.card h4 { margin-top: 12px; font-size: 22px; font-weight: 700; line-height: 1.35; }
.card-for { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.card-list { margin: 20px 0 24px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.card-list li { font-size: 15px; padding-left: 14px; position: relative; }
.card-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 1.5px; background: var(--ink-3); }
.card-link { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(17, 59, 87, .35); }
.card-link:hover { text-decoration-color: var(--navy); }

/* 합격 소식: 2칸 텍스트 줄 */
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.res-t { font-size: 20px; font-weight: 700; padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.res-t span { font-size: 15px; font-weight: 500; color: var(--ink-3); margin-left: 8px; }
.res-list li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "s t" "d t"; align-items: center; column-gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.r-school { grid-area: s; font-size: 18px; font-weight: 600; }
.r-dept { grid-area: d; font-size: 14px; color: var(--ink-2); }
.r-tag { grid-area: t; font-size: 13px; font-weight: 600; padding: 4px 10px; border: 1px solid var(--navy); color: var(--navy); border-radius: var(--r); }
.r-tag.final { background: var(--navy); color: #fff; }

/* 학원 소개: 2칸 + 3칸 */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.about-ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-tx h2 { margin-bottom: 24px; }
.about-tx p:not(.eyebrow):not(.sign) { font-size: 17px; color: var(--ink-2); margin-top: 14px; }
.sign { margin-top: 32px; font-size: 15px; color: var(--ink-3); display: flex; flex-direction: column; gap: 4px; }
.sign span { font-size: 20px; font-weight: 600; color: var(--ink); }
.princ { margin-top: 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--navy); }
.princ > div { padding: 28px 32px 0 0; }
.princ > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.p-no { font-size: 14px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.princ h3 { margin-top: 8px; font-size: 20px; font-weight: 700; line-height: 1.4; }
.princ p:not(.p-no) { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

/* 강사진: 4칸 사진 + 3칸 이름 카드 */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tm img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--navy-deep); }
.tm figcaption { padding: 16px 0 0; }
.tm-sub { font-size: 14px; color: var(--yellow); font-weight: 600; }
.tm-name { font-size: 22px; font-weight: 700; margin-top: 2px; }
.tm-q { font-size: 15px; color: rgba(255, 255, 255, .72); margin-top: 4px; }
.team-more { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.team-more > div { border-top: 1px solid var(--line-on-navy); padding-top: 16px; }

/* 시설: 4칸 × 2줄 */
.fac { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 16px; }
.fac img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper); }
.fac figcaption { margin-top: 10px; font-size: 15px; font-weight: 500; }

/* 소식: 인스타그램 6칸 */
.insta { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.insta img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.insta a { transition: opacity .15s ease; }
.insta a:hover { opacity: .85; }

/* 상담 문의: 2칸 + 입력폼 + 지도 */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.ct-tel { display: inline-block; margin-top: 32px; font-size: 44px; font-weight: 700; color: var(--yellow); text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ct-time { margin-top: 4px; font-size: 16px; color: rgba(255, 255, 255, .78); }
.ct-btns { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.ct-dl { margin: 40px 0 0; border-top: 1px solid var(--line-on-navy); }
.ct-dl > div { display: grid; grid-template-columns: 96px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line-on-navy); font-size: 15px; }
.ct-dl dt { color: rgba(255, 255, 255, .6); }
.ct-dl dd { margin: 0; }
.ct-form { background: #fff; color: var(--ink); padding: 36px 32px 32px; display: grid; gap: 16px; }
.form-t { font-size: 20px; font-weight: 700; }
.ct-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ct-form input[type=text], .ct-form input[type=tel], .ct-form select, .ct-form textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); border: 1px solid rgba(24, 34, 43, .22); border-radius: var(--r); padding: 12px 14px; background: #fff; width: 100%; }
.ct-form textarea { resize: vertical; }
.ct-form .agree { display: flex; align-items: center; gap: 8px; font-weight: 500; flex-wrap: wrap; }
.ct-form .agree input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.ct-form .agree a { color: var(--ink-3); font-size: 13px; }
.privacy { font-size: 13px; color: var(--ink-3); background: var(--paper); padding: 12px; }
.ok { font-size: 14px; color: var(--navy); background: var(--paper); padding: 12px; }
.map { margin-top: 64px; height: 360px; background: var(--navy-deep); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 꼬리말 */
.ft { background: var(--navy-deep); color: rgba(255, 255, 255, .72); padding: 56px 0 120px; font-size: 14px; }
.ft-in { display: grid; gap: 16px; }
.ft-in img { width: 140px; }
.ft-sns { display: flex; gap: 20px; }
.ft-sns a { color: #fff; text-underline-offset: 3px; }
.ft-note { color: rgba(255, 255, 255, .5); font-size: 13px; }

/* 휴대폰 하단 고정 줄 (공통 코드 삽입) — PC에서는 숨김 */
.mbar { display: none; }

/* 태블릿 */
@media (max-width: 1080px) {
  .hd-nav { gap: 18px; }
  .hd-nav a { font-size: 14px; }
  .hd-act .btn-line { display: none; }
  .c4 { grid-template-columns: repeat(2, 1fr); }
  .fac { grid-template-columns: repeat(2, 1fr); }
  .team, .team-more { grid-template-columns: repeat(2, 1fr); }
  .insta { grid-template-columns: repeat(3, 1fr); }
}

/* 휴대폰 — 아임웹 모바일 전용 섹션 */
@media (max-width: 820px) {
  :root { --hd: 60px; }
  .wrap { padding: 0 20px; }
  .pc { display: none; }
  .hd-in { padding: 0 20px; gap: 12px; }
  .hd-logo img { width: 116px; }
  .hd-act { display: none; }
  .hd-menu { display: inline-flex; margin-left: auto; height: 40px; padding: 0 14px; border: 1px solid var(--line); background: #fff; border-radius: var(--r); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); align-items: center; }
  .hd-nav { display: none; position: absolute; top: var(--hd); left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); }
  .hd-nav.open { display: flex; }
  .hd-nav a { font-size: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sb-1 { display: none; }
  .sb-m { display: block; }
  .hero { min-height: 0; background-position: 18% center; } /* v2: 글자 뒤에 밝은 창문이 오지 않게 왼쪽(거울 벽) 기준 */
  .hero-b { padding-bottom: 32px; }
  .hero-b-btns .btn { flex: 1 1 140px; }
  .hero-in { padding: 64px 20px 72px; }
  .hero-pre { font-size: 14px; margin-bottom: 14px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .hero-open li { font-size: 15px; align-items: flex-start; }
  .hero-open .dot { margin-top: 8px; }
  .hero-btns .btn { flex: 1 1 140px; }
  .hero-cap { right: 20px; bottom: 16px; font-size: 12px; }
  .facts-in { grid-template-columns: 1fr 1fr; }
  .facts-in > div { padding: 20px 0 20px 16px; }
  .facts-in > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts-in > div:nth-child(n+3) { border-top: 1px solid var(--line-on-navy); }
  .f-num { font-size: 26px; }
  .f-txt { font-size: 14px; }
  .sec { padding: 72px 0; }
  .sec-tight { padding: 56px 0; }
  .sec-head, .sec-head.row { margin-bottom: 32px; display: block; }
  .sec-head.row .sec-lead { margin-top: 12px; }
  .sec-head.row .btn { margin-top: 20px; }
  h2 { font-size: 28px; }
  .sec-lead { font-size: 16px; }
  .c4, .c3 { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 24px 20px 20px; }
  .card h4 { font-size: 20px; }
  .card-list { margin: 16px 0 20px; }
  .results { grid-template-columns: 1fr; gap: 40px; }
  .r-school { font-size: 17px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-ph img { aspect-ratio: 1 / 1; object-position: center top; } /* v2: 머리 위가 잘리지 않게 */
  .about-tx p:not(.eyebrow):not(.sign) { font-size: 16px; }
  .princ { grid-template-columns: 1fr; margin-top: 48px; }
  .princ > div, .princ > div + div { padding: 20px 0; border-left: 0; }
  .princ > div + div { border-top: 1px solid var(--line); }
  .team { gap: 12px; }
  .tm-name { font-size: 19px; }
  .tm-q { font-size: 14px; }
  .team-more { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .team-more .tm-name { font-size: 17px; }
  .fac { gap: 12px; }
  .fac figcaption { font-size: 14px; margin-top: 6px; }
  .insta { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .ct-tel { font-size: 36px; margin-top: 24px; }
  .ct-btns .btn { flex: 1 1 140px; }
  .ct-form { padding: 28px 20px 24px; }
  .map { margin-top: 40px; height: 280px; }
  .ft { padding: 40px 0 96px; }
  .ft-sns { flex-wrap: wrap; gap: 12px 20px; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .mbar a { height: 48px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--navy); border: 1px solid var(--line); border-radius: var(--r); }
  .mbar a.on { background: var(--yellow); color: var(--navy-deep); border-color: var(--yellow); }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 30px; }
  .team-more { grid-template-columns: 1fr 1fr; }
  .ct-tel { font-size: 32px; }
}
