/* ==========================================================================
   N미디어 — Website screens
   Design tokens sourced from DESIGN.md (LINE Design System reference)
   ========================================================================== */

:root {
  /* --- colors (from DESIGN.md §2.1 official palette) --- */
  --color-primary: #f6a12d;    /* sampled from the real N미디어 logo (로고.jpg) */
  --color-primary-dark: #9b5d09; /* darkened from #a8650a — passed vs white (4.63:1) but failed vs surface-alt #f7f7f7 (4.32:1) and primary-tint #fdf0dc (4.12:1) where .pill/.service-num/.eyebrow actually render */
  --color-on-primary: #000000; /* white-on-orange is 2.09:1 (fails 4.5:1) — DESIGN.md §3.3 falls back to black */
  --color-canvas: #ffffff;
  --color-surface-alt: #f7f7f7;
  --color-foreground: #000000;
  --color-text-secondary: #616161;
  --color-muted: #949494;      /* 3.0:1 — 24px+ only, never body copy */
  --color-border: #e8e8e8;
  --color-outline: #efefef;
  --color-action-blue: #3b5bdb; /* darkened from #638dff — original failed WCAG AA text contrast (~3.1:1) */
  --color-danger: #ff334b;

  /* derived tints (not in source doc; kept close to primary/danger) */
  --color-primary-tint: #fdf0dc;
  --color-danger-tint: #ffe6e9;
  --color-warning: #e0a526;    /* functional status color only, not a button color */
  --color-warning-tint: #fdf3e1;
  --color-success: #1a9d5c;    /* 성공 상태 표시용 — primary(주황)와 구분되도록 별도 유지.
                                   현재는 --color-success-tint(.form-msg.success)만 사용 중 */
  --color-success-tint: #e6f5ec;

  /* --- typography (from DESIGN.md §4) --- */
  --font-display: "LINE Seed KR", "LINESeedKR", "Pretendard Variable", Pretendard,
                  -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  --font-sans: "Pretendard Variable", Pretendard,
               -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;

  --fs-hero: clamp(32px, 5.4vw, 70px);
  --fs-display: clamp(28px, 4.3vw, 56px);
  --fs-h2: clamp(24px, 2.8vw, 36px);
  --fs-h3: clamp(20px, 1.9vw, 24px);
  --fs-h4: 20px;
  --fs-body-l: 20px;
  --fs-body: clamp(17px, 1.4vw, 18px);
  --fs-small: 16px;
  --fs-min: 14px;

  /* --- spacing ladder (from DESIGN.md §5.1) --- */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-96: 96px;
  --sp-128: 128px;

  /* --- radius (from DESIGN.md §5.3) --- */
  --radius-sm: 5px;   /* 36px buttons */
  --radius-lg: 6px;   /* 48px buttons, cards, modals */
  --radius-full: 9999px;

  --shadow: none;     /* LINE official value — do not change */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --pad-x: 64px;
  --maxw: 1200px;
  --header-height: 76px;
}

* { box-sizing: border-box; }
/* 최초 해시 탐색에도 긴 smooth 스크롤이 적용되어 대상이 늦게 보이는 문제를 막는다. */
html { scroll-behavior: auto; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-canvas);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;      /* Korean: never break inside a word */
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: var(--color-action-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark); /* was --color-primary — failed WCAG AA text contrast (~2.1:1) */
  margin-bottom: var(--sp-8);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-foreground);
  margin: var(--sp-12) 0 0;
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--color-text-secondary);
  font-size: var(--fs-body);
  line-height: 1.7;
  max-width: 60ch;
  margin-top: var(--sp-8);
}

.section {
  padding: var(--sp-32) 0;
  scroll-margin-top: calc(var(--header-height) + var(--sp-16));
}
/* 현장 코칭 안내는 .section이 아니라 문의 패널 안의 카드라서 위 앵커 여백이 닿지 않는다.
   같은 기준(헤더 높이)을 그대로 쓴다. */
