.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100000;
  transform: translateY(-160%);
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 19, 34, 0.96);
  color: rgba(255, 255, 255, 0.96);
  font-weight: 950;
  letter-spacing: -0.02em;
  box-shadow: none;
}

.skip-link:focus {
  transform: translateY(0);
}

a { text-decoration: none; transition: color 0.2s ease, text-decoration-color 0.2s ease; }
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 196, 0, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Prevent "inline link" underline rules from affecting button-like anchors */
a.ks-btn:hover,
a.nav-cta:hover,
.gnb a.nav-link:hover,
.site-footer a.footer-cta__btn:hover,
.site-footer a.footer-cta__tel:hover,
a.btn:hover,
a.button:hover {
  text-decoration: none;
}

ul, li { list-style: none; padding: 0; margin: 0; }

button { cursor: pointer; border: none; font-family: inherit; }
[hidden] { display: none !important; }

/* WordPress a11y helper (used by search labels) */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pc-only { display: inline; }
.m-only { display: none; }

@media (max-width: 768px) {
  input, select, textarea { font-size: 16px; }
  .pc-only { display: none; }
  .m-only { display: inline; }
}

/* SEO longform section (rendered via the_content() in templates) */
.seoBody {
  padding: 46px 0 70px;
}

.seoBody__inner {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hairline, rgba(11, 23, 48, 0.11));
  background: rgba(247, 247, 245, 0.96);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 2.8vw, 34px);
  overflow: hidden;
}

.seoBody__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 420px at 10% 0%, rgba(255, 196, 0, 0.08), transparent 60%),
    radial-gradient(900px 380px at 92% 10%, rgba(11, 23, 48, 0.04), transparent 55%);
  opacity: 1;
  pointer-events: none;
}

.seoBody__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--tex-fiber), var(--tex-grain);
  background-size: 260px 260px, 120px 120px;
  background-position: 0 0, 44px 28px;
  opacity: 0.06; /* ~1–2% effective after texture opacity */
  pointer-events: none;
  mix-blend-mode: multiply;
}

.seoBody__inner > * {
  position: relative;
}

.seoBody h1,
.seoBody h2,
.seoBody h3 {
  margin: 0.25em 0 0.55em;
  letter-spacing: -0.02em;
  color: rgba(11, 23, 48, 0.98);
}

.seoBody h1 {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 950;
}

.seoBody h2 {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 900;
  margin-top: 1.45em;
  position: relative;
}

.seoBody h2::after{
  content:"";
  display:block;
  width: 38px;
  height: 1px;
  background: var(--border-hairline, rgba(11, 23, 48, 0.11));
  margin-top: 12px;
}

.seoBody h3 {
  font-size: 17px;
  font-weight: 850;
  margin-top: 1.15em;
}

.seoBody p {
  margin: 0.65em 0;
  color: rgba(15, 23, 42, 0.84);
}

.seoBody ul,
.seoBody ol {
  margin: 0.7em 0;
  padding-left: 1.2em;
  color: rgba(15, 23, 42, 0.84);
}

.seoBody li {
  margin: 0.35em 0;
}

/* Urban angular header refresh */


.seoBody a {
  color: rgba(11, 23, 48, 0.96);
  text-decoration: underline;
  text-decoration-color: rgba(255, 196, 0, 0.58);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.seoBody a:hover {
  color: rgba(11, 23, 48, 1);
  text-decoration-color: rgba(255, 196, 0, 0.92);
}

.seoBody table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.seoBody th,
.seoBody td {
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 10px 12px;
  vertical-align: top;
}

.seoBody th {
  background: rgba(255, 196, 0, 0.12);
}

/* =========================================================

   Common UI Components (KS)
   - Shared across FAQ/Location/Selfcheck/Index templates
========================================================= */

/* Global layout helpers */
.inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 640px) {
  .inner { padding: 0 18px; }
}

.section-py {
  padding: clamp(64px, 6vw, 92px) 0;
}

