/* 유온(YUON) 홈페이지 스타일. 값의 정본은 docs/DESIGN.md §3. */

:root {
  --paper: #FFFFFF;
  --wash: #F3F5F8;
  --ink: #0B1F3A;
  --ink-hover: #1B3459;
  --text: #27313F;
  --muted: #5F6B7A;
  --line: #D8DEE6;
  --signal: #E5601A;

  --font: "IBM Plex Sans KR", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-pad: clamp(64px, 9vw, 112px);
  --col-gap: clamp(24px, 4vw, 64px);
  --measure: 34em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1, h2, h3, p, ul, ol, dl, dd {
  margin: 0;
}

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

h1, h2, h3 {
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* 링크와 포커스 */

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

/* 공통 틀 */

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 머리 */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  min-height: 72px;
  padding-block: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.logo-mark {
  display: block;
  flex: none;
  width: 46px;
  height: 20px;
}

.logo-ko {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.logo-en {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
}

.site-nav ul {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* 첫 화면 */

.hero {
  padding-block: clamp(56px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: var(--col-gap);
}

.hero-lead {
  max-width: var(--measure);
  margin-top: 28px;
}

.hero-founded {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--ink-hover);
  border-color: var(--ink-hover);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--wash);
}

.hero-figure {
  width: 100%;
}

.cycle {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font);
}

.cycle-arc {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}

.cycle-left {
  fill: var(--ink);
}

.cycle-right {
  fill: var(--paper);
  stroke: var(--signal);
  stroke-width: 3;
}

.cycle-main {
  font-size: 34px;
  font-weight: 700;
}

.cycle-sub {
  font-size: 18px;
  font-weight: 500;
}

.cycle-main-left,
.cycle-sub-left {
  fill: var(--paper);
}

.cycle-main-right,
.cycle-sub-right {
  fill: var(--ink);
}

.cycle-label {
  fill: var(--text);
  font-size: 19px;
  font-weight: 500;
}

.orbit-dot,
.orbit-dot-still {
  fill: var(--signal);
}

.orbit-dot-still {
  display: none;
}

/* 본문 구역 */

.section {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line);
}

.section-wash {
  background: var(--wash);
}

.section-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  align-items: start;
  gap: var(--col-gap);
}

.section-body > .intro {
  max-width: var(--measure);
}

/* 사업 분야 */

.biz-list {
  margin-top: 32px;
  border-bottom: 1px solid var(--line);
}