#field-coaching { scroll-margin-top: calc(var(--header-height) + var(--sp-16)); }
#about { padding-top: var(--sp-12); }
#services { padding-bottom: var(--sp-12); }
#reviews { padding-top: var(--sp-12); }
.section--alt { background: var(--color-surface-alt); }
.section-head {
  margin-bottom: var(--sp-24);
}
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* --- buttons (DESIGN.md §6.1 — 48px, radius 6px, 17px/700) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { filter: brightness(0.94); }
.btn-outline { background: var(--color-canvas); color: var(--color-foreground); border-color: var(--color-outline); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
/* solid secondary — 히어로의 '사업분야'용. primary(주황)와 확실히 구분되도록 기존 action-blue를 쓴다.
   어두운 배경이라 밝아지면 흰 글자 대비가 떨어진다. primary와 달리 hover에서 더 어둡게 한다. */
.btn-secondary { background: var(--color-action-blue); color: #fff; }
.btn-secondary:hover { filter: brightness(0.90); }
.btn-secondary:active { filter: brightness(0.82); }
/* on-dark variant — transparent bg so it reads on a dark panel (e.g. offline-cta) */
.btn-outline--invert { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-outline--invert:hover { border-color: #fff; color: #fff; }
.btn-lg { min-height: 48px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ==========================================================================
   Header / GNB
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  overflow: visible;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  width: 100%;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-32);
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-8);
}
.brand { display: flex; align-items: center; gap: var(--sp-8); }
.brand img { width: auto; }
.site-header .brand {
  flex: 0 0 auto;
  color: var(--color-foreground);
  line-height: 1;
}
.site-header .brand:hover { text-decoration: none; }
.site-header .brand img {
  width: auto;
  height: 44px;
  max-width: 110px;
  object-fit: contain;
}
.site-nav { margin-left: auto; }
.nav-toggle,
.mobile-nav__header,
.nav-backdrop { display: none; }
.gnb-menu {
  display: flex;
  align-items: center;
  gap: clamp(var(--sp-16), 1.8vw, var(--sp-32));
  list-style: none;
  margin: 0;
  padding: 0;
}
.gnb-menu > li { position: relative; }
.gnb-menu > li > a,
.nav-dropdown > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-foreground);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  padding: 10px 2px 8px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.gnb-menu > li > a:hover,
.gnb-menu > li > a:focus-visible,
.nav-dropdown > summary:hover,
.nav-dropdown > summary:focus-visible,
.nav-dropdown[open] > summary,
.nav-dropdown.has-current > summary,
.gnb-menu > li > a[aria-current="page"] {
  color: var(--color-action-blue);
  border-bottom-color: var(--color-action-blue);
  text-decoration: none;
}
.site-header a:focus-visible,
.site-header button:focus-visible,
.site-header summary:focus-visible {
  outline: 3px solid rgba(59, 91, 219, .35);
  outline-offset: 3px;
}
.nav-dropdown { position: relative; }
.nav-dropdown > summary {
  gap: 6px;
  cursor: pointer;
  list-style: none;
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .15s var(--ease);
}
.nav-dropdown[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.nav-submenu {
  position: absolute;
  z-index: 130;
  top: calc(100% + 10px);
  left: 0;
  width: max-content;
  min-width: 260px;
  list-style: none;
  margin: 0;
  padding: var(--sp-8);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 36px rgba(0, 30, 70, .16);
}
.nav-submenu a {
  display: block;
  padding: 10px 12px;
  color: var(--color-foreground);
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.nav-submenu a:hover,
.nav-submenu a:focus-visible,
.nav-submenu a[aria-current="page"] { color: var(--color-action-blue); background: var(--color-primary-tint); text-decoration: none; }
.nav-dropdown--company .nav-submenu { min-width: 190px; }

@media (max-width: 959px) {
  :root { --header-height: 64px; }
  .site-header__inner {
    min-height: var(--header-height);
    justify-content: flex-start;
    gap: var(--sp-12);
    padding-top: 0;
    padding-bottom: 0;
  }
  .site-header .brand { order: 2; }
  .site-header .brand img { height: 40px; max-width: 100px; }
  .nav-toggle {
    order: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 0;
    padding: 0;
    color: var(--color-foreground);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
  .nav-toggle__icon,
  .nav-toggle__icon::before,
  .nav-toggle__icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }
  .nav-toggle__icon { position: relative; }
  .nav-toggle__icon::before,
  .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__icon::before { top: -7px; }
  .nav-toggle__icon::after { top: 7px; }
  .site-nav {
    position: fixed;
    z-index: 130;
    inset: 0 auto 0 0;
    width: min(360px, calc(100vw - 56px));
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0 20px var(--sp-24);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--color-canvas);
    border-right: 1px solid var(--color-border);
    box-shadow: 16px 0 40px rgba(0, 30, 70, .2);
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .2s var(--ease), visibility 0s linear .2s;
  }
  body.nav-open .site-nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .mobile-nav__header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    margin: 0 -20px var(--sp-8);
    padding: 0 var(--sp-16) 0 20px;
    background: var(--color-canvas);
    border-bottom: 1px solid var(--color-border);
  }
  .mobile-nav__title { font-weight: 700; }
  .mobile-nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--color-foreground);
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
  }
  .nav-backdrop {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: block;
    background: rgba(0, 20, 48, .5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s var(--ease), visibility 0s linear .2s;
  }
  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }
  body.nav-open {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
  }
  .gnb-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .gnb-menu > li { width: 100%; border-bottom: 1px solid var(--color-border); }
  .gnb-menu > li > a,
  .nav-dropdown > summary {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 13px 2px 11px;
    border-bottom: 2px solid transparent;
  }
  .nav-submenu,
  .nav-dropdown--company .nav-submenu {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0 0 var(--sp-12);
    padding: var(--sp-4) 0 var(--sp-4) var(--sp-12);
    background: var(--color-surface-alt);
    border: 0;
    border-left: 3px solid var(--color-primary);
    border-radius: 0;
    box-shadow: none;
  }
  .nav-submenu a { padding: 10px 12px; white-space: normal; }
  .section,
  #field-coaching { scroll-margin-top: calc(var(--header-height) + var(--sp-16)); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