.ks-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.ks-card {
  background: var(--surface, #f7f7f5);
  border: 1px solid var(--border-hairline, rgba(11, 23, 48, 0.11));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.ks-card--pad { padding: 18px 18px; }

/* =========================================================

   KS Hero (animated pattern + moving texture slot)
   - Used by: selfcheck / faq / contact / cases
========================================================= */

.ks-hero {
  --ks-hero-slot-top: 62%;
  --ks-hero-slot-h: 86px;
  --ks-hero-slot-w: min(1040px, 92vw);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(135deg, #0b1730 0%, #142a55 100%);
}

.ks-hero::before {
  content: "";
  position: absolute;
  inset: -22%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    radial-gradient(1100px 520px at 50% -10%, rgba(255, 196, 0, 0.20), transparent 55%),
    radial-gradient(900px 520px at 20% 100%, rgba(255, 255, 255, 0.08), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0 1px, rgba(255, 255, 255, 0.00) 1px 14px),
    var(--tex-grain);
  background-size: auto, auto, 14px 14px, 120px 120px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  filter: saturate(1.05) contrast(1.03);
}

@media (prefers-reduced-motion: no-preference) {
  .ks-hero::before { animation: ks-hero-pan 18s linear infinite; }
}

.ks-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1200px 760px at 12% 10%, rgba(2, 6, 23, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.72) 0%, rgba(2, 6, 23, 0.55) 44%, rgba(2, 6, 23, 0.38) 100%);
}

.ks-hero__in {
  position: relative;
  z-index: 3;
}

.ks-hero-slot {
  position: absolute;
  left: 50%;
  top: var(--ks-hero-slot-top);
  width: var(--ks-hero-slot-w);
  height: var(--ks-hero-slot-h);
  transform: translate(-50%, -50%);
  z-index: 2;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.96;
}

.ks-hero-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.78) 0%, rgba(2, 6, 23, 0.18) 50%, rgba(2, 6, 23, 0.74) 100%);
  opacity: 0.9;
}

.ks-hero-slot__tex {
  position: absolute;
  inset: -40%;
  opacity: 0.72;
  background-image:
    linear-gradient(90deg, rgba(241, 196, 83, 0.22) 0%, rgba(255, 255, 255, 0.06) 36%, rgba(241, 196, 83, 0.18) 72%, rgba(255, 255, 255, 0.06) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0 1px, rgba(255, 255, 255, 0.00) 1px 12px),
    var(--tex-grain);
  background-size: 240% 100%, 12px 12px, 120px 120px;
  background-position: 0% 50%, 0 0, 0 0;
  mix-blend-mode: overlay;
  will-change: transform;
}

@keyframes ks-slot-move {
  0% { transform: translate3d(-10%, 0, 0); }
  100% { transform: translate3d(10%, 0, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .ks-hero-slot__tex { animation: ks-slot-move 10s ease-in-out infinite alternate; }
}

@media (max-width: 640px) {
  .ks-hero { --ks-hero-slot-h: 78px; }
}

/* Reveal (scroll-in) — disabled to avoid hidden content when JS is blocked or errors */
.reveal,
.reveal.is-in,
.reveal.on {
  opacity: 1;
  transform: none;
  transition: none;
  transition-delay: 0ms;
}

/* Stamp (rate) */
.ksStamp {
  --stamp-red: rgba(220, 38, 38, 0.92);
  position: absolute;
  z-index: 2;
  width: 92px;
  height: 92px;
  border-radius: 4px;
  border: 3px solid var(--stamp-red);
  color: var(--stamp-red);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72) 62%, rgba(255, 255, 255, 0.78)),
    var(--tex-grain);
  display: grid;
  place-items: center;
  text-align: center;
  transform: rotate(-14deg);
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
  opacity: 0.96;
}

.ksStamp::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 4px;
  border: 2px dashed rgba(220, 38, 38, 0.55);
  opacity: 0.9;
}

.ksStamp__label {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ksStamp__value {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ksStamp--tl { top: 14px; left: 14px; }
.ksStamp--tr { top: 14px; right: 14px; }

@media (max-width: 520px) {
  .ksStamp { width: 82px; height: 82px; }
  .ksStamp__value { font-size: 20px; }
}

/* Simple lightbox (image zoom) */
.ksLightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.72);
}

.ksLightbox.is-open { display: grid; }

.ksLightboxDialog {
  width: min(980px, 100%);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0b1220;
  box-shadow: none;
}

.ksLightboxMedia {
  width: 100%;
  height: auto;
  display: block;
  background: #0b1220;
}

.ksLightboxBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: rgba(226, 232, 240, 0.92);
  font-size: 13px;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.ksLightboxClose {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 950;
}

.ksLightboxClose:hover { filter: brightness(1.05); }

.ks-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: none;
}

.ks-divider { height: 1px; background: var(--border-hairline, rgba(11, 23, 48, 0.11)); }

.ks-sectionTitle {
  margin: 0;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.ks-sectionTitle::after{
  content:"";
  display:block;
  width: 38px;
  height: 1px;
  background: var(--border-hairline, rgba(11, 23, 48, 0.11));
  margin-top: 14px;
}

.ks-sectionDesc {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.75;
  max-width: 760px;
}

.ks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-weight: 950;
  font-size: 14px;
  letter-spacing: -0.01em;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease;
  user-select: none;
}

.ks-btn:focus-visible {
  outline: 3px solid rgba(255, 196, 0, 0.45);
  outline-offset: 3px;
}

