﻿:root {
  --bg: #f7f4ef;
  --header-h: 90px;
  --ink: #2B2118;
  --sub: #6B6157;
  --accent: #e85a14;
  --shrink: 0;
}

/* 헤더 높이도 header.css와 동일한 1400 / 1024 / 768 / 425 기준으로 축소.
   --header-h는 main.js가 getComputedStyle로 그대로 읽어가므로 숫자만 바꾸면
   히어로 캡션 위치, 스크롤 계산 등도 자동으로 맞춰짐 */
@media (max-width: 1400px) {
  :root { --header-h: 82px; }
}
@media (max-width: 1024px) {
  :root { --header-h: 74px; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
}
@media (max-width: 425px) {
  :root { --header-h: 60px; }
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.reveal-left {
  transform: translateX(-40px);
}
.reveal.reveal-right {
  transform: translateX(40px);
}
.reveal.reveal-left.is-visible,
.reveal.reveal-right.is-visible {
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
.root_daum_roughmap .cont{
  display: none !important;
}
.root_daum_roughmap .wrap_controllers{
  display: none !important;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  height: 215vh; /* 100vh(고정 노출) + 70vh(축소 애니메이션 구간) + 60vh(축소 완료 후 유지 구간) */
}

/* 모바일: 스크롤 축소 효과 없이 축소 상태로 고정되므로 핀 구간(여분 스크롤 높이) 제거 */
@media (max-width: 768px) {
  .hero { height: 100vh; }
}

.hero-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg) url('../img/hero_bbg.jpg') center / cover no-repeat;
}

/* 상단 캡션 (축소 상태에서 헤더 아래 노출) */
.hero-top-caption {
  position: absolute;
  top: calc(var(--header-h) + 60px);
  left: 50%;
  width: 100%;
  max-width: 1520px;
  padding: 0 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: opacity .5s ease .05s, transform .5s ease .05s;
  pointer-events: none;
}

.hero.is-shrunk .hero-top-caption {
  opacity: 1;
  transform: translate(-50%, 20%);
  pointer-events: auto;
}

.hero-top-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 74px;
  color:#804721;
  display: flex;
  align-items: center;
}


/* 히어로 타이틀의 "Hilyn" 로고 이미지  */
.hero-title-logo {
  height: 50px;
  width: auto;
  display: inline-block;
}

.hero-top-tagline {
  font-size: 24px;
  color: #804721;
  margin-top: 22px;
}
.hero-top-tagline strong {
  font-weight: 600;
}

/* 히어로 이미지(축소되는 대상) */
.hero-media {
  position: relative;
  height: 100vh;
  overflow: hidden;
  transition: margin .5s ease, height .5s ease;
}

.hero-media-bg,
.hero-placeholder {
  position: absolute;
  inset: 0;
}

.hero-media-bg {
  background-size: cover;
  background-position: center;
  background-color: transparent;
}


.hero-placeholder span {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hero-placeholder small {
  font-size: 13px;
  opacity: 0.8;
}

/* 하단(초기 풀스크린) 오버레이 캡션 */
.hero-overlay-caption {
  position: absolute;
  right: max(20px, calc((100vw - 1520px) / 2 + 20px));
  bottom: 15vh;
  z-index: 5;
  text-align: right;
  color: #fff;
  transition: opacity .4s ease, transform .4s ease;
}

.hero.is-shrunk .hero-overlay-caption {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.hero-overlay-title {
  margin-bottom: 40px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 74px;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-overlay-tagline {
  font-size: 32px;
  font-weight: 300;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.hero-overlay-tagline strong {
  font-weight: 600;
}

/* ---------------- Hero 반응형 — header.css와 동일한 1400 / 1024 / 768 / 425 기준 ---------------- */
@media (max-width: 1400px) {
  .hero-top-title { font-size: 58px; }
  .hero-title-logo { height: 42px; }
  .hero-top-tagline { font-size: 20px; }

  .hero-overlay-title { font-size: 58px; margin-bottom: 32px; }
  .hero-overlay-tagline { font-size: 26px; }
}

@media (max-width: 1024px) {
  .hero-top-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    top: calc(var(--header-h) + 70px);
  }
  .hero-top-title { font-size: 42px; }
  .hero-title-logo { height: 32px; }
  .hero-top-tagline { font-size: 17px; margin-top: 4px; }

  .hero-overlay-caption { right: 24px; left: 24px; bottom: 12vh; }
  .hero-overlay-title { font-size: 42px; margin-bottom: 22px; }
  .hero-overlay-tagline { font-size: 20px; }
}

@media (max-width: 768px) {
  .hero-top-caption { padding: 0 16px; }
  .hero-top-title { font-size: 32px; }
  .hero-title-logo { height: 26px; }
  .hero-top-tagline { font-size: 15px; }

  .hero-overlay-caption { right: 16px; left: 16px; bottom: 10vh; }
  .hero-overlay-title { font-size: 32px; margin-bottom: 16px; }
  .hero-overlay-tagline { font-size: 16px; }
}

@media (max-width: 425px) {
  .hero-top-title { font-size: 26px; }
  .hero-title-logo { height: 22px; }
  .hero-top-tagline { font-size: 13px; }
  .hero-overlay-title { font-size: 26px; margin-bottom: 12px; }
  .hero-overlay-tagline { font-size: 14px; }
}

/* ---------------- Essentials (대표 시술 4종 카드) ---------------- */


.essential-head {
  max-width: 1520px;
  margin: 0 auto 56px;
  padding: 0 20px;
  text-align: center;
}

.essential-head-label {
  display: block;
  font-size: 16px;
  margin-bottom: 14px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--sub);
}

.essential-head-title {
  font-size: 34px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 18px;
}

.essential-head-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--sub);
}