/* 사진 중심 히어로.
   배경 남색 #001e46은 히어로 이미지 왼쪽 면에서 직접 추출한 값이라,
   이미지를 오른쪽에 붙이고 남는 왼쪽 공간을 같은 색으로 채우면 이어져 보인다.
   이미지의 어두운 영역은 가로 0~36% 구간이고 42%부터 밝아지므로,
   글은 그 안쪽에만 두고 ::after 스크림으로 경계를 부드럽게 만든다. */
.hero {
  --hero-navy: #001e46;
  position: relative;
  overflow: hidden;
  min-height: clamp(400px, 33vw, 520px);
  padding: var(--sp-48) 0;
  display: flex;
  align-items: center;
  background: var(--hero-navy);
}
/* 높이로 폭을 정하면 히어로가 높아질 때 사진이 화면 왼쪽으로 넘쳐
   남색 영역을 밀어낸다. 폭을 고정하고 오른쪽을 기준으로 잘라 쓴다
   (잘려 나가는 왼쪽은 어차피 단색 남색이라 손실이 없다). */
.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 64%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    var(--hero-navy) 0%,
    var(--hero-navy) 30%,
    rgba(0, 30, 70, 0.82) 42%,
    rgba(0, 30, 70, 0) 56%);
}
.hero > .container { width: 100%; position: relative; z-index: 1; }
.hero-copy { max-width: 500px; }
.hero-copy .eyebrow { color: var(--color-primary); }
.hero-copy h1 { color: #fff; }
/* 남색 배경 위에서 버튼 면이 묻히지 않도록 바깥 테두리만 더한다(색은 그대로). */
.hero .btn-secondary { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55); }
.hero-copy h1 {
  /* narrower than a full-width promo hero (two-column layout), so the
     clamp max stays below --fs-hero to avoid mid-word wraps in Korean */
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--color-primary);
}
.hero-copy h1 .hero-line { display: block; }
.hero-copy h1 .hero-lead {
  display: block;
  margin-top: var(--sp-12);
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 700;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}
.hero-copy .section-sub { font-size: var(--fs-small); max-width: 520px; margin-top: var(--sp-24); }
.hero-copy .section-sub + .section-sub { margin-top: -10px; }
.hero-cta { display: flex; gap: var(--sp-12); margin-top: var(--sp-32); }
.hero-stats {
  display: flex;
  gap: var(--sp-32);
  margin-top: var(--sp-32);
  padding-top: var(--sp-24);
  border-top: 1px solid var(--color-border);
}
.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hero-stat span { color: var(--color-text-secondary); font-size: 14px; }

.avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

/* 히어로 바로 아래 대표 소개 띠 — 섹션이 아니라 히어로에 붙는 얇은 바라서
   .section 배경 교대 순서에 영향을 주지 않는다. */
.hero-people {
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-border);
}
.hero-people > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-16);
}
.hero-people-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-16) var(--sp-32);
}
.hero-people-list li { display: flex; align-items: center; gap: var(--sp-12); }
.hero-people-list img {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1px solid var(--color-border);
}
.hero-people-list b { display: block; font-size: 16px; font-weight: 700; }
.hero-people-list span { display: block; font-size: 14px; color: var(--color-text-secondary); }
.hero-people-link { font-size: var(--fs-small); font-weight: 600; }

/* ==========================================================================
   Company intro
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--sp-96);
  align-items: stretch;
}
.about-lead { font-size: var(--fs-small); line-height: 1.7; color: var(--color-foreground); }
.about-lead strong { color: var(--color-primary-dark); }
.pill-list { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin-top: var(--sp-24); }
.pill {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-primary-tint);
  border-radius: var(--radius-full);
  padding: 6px 16px;
}
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-12); }
.check-list--split { grid-template-columns: repeat(2, 1fr); }
.check-list li {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--sp-12);
  font-size: var(--fs-small);
  color: var(--color-foreground);
  padding: var(--sp-12);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.check-list li::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--color-primary-tint);
  border: 1.5px solid var(--color-primary);
  position: relative;
}
.check-list--dark {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-8);
  margin-top: 46px; /* matches the "Company" eyebrow's height so this list starts level with the h2 heading, not the eyebrow */
}
.check-list--dark li { padding: var(--sp-8) var(--sp-12); }
.check-list--dark li::before { background: var(--color-action-blue); }

/* ---- "이럴 때 찾아주세요" 3그룹 더보기 카드 (2열) ---- */
.when-groups {
  margin-top: var(--sp-24);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-16);
}
.when-group {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-16) var(--sp-24);
}
.when-group summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: var(--fs-body-l);
  color: var(--color-foreground);
  padding: var(--sp-8) 0;
}
.when-group summary::-webkit-details-marker { display: none; }
.when-group-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary-dark);
  white-space: nowrap;
}
.when-group .check-list { margin-top: var(--sp-16); }
.when-group .section-sub { margin-top: var(--sp-12); }
.when-group .btn { margin-top: var(--sp-16); }