.biz-item {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.biz-item p {
  max-width: var(--measure);
  margin-top: 10px;
}

.biz-item .reg {
  max-width: none;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.reg-label {
  margin-right: 0.5em;
  color: var(--text);
  font-weight: 600;
}

.steps-title {
  margin-top: 48px;
}

.steps {
  display: flex;
  align-items: center;
  margin-top: 18px;
}

.steps li {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.steps li:last-child {
  flex: 0 0 auto;
}

.steps li:not(:last-child)::after {
  content: "";
  flex: 1 1 auto;
  min-width: 16px;
  height: 1px;
  margin-inline: 8px 14px;
  background: var(--line);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.step-name {
  color: var(--ink);
  font-weight: 500;
}

.steps-note {
  max-width: var(--measure);
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 회사 개요 */

.facts {
  border-bottom: 1px solid var(--line);
}

.fact {
  display: grid;
  grid-template-columns: 9em 1fr;
  align-items: baseline;
  gap: 4px 24px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}

.fact dt {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75rem;
}

.fact dd {
  color: var(--text);
}

.fact .fact-regno {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75rem;
}

.biz-codes li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
}

.biz-codes li + li {
  margin-top: 4px;
}

.biz-type {
  color: var(--muted);
  font-size: 0.85rem;
}

/* 대표 소개 */

.founder-name {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

.founder-name span {
  margin-left: 0.25em;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.section-body > .founder-name + .intro {
  margin-top: 12px;
}

.career {
  margin-top: 32px;
  border-bottom: 1px solid var(--line);
}

.career li {
  display: grid;
  grid-template-columns: 11em 1fr;
  align-items: baseline;
  gap: 2px 24px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}

.career-period {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75rem;
  white-space: nowrap;
}

.career-body {
  display: flex;
  flex-direction: column;
}

.career-role {
  color: var(--text);
}

.career-field {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 문의 */

.contact-email {
  margin-top: 24px;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.contact-list {
  margin-top: 28px;
}

.contact-list div {
  display: grid;
  grid-template-columns: 4em 1fr;
  align-items: baseline;
  gap: 4px 16px;
}

.contact-list div + div {
  margin-top: 8px;
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75rem;
}

/* 바닥 */

.site-footer {
  padding-block: 40px 48px;
  border-top: 1px solid var(--line);
  background: var(--wash);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ink);
}

.copyright {
  margin-top: 16px;
}

/* 900px 아래: 한 단 */

/* 주소는 도로명 부분과 건물 부분 사이에서만 줄이 바뀌게 한다(좁은 화면은 자연 줄바꿈). */
@media (min-width: 561px) {
  .nb {
    white-space: nowrap;
  }
}

.intro,
.hero-lead,
.biz-item p {
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .hero-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    max-width: 420px;
  }

  .section-grid {
    gap: 24px;
  }
}

/* 560px 아래: 메뉴를 로고 아래로, 표를 쌓기 */

@media (max-width: 560px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav ul {
    gap: 18px;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .steps li:not(:last-child)::after {
    display: none;
  }

  .fact,
  .career li {
    grid-template-columns: 1fr;
  }

  .fact {
    gap: 2px;
  }

  .career li {
    gap: 0;
  }

  /* 업태를 종목 위 한 줄로 모두 같은 모양으로 쌓는다 */
  .biz-codes li {
    flex-direction: column;
    align-items: flex-start;
  }

  .biz-codes li + li {
    margin-top: 10px;
  }
}

/* 움직임 줄이기: 도는 점을 숨기고 위쪽 호 가운데의 멈춘 점을 보인다 */

@media (prefers-reduced-motion: reduce) {
  .orbit-dot {
    display: none;
  }

  .orbit-dot-still {
    display: inline;
  }
}

/* 인쇄 */

@media print {
  @page {
    size: A4 portrait;
    margin: 16mm;
  }

  html {
    font-size: 10pt;
  }

  body {
    background: none;
    color: #000;
    font-size: 10.5pt;
    line-height: 1.5;
  }

  /* 글자는 모두 검정 (SVG 도식의 채움색은 color가 아니라 fill이라 그대로 남는다) */
  .site-header *,
  main *,
  .site-footer * {
    color: #000 !important;
  }

  a {
    text-decoration: none;
  }

  .step-num {
    border-color: #000;
  }

  .skip-link,
  .site-nav,
  .hero-actions {
    display: none;
  }

  .orbit-dot {
    display: none;
  }

  .orbit-dot-still {
    display: inline;
  }

  .wrap {
    max-width: none;
    padding-inline: 0;
  }

  .header-inner {
    min-height: 0;
    padding-block: 0 4mm;
  }

  .hero {
    padding-block: 5mm;
  }

  .hero-grid {
    grid-template-columns: 1fr 70mm;
    gap: 8mm;
  }

  .hero-figure {
    width: 70mm;
    max-width: 70mm;
  }

  h1 {
    font-size: 22pt;
  }

  h2 {
    font-size: 13pt;
  }

  h3 {
    font-size: 11pt;
  }

  .hero-lead {
    margin-top: 4mm;
  }

  .hero-founded {
    margin-top: 2mm;
  }

  .section {
    padding-block: 4mm;
  }

  .section-wash,
  .site-footer {
    background: none;
  }

  .section-grid {
    grid-template-columns: 30mm 1fr;
    gap: 6mm;
  }

  .biz-list {
    margin-top: 2mm;
  }

  .biz-item {
    padding-block: 2.5mm;
  }

  .biz-item p,
  .biz-item .reg {
    margin-top: 1mm;
  }

  .steps-title {
    margin-top: 4mm;
  }

  .steps,
  .steps-note {
    margin-top: 2mm;
  }

  .step-num {
    width: 18pt;
    height: 18pt;
  }

  .fact {
    padding-block: 1.5mm;
  }

  .career {
    margin-top: 3mm;
  }

  .career li {
    padding-block: 1.5mm;
  }

  .contact-email {
    margin-top: 2mm;
    font-size: 13pt;
  }

  .contact-list {
    margin-top: 2mm;
  }

  .site-footer {
    padding-block: 4mm 0;
  }

  .fact,
  .facts,
  .biz-item,
  .career li,
  .steps {
    break-inside: avoid;
  }
}