.essential-full-row {
  display: flex;
  width: 100%;
}

.essential-card {
  position: relative;
  z-index: 0;
  flex: 1 1 0%;
  min-width: 180px;
  height: 78vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: flex-grow .5s ease, opacity .3s ease, filter .3s ease;
}
.essential-full-row:hover .essential-card {
  flex-grow: 1;
}
.essential-full-row .essential-card:hover {
  flex-grow: 1.5;
}
/* 웹사이즈(가로 4분할 레이아웃)에서만 의미 있음: 호버한 카드 외 나머지는 흐릿하게 + 흑백 처리 */
.essential-full-row:hover .essential-card:not(:hover) {
  opacity: 0.5;
  filter: grayscale(1);
}

.essential-media-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.essential-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.essential-content {
    z-index: 2;
   padding-left: 70px;
    position: absolute;
    top: 50%;
    transform: translateY(-40%);
}

.essential-label {
  display: block;
  font-size: 20px;
  margin-bottom: 40px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #4B4234;
}
.essential-label b {
  font-size: 24px;
  font-weight: 300;
}

.essential-title {
  margin-bottom: 22px;
  font-size: 42px;
  font-weight: 600;
  color: var(--ink);
}

.essential-subtitle {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}

.essential-desc {
  margin-top: 20px;
  max-width: 320px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--sub);
  opacity: 0;
  transition: opacity .4s ease;
}
/* 768px 이상(마우스오버가 있는 화면)에서만 호버로 노출. 768px부터는 아래 반응형 블록에서 기본 노출로 전환 */
.essential-card:hover .essential-desc {
  opacity: 1;
}

/* 카드 호버 시에만 노출되는 More View 텍스트 버튼 (텍스트 + 오른쪽 화살표 + 밑줄) */
.essential-moreview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: #4B4234;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .3s ease;
}
.essential-card:hover .essential-moreview {
  opacity: 1;
}
.essential-moreview-arrow {
  flex: none;
  transition: transform .25s ease;
}
.essential-card:hover .essential-moreview-arrow {
  transform: translateX(4px);
}


/* ---------------- 에센셜 디자인 시안 비교(임시) ---------------- */
.essential-demo-tag {
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
}
.essential-demo-tag--light {
  max-width: 1500px;
  color: #ffcda4;
}

/* ---------------- Essentials 반응형 — header.css와 동일한 1400 / 1024 / 768 / 425 기준 ---------------- */
/* 1400px부터는 마우스오버로 넓어지던 가로 4분할 대신 2x2 고정 그리드로 전환 */
@media (max-width: 1400px) {
  .essential-full-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .essential-card { height: 55vh; }
  .essential-content { padding-left: 50px; }
  .essential-title { font-size: 36px; }
  .essential-label { font-size: 18px; }
}

@media (max-width: 1024px) {
  .essential-card { height: 50vh; }
  .essential-content { padding: 32px; }
  .essential-title { font-size: 32px; }
}

