:root {
    --black: #080a0e; --dark: #0d1117; --accent: #e8c86a; --accent2: #4d9fff;
    --text: #f0f2f5; --text-dim: #8b93a7; --text-muted: #4a5265;
    --light-bg: #ffffff; --light-text: #1a1f2e; --light-text-dim: #4a5568;
    --light-text-muted: #a0aec0;
    --white: #ffffff;
    --font: 'Pretendard', sans-serif;
  }

  /* 서브 페이지: main-nav 숨김 + content-nav 항상 표시 (메인과 동일한 글로벌 헤더) */
  #main-nav { display: none !important; }
  #content-nav,
  #content-nav.is-visible {
      transform: translateY(0) !important;
      pointer-events: auto !important;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { overflow-y: scroll; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
  body { background: var(--white); color: var(--text); font-family: var(--font); font-weight: 400; font-size: 15px; line-height: 1.6; overflow-x: hidden; }

  /* ── HEADER ── */
  .hd-row { display: flex; justify-content: space-between; align-items: center; }
  .hd-logo a { display: block; }
  .hd-logo img { height: 44px; width: 175px; display: block; object-fit: contain; object-position: left center; }
  .hd-menu { display: flex; gap: 50px; list-style: none; }
  .hd-menu li a { text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: 0.3px; transition: color 0.3s; cursor: pointer; }
  #main-nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 1060; padding: 16px 0; background: transparent; transition: opacity 0.3s ease; }
  #main-nav .hd-row { padding: 0 240px; }
  #main-nav .hd-menu li a { color: #fff; }
  #main-nav .hd-menu li a:hover { color: #1f7bbf; }
  #content-nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 1055; padding: 16px 0; background: #fff; transform: translateY(-110%); pointer-events: none; transition: background-color 0.15s ease, transform 0.44s cubic-bezier(0.4,0,0.2,1); }
  #content-nav.is-visible { transform: translateY(0); pointer-events: auto; }
  #content-nav .hd-row { padding: 0 240px; }

  #content-nav .hd-menu li a { color: #111; transition: color 0.3s ease; }
  #content-nav .hd-menu li a:hover { color: #1f7bbf; }
  #content-nav .hd-logo .logo-light { display: block; }
  #content-nav .hd-logo .logo-dark  { display: none; }

  #content-nav.theme-dark { background: #0a0a0b; }
  #content-nav.theme-dark .hd-menu li a { color: #fff; }
  #content-nav.theme-dark .hd-menu li a:hover { color: #4d9fff; }
  #content-nav.theme-dark .hd-logo .logo-light { display: none; }
  #content-nav.theme-dark .hd-logo .logo-dark  { display: block; }

  #content-nav.theme-footer { background: #212121; }
  #content-nav.theme-footer .hd-menu li a { color: #fff; }
  #content-nav.theme-footer .hd-menu li a:hover { color: #4d9fff; }
  #content-nav.theme-footer .hd-logo .logo-light { display: none; }
  #content-nav.theme-footer .hd-logo .logo-dark  { display: block; }

  /* ── 햄버거 메뉴 버튼 (1024px 이하에서만 표시) ── */
  .hd-burger {
    display: none;
    width: 44px; height: 44px;
    background: transparent; border: none; cursor: pointer;
    position: relative; z-index: 1100;
    padding: 10px;
    -webkit-tap-highlight-color: transparent;
  }
  .hd-burger span {
    display: block; width: 24px; height: 2px;
    background: currentColor; margin: 5px auto;
    transition: transform 0.35s ease, opacity 0.25s ease, background 0.3s ease;
    border-radius: 2px;
  }
  #main-nav .hd-burger { color: #fff; }
  #content-nav .hd-burger { color: #111; }
  #content-nav.theme-dark .hd-burger,
  #content-nav.theme-footer .hd-burger { color: #fff; }
  .hd-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hd-burger.is-open span:nth-child(2) { opacity: 0; }
  .hd-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── 메뉴가 열렸을 때: nav 배경 투명화 + 양쪽 햄버거 숨김 ── */
  body.menu-open #main-nav,
  body.menu-open #content-nav {
    background: transparent !important;
    pointer-events: none !important;
  }
  body.menu-open .hd-burger { display: none !important; }
  body.menu-open #content-nav .logo-light { display: none !important; }
  body.menu-open #content-nav .logo-dark { display: block !important; }

  /* ── 모바일 메뉴 오버레이 ── */
  .mobile-menu {
    position: fixed; inset: 0; z-index: 1050;
    background: rgba(10,10,11,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .mobile-menu ul { list-style: none; padding: 0; margin: 0; text-align: center; }
  .mobile-menu li { margin: 20px 0; opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }
  .mobile-menu.is-open li { opacity: 1; transform: translateY(0); }
  .mobile-menu.is-open li:nth-child(1) { transition-delay: 0.10s; }
  .mobile-menu.is-open li:nth-child(2) { transition-delay: 0.16s; }
  .mobile-menu.is-open li:nth-child(3) { transition-delay: 0.22s; }
  .mobile-menu.is-open li:nth-child(4) { transition-delay: 0.28s; }
  .mobile-menu.is-open li:nth-child(5) { transition-delay: 0.34s; }
  .mobile-menu li a {
    display: inline-block;
    color: #fff;
    font-size: clamp(20px, 6vw, 28px);
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    transition: color 0.25s;
  }
  .mobile-menu li a:hover { color: #4d9fff; }

  /* ── 모바일 메뉴 전용 닫기(X) 버튼 ── */
  .mobile-menu-close {
    position: absolute;
    top: max(14px, env(safe-area-inset-top, 14px));
    right: 20px;
    width: 44px; height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: rotate(-90deg);
  }
  .mobile-menu.is-open .mobile-menu-close {
    opacity: 1;
    transform: rotate(0);
    transition-delay: 0.15s;
  }
  .mobile-menu-close::before,
  .mobile-menu-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    margin-top: -1px;
    margin-left: -12px;
  }
  .mobile-menu-close::before { transform: rotate(45deg); }
  .mobile-menu-close::after  { transform: rotate(-45deg); }
  .mobile-menu-close:hover::before,
  .mobile-menu-close:hover::after { background: #4d9fff; }

  /* ── HERO ── */
  #hero { position: relative; width: 100%; height: 100vh; min-height: 600px; overflow: hidden; background: var(--black); }
  #hero video,
  #hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
  .hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8,10,14,0.3) 0%, rgba(8,10,14,0.1) 40%, rgba(8,10,14,0.6) 80%, rgba(8,10,14,1) 100%); pointer-events: none; }
  .hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(120px, 13.542vw, 520px) clamp(24px, 4.167vw, 160px) 0 clamp(24px, 5.213vw, 200px);
    max-width: 100%;
    margin-left: -1.302vw;
  }
  .hero-sub {
    font-family: var(--font);
    font-weight: 200;
    font-size: clamp(14px, 1.562vw, 60px);
    line-height: 1;
    letter-spacing: 1.5px;
    color: var(--text);
    margin: 0 0 clamp(14px, 1.042vw, 40px) 0;
    padding-left: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s 0.4s forwards;
    word-break: keep-all;
  }
  .hero-title {
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(30px, 3.394vw, 130px);
    line-height: 1.3;
    letter-spacing: clamp(-0.5px, -0.03vw, -1.2px);
    color: var(--text);
    max-width: 100%;
    margin: 0;
    margin-bottom: -10.417vw;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s 0.6s forwards;
    word-break: keep-all;
  }

  /* ── SCROLL INDICATOR ── */
  .scroll-indicator {
    position: absolute;
    bottom: clamp(20px, 1.5vw, 60px);
    left: 50%;
    transform: translateX(-50%);
    width: 3.646vw;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
    flex-direction: column;
    gap: 0.468vw;
  }
  .scroll-text {
    color: #fff;
    font-family: var(--font);
    font-size: clamp(10px, 0.677vw, 26px);
    font-weight: 400;
    letter-spacing: 0.5px;
  }
  .scroll-indicator.hidden { opacity: 0 !important; }
  .scroll-indicator-line {
    width: clamp(22px, 1.35vw, 52px);
    height: clamp(34px, 2.135vw, 82px);
    position: relative;
    display: block;
    border: 2px solid #fff;
    border-radius: clamp(16px, 1.06vw, 40px);
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 0, 0, 0.15);
  }
  .scroll-indicator-line > img:first-child { display: none; }
  .scroll-indicator-point {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(6px, 0.365vw, 14px);
    height: clamp(6px, 0.365vw, 14px);
    background-color: #fff;
    border-radius: 50%;
    top: 10%;
    animation: scroll-point-move 1.8s ease-in-out infinite;
  }
  @keyframes scroll-point-move {
    0%   { top: 10%; opacity: 1; }
    70%  { top: 65%; opacity: 1; }
    85%  { top: 72%; opacity: 0; }
    100% { top: 10%; opacity: 0; }
  }
  @keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

  /* ══ COMMON SECTION HEADER ══ */
  .sec-hd { text-align: center; padding-top: clamp(40px, 6.77vw, 260px); flex-shrink: 0; }
  .sec-hd-sub { font-family: var(--font); font-weight: 500; color: #6d3b3b; font-size: clamp(11px, 0.677vw, 26px); color: var(--text-dim); letter-spacing: 0.3px; line-height: 1.8; padding: 0 16px; }
  .sec-hd-title { margin-top: clamp(12px, 1.042vw, 40px); font-family: var(--font); font-weight: 100; font-size: clamp(28px, 3.281vw, 126px); line-height: 1; letter-spacing: clamp(-1px, -0.13vw, -3px); color: var(--text); }
  .sec-hd-title strong { font-weight: 700; }
  .sec-hd--light .sec-hd-sub   { color: var(--light-text-dim); }
  .sec-hd--light .sec-hd-title { color: var(--light-text); }

  /* ── CONTENT AREA (서브페이지별 콘텐츠가 들어갈 자리) ── */
  #content-area {
    background: #f5f5f5;
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 4vw, 120px) 20px;
  }

  /* 자료 준비중 텍스트 (나중에 실제 콘텐츠 넣을 때 삭제) */
  .preparing {
    text-align: center;
    font-family: var(--font);
  }
  .preparing-title {
    font-size: clamp(40px, 5.5vw, 160px);
    font-weight: 700;
    letter-spacing: clamp(-1px, -0.15vw, -4px);
    color: #b8b8b8;
    line-height: 1.1;
    word-break: keep-all;
  }
  .preparing-sub {
    margin-top: clamp(14px, 1.2vw, 28px);
    font-size: clamp(13px, 0.833vw, 24px);
    font-weight: 400;
    letter-spacing: 0.3px;
    color: #999;
  }

  /* ── CONTACT ── */
  #contact {
    padding: 0 0 clamp(40px, 2.083vw, 80px);
    background: var(--light-bg);
    min-height: 100vh;
  }
  .contact-inner {
    width: 100%;
    max-width: 1890px;
    margin: 0 auto;
    padding: 0 clamp(20px, 1.042vw, 40px);
    box-sizing: border-box;
  }
  .contact-form-wrap {
    margin-top: clamp(60px, 5.99vw, 230px);
    display: flex;
    justify-content: center;
  }
  .contact-form {
    width: clamp(280px, 46.875vw, 1800px);
    max-width: 100%;
    display: flex;
    flex-direction: column;
  }

  .contact-form .form-group { display: flex; flex-direction: column; }
  .contact-form label {
    font-family: var(--font);
    font-size: clamp(13px, 0.729vw, 28px);
    font-weight: 700;
    color: var(--light-text);
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: clamp(10px, 0.781vw, 30px);
    line-height: 1;
  }
  .contact-form label .req { color: #e53935; margin-left: 4px; }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    height: clamp(44px, 2.214vw, 85px);
    padding: 0 clamp(12px, 0.781vw, 30px);
    background: #f5f5f5;
    border: 0;
    border-radius: 0;
    border-bottom: 3px solid #ebebeb;
    font-family: var(--font);
    font-size: clamp(13px, 0.521vw, 20px);
    color: var(--light-text);
    outline: none;
    box-sizing: border-box;
  }
  .contact-form input::placeholder,
  .contact-form textarea::placeholder { color: #b0b0b0; }
  .contact-form input:focus,
  .contact-form select:focus,
  .contact-form textarea:focus { background: #eeeeee; }

  .form-row-3 {
    display: flex;
    justify-content: flex-start;
    gap: clamp(20px, 1.953vw, 75px);
    margin-bottom: clamp(24px, 2.083vw, 80px);
  }
  .form-row-3 .form-group {
    flex: 1;
    min-width: 0;
    width: clamp(180px, 14.323vw, 550px);
  }
  .form-row-email {
    display: flex;
    align-items: flex-end;
    margin-bottom: clamp(24px, 2.083vw, 80px);
  }
  .form-row-email .email-local {
    width: clamp(220px, 17.318vw, 665px);
    margin-right: clamp(8px, 0.651vw, 25px);
  }
  .email-at {
    width: auto;
    height: clamp(44px, 2.214vw, 85px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 0.729vw, 28px);
    color: var(--light-text);
    font-weight: 500;
    flex-shrink: 0;
    margin-right: clamp(8px, 0.651vw, 25px);
  }
  .form-row-email .email-domain {
    width: clamp(160px, 13.542vw, 520px);
  }
  .form-row-email .email-select {
    width: clamp(160px, 13.542vw, 520px);
    margin-left: clamp(8px, 0.521vw, 20px);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("../image/droparrow.png");
    background-repeat: no-repeat;
    background-position: right clamp(12px, 0.781vw, 30px) center;
    background-size: clamp(14px, 0.521vw, 20px) clamp(10px, 0.365vw, 14px);
    padding-right: clamp(30px, 1.823vw, 70px);
    cursor: pointer;
  }

  .form-row-message {
    margin-bottom: clamp(14px, 0.807vw, 31px);
  }
  .contact-form textarea {
    width: 100%;
    max-width: 100%;
    height: clamp(120px, 6.51vw, 250px);
    padding: clamp(14px, 0.781vw, 30px);
    resize: none;
    line-height: 1.6;
  }

  .form-privacy {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: clamp(40px, 3.255vw, 125px);
  }
  .contact-form .privacy-check {
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 0.365vw, 14px);
    cursor: pointer;
    font-family: var(--font);
    font-size: clamp(13px, 0.521vw, 20px);
    font-weight: 600;
    color: var(--light-text);
    letter-spacing: 0;
    text-transform: none;
    line-height: 1;
    margin-bottom: 0;
    user-select: none;
  }
  .privacy-check input[type="checkbox"] { display: none; }
  .privacy-box {
    width: clamp(18px, 0.677vw, 26px);
    height: clamp(18px, 0.677vw, 26px);
    border-radius: 50%;
    background: #1a1f2e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
  }
  .privacy-box::after {
    content: '';
    width: clamp(8px, 0.286vw, 11px);
    height: clamp(4px, 0.156vw, 6px);
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
  }
  .privacy-check input:not(:checked) + .privacy-box { background: #cccccc; }
  .privacy-detail {
    color: #999;
    font-size: clamp(11px, 0.469vw, 18px);
    text-decoration: none;
    margin-left: clamp(4px, 0.208vw, 8px);
  }

  .form-submit {
    display: flex;
    justify-content: center;
  }
  .contact-form .btn-submit {
    width: clamp(180px, 8.854vw, 340px);
    height: clamp(50px, 1.979vw, 76px);
    padding: 0;
    background: #111;
    color: #fff;
    border: none;
    border-radius: clamp(4px, 0.156vw, 6px);
    font-family: var(--font);
    font-size: clamp(14px, 0.677vw, 26px);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: background 0.2s;
  }
  .contact-form .btn-submit:hover {
    background: #333;
  }

  .form-success { display: none; text-align: center; padding: 24px 40px; border: 1px solid rgba(26,31,46,0.15); border-radius: 8px; background: rgba(26,31,46,0.04); margin-bottom: 24px; }
  .form-success.show { display: block; animation: fadeIn 0.3s ease; }
  .form-success h3 { font-size: clamp(16px, 0.625vw, 24px); font-weight: 700; color: var(--light-text); margin-bottom: 10px; }
  .form-success p { font-size: clamp(12px, 0.417vw, 16px); color: var(--light-text-dim); }

  @keyframes fadeIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

  /* ── FOOTER ── */
  .inner { max-width: 1440px; margin: 0 auto; width: 100%; padding: 0 120px; }
  .footer { background: #212121; padding: clamp(24px, 2.604vw, 50px) 0 clamp(20px, 1.875vw, 36px); }
  .footer .inner {
    max-width: 100%;
    padding: 0 clamp(20px, 6.25vw, 120px) 0 clamp(20px, 11vw, 700px);
    display: flex; flex-direction: column;
  }
  .footer-top {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: clamp(12px, 1.25vw, 24px);
    padding-bottom: clamp(20px, 2.083vw, 40px);
    margin-bottom: clamp(6px, 0.521vw, 10px);
  }
  .footer-logo { display: flex; align-items: center; gap: clamp(6px, 0.625vw, 12px); margin-left: -1.563vw; }
  .footer-logo img { height: clamp(30px, 2.917vw, 56px) !important; }
  .footer-logo-text .main { font-family: 'Pretendard', sans-serif; font-size: clamp(10px, 0.833vw, 16px); font-weight: 400; color: #fff; letter-spacing: -.3px; }
  .footer-logo-text .sub  { font-family: 'Pretendard', sans-serif; font-size: clamp(8px,  0.521vw, 10px); font-weight: 400; color: #aaa; letter-spacing: .5px; }
  .footer-nav {
    display: flex; flex-wrap: wrap;
    gap: clamp(12px, 3.125vw, 60px);
    list-style: none; padding: 0; margin: 0;
    margin-right: 7vw;
  }
  .footer-nav li a { font-family: 'Pretendard', sans-serif; font-size: clamp(10px, 0.677vw, 13px); font-weight: 400; color: #888; text-decoration: none; transition: color .2s; }
  .footer-nav li a:hover { color: #fff; }
  .footer-info { margin-bottom: clamp(12px, 1.25vw, 24px); }
  .footer-info p { font-family: 'Pretendard', sans-serif; font-size: clamp(9px, 0.625vw, 12px); font-weight: 400; color: #888; line-height: 1.8; word-break: keep-all; }
  .footer-info .divider { margin: 0 clamp(4px, 0.417vw, 8px); color: #555; }
  .footer-copy { font-family: 'Pretendard', sans-serif; font-size: clamp(8px, 0.573vw, 11px); font-weight: 400; color: #555; }

  /* ── SCROLL REVEAL ── */
  .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1); }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* ══════════════════════════════════════════════════════════════ */
  /* ══ RESPONSIVE ══════════════════════════════════════════════ */
  /* ══════════════════════════════════════════════════════════════ */

  @media (max-width: 2560px) {
    #main-nav .hd-row, #content-nav .hd-row { padding: 0 160px; }
  }

  @media (max-width: 1920px) {
    #main-nav .hd-row, #content-nav .hd-row { padding: 0 120px; }
  }

  @media (max-width: 1440px) {
    #main-nav .hd-row, #content-nav .hd-row { padding: 0 80px; }
    .hero-content { padding: clamp(100px, 13.542vw, 520px) 80px 0 80px; margin-left: 0; }
    .footer .inner { padding: 0 80px 0 clamp(60px, 11vw, 220px); }
  }

  @media (max-width: 1280px) {
    #main-nav .hd-row, #content-nav .hd-row { padding: 0 60px; }
    .hd-menu { gap: 32px; }
    .hd-menu li a { font-size: 14px; }
    .hero-content { padding: 100px 60px 0 60px; }
    .hero-title { font-size: clamp(32px, 5vw, 70px); }
    .hero-sub { font-size: clamp(14px, 1.6vw, 20px); }
    .sec-hd-title { font-size: clamp(32px, 5vw, 80px); }
    .sec-hd-sub { font-size: clamp(11px, 1.2vw, 16px); }
    .footer .inner { padding: 0 60px 0 120px; }
  }

  /* ── 1024px (태블릿 가로) : 햄버거 시작 ── */
  @media (max-width: 1024px) {
    #main-nav .hd-row, #content-nav .hd-row { padding: 0 40px; }
    .hd-menu { display: none; }
    .hd-burger { display: block; }

    .hd-logo { margin-left: -24px; }
    .hd-logo img {
        height: 40px;
        width: auto;
        display: block;
        object-fit: contain;
        object-position: left center;
    }

    .hero-content { padding: 100px 40px 0 40px; align-items: flex-start; }
    .hero-sub { font-size: 16px; }
    .hero-title { font-size: clamp(34px, 6.5vw, 60px); }

    .sec-hd { padding-top: clamp(50px, 8vw, 120px); }
    .sec-hd-title { font-size: clamp(34px, 6.5vw, 64px); }
    .sec-hd-sub { font-size: 13px; }

    /* 문의 폼 */
    .contact-inner { padding: 0 40px; }
    .contact-form-wrap { margin-top: 60px; }
    .contact-form { width: 100%; }
    .form-row-3 { gap: 20px; margin-bottom: 28px; }
    .form-row-email {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      grid-template-rows: auto auto;
      column-gap: 8px;
      row-gap: 12px;
      align-items: end;
      margin-bottom: 24px;
    }
    .form-row-email .email-local {
      grid-column: 1;
      grid-row: 1;
      width: auto;
      margin: 0;
    }
    .email-at {
      display: flex;
      grid-column: 2;
      grid-row: 1;
      width: auto;
      height: 48px;
      align-items: center;
      justify-content: center;
      margin: 0;
      padding: 0 2px;
      font-size: 18px;
      font-weight: 500;
    }
    .form-row-email .email-domain {
      grid-column: 3;
      grid-row: 1;
      width: auto;
      margin: 0;
    }
    .form-row-email .email-select {
      grid-column: 1 / -1;
      grid-row: 2;
      width: 100%;
      margin: 0;
    }
    .contact-form label { font-size: 14px; margin-bottom: 10px; }
    .contact-form input, .contact-form select, .contact-form textarea { height: 48px; font-size: 14px; padding: 0 14px; }
    .contact-form textarea { height: 160px; padding: 14px; max-width: 100%; }
    .form-privacy { margin-bottom: 40px; }
    .contact-form .privacy-check { font-size: 13px; gap: 8px; }
    .privacy-box { width: 20px; height: 20px; }
    .privacy-detail { font-size: 12px; }
    .contact-form .btn-submit { width: 220px; height: 52px; font-size: 15px; border-radius: 6px; }

    /* 푸터 */
    .footer .inner { padding: 0 40px; }
    .footer-logo { margin-left: 0; }
    .footer-nav { gap: 20px; margin-right: 0; }
  }

  /* ── 768px (태블릿 세로 / 큰 모바일) ── */
  @media (max-width: 768px) {
    #main-nav { padding: 12px 0; }
    #content-nav { padding: 12px 0; }
    #main-nav .hd-row, #content-nav .hd-row { padding: 0 20px; }

    .hero-content {
        padding: 0 24px;
        justify-content: flex-end;
        align-items: flex-start;
        padding-bottom: 120px;
        text-align: left;
    }
    .hero-sub { font-size: 14px; margin-bottom: 12px; }
    .hero-title { font-size: clamp(28px, 7.5vw, 44px); line-height: 1.2; }

    .sec-hd { padding-top: 60px; }
    .sec-hd-title { font-size: clamp(30px, 8vw, 48px); letter-spacing: -1px; }
    .sec-hd-sub { font-size: 12px; padding: 0 20px; }

    /* 문의 폼 */
    .contact-inner { padding: 0 20px; }
    .contact-form-wrap { margin-top: 40px; }
    .contact-form label { font-size: 13px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.1px; }
    .form-row-3 { flex-direction: column; gap: 14px; margin-bottom: 16px; }
    .form-row-3 .form-group { width: 100%; }
    .form-row-email {
      column-gap: 6px;
      row-gap: 10px;
      margin-bottom: 16px;
    }
    .email-at {
      height: 46px;
      font-size: 16px;
      padding: 0 1px;
    }
    .contact-form input, .contact-form select, .contact-form textarea { height: 46px; font-size: 14px; padding: 0 12px; border-bottom-width: 2px; }
    .contact-form textarea { height: 140px; padding: 14px; max-width: 100%; }
    .form-row-message { margin-bottom: 14px; }
    .form-privacy { margin-bottom: 26px; }
    .privacy-detail { margin-left: 6px; }
    .contact-form .btn-submit { width: 100%; max-width: 320px; height: 50px; }

    /* 푸터 */
    .footer { padding: 28px 0 22px; }
    .footer .inner { padding: 0 20px; }
    .footer-top { flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 20px; }
    .footer-logo img { height: 36px !important; }
    .footer-nav { gap: 12px 18px; margin-right: 0; }
    .footer-nav li a { font-size: 12px; }
    .footer-info p { font-size: 11px; line-height: 1.7; }
    .footer-info .divider { display: none; }
    .footer-copy { font-size: 10px; }
    .footer-logo { margin-left: -20px; }
  }

  @media (max-width: 640px) {
    .hero-title { font-size: clamp(26px, 8vw, 40px); }
  }

  /* ── 480px (소형 모바일) ── */
  @media (max-width: 480px) {
    #main-nav .hd-row, #content-nav .hd-row { padding: 0 16px; }

    .hero-content {
        padding: 0 20px;
        padding-bottom: 110px;
        justify-content: flex-end;
        align-items: flex-start;
        text-align: left;
    }
    .hero-title { font-size: 26px; }
    .hero-sub { font-size: 13px; }

    .sec-hd-title { font-size: 30px; }
    .sec-hd-sub { font-size: 11px; }

    .contact-form label { font-size: 12.5px; }
    .form-row-email { column-gap: 4px; row-gap: 8px; }
    .email-at { font-size: 14px; height: 44px; padding: 0; }
    .contact-form input, .contact-form select, .contact-form textarea { height: 44px; font-size: 13.5px; }
    .form-privacy { align-items: flex-start; flex-direction: column; gap: 6px; margin-bottom: 24px; }
    .contact-form .privacy-check { flex-wrap: wrap; }

    .footer-nav { gap: 10px 14px; }
    .footer-logo { margin-left: -20px; }
  }

/* ═══════════════════════════════════════════════════════════
   SI / ITO CONTENT AREA
   totalcare 스타일 시스템 + 섹션 간격 확대
   ═══════════════════════════════════════════════════════════ */

#totalcare-content {
  --tc-page-x: clamp(18px, 11.458333vw, 340px);
  --tc-content-w: 1880px;

  /* ── HEADER (상단 빈 공간) ── */
  --tc-header-top: 180px;  /* 상단 고정 여백 */
  --tc-header-bottom: clamp(48px, 6.25vw, 160px);
  --tc-title-size: clamp(28px, 3.046875vw, 78px);
  --tc-header-desc-size: clamp(14px, 1.40625vw, 36px);
  --tc-title-desc-gap: clamp(16px, 2.265625vw, 58px);

  /* ── IMAGE ── */
  --tc-main-img-h: clamp(240px, 22.265625vw, 570px);
  --tc-main-text-gap: clamp(34px, 3.125vw, 80px);

  /* ── SIITO TOP TEXT (kicker와 summary) ── */
  --siito-kicker-size: 78px;        /* 제목: Pretendard ExtraBold */
  --siito-summary-size: 36px;       /* 설명: Pretendard SemiBold, #808080 */
  --siito-kicker-summary-gap: 58px; /* 제목-설명 간격 */
  --siito-summary-image-gap: 150px; /* 설명-이미지 간격 */

  /* ── SIITO BOTTOM TEXT ── */
  --siito-image-headline-gap: 70px; /* 이미지-중제목 간격 */
  --siito-headline-size: 46px;      /* 중제목: Pretendard ExtraBold */
  --siito-detail-size: 28px;        /* 상세설명: Pretendard Regular, #585858 */
  --siito-headline-detail-gap: 30px; /* 중제목-상세설명 간격 */

  /* ── SPACING (섹션 간격) ── */
  --tc-section-gap: clamp(120px, 18vw, 460px);
  --tc-first-item-gap: clamp(100px, 14vw, 360px);

  --tc-radius: clamp(14px, 0.78125vw, 20px);

  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: #fff;
  color: #111;
  overflow: hidden;
}

.siito-content {
  padding: var(--tc-header-top) 0 var(--tc-section-gap);
}

/* ── 비활성화된 헤더 (SI/ITO는 헤더 없이 바로 시작) ── */
.totalcare-header {
  display: none;
}

/* ── 공통 ITEM ── */
.totalcare-item {
  position: relative;
  width: min(calc(100% - (var(--tc-page-x) * 2)), var(--tc-content-w));
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--tc-section-gap);
}

.siito-item:first-child {
  margin-bottom: var(--tc-first-item-gap);
}

.siito-item:last-child {
  margin-bottom: var(--tc-section-gap);
}

/* ── MAIN IMAGE ── */
.siito-main-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: var(--tc-main-img-h);
  border-radius: var(--tc-radius);
  object-fit: cover;
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 1s ease 0.3s, transform 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
  transform: scale(0.96);
}

.totalcare-item.is-visible .siito-main-image {
  opacity: 1;
  transform: scale(1);
}

/* ── TOP TEXT (kicker + summary) ── */
.siito-top {
  text-align: center;
  margin-top: clamp(60px, 7.8125vw, 200px);
  margin-bottom: var(--siito-summary-image-gap);  /* 설명-이미지 간격 */
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: translateY(clamp(10px, 0.703125vw, 18px));
}

.totalcare-item.is-visible .siito-top {
  opacity: 1;
  transform: translateY(0);
}

.siito-kicker {
  font-family: 'Pretendard', sans-serif;
  font-weight: 800;
  font-size: var(--siito-kicker-size);
  line-height: 1.15;
  letter-spacing: clamp(-0.6px, -0.015625vw, -0.2px);
  color: #111;
  margin: 0;
  word-break: keep-all;
}

.siito-summary {
  font-family: 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: var(--siito-summary-size);
  line-height: 1.55;
  color: #808080;  /* 요청된 색상 */
  margin: var(--siito-kicker-summary-gap) 0 0;
  word-break: keep-all;
}

/* ── BOTTOM TEXT (headline + detail) ── */
.siito-bottom {
  text-align: center;
  margin-top: var(--siito-image-headline-gap);  /* 이미지-중제목 간격 */
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
  transform: translateY(clamp(10px, 0.703125vw, 18px));
}

.totalcare-item.is-visible .siito-bottom {
  opacity: 1;
  transform: translateY(0);
}

.siito-headline {
  font-family: 'Pretendard', sans-serif;
  font-weight: 800;
  font-size: var(--siito-headline-size);
  line-height: 1.2;
  letter-spacing: clamp(-0.3px, -0.0078125vw, -0.1px);
  color: #111;
  margin: 0;
  word-break: keep-all;
}

.siito-detail {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;  /* Regular */
  font-size: var(--siito-detail-size);
  line-height: 1.7;
  color: #585858;  /* 요청된 색상 */
  margin: var(--siito-headline-detail-gap) 0 0;
  word-break: keep-all;
}

/* ── 1100px 이하: 반응형 조정 ── */
@media (max-width: 1100px) {
  #totalcare-content {
    --tc-page-x: clamp(28px, 5.2vw, 52px);
    --tc-content-w: 100%;
    --tc-header-top: clamp(60px, 8vw, 86px);
    --tc-header-bottom: clamp(56px, 9vw, 92px);
    --siito-kicker-size: clamp(36px, 6.5vw, 54px);
    --siito-summary-size: clamp(16px, 2.5vw, 22px);
    --siito-kicker-summary-gap: 24px;
    --siito-summary-image-gap: clamp(50px, 8vw, 80px);
    --siito-image-headline-gap: clamp(30px, 5vw, 50px);
    --siito-headline-size: clamp(28px, 4.8vw, 38px);
    --siito-detail-size: clamp(16px, 2.4vw, 20px);
    --siito-headline-detail-gap: 18px;
    --tc-section-gap: clamp(100px, 15vw, 160px);
    --tc-first-item-gap: clamp(90px, 13vw, 140px);
    --tc-main-img-h: auto;
    --tc-radius: 20px;
  }

  .siito-main-image {
    height: auto;
    aspect-ratio: 1880 / 570;
  }

  .siito-top,
  .siito-bottom {
    transform: translateY(20px);
  }
}

/* ── 768px 이하: 모바일 조정 ── */
@media (max-width: 768px) {
  #totalcare-content {
    --tc-page-x: 24px;
    --tc-header-top: 60px;
    --tc-header-bottom: 56px;
    --siito-kicker-size: clamp(30px, 7.5vw, 44px);
    --siito-summary-size: 15px;
    --siito-kicker-summary-gap: 20px;
    --siito-summary-image-gap: 60px;
    --siito-image-headline-gap: 36px;
    --siito-headline-size: clamp(24px, 6.2vw, 32px);
    --siito-detail-size: 15px;
    --siito-headline-detail-gap: 14px;
    --tc-section-gap: 90px;
    --tc-first-item-gap: 80px;
  }

  .siito-main-image {
    aspect-ratio: 4 / 2.25;
  }

  .siito-detail br {
    display: none;
  }
}

/* ── 480px 이하: 소형 모바일 ── */
@media (max-width: 480px) {
  #totalcare-content {
    --tc-page-x: 18px;
    --tc-header-top: 54px;
    --tc-header-bottom: 48px;
    --siito-kicker-size: clamp(28px, 8.2vw, 36px);
    --siito-summary-size: 14px;
    --siito-kicker-summary-gap: 16px;
    --siito-summary-image-gap: 50px;
    --siito-image-headline-gap: 28px;
    --siito-headline-size: clamp(22px, 7vw, 28px);
    --siito-detail-size: 14px;
    --siito-headline-detail-gap: 12px;
    --tc-section-gap: 70px;
    --tc-first-item-gap: 60px;
    --tc-radius: 18px;
  }
}

/* ── 360px 이하 ── */
@media (max-width: 360px) {
  #totalcare-content {
    --tc-page-x: 14px;
  }
}

/* ── 접근성: 모션 최소화 ── */
@media (prefers-reduced-motion: reduce) {
  .siito-main-image,
  .siito-top,
  .siito-bottom {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── NAV OVERFLOW GUARD ── */
@media (max-width: 1180px) {
  #main-nav .hd-row,
  #content-nav .hd-row {
    padding-left: max(28px, env(safe-area-inset-left));
    padding-right: max(28px, env(safe-area-inset-right));
  }

  .hd-menu {
    display: none;
  }

  .hd-burger {
    display: block;
  }

  .hd-logo {
    margin-left: 0;
  }
}
/* ======================================================================
   MOBILE HEADER / FOOTER LOGO NORMALIZE
   - sub-di.css 모바일 기준으로 헤더·푸터 로고 크기/위치 통일
   - 기존 하단 보정값이 로고 규칙을 덮는 문제를 최종 우선순위로 보정
====================================================================== */
@media (max-width: 1024px) {
  #main-nav .hd-row,
  #content-nav .hd-row {
    padding: 0 40px;
  }

  .hd-logo {
    margin-left: -24px;
  }

  .hd-logo img {
    height: 40px;
    width: auto;
    max-width: none;
    display: block;
    object-fit: contain;
    object-position: left center;
  }

  .footer .inner {
    padding: 0 40px;
  }

  .footer-logo {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  #main-nav,
  #content-nav {
    padding: 12px 0;
  }

  #main-nav .hd-row,
  #content-nav .hd-row {
    padding: 0 20px;
  }

  .hd-logo {
    margin-left: -24px;
  }

  .hd-logo img {
    height: 40px;
    width: auto;
    max-width: none;
    display: block;
    object-fit: contain;
    object-position: left center;
  }

  .footer {
    padding: 28px 0 22px;
  }

  .footer .inner {
    padding: 0 20px;
  }

  .footer-top {
    gap: 20px;
    padding-bottom: 20px;
  }

  .footer-logo {
    margin-left: -20px;
  }

  .footer-logo img {
    height: 36px !important;
  }
}

