/* =========================================================
   OO투어 원페이지 — 화면설계서 v1.1 기준
   PC(≥1024 & 높이≥680, 마우스): 풀페이지 스크롤 / 그 외: 네이티브 스크롤
   ========================================================= */

:root {
  --color-primary: #E5484D;
  --color-primary-hover: #CC3D42;
  --color-primary-soft: rgba(229, 72, 77, .15);
  --color-ink: #1A1A1A;
  --color-sub: #6B6B6B;
  --color-line: #E3E3E3;
  --color-error: #D92D20;
  --color-error-bg: #FFF5F5;
  --color-success: #12B76A;
  --color-disabled: #C8C8C8;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F6F6F4;
  --color-bg-consult: #E9EFF8;   /* 상담 섹션: 연한 블루 배경 (v1.9) */
  --color-brand-blue: #13418C;
  --color-dark: #15161A;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, .18);

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

  --gnb-h: 80px;
  --gutter: 40px;
  --z-gnb: 100;
  --z-float: 200;
  --z-modal: 300;
  --z-toast: 400;

  --ease-page: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

@media (max-width: 1023px) {
  :root { --gnb-h: 56px; --gutter: 32px; }
}
@media (max-width: 767px) {
  :root { --gutter: 20px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--gnb-h); }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

.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;
}
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 999;
  background: var(--color-ink); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: calc(1280px + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Full-page mode (JS가 html.is-fullpage 부여) ---------- */
html.is-fullpage { overflow: hidden; }

/* ---------- Section snap mode (모바일·태블릿·작은 화면, JS가 html.is-snap 부여) — v1.2 ----------
   네이티브 스크롤은 유지하면서, 손을 떼면 섹션 경계에 맞춰 멈추고 한 번에 한 섹션씩만 넘어감 */
html.is-snap { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
html.is-snap .section { min-height: 100vh; min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; }
html.is-snap .footer { scroll-snap-align: end; }
/* 화면보다 긴 섹션(상담 폼, 펼친 FAQ)은 내부 블록마다 멈춤 지점을 둬서 끝까지 안정적으로 내려갈 수 있게 */
html.is-snap .is-tall .field,
html.is-snap .is-tall .form__submit,
html.is-snap .is-tall .faq__item { scroll-snap-align: start; scroll-margin-top: calc(var(--gnb-h) + 16px); }
html.is-snap .is-tall .form__hint,
html.is-snap .is-tall .faq__list { scroll-snap-align: end; scroll-margin-bottom: 32px; }
/* 입력 중에는 스냅을 꺼서 키보드·커서 이동과 충돌하지 않게 */
html.is-snap.is-typing { scroll-snap-type: none; }
html.is-fullpage .section { height: 100vh; min-height: 0; }
.section { position: relative; display: flex; align-items: center; }
.section:focus { outline: none; }

/* ---------- Common type ---------- */
/* 섹션 제목 타이포 체계 (v1.14) — 모든 섹션 공통
   상단 라벨: Bold 14px(Mobile 12px), 포인트 컬러 / 메인 타이틀: Bold 28px(Mobile 24px), #111111
   서브 설명문: Regular 16px(Mobile 14px), #666666 */
.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: .14em; line-height: 1.4;
  color: var(--color-primary); margin-bottom: 10px;
}
.eyebrow--light { color: rgba(255, 255, 255, .85); }
.section-title { font-size: 28px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; color: #111111; text-wrap: balance; }
.section-desc { margin-top: 10px; font-size: 16px; font-weight: 400; line-height: 1.6; color: #666666; }
@media (max-width: 767px) {
  .eyebrow { font-size: 12px; margin-bottom: 8px; }
  .section-title { font-size: 24px; }
  .section-desc { margin-top: 8px; font-size: 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-size: 16px; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn--lg { height: 56px; padding: 0 32px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--primary:active { transform: scale(.98); }
.btn--outline { border-color: var(--color-ink); color: var(--color-ink); background: transparent; }
.btn--outline:hover { background: var(--color-ink); color: #fff; }
.btn--ghost { background: var(--color-bg-alt); color: var(--color-ink); }
.btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* =========================================================
   C-01 GNB
   ========================================================= */
.gnb {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-gnb);
  height: calc(var(--gnb-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  color: #fff; background: transparent;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.gnb.is-solid { background: rgba(255, 255, 255, .96); color: var(--color-ink); box-shadow: 0 1px 0 var(--color-line); backdrop-filter: saturate(1.4) blur(8px); }
.gnb__inner {
  height: var(--gnb-h); display: flex; align-items: center; gap: 40px;
  max-width: calc(1280px + var(--gutter) * 2); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
/* 제이로드 J·ROAD CI: 심볼 + 글자 가로 배치. 배너 위(투명 GNB) = 흰색판, 흰 배경 GNB·모바일 메뉴 = 컬러판 */
.gnb__logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.logo-lockup { display: flex; align-items: center; gap: 8px; }
.logo-lockup img { width: auto; }
.logo-mark { height: 40px; }
.logo-word { height: 19px; }
.logo-lockup--color { display: none; }
.gnb.is-solid .logo-lockup--white, body.menu-open .logo-lockup--white { display: none; }
.gnb.is-solid .logo-lockup--color, body.menu-open .logo-lockup--color { display: flex; }
.gnb__nav { margin-left: auto; }
.gnb__nav ul { display: flex; gap: 36px; }
.gnb__nav a { position: relative; display: block; padding: 8px 0; font-weight: 600; text-decoration: none; }
.gnb__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--color-primary); transform: scaleX(0); transition: transform .2s;
}
.gnb__nav a:hover::after, .gnb__nav a.is-active::after { transform: scaleX(1); }
.gnb__burger { display: none; }

@media (max-width: 1023px) {
  .gnb { background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.15) 70%, transparent); }
  .gnb.is-solid { background: rgba(255,255,255,.97); }
  .gnb__nav, .gnb__cta { display: none; }
  .logo-mark { height: 32px; }
  .logo-word { height: 15px; }
  .logo-lockup { gap: 6px; }
  .gnb__burger {
    display: grid; place-content: center; gap: 5px; margin-left: auto;
    width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: inherit;
  }
  .gnb__burger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
  .gnb__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .gnb__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .gnb__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.menu-open .gnb { background: #fff; color: var(--color-ink); box-shadow: none; }
}

/* C-03 Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: calc(var(--z-gnb) - 1);
  background: #fff; padding: calc(var(--gnb-h) + env(safe-area-inset-top, 0px) + 24px) max(var(--gutter), env(safe-area-inset-right, 0px)) 32px max(var(--gutter), env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; justify-content: space-between;
  animation: menuIn .25s var(--ease-out);
}
.mobile-menu a { display: block; padding: 14px 0; font-size: 26px; font-weight: 700; text-decoration: none; }
.mobile-menu__tel { color: var(--color-sub); padding-bottom: env(safe-area-inset-bottom, 0px); }
.mobile-menu__tel a { display: inline; font-size: 20px; color: var(--color-ink); padding: 0; }
@keyframes menuIn { from { transform: translateX(24px); opacity: 0; } }

/* C-05 Indicator — v1.3: 어떤 배경(밝은 섹션·어두운 실사 사진) 위에서도 보이도록
   점 뒤에 반투명 받침(pill)을 깔고, 배경 종류에 따라 받침·점·이름표 색을 바꿈 */
.indicator {
  position: fixed; right: max(24px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%);
  z-index: var(--z-gnb); display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-radius: 999px;
  /* 밝은 섹션: 흰 받침 + 진한 점 */
  --ind-bg: rgba(255, 255, 255, .78); --ind-ring: rgba(0, 0, 0, .08); --ind-dot: var(--color-ink);
  --ind-label-bg: var(--color-ink); --ind-label-fg: #fff;
  background: var(--ind-bg); box-shadow: 0 0 0 1px var(--ind-ring), 0 4px 14px rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  transition: background-color .25s, box-shadow .25s;
}
/* 어두운·사진 배경(메인 배너): 어두운 받침 + 흰 점 + 흰 이름표 */
body[data-current="hero"] .indicator {
  --ind-bg: rgba(10, 10, 14, .5); --ind-ring: rgba(255, 255, 255, .22); --ind-dot: #fff;
  --ind-label-bg: #fff; --ind-label-fg: var(--color-ink);
}
body[data-current="hero"] .indicator button::before { opacity: .6; }
body[data-current="hero"] .indicator button.is-active::before { opacity: 1; }
.indicator button {
  position: relative; width: 24px; height: 28px; border: 0; background: none; padding: 0;
  display: grid; place-items: center; color: var(--ind-dot);
}
.indicator button::before {
  content: ""; width: 8px; height: 8px; border-radius: 8px; background: currentColor; opacity: .45;
  transition: height .25s, opacity .25s;
}
.indicator button.is-active::before { height: 24px; opacity: 1; }
.indicator span {
  position: absolute; right: 34px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 8px;
  background: var(--ind-label-bg); color: var(--ind-label-fg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.indicator button:hover span, .indicator button:focus-visible span, .indicator button.show-label span { opacity: 1; }
/* 모바일·태블릿 (v1.2): 화면 끝에 작게, 터치하면 이동, 섹션이 바뀌면 이름 잠깐 표시 */
@media (max-width: 1023px) {
  .indicator { right: max(4px, env(safe-area-inset-right, 0px)); padding: 4px 0; gap: 0; }
  .indicator button { width: 22px; height: 30px; }
  .indicator button::before { width: 7px; height: 7px; }
  .indicator button.is-active::before { height: 18px; }
  .indicator span { right: 30px; font-size: 12px; }
}
body.menu-open .indicator, body.is-locked .indicator { display: none; }

/* =========================================================
   S1 Hero
   ========================================================= */
.hero { height: 100vh; height: 100svh; min-height: 560px; color: #fff; background: var(--color-dark); overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease, visibility 1s;
  background: var(--slide-bg, #222); visibility: hidden;
  display: flex; align-items: center;
}
/* 이미지가 준비되기 전 표시되는 배경(사진을 assets/img 에 넣으면 그 위를 덮음) */
.hero__slide::before {
  content: attr(data-kanji); position: absolute; right: 6%; bottom: 8%;
  font-size: clamp(120px, 22vw, 340px); font-weight: 800; line-height: 1; letter-spacing: -.04em;
  color: rgba(255,255,255,.07); font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}
.hero__slide[data-slide="0"] { --slide-bg: radial-gradient(120% 90% at 80% 20%, #B8323A 0%, #5E1418 45%, #1E0B0C 100%); }
.hero__slide[data-slide="1"] { --slide-bg: radial-gradient(120% 90% at 70% 30%, #3B3D9E 0%, #1A1B4A 50%, #0B0B1A 100%); }
.hero__slide[data-slide="2"] { --slide-bg: linear-gradient(180deg, #7FA7C9 0%, #3E6A92 45%, #14273A 100%); }
.hero__slide[data-slide="3"] { --slide-bg: linear-gradient(180deg, #C9D6E3 0%, #7088A1 50%, #1F2B38 100%); }
.hero__slide[data-slide="4"] { --slide-bg: radial-gradient(120% 90% at 30% 40%, #D9367A 0%, #5A1A5C 45%, #140A1A 100%); }
.hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1); }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__slide.is-active img { animation: kenburns 6s linear forwards; }
@keyframes kenburns { to { transform: scale(1.08); } }
/* 실사 사진 위 글자 가독성: 슬라이드마다 어둡게 덮는 층 (사진이 복잡해도 대비 4.5:1 이상) */
.hero__slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(0,0,0,.6), rgba(0,0,0,.2) 60%, rgba(0,0,0,.05)), linear-gradient(to top, rgba(0,0,0,.55), transparent 45%);
}
.hero__copy { position: relative; z-index: 2; }
.hero__title { font-size: 56px; line-height: 1.25; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; text-shadow: 0 2px 16px rgba(0,0,0,.25); }
.hero__sub { margin-top: 20px; font-size: 20px; color: rgba(255,255,255,.9); text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.hero__cta { margin-top: 40px; }
/* 슬라이드가 바뀔 때마다 문구가 아래에서 올라오며 등장 */
.hero__slide.is-active .hero__copy > * { animation: fadeUp .6s var(--ease-out) both; animation-delay: .25s; }
.hero__slide.is-active .hero__copy > :nth-child(2) { animation-delay: .35s; }
.hero__slide.is-active .hero__copy > :nth-child(3) { animation-delay: .45s; }
.hero__slide.is-active .hero__copy > :nth-child(4) { animation-delay: .55s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }

.hero__controls {
  position: absolute; left: 0; right: 0; bottom: 56px; z-index: 2;
  display: flex; align-items: center; gap: 16px;
}
.hero__progress { display: flex; gap: 8px; }
.hero__progress button { width: 48px; height: 32px; padding: 0; border: 0; background: none; display: grid; align-items: center; }
.hero__progress i { display: block; height: 3px; background: rgba(255,255,255,.35); border-radius: 2px; overflow: hidden; position: relative; }
.hero__progress i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__progress [aria-selected="true"] i::after { animation: progress var(--slide-ms, 5000ms) linear forwards; }
.hero.is-paused .hero__progress [aria-selected="true"] i::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.hero__count { font-size: 14px; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
.hero__count b { color: #fff; }
.hero__pause, .hero__arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.15);
  color: #fff; display: grid; place-items: center; font-size: 13px; line-height: 1;
}
.hero__arrow { font-size: 24px; padding-bottom: 3px; }
.hero__arrow--prev { order: -1; }
.hero__pause:hover, .hero__arrow:hover { background: rgba(255,255,255,.18); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2;
  font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.75); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero__scroll span { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); animation: bounce 1.6s infinite; }
@keyframes bounce { 50% { transform: translateY(5px) rotate(45deg); } }

@media (max-width: 767px) {
  .hero__slide { align-items: flex-end; padding-bottom: 120px; }
  .hero__slide::after { background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.2) 65%, rgba(0,0,0,.1)); }
  .hero__title { font-size: 32px; line-height: 1.3; }
  .hero__sub { font-size: 16px; margin-top: 12px; }
  .hero__cta { display: flex; width: 100%; height: 52px; margin-top: 28px; }
  .hero__arrow, .hero__scroll { display: none; }
  .hero__controls { bottom: 40px; gap: 12px; }
  .hero__progress button { width: 28px; }
  .hero__pause { width: 36px; height: 36px; }
}

/* =========================================================
   S2 Products
   ========================================================= */
.products { background: var(--color-bg-alt); padding-block: calc(var(--gnb-h) + 24px) 48px; }
html.is-fullpage .products { padding-block: var(--gnb-h) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.filter { display: flex; gap: 8px; }
.filter__btn {
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--color-line); background: #fff;
  font-size: 15px; font-weight: 600; color: var(--color-sub); transition: all .2s;
}
.filter__btn:hover { color: var(--color-ink); border-color: var(--color-ink); }
.filter__btn.is-active { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* PC: 상품이 3개를 넘으면 한 줄에 3개씩 보이고 화살표로 넘김 (2026-11-15) */
@media (min-width: 1024px) {
  .cards { --gap: 24px; display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; padding: 6px 6px 18px; margin: -6px -6px -18px; }
  .cards::-webkit-scrollbar { display: none; }
  .cards > .card { flex: 1 1 0; min-width: 0; scroll-snap-align: start; scroll-margin-left: 6px; }
  /* 상품이 3개를 넘으면 4번째 카드가 오른쪽에 살짝 보이게 (더 있다는 신호) */
  .cards.has-more > .card { flex: 0 0 calc((100% - 3 * var(--gap)) / 3.25); }
  .cards-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
  .cards-nav[hidden] { display: none; }
  .cards-nav__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #D9D9D6; background: #fff; color: var(--color-ink); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, border-color .15s, opacity .15s; }
  .cards-nav__btn:hover:not(:disabled) { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
  .cards-nav__btn:disabled { opacity: .35; cursor: default; }
  .cards-nav:not([hidden]) ~ .data-date { margin-top: -30px; max-width: calc(100% - 120px); }
  .cards-nav[hidden] ~ .data-date { margin-top: 36px; }
}
@media (max-width: 1023px) { .cards-nav { display: none !important; } }
@media (min-width: 1024px) { .cards .card__media { aspect-ratio: 16 / 10; } }
@media (min-width: 1024px) and (max-width: 1279px) { .cards { gap: 14px; --gap: 14px; } .card__title { font-size: 16px; } }
.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-card); transition: transform .3s var(--ease-out), box-shadow .3s;
  animation: fadeUp .5s var(--ease-out) backwards;
}
.card.is-hidden { display: none; }
.card__hit { position: absolute; inset: 0; z-index: 2; border: 0; background: none; border-radius: inherit; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #333; }
.card__media::before {
  content: attr(data-kanji); position: absolute; inset: 0; display: grid; place-items: center;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 56px; font-weight: 800; color: rgba(255,255,255,.25);
}
.card__media[data-kanji="京都"] { background: linear-gradient(135deg, #C2413F, #6E1E25); }
.card__media[data-kanji="東京"] { background: linear-gradient(135deg, #3E4AA8, #161A45); }
.card__media[data-kanji="北海道"] { background: linear-gradient(135deg, #9DB3C8, #3B5068); }
.card__media[data-kanji="政策"] { background: linear-gradient(135deg, #5E8C74, #233A30); }
.card__media[data-kanji="研修"] { background: linear-gradient(135deg, #4F6B8A, #1E2B3C); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 22px; flex: 1; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; margin-bottom: 4px; }
.badge--package { background: #FDECEC; color: #B4292F; }
.badge--free { background: #E8EEFF; color: #2D44B5; }
.badge--training { background: #E6F4EC; color: #1F7048; }
.card__title { font-size: 20px; font-weight: 700; line-height: 1.35; }
.card__desc { font-size: 14px; color: var(--color-sub); line-height: 1.55; }
.card__tags { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; font-weight: 700; color: #555; }
.card__price { margin-top: auto; padding-top: 10px; font-size: 14px; }
.card__price b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 1024px) { .cards .card__price b { font-size: clamp(16px, 1.4vw, 22px); } }
.card__price small { display: block; font-size: 12px; color: var(--color-sub); }
.card__more { font-size: 14px; font-weight: 600; color: var(--color-primary); }
/* 카드 배치 정리 (2026-11-15): 제목·설명·태그·가격 줄 위치를 카드끼리 맞춤 */
.card__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: calc(1.55em * 2); }
.card__tags { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.card__price small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-detail { display: none; }
@media (min-width: 1024px) { .card--clone { display: none !important; } }
.data-date { margin-top: 24px; font-size: 13px; color: var(--color-sub); }

@media (hover: hover) {
  .card:hover { transform: translateY(-8px); box-shadow: 0 16px 32px rgba(0,0,0,.12); }
  .card:hover .card__media img { transform: scale(1.05); }
}
.card:active { transform: scale(.98); }

@media (max-width: 1279px) and (min-width: 1024px) { .card__desc { display: none; } }
@media (min-width: 1024px) and (max-height: 820px) { .card__desc, .card__tags { display: none; } .section-head { margin-bottom: 24px; } }
/* 태블릿·모바일: 한 화면에 들어오도록 가로 캐러셀 (v1.2) */
.cards-dots { display: none; }
@media (max-width: 1023px) {
  .products { padding-block: calc(var(--gnb-h) + 16px) 32px; }
  .filter { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .filter__btn { flex: none; }
  .cards {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    /* v1.12: 넘길 때 카드가 화면 가운데에 멈추도록 — 양옆 여백 = (화면 폭 - 카드 폭) / 2 */
    --card-w: 44vw;
    container-type: inline-size;   /* 아래 cqw = 카드 목록의 실제 폭 (스크롤바 제외) */
    margin: 0 calc(var(--gutter) * -1); padding: 4px 0 12px; scroll-padding: 0;
    overscroll-behavior-x: contain;
  }
  /* 첫·마지막 카드도 가운데에 올 수 있도록 양 끝에 빈 공간 (v1.13)
     — 오른쪽 안쪽 여백을 무시하는 휴대폰 브라우저(iOS Safari 등)가 있어 padding 대신 빈 요소 사용
     빈 공간 폭 = (화면 폭 − 카드 폭) ÷ 2 − 카드 사이 간격 */
  .cards::before, .cards::after { content: ""; flex: 0 0 max(0px, calc((100vw - var(--card-w)) / 2 - 16px)); }
  /* 무한 루프 중에는 양 끝 빈 공간 대신 복제본 카드가 그 자리를 채움 */
  .cards.is-loop::before, .cards.is-loop::after { display: none; }
  @supports (width: 1cqw) {
    .cards { --card-w: 44cqw; }
    .cards::before, .cards::after { flex-basis: max(0px, calc((100cqw - var(--card-w)) / 2 - 16px)); }
  }
  .cards::-webkit-scrollbar, .filter::-webkit-scrollbar { display: none; }
  /* 한 번 넘기면 카드 한 장씩 멈춤 (2026-11-15) + 넘기는 중 눌림 효과로 흔들리지 않게 */
  .card { flex: 0 0 var(--card-w); scroll-snap-align: center; scroll-snap-stop: always; animation: none; }
  .card:active { transform: none; }
  .cards-dots { display: flex; justify-content: center; gap: 0; margin-top: 4px; }
  .cards-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
  .cards-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: var(--color-ink); opacity: .2; transition: width .2s, opacity .2s; }
  .cards-dots button[aria-current="true"]::before { width: 20px; opacity: .85; }
  .data-date { margin-top: 8px; text-align: center; }
}
@media (max-width: 767px) {
  .section-head { margin-bottom: 20px; align-items: flex-start; flex-direction: column; gap: 14px; }
  .cards { --card-w: 82vw; }
  @supports (width: 1cqw) { .cards { --card-w: 82cqw; } }
  .card__media { aspect-ratio: 16 / 10; }
}
/* 키가 작은 휴대폰(아이폰 SE 등): 카드 설명을 줄여 한 화면에 맞춤 */
@media (max-width: 1023px) and (max-height: 740px) {
  .card__desc { display: none; }
  .card__body { padding: 16px 18px 18px; }
  .data-date { font-size: 12px; }
}

/* =========================================================
   S3 Consult form
   ========================================================= */
/* ---------- S2-2 일본 전국 차량·가이드 수배 ---------- */
.coverage { background: #fff; padding-block: calc(var(--gnb-h) + 24px) 56px; }
html.is-fullpage .coverage { padding-block: var(--gnb-h) 0; }
.regions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.region {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  width: 100%; height: 100%; padding: 26px 24px 30px; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid #E4E6EA; border-radius: 6px; color: inherit; font: inherit;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease-out);
}
.region__name { font-size: 20px; font-weight: 700; color: #1E2B45; letter-spacing: -.01em; }
.region__cities { font-size: 14px; color: #6B7280; line-height: 1.5; }
.region__go { position: absolute; right: 18px; bottom: 12px; font-size: 12px; font-weight: 600; color: #9A7642; opacity: 0; transition: opacity .2s; }
.region:hover, .region:focus-visible { border-color: #C9A46A; background: #FAF7F0; }
.region:hover .region__go, .region:focus-visible .region__go { opacity: 1; }
.region:focus-visible { outline: 2px solid #C9A46A; outline-offset: 2px; }
.coverage__note { margin-top: 20px; font-size: 13px; color: var(--color-sub); }
@media (max-width: 1023px) {
  .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .region { padding: 18px 16px 20px; gap: 6px; }
  .region__name { font-size: 17px; }
  .region__cities { font-size: 13px; }
  .region__go { display: none; }
}

.consult { background: var(--color-bg-consult); padding-block: calc(var(--gnb-h) + 24px) 64px; }
html.is-fullpage .consult { padding-block: var(--gnb-h) 0; }
.consult__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.consult__lead { margin-top: 20px; font-size: 17px; line-height: 1.7; color: var(--color-sub); max-width: 34em; }
.consult__lead strong { display: block; margin-bottom: 8px; font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--color-ink); }
.consult__note { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--color-primary); }
.consult__contact { margin-top: 32px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.consult__contact dt { color: var(--color-sub); }
.consult__contact dd a { font-size: 22px; font-weight: 800; text-decoration: none; letter-spacing: .01em; }
.consult__benefits { margin-top: 32px; display: grid; gap: 10px; font-weight: 600; }
.consult__benefits li { display: flex; align-items: center; gap: 10px; }
.consult__benefits li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--color-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23E5484D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.form { max-width: 640px; width: 100%; display: grid; gap: 18px; }
/* 폼을 흰 카드로 띄워 배경과 구분 (v1.9) */
.consult .form { background: #fff; padding: 36px 40px; border-radius: var(--radius-lg); box-shadow: 0 1px 0 rgba(19,65,140,.06), 0 12px 32px rgba(19,65,140,.10); }
.form__required-note { font-size: 13px; color: var(--color-sub); }
.req { color: var(--color-primary); }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 15px; font-weight: 600; padding: 0; }
.field__label-row { display: flex; justify-content: space-between; align-items: baseline; }
.counter { font-size: 13px; color: var(--color-sub); font-variant-numeric: tabular-nums; }
.counter.is-warn b { color: #E08A00; }
.counter.is-max b { color: var(--color-error); }

.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; font-size: 16px;
  border: 1px solid var(--color-line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s, background-color .15s; appearance: none;
}
.field textarea { height: auto; min-height: 140px; max-height: 280px; padding: 14px 16px; resize: none; line-height: 1.6; }
.field select {
  padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231A1A1A' stroke-width='1.6'/%3E%3C/svg%3E") right 16px center / 12px no-repeat;
}
.field select:invalid, .field select.is-placeholder { color: var(--color-sub); }
.field ::placeholder { color: #A3A3A3; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #BDBDBD; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border: 2px solid var(--color-primary); padding-left: 15px; box-shadow: 0 0 0 4px var(--color-primary-soft);
}
.field textarea:focus { padding-top: 13px; }
.field.is-error > input, .field.is-error > select, .field.is-error > textarea,
.field input.is-error, .field select.is-error {
  border: 2px solid var(--color-error); padding-left: 15px; background-color: var(--color-error-bg);
}
.field.is-valid:not(.field--email):not(.field--agree) input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2312B76A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.form.is-submitting input, .form.is-submitting select, .form.is-submitting textarea { background-color: #F5F5F5; color: #8A8A8A; }

.field__error {
  display: none; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--color-error);
  animation: errIn .15s ease;
}
.field__error::before {
  content: "!"; width: 16px; height: 16px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--color-error); color: #fff; font-size: 11px; font-weight: 800;
}
.field.is-error .field__error { display: flex; }
@keyframes errIn { from { opacity: 0; transform: translateY(-4px); } }
.field.is-shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.email-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.email-row__at { font-weight: 600; color: var(--color-sub); }
.email-custom { animation: slideDown .2s var(--ease-out); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } }

.field--agree { gap: 6px; }
.agree { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; border-radius: var(--radius-sm); transition: background-color .2s; }
.field--agree.is-error .agree { background: var(--color-error-bg); }
.agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agree label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 500; font-size: 15px; }
.agree__box {
  width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid #BDBDBD; background: #fff; flex: none;
  display: grid; place-items: center; transition: all .15s;
}
.agree input:checked + label .agree__box {
  background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border-color: var(--color-primary);
}
.agree input:focus-visible + label .agree__box { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.agree__tag { color: var(--color-primary); font-weight: 700; }
.agree__view {
  margin-left: auto; min-height: 44px; padding: 0 4px; border: 0; background: none;
  font-size: 14px; color: var(--color-sub); text-decoration: underline; text-underline-offset: 3px;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__submit { position: relative; margin-top: 6px; }
.form__submit[aria-disabled="true"] { background: var(--color-disabled); color: #fff; cursor: not-allowed; }
.form__submit[aria-disabled="true"]:hover { background: var(--color-disabled); }
.spinner { display: none; width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.form.is-submitting .spinner { display: block; }
.form.is-submitting .form__submit { background: var(--color-primary); cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__hint { text-align: center; font-size: 13px; color: var(--color-sub); margin-top: -6px; }
/* 상담 안내 캡션 (v1.14: 타이틀 영역에서 신청 버튼 아래로 이동) */
.form__footnote { display: grid; gap: 2px; margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--color-line); font-size: 12px; line-height: 1.6; color: #666666; }
.form__footnote li { padding-left: 10px; position: relative; }
.form__footnote li::before { content: "·"; position: absolute; left: 0; }

@media (min-width: 1024px) and (max-height: 820px) {
  .form { gap: 12px; }
  .field input[type="text"], .field input[type="tel"], .field select { height: 46px; }
  .field textarea { min-height: 96px; }
  .consult__benefits { display: none; }
  .form__required-note { display: none; }
}
@media (max-width: 1023px) {
  .consult__grid { grid-template-columns: 1fr; gap: 40px; }
  .form { max-width: 640px; }
}
@media (max-width: 767px) {
  .consult { padding-block: 72px 56px; }
  .consult__lead { font-size: 15px; margin-top: 12px; }
  .consult__lead strong { font-size: 17px; }
  .consult__note { font-size: 13px; }
  .consult__contact { margin-top: 20px; }
  .consult__benefits { margin-top: 20px; }
  .field input[type="text"], .field input[type="tel"], .field select { height: 48px; }
  .field textarea { min-height: 120px; }
  .email-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; }
  .field select { padding-left: 12px; padding-right: 32px; background-position: right 12px center; }
}

/* =========================================================
   S4 FAQ
   ========================================================= */
.faq { background: var(--color-bg-alt); padding-block: calc(var(--gnb-h) + 24px) 64px; }
html.is-fullpage .faq { padding-block: var(--gnb-h) 0; }
.faq__grid { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
.faq__lead { margin-bottom: 28px; }
.faq__list { display: grid; gap: 0; border-top: 1px solid #D9D9D6; max-height: calc(100vh - var(--gnb-h) - 96px); overflow-y: auto; }
.faq__item { border-bottom: 1px solid #D9D9D6; }
.faq__item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 18px; font-weight: 600; line-height: 1.45; }
.faq__item summary h3::before { content: "Q. "; color: var(--color-primary); font-weight: 800; }
.faq__item summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #CFCFCC;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%231A1A1A' stroke-width='1.5'/%3E%3C/svg%3E") center / 10px no-repeat;
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 4px 24px 30px; color: #444; max-width: 68ch; animation: fadeUp .25s var(--ease-out); }
@media (max-width: 1023px) {
  .faq__grid { grid-template-columns: 1fr; gap: 32px; }
  .faq__list { max-height: none; overflow: visible; }
}
@media (max-width: 767px) {
  .faq { padding-block: 72px 56px; }
  .faq__item summary { padding: 18px 0; }
  .faq__item summary h3 { font-size: 16px; }
  .faq__item p { padding: 0 0 20px 0; font-size: 15px; }
  .faq__head .btn { display: none; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--color-dark); color: rgba(255,255,255,.62); font-size: 13px; padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); }
.footer__inner { position: relative; display: grid; gap: 16px; }
.footer__logo-img { height: 88px; width: auto; }
.footer__info { font-style: normal; line-height: 1.9; }
.footer__info span + span::before { content: "|"; margin: 0 10px; opacity: .35; }
.footer__info a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer__links b { color: #fff; }
.footer__top {
  position: absolute; right: max(var(--gutter), env(safe-area-inset-right, 0px)); top: 0;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; font-size: 18px;
}
/* 대표번호 (v1.11): PC에서는 글자로만, 터치 기기에서는 눌러서 전화 연결 */
.tel-link { color: rgba(255,255,255,.85); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .tel-link { pointer-events: none; cursor: text; } }
@media (hover: none), (pointer: coarse) {
  .footer__tel .tel-link {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; margin: 4px 0 4px 6px;
    border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #fff; font-weight: 700;
  }
  .footer__tel .tel-link::before {
    content: ""; width: 14px; height: 14px; flex: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}
@media (max-width: 767px) {
  .footer__info span { display: block; }
  .footer__info span + span::before { content: none; }
  .footer__info br { display: none; }
}

/* =========================================================
   C-04 Quick action button
   ========================================================= */
.quick {
  position: fixed; z-index: var(--z-float);
  right: max(32px, calc(env(safe-area-inset-right, 0px) + 16px));
  bottom: max(32px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  height: 64px; min-width: 64px; padding: 0 20px; border-radius: 32px;
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: var(--color-ink); color: #fff; box-shadow: var(--shadow-float); text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.22); /* 어두운 배너 사진 위에서도 테두리가 보이게 */
  opacity: 0; transform: scale(.8); pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease-out), background-color .2s, gap .2s;
}
.quick svg { width: 26px; height: 26px; flex: none; }
.quick__label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; transition: max-width .25s var(--ease-out); }
.quick.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
/* 어두운 푸터 위에서는 흰 버튼으로 반전 (v1.11) */
body.footer-in-view .quick { background: #fff; color: var(--color-ink); border-color: rgba(0,0,0,.08); }
.quick.is-pulse { animation: pulse 1.2s ease-out; }
@keyframes pulse { 0% { box-shadow: var(--shadow-float), 0 0 0 0 rgba(26,26,26,.45); } 100% { box-shadow: var(--shadow-float), 0 0 0 18px rgba(26,26,26,0); } }
@media (hover: hover) {
  .quick:hover { background: #000; gap: 8px; }
  .quick:hover .quick__label { max-width: 140px; }
}
@media (max-width: 767px) {
  .quick { height: 56px; min-width: 56px; padding: 0; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* =========================================================
   Modals (M1, M2, M3)
   ========================================================= */
.modal {
  border: 0; padding: 0; margin: auto; color: var(--color-ink); background: #fff;
  border-radius: var(--radius-lg); box-shadow: 0 24px 64px rgba(0,0,0,.25);
  width: min(720px, calc(100% - 48px)); max-height: 85vh; overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: modalIn .25s var(--ease-out); }
.modal::backdrop { background: rgba(10,10,12,.55); animation: fade .2s; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.modal__grabber { display: none; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px 12px; }
.modal__title { font-size: 22px; font-weight: 700; line-height: 1.35; }
.modal__close { width: 40px; height: 40px; margin-right: -8px; border: 0; background: none; font-size: 18px; border-radius: 50%; }
.modal__close:hover { background: var(--color-bg-alt); }
.modal__body { padding: 8px 28px 24px; overflow-y: auto; overscroll-behavior: contain; }
.modal__foot { padding: 16px 28px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--color-line); }
.modal__foot--split { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }

.pm-media { position: relative; aspect-ratio: 16 / 7.65; /* 2026-11-15: 높이 15% 줄임 (기존 16:9) */ border-radius: var(--radius-md); overflow: hidden; margin-bottom: 20px; }
.pm-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pm-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 20px; }
.pm-meta .card__price { margin: 0; padding: 0; }
.modal .product-detail { display: block; }
.product-detail h4 { font-size: 15px; margin: 20px 0 8px; }
/* 상세 창 공통 틀 (2026-11-15 시안 1 섹션형): 요약 → 포인트 → 진행 순서 → 2단 박스 → 안내 */
.product-detail--t1 > h4 { margin-top: 22px; }
.product-detail--t1 > .pd-lead { margin-top: 0; }
.steps__icon--text { font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.product-detail--t1 .steps li > div > b:only-child { margin-top: 12px; font-size: 15px; font-weight: 600; }
/* 전국 차량·가이드 상세 (부품) */
/* 상세 창 공통 회색 (2026-11-15): 요약 C안 + 포인트 + 세로선 두 칸 */
.pd-lead { padding: 14px 16px 16px; border-radius: 12px; background: #F7F7F6; }
.pd-lead__tag { display: inline-block; margin-bottom: 8px; padding: 3px 11px; border-radius: 999px; background: #FDECEC; color: #C8373C; font-size: 12px; font-weight: 600; }
.pd-lead__title { font-size: 18px; font-weight: 700; line-height: 1.45; color: #1A1A1A; letter-spacing: -.01em; }
.pd-lead__desc { margin-top: 4px; font-size: 14px; line-height: 1.6; color: #777; }
.gd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gd-tiles li { display: flex; align-items: center; gap: 10px; padding: 12px 12px; border-radius: 10px; background: #F5F5F4; text-align: left; font-size: 13px; line-height: 1.45; color: #333; }
.gd-tiles svg { flex: none; color: #555; }
.pd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 12px; border-top: 1px solid #E6E6E4; }
.pd-two__col + .pd-two__col { padding-left: 16px; border-left: 1px solid #E6E6E4; }
.pd-two__cap { margin-bottom: 6px; font-size: 14px; font-weight: 700; color: #999; }
.pd-two__col.is-on .pd-two__cap { color: #1A1A1A; }
.pd-two li { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; line-height: 1.7; color: #666; }
.pd-two__col.is-on li { color: #333; }
.pd-two li svg { flex: none; margin-top: 4px; color: #BBB; }
.pd-two__col.is-on li svg { color: #333; }
.gd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-chips li { padding: 6px 12px; border: 1px solid #E4E6EA; border-radius: 999px; font-size: 13px; color: #333; background: #fff; }
.gd-chips--region li { border-color: #F2F2EF; background: #F2F2EF; color: #444; }
@media (max-width: 560px) { .gd-tiles { grid-template-columns: 1fr; gap: 6px; } .gd-tiles li { padding: 10px 12px; font-size: 14px; } .gd-tiles li br { display: none; } }
.steps__desc { font-size: 14px; color: var(--color-sub); margin-bottom: 16px; }
.steps { position: relative; display: grid; gap: 20px; }
.steps::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; border-left: 2px solid #E8E8E6; }
.steps li { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.steps__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: #F5F5F4; color: #555; display: grid; place-items: center; }
.steps__no { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #999; margin: 2px 0 2px; }
.steps b { display: block; font-size: 16px; color: #1A1A1A; margin-bottom: 2px; }
.steps p { font-size: 14px; color: #555; line-height: 1.55; }
.itinerary { display: grid; gap: 8px; font-size: 15px; }
.itinerary li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; }
.itinerary b { color: var(--color-primary); }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-cols ul { display: grid; gap: 4px; font-size: 14px; color: #444; }
.detail-cols li::before { content: "· "; }
.detail-note { margin-top: 20px; font-size: 13px; color: var(--color-sub); background: var(--color-bg-alt); padding: 10px 14px; border-radius: var(--radius-sm); }

.prose p { margin: 12px 0; font-size: 15px; color: #333; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--color-line); }
.prose th { width: 96px; background: var(--color-bg-alt); font-weight: 600; white-space: nowrap; }

.modal--center { width: min(400px, calc(100% - 40px)); }
.success { padding: 36px 28px 28px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.success__icon { width: 64px; height: 64px; fill: none; stroke: var(--color-success); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success__icon circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .5s ease-out forwards; }
.success__icon path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .3s .4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success__msg { color: #444; line-height: 1.7; }
.success__id { font-size: 14px; color: var(--color-sub); background: var(--color-bg-alt); padding: 8px 14px; border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; }
.success .btn { margin-top: 12px; }

@media (max-width: 767px) {
  .modal--sheet {
    width: 100%; max-width: 100%; max-height: 90vh; max-height: 90svh; margin: auto 0 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .modal--sheet[open] { animation: sheetIn .3s var(--ease-out); }
  .modal--sheet .modal__grabber { display: block; width: 40px; height: 5px; border-radius: 3px; background: #D4D4D4; margin: 10px auto 0; flex: none; }
  .modal__head { padding: 14px 20px 8px; touch-action: none; }
  .modal__title { font-size: 19px; }
  .modal__body { padding: 4px 20px 20px; }
  .modal__foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .detail-cols { grid-template-columns: 1fr; gap: 0; }
}
@keyframes sheetIn { from { transform: translateY(100%); } }

/* =========================================================
   T1 Toast
   ========================================================= */
.toast {
  position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%); max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 16px;
  background: rgba(26,26,26,.94); color: #fff; padding: 14px 20px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-float); animation: toastIn .25s var(--ease-out);
}
.toast button { border: 0; background: none; color: #FF8A8E; font-weight: 700; padding: 4px; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }
@media (max-width: 767px) { .toast { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 32px); } }

/* ---------- Body lock (modal / menu) ---------- */
body.is-locked { overflow: hidden; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__slide.is-active img { animation: none; }
}

/* 상담 폼 v2 (2026-11-15): 두 칸 배치, 목적 선택, 단위 표시 */
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.opt { font-weight: 400; font-size: 13px; color: var(--color-sub); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg__item { position: relative; display: block; cursor: pointer; }
.seg__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg__item span {
  display: flex; align-items: center; justify-content: center; height: 48px; padding: 0 12px;
  border: 1px solid var(--color-line); border-radius: var(--radius-sm); background: #fff;
  font-size: 15px; font-weight: 600; color: #555; transition: border-color .15s, background-color .15s, color .15s;
}
.seg__item:hover span { border-color: #BDBDBD; }
.seg__item input:checked + span { border: 2px solid var(--color-primary); background: var(--color-primary-soft); color: var(--color-primary); }
.seg__item input:focus-visible + span { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.field--purpose.is-error .seg__item span { border-color: var(--color-error); background: var(--color-error-bg); }
.input-unit { position: relative; }
.people-custom { margin-top: 8px; animation: slideDown .2s var(--ease-out); }
.field[data-field="people"] select.is-error { border: 2px solid var(--color-error); padding-left: 15px; background-color: var(--color-error-bg); }
.input-unit input { padding-right: 56px !important; background-image: none !important; }
.input-unit__suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--color-sub); pointer-events: none; }
.field.is-error .input-unit input { border: 2px solid var(--color-error); padding-left: 15px; background-color: var(--color-error-bg); }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 767px) {
  .form-row { gap: 10px; }
  .seg__item span { height: 46px; font-size: 14px; }
}
/* 여행 기간: 달력으로 출발일 ~ 귀국일 (2026-11-15) */
.field input[type="date"] {
  width: 100%; height: 52px; padding: 0 14px; font-size: 16px; font-family: inherit; color: var(--color-ink);
  border: 1px solid var(--color-line); border-radius: var(--radius-sm); background: #fff; appearance: none; -webkit-appearance: none;
  min-width: 0; text-align: left;
}
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input[type="date"]:invalid, .field input[type="date"].is-empty { color: #A3A3A3; }
.field input[type="date"]:focus { outline: none; border: 2px solid var(--color-primary); padding-left: 13px; box-shadow: 0 0 0 4px var(--color-primary-soft); }
.field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
.date-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.date-row__sep { color: var(--color-sub); }
/* 날짜 칸은 완료 체크 표시를 넣지 않음 (좁은 화면에서 날짜가 잘리지 않게) */
.field--period input[type="date"] { background-image: none !important; padding-right: 10px; }
@media (max-width: 480px) {
  .date-row { gap: 4px; }
  .field input[type="date"] { padding: 0 8px; font-size: 14px; letter-spacing: -.03em; }
  .field input[type="date"]:focus { padding-left: 7px; }
  .field input[type="date"]::-webkit-datetime-edit { padding: 0; }
  .date-field__ph { left: 10px; font-size: 15px; }
  /* 휴대폰은 칸을 누르면 달력이 열리므로 작은 달력 아이콘은 숨겨 날짜가 다 보이게 */
  .field input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
}
.period-nights { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--color-primary); }
.date-field { position: relative; display: block; min-width: 0; }
.date-field__ph { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 16px; color: #A3A3A3; pointer-events: none; display: none; }
.date-field input.is-empty:not(:focus) + .date-field__ph { display: block; }
.date-field input.is-empty:not(:focus)::-webkit-datetime-edit { color: transparent; }
.field--period.is-error input[type="date"] { border: 2px solid var(--color-error); padding-left: 13px; background-color: var(--color-error-bg); }
html.is-fullpage .consult .field input[type="date"] { height: 46px; }
.form-row--half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* PC 한 화면 모드: 항목이 늘어난 폼은 카드 안에서 스크롤 */
html.is-fullpage .consult .form { max-height: calc(100vh - var(--gnb-h) - 40px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
html.is-fullpage .consult .form { gap: 12px; padding-block: 26px; }
html.is-fullpage .consult .form__required-note { display: none; }
html.is-fullpage .consult .field { gap: 6px; }
html.is-fullpage .consult .field input[type="text"], html.is-fullpage .consult .field input[type="tel"], html.is-fullpage .consult .field select { height: 46px; }
html.is-fullpage .consult .seg__item span { height: 44px; }
html.is-fullpage .consult .field textarea { min-height: 96px; }

/* v1.9: 상담 섹션 카드 여백 — 작은 화면 */
@media (min-width: 1024px) and (max-height: 820px) { .consult .form { padding: 24px 32px; } }
@media (max-width: 767px) { .consult .form { padding: 24px 18px; border-radius: var(--radius-md); } }

/* v1.14: 상담 안내 캡션이 폼 아래로 오면서 길어진 만큼, 보통 높이 PC(1000px 이하)에서 폼 간격을 줄여 한 화면에 맞춤 */
@media (min-width: 1024px) and (max-height: 1000px) and (min-height: 821px) {
  .consult .form { padding: 26px 36px; gap: 13px; }
  .consult .field textarea { min-height: 104px; }
  .form__required-note { margin-bottom: -4px; }
}