/* 768px부터는 한 줄에 하나씩(1열) + 마우스오버가 사라지므로 멘트는 기본으로 노출, 흐림/흑백 효과는 해제 (More View 버튼은 고정 노출이라 그대로 유지) */
@media (max-width: 768px) {
  .essential-full-row {
    grid-template-columns: 1fr;
  }
  .essential-content { padding: 28px; }
  .essential-label { font-size: 16px; margin-bottom: 24px; }
  .essential-label b { font-size: 20px; }
  .essential-title { font-size: 28px; margin-bottom: 14px; }
  .essential-subtitle { font-size: 17px; }
  .essential-desc { font-size: 15px;  margin-top: 24px; opacity: 1; }
  .essential-full-row:hover .essential-card:not(:hover) {
    opacity: 1;
    filter: none;
  }
  .essential-moreview { margin-top: 20px; opacity: 1; font-size: 14px; }
}

@media (max-width: 425px) {
  .essential-card { height: 42vh; }
  .essential-content { padding: 22px;    transform: translateY(-50%); }
  .essential-label { margin-bottom: 18px; }
  .essential-label b { font-size: 17px; }
  .essential-title { font-size: 24px; }
  .essential-subtitle { font-size: 15px; }
  .essential-desc { font-size: 14px; margin-top: 18px; }
}

/* ---------------- Tech (장비 - 가로 스크롤) ---------------- */
.tech {
  position: relative;
}

.tech-pin {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 15% 10%, rgba(255, 255, 255, 0.15), transparent 55%),
    radial-gradient(120% 140% at 85% 90%, rgba(0, 0, 0, 0.08), transparent 55%),
    url('../img/tech_bg.jpg') center / cover no-repeat,
    #C8C3B7;
}

.tech-top {
  position: absolute;
  top: 140px;
  left: max(20px, calc((100vw - 1520px) / 2 + 10px));
  right: max(20px, calc((100vw - 1520px) / 2 + 10px));
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.tech-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 62px;
  line-height: 1.25;
  color: #4B4234;
}

/* 이전/다음 화살표 + 카운터 + 자동재생 버튼 (journey-controls와 동일한 디자인) */
.tech-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-arrow {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background-color .2s ease, color .2s ease;
}
.tech-arrow:hover {
  background: var(--ink);
  color: #fff;
}

.tech-counter {
  min-width: 50px;
  text-align: center;
  font-size: 16px;
  color: var(--sub);
  font-weight: 700;
}

.tech-play {
  width: 45px;
  height: 45px;
  margin-left: 6px;
  border-radius: 50%;
  background: rgba(75, 52, 35, 0.8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-viewport {
  position: absolute;
  top: 16vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(1600px, 94vw);
  height: 100%;
}

.tech-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 76px;
  transition: transform .5s ease;
}

.tech-card {
  position: relative;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 540px;
  min-height: 340px;
  margin-top: 80px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 60px 50px;
  box-shadow: 0 24px 48px rgba(30, 20, 10, 0.1);
  transform: translateY(0);
  cursor: pointer;
  transition: flex-basis .45s ease, margin-top .45s ease, background-color .45s ease, box-shadow .45s ease, transform .45s ease;
}

.tech-card.is-active {
  flex-basis: 540px;
  margin-top: -140px;
}

.tech-card.is-active,
.tech-card:hover {
  background: #fff;
  box-shadow: 0 28px 56px rgba(30, 20, 10, 0.18);
  transform: translateY(-10px);
}

.tech-card-body {
  position: relative;
  z-index: 2;
}

.tech-card-brand {
  font-size: 22px;
  font-weight: 700;
  color: #8A7F6C;
      font-family: 'Cormorant Garamond', Georgia, serif;
}
.tech-card-brand span {
  font-weight: 400;
  letter-spacing: 0.05em;
}

.tech-card-title {
 margin: 16px 0 ;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}

.tech-card-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--sub);
}

.tech-card-media {
  position: absolute;
  right: -30px;
  bottom: 0;
  width: 320px;
  height: 320px;
  z-index: 1;
  opacity: .6;
  transition: width .45s ease, height .45s ease;
}

.tech-card.is-active .tech-card-media {
  width: 380px;
  height: 380px;
  opacity: 1;
}

.tech-card-media-bg,
.tech-card-media-placeholder {
  position: absolute;
  inset: 0;
}

.tech-card-media-bg {
  background-size: contain;
  background-position: bottom right;
  background-repeat: no-repeat;
}


