html, body{ width:100%; overflow-x: clip; }
html{ scroll-behavior: smooth; }
*{ box-sizing: border-box; }

:root{
  --home-bg: #161616;
  --home-bg-2: #222228;
  --home-panel: rgba(255,255,255,0.05);
  --home-panel-2: rgba(255,255,255,0.07);
  --home-border: rgba(255,255,255,0.12);
  --home-border-2: rgba(255,255,255,0.18);
  --home-text: rgba(255,255,255,0.92);
  --home-text-2: rgba(255,255,255,0.72);
  --home-text-3: rgba(255,255,255,0.55);
  --home-shadow: 0 18px 56px rgba(0,0,0,0.50);
  --home-shadow-soft: 0 14px 34px rgba(0,0,0,0.34);
  --home-accent: #FFD400;
  --home-accent-2: rgba(255,212,0,0.18);
  --home-radius-xl: 26px;
  --home-radius-lg: 20px;
  --home-radius-md: 16px;
}

body{
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--home-text);
  background: radial-gradient(900px 520px at 75% 35%, rgba(255,255,255,0.04), transparent 55%),
              var(--home-bg);
}

.has-page-hero .site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  background: rgba(0,0,0,0.986);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--home-border);
}

.has-page-hero .gnb-link{ color: #fff; }

.has-page-hero .icon-btn{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.18);
  color: #111;
}
.has-page-hero .icon-btn:hover{
  background: #FFD400;
  border-color: rgba(0,0,0,0.28);
}

.page-hero{
  height: 380px;
  width: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-top: var(--header-h, 94px);
}

.page-hero__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), rgba(0,0,0,0.25));
}

.page-hero__title{
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(28px, 3.6vw, 54px);
  text-shadow: 0 14px 34px rgba(0,0,0,0.55);
}