.check-list li::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 21px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ---- About photo (두 대표 사진) ---- */
.about-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-16);
  margin: 0 0 var(--sp-24);
}
.about-photo {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
}
.about-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--sp-16) var(--sp-24);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
}

/* ---- History (연혁) ---- */
.history { margin-top: var(--sp-24); }
.history-heading {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-24);
}
.history-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-24);
  padding-top: var(--sp-24);
  border-top: 1px solid var(--color-border);
}
.history-item { position: relative; padding-top: var(--sp-16); }
.history-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--color-primary);
}
.history-year {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--sp-8);
}
.history-item p { margin: 0; font-size: var(--fs-small); color: var(--color-text-secondary); }

/* ---- Gallery (실제 사진 대기중인 자리) ---- */
.gallery { margin-top: var(--sp-24); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-16);
}
.gallery-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
  margin: 0;
}
.gallery-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-slot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--sp-8) var(--sp-12);
  font-size: 12px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
}

/* ==========================================================================
   Services
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-32);
}
/* 카드가 5개일 때 — 3개 + 2개로 나누고 아랫줄이 빈칸 없이 채워지게 한다 */
.card-grid--5 { grid-template-columns: repeat(6, 1fr); }
.card-grid--5 > .service-card { grid-column: span 2; }
.card-grid--5 > .service-card:nth-child(4),
.card-grid--5 > .service-card:nth-child(5) { grid-column: span 3; }
.service-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-32);
  box-shadow: var(--shadow);
  transition: border-color .2s var(--ease);
}
.service-card:hover {
  border-color: var(--color-primary);
}
.service-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: var(--sp-24);
}
.service-card h3 { font-size: var(--fs-h4); font-weight: 700; margin-bottom: var(--sp-8); }
.service-card p.desc { color: var(--color-text-secondary); font-size: var(--fs-small); margin-bottom: var(--sp-24); }
.service-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-8);
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-24);
}
.service-card ul li {
  font-size: var(--fs-small);
  color: var(--color-foreground);
  padding-left: 14px;
  position: relative;
}
.service-card ul li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--color-primary-dark);
  font-weight: 700;
}

/* ==========================================================================
   SNS
   ========================================================================== */
.sns-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-32);
  align-items: start;
}
.sns-video { display: grid; gap: var(--sp-16); }
.yt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-16); }
.yt-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #000;
}
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s var(--ease); }
.yt-thumb:hover img { opacity: 1; text-decoration: none; }
.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, .55);
  transform: translate(-50%, -50%);
}
.yt-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-50%, -50%);
}
.yt-thumb-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--sp-8) var(--sp-12);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
}
.sns-links { display: grid; gap: var(--sp-16); align-content: start; }
.sns-link-card {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-24);
  color: var(--color-foreground);
  transition: border-color .2s var(--ease);
}
.sns-logo {
  flex: none;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.sns-link-card:hover { border-color: var(--color-primary); text-decoration: none; }
.sns-link-card b { display: block; font-size: 16px; }
.sns-link-card span { display: block; font-size: 13px; color: var(--color-text-secondary); margin-top: 2px; }

/* ==========================================================================
   Instructor
   ========================================================================== */
.instructor-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: start;
  gap: var(--sp-48);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-32) var(--sp-64);
  box-shadow: var(--shadow);
}
.instructor-col { display: grid; gap: var(--sp-32); align-self: start; }
.instructor-card { text-align: center; }
.instructor-card:nth-child(2) { margin-top: 67px; } /* 오른쪽 "석선옥 공동대표" 항목 시작 높이에 맞춤 */
.avatar-lg {
  width: 128px;
  height: 128px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 44px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-16);
}
.avatar-photo {
  width: 128px;
  height: 128px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1px solid var(--color-border);
  margin: 0 auto var(--sp-16);
}
.instructor-card h3 { font-size: 24px; font-weight: 700; }
.instructor-card .role { color: var(--color-primary-dark); font-weight: 700; font-size: var(--fs-small); margin-top: 4px; }
.instructor-card .org { color: var(--color-text-secondary); font-size: 14px; margin-top: var(--sp-8); }
.photo-pending { font-size: 12px; color: var(--color-text-secondary); margin: -8px 0 var(--sp-12); }
.instructor-detail h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  margin-bottom: var(--sp-12);
}
.instructor-divider { border: none; border-top: 1px solid var(--color-border); margin: var(--sp-32) 0; }
.credential-list {
  list-style: none;
  margin: 0 0 var(--sp-32);
  padding: 0;
  display: grid;
  gap: 10px;
}
.credential-list li {
  font-size: var(--fs-small);
  padding-left: 16px;
  position: relative;
  color: var(--color-foreground);
}
.credential-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
}
.track-record {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}
.track-record span {
  font-size: 14px;
  font-weight: 700;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--color-foreground);
}

/* ==========================================================================
   Product
   ========================================================================== */