.tech-card-media-placeholder {
  z-index: -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 16px;
  background: transparent;
  color: #C7BEAC;
  text-align: center;
}
.tech-card-media-placeholder span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.6;
}
.tech-card-media-placeholder small {
  font-size: 11px;
  opacity: 0.6;
}

/* ---------------- Tech 반응형 — header.css와 동일한 1400 / 1024 / 768 / 425 기준.
   화살표 슬라이드 구조(절대배치 viewport/track + is-active 카드 확대)는 모든 폭에서 그대로 유지하고
   크기만 단계적으로 줄인다(더 이상 1024px부터 스와이프 목록으로 바뀌지 않음, js/main.js의 MIN_WIDTH도 0으로 맞춰둠) */
@media (max-width: 1400px) {
  .tech-heading { font-size: 50px; }
  .tech-card { flex-basis: 460px; }
  .tech-card.is-active { flex-basis: 460px; }
  .tech-card-media { width: 260px; height: 260px; }
  .tech-card.is-active .tech-card-media { width: 310px; height: 310px; }
}

@media (max-width: 1024px) {
  .tech-top { top: 100px; }
  .tech-heading { font-size: 38px; }
  .tech-viewport { top: 14vh; width: min(1100px, 92vw); }
  .tech-track { gap: 40px; }
  .tech-card { flex-basis: 320px; min-height: 300px; margin-top: 60px; padding: 44px 36px; }
  .tech-card.is-active { flex-basis: 320px; margin-top: -40px; }
  .tech-card-title { font-size: 24px; }
  .tech-card-desc { font-size: 16px; }
  .tech-card-media { width: 160px; height: 160px; }
  .tech-card.is-active .tech-card-media { width: 200px; height: 200px; }
}

@media (max-width: 768px) {
  .tech-top { top: 80px; }
  .tech-heading { font-size: 30px; }
  .tech-controls { width: 100%; gap: 8px; }
  .tech-arrow, .tech-play { width: 38px; height: 38px; }
  .tech-counter { font-size: 14px; min-width: 44px; }
  .tech-pin{height: 96vh;}
  .tech-viewport { top: 24vh; bottom: 24px; height: auto; width: min(900px, 90vw); }
  .tech-track { gap: 24px; }
  .tech-card { flex-basis: 260px; min-height: 260px; margin-top: 40px; padding: 32px 28px; }
  .tech-card.is-active { flex-basis: 300px; margin-top: -24px; }
  .tech-card-title { font-size: 20px; }
  .tech-card-desc { font-size: 14px; }
  .tech-card-media { width: 120px; height: 120px; }
  .tech-card.is-active .tech-card-media { width: 150px; height: 150px; }
    .root_daum_roughmap .wrap_map{height: 300px !important;}
}

@media (max-width: 425px) {
  .tech-card-brand{font-size: 18px;}
  .tech-heading { font-size: 28px; }
  .tech-controls { width: 100%; gap: 6px; }
  .tech-arrow, .tech-play { width: 34px; height: 34px; }
  .tech-counter { font-size: 13px; min-width: 40px; }
  .tech-viewport {  bottom: 0px; height: auto; width: 92vw; }
  .tech-track { gap: 16px; }
  .tech-pin{height: 75vh;}
  .tech-card { flex-basis: 220px; min-height: 200px; margin-top: 28px; padding: 26px 22px; }
  .tech-card.is-active { flex-basis: 260px; margin-top: -16px; }
  .tech-card-title { font-size: 18px; }
  .tech-card-desc { font-size: 13px; }
  .tech-card-media { width: 100px; height: 100px; }
  .tech-card.is-active .tech-card-media {right: -10px;}

}

/* ---------------- 플로팅 버튼  ---------------- */
.floating-buttons {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.floating-btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  gap: 2px;
  padding: 0 22px 0 8px;
  width: 140px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: rgba(75, 52, 35, 0.8);
  transition: transform .2s ease, box-shadow .2s ease;
}

.floating-btn:hover {
  transform: translateY(-2px);
}

.floating-btn-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-btn-icon img {
  width: 22px;
  height: 22px;
}
.floating-btn--naver img{
  width: 16px;
  height: 16px;
}

.floating-btn-label {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  margin-top: 1px;
}

.floating-btn--event {
  background: var(--accent);
}