.subnav{
  background: rgba(37, 37, 37, 0.55);
  border-bottom: 1px solid var(--home-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.subnav__inner{
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: 14px 16px;

  display: flex;
  justify-content: center;
  gap: 0;
}

.subnav__link{
  flex: 1;
  min-width: 140px;

  position: relative;
  text-align: center;
  padding: 18px 10px 16px;

  text-decoration: none;
  color: var(--home-text-2);
  font-weight: 850;
  letter-spacing: .02em;
  white-space: nowrap;

  transition: color .14s ease, transform .14s ease;
}

.subnav__link:hover{
  color: var(--home-text);
}

.subnav__link::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 5px;

  width: 0;
  height: 3px;
  background: var(--home-accent);
  border-radius: 999px;

  transition: width .16s ease;
}

.subnav__link:hover::after{ width: 70%; }
.subnav__link.is-active{ color: #fff; }
.subnav__link.is-active::after{ width: 70%; }

.subnav__link:focus-visible{
  outline: 2px solid var(--home-accent);
  outline-offset: 6px;
  border-radius: 10px;
}

.subpage{
  background: transparent;
  padding: 90px 0 140px;
}

.subpage__inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  text-align: center;
}

.subpage__inner::before{
  content: none;
}

.subpage__title{
  position: relative;
  margin: 0;
  font-size: clamp(45px, 3.2vw, 45px);
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.6px;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 14px 34px rgba(0,0,0,0.55);
}

.subpage__rule{
  position: relative;
  border: 0;
  height: 2px;
  margin: 22px auto 30px;
  max-width: 860px;
  background: var(--home-accent);
  border-radius: 999px;
}

/* 기존 그라데이션/겹침 제거 */
.subpage__rule::before,
.subpage__rule::after{ content: none; }

.subpage__inner p{
  position: relative;
  margin: 0 auto;
  max-width: min(720px, calc(100% - 64px));
  color: rgba(255,255,255,0.78);
  font-size: 19px;
  line-height: 1.8;
  letter-spacing: -0.02em;
  word-spacing: -0.04em;

  text-align: center;

  white-space: normal;
  word-break: keep-all;
}

/* (혹시 HTML에 <br>로 줄바꿈이 들어가 있으면, 강제 줄바꿈을 막아 네모 형태 유지) */
.subpage__inner p br{ display:none; }

.subpage__inner a{
  color: #fff;
  text-decoration-color: rgba(255,212,0,0.55);
}
.subpage__inner a:hover{
  text-decoration-color: var(--home-accent);
}

@media (max-width: 900px){
  .page-hero{
    height: 270px;
    padding-top: var(--header-h, 78px);
  }

  /* ✅ 서브메뉴(탭): 중앙 고정 + 한 줄 유지(아래줄로 안 떨어짐) */
  .subnav__inner{
    justify-content: center;
    flex-wrap: nowrap;          /* 항목이 아래줄로 내려가지 않게 */
    overflow-x: hidden;         /* 가로 스크롤 제거 */
    -webkit-overflow-scrolling: auto;
    gap: 0;
    padding: 10px 12px;
  }
  .subnav__link{

    flex: 1 1 0;               
    min-width: 0;              
    padding: 12px 6px 10px;

    font-size: clamp(13.5px, 3.0vw, 13.5px);
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }



  .subpage{ padding: 44px 0 90px; }
  .subpage__inner{ padding: 0 16px; }

  /* 모바일: 제목(큰 텍스트) 사이즈 조절 */
  .subpage__title{
    font-size: clamp(32px, 8.2vw, 32px);
    letter-spacing: -0.4px;
  }
  .subpage__inner p{
    font-size: 17px;
    line-height: 1.8;
  }
}

@media (max-width: 420px){
  .subpage__title{
    font-size: clamp(24px, 9vw, 34px) !important;
  }
}


@media (max-width: 900px){
  /* 모바일 메뉴 루트는 전체 화면을 덮되, 실제 패널은 우측 일부만 차지 */
  .mobile-menu{
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: block;
  }
  .mobile-menu[hidden]{ display: none !important; }

  /* 남은 영역(클릭 시 닫힘): 완전히 가리지 않고 반투명 처리 */
  .mobile-menu__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.38);
    opacity: 0;
    transition: opacity .28s ease;
  }

  /* 우측 패널: 화면의 일부만 차지 */
  .mobile-menu__panel{
    box-sizing: border-box;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(360px, 72vw);
    background: rgba(0,0,0,0.94);
    border-left: 1px solid rgba(255,255,255,0.12);
    /* X(닫기 버튼)/헤더 영역 아래부터 메뉴가 시작되도록 여백 */
    padding-top: calc(80px + env(safe-area-inset-top, 0px));
    transform: translateX(100%);
    transition: transform .28s ease;
    will-change: transform;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 열림/닫힘 상태( JS에서 class 토글 ) */
  .mobile-menu.is-open .mobile-menu__backdrop{ opacity: 1; }
  .mobile-menu.is-open .mobile-menu__panel{ box-sizing: border-box; transform: translateX(0); }

  .mobile-menu.is-closing .mobile-menu__backdrop{ opacity: 0; }
  .mobile-menu.is-closing .mobile-menu__panel{ box-sizing: border-box; transform: translateX(100%); }

  /* 닫기 버튼(X)이 패널에 가려지지 않도록 헤더/버튼을 최상단으로 */
  body.menu-open .site-header{ z-index: 10001 !important; }
  body.menu-open .menu-toggle{
    position: fixed !important;
    top: calc(12px + env(safe-area-inset-top, 0px)) !important;
    right: calc(12px + env(safe-area-inset-right, 0px)) !important;
    z-index: 10002 !important;
  }

  /* 강제 우측 오픈(타 CSS의 left/translate override 방지) */
  #mobileMenu .mobile-menu__panel{
    box-sizing: border-box;
    left: auto !important;
    right: 0 !important;
    transform: translateX(100%) !important;
  }
  #mobileMenu.is-open .mobile-menu__panel{ box-sizing: border-box; transform: translateX(0) !important; }
  #mobileMenu.is-closing .mobile-menu__panel{ box-sizing: border-box; transform: translateX(100%) !important; }
  @media (prefers-reduced-motion: reduce){
    .mobile-menu__backdrop,
    .mobile-menu__panel{ box-sizing: border-box; transition: none !important; }
  }
}

@media (max-width: 900px){
  body.menu-open .site-header{ z-index: 10001 !important; }
  body.menu-open .menu-toggle{
    z-index: 10002 !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
  }

  .menu-toggle{
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-toggle__bar{
    position: absolute;
    left: 50%;
    width: 30px;
    height: 3px;
    background: var(--home-accent);
    border-radius: 999px;
    transform: translateX(-50%);
    transform-origin: 50% 50%;
    transition: transform .22s ease, opacity .18s ease;
    will-change: transform, opacity;
  }
  .menu-toggle__bar:nth-child(1){ transform: translateX(-50%) translateY(-9px); }
  .menu-toggle__bar:nth-child(2){ transform: translateX(-50%) translateY(0); }
  .menu-toggle__bar:nth-child(3){ transform: translateX(-50%) translateY(9px); }

  .menu-toggle.is-active .menu-toggle__bar:nth-child(1){ transform: translateX(-50%) rotate(45deg); }
  .menu-toggle.is-active .menu-toggle__bar:nth-child(2){ opacity: 0; }
  .menu-toggle.is-active .menu-toggle__bar:nth-child(3){ transform: translateX(-50%) rotate(-45deg); }
}

@media (max-width: 900px){
  .subnav__link{
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    box-orient: unset !important;
  }
}
/* SITE DESIGN : HYUNJUNCHO */
/* U0lURSBERVNJR04gSFlVTkpVTkNITw== */

/* ===== Mobile hero override (ADD-ONLY) ===== */
@media (max-width: 900px){
  .page-hero{
    height: 270px !important;
  }
  .page-hero__title{
    font-size: clamp(37px, 8vw, 37px) !important;
  }
}