.product-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-32); }
.product-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-32);
  box-shadow: var(--shadow);
}
.product-card img {
  width: 60%;
  max-width: 220px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.product-info { display: flex; flex-direction: column; flex: 1; }
.product-info h3 { font-size: var(--fs-h4); font-weight: 700; line-height: 1.4; }
.product-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: var(--sp-8) 0 var(--sp-16);
}
.product-info .pill-list { margin-top: 0; margin-bottom: var(--sp-24); }
.product-desc { color: var(--color-text-secondary); font-size: var(--fs-small); margin-bottom: var(--sp-32); }
.product-info > .btn { margin-top: auto; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-32);
}
.testimonial-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-32);
  box-shadow: var(--shadow);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color .2s var(--ease);
}
.testimonial-card:hover { border-color: var(--color-primary); }
/* Reveal-on-scroll is opt-in via JS (see main.js). Cards stay visible by
   default so content never disappears if JS fails to load or run. */
.testimonial-card.reveal-pending { opacity: 0; transform: translateY(16px); }
.testimonial-card.reveal-pending.is-visible { opacity: 1; transform: translateY(0); }
.stars { color: var(--color-warning); font-size: 14px; letter-spacing: 2px; margin-bottom: var(--sp-12); }
.testimonial-card p.quote {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--color-foreground);
  margin-bottom: var(--sp-24);
}
.testimonial-who {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-12);
}
.testimonial-who .avatar { width: 36px; height: 36px; font-size: 13px; background: var(--color-foreground); }
.testimonial-who b { display: block; font-size: 14px; }
.testimonial-who span { display: block; font-size: 13px; color: var(--color-text-secondary); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: grid; gap: var(--sp-8); max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-12) var(--sp-20);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--color-foreground);
  padding: 6px var(--sp-32) 6px 0;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 700;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 4px;
  font-size: 18px;
  font-weight: 400;
  color: var(--color-primary-dark);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text-secondary);
  padding: 4px 0 4px;
}

/* ==========================================================================
   Offline schedule
   ========================================================================== */
.offline-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-96);
  background: var(--color-foreground);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--sp-64) var(--sp-96);
}
.offline-panel .section-heading { color: #fff; }
.offline-panel .section-sub { color: rgba(255, 255, 255, 0.7); }
.offline-panel--solo { grid-template-columns: 1fr; }
.offline-panel--solo .offline-cta { max-width: 640px; margin: 0 auto; text-align: center; align-items: center; }
.offline-list { list-style: none; margin: var(--sp-32) 0 0; padding: 0; display: grid; gap: var(--sp-12); }
.offline-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--sp-16);
  font-size: 14px;
  padding: var(--sp-12) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.offline-list li b { color: rgba(255, 255, 255, 0.6); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.offline-cta {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--sp-32);
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  justify-content: center;
}
.offline-cta h3 { color: #fff; font-size: var(--fs-h2); font-weight: 700; }
.offline-cta p { color: rgba(255, 255, 255, 0.8); font-size: var(--fs-body-l); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--sp-64) 0;
}
.footer-grid {
  display: flex;
  justify-content: flex-start;
  gap: var(--sp-64);
  flex-wrap: wrap;
}
.footer-brand img { height: 24px; width: auto; margin-bottom: var(--sp-8); }
.footer-brand p { color: var(--color-text-secondary); font-size: 14px; max-width: 320px; }
.footer-meta { display: flex; gap: var(--sp-48); flex-wrap: wrap; }
.footer-meta h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  margin-bottom: var(--sp-12);
}
.footer-meta ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-meta li { font-size: 14px; color: var(--color-foreground); }
.footer-bottom {
  margin-top: var(--sp-32);
  padding-top: var(--sp-16);
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-secondary);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

/* ==========================================================================
   Auth screen (admin.html 관리자 로그인) — Supabase Auth
   ========================================================================== */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-alt);
  padding: var(--sp-32);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--sp-48);
}
.auth-card .brand { justify-content: center; margin-bottom: var(--sp-32); }
.auth-card .brand img { height: 28px; }
.auth-card h1 { font-family: var(--font-display); font-size: 22px; font-weight: 700; text-align: center; }
.auth-card .section-sub { text-align: center; margin: var(--sp-8) auto var(--sp-32); font-size: var(--fs-small); }