/* ---------------- 플로팅 버튼 반응형 — header.css와 동일한 1400 / 1024 / 768 / 425 기준 ---------------- */
@media (max-width: 1400px) {
  .floating-buttons { right: 24px; }
  .floating-btn { height: 48px; width: 136px; }
}

@media (max-width: 1024px) {
  .floating-buttons { right: 18px; gap: 10px; }
  .floating-btn { height: 46px; width: 118px; padding: 0 18px 0 6px; }
  .floating-btn-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .floating-btn-label { font-size: 14px; }
}

/* 768px부터는 라벨 텍스트(이미지 오른쪽 요소)는 숨기고 아이콘만 원형 버튼으로 노출.
   콘텐츠 시야를 가리지 않도록 우측 중앙 세로 배치 대신 하단 우측에 가로로 배치 */
@media (max-width: 768px) {
  .floating-buttons {
    top: auto;
    bottom: 14px;
    right: 14px;
    transform: none;
    flex-direction: row;
    gap: 10px;
  }
  .floating-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
  }
  .floating-btn-icon { flex-basis: 26px; width: 26px; height: 26px; }
  .floating-btn-label { display: none; }
}

@media (max-width: 425px) {
  .floating-buttons { bottom: 10px; right: 10px; gap: 8px; }
  .floating-btn { width: 42px; height: 42px; }
  .floating-btn-icon { flex-basis: 22px; width: 22px; height: 22px; }
  .floating-btn-icon img { width: 18px; height: 18px; }
  .floating-btn--naver img { width: 13px; height: 13px; }
}


/* ---------------- 사이트 팝업  ---------------- */
.site-popup {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.site-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 8, 0.7);
}
.site-popup-box {
  position: relative;
  width: 100%;
  max-width: 1120px;
  background: #1a120c;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.site-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-popup-body {
  display: flex;
  align-items: stretch;
  min-height: 620px;
  max-height: 78vh;
}

/* ---- 왼쪽 메인 패널: 선택된 팝업의 이미지/문구 ---- */
.site-popup-main {
  position: relative;
  flex: 1;
  min-width: 0;
}
.site-popup-panel {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #2a1d13;
  background-size: cover;
  background-position: center;
}
.site-popup-panel.is-active {
  display: flex;
}

.site-popup-panel-caption {
  position: relative;
  z-index: 1;
  padding: 40px 48px;
  color: #fff;
}
.site-popup-panel-text {
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-line;
}
.site-popup-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}
.site-popup-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

/* ---- 오른쪽 탭 목록: 클릭하면 왼쪽 패널이 전환됨 ---- */
.site-popup-tabs {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #241812;
}
.site-popup-tab {
  padding: 22px 26px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  line-height: 1.5;
  transition: background-color .2s ease, color .2s ease;
}
.site-popup-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.site-popup-tab.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
}

.site-popup-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: #000;
}



/* 커스텀 체크박스: 실제 input은 투명 처리하고 옆의 span으로 체크 표시를 그린다 */
.site-popup-hide-today {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  user-select: none;
}
.site-popup-hide-today input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}
.site-popup-checkbox {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  transition: background-color .15s ease, border-color .15s ease;
}
.site-popup-checkbox::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 2px;
    width: 7px;
    height: 14px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  opacity: 0;
  transition: opacity .15s ease;
}
.site-popup-hide-today input:checked ~ .site-popup-checkbox {
  background: var(--accent);
  border-color: var(--accent);
}
.site-popup-hide-today input:checked ~ .site-popup-checkbox::after {
  opacity: 1;
}
.site-popup-hide-today input:focus-visible ~ .site-popup-checkbox {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.site-popup-hide-today:hover .site-popup-checkbox {
  border-color: rgba(255, 255, 255, 0.6);
}

.site-popup-footer-close {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.site-popup-footer-close:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .site-popup-box { max-width: 100%; }
  .site-popup-body { flex-direction: column; min-height: 0; max-height: 88vh; overflow-y: auto; }
  .site-popup-main { min-height: 260px; }
  .site-popup-tabs { flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .site-popup-tab { border-bottom: 1px solid rgba(255, 255, 255, 0.08); border-right: 1px solid rgba(255, 255, 255, 0.08); white-space: normal; font-size: 14px; padding: 16px 18px; text-align: center; }
  .site-popup-tab:nth-child(2n) { border-right: none; }
  .site-popup-footer { padding: 12px 16px; }
  .site-popup-hide-today { font-size: 13px; gap: 8px; }
  .site-popup-checkbox { flex-basis: 20px; width: 20px; height: 20px; }
  .site-popup-checkbox::after { left: 6px; top: 2px; width: 6px; height: 12px; }
  .site-popup-footer-close { font-size: 13px; }
}

@media (max-width: 425px) {
  .site-popup-main { min-height: 220px; }
  .site-popup-tab { font-size: 13px; padding: 14px; }
  .site-popup-footer { padding: 10px 14px; }
  .site-popup-hide-today { font-size: 12px; gap: 6px; }
  .site-popup-checkbox { flex-basis: 18px; width: 18px; height: 18px; }
  .site-popup-checkbox::after { left: 5px; top: 1px; width: 5px; height: 10px; }
  .site-popup-footer-close { font-size: 12px; }
}

/* ---------------- A Journey of Beauty (전후비교) ---------------- */
.journey {
  padding: 150px 0;
  background: var(--bg);
  overflow: hidden;
}

.journey-container {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 20px;
}

.journey-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}

.journey-title {
  margin-bottom: 22px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 50px;
  color: #4B4234;
}

.journey-subtitle {
  margin-bottom: 12px;
  font-size: 20px;
  color: var(--sub);
}

.journey-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.journey-arrow {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.journey-arrow:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.journey-counter {
  min-width: 50px;
  text-align: center;
  font-size: 16px;
  color: var(--sub);
  font-weight: 700;
}


.journey-play {
  width: 45px;
  height: 45px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.journey-viewport {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
}

.journey-track {
  display: flex;
  gap: 90px;
  will-change: transform;
  transition: transform .5s ease;
}

.journey-card {
  flex: 0 0 40vw;
  opacity: 0.35;
  transition: opacity .4s ease;
}

.journey-card.is-active {
  opacity: 1;
}

.journey-card:not(.is-active) .ba-tag,
.journey-card:not(.is-active) .ba-handle {
  display: none;
}

.journey-card:not(.is-active) .ba-slider {
  pointer-events: none;
  cursor: default;
}

.ba-slider {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: #E7DFD1;
  cursor: ew-resize;
}

.ba-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #E7DFD1;
  pointer-events: none;
}
.ba-img--after { z-index: 1; }
.ba-img--before { z-index: 2; }

.ba-tag {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0.55;
  padding: 4px 10px;
  border-radius: 30px;
  pointer-events: none;
  transition: opacity .25s ease, background-color .25s ease;
}
.ba-tag--initial { left: 20px; }
.ba-tag--result { right: 20px; }

.ba-tag.is-on {
  opacity: 1;
  background: rgba(75, 52, 35, 0.8);
}

.ba-logo {
  position: absolute;
  left: 20px;
  bottom: 20px;
  height: 30px;
  width: auto;
  z-index: 3;
  opacity: 0.55;
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--bg);
  transform: translateX(-50%);
}
.ba-handle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.journey-card-caption {
  margin-top: 30px;
  text-align: center;
}
.journey-card-caption h3 {
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}
.journey-card-caption p {
  font-size: 20px;
  color: var(--sub);
}

.journey-disclaimer {
  margin-top: 80px;
    font-size: 18px;
    color: var(--sub);
    opacity: 0.8;
    text-align: center;
}

/* ---------------- Journey 반응형 — header.css와 동일한 1400 / 1024 / 768 / 425 기준 ---------------- */
@media (max-width: 1400px) {
  .journey { padding: 120px 0; }
  .journey-title { font-size: 42px; }
}

@media (max-width: 1024px) {
  .journey { padding: 100px 0; }
  .journey-title { font-size: 36px; }
  .journey-subtitle { font-size: 17px; }
  .journey-card { flex: 0 0 78%; }
  .ba-slider { height: 320px; }
  .journey-arrow, .journey-play { width: 42px; height: 42px; }
  .journey-counter { font-size: 15px; }
  .ba-tag { font-size: 14px; padding: 4px 9px; }
}

@media (max-width: 768px) {
  .journey { padding: 80px 0; }
  .journey-header { margin-bottom: 32px; }
  .journey-title { font-size: 28px; margin-bottom: 12px; }
  .journey-subtitle { font-size: 15px; }
  .journey-track { gap: 50px; }
  .journey-card { flex: 0 0 85%; }
  .ba-slider { height: 280px; }
  .journey-card-caption { margin-top: 20px; }
  .journey-card-caption h3 { font-size: 22px; }
  .journey-card-caption p { font-size: 16px; }
  .journey-disclaimer { margin-top: 50px; font-size: 14px; }
  .journey-arrow, .journey-play { width: 38px; height: 38px; }
  .journey-counter { font-size: 14px; min-width: 44px; }
  .ba-tag { font-size: 13px; padding: 3px 8px; }
}

@media (max-width: 425px) {
  .journey-container { padding: 0 16px; }
  .journey-title { font-size: 28px; }
  .journey-card-caption h3{font-size: 20px;}
  .journey-track { gap: 30px; }
  .journey-card { flex: 0 0 92%; }
  .ba-slider { height: 220px; }
  .ba-logo { height: 22px; }
  .ba-handle-btn { width: 38px; height: 38px; }
  .journey-arrow, .journey-play { width: 34px; height: 34px; }
  .journey-counter { font-size: 13px; min-width: 40px; }
  .ba-tag { font-size: 12px; padding: 3px 7px; }
}

/* ---------------- Location (오시는 길 / 간단정보) ---------------- */
.location {
  position: relative;
  padding: 150px 0;
  background-color: #A9723C;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.location-container {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.location-info{
  width: 40%;
}
.location-address {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 24px;
}

.location-badge-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 80px;
}

