/* 아홉홀 실내골프 — 실내 골프 연습장 디자인 샘플 (디코랩)
   구성: 스코어카드 = 메뉴(데스크톱 위에 붙어 다님 / 모바일 헤더 아래 가로 띠), 섹션 = 한 홀 */

:root {
  /* 색 — 스코어카드 종이와 티 마커 */
  --color-marker: #3346E0;      /* 티 마커 군청 — 주 버튼·지금 홀 (전환에만) */
  --color-marker-ink: #2233B8;  /* 눌림·hover */
  --color-marker-soft: #E3E6FB; /* 지나간 홀 칸 바탕 */
  --color-card: #F7F6EF;        /* 스코어카드 종이 — 배경 */
  --color-paper: #FCFBF7;       /* 카드 안쪽 흰 종이 */
  --color-ink: #171A26;         /* 인쇄 잉크 — 본문 */
  --color-ink-soft: #4F5366;    /* 보조 글자 */
  --color-graphite: #4B4C55;    /* 연필심 — 손글씨 점수 */
  --color-rule: #C8CBD8;        /* 카드 괘선 */
  --color-kakao: #FEE500;
  /* 잔디(일러스트 전용) */
  --color-fairway: #86C064;
  --color-fairway-stripe: #92CA70;
  --color-sand: #E9DBA9;
  --color-water: #8FB8D9;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-head: "IBM Plex Sans KR", var(--font);
  --font-pencil: "Caveat", "Segoe Print", cursive;

  --fs-h1: clamp(1.9rem, 1.2rem + 2.8vw, 3.05rem);
  --fs-h2: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  --fs-h3: 1.15rem;
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --radius: 6px;
  --wrap: 1180px;
  --gutter: 20px;
  --head-h: 132px;  /* 붙어 다니는 헤더 높이(스코어카드 포함) — 앵커 위치 */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.72;
  color: var(--color-ink);
  background: var(--color-card);
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.28; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; font-family: var(--font-head); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ph { display: inline-block; border: 1.5px dashed #9AA0B8; border-radius: 4px; padding: 0 .4em; color: var(--color-ink-soft); font-size: .92em; line-height: 1.5; }
.note { font-size: var(--fs-small); color: var(--color-ink-soft); }
:focus-visible { outline: 3px solid var(--color-marker); outline-offset: 2px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--color-ink); color: #fff; padding: 8px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

/* ---------- 상단 샘플 안내 띠 ---------- */
.sample-banner { background: var(--color-ink); color: #E7E9F2; font-size: .84rem; line-height: 1.55; }
.sample-banner__inner { max-width: var(--wrap); margin: 0 auto; padding: 9px var(--gutter); display: flex; gap: 10px; align-items: baseline; }
.sample-banner__tag { flex: none; background: var(--color-marker); color: #fff; font-weight: 700; padding: 1px 8px; border-radius: 3px; font-size: .78rem; }
.sample-banner a { color: #fff; font-weight: 600; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--marker { background: var(--color-marker); color: #fff; }
.btn--marker:hover { background: var(--color-marker-ink); }
.btn--line { border-color: var(--color-ink); color: var(--color-ink); background: transparent; }
.btn--line:hover { background: var(--color-ink); color: #fff; }
.btn--kakao { background: var(--color-kakao); color: #191919; }
.btn--kakao:hover { background: #F2D900; }
.btn--sm { min-height: 42px; padding: 0 14px; font-size: .94rem; }

/* ---------- 헤더 + 스코어카드 (붙어 다님) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--color-card);
  border-bottom: 2px solid var(--color-ink);
}
.site-header__inner {
  max-width: 1320px; margin: 0 auto; padding: 8px var(--gutter);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.25; }
.logo__text b { font-family: var(--font-head); font-size: 1.1rem; letter-spacing: -.02em; }
.logo__text small { font-size: .76rem; color: var(--color-ink-soft); }

.card {
  display: grid; grid-template-columns: 50px minmax(0, 1fr) 62px;
  border: 1.5px solid var(--color-ink); border-radius: 4px; background: var(--color-paper);
  font-family: var(--font-head);
}
.card__labels, .card__holes a, .card__out {
  display: grid; grid-template-rows: 40px 21px 21px 32px;
}
.card__labels span, .card__holes a > span, .card__out > span {
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--color-rule); font-size: .8rem; line-height: 1.1;
}
.card__labels span:last-child, .card__holes a > span:last-child, .card__out > span:last-child { border-bottom: 0; }
.card__labels { background: #EDEEF3; border-right: 1.5px solid var(--color-ink); color: var(--color-ink-soft); font-weight: 600; }
.card__labels span { font-size: .74rem; }
.card__holes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); }
.card__holes li { border-right: 1px solid var(--color-rule); min-width: 0; }
.card__holes li:last-child { border-right: 0; }
.card__holes a { text-decoration: none; color: var(--color-ink); transition: background-color .2s, color .2s; }
.card__holes a:hover { background: #EEF0FC; }
.c-no { flex-direction: column; gap: 1px; }
.c-no b { font-size: 1.02rem; line-height: 1; }
.c-no small { font-size: .68rem; color: var(--color-ink-soft); white-space: nowrap; font-weight: 500; }
.c-par i { font-style: normal; display: none; }
.c-m { color: var(--color-ink-soft); font-variant-numeric: tabular-nums; }
.card__out { border-left: 1.5px solid var(--color-ink); background: #EDEEF3; font-weight: 700; }
.card__out .c-m { font-size: .72rem; }

/* 지나간 홀 · 지금 홀 */
.card__holes a.is-done { background: var(--color-marker-soft); }
.card__holes a.is-active { background: var(--color-marker); color: #fff; }
.card__holes a.is-active .c-no small, .card__holes a.is-active .c-m { color: #DCE0FF; }
.card__holes a.is-active > span { border-bottom-color: rgba(255,255,255,.28); }

/* 연필 점수 — 왼쪽에서 오른쪽으로 써지는 것처럼 */
.pencil {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.6em; height: 26px;
  font-family: var(--font-pencil); font-weight: 600; font-size: 1.9rem; line-height: 1;
  color: var(--color-graphite);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .55s cubic-bezier(.4,.1,.3,1);
}
.pencil.is-written { clip-path: inset(-4px -4px -4px -4px); }
.is-active .pencil { color: #fff; }
.pencil.is-birdie::after, .pencil.is-bogey::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border: 1.6px solid currentColor;
}
.pencil.is-birdie::after { border-radius: 50%; transform: rotate(-8deg) scale(1.02, .94); }
.pencil.is-bogey::after { border-radius: 2px; transform: rotate(3deg); }
#out-score { font-size: 1.75rem; color: var(--color-ink); }

/* ---------- 레이아웃 ---------- */
main { display: block; }
section[id] { scroll-margin-top: calc(var(--head-h) + 12px); }
.hero, .hole { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- 히어로 ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 48px; align-items: center;
  padding-top: 56px; padding-bottom: 72px;
}
.hero__kicker { font-family: var(--font-head); font-weight: 600; color: var(--color-ink-soft); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.hero__open { font-size: .84rem; font-weight: 600; padding: 2px 10px; border: 1.5px solid var(--color-ink); border-radius: 999px; color: var(--color-ink); }
.hero__title { font-size: var(--fs-h1); font-weight: 700; }
.hero__lead { margin-top: 18px; font-size: 1.1rem; color: #33374A; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.facts { margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--color-ink); }
.facts > div { padding: 12px 14px 0 0; }
.facts > div + div { padding-left: 14px; border-left: 1px solid var(--color-rule); }
.facts dt { font-family: var(--font-head); font-size: .8rem; font-weight: 600; color: var(--color-ink-soft); }
.facts dd { margin: 2px 0 0; font-size: .95rem; line-height: 1.5; }
.facts__sub { display: block; font-size: .84rem; color: var(--color-ink-soft); }

.course { margin: 0; }
.course__map { width: 100%; height: auto; border-radius: 18px; }
.course__fw path { stroke: var(--color-fairway); stroke-width: 20; }
.course__house { font: 700 12px var(--font-head); fill: var(--color-ink); }
.flag circle { fill: var(--color-paper); stroke: var(--color-ink); stroke-width: 2; transition: fill .2s; }
.flag .flag__g { fill: #A8D67E; stroke: #78AE52; stroke-width: 3; }
.flag .flag__t { fill: var(--color-marker); stroke: #fff; stroke-width: 2; }
.flag text { font: 700 14px var(--font-head); fill: var(--color-ink); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.flag:hover circle:not(.flag__g):not(.flag__t), .flag:focus-visible circle:not(.flag__g):not(.flag__t), .flag.is-active circle:not(.flag__g):not(.flag__t) { fill: var(--color-marker); stroke: var(--color-marker); }
.flag:hover text, .flag:focus-visible text, .flag.is-active text { fill: #fff; }
.cap { margin-top: 10px; font-size: var(--fs-small); color: var(--color-ink-soft); }

/* ---------- 홀(섹션) ---------- */
.hole { padding-top: 76px; padding-bottom: 20px; }
.hole__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.tee-sign {
  display: flex; align-items: stretch; border: 2px solid var(--color-ink); border-radius: 8px; overflow: hidden;
  background: var(--color-paper); font-family: var(--font-head);
}
.tee-sign__no { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--color-ink); color: #fff; font-size: 2.6rem; font-weight: 700; line-height: 1; padding: 10px 16px 8px; min-width: 84px; }
.tee-sign__no small { font-size: .76rem; font-weight: 600; margin-top: 4px; color: #C9CCDA; }
.tee-sign__meta { display: flex; flex-direction: column; justify-content: center; padding: 8px 16px; gap: 2px; }
.tee-sign__meta b { font-size: 1.1rem; }
.tee-sign__meta span { font-variant-numeric: tabular-nums; color: var(--color-ink-soft); font-weight: 600; }
.hole__title h2 { font-size: var(--fs-h2); font-weight: 700; }
.lead { margin-top: 8px; color: #33374A; max-width: 40em; }

.band { margin: 26px 0 0; border-radius: 10px; overflow: hidden; border: 2px solid var(--color-ink); background: #2F6B3A; }
.band__art { width: 100%; height: auto; }
.fw { fill: none; stroke: var(--color-fairway); stroke-width: 66; stroke-linecap: round; stroke-linejoin: round; }
.fw--stripe { stroke: var(--color-fairway-stripe); stroke-dasharray: 30 30; stroke-linecap: butt; stroke-width: 62; }
.sand { fill: var(--color-sand); }
.water { fill: var(--color-water); stroke: #6E9CC4; stroke-width: 3; }
.trace { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 1 10; stroke-linecap: round; opacity: .9; transition: opacity .5s; }
.ball circle { fill: #fff; stroke: #8A8FA6; stroke-width: 1.5; }
.ball-sh ellipse { fill: rgba(10, 30, 12, .38); }

.hole__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; margin-top: 32px; align-items: start; }
.spec { margin: 0; border-top: 2px solid var(--color-ink); }
.spec > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--color-rule); }
.spec dt { font-family: var(--font-head); font-weight: 600; }
.spec dd { margin: 0; color: #33374A; }
.bay-fig svg, .room svg { width: 100%; height: auto; }
.lbl { font: 600 13px var(--font); fill: var(--color-ink); }
.lbl--w { fill: #fff; }
.lbl--s { font: 600 10px var(--font-head); }
.lead-ln path { stroke: var(--color-ink); stroke-width: 1.3; fill: none; }

/* ---------- 2번 홀: 나에게 맞는 시작 ---------- */
.fit { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 32px; margin-top: 32px; align-items: start; }
.fit__form { position: sticky; top: calc(var(--head-h) + 20px); display: grid; gap: 18px; }
.fit__form fieldset { border: 0; margin: 0; padding: 0; }
.fit__form legend { font-family: var(--font-head); font-weight: 700; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--color-ink); border-radius: 999px; background: var(--color-paper);
  font-weight: 600; font-size: 1rem; transition: background-color .2s, color .2s;
}
.chip input:checked + span { background: var(--color-ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--color-marker); outline-offset: 2px; }
.chip:hover span { background: #ECEDF3; }
.chip:hover input:checked + span { background: var(--color-ink); }

.fit__card { background: var(--color-paper); border: 2px solid var(--color-ink); border-radius: 8px; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.fit__label { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--color-ink-soft); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.fit__label small { font-weight: 500; font-size: .8rem; }
.fit__title { font-family: var(--font-head); font-size: clamp(1.25rem, 1rem + .9vw, 1.6rem); font-weight: 700; line-height: 1.3; }
.fit__why { margin-top: 6px; color: #33374A; }

.plan__wrap { overflow-x: auto; }
.plan__table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 480px; }
.plan__table th, .plan__table td { border: 1px solid var(--color-rule); padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.45; }
.plan__table thead th { background: #EDEEF3; font-family: var(--font-head); font-weight: 600; font-size: .84rem; text-align: center; }
.plan__table tbody th { background: #EDEEF3; font-family: var(--font-head); font-weight: 600; white-space: nowrap; font-size: .86rem; width: 5.5em; }
.plan__table td { color: var(--color-graphite); }
.pen { font-family: var(--font-pencil); font-weight: 600; font-size: 1.75em; line-height: .8; color: var(--color-graphite); margin-right: 1px; }
.has-motion .plan__table td.is-fill { animation: pen-in .5s ease-out backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes pen-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.bays__map { width: 100%; height: auto; }
.bays__desk rect { fill: #EDEEF3; stroke: var(--color-rule); stroke-width: 1.5; }
.bays__desk text { font: 600 12px var(--font); fill: var(--color-ink-soft); }
.bays__aisle { font: 500 12px var(--font); fill: #8A8FA6; }
.bay rect { fill: #fff; stroke: var(--color-ink); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.bay text { font: 700 17px var(--font-head); fill: var(--color-ink); text-anchor: middle; transition: fill .3s; }
.bay .bay__sub { font: 600 11px var(--font); fill: var(--color-ink-soft); }
.bay.is-busy rect { fill: #DADCE5; stroke: #A9ADBD; }
.bay.is-busy text { fill: #7C8095; }
.bay.is-pick rect { fill: var(--color-marker); stroke: var(--color-marker); }
.bay.is-pick text { fill: #fff; }
.bay.is-pick .bay__sub { fill: #DCE0FF; }
.bays__legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; color: var(--color-ink-soft); }
.bays__legend li { display: inline-flex; align-items: center; gap: 6px; }
.k { width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--color-ink); display: inline-block; }
.k--free { background: #fff; }
.k--busy { background: #DADCE5; border-color: #A9ADBD; }
.k--pick { background: var(--color-marker); border-color: var(--color-marker); }
.bays__say { margin-top: 8px; font-weight: 600; }

.bill__rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--color-ink); }
.bill__rows li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--color-rule); }
.bill__rows b { white-space: nowrap; }
.bill__sum { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0 6px; font-weight: 700; font-family: var(--font-head); }
.bill__sum b { font-size: 1.35rem; }
.fit__say { background: #EEF0F6; border-left: 4px solid var(--color-ink); padding: 12px 14px; border-radius: 0 4px 4px 0; }
.fit__say q { font-weight: 700; quotes: "“" "”"; }
.fit__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 3번 홀: 레슨 ---------- */
.hole__body--wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.pros { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pro { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px; background: var(--color-paper); border: 1.5px solid var(--color-rule); border-radius: 8px; }
.pro__ph svg { width: 96px; height: 96px; border-radius: 6px; }
.pro h3 { font-size: 1.08rem; }
.pro__tag { display: inline-block; margin: 4px 0 4px; font-size: .84rem; font-weight: 700; color: var(--color-ink); border-bottom: 2px solid var(--color-marker); }
.pro p { font-size: .96rem; color: #33374A; }
.pro__meta { margin-top: 4px; font-size: .86rem !important; }
.lesson-flow h3 { font-size: var(--fs-h3); margin-bottom: 12px; }
.flow-bar { display: flex; height: 52px; border: 2px solid var(--color-ink); border-radius: 6px; overflow: hidden; font-family: var(--font-head); font-weight: 700; font-size: .92rem; margin-bottom: 14px; }
.flow-bar span { display: flex; align-items: center; justify-content: center; }
.flow-bar__a { flex: 1; background: var(--color-ink); color: #fff; }
.flow-bar__b { flex: 2; background: repeating-linear-gradient(90deg, var(--color-paper) 0 16px, #EEF0F6 16px 32px); }

/* ---------- 5번 홀: 요금 ---------- */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.price { width: 100%; border-collapse: collapse; background: var(--color-paper); border: 2px solid var(--color-ink); }
.price caption { text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; padding: 0 0 8px; }
.price caption small { font-weight: 500; font-size: .82rem; color: var(--color-ink-soft); margin-left: 6px; }
.price th, .price td { padding: 11px 12px; border-bottom: 1px solid var(--color-rule); text-align: left; font-weight: 500; }
.price th small { display: block; font-size: .8rem; color: var(--color-ink-soft); }
.price td { text-align: right; font-weight: 700; white-space: nowrap; }
.price tr:last-child th, .price tr:last-child td { border-bottom: 0; }
.note--pad { margin-top: 14px; }

/* ---------- 6번 홀: 처음 오는 날 ---------- */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: st; border: 2px solid var(--color-ink); border-radius: 8px; background: var(--color-paper); }
.steps li { counter-increment: st; padding: 16px; border-right: 1px solid var(--color-rule); }
.steps li:last-child { border-right: 0; }
.steps li::before { content: counter(st); display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-ink); color: #fff; font: 700 .95rem var(--font-head); margin-bottom: 8px; }
.steps b { display: block; font-family: var(--font-head); line-height: 1.35; margin-bottom: 4px; }
.steps p { font-size: .94rem; color: #33374A; }

/* ---------- 7번 홀: 시설 ---------- */
.facs { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--color-ink); }
.facs li { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--color-rule); display: grid; gap: 2px; }
.facs li:nth-child(3n+2), .facs li:nth-child(3n) { padding-left: 16px; border-left: 1px solid var(--color-rule); }
.facs b { font-family: var(--font-head); }
.facs span { color: #33374A; font-size: .96rem; }

/* ---------- 8번 홀: FAQ ---------- */
.faq { margin-top: 32px; border-top: 2px solid var(--color-ink); max-width: 860px; }
.qa { border-bottom: 1px solid var(--color-rule); }
.qa h3 { font-size: 1.05rem; }
.qa button { all: unset; box-sizing: border-box; display: flex; width: 100%; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; font-family: var(--font-head); font-weight: 600; }
.qa button:focus-visible { outline: 3px solid var(--color-marker); outline-offset: 2px; }
.qa button::after { content: "+"; font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.qa.is-open button::after { transform: rotate(45deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.qa__a > p { overflow: hidden; min-height: 0; color: #33374A; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa.is-open .qa__a > p { padding-bottom: 16px; }

/* ---------- 9번 홀: 오시는 길 ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; margin-top: 32px; align-items: start; padding-bottom: 60px; }
.map { margin: 0; }
.map svg { width: 100%; height: auto; border: 2px solid var(--color-ink); border-radius: 8px; }
.map__shop { font: 700 15px var(--font-head); fill: #fff; }
.map__shop--s { font-size: 12px; }
.map__t { font: 600 12px var(--font); fill: var(--color-ink-soft); }
.map__bus { font: 700 11px var(--font); fill: #fff; }
.ph-t { fill: #8A8FA6; }
.info { margin: 0; border-top: 2px solid var(--color-ink); }
.info > div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-rule); }
.info dt { font-family: var(--font-head); font-weight: 600; }
.info dd { margin: 0; }
.hours { width: 100%; border-collapse: collapse; margin-top: 20px; }
.hours caption { text-align: left; font-family: var(--font-head); font-weight: 700; padding-bottom: 6px; }
.hours th, .hours td { padding: 9px 10px; border-bottom: 1px solid var(--color-rule); text-align: left; font-weight: 500; }
.hours td { font-variant-numeric: tabular-nums; }
.hours tr.is-today { background: var(--color-marker-soft); }
.hours tr.is-today th { font-weight: 700; }
.hours tr.is-off td { color: var(--color-ink-soft); }
.hours__today { display: inline-block; margin-left: 6px; font-size: .74rem; font-weight: 700; color: #fff; background: var(--color-marker); padding: 0 6px; border-radius: 3px; }
.visit__info .note { margin-top: 8px; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--color-ink); color: #C9CCDA; margin-top: 40px; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 36px var(--gutter) 40px; display: grid; gap: 10px; font-size: .88rem; }
.site-footer__logo { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: #fff; }
.site-footer .ph { border-color: #6C7088; color: #C9CCDA; }
.site-footer__links { display: flex; gap: 16px; }
.site-footer__links a { color: #C9CCDA; }
.site-footer__links .strong { color: #fff; font-weight: 700; }
.site-footer__credit a { color: #fff; }

/* ---------- 모바일 하단 고정 바 ---------- */
.quickbar { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 60; transform: translateX(-50%);
  width: min(92vw, 420px); background: var(--color-ink); color: #fff; padding: 12px 16px; border-radius: 8px; font-size: .92rem;
}

/* ---------- 움직임: 보이는 상태가 기본, has-motion 일 때만 공이 날아갈 준비 ---------- */
.has-motion .band__art:not(.is-played) .trace { opacity: 0; }

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
  :root { --head-h: 186px; }
  .site-header__inner { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .card { grid-column: 1 / -1; grid-row: 2; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .course { max-width: 620px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li:nth-child(3) { border-right: 0; }
  .steps li:nth-child(n+4) { border-top: 1px solid var(--color-rule); }
}
@media (max-width: 900px) {
  .hole__body, .hole__body--wide, .visit { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fit { grid-template-columns: minmax(0, 1fr); }
  .fit__form { position: static; }
  .prices { grid-template-columns: minmax(0, 1fr); }
  .facs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facs li:nth-child(n) { padding-left: 0; border-left: 0; }
  .facs li:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--color-rule); }
}

/* 모바일: 스코어카드가 헤더 아래 가로 스크롤 띠로 */
@media (max-width: 760px) {
  :root { --head-h: 128px; --fs-body: 1rem; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .sample-banner { font-size: .78rem; }
  .sample-banner__inner { padding: 7px var(--gutter); }
  .site-header__inner { padding: 6px 0 0; gap: 6px 10px; }
  .logo { padding-left: var(--gutter); }
  .logo__mark { width: 34px; height: 34px; }
  .logo__text b { font-size: 1rem; }
  .logo__text small { font-size: .7rem; }
  .site-header__tel { margin-right: var(--gutter); min-height: 38px; padding: 0 12px; font-size: .86rem; }
  .site-header__tel svg { width: 16px; height: 16px; }
  .card {
    display: flex; border: 0; border-top: 1px solid var(--color-rule); border-radius: 0;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding: 0 var(--gutter);
    padding: 0 var(--gutter);
  }
  .card::-webkit-scrollbar { display: none; }
  .card__labels { display: none; }
  .card__holes { display: flex; flex: none; }
  .card__holes li { width: 70px; flex: none; }
  .card__holes a, .card__out { grid-template-rows: 34px 18px 28px; }
  .card__holes li:first-child { border-left: 1px solid var(--color-rule); }
  .c-m { display: none !important; }
  .c-no { flex-direction: row !important; gap: 4px !important; }
  .c-no b { font-size: .98rem; }
  .c-no small { font-size: .66rem; }
  .c-par { font-size: .7rem !important; color: var(--color-ink-soft); }
  .c-par i { display: inline; }
  .is-active .c-par { color: #DCE0FF; }
  .card__out { flex: none; width: 66px; border-left: 1px solid var(--color-ink); border-right: 1px solid var(--color-rule); }
  .card__out .c-no { flex-direction: column !important; gap: 0 !important; }
  .pencil { font-size: 1.65rem; height: 24px; }
  .pencil.is-birdie::after, .pencil.is-bogey::after { width: 21px; height: 21px; margin: -10.5px 0 0 -10.5px; }

  .hero { padding-top: 22px; padding-bottom: 48px; gap: 26px; }
  .hero__kicker { font-size: .9rem; margin-bottom: 8px; }
  .hero__lead { font-size: 1rem; margin-top: 12px; }
  .hero__actions { margin-top: 18px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div, .facts > div + div { padding: 10px 0; border-left: 0; border-bottom: 1px solid var(--color-rule); display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 10px; }
  .facts dd { margin: 0; }

  .hole { padding-top: 56px; }
  .hole__head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tee-sign { justify-self: start; }
  .tee-sign__no { font-size: 2rem; min-width: 66px; padding: 8px 12px 6px; }
  .band { margin-top: 18px; border-radius: 8px; }
  .spec > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .fit { margin-top: 22px; }
  .fit__card { padding: 16px; gap: 22px; }
  .fit__actions .btn, .visit__actions .btn { flex: 1 1 100%; }
  .bay text { font-size: 28px; }
  .bay .bay__sub { font-size: 18px; }
  .bays__desk text { font-size: 17px; }
  .bays__aisle { font-size: 17px; }
  .pro { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .pro__ph svg { width: 72px; height: 72px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li:nth-child(3) { border-right: 0; border-top: 1px solid var(--color-rule); display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 8px; }
  .steps li:first-child { border-top: 0; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .facs { grid-template-columns: minmax(0, 1fr); }
  .facs li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .visit { padding-bottom: 32px; }

  .quickbar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--color-paper); border-top: 2px solid var(--color-ink); padding-bottom: env(safe-area-inset-bottom);
  }
  .quickbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; text-decoration: none; font-size: .8rem; font-weight: 700; }
  .quickbar a + a { border-left: 1px solid var(--color-rule); }
  .quickbar svg { width: 20px; height: 20px; }
  .quickbar__cta { background: var(--color-marker); color: #fff; }
}

/* ---------- 동작 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  /* 3단계(색·투명도 피드백)는 그대로 */
  .btn, .chip span, .card__holes a, .qa__a, .bay rect, .bay text, .pencil, .trace { transition-duration: .2s !important; }
  html { scroll-behavior: auto; }
}