/* Input — LINE underline pattern (DESIGN.md §6.3) */
.field { display: grid; gap: var(--sp-8); margin-bottom: var(--sp-24); }
.field label { font-size: 14px; font-weight: 700; color: var(--color-foreground); }
.field input {
  height: 56px;
  padding: 0 2px;
  background: var(--color-canvas);
  color: var(--color-foreground);
  border: none;
  border-bottom: 1px solid var(--color-muted);
  border-radius: 0;
  font-size: var(--fs-body);
  font-family: var(--font-sans);
}
.field input:focus {
  outline: none;
  border-bottom: 2px solid var(--color-primary);
}
.field input[aria-invalid="true"] { border-bottom-color: var(--color-danger); }
.form-msg {
  display: none;
  margin-top: var(--sp-12);
  padding: var(--sp-12);
  border-radius: var(--radius-sm);
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  font-size: 13px;
  text-align: center;
}
.form-msg.show { display: block; }
.form-msg.success { background: var(--color-success-tint); color: #106138; font-weight: 700; padding: var(--sp-16); }

/* ==========================================================================
   Inquiry dialog — "문의하기" 버튼으로 여는 모달, Supabase-backed
   ========================================================================== */
.inquiry-dialog {
  position: relative;
  width: min(560px, calc(100vw - 48px));
  max-height: min(88vh, 720px);
  overflow-y: auto;
  margin: auto;
  padding: var(--sp-48) var(--sp-32) var(--sp-32);
  border: none;
  border-radius: var(--radius-lg);
  background: var(--color-canvas);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.inquiry-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.inquiry-dialog .section-heading { text-align: center; }
.inquiry-dialog .section-sub { text-align: center; margin-left: auto; margin-right: auto; margin-bottom: var(--sp-24); }
.inquiry-dialog .eyebrow { display: block; text-align: center; }
.inquiry-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.inquiry-dialog-close:hover { color: var(--color-foreground); }
.inquiry-form { max-width: 520px; margin: 0 auto; }
.field select,
.field textarea {
  width: 100%;
  padding: 0 2px;
  background: var(--color-canvas);
  color: var(--color-foreground);
  border: none;
  border-bottom: 1px solid var(--color-muted);
  border-radius: 0;
  font-size: var(--fs-body);
  font-family: var(--font-sans);
}
.field select { height: 56px; }
.field textarea { padding: var(--sp-12) 2px; min-height: 88px; resize: vertical; }
.field select:focus,
.field textarea:focus { outline: none; border-bottom: 2px solid var(--color-primary); }
.field-optional { font-weight: 400; color: var(--color-text-secondary); }
.inquiry-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.inquiry-form-heading {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  margin: var(--sp-32) 0 var(--sp-8);
  padding-top: var(--sp-24);
  border-top: 1px solid var(--color-border);
}
.inquiry-form-heading:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.inquiry-form-note { font-size: 13px; color: var(--color-text-secondary); margin: 0 0 var(--sp-16); }
.inquiry-form-footnote {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  padding: var(--sp-16);
  margin: var(--sp-24) 0;
}
.checkbox-group { display: flex; flex-wrap: wrap; gap: var(--sp-8) var(--sp-16); }
.checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--color-foreground);
  cursor: pointer;
}
.checkbox-option input { width: 16px; height: 16px; accent-color: var(--color-primary); }

/* ==========================================================================
   Admin — 문의 명단 (admin.html) — Supabase inquiries 조회
   ========================================================================== */
.admin-shell { background: var(--color-surface-alt); min-height: 100vh; }
.admin-header {
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.admin-header .container { display: flex; align-items: center; justify-content: space-between; }
.admin-header .brand img { height: 26px; }
.admin-header .badge-role {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-secondary);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px 14px;
}
.admin-main { padding: var(--sp-64) 0 var(--sp-96); }
.admin-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-32);
}
.admin-title-row h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.admin-title-row p { color: var(--color-text-secondary); font-size: 14px; margin-top: 4px; }

.panel {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.data-table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table thead th {
  position: relative; /* sr-only 라벨이 가로 스크롤 영역을 벗어나지 않도록 */
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  background: var(--color-surface-alt);
  padding: var(--sp-12) var(--sp-16);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.data-table td {
  padding: var(--sp-12) var(--sp-16);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-foreground);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--color-surface-alt); }
.data-table tbody tr.detail-row:hover { background: var(--color-surface-alt); }
.data-table .table-empty { padding: var(--sp-48) var(--sp-16); text-align: center; color: var(--color-text-secondary); }

/* 목록 셀 */
.data-table .cell-date { white-space: nowrap; color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
.data-table .cell-phone { white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table .cell-name b { display: block; font-weight: 700; }
.data-table .cell-name .cell-sub { display: block; font-size: 13px; color: var(--color-text-secondary); margin-top: 2px; }
.data-table .cell-empty { color: var(--color-muted); }
.data-table .cell-summary {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.data-table .cell-action { text-align: right; white-space: nowrap; }

.type-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-primary-tint);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  white-space: nowrap;
}

.btn-detail {
  border: 1px solid var(--color-outline);
  background: var(--color-canvas);
  color: var(--color-foreground);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-detail:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }

/* 상세보기 펼침 영역 */
.detail-row > td { padding: 0; background: var(--color-surface-alt); border-bottom: 1px solid var(--color-border); }
.detail-panel { padding: var(--sp-24) var(--sp-16); display: grid; gap: var(--sp-24); }
.detail-meta { font-size: 12px; color: var(--color-text-secondary); margin: 0; }
.detail-group h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  margin-bottom: var(--sp-12);
}
.detail-list { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-12) var(--sp-32); }
.detail-list > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--sp-12);
  align-items: start;
}
.detail-list dt { font-size: 13px; font-weight: 700; color: var(--color-text-secondary); }
.detail-list dd {
  margin: 0;
  font-size: 14px;
  color: var(--color-foreground);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

/* ==========================================================================
   Focus — never removed (DESIGN.md §11)
   ========================================================================== */
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ==========================================================================
   Accessibility utilities
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: 0;
  left: var(--sp-8);
  z-index: 100;
  background: var(--color-foreground);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transform: translateY(-120%);
  transition: transform .15s var(--ease);
}
.skip-link:focus {
  transform: translateY(var(--sp-8));
}
fieldset.field {
  border: 0;
  padding: 0;
  margin: 0 0 var(--sp-24);
  min-width: 0;
}
fieldset.field legend {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-foreground);
  padding: 0;
  margin: 0 0 var(--sp-8);
}

