@charset "utf-8";
/* ==========================================================================
   제33회 부산자갈치축제 — 디자인 시스템
   색은 시안에서 추출: 브랜드 블루 #2866F9 · 잉크 #222
   Tailwind 2.2.19 CDN 뒤에 로드된다. (같은 특이도면 이 파일이 이긴다)
   ========================================================================== */

:root {
  --blue-700: #1A50CE;   /* 모집 카드 등 진한 면 */
  --blue-600: #2866F9;   /* 브랜드 메인 */
  --blue-500: #4A80FF;
  --blue-100: #E6EEFE;
  --blue-50:  #F2F6FF;

  --ink-900:  #222222;   /* 푸터 · 본문 제목 */
  --ink-700:  #4A4A4E;
  --ink-500:  #77777D;
  --ink-300:  #B0B0B6;
  --line:     #E4E4EA;

  --paper:    #FAF8FD;   /* 옅은 라벤더 배경 */
  --white:    #FFFFFF;

  /* 프로그램 구분 */
  --kind-gongyeon:  #E5565C;
  --kind-teukbyeol: #01B093;
  --kind-chehum:    #F39801;
  --alert:          #EE2B2B;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Malgun Gothic", sans-serif;

  --header-h: 92px;
  --radius:   14px;
  --shadow:   0 10px 30px rgba(28, 44, 92, .08);
  --shadow-lg:0 18px 48px rgba(28, 44, 92, .12);
  --ease:     cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ----------
   지금까지 box-sizing · 목록 마커 제거 · 여백 초기화를 Tailwind 의 preflight 에
   기대고 있었다. 유틸리티 클래스는 하나도 안 쓰면서 리셋 때문에 300KB CDN 에
   묶여 있는 셈이라, 필요한 것만 여기로 옮긴다.
   (Tailwind 를 지워도 화면이 그대로여야 한다) */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink-900);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -.02em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button { font-family: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; letter-spacing: -.03em; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--blue-100); color: var(--blue-700); }

.skip-nav { position: absolute; left: -9999px; top: 0; z-index: 999; padding: 12px 20px; background: var(--blue-600); color: #fff; }
.skip-nav:focus { left: 0; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--blue-600); outline-offset: 3px; border-radius: 4px;
}

/* 마스크 리빌 — 제목이 아래에서 밀려 올라온다.
   숨기는 규칙은 .js 아래에만 둔다. JS 가 죽으면 그냥 보이는 상태가 기본값이다. */
.reveal { overflow: hidden; }
.reveal > span { display: block; }
.js .reveal > span { transform: translateY(110%); opacity: 0; transition: transform .9s var(--ease), opacity .9s var(--ease); }
.js .reveal.is-in > span { transform: none; opacity: 1; }

