/* =========================================================
   부산 메이트 — 흰색 + 맑은 바다색
   기준: design-system/MASTER.md
   ========================================================= */
:root {
  /* 색 (글씨에 쓰는 색은 흰 배경 대비 4.5:1 이상) */
  --white: #ffffff;
  --mist: #f2fafc;        /* 바다 안개: 옅은 배경 */
  --aqua: #1fb5c9;        /* 바다 청록: 장식 전용 */
  --aqua-light: #7fd8e6;  /* 밝은 아쿠아: 장식 전용 */
  --deep: #0b6e85;        /* 깊은 바다: 버튼, 강조 글씨 (흰색과 5.86:1) */
  --deep-dark: #08566a;
  --ink: #123b4a;         /* 본문 (12:1) */
  --ink-soft: #385560;    /* 보조 글씨 (흰 7.97:1, 안개 7.53:1) */
  --line: #cfe8ee;
  --mint: #a6ecf6;        /* 'Feel Busan.'과 같은 색: 상담 신청 버튼 (진남색 글씨와 10.19:1) */
  --mint-dark: #7fe0ef;   /* 버튼 호버 (8.83:1) */
  --on-mint: #0d3340;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  /* 글자 크기 단계 */
  --fs-small: .875rem;
  --fs-body: 1.0625rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 3.4vw, 2.5rem);
  --fs-display: clamp(4rem, 11vw, 8.75rem);

  --header-h: 72px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  /* 움직임 속도 3단계: 버튼·링크 반응 / 펼침 / 사진 확대 */
  --dur-1: .2s;
  --dur-2: .3s;
  --dur-3: .6s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
p, dd { text-wrap: pretty; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--white);
  line-height: 2.04;
  letter-spacing: -.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol, blockquote, figure { margin: 0; }
h1, h2, h3 { line-height: 1.56; font-weight: 700; }
/* 투어 영역(처음 부산이라면, 이 코스부터)은 원래 줄 간격 */
#tours { line-height: 1.7; }
#tours :is(h1, h2, h3) { line-height: 1.3; }
/* 요금 영역도 처음 만든 줄 간격 그대로 */
#price { line-height: 1.7; }
#price :is(h1, h2, h3) { line-height: 1.3; }
#price .why-head h2 { line-height: 1.22; }
#price .why-sub { line-height: 1.6; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--deep); color: var(--white); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 2px solid var(--mint);
  border-radius: 999px;
  background: var(--mint);
  color: var(--on-mint);
  font: 700 1rem var(--font);
  cursor: pointer;
  transition: background-color var(--dur-1) ease, border-color var(--dur-1) ease, color var(--dur-1) ease;
}
.btn:hover { background: var(--mint-dark); border-color: var(--mint-dark); }
.btn-line { background: transparent; color: var(--deep); }
.btn-line:hover { background: var(--mist); color: var(--deep-dark); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- 상단 메뉴 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; }
.header-cta { display: none; }
/* 언어 전환 버튼 (한국어 <-> English) */
.lang-toggle {
  min-width: 52px; min-height: 44px; padding: 0 14px; margin-right: 12px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--white);
  color: var(--deep); font: 500 1.0625rem var(--font); letter-spacing: inherit; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--deep); }
.site-header.on-photo:not(.is-scrolled) .lang-toggle { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--white); }
@media (min-width: 761px) { .lang-toggle { order: 3; margin: 0 0 0 14px; } } /* header 간격 16 + 14 = 메뉴 간격 30px */
@media (max-width: 420px) { .header-cta { display: none !important; } }

