/* 메인 화면 (그룹). 검정 바탕 + 노랑 강조. */

.sec-head { text-align: center; max-width: 900px; margin: 0 auto 64px; }
.sec-head__en { font-size: 15px; font-weight: 700; letter-spacing: 1.5px; color: var(--brand); margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(26px, 2.9vw, 42px); font-weight: 700; line-height: 1.35; letter-spacing: -.04em; }
.sec-head > p:last-child { margin-top: 16px; font-size: 18px; color: #d0d0d0; }

/* ---------- 1. 배너 ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding: 90px 0 110px; overflow: hidden; background: #000; color: #fff; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 16s ease-out both; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .4) 60%, rgba(0, 0, 0, .3) 100%); }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero h1 { font-size: clamp(32px, 4.4vw, 68px); font-weight: 700; line-height: 1.28; letter-spacing: -.045em; margin-bottom: 34px; }
.hero h1 strong { font-weight: 700; color: var(--brand); }
.hero__desc { max-width: 900px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.75; color: #f0f0f0; }
.hero__desc + .hero__desc { margin-top: 14px; }
.hero__btn { margin-top: 40px; min-height: 52px; padding: 0 30px; font-size: 16px; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 11px; font-weight: 600; letter-spacing: 3px; color: rgba(255, 255, 255, .7); padding-bottom: 34px; }
.hero__scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 26px; background: var(--brand); animation: hero-scroll 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hero-scroll { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.js-motion .hero__copy > * { animation: hero-rise .9s var(--ease) both; }
.js-motion .hero__copy > :nth-child(2) { animation-delay: .12s; }
.js-motion .hero__copy > :nth-child(3) { animation-delay: .2s; }
.js-motion .hero__copy > :nth-child(4) { animation-delay: .3s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }

/* ---------- 2. 사업 분야 카드 ---------- */
.on-dark { background: #000; color: #fff; }
.business { padding: 130px 0 70px; }
.business__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.biz { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; padding: 40px 18px 52px; border: 1px solid #262626; border-radius: var(--radius); background: #0c0c0c; text-align: center; transition: border-color .3s, background-color .3s, transform .4s var(--ease); }
.biz__icon { width: 96px; height: 96px; margin-bottom: 22px; transition: transform .4s var(--ease); }
.biz__icon img { width: 100%; height: 100%; object-fit: contain; }
.biz__num { font-size: 14px; font-weight: 700; color: var(--brand); margin-bottom: 12px; }
.biz strong { font-size: 19px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 14px; }
.biz__desc { font-size: 14.5px; line-height: 1.7; color: #c9c9c9; }
.biz i { position: absolute; right: 18px; bottom: 16px; font-style: normal; color: var(--brand); opacity: 0; transform: translate(-6px, 6px); transition: opacity .3s, transform .3s var(--ease); }
.biz:hover, .biz:focus-visible { border-color: var(--brand); background: #141414; transform: translateY(-8px); }
.biz:hover .biz__icon, .biz:focus-visible .biz__icon { transform: scale(1.08); }
.biz:hover i, .biz:focus-visible i { opacity: 1; transform: none; }

/* ---------- 3. 과정 6단계: 넓어지는 가로 카드 ---------- */
.process { padding: 90px 0 140px; }
.panels { display: flex; gap: 10px; height: 460px; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--radius); background: #111; cursor: pointer; transition: flex-grow .6s var(--ease); }
.panel.is-active { flex-grow: 4.2; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.7) brightness(.55); transition: filter .6s, transform .8s var(--ease); }
.panel.is-active img { filter: none; transform: scale(1.03); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .85) 100%); }
.panel__num { position: absolute; left: 22px; top: 20px; z-index: 1; font-size: 15px; font-weight: 700; color: var(--brand); }
.panel__copy { position: absolute; left: 22px; right: 22px; bottom: 24px; z-index: 1; }
.panel__copy h3 { font-size: 21px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.panel__copy p { max-width: 420px; margin-top: 10px; font-size: 15.5px; line-height: 1.65; color: #ececec; opacity: 0; max-height: 0; transition: opacity .4s, max-height .5s; }
.panel.is-active .panel__copy p { opacity: 1; max-height: 120px; transition-delay: .15s; }
.panel:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* ---------- 4. ABOUT ---------- */
.about { position: relative; padding: 190px 0; overflow: hidden; color: #fff; isolation: isolate; text-align: center; }
.about__bg { position: absolute; inset: -12% 0; z-index: -1; }
.about__bg img { width: 100%; height: 100%; object-fit: cover; }
.about__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.about h2 { font-size: clamp(32px, 4vw, 60px); font-weight: 700; letter-spacing: -.045em; margin-bottom: 32px; }
.about__inner > p:not(.sec-head__en) { max-width: 900px; margin: 0 auto; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.85; color: #f1f1f1; }

/* ---------- 5. 운영 기관 탭 ---------- */
.affiliates { padding: 110px 0; background: #fff; }
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.tabs__tab { min-height: 46px; padding: 0 24px; border-radius: 999px; background: #eeeeee; font-size: 16px; font-weight: 600; color: #333; transition: background-color .25s, color .25s; }
.tabs__tab:hover { background: #dedede; }
.tabs__tab[aria-selected="true"] { background: #111; color: #fff; }
.tabs__panel { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; padding: 60px 30px; overflow: hidden; border-radius: var(--radius); color: #fff; text-align: center; isolation: isolate; }
.tabs__panel[hidden] { display: none; }
.tabs__panel img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; animation: tab-in .9s var(--ease) both; }
.tabs__panel::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
@keyframes tab-in { from { transform: scale(1.08); opacity: .4; } to { transform: none; opacity: 1; } }
.tabs__copy { position: relative; }
.tabs__copy h3 { font-size: clamp(24px, 2.8vw, 40px); font-weight: 700; letter-spacing: -.04em; margin-bottom: 16px; }
.tabs__copy p { font-size: 17px; color: #f0f0f0; margin-bottom: 28px; }

/* ---------- 6. 대상 슬라이드 ---------- */
.targets { padding: 90px 0; overflow: hidden; }
.targets__swiper { position: relative; overflow: visible; }
.target { position: relative; width: min(62vw, 960px); overflow: hidden; border-radius: var(--radius); opacity: .35; transition: opacity .5s; }
.target.swiper-slide-active { opacity: 1; }
.target img { width: 100%; aspect-ratio: 962 / 561; object-fit: cover; }
.target__copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 30px 30px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .85)); text-align: center; }
.target__copy h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; letter-spacing: -.03em; margin-bottom: 8px; }
.target__copy p { font-size: 16.5px; color: #ececec; }
.targets__arrow { position: absolute; top: 50%; z-index: 2; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; background: rgba(255, 255, 255, .92); transition: background-color .25s; }
.targets__arrow::before { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; border-left: 2px solid #111; border-bottom: 2px solid #111; }
.targets__arrow--prev { left: max(16px, calc(19vw - 86px)); }
.targets__arrow--prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.targets__arrow--next { right: max(16px, calc(19vw - 86px)); }
.targets__arrow--next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.targets__arrow:hover { background: var(--brand); }

/* ---------- 7. 문의 ---------- */
.inquiry { padding: 120px 0 130px; background: #fff; }
.inquiry__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: start; }
.inquiry__copy .sec-head__en { color: var(--brand-deep); }
.inquiry__copy h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; line-height: 1.4; letter-spacing: -.04em; margin-bottom: 26px; }
.inquiry__copy p:not(.sec-head__en) { color: var(--ink-sub); font-size: 17px; line-height: 1.8; }

@media (max-width: 1200px) {
  .business__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .sec-head { margin-bottom: 40px; }
  .sec-head > p:last-child { font-size: 16px; }
  .hero { padding: 70px 0 100px; }
  .hero__desc br { display: none; }
  .business { padding: 80px 0 40px; }
  .process { padding: 60px 0 80px; }
  /* 터치 화면: 넓어지는 카드 대신 세로 목록 */
  .panels { flex-direction: column; height: auto; gap: 12px; }
  .panel, .panel.is-active { flex: none; height: 200px; }
  .panel img, .panel.is-active img { filter: brightness(.75); transform: none; }
  .panel__copy p, .panel.is-active .panel__copy p { opacity: 1; max-height: none; }
  .about { padding: 110px 0; }
  .affiliates { padding: 70px 0; }
  .tabs__list { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .tabs__tab { flex: none; min-height: 42px; padding: 0 18px; font-size: 15px; }
  .tabs__panel { min-height: 320px; padding: 40px 20px; }
  .targets { padding: 60px 0; }
  .target { width: 84vw; }
  .targets__arrow { display: none; }
  .inquiry { padding: 70px 0 80px; }
  .inquiry__inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .business__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .biz { padding: 28px 12px 34px; }
  .biz__icon { width: 72px; height: 72px; }
  .biz strong { font-size: 17px; }
}