/* ==========================================================================
   Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 첫 화면 인트로 — 모바일에서만, 페이지 진입 시 1회.
   fade-in + 약한 상승만 사용하고 점멸·반복은 쓰지 않는다.
   prefers-reduced-motion: no-preference 로 감싸 두어 모션 최소화 설정에서는
   애니메이션 자체가 적용되지 않는다(요소는 처음부터 그대로 보인다). */
@keyframes hero-intro {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .hero-copy .eyebrow,
  .hero-copy h1 .hero-line,
  .hero-copy h1 .hero-lead,
  .hero-copy .hero-cta {
    animation: hero-intro .6s var(--ease) both;
  }
  .hero-copy .eyebrow        { animation-delay: .05s; }
  .hero-copy h1 .hero-line   { animation-delay: .20s; }
  .hero-copy h1 .hero-lead   { animation-delay: .35s; }
  .hero-copy .hero-cta       { animation-delay: .50s; }
}

/* ==========================================================================
   Responsive — DESIGN.md §8 breakpoints
   ========================================================================== */
@media (max-width: 1199px) { :root { --pad-x: 48px; } }
@media (max-width: 1199px) {
  /* 태블릿·모바일: 글 영역이 사진의 어두운 구간보다 넓어져 글이 노트북 위에 얹힌다.
     사진을 숨기지 않고 글 아래로 내려 위아래로 나눈다.
     마크업상 사진이 먼저 오므로 order로 순서를 바꾼다. */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: var(--sp-40) 0 0;
  }
  .hero > .container { order: 1; }
  .hero-copy { max-width: none; }
  .hero-photo {
    order: 2;
    position: static;
    width: 100%;
    height: 260px;
    margin-top: var(--sp-32);
    /* 노트북과 휴대폰이 들어오도록 오른쪽 위주로 보여 준다. */
    object-position: 76% center;
  }
  .hero::after { display: none; }
}
/* 1200px 아래에서는 사진의 어두운 구간이 글 영역보다 좁아져 글이 노트북 위로 올라탄다.
   그 아래로는 글 위 / 사진 아래로 쌓는다. */
@media (min-width: 1200px) and (max-width: 1439px) {
  .hero-copy { max-width: 520px; }
}
.service-audience {
  margin: var(--sp-20) 0 0;
  padding-top: var(--sp-20);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: var(--fs-small);
}
.service-audience b { color: var(--color-foreground); }
.service-link {
  display: inline-block;
  margin-top: var(--sp-20);
  font-size: var(--fs-small);
  font-weight: 700;
}

/* ==========================================================================
   Main page summary sections
   ========================================================================== */