.location-badge {
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 20px;
    background: #fff;
    color: #b66b21;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.location-parking-text {
  font-size: 18px;
}
.location-parking-text small {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  opacity: 0.8;
}

.location-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 40px;
}
.location-hours{
  margin-left: 80px;
}
.location-grid-item h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.location-phone {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.location-hours p {
  display: flex;
  align-items: baseline;
  font-size: 18px;
  line-height: 2;
  gap: 25px;
  font-weight: 300;
}
.location-hours-label {
  flex: 0 0 4.5em;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}
.location-hours .note {
  margin-top: 18px;
  font-size: 16px;
  opacity: 0.8;
}

.location-kakao-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    height: 52px;
    padding: 0 22px 0 20px;
    border-radius: 30px;
    background: #fae100;
    color: #3C1E1E;
    font-size: 16px;
    font-weight: 700;
}
.location-kakao-btn img {
  width: 24px;
}

.location-map {
  width: 50%;
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: #DADADA;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
}

/* 카카오맵 지도 퍼가기(roughmap) - 가로만 반응형으로 채우기.
   세로(height)는 CSS로 강제로 늘리면 내부 컨트롤(확대/축소 버튼 등) 배치가
   깨지므로 건드리지 않고, 실제 높이는 index.php의 mapHeight 값으로 조절한다. */
.location-map .root_daum_roughmap {
  width: 100% !important;
}

.location-map .root_daum_roughmap iframe {
  width: 100% !important;
}

.location-map .root_daum_roughmap * {
  max-width: none;
}

/* ---------------- Location 반응형 — header.css와 동일한 1400 / 1024 / 768 / 425 기준 ---------------- */
@media (max-width: 1400px) {
  .location-address { font-size: 25px; }
  .location-phone { font-size: 32px; }
}

@media (max-width: 1024px) {
  .location { padding: 90px 0; }
  .location-container {
    flex-direction: column;
    align-items: stretch;
    padding: 0 24px;
    gap: 40px;
  }
  .location-info { width: 100%; }
  .location-map { width: 100%; min-height: 320px; order: -1; }
  .location-map iframe { min-height: 320px; }
}

@media (max-width: 768px) {
  .location { padding: 70px 0; }
  .location-address { font-size: 22px; }
  .location-badge-row { margin-bottom: 50px; }
  .location-phone { font-size: 28px; }
  .location-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 30px; }
  .location-hours { margin-left: 0; }
  .location-map { min-height: 260px; }
  .location-map iframe { min-height: 260px; }
  .location-grid-item h4{font-size: 18px;}
  .location-badge{font-size: 14px;}
  .location-parking-text{font-size: 16px;}
}

@media (max-width: 425px) {
  .location { padding: 60px 0; }
  .location-container { padding: 0 16px; }
  .location-address { font-size: 19px; }
  .location-badge-row { margin-bottom: 36px;         flex-direction: column; }
  .location-phone { font-size: 24px; }
  .location-hours p { font-size: 15px; gap: 16px; }
  .location-hours .note{font-size: 15px;}
  .location-kakao-btn { height: 46px; margin-top: 22px; font-size: 15px; }
}