.ks-btn--primary {
  background: var(--navy, #0b1730);
  border-color: var(--navy, #0b1730);
  color: #fff;
  box-shadow: var(--shadow);
}

.ks-btn--secondary {
  background: #fff;
  color: var(--navy, #0b1730);
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: var(--shadow-soft);
}

.ks-btn--gold {
  background: linear-gradient(135deg, rgba(255, 196, 0, 1) 0%, rgba(255, 184, 0, 1) 100%);
  color: #0b1730;
  border-color: rgba(255, 196, 0, 0.75);
  box-shadow: var(--shadow);
}

.ks-btn--ghost {
  background: #fff;
  color: var(--navy, #0b1730);
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: var(--shadow-soft);
}

@media (hover: hover) {
  .ks-btn:hover { transform: translateY(-2px); }
}

/* Subtle texture layer for premium cards.
   - Disabled on long-form KS subpages to avoid "photo layer" artifacts and reduce compositing. */
.ks-card {
  position: relative;
}

.ks-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: var(--tex-fiber), var(--tex-grain);
  background-size: 260px 260px, 120px 120px;
  background-position: 0 0, 56px 40px;
  mix-blend-mode: multiply;
}

/* =========================================================
   KS Subpages (ks-sub)
   - only used by pasan/rehab/corporate templates
========================================================= */

@keyframes ks-drift {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 140px 90px, -110px 80px, 90px -70px, -70px 60px; }
}

@keyframes ks-hero-pan {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 0 0, 0 0, 260px -260px, 120px 60px; }
}

@keyframes ks-grain {
  0% { transform: translate3d(0,0,0); opacity: .11; }
  50% { transform: translate3d(-1.5%, 1%, 0); opacity: .14; }
  100% { transform: translate3d(1.2%, -1.2%, 0); opacity: .11; }
}

@keyframes ks-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 120% 50%; }
}

@keyframes ks-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes ks-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes ks-sheen {
  0% { transform: translate3d(-56%, 0, 0) rotate(8deg); opacity: 0; }
  18% { opacity: 0.9; }
  45% { transform: translate3d(56%, 0, 0) rotate(8deg); opacity: 0; }
  100% { transform: translate3d(56%, 0, 0) rotate(8deg); opacity: 0; }
}

@keyframes ks-ring {
  0%, 100% { transform: scale(0.92); opacity: 0.55; }
  55% { transform: scale(1.07); opacity: 0.95; }
}

.ks-sub{
  position: relative;
  isolation: isolate;
  background: transparent;
}

.ks-sub::before{
  content: none;
}

.ks-sub::after{
  content: none;
}

.ks-sub > *{ position: relative; z-index: 1; }

/* Fallback surface for non-template content (e.g., index.php) */
main.ks-sub > article{
  max-width: var(--max-width);
  margin: 46px auto 70px;
  padding: clamp(20px, 2.8vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hairline, rgba(11, 23, 48, 0.11));
  background: rgba(247, 247, 245, 0.96);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

/* =========================================================
   Minimal White Header (Tone Guide 2026-01)
========================================================= */

:root{
  /* Accessibility-first sizing (older audience) */
  --header-h: 90px;
  --header-h-compact: 78px;
}

@media (max-width: 992px){
  :root{
    --header-h: 80px;
    --header-h-compact: 72px;
  }
}

#header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  width: 100%;
  height: var(--header-current-h, var(--header-h));
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: none;
}

#header.site-header.scrolled,
#header.site-header.scroll,
#header.site-header.is-scrolled {
  --header-current-h: var(--header-h-compact, 64px);
  background: #fff;
  border-bottom-color: rgba(15, 23, 42, 0.18);
  box-shadow: none;
}

#header .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  column-gap: 12px;
}

#header .logo-area {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

#header .logo-img {
  width: 34px;
  height: 34px;
  border-radius: 4px;
}

#header .logo-text { display: grid; gap: 1px; }

#header .logo-main {
  font-weight: 950;
  letter-spacing: -0.03em;
  color: rgba(11, 23, 48, 0.96);
  font-size: 17px;
  line-height: 1.1;
}

#header .logo-sub {
  font-weight: 800;
  color: rgba(11, 23, 48, 0.58);
  font-size: 13px;
  line-height: 1.1;
}

#header .gnb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

#header .nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#header .nav-item { position: relative; }

#header .nav-caret{
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(11, 23, 48, 0.30);
  border-bottom: 2px solid rgba(11, 23, 48, 0.30);
  transform: rotate(45deg);
  margin-left: 2px;
  margin-top: -2px;
}

#header .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 4px;
  color: rgba(11, 23, 48, 0.78);
  font-weight: 850;
  font-size: 18px;
  letter-spacing: -0.015em;
  transition: color 200ms cubic-bezier(.2,.8,.2,1);
}

#header .nav-link:hover {
  color: rgba(11, 23, 48, 0.92);
}

#header .nav-link.is-active {
  color: rgba(11, 23, 48, 0.98);
  font-weight: 950;
  letter-spacing: -0.02em;
}

#header .nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 0;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 200ms cubic-bezier(.2,.8,.2,1);
}

#header .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms cubic-bezier(.2,.8,.2,1);
}

#header .nav-link:hover::after,
#header .nav-link:focus-visible::after {
  transform: scaleX(1);
}

#header .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 4px;
  box-shadow: none;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#header .nav-item:hover .sub-menu,
#header .nav-item:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#header .sub-menu a {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 12px;
  border-radius: 4px;
  color: rgba(11, 23, 48, 0.86);
  font-weight: 850;
  font-size: 16px;
}

#header .sub-menu a:hover { background: rgba(11, 23, 48, 0.05); }

#header .gnb__bottom { display: none; }

#header .header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

#header .header-actions__where{
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11, 23, 48, 0.54);
  padding-right: 10px;
  border-right: 1px solid rgba(15, 23, 42, 0.10);
  white-space: nowrap;
}

#header .header-actions__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--gold), var(--gold-hover));
  color: #0b111d;
  border: 1px solid rgba(255, 196, 0, 0.55);
  font-weight: 950;
  font-size: 16px;
  letter-spacing: -0.01em;
  box-shadow: none;
}

#header .header-actions__tel {
  color: rgba(11, 23, 48, 0.78);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(11, 23, 48, 0.18);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

#header .header-actions__tel:hover {
  color: rgba(11, 23, 48, 0.92);
  text-decoration-color: rgba(11, 23, 48, 0.30);
}

#header .menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(11, 23, 48, 0.03);
  padding: 0;
  position: relative;
  align-items: center;
  justify-content: center;
}

#header .menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: rgba(11, 23, 48, 0.92);
  border-radius: 2px;
  transition: transform 200ms cubic-bezier(.2,.8,.2,1), opacity 200ms cubic-bezier(.2,.8,.2,1);
}

#header .menu-toggle span:nth-child(1) { top: 13px; }
#header .menu-toggle span:nth-child(2) { top: 19px; }
#header .menu-toggle span:nth-child(3) { top: 25px; }

#header .menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#header .menu-toggle.active span:nth-child(2) { opacity: 0; }
#header .menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 992px) {
  #header .logo-area { min-width: 0; }
  #header .logo-sub { display: none; }

  #header .header-actions { display: none; }
  #header .menu-toggle { display: inline-flex; margin-left: auto; }

  #header .gnb {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(360px, 88vw);
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(15, 23, 42, 0.12);
    transform: translateX(102%);
    transition: transform 240ms cubic-bezier(.2,.8,.2,1);
    z-index: 1200;
    padding-top: calc(var(--header-current-h, var(--header-h, 72px)) + var(--ks-adminbar-h, 0px));
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    overflow: auto;
  }

  #header .gnb.open { transform: translateX(0); }

  #header .gnb-dim {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    opacity: 0;
    transition: opacity 200ms cubic-bezier(.2,.8,.2,1);
    z-index: 1100;
  }

  #header .gnb-dim.is-on { opacity: 1; }

  #header .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 14px;
    gap: 6px;
  }

  #header .nav-link {
    height: 58px;
    justify-content: space-between;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 18px;
  }

  /* Disable underline sweep on mobile; submenu caret uses ::after instead. */
  #header .nav-link::after { display: none; }
  #header .nav-caret { display: none; }

  #header .nav-item.has-sub .nav-link::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(11, 23, 48, 0.38);
    border-bottom: 2px solid rgba(11, 23, 48, 0.38);
    transform: rotate(45deg);
    margin-left: auto;
  }

  #header .nav-item.active .nav-link::after { transform: rotate(-135deg); }

  #header .sub-menu {
    position: static;
    transform: none;
    min-width: 0;
    border: none;
    box-shadow: none;
    padding: 0 0 0 10px;
    display: grid;
    gap: 6px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    pointer-events: none;
    transition: max-height 240ms cubic-bezier(.2,.8,.2,1), opacity 180ms cubic-bezier(.2,.8,.2,1), clip-path 240ms cubic-bezier(.2,.8,.2,1);
  }

  #header .nav-item.active .sub-menu {
    max-height: 260px;
    opacity: 1;
    clip-path: inset(0);
    pointer-events: auto;
    padding-bottom: 6px;
  }

  #header .sub-menu a {
    height: 52px;
    background: rgba(11, 23, 48, 0.03);
    font-size: 16px;
  }

  #header .gnb__bottom {
    display: block;
    position: sticky;
    bottom: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
  }

  #header .gnb__bottomCta {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--gold), var(--gold-hover));
    border: 1px solid rgba(255, 196, 0, 0.55);
    color: #0b111d;
    font-weight: 950;
    font-size: 16px;
  }
}