.section-intro-note {
  max-width: 780px;
  margin: var(--sp-16) auto 0;
  color: var(--color-text-secondary);
  text-align: center;
  font-size: var(--fs-small);
}
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-24); }
.case-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-24);
  box-shadow: var(--shadow);
}
.case-meta { color: var(--color-primary-dark); font-size: 13px; font-weight: 700; margin-bottom: var(--sp-8); }
.case-card h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-12); }
.case-card p:last-child { color: var(--color-text-secondary); font-size: var(--fs-small); }
.case-proof {
  max-width: 820px;
  margin: var(--sp-32) auto 0;
  padding: var(--sp-24) var(--sp-32);
  border-left: 4px solid var(--color-primary);
  background: var(--color-primary-tint);
  border-radius: var(--radius-sm);
}
.case-proof blockquote { margin: 0; font-size: var(--fs-small); line-height: 1.7; }
.case-proof cite { display: block; margin-top: var(--sp-12); color: var(--color-text-secondary); font-size: 13px; font-style: normal; }
.case-review-details { max-width: 820px; margin: var(--sp-16) auto 0; }
.case-review-details > summary { cursor: pointer; color: var(--color-action-blue); font-size: var(--fs-small); font-weight: 700; text-align: center; }
.case-review-list { display: grid; gap: var(--sp-12); margin-top: var(--sp-16); }
.case-review-list blockquote { margin: 0; padding: var(--sp-20); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-canvas); }
.case-review-list p { font-size: var(--fs-small); line-height: 1.7; }
.case-review-list cite { display: block; margin-top: var(--sp-8); color: var(--color-text-secondary); font-size: 13px; font-style: normal; }
.section-action { margin-top: var(--sp-32); text-align: center; }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-16); list-style: none; margin: 0; padding: 0; }
.process-list li {
  position: relative;
  padding: var(--sp-24);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.process-list li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -14px;
  z-index: 1;
  color: var(--color-primary-dark);
  font-weight: 700;
}
.process-step { display: block; margin-bottom: var(--sp-8); color: var(--color-primary-dark); font-size: 13px; font-weight: 700; }
.process-list b { display: block; margin-bottom: 4px; }
.process-list p { color: var(--color-text-secondary); font-size: 13px; }
.process-note { max-width: 760px; margin: var(--sp-24) auto 0; text-align: center; color: var(--color-text-secondary); font-size: var(--fs-small); }
.history-details { margin-top: var(--sp-32); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-canvas); }
.history-details > summary { cursor: pointer; list-style: none; padding: var(--sp-20) var(--sp-24); font-weight: 700; color: var(--color-action-blue); }
.history-details > summary::-webkit-details-marker { display: none; }
.history-details > summary::after { content: "+"; float: right; font-size: 20px; font-weight: 400; }
.history-details[open] > summary { border-bottom: 1px solid var(--color-border); }
.history-details[open] > summary::after { content: "−"; }
.history-details .history-strip { padding: var(--sp-24); }
.sns-links--compact { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1023px) {
  :root { --pad-x: 32px; }
  .hero .container,
  .about-grid,
  .instructor-wrap,
  .sns-wrap,
  .offline-panel { grid-template-columns: 1fr; }
  .card-grid,
  .card-grid--5,
  .testimonial-grid,
  .product-list,
  .history-strip { grid-template-columns: 1fr; }
  .card-grid--5 > .service-card,
  .card-grid--5 > .service-card:nth-child(4),
  .card-grid--5 > .service-card:nth-child(5) { grid-column: auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid,
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-list li::after { display: none; }
  .sns-links--compact { grid-template-columns: 1fr; }
  .instructor-col { grid-template-columns: repeat(2, 1fr); }
  .detail-list { grid-template-columns: 1fr; }
  /* 태블릿: 문의 요약 열을 접어 표가 화면 밖으로 밀리지 않게 한다 (상세보기에서 확인) */
  .data-table thead th:nth-child(6),
  .data-table tbody tr:not(.detail-row) td:nth-child(6) { display: none; }
}
/* 태블릿: 히어로 시각 패널을 가로로 눕혀 사업분야가 첫 화면 안에 들어오게 한다.
   PC(1024px~)의 좌우 배치와 모바일(~767px)의 숨김 처리는 그대로 둔다.
   대표 정보 자체는 회사소개 섹션에 그대로 남아 있다. */
@media (max-width: 767px) {
  :root { --pad-x: 16px; }
  .section { padding: var(--sp-24) 0; scroll-margin-top: calc(var(--header-height) + var(--sp-16)); }
  #field-coaching { scroll-margin-top: calc(var(--header-height) + var(--sp-16)); }
  .about-photo-grid { grid-template-columns: 1fr; }
  /* 2열을 유지하면 칸 너비가 버튼의 최소 너비보다 좁아져 그리드 트랙이 밀려난다.
     1열로 바꾸고, 버튼도 칸 안에서 줄바꿈되도록 허용한다. */
  .when-groups { grid-template-columns: 1fr; }
  .when-group .btn { white-space: normal; }
  .check-list--split { grid-template-columns: 1fr; }
  .service-card, .testimonial-card, .instructor-wrap, .product-card { padding: var(--sp-16); }
  .instructor-col { grid-template-columns: 1fr; }
  .offline-panel { padding: var(--sp-32) var(--sp-16); }
  /* 모바일 첫 화면: 메시지와 CTA가 한 화면에 들어오도록 시각 패널은 접는다
     (대표 사진은 아래 "대표 소개" 섹션에 그대로 있다) */
  .hero-photo { height: 190px; }
  .hero-cta { margin-top: var(--sp-24); }
  .hero-cta .btn { flex: 1; }
  .hero-people > .container { justify-content: flex-start; }
  .hero-people-list { gap: var(--sp-12) var(--sp-24); }
  .admin-main { padding: var(--sp-32) 0 var(--sp-64); }
  .admin-title-row { flex-direction: column; align-items: flex-start; gap: var(--sp-8); margin-bottom: var(--sp-24); }
  .detail-list > div { grid-template-columns: 1fr; gap: 2px; }
  .detail-panel { padding: var(--sp-16) var(--sp-12); }
  /* 좁은 화면에서는 지역·문의 요약 열을 감춰 가로 스크롤을 줄인다.
     감춘 값은 상세보기에서 그대로 확인할 수 있다. */
  .data-table thead th:nth-child(5),
  .data-table thead th:nth-child(6),
  .data-table tbody tr:not(.detail-row) td:nth-child(5),
  .data-table tbody tr:not(.detail-row) td:nth-child(6) { display: none; }
  .data-table thead th, .data-table td { padding: var(--sp-12); }
  /* 좁은 화면에서는 줄바꿈을 허용해 표 너비를 줄인다 */
  .data-table .cell-date { white-space: normal; }
  .type-pill { white-space: normal; }
  .case-grid,
  .process-list { grid-template-columns: 1fr; }
  .case-proof { padding: var(--sp-20); }
}