@media (max-width: 480px) {
  #main-nav .hd-row,
  #content-nav .hd-row {
    padding: 0 16px;
  }

  .hd-logo {
    margin-left: -24px;
  }

  .hd-logo img {
    height: 40px;
    width: auto;
    max-width: none;
    display: block;
    object-fit: contain;
    object-position: left center;
  }

  .footer-logo {
    margin-left: -20px;
  }
}


/* ======================================================================
   SI / ITO MOBILE TITLE BREAK + IMAGE POPUP
   - 모바일에서 이미지 하단 대제목을 쉼표 기준으로 줄바꿈
   - 모바일에서 이미지 클릭 시 원본 이미지를 중앙 팝업으로 표시
====================================================================== */
.mobile-comma-break {
  display: none;
}

@media (max-width: 768px) {
  .siito-bottom {
    text-align: center;
  }

  .siito-headline {
    width: 100%;
    max-width: 92vw;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 1.35;
  }

  .mobile-comma-break {
    display: block;
  }

  .siito-main-image {
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
  }
}

.siito-image-popup {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.siito-image-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.siito-image-popup__box {
  position: relative;
  width: min(100%, 960px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.siito-image-popup__img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.siito-image-popup.is-open .siito-image-popup__img {
  transform: scale(1);
}

.siito-image-popup__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  .siito-image-popup {
    padding: 18px;
  }

  .siito-image-popup__box {
    width: 100%;
    max-height: 82vh;
  }

  .siito-image-popup__img {
    max-height: 82vh;
    border-radius: 12px;
  }

  .siito-image-popup__close {
    top: -12px;
    right: -8px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}

/* 모바일 히어로 텍스트 가로/세로 중앙 정렬 */
@media (max-width: 768px) {
  .hero-content {
    height: 100vh !important;
    min-height: 100vh !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;

    text-align: center !important;
    margin-left: 0 !important;

    /* 기존 상단 padding 제거 */
    padding: 0 24px !important;
  }

  .hero-sub,
  .hero-title {
    width: 100%;
    text-align: center !important;
  }

  .hero-title {
    /* 기존 margin-bottom: -10.417vw 제거 */
    margin-bottom: 0 !important;
  }
}

@media (max-width: 480px) {
  .hero-content {
    height: 100vh !important;
    min-height: 100vh !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 20px !important;
    text-align: center !important;
  }

  .hero-sub,
  .hero-title {
    text-align: center !important;
    width: 100%;
  }

  .hero-title {
    margin-bottom: 0 !important;
  }
}


/* 문의제목 row — 이메일 / 문의내용 사이 간격 (기존 form-row-email 패턴 동일) */
.form-row-subject {
    margin-bottom: clamp(24px, 2.083vw, 80px);
}
@media (max-width: 1024px) {
    .form-row-subject { margin-bottom: 28px; }
}
@media (max-width: 768px) {
    .form-row-subject { margin-bottom: 20px; }
}