/* ---------- 아이콘 ---------- */
.jg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; flex: none; display: inline-block; vertical-align: -.22em; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1660px; margin: 0 auto; padding: 0 40px; }
.section { padding: 120px 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--blue  { background: var(--blue-600); color: #fff; }

.section-head { margin-bottom: 48px; }
.eyebrow {
  font-size: 15px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-500); margin-bottom: 6px;
}
.section--blue .eyebrow { color: rgba(255,255,255,.8); }
.section-title { font-size: 38px; letter-spacing: -.035em; }
.section-desc { margin-top: 16px; color: var(--ink-700); font-size: 17px; }

/* 시안 곳곳에 깔리는 옅은 원 · 빗금 장식 */
.deco { position: relative; overflow: hidden; }
.deco > * { position: relative; z-index: 1; }
.deco::before {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  width: 780px; height: 570px; opacity: .55;
  background: url("/img/back_illust_1.png") center/contain no-repeat;
  top: -60px; right: -140px;
}
.deco--b::before {
  width: 700px; height: 510px;
  background-image: url("/img/back_illust_2.png");
  top: auto; bottom: -90px; right: -120px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 30px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -.02em;
  transition: all .25s var(--ease); white-space: nowrap;
}
.btn--sm { height: 44px; padding: 0 22px; font-size: 15px; gap: 8px; }
.btn--blue { background: var(--blue-600); color: #fff; }
.btn--blue:hover { background: var(--blue-700); color: #fff; }
.btn--line { border: 1px solid var(--line); background: #fff; color: var(--ink-900); }
.btn--line:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn--ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn .icon { width: 18px; height: 18px; vertical-align: 0; }
.btn--sm .icon { width: 16px; height: 16px; }

/* 자세히 보기 — 시안의 파란 알약 + 원형 화살표 */
.btn--pill { padding-right: 12px; gap: 18px; }
.btn--pill .pill-arrow {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center;
  transition: transform .25s var(--ease);
}
.btn--pill:hover .pill-arrow { transform: translateX(3px); }

/* 구분 배지 */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 54px; height: 28px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #fff; letter-spacing: -.02em;
}
.badge--gongyeon  { background: var(--kind-gongyeon); }
.badge--teukbyeol { background: var(--kind-teukbyeol); }
.badge--chehum    { background: var(--kind-chehum); }

/* ==========================================================================
   헤더 / GNB
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: transform .35s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.header.hide { transform: translateY(-100%); }
.header__inner {
  position: relative; z-index: 2;
  max-width: 1660px; height: 100%; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; gap: 40px;
}
.header__logo { flex: 0 0 auto; }
.header__logo img { height: 46px; width: auto; }
.header__logo-w { display: none; }

/* 메인 최상단 = 영상 위 투명 헤더 + 흰 로고 */
.header.is-hero:not(.is-scrolled):not(.is-open) { background: transparent; }
.header.is-hero:not(.is-scrolled):not(.is-open) .header__logo-c { display: none; }
.header.is-hero:not(.is-scrolled):not(.is-open) .header__logo-w { display: block; }
.header.is-hero:not(.is-scrolled):not(.is-open) .gnb__item > a { color: #fff; }
.header.is-hero:not(.is-scrolled):not(.is-open) .menubtn span { background: #fff; }

.header.is-scrolled, .header.is-open { background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header.is-open { box-shadow: none; }

.gnb { flex: 1 1 auto; }
.gnb__list { display: flex; align-items: flex-start; justify-content: center; gap: 58px; }
.gnb__item { position: relative; }
.gnb__item > a {
  display: block; height: var(--header-h); line-height: var(--header-h);
  font-size: 17px; font-weight: 600; color: var(--ink-900);
}
.gnb__item.is-active > a, .gnb__item:hover > a { color: var(--blue-600); }
.gnb__item.is-active > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 26px;
  height: 2px; background: var(--blue-600);
}

/* 풀와이드 메가메뉴 */
.gnb-bg {
  position: absolute; top: var(--header-h); left: 0; right: 0; height: 0;
  background: rgba(255,255,255,.98); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(28,44,92,.08);
  opacity: 0; visibility: hidden; z-index: 1;
  transition: opacity .3s var(--ease), height .35s var(--ease), visibility .35s;
}
.header.is-open .gnb-bg { opacity: 1; visibility: visible; height: var(--gnb-panel-h, 200px); }

.gnb__sub {
  position: absolute; top: var(--header-h); left: 50%; transform: translateX(-50%);
  width: max-content; padding: 24px 0 30px; z-index: 2;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease) .05s, visibility .3s;
  pointer-events: none;   /* 이웃 컬럼과 겹치는 빈 영역이 클릭을 가로채지 않게 */
}
.header.is-open .gnb__sub { opacity: 1; visibility: visible; }
.gnb__sub li { text-align: center; }
.gnb__sub li a {
  display: inline-block; pointer-events: auto;
  padding: 8px 14px; font-size: 16px; color: var(--ink-500); white-space: nowrap; border-radius: 6px;
}
.gnb__sub li a:hover { color: var(--blue-600); background: var(--blue-50); }
.gnb__sub li a.is-active { color: var(--blue-600); font-weight: 600; }

.header__util { flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; }
.menubtn { display: flex; width: 30px; height: 18px; flex-direction: column; justify-content: space-between; }
.menubtn span { display: block; width: 100%; height: 2px; background: var(--ink-900); border-radius: 2px; transition: background .3s; }

/* ---------- 전체메뉴 ---------- */
.motab {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(460px, 100%); padding: 0 40px 40px;
  background: #fff; overflow-y: auto;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.motab.show { transform: translateX(0); }
.motab__dim { position: fixed; inset: 0; z-index: 199; background: rgba(20,28,50,.5); }
/* sticky 여야 메뉴가 길어 스크롤해도 닫기 버튼이 화면에 남는다 */
.motab__top {
  position: sticky; top: 0; height: 92px; margin: 0 -40px 34px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; border-bottom: 1px solid var(--line); z-index: 2; background: #fff;
}
.motab__logo img { height: 38px; width: auto; }
.motab__close { color: var(--ink-900); display: flex; }
.motab__group { margin-bottom: 34px; }
.motab__group h2 { font-size: 20px; color: var(--blue-600); margin-bottom: 10px; }
.motab__links { display: flex; flex-direction: column; gap: 6px; }
.motab__links a { font-size: 16px; color: var(--ink-700); }
.motab__links a:hover { color: var(--blue-600); }
.motab__info { padding-top: 26px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-700); }
/* 값이 두 줄로 넘어가도 라벨 아래로 파고들지 않게 두 칸으로 나눈다 */
.motab__info p { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: start; }
.motab__info p + p { margin-top: 8px; }
.motab__info strong { color: var(--ink-900); font-weight: 600; }

/* ---------- 맨 위로 ---------- */
.topBtn {
  position: fixed; right: 28px; bottom: 32px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--blue-600); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .25s var(--ease);
}
.topBtn.show { opacity: 1; pointer-events: auto; }
.topBtn:hover { transform: translateY(-2px); }

/* ==========================================================================
   히어로 — 영상 배경
   ========================================================================== */
.hero { position: relative; height: 100vh; min-height: 640px; background: #000; color: #fff; overflow: hidden; }
/* hero.mp4 는 1280×720 이지만 위아래 47px 이 검은 레터박스라 실제 그림은 1280×626 뿐이다.
   그대로 두면 화면 위아래에 검은 띠가 남는다. 세로로 720/626 배 넘치게 만들어
   띠를 컨테이너 밖으로 밀어낸다.
   ▶ 영상을 ffmpeg -vf "crop=1280:626:0:47" 로 다시 인코딩하면
     --hero-video-crop 을 1 로 되돌리면 된다. */
.hero__media { position: absolute; inset: 0; overflow: hidden; --hero-video-crop: 1.1502; }
.hero__media video {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: calc(100% * var(--hero-video-crop));
  object-fit: cover;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 38%, rgba(0,0,0,.7) 100%);
}
.hero__inner {
  position: absolute; left: 0; right: 0; bottom: 74px; z-index: 2;
  max-width: 1660px; margin: 0 auto; padding: 0 40px;
}
/* 시안의 3줄 구성 —  2026 / BUSAN + 제33회… / JAGALCHI FESTIVAL —— 날짜
   제목 열은 내용만큼만 차지하고, 남는 가로폭은 오른쪽 메타 열이 가져간다.
   그래서 가로선이 제목 오른쪽 끝에서 날짜 앞까지 정확히 채워진다. */
.hero__head { display: flex; align-items: flex-end; gap: 40px; }
.hero__title { flex: 0 0 auto; font-size: 50px; font-weight: 700; line-height: 1.24; letter-spacing: -.01em; }
.hero__year, .hero__ln, .hero__title > .hero__en { display: block; }
.hero__ln { display: flex; align-items: baseline; gap: 22px; }
.hero__ko { font-size: 20px; font-weight: 500; color: rgba(255,255,255,.92); letter-spacing: -.03em; }

.hero__meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; }
.hero__place { font-size: 20px; font-weight: 500; line-height: 1.55; color: rgba(255,255,255,.92); }
.hero__dateline { display: flex; align-items: center; gap: 30px; width: 100%; margin-top: 8px; }
.hero__rule { flex: 1 1 auto; height: 1px; background: rgba(255,255,255,.45); }
.hero__date { font-size: 36px; font-weight: 700; line-height: 1.2; letter-spacing: -.03em; white-space: nowrap; }
.hero__date em { font-style: normal; font-size: .62em; font-weight: 600; }

/* 히어로 카피는 로드 직후 한 번 올라온다 */
.js .hero__head > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .hero.is-in .hero__head > * { opacity: 1; transform: none; }
.hero.is-in .hero__meta { transition-delay: .15s; }

/* ==========================================================================
   메인 — 축제 소개 + 프로그램 카드
   ========================================================================== */
.intro { position: relative; padding: 118px 0 130px; background: var(--paper); overflow: hidden; }
/* 배경 물결 — 시안의 back_line 을 섹션 가운데에 옅게 깐다 */
.intro::before {
  content: ""; position: absolute; left: -6%; right: -6%; top: 46%; height: 640px;
  background: url("/img/back_line.png") center/100% 100% no-repeat;
  opacity: .9; pointer-events: none;
}
.intro::after {
  content: ""; position: absolute; top: -70px; right: -130px;
  width: 760px; height: 555px; opacity: .5; pointer-events: none;
  background: url("/img/back_illust_1.png") center/contain no-repeat;
}
.intro .container { position: relative; z-index: 1; }
.intro__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }

.intro__logo { width: min(100%, 500px); margin-bottom: 46px; }
.intro__rule { width: 42px; height: 2px; background: var(--blue-600); margin-bottom: 26px; }
.intro__text { font-size: 17px; color: var(--ink-700); line-height: 1.95; }
.intro__text strong { color: var(--ink-900); font-weight: 700; }
.intro__text + .intro__text { margin-top: 26px; }
.intro__btn { margin-top: 44px; }

/* 프로그램 카드 4장 — 오른쪽 열이 아래로 내려간 엇갈린 배치 */
.pcards { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.pcards__col--b { padding-top: 72px; }
.pcard {
  display: block; border-radius: 18px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pcard + .pcard { margin-top: 40px; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pcard__body { padding: 34px 32px 30px; }
.pcard__date { font-size: 15px; font-weight: 600; color: var(--blue-600); letter-spacing: -.01em; }
.pcard__title { font-size: 24px; margin: 12px 0 16px; }
.pcard__desc { font-size: 15.5px; color: var(--ink-700); line-height: 1.7; }
.pcard__thumb { aspect-ratio: 16 / 10; }
.pcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .pcard__thumb img { transform: scale(1.04); }
/* 카드마다 다른 옅은 색 기운 — 시안의 흰→연한색 그라데이션 */
.pcard--gaemak    .pcard__body { background: linear-gradient(105deg, #fff 42%, #E9F6FE 100%); }
.pcard--gongyeon  .pcard__body { background: linear-gradient(105deg, #fff 42%, #FFFDEB 100%); }
.pcard--chehum    .pcard__body { background: linear-gradient(105deg, #fff 42%, #E7FEEC 100%); }
.pcard--teukbyeol .pcard__body { background: linear-gradient(105deg, #fff 42%, #FAEBFE 100%); }

/* ---------- 참가자 모집 + 찾아오시는 길 ---------- */
.recruit { padding: 108px 0 116px; background: var(--blue-600); color: #fff; }
.recruit__grid { display: grid; grid-template-columns: 1fr 1.32fr; gap: 78px; }
.recruit__col + .recruit__col { padding-left: 78px; border-left: 1px solid rgba(255,255,255,.28); margin-left: -78px; }
.recruit__eyebrow { font-size: 15px; letter-spacing: .05em; color: rgba(255,255,255,.82); }
.recruit__title { font-size: 34px; margin: 4px 0 34px; }

.rec-item {
  display: block; padding: 34px 36px; border-radius: 16px;
  background: var(--blue-700); transition: transform .3s var(--ease), background .3s var(--ease);
}
.rec-item + .rec-item { margin-top: 24px; }
.rec-item:hover { transform: translateY(-3px); background: #1745B4; color: #fff; }
.rec-item__head { display: flex; align-items: flex-start; gap: 20px; }
.rec-item__head h3 { flex: 1 1 auto; font-size: 25px; }
.rec-item__head .icon { color: #fff; margin-top: 4px; transition: transform .3s var(--ease); }
.rec-item:hover .rec-item__head .icon { transform: translateX(5px); }
.rec-item__desc { margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.8); }
.rec-item__foot { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.28); font-size: 15px; color: rgba(255,255,255,.8); }
.rec-item__foot strong { margin-left: 14px; font-size: 17px; font-weight: 700; color: #fff; }

.recruit__map { border-radius: 16px; overflow: hidden; background: #fff; }
.recruit__map iframe, .recruit__map img { display: block; width: 100%; height: 400px; border: 0; object-fit: cover; }
.recruit__addr { margin-top: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 16px; }
.recruit__addr p { flex: 1 1 auto; color: rgba(255,255,255,.95); }
.map-links { display: flex; gap: 10px; flex-wrap: wrap; }
.map-link {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 999px; background: #fff; color: var(--ink-900);
  font-size: 15px; font-weight: 600; transition: transform .25s var(--ease);
}
.map-link:hover { transform: translateY(-2px); color: var(--ink-900); }
.map-link .icon { width: 20px; height: 20px; }

/* ---------- 협력사 ---------- */
.partner { position: relative; padding: 110px 0 120px; background: var(--paper); overflow: hidden; }
.partner::after {
  content: ""; position: absolute; right: -120px; bottom: -140px;
  width: 720px; height: 524px; opacity: .5; pointer-events: none;
  background: url("/img/back_illust_2.png") center/contain no-repeat;
}
.partner .container { position: relative; z-index: 1; }
.partner__row { display: flex; align-items: center; gap: 34px; }
.partner__row + .partner__row { margin-top: 44px; }
.partner__label { flex: 0 0 82px; font-size: 16px; font-weight: 600; color: var(--blue-600); }
.partner__host { font-size: 22px; font-weight: 700; }
.partner__logos { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 56px; }
.partner__logos img { height: 46px; width: auto; }

/* ==========================================================================
   서브 배너 / 서브 탭
   ========================================================================== */
.sub-banner {
  position: relative; padding: calc(var(--header-h) + 62px) 0 0;
  background: #fff; overflow: hidden;
}
.sub-banner::before {
  content: ""; position: absolute; left: 0; right: 0; top: -60px; height: 480px;
  background: url("/img/back_line.png") center top/100% 100% no-repeat;
  pointer-events: none;
}
.sub-banner__inner { position: relative; z-index: 1; max-width: 1660px; margin: 0 auto; padding: 0 40px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 15px; color: var(--ink-500); }
.breadcrumb .icon { width: 14px; height: 14px; color: var(--ink-300); vertical-align: 0; }
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb .is-current { color: var(--ink-700); }
.sub-banner__title { font-size: 46px; margin-top: 18px; letter-spacing: -.04em; }
.sub-banner__line { max-width: 1660px; margin: 60px auto 0; padding: 0 40px; }
.sub-banner__line span { display: block; height: 1px; background: var(--blue-600); }


/* ==========================================================================
   본문 공통 컴포넌트
   ========================================================================== */
.prose { font-size: 17px; color: var(--ink-700); line-height: 1.95; }
.prose > * + * { margin-top: 24px; }
.prose strong { color: var(--ink-900); font-weight: 600; }
.prose em { font-style: normal; color: var(--blue-600); font-weight: 700; }

.note { font-size: 15px; font-weight: 500; color: var(--alert); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.card__title { font-size: 21px; margin-bottom: 12px; }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.bullets { display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 16px; font-size: 16px; color: var(--ink-700); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-600); }

/* 정의형 목록 (축제 개요) */
.deflist { display: grid; gap: 4px; }
.deflist__row { display: grid; grid-template-columns: 118px 1fr; gap: 20px; padding: 14px 0; }
.deflist__key { position: relative; padding-left: 16px; font-weight: 600; color: var(--ink-900); }
.deflist__key::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; background: var(--blue-600); }
.deflist__val { color: var(--ink-700); }

/* 필터 알약 */
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.filter {
  display: inline-flex; align-items: center; height: 46px; padding: 0 26px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-700);
  font-size: 16px; font-weight: 500; transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--blue-600); color: var(--blue-600); }
.filter.is-active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; font-weight: 600; }

/* 일정표 */
.sched + .sched { margin-top: 78px; }
.sched__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.sched__day { font-size: 26px; font-weight: 700; }
.sched__date { font-size: 17px; color: var(--ink-700); }
.sched__head .note { margin-left: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
.table { min-width: 820px; }
.table th, .table td { padding: 20px 16px; text-align: center; font-size: 16px; border-right: 1px solid var(--line); }
.table th:last-child, .table td:last-child { border-right: 0; }
.table thead th { background: var(--blue-600); color: #fff; font-weight: 600; border-right-color: rgba(255,255,255,.28); }
.table tbody tr { border-top: 1px solid var(--line); }
.table tbody tr:first-child { border-top: 0; }
.table tbody td { color: var(--ink-700); }
.table tbody td:first-child { background: var(--paper); font-weight: 500; color: var(--ink-900); }
.table__kind { display: inline-flex; align-items: center; gap: 12px; }
.table__kind span:last-child { color: var(--ink-700); }

/* 아직 안 들어온 사진 자리 — jg_photo() 가 찍는다 */
.photo-empty {
  width: 100%; height: 100%; min-height: 180px; display: flex;
  align-items: center; justify-content: center; background: #D9D9D9;
}
.photo-empty span { font-size: 14.5px; color: #8C8C93; letter-spacing: -.01em; }

/* 프로그램 카드 (주요 프로그램) */
.prog {
  display: block; transition: transform .3s var(--ease);
}
.prog:hover { transform: translateY(-4px); }
.prog__thumb { aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; background: #D9D9D9; }
.prog__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.prog:hover .prog__thumb img { transform: scale(1.05); }
.prog__head { display: flex; align-items: center; gap: 16px; margin: 26px 0 18px; }
.prog__title { flex: 1 1 auto; font-size: 23px; }
.prog__meta { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.prog__meta div { display: grid; grid-template-columns: 46px 1fr; gap: 14px; font-size: 15.5px; }
.prog__meta dt { color: var(--ink-500); }
.prog__meta dd { color: var(--ink-900); }

/* ---------- 축제소개 ---------- */
/* 좌우 양쪽 모서리에 옅은 원 장식 — 시안의 sub1 상단 */
.deco--both::after {
  content: ""; position: absolute; left: -220px; top: 40px; z-index: 0;
  width: 700px; height: 512px; opacity: .5; pointer-events: none;
  transform: scaleX(-1);
  background: url("/img/back_illust_2.png") center/contain no-repeat;
}
.deco--both::before { top: 180px; right: -220px; }

.fest-intro { max-width: 860px; margin: 0 auto; text-align: center; }
.fest-intro__logo { width: min(100%, 440px); margin: 0 auto 46px; }
.fest-intro__en { font-size: 17px; font-weight: 500; letter-spacing: .02em; color: var(--ink-500); }
.fest-intro__title { font-size: 38px; margin-top: 10px; }
.wave-rule { display: block; width: 240px; height: 16px; margin: 26px auto 44px; }
.fest-intro__body { font-size: 17px; line-height: 2; color: var(--ink-700); }
.fest-intro__body p + p { margin-top: 30px; }
.fest-intro__lead { margin-top: 44px; font-size: 21px; font-weight: 700; line-height: 1.8; }
.fest-intro__lead em { font-style: normal; color: var(--blue-600); }

.fest-outline { display: grid; grid-template-columns: 420px 1fr; gap: 80px; align-items: center; }
.fest-outline__poster { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #D9D9D9; }
.fest-outline__poster .photo-empty { min-height: 590px; }
.fest-outline__poster img { width: 100%; }
.fest-outline__logo { width: min(100%, 300px); margin-bottom: 34px; }
.fest-outline .deflist { padding-top: 34px; border-top: 1px solid var(--line); }
.fest-outline .deflist__row { grid-template-columns: 108px 1fr; }
.fest-outline__btn { margin-top: 40px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* 배치도 */
.mapview { border-radius: var(--radius); overflow: hidden; background: var(--blue-50); }
.mapview img { width: 100%; }
.mapview .photo-empty { min-height: 460px; }
.legend { margin-top: 34px; padding: 34px 38px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.legend__title { font-size: 19px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.legend__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 30px; }
.legend__list li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: var(--ink-700); }
.legend__dot { width: 10px; height: 10px; border-radius: 3px; flex: none; background: var(--blue-600); }

/* 게시판 목록 */
.board { border-top: 2px solid var(--ink-900); }
.board__row { display: grid; grid-template-columns: 76px 1fr 132px; gap: 24px; align-items: center; padding: 26px 12px; border-bottom: 1px solid var(--line); transition: background .2s var(--ease); }
.board__row:hover { background: var(--paper); }
.board__no { text-align: center; color: var(--ink-500); font-size: 15px; }
.board__title { font-size: 17px; font-weight: 500; }
.board__date { text-align: right; color: var(--ink-500); font-size: 15px; }
.board__empty { padding: 90px 20px; text-align: center; color: var(--ink-500); border-bottom: 1px solid var(--line); }

/* 갤러리 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gallery figure { border-radius: var(--radius); overflow: hidden; background: #D9D9D9; }
.gallery img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { padding: 18px 20px; background: #fff; font-size: 16px; font-weight: 500; }

/* 모집 안내 */
.hero-poster { display: grid; grid-template-columns: 420px 1fr; gap: 70px; align-items: start; }
.hero-poster__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--blue-50); }
.hero-poster__img .photo-empty { min-height: 540px; }

/* 신청 안내 박스 */
.applybox { padding: 40px 44px; background: var(--blue-50); border-radius: var(--radius); }
.applybox__title { font-size: 20px; margin-bottom: 8px; }
.applybox__desc { font-size: 16px; color: var(--ink-700); }
.applybox__btns { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 협력사 페이지 ---------- */
.partner-block { padding: 44px 0; border-top: 1px solid var(--line); }
.partner-block:first-of-type { border-top: 0; padding-top: 0; }
.partner-block__title { font-size: 21px; color: var(--blue-600); margin-bottom: 18px; }
.partner-block__host { font-size: 24px; font-weight: 700; }
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.partner-grid li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  min-height: 168px; padding: 28px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); text-align: center;
}
.partner-grid img { height: 44px; width: auto; }
.partner-grid span { font-size: 15px; color: var(--ink-500); }

/* ---------- 찾아오시는 길 ---------- */
.findway {
  margin-top: 34px; padding: 30px 34px; background: var(--paper); border-radius: var(--radius);
  display: flex; align-items: center; flex-wrap: wrap; gap: 20px;
}
.findway__addr { flex: 1 1 300px; }
.findway__label { font-size: 14.5px; font-weight: 600; color: var(--blue-600); }
.findway__value { font-size: 18px; font-weight: 600; margin-top: 4px; }
.findway .map-link { border: 1px solid var(--line); }
.card__icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- 주요 프로그램 ---------- */
.prog-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.prog-filter .filters { flex: 1 1 auto; }
.prog[hidden] { display: none; }

/* ---------- 모집 안내 ---------- */
.applybox__tel { margin-top: 22px; font-size: 15px; color: var(--ink-500); }

/* 화면에는 안 보이고 스크린리더만 읽는 텍스트 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   푸터
   ========================================================================== */
.footer { padding: 74px 0 44px; background: var(--ink-900); color: rgba(255,255,255,.72); font-size: 15px; }
.footer__top { display: grid; grid-template-columns: 300px 1fr auto; gap: 60px; }
.footer__logo img { height: 76px; width: auto; }
.footer__info p + p { margin-top: 8px; }
.footer__nav { display: flex; gap: 58px; }
.footer__nav h3 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 18px; }
.footer__nav ul { display: grid; gap: 9px; }
.footer__nav a { font-size: 15px; color: rgba(255,255,255,.6); }
.footer__nav a:hover { color: #fff; }
.footer__bottom {
  margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
}
.footer__policy { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.footer__policy a:first-child { color: #fff; font-weight: 600; }
.footer__policy a:hover { color: #fff; }
.footer__policy .bar { width: 1px; height: 12px; background: rgba(255,255,255,.3); }
.footer__copy { margin-left: auto; font-size: 14.5px; color: rgba(255,255,255,.6); }

/* ==========================================================================
   반응형
   ========================================================================== */
@media (max-width: 1280px) {
  .container, .header__inner, .sub-banner__inner, .sub-banner__line, .hero__inner { padding-left: 28px; padding-right: 28px; }
  .gnb__list { gap: 34px; }
  .recruit__grid { gap: 52px; }
  .recruit__col + .recruit__col { padding-left: 52px; margin-left: -52px; }
  .footer__nav { gap: 38px; }
  .footer__top { grid-template-columns: 240px 1fr auto; gap: 40px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 70px; }

  /* 손가락으로 누르는 것은 최소 44px — 보이는 크기는 그대로 두고 여백만 넓힌다 */
  .menubtn { box-sizing: content-box; padding: 13px 7px; margin-right: -7px; }
  .header__logo a { display: inline-block; padding: 6px 0; }
  .motab__close { box-sizing: border-box; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -10px; }
  .motab { padding: 0 24px 40px; }
  .motab__top { height: 76px; padding: 0 24px; margin: 0 -24px 28px; }
  .motab__links a { display: flex; align-items: center; min-height: 44px; }
  .footer__nav a { display: inline-flex; align-items: center; min-height: 40px; }

  .gnb { display: none; }
  .header__logo img { height: 38px; }
  .section, .intro, .recruit, .partner { padding-top: 82px; padding-bottom: 88px; }
  .section-title { font-size: 30px; }
  .hero { min-height: 600px; }
  .hero__title { font-size: 38px; }
  .hero__date { font-size: 28px; }
  .hero__head { gap: 26px; }
  .hero__inner { bottom: 62px; }
  .intro__grid { grid-template-columns: 1fr; gap: 56px; }
  .intro__logo { max-width: 420px; }
  .recruit__grid { grid-template-columns: 1fr; gap: 60px; }
  .recruit__col + .recruit__col { padding-left: 0; margin-left: 0; border-left: 0; padding-top: 56px; border-top: 1px solid rgba(255,255,255,.28); }
  .sub-banner { padding-top: calc(var(--header-h) + 40px); }
  .sub-banner__title { font-size: 34px; }
  .sub-banner__line { margin-top: 42px; }
  .legend__list { grid-template-columns: repeat(3, 1fr); }
  .hero-poster { grid-template-columns: 320px 1fr; gap: 44px; }
  .fest-intro__logo { max-width: 340px; margin-bottom: 34px; }
  .fest-intro__title { font-size: 30px; }
  .fest-outline { grid-template-columns: 340px 1fr; gap: 46px; }
  .fest-outline__poster .photo-empty { min-height: 470px; }
  .deco--both::after { left: -300px; }
  .deco--both::before { right: -300px; }
  .gallery, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__logo img { height: 64px; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .container, .header__inner, .sub-banner__inner, .sub-banner__line, .hero__inner { padding-left: 20px; padding-right: 20px; }
  .section, .intro, .recruit, .partner { padding-top: 60px; padding-bottom: 64px; }
  .section-head { margin-bottom: 32px; }
  .section-title { font-size: 25px; }

  .hero { min-height: 540px; }
  .hero__inner { bottom: 46px; }
  .hero__title { font-size: 28px; }
  .hero__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero__ln { gap: 14px; }
  .hero__ko { font-size: 15px; }
  .hero__meta { width: 100%; align-items: flex-start; }
  .hero__place { font-size: 15px; }
  .hero__dateline { gap: 0; margin-top: 4px; }
  .hero__rule { display: none; }
  .hero__date { font-size: 26px; }

  .intro::before { top: 60%; height: 380px; }
  .intro__logo { max-width: 300px; margin-bottom: 34px; }
  .intro__text { font-size: 16px; }
  .pcards { grid-template-columns: 1fr; gap: 20px; }
  .pcards__col--b { padding-top: 0; }
  .pcard + .pcard { margin-top: 20px; }
  .pcards__col + .pcards__col { margin-top: 20px; }
  .pcard__body { padding: 26px 24px 24px; }
  .pcard__title { font-size: 21px; }

  .recruit__title { font-size: 26px; margin-bottom: 24px; }
  .rec-item { padding: 26px 24px; }
  .rec-item__head h3 { font-size: 20px; }
  .rec-item__foot { margin-top: 20px; padding-top: 18px; }
  .recruit__map iframe, .recruit__map img { height: 280px; }
  .recruit__addr { gap: 18px; }
  .recruit__addr p { flex: 1 1 100%; }

  .partner__row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .partner__row + .partner__row { margin-top: 34px; }
  .partner__logos { gap: 20px 30px; }
  .partner__logos img { height: 34px; }

  .sub-banner__title { font-size: 26px; }
  .breadcrumb { font-size: 13.5px; gap: 8px; }
  .sub-banner__line { margin-top: 30px; }

  .grid--2, .grid--3, .gallery { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; gap: 14px; }
  .partner-grid li { min-height: 0; padding: 24px 20px; }
  .partner-block { padding: 34px 0; }
  .partner-block__host { font-size: 20px; }
  .findway { padding: 24px; }
  .prog-filter { gap: 14px; }
  .prog__title { font-size: 20px; }
  .prog__head { margin: 20px 0 14px; }
  .card { padding: 26px 22px; }
  .deflist__row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .filters { gap: 8px; }
  .filter { height: 42px; padding: 0 18px; font-size: 15px; }
  .sched + .sched { margin-top: 52px; }
  .sched__head .note { margin-left: 0; flex: 1 1 100%; }
  .sched__day { font-size: 22px; }
  .table th, .table td { padding: 16px 12px; font-size: 15px; }
  .legend { padding: 26px 22px; }
  .legend__list { grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
  .board__row { grid-template-columns: 1fr; gap: 8px; padding: 20px 4px; }
  .board__no { display: none; }
  .board__date { text-align: left; }
  .hero-poster { grid-template-columns: 1fr; gap: 34px; }
  .fest-intro { text-align: left; }
  .fest-intro__logo { max-width: 260px; margin-left: 0; }
  .fest-intro__title { font-size: 25px; }
  .fest-intro__body { font-size: 16px; line-height: 1.9; }
  .fest-intro__body br, .fest-intro__lead br { display: none; }
  .fest-intro__body p + p { margin-top: 22px; }
  .fest-intro__lead { font-size: 18px; margin-top: 34px; }
  .wave-rule { width: 180px; margin: 20px 0 34px; }
  .fest-outline { grid-template-columns: 1fr; gap: 36px; }
  .fest-outline__poster { max-width: 340px; }
  .fest-outline__poster .photo-empty { min-height: 400px; }
  .fest-outline__logo { max-width: 220px; margin-bottom: 26px; }
  .fest-outline .deflist { padding-top: 26px; }
  .fest-outline .deflist__row { grid-template-columns: 1fr; }
  .hero-poster__img { max-width: 340px; }
  .hero-poster__img .photo-empty { min-height: 420px; }
  .applybox { padding: 28px 24px; }
  .footer { padding: 54px 0 36px; }
  .footer__nav { flex-wrap: wrap; gap: 24px 34px; }
  .footer__bottom { margin-top: 34px; }
  .footer__copy { margin-left: 0; flex: 1 1 100%; }
  .topBtn { right: 18px; bottom: 18px; width: 48px; height: 48px; }
}

/* 모션 최소화를 켠 사용자에게는 애니메이션을 끈다 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal > span, .hero__head > *, [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* 인쇄 */
@media print {
  .header, .motab, .motab__dim, .topBtn, .recruit__map { display: none !important; }
  .hero { height: auto; min-height: 0; }
}