.logo-text, .header-cta { white-space: nowrap; }
@media (max-width: 359px) { .logo-text { display: none; } }
.logo-mark { width: 36px; height: 36px; }
.logo-text { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { font-weight: 500; color: var(--ink-soft); padding: 10px 0; }
.site-nav a[aria-current="true"] { color: var(--deep); }
.site-nav a:not(.btn):hover { color: var(--deep); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* 상단 메뉴: 투어·소개·이용 방법·상담 신청·EN 모두 같은 크기, 굵기는 홈 버튼(700)과 같게 */
.site-header .site-nav a,
.site-header .site-nav a:not(.btn),
.site-header .header-cta,
.site-header .lang-toggle { font-size: .95rem; font-weight: 700; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: transform var(--dur-2), opacity var(--dur-2); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 홈 메인: 화면 전체 사진 슬라이드 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  /* 위 여백 = 로고 아래 끝(헤더 72px 중 로고 36px가 가운데라 54px)까지: 글 묶음이 로고와 장소 이름 사이 정가운데에 오도록 */
  padding: calc(var(--header-h) - 18px) 0 32px;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero-photos { position: absolute; inset: 0; z-index: -2; }
/* 사진 넘김: 지금 사진은 오른쪽으로 슉 빠지고, 다음 사진이 왼쪽에서 밀고 들어옴 */
/* 빠지는 사진은 오른쪽 끝부터 그라데이션으로 흐려지며 사라지고, 들어오는 사진은 흐릿했다가 또렷해짐 */
.hero-photo { position: absolute; inset: 0; opacity: 0; transform: translateX(-100%); filter: blur(12px); overflow: hidden; }
.hero-photo.is-active, .hero-photo.is-leaving {
  transition: transform .9s cubic-bezier(.77, 0, .18, 1), opacity .9s ease, filter .9s ease;
}
.hero-photo.is-active { opacity: 1; transform: none; filter: none; }
.hero-photo.is-leaving {
  opacity: 0; transform: translateX(100%);
  -webkit-mask-image: linear-gradient(90deg, #000 35%, transparent);
  mask-image: linear-gradient(90deg, #000 35%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo, .hero-photo.is-active, .hero-photo.is-leaving { transform: none; filter: none; -webkit-mask-image: none; mask-image: none; transition: opacity .6s ease; }
  .hero-photo.is-leaving { opacity: 0; }
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
/* 천천히 다가가는 움직임: 활성 사진에만 */
.hero-photo.is-active img { animation: hero-zoom 9s linear forwards; }
/* 확대 폭을 작게(1.04): 크게 확대하면 사진이 흐려 보임 */
@keyframes hero-zoom { from { transform: scale(1.04); } to { transform: scale(1); } }
/* 흰 글씨가 읽히도록 왼쪽 아래만 어둡게 */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 30, 40, .72) 0%, rgba(6, 30, 40, .4) 45%, rgba(6, 30, 40, 0) 72%),
    linear-gradient(0deg, rgba(6, 30, 40, .75) 0%, rgba(6, 30, 40, 0) 50%),
    linear-gradient(180deg, rgba(6, 30, 40, .45) 0%, rgba(6, 30, 40, 0) 22%);
}

/* 위아래 가운데에서 조금 위로: 아래 여백을 더 줘서 글자 묶음을 약 6vh 올림 (아래 공간 약 1.3배) */
.hero-inner { margin-top: auto; margin-bottom: auto; padding-bottom: 8vh; } /* 12vh → 8vh: 글자 묶음을 약간 내림 */
.hero-title { margin: 0; }
.hero-name {
  display: block;
  /* 1.3배 (원래 min(8.5vw, 8.5vh), 최대 6rem). 좁은 화면은 가로 넘침을 막으려고 10vw까지만 */
  font-size: calc(clamp(2.2rem, min(10vw, 11.05vh), 7.8rem) - 2pt); /* 2pt 작게 */
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.025em;
  word-spacing: .04em;
  text-shadow: 0 2px 30px rgba(6, 30, 40, .35);
}
/* 제목 세 줄: 줄마다 블록으로 높이를 분명히 (글자 영역이 서로 겹치지 않게) */
.hero-line { display: block; }
/* Feel Busan.: 옅은 바다 파랑 네온, 전구처럼 깜빡였다가 켜짐 (멈춤 버튼으로 함께 멈춤) */
.hero-name .neon {
  color: #a6ecf6;
  text-shadow: 0 0 6px rgba(127, 216, 230, .75), 0 0 22px rgba(31, 181, 201, .6), 0 0 44px rgba(31, 181, 201, .35);
  animation: neon-flicker 6s 1.3s infinite step-end;
}
@keyframes neon-flicker {
  0%, 2%, 6%, 9%, 13% { color: rgba(166, 236, 246, .28); text-shadow: none; }
  1%, 4%, 7.5%, 11%, 18%, 100% { color: #a6ecf6; text-shadow: 0 0 6px rgba(127, 216, 230, .75), 0 0 22px rgba(31, 181, 201, .6), 0 0 44px rgba(31, 181, 201, .35); }
}
.hero.is-still .hero-name .neon { animation-play-state: paused; }
/* 영어 위·아래 문구와 한국어 문구: 크기·굵기·색·글자 간격·줄 간격을 모두 같게 */
.hero-lead, .hero-en, .hero-desc {
  display: block; font-size: 1.125rem; font-weight: 500; letter-spacing: 0;
  line-height: 1.6; color: var(--white);
}
/* 간격 리듬(8px 단위): 제목 → 한국어 24px, 한국어·영어 문구는 한 묶음 4px, 묶음 → 버튼 40px */
.hero-name { margin-top: 0; }
.hero-en { margin-top: 24px; }
.hero-desc { margin: 4px 0 0; max-width: 42em; text-wrap: balance; }
.hero-points { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; }
.hero-points li, .ticket-list li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before, .ticket-list li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-actions .btn { min-height: 44px; padding: 0 22px; font-size: .95rem; } /* 기본(52px)보다 조금 작게 */
/* 주 버튼(신청): 밝은 청록 + 흰 글씨 / 보조 버튼(투어 보기): 흰 바탕 + 진한 바다색 글씨 */
.btn-deep, .site-header .header-cta, .site-header .site-nav .btn { background: #0b7f94; border-color: #0b7f94; /* 밝은 청록: 흰 글씨와 4.69:1 */ color: var(--white); }
.btn-deep:hover, .site-header .header-cta:hover, .site-header .site-nav .btn:hover { background: var(--deep); border-color: var(--deep); color: var(--white); }
.btn-white { background: var(--white); border-color: var(--white); color: var(--deep); }
.btn-white:hover { background: var(--mist); border-color: var(--mist); color: var(--deep-dark); }
.hero :focus-visible { outline-color: var(--white); }

/* 지금 보이는 장소 이름 + 다음 사진까지 남은 시간 막대 */
.hero-nav { display: flex; align-items: center; gap: 12px; }
.place-now { flex: 1; min-width: 0; }
.place-name { font-weight: 400; font-size: 1.05rem; color: var(--white); }
.place-bar { margin-top: 10px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.place-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6)); }
.place-bar.run span { animation: tab-progress var(--slide-ms, 7000ms) linear forwards; }
.hero.is-still .place-bar span { animation: none; width: 100%; }
@keyframes tab-progress { to { width: 100%; } }

.slide-btn {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 50%; background: transparent; cursor: pointer; color: var(--white);
}
.slide-btn:hover { background: rgba(255, 255, 255, .15); }
.slide-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slide-pause svg { fill: currentColor; stroke: none; }
.slide-pause .i-play, .slide-pause.is-paused .i-pause { display: none; }
.slide-pause.is-paused .i-play { display: block; }
.hero.is-still .hero-photo img { animation-play-state: paused; }

/* 첫 등장은 js/main.js에서 Motion으로 (페이지에서 단 한 번) */
.hero-char { display: inline-block; will-change: transform; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 사진 위 상단 메뉴: 투명 + 흰 글씨, 스크롤하면 흰 바탕 */
.site-header.on-photo:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.on-photo:not(.is-scrolled) .logo-text,
.site-header.on-photo:not(.is-scrolled) .site-nav a:not(.btn) { color: var(--white); }
.site-header.on-photo:not(.is-scrolled) .nav-toggle span { background: var(--white); }

/* ---------- 공통 영역 ---------- */
.section { padding: 112px 0; }
.section-mist { background: var(--mist); }
.section-desc { margin-top: 14px; color: var(--ink-soft); max-width: 36em; }

/* ---------- 투어 ---------- */
/* 투어 4개: 2x2 */
.tours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
.tour { display: flex; flex-direction: column; gap: 18px; }
.tour-img { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--mist); }
.tour-img svg { width: 100%; height: 100%; transition: transform var(--dur-3) var(--ease-out); }
.tour:hover .tour-img svg { transform: scale(1.04); }
.tour-kind { font-size: var(--fs-small); font-weight: 700; color: var(--deep); }
.tour h3 { margin-top: 4px; font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.02em; }
.tour-body > p:not(.tour-kind):not(.tour-meta) { margin-top: 8px; color: var(--ink-soft); max-width: 34em; }
.tours-cta { margin-top: 64px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.tours-cta p { color: var(--ink-soft); }
.tour-meta { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; color: var(--ink-soft); font-weight: 500; }
.tour-meta li { display: inline-flex; align-items: center; gap: 6px; }
.tour-meta svg { width: 17px; height: 17px; fill: none; stroke: var(--deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.tour-feature {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.tour-feature .tour-img { aspect-ratio: 16 / 9; border-radius: 28px; }
/* 투어 사진 넘기기 */
.tour-gallery { position: relative; }
.tg-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tg-track::-webkit-scrollbar { display: none; }
.tg-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.tg-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); color: var(--ink); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s ease; }
.tg-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tg-prev { left: 12px; }
.tg-next { right: 12px; }
.tour-gallery:hover .tg-btn, .tg-btn:focus-visible { opacity: 1; }
@media (hover: none) { .tg-btn { opacity: 1; } }
.tg-count { position: absolute; right: 12px; bottom: 12px; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .8rem; font-weight: 600; }

/* 투어 카드: 가운데 정렬 + 민트 '자세히 보기' 버튼 */
.tour-body { text-align: center; }
.tour-body > p:not(.tour-kind):not(.tour-meta) { margin-left: auto; margin-right: auto; }
.tour-body .tour-meta { justify-content: center; }
.tour-more { margin-top: 20px; }
.tour-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 26px; border-radius: 999px; background: var(--mint); color: var(--on-mint); font-weight: 700; transition: background .2s ease; }
.tour-more summary:hover { background: var(--mint-dark); }
.tour-more summary::-webkit-details-marker { display: none; }
.tour-more summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s ease; }
.tour-more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.tour-more .more-close, .tour-more[open] .more-open { display: none; }
.tour-more[open] .more-close { display: inline; }
.tour-detail { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; margin: 16px 0 0; padding: 20px 22px; border-radius: 16px; background: var(--mist); text-align: left; font-size: .95rem; }
.tour-detail dt { font-weight: 700; color: var(--deep); white-space: nowrap; }
.tour-detail dd { margin: 0; color: var(--ink-soft); }

/* ---------- 소개: 왜 부산 메이트 ---------- */
.why { position: relative; background: var(--mist); padding-top: 140px; }
/* 위쪽 물결: 홈 사진 영역의 바다가 이어지는 느낌 */
/* 영역 사이 물결: 위 영역의 색이 물결 모양으로 내려옴 (--wave = 바로 위 영역의 바탕색) */
.wave { position: absolute; top: -1px; left: 0; width: 100%; height: 70px; }
.wave path { fill: var(--wave, var(--white)); }
.how, .price, .site-footer { position: relative; }
.how { --wave: var(--mist); padding-top: 140px; }    /* 위: 소개(민트) */
.price { padding-top: 140px; }                       /* 위: 이용 방법(흰색) */
.site-footer { --wave: var(--mist); } /* 위: 신청서(민트) */

.why-head h2, .why-sub { text-wrap: balance; }
.why-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.why-eyebrow { color: var(--deep); font-weight: 700; font-size: 1rem; letter-spacing: 0; }
.why-head h2 { margin-top: 14px; font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.46; }
.why-sub { margin: 22px auto 0; color: var(--ink-soft); font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 400; line-height: 1.92; letter-spacing: -.005em; }

/* 이유 4가지: 민트 바탕 위 흰 카드, 아이콘은 'Feel Busan.'과 같은 민트 칸, 오른쪽 위 번호 */
.why-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  counter-reset: why;
}
.why-card {
  position: relative; counter-increment: why;
  padding: 32px 28px 34px;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 18px 40px -30px rgba(11, 110, 133, .45);
}
.why-card::after {
  content: counter(why, decimal-leading-zero);
  position: absolute; top: 30px; right: 28px;
  font-size: .95rem; font-weight: 700; color: var(--deep); letter-spacing: .04em;
}
.why-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--mint); color: var(--deep); }
.why-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.why-card h3 { margin-top: 28px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; }
.why-card p { margin-top: 8px; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; letter-spacing: -.005em; }
@media (max-width: 1024px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 이용 방법: 지하철 노선도 ----------
   가운데 굵은 바다색 노선 위에 정거장(단계)을 두고 역 이름을 좌우로 번갈아 배치.
   마지막 '부산 여행 출발!'은 도착역(진한 바다색 원 + 민트 테두리). 휴대폰은 노선을 왼쪽에 */
.route { --pad: 22px; --c: 56px; --w: 8px; list-style: none; padding: 0; margin: 0 auto; max-width: 880px; }
/* 통통 튀는 공: js/main.js가 이 영역이 보이면 1번에서 5번까지 튀며 지나감 (움직임 줄이기 설정이면 없음) */
.how .container { position: relative; } /* 공은 목록(ol) 밖, 이 컨테이너 안에 둠: 마지막 단계의 :last-child 모양이 깨지지 않게 */
.route-ball {
  position: absolute; left: 0; top: 0; z-index: 2; width: 20px; height: 20px; border-radius: 50%;
  background: var(--deep); box-shadow: 0 8px 10px -6px rgba(11, 110, 133, .6);
  opacity: 0; pointer-events: none; transform-origin: 50% 100%;
}
.route li {
  position: relative; display: grid; grid-template-columns: 1fr var(--c) 1fr; column-gap: 32px; align-items: start;
  padding: var(--pad) 0;
}
/* 노선: 이 역 중심에서 다음 역 중심까지 */
.route li:not(:last-child)::before {
  content: ""; position: absolute; z-index: 0;
  left: calc(50% - var(--w) / 2); width: var(--w);
  top: calc(var(--pad) + var(--c) / 2); bottom: calc(-1 * (var(--pad) + var(--c) / 2));
  background: var(--mint-dark); /* 대표 민트 계열 */
}
.stop {
  position: relative; z-index: 1; grid-column: 2; grid-row: 1 / span 2;
  width: var(--c); height: var(--c); display: grid; place-items: center;
  border-radius: 50%; background: var(--white); border: 5px solid var(--mint-dark);
  font-weight: 800; font-size: 1.3rem; color: var(--deep);
}
.route h3, .route p { grid-column: 3; }
.route li:nth-child(even) :is(h3, p) { grid-column: 1; text-align: right; }
.route h3 { margin-top: 6px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.route p { margin-top: 2px; color: var(--ink-soft); font-size: 1rem; line-height: 1.92; }
/* 도착역 */
.route li:last-child .stop { background: var(--deep); color: var(--white); box-shadow: 0 0 0 6px var(--mint); }
.route li:last-child h3 { color: var(--deep); font-size: 1.4rem; margin-top: 4px; }
@media (max-width: 600px) {
  .route { --pad: 18px; --c: 48px; --w: 6px; }
  .route li { grid-template-columns: var(--c) 1fr; column-gap: 18px; }
  .route li:not(:last-child)::before { left: calc(var(--c) / 2 - var(--w) / 2); }
  .stop { grid-column: 1; font-size: 1.15rem; border-width: 4px; }
  .route h3, .route p, .route li:nth-child(even) :is(h3, p) { grid-column: 2; text-align: left; }
}

/* ---------- 요금: 탑승권 모양 카드 ---------- */
.price { background: var(--mist); }
/* 왼쪽 가격표(깊은 바다색) + 오른쪽 내용, 사이에 절취선과 반원 홈(mask로 뚫음) */
.ticket {
  --cut: 38%; --r: 16px;
  --notch: radial-gradient(circle var(--r) at var(--cut) 0, #0000 98%, #000) top / 100% 51% no-repeat,
           radial-gradient(circle var(--r) at var(--cut) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  display: grid; grid-template-columns: var(--cut) 1fr;
  max-width: 1080px; margin: 0 auto;
  border-radius: 28px; overflow: hidden; background: var(--white);
  -webkit-mask: var(--notch); mask: var(--notch);
}
.ticket-stub {
  display: flex; flex-direction: column;
  padding: 28px 36px 30px;
  color: var(--on-mint);
  /* 맨 아래 물결 무늬: 로고의 파도 */
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 14'%3E%3Cpath d='M0 7 Q15 0 30 7 T60 7' fill='none' stroke='%230B6E85' stroke-opacity='.4' stroke-width='2'/%3E%3C/svg%3E") 0 calc(100% - 18px) / 60px 14px repeat-x;
}
.ticket-brand { font-size: .95rem; font-weight: 700; color: var(--deep-dark); }
.ticket-unit { margin-top: 18px; font-weight: 600; color: var(--white); }
.ticket-amount {
  margin-top: 6px; color: var(--white);
  font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; line-height: 1;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* 광안대교 + 스카이캡슐: 가격표 폭 전체, 물결 바로 위 */
.ticket-scene { width: calc(100% + 72px); max-width: none; height: auto; margin: auto -36px 0; padding-top: 12px; }
.ticket-scene .bridge { fill: none; stroke: rgba(11, 110, 133, .55); stroke-width: 1.5; stroke-linecap: round; }
.ticket-scene .rail { fill: none; stroke: var(--deep); stroke-width: 2.5; }
.ticket-scene .pods rect { fill: var(--deep); }
.ticket-scene .pods g:nth-child(2) rect:first-child { fill: var(--white); }
.ticket-scene .pods g:nth-child(3) rect:first-child { fill: var(--on-mint); }
.ticket-scene .pods .win { fill: var(--mint); opacity: .9; }
/* 영역이 보이면 캡슐이 왼쪽에서 레일을 따라 들어와 멈춤 (한 번, js/main.js) */
.ticket-scene .pods { transition: transform 3s var(--ease-out); }
.ticket.arriving .pods { transform: translateX(-340px); }
.won { font-size: .5em; vertical-align: .7em; margin-right: .08em; }
.ticket-body { display: flex; flex-direction: column; justify-content: center; padding: 36px 56px; border-left: 2px dashed var(--line); }
/* 출발 - 도착: 탑승권 노선 */
.ticket-route { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.ticket-route p { display: grid; }
.ticket-route p:last-child { text-align: right; }
.ticket-route span { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.ticket-route strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.route-line { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--aqua) 0 6px, transparent 6px 12px); }
.route-line::before, .route-line::after { content: ""; position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--deep); }
.route-line::before { left: 0; } .route-line::after { right: 0; }
.ticket-body h3, .excl h3 { font-size: 1rem; font-weight: 700; color: var(--ink-soft); }
.ticket-list { list-style: none; padding: 0; margin: 14px 0 26px; display: flex; flex-direction: column; gap: 12px; font-size: 1.1rem; font-weight: 700; }
/* 요금 카드의 신청 버튼: 둥근 알약 대신 사각형, 오른쪽 끝에 붙임 */
.ticket-body .btn { align-self: flex-end; border-radius: 0; }

.excl { margin-top: 48px; text-align: center; }
.excl-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.excl-list li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 600;
}
.excl-list svg { width: 20px; height: 20px; fill: none; stroke: var(--deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 신청서: 한 줄 흐름의 단정한 카드 (티켓 모양·왼쪽 이름 칸 없음) ---------- */
.apply { background: var(--mist); color: var(--ink); }
.apply-inner { max-width: 680px; }
.apply-head { margin: 0 auto 36px; text-align: center; }
.apply-eyebrow { color: var(--deep); font-weight: 700; font-size: 1rem; }
.apply-head h2 { margin-top: 10px; font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.4; text-wrap: balance; }
.apply-desc { margin-top: 12px; color: var(--ink-soft); line-height: 1.8; }

.apply-form { display: grid; gap: 32px; padding: 40px; border-radius: 20px; background: var(--white); color: var(--ink); border: 1px solid var(--line); }
/* 묶음: 위에 작은 제목, 아래에 입력칸. 묶음 사이는 가는 선 */
.apply-group + .apply-group { padding-top: 32px; border-top: 1px solid var(--line); }
.group-head { margin-bottom: 18px; }
.group-head h3 { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; color: var(--deep); }
.group-head p { margin-top: 2px; color: var(--ink-soft); font-size: .875rem; line-height: 1.7; }
.group-body { display: grid; gap: 20px; min-width: 0; }

.apply-form .field { gap: 8px; }
.apply-form .field-row { gap: 20px; }
.apply-form label, .apply-form legend { font-size: .9rem; font-weight: 600; color: var(--ink); }
.req { margin-left: 4px; color: var(--deep); font-size: .8rem; font-weight: 600; }
.legend-hint { font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
/* 입력칸·선택 버튼 테두리는 흰 바탕과 3:1 이상 (WCAG 1.4.11) */
.apply-form .field input, .apply-form .field textarea { background: var(--white); border: 1px solid #6f9aa6; border-radius: 10px; min-height: 48px; }
.apply-form input::placeholder, .apply-form textarea::placeholder { color: #5a7581; } /* 4.89:1 */
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 10px; }

/* 선택 버튼: 알약 모양. 선택되면 바다색으로 채워지고 체크 표시가 붙어 색 말고도 구분됨 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span {
  display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 18px;
  border-radius: 999px; background: var(--white); border: 1px solid #6f9aa6;
  font-size: .92rem; font-weight: 500; color: var(--ink);
  transition: background-color var(--dur-1) ease, border-color var(--dur-1) ease, color var(--dur-1) ease;
}
.chip:hover > span { border-color: var(--deep); }
.chip input:checked + span { background: var(--deep); border-color: var(--deep); color: var(--white); }
.chip input:checked + span::before {
  content: ""; width: 10px; height: 5px; margin-top: -3px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg);
}
.chip input:focus-visible + span { outline: 3px solid var(--deep); outline-offset: 2px; }

/* 안내 + 신청 버튼 */
.apply-stub { display: grid; gap: 16px; justify-items: center; text-align: center; padding-top: 32px; border-top: 1px solid var(--line); }
.apply-notice { max-width: 46ch; color: var(--ink-soft); font-size: .875rem; line-height: 1.7; }
.stub-action { display: grid; gap: 8px; justify-items: center; width: 100%; }
.stub-action .btn { width: 100%; }
.apply-pending { color: var(--ink-soft); font-size: .8rem; }

/* 하단 한국어 문구: 영어 화면에서는 숨김 */
html[lang="en"] .bi-ko { display: none; }

.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid #b9dbe3;
  border-radius: 12px;
  background: var(--mist);
  font: 400 1rem var(--font);
  color: var(--ink);
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--deep); outline-offset: 2px; border-color: var(--deep);
}
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: var(--fs-small); font-weight: 500; }
.field-error:empty { display: none; }
.field-help { color: var(--ink-soft); font-size: var(--fs-small); }
.form-status { text-align: center; font-weight: 700; color: var(--deep); }
.form-status:empty { display: none; }

/* ---------- 하단 ---------- */
.site-footer { background: #082c3b; color: rgba(255, 255, 255, .78); padding: 120px 0 32px; } /* 위 물결 70px 포함 */
.footer-center { text-align: center; display: grid; justify-items: center; gap: 8px; }
.footer-logo { color: var(--white); font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 800; letter-spacing: .02em; line-height: 1.32; }
.footer-logo span { color: var(--aqua-light); }
.footer-line { font-size: .95rem; }
.footer-ko { margin-top: 12px; color: var(--white); font-weight: 700; }
.footer-place { margin-top: 16px; color: var(--mint); font-size: .95rem; font-weight: 700; letter-spacing: .08em; }
.copyright { margin-top: 28px; padding-top: 20px; width: 100%; border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-small); color: rgba(255, 255, 255, .55); }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .tours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour, .tour:nth-child(5), .tour:nth-child(6) { grid-column: span 1; }
  .tour:nth-child(5) .tour-img, .tour:nth-child(6) .tour-img { aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .header-cta { display: inline-flex; }
  .site-nav .btn { display: none; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur-1) ease, transform var(--dur-1) ease, visibility var(--dur-1);
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }

  .tour-feature { grid-template-columns: 1fr; gap: 20px; }
}
/* 좁은 화면: 가격표가 위, 내용이 아래. 절취선과 홈도 가로로 */
@media (max-width: 760px) {
  .ticket {
    --cut: 340px;
    --notch: radial-gradient(circle var(--r) at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat,
             radial-gradient(circle var(--r) at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat;
    grid-template-columns: 1fr; grid-template-rows: var(--cut) auto;
  }
  .ticket-stub { padding: 28px 28px 30px; }
  .ticket-scene { width: calc(100% + 56px); margin-inline: -28px; }
  .ticket-body { padding: 32px 28px; border-left: 0; border-top: 2px dashed var(--line); }
  .ticket-body .btn { width: 100%; align-self: stretch; }
  .ticket-list { flex-direction: column; gap: 12px; }
  /* 한 칸만 둘째 줄에 남지 않게 2x2 */
  .excl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .excl-list li { justify-content: center; padding: 0 12px; }
}
@media (max-width: 600px) {
  .hero::after { background: linear-gradient(0deg, rgba(6, 30, 40, .85) 0%, rgba(6, 30, 40, .55) 55%, rgba(6, 30, 40, .35) 100%); }
  .header-cta { padding: 0 14px; font-size: .9rem; }
  .section { padding: 80px 0; }
  .tours, .why-grid { grid-template-columns: 1fr; }
  .why, .how, .price { padding-top: 110px; }
  .why-sub br { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .field-row { grid-template-columns: 1fr; }
  .apply-form { padding: 28px 20px; }
}

/* 움직임 줄이기 설정 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* 하단 링크 + 저작권 및 출처 안내 창 */
.footer-links { margin-top: 20px; }
.footer-links button { min-height: 44px; padding: 0 6px; border: 0; background: none; font: inherit; font-size: .9rem; color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.footer-links button:hover { color: var(--white); }
.legal-dialog { width: min(720px, calc(100% - 32px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: 20px; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(6, 30, 40, .35); overflow: hidden; }
.legal-dialog::backdrop { background: rgba(6, 30, 40, .55); }
.legal-inner { max-height: min(86vh, 900px); overflow-y: auto; padding: 44px clamp(20px, 5vw, 48px) 36px; }
.legal-inner h2 { margin: 0 48px 14px 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.legal-inner h3 { margin: 28px 0 8px; font-size: 1.05rem; font-weight: 700; color: var(--deep); }
.legal-inner p { margin: 0 0 8px; color: var(--ink-soft); line-height: 1.75; }
.legal-inner .legal-copy { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-small); }
.legal-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--mist); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.legal-close:hover { background: var(--line); }
.legal-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }