/* 케어나인커뮤니케이션즈 시안 — 구성·색·움직임 수치는 check/ref-measure.md 실측값 */
:root {
  --bg: #000;
  --band: #111;
  --fg: #fff;
  --sub: #9f9f9f;
  --accent: #F37021;
  --action-radius: 5px;
  --line: #ddd;
  --wrap: 1260px;
  --side: 30px;
  --en: 'Oswald', 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --label: 'Bebas Neue', 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--en); font-size: 16px; line-height: 1.5; word-break: keep-all; overflow-wrap: break-word; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
main > section, .ft { overflow-x: clip; }
.wrap { width: min(var(--wrap), calc(100% - var(--side) * 2)); margin: 0 auto; }
@media (min-width: 1380px) { :root { --side: 90px; } }

/* 머리글: 투명, 첫 화면 위에 겹침, 119px */
.hd { position: absolute; top: 0; left: 0; right: 0; z-index: 20; height: 119px; }
.hd-in { width: calc(100% - 170px); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; flex-direction: column; font-family: var(--en); font-weight: 700; color: #fff; line-height: 1.02; letter-spacing: .2px; }
.logo-1 { font-size: 30px; position: relative; color: var(--accent); }
.logo-2 { font-size: 17.4px; letter-spacing: .9px; }
.nav { display: flex; gap: 30px; }
.nav a { font-family: var(--en); font-size: 18px; font-weight: 700; line-height: 21.6px; color: #fff; transition: color .3s ease-out; }
.nav a:hover, .nav a:focus-visible { color: var(--accent); }
.hd-menu { display: none; }

/* 첫 화면 770px, 사진 + 검정 0.25 덮개 */
.hero { position: relative; height: 770px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url('/assets/img/hero.jpg') center / cover no-repeat; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 160px), rgba(0, 0, 0, .25); }
.hero-title { position: relative; margin-top: -28px; font-family: var(--en); font-size: 72px; font-weight: 700; line-height: 1.1; color: #fff; }
.hero-title span { display: block; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-badge { position: absolute; top: 534px; left: calc(50% + 269px); width: 102px; height: 102px; border-radius: var(--action-radius); background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-family: var(--en); font-weight: 700; font-size: 15px; line-height: 1.05; text-align: center; transition: transform .4s ease-out; }
.hero-badge span { transform: rotate(-24deg); }
.hero-badge:hover, .hero-badge:focus-visible { transform: scale(1.06); }

/* 칸 머리: 1px #ddd 선 → BebasNeue 24px → 36px 제목 */
.sec { padding-top: 126px; }
.sec-head { border-top: 1px solid var(--line); padding-top: 19px; }
.label { font-family: var(--label); font-size: 24px; font-weight: 400; line-height: 28.8px; color: #fff; }
.h2 { margin-top: 6px; font-family: var(--en); font-size: 36px; font-weight: 700; line-height: 1.2; letter-spacing: -1px; color: #fff; }
.h2-sub { margin-top: 40px; }

/* WHO WE ARE: 사진 두 줄 마퀴(약 110px/s) */
.marquees { margin-top: 38px; overflow: hidden; }
.mq { overflow: hidden; }
.mq + .mq { margin-top: 10px; }
.mq-track { display: flex; gap: 10px; width: max-content; will-change: transform; }
.mq-track img { height: 211px; width: auto; object-fit: cover; }
.mq.run .mq-track { animation: mq var(--mq-dur, 40s) linear infinite; }
@keyframes mq { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-1 * var(--mq-shift, 50%)), 0, 0); } }
.about-body { margin-top: 58px; max-width: 743px; font-size: 26px; font-weight: 700; line-height: 1.2; color: #fff; }

/* WHAT WE DO: 세로 카드 줄, 한 칸 4000ms ease 넘김 */
.svc { margin-top: 38px; overflow: hidden; }
.svc-track { display: flex; gap: 12px; }
.svc-card { flex: 0 0 278px; }
.svc-card img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s ease-out; }
.svc-txt { padding: 10px 10px 0; }
.svc-txt h3 { font-size: 20px; font-weight: 400; line-height: 24px; color: #fff; }
.svc-en { margin-top: 2px; font-size: 18px; line-height: 21.6px; color: var(--accent); }
.svc-desc { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--sub); }

/* 일하는 방식: #111 띠, 2열 카드 */
.band { margin-top: 126px; background: var(--band); padding: 130px 0 140px; }
.band-title { font-size: 46px; font-weight: 700; line-height: 1.2; letter-spacing: -1px; }
.band-desc { margin-top: 4px; font-size: 16px; font-weight: 700; line-height: 24px; color: var(--sub); }
.steps { margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 75px 40px; }
.step-img { overflow: hidden; }
.step-img img { width: 100%; height: auto; aspect-ratio: 61 / 30; object-fit: cover; transition: transform .4s ease-out; }
.step:hover .step-img img { transform: scale(1.04); }
.step-en { margin-top: 22px; font-size: 18px; line-height: 21.6px; color: var(--accent); }
.step h3 { margin-top: 6px; font-size: 22px; font-weight: 700; line-height: 26.4px; }
.step-desc { margin-top: 18px; font-size: 16px; line-height: 1.5; color: var(--sub); }

/* 문의 띠: 흑백 사진 + 검정 0.75 */
.cta { position: relative; height: 572px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background: url('/assets/img/cta-gray.jpg') center / cover no-repeat; }
.cta-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .75); }
.cta-in { position: relative; padding: 0 15px; }
.cta-title { font-size: 36px; font-weight: 700; line-height: 1.2; }
.pill { display: inline-block; border-radius: var(--action-radius); padding: 15px 24px; font-family: var(--en); font-size: 14px; font-weight: 400; line-height: 18.67px; letter-spacing: 1px; cursor: pointer; transition: color .3s ease-out, background .3s ease-out, border-color .3s ease-out, opacity .3s; }
.pill-white { margin-top: 47px; background: #fff; color: #000; border: 0; }
.pill-white:hover, .pill-white:focus-visible { opacity: .8; }
.pill-line { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.pill-line:hover, .pill-line:focus-visible { background: #fff; color: #000; border-color: #fff; }

/* 문의 칸 */
.sec-contact { padding-bottom: 126px; }
.contact-desc { margin-top: 14px; font-size: 16px; font-weight: 700; line-height: 24px; color: var(--sub); }
.form { margin-top: 48px; max-width: 860px; display: grid; gap: 28px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.f { display: grid; gap: 8px; }
.f > span { font-size: 14px; line-height: 20px; color: var(--sub); }
.f input, .f select, .f textarea { width: 100%; background: transparent; color: #fff; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .4); border-radius: 0; padding: 10px 0; font: 400 16px/1.5 var(--en); transition: border-color .3s ease-out; }
.f textarea { border: 1px solid rgba(255, 255, 255, .4); padding: 12px 14px; resize: vertical; min-height: 140px; }
.f select { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 24px; }
.f select option { background: #111; color: #fff; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--accent); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; color: #ddd; cursor: pointer; }
.agree input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.f-submit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.f-msg { font-size: 14px; line-height: 20px; color: var(--accent); }

/* 바닥글 */
.ft { padding: 28px 15px 50px; text-align: center; }
.ft-c { font-size: 12px; font-weight: 700; line-height: 14.4px; }
.ft-info { margin-top: 13px; font-size: 12px; line-height: 18px; color: #fff; }
.ft-info span + span::before { content: '|'; margin: 0 8px; color: #777; }

/* 등장 움직임: 실측 시간 그대로 (JS 가 있을 때만 숨겼다가 화면에 들어오면 재생) */
.js .hero-title { animation: fadeIn .7s linear .2s both; }
.js .hero-badge { animation: slideInRight .7s linear .2s both; }
.js .rise, .js .fade-up, .js .fade-up-late, .js .from-left, .js .from-right { visibility: hidden; }
.js .in.rise { animation: slideInUp .6s linear .1s both; }
.js .in.fade-up { animation: fadeInUp .6s linear .2s both; }
.js .in.fade-up-late { animation: fadeInUp .7s linear .3s both; }
.js .in.from-left { animation: slideInLeft .7s linear both; }
.js .in.from-right { animation: slideInRight .7s linear both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); visibility: visible; } to { opacity: 1; transform: none; visibility: visible; } }
@keyframes slideInUp { from { transform: translate3d(0, 100%, 0); visibility: visible; } to { transform: none; visibility: visible; } }
@keyframes slideInLeft { from { transform: translate3d(-100%, 0, 0); visibility: visible; } to { transform: none; visibility: visible; } }
@keyframes slideInRight { from { transform: translate3d(100%, 0, 0); visibility: visible; } to { transform: none; visibility: visible; } }

/* 1024 아래 */
@media (max-width: 1023px) {
  .hd-in { width: calc(100% - 60px); }
  .hero-title { font-size: 56px; }
  .hero-badge { left: auto; right: 40px; }
  .steps { gap: 56px 24px; }
}

/* 휴대폰 (실측 390: 머리글 48px 검정 고정, 좌우 15px) */
@media (max-width: 767px) {
  :root { --side: 15px; }
  main [id] { scroll-margin-top: 48px; }
  .hd { position: fixed; height: 48px; background: #000; }
  .hd-in { width: 100%; padding: 0 15px; position: relative; justify-content: center; }
  .logo-1 { font-size: 16px; }
  .logo-2 { font-size: 9.3px; letter-spacing: .5px; }
  .hd-menu { display: flex; flex-direction: column; justify-content: center; gap: 5px; position: absolute; left: 7px; top: 4px; width: 40px; height: 40px; padding: 0 9px; background: none; border: 0; cursor: pointer; }
  .hd-menu span { display: block; height: 2px; background: #fff; transition: transform .3s ease-out, opacity .3s; }
  .hd-menu[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hd-menu[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .hd-menu[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: fixed; top: 48px; left: 0; right: 0; bottom: 0; background: #000; flex-direction: column; gap: 0; padding: 24px 15px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
  .nav.open { visibility: visible; opacity: 1; }
  .nav a { font-size: 28px; line-height: 1.2; padding: 14px 0; border-bottom: 1px solid #222; }
  .hero { height: 373px; }
  .hero-bg { background-position: 18% center; }
  .hero-title { margin-top: 0; font-size: 36px; }
  .hero-badge { display: none; }
  .sec { padding-top: 58px; }
  .label { font-size: 20px; line-height: 24px; }
  .h2 { font-size: 26px; line-height: 31.2px; letter-spacing: -.5px; }
  .h2-sub { margin-top: 24px; }
  .marquees { margin-top: 24px; }
  .mq + .mq { margin-top: 4px; }
  .mq-track { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .mq-track img { width: 100%; height: auto; aspect-ratio: 6 / 5; }
  .mq-track img:nth-child(n+4) { display: none; }
  .mq.run .mq-track { animation: none; }
  .about-body { margin-top: 32px; font-size: 16px; line-height: 1.45; }
  .svc { margin-top: 24px; }
  .svc-track { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 10px; transform: none !important; }
  .svc-card { flex: none; min-width: 0; }
  .svc-card[data-clone] { display: none; }
  .svc-txt { padding: 8px 0 0; }
  .svc-txt h3 { font-size: 16px; line-height: 20px; }
  .svc-en { font-size: 13px; line-height: 16px; }
  .svc-desc { margin-top: 6px; font-size: 13px; }
  .band { margin-top: 58px; padding: 58px 0 64px; }
  .band-title { font-size: 30px; line-height: 36px; }
  .band-desc { font-size: 14px; line-height: 21px; }
  .steps { margin-top: 32px; grid-template-columns: 1fr; gap: 40px; }
  .step-img img { aspect-ratio: 2 / 1; }
  .step-en { margin-top: 14px; font-size: 16px; }
  .step h3 { font-size: 18px; line-height: 21.6px; }
  .step-desc { margin-top: 8px; font-size: 14px; }
  .cta { height: 269px; }
  .cta-bg::after { background: rgba(0, 0, 0, .85); }
  .cta-title { font-size: 20px; line-height: 24px; }
  .pill { font-size: 12px; padding: 10px 24px; line-height: 17.14px; }
  .pill-white { margin-top: 30px; }
  .sec-contact { padding-bottom: 64px; }
  .contact-desc { font-size: 14px; line-height: 21px; }
  .form { margin-top: 28px; gap: 22px; }
  .f-row { grid-template-columns: 1fr; gap: 22px; }
  .ft-info span { display: block; }
  .ft-info span + span::before { content: none; }
  .ft-info br { display: none; }
}
