@charset "utf-8";
/* ============================================================
   SEMIWON FOOD — base.css
   reset / design token / typography / button / form / utility
   ============================================================ */

/* ------------------------------------------------------------
   [1] 폰트 스케일 시스템
   ------------------------------------------------------------
   · 폰트는 전부 vw 로 스케일된다. 하한(최소 폰트크기)은 두지 않는다.
   · 모바일 시안 기준 폭은 412px. 시안의 px 을 그대로 쓰려면 --u 를 쓴다.
       font-size: calc(var(--u) * 16);   →  412px 에서 16px

   [구간]
   · PC        : 991px 이상.  1920px 에서 상한.
   · 펼친 모바일 : 990 ~ 501px.  레이아웃은 990px 부터, 폰트는 600px 에서 상한.
   · 접은 모바일 : 500px 이하.  폰트는 420px 에서 상한.

   [상한 계산]  412px 값 × 600/412 (펼친) · × 420/412 (접은)
------------------------------------------------------------ */
html {
  font-size: min(1.04166667vw, 20px); /* 20 / 1920 * 100 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #FFFFFF;
  /* 가로 스크롤 차단 — 마퀴·가로 캐러셀이 문서 폭을 넘기지 못하게 한다 */
  overflow-x: hidden;
}
body { overflow-x: clip; }

/* 모바일은 412px 시안에 비례한다. 두 구간의 기울기는 같고 상한만 다르다.
   3.57142857vw = 14.714px @412  ·  상한 21.4285714px = 14.714 * 600/412 */
@media (max-width: 990px) {
  html { font-size: min(3.57142857vw, 21.4285714px); }  /* 600px 상한 */
}

@media (max-width: 500px) {
  html { font-size: min(3.57142857vw, 15px); }          /* 420px 상한 */
}

/* ------------------------------------------------------------
   [1-1] --u : 412px 시안의 1px
   ------------------------------------------------------------
   · font-size: calc(var(--u) * 16)  →  412px 에서 정확히 16px
   · 0.24271845vw = 1 / 412 * 100
   · 상한 1.45631068px = 600/412 (펼친) · 1.01941748px = 420/412 (접은)
   · PC 값은 위 rem 스케일과 동일 비율(÷14.7142857)이라 같은 숫자를
     PC/모바일 공용 규칙에 그대로 쓸 수 있다.
   · 하한 없음 — 화면이 좁아지면 계속 비례 축소된다.
------------------------------------------------------------ */
:root { --u: min(0.07079320vw, 1.35922330px); }         /* PC */

@media (max-width: 990px) {
  :root { --u: min(0.24271845vw, 1.45631068px); }       /* 펼친 : 600px 상한 */
}
@media (max-width: 500px) {
  :root { --u: min(0.24271845vw, 1.01941748px); }       /* 접은 : 420px 상한 */
}

/* ------------------------------------------------------------
   [2] Reset
------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

/* ※ 주의 : 이 목록에 html 을 넣으면 font:inherit 때문에
   위에서 지정한 vw 기반 루트 폰트가 16px 로 되돌아간다. */
div, span, h1, h2, h3, h4, h5, h6, p, a, em, img, strong, b, i,
ol, ul, li, form, label, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, figure, figcaption, footer, header, nav, section, time, main {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}
body { margin: 0; padding: 0; }

article, aside, figure, figcaption, footer, header, nav, section, main { display: block; }
/* ※ 위 display:block 이 브라우저 기본 [hidden] 규칙을 덮으므로 다시 선언한다. */
[hidden] { display: none !important; }
ol, ul { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }
input, textarea, select, button { font-family: inherit; }
input:focus-visible, textarea:focus-visible, select:focus-visible,
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   [3] Design Token
------------------------------------------------------------ */
:root {
  /* Brand — Green (기준 브랜드 컬러 : #0A4238) */
  --brand:     #0A4238;   /* ★ BRAND COLOR */
  --green-900: #06291F;
  --green-800: #0A4238;   /* = --brand : 메인 버튼 / CTA 밴드 */
  --green-700: #0E5546;
  --green-600: #157055;
  --green-500: #2E8B67;
  --green-400: #4FA383;
  --green-300: #8FC4AC;
  --green-100: #D8ECE1;
  --green-050: #EEF6F1;

  /* Neutral */
  --ink:       #16181A;
  --ink-80:    #3A3F43;
  --gray-700:  #575E64;
  --gray-500:  #868E95;
  --gray-400:  #A8AFB5;
  --gray-300:  #C9CFD3;
  --line:      #E4E8E6;
  --line-soft: #EFF2F0;
  --white:     #FFFFFF;

  /* Surface */
  --bg:        #FFFFFF;
  --bg-mint:   #F3F7F4;
  --bg-cream:  #FAF9EF;
  --bg-gray:   #F6F7F6;
  --footer-bg: #1C201D;
  --footer-bar:#171A18;

  /* Accent */
  --red:       #D8232A;   /* 로고 심볼 */
  --badge-new: #FCEAE7;
  --badge-hit: #E6F2EA;

  /* Layout
     좌우 여백 기준 : 1512px 화면에서 171px  (171 / 1512 = 11.31%)
     rem 환산 → 171 / (1512 × 0.0104167) = 10.86rem
     ┗ 1512px → 171px / 1920px → 217px 로 비례 적용된다. */
  --pad-pc: 10.86rem;
  --site-max: 1920px;      /* 내용 최대 폭 (배경은 화면 끝까지) */
  --header-h: 4rem;        /* 80px @1920 */

  /* Radius */
  --r-sm: 0.4rem;
  --r-md: 0.6rem;
  --r-lg: 1rem;
  --r-xl: 1.4rem;
  --r-full: 999px;
  --r-img: 10px;           /* 페이지 내 이미지 공통 라디우스 */

  /* Shadow */
  --sh-sm: 0 0.1rem 0.4rem rgba(16, 24, 20, .06);
  --sh-md: 0 0.4rem 1.2rem rgba(16, 24, 20, .08);
  --sh-lg: 0 1rem 2.4rem rgba(16, 24, 20, .10);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (max-width: 990px) {
  :root {
    --header-h: 3.4rem;
    --pad-pc: calc(var(--u) * 29);   /* 모바일 좌우 여백 : 412px 시안 기준 29px */
  }
}

/* ------------------------------------------------------------
   [4] Typography
------------------------------------------------------------ */
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               system-ui, Roboto, "Helvetica Neue", "Segoe UI",
               "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic",
               "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: calc(var(--u) * 11.7714);          /* 16px @1920 */
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  /* body 는 화면 전체 폭. 배경(히어로 이미지·컬러 밴드·푸터)이 끝까지 보이고,
     내용만 .container 에서 1920px 로 묶인다. */
  margin: 0;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 폰트 크기 유틸 (디자인 px @1920 → rem)
   ※ 페이지 내 최대 폰트는 42px(=2.1rem).
      단, 메인/브랜드 페이지 첫 섹션(비주얼)만 74px(=3.7rem) 허용. */
.fs-11 { font-size: calc(var(--u) * 8.0929); }  /* 11 */
.fs-12 { font-size: calc(var(--u) * 8.8286); }   /* 12 */
.fs-13 { font-size: calc(var(--u) * 9.5643); }  /* 13 */
.fs-14 { font-size: calc(var(--u) * 10.3); }   /* 14 */
.fs-15 { font-size: calc(var(--u) * 11.0357); }  /* 15 */
.fs-16 { font-size: calc(var(--u) * 11.7714); }   /* 16 */
.fs-18 { font-size: calc(var(--u) * 13.2429); }   /* 18 */
.fs-20 { font-size: calc(var(--u) * 14.7143); }     /* 20 */
.fs-24 { font-size: calc(var(--u) * 17.6571); }   /* 24 */
.fs-28 { font-size: calc(var(--u) * 20.6); }   /* 28 */
.fs-32 { font-size: calc(var(--u) * 23.5429); }   /* 32 */
.fs-36 { font-size: calc(var(--u) * 26.4857); }   /* 36 */
.fs-42 { font-size: calc(var(--u) * 30.9); }   /* 42 — 페이지 최대 */
.fs-74 { font-size: calc(var(--u) * 54.4429); }   /* 74 — 메인/브랜드 히어로 전용 */

/* 라벨(영문 대문자 소제목) */
.eyebrow {
  font-size: calc(var(--u) * 8.8286);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--green-500);
  text-transform: uppercase;
}
.eyebrow--gray { color: var(--gray-400); }
.eyebrow--white { color: rgba(255,255,255,.7); }

/* 모바일에서만 줄바꿈시키는 <br class="br-m"> / PC 에서만 줄바꿈하는 <br class="br-pc"> */
.br-m { display: none; }
@media (max-width: 990px) { .br-m { display: inline; } }
@media (max-width: 990px) { .br-pc { display: none; } }

/* 섹션 타이틀 — 페이지 내 최대 폰트 42px */
.sec-title {
  font-size: calc(var(--u) * 30.9);          /* 42px @1920 : 페이지 최대 */
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.035em;
}
.sec-title--sm { font-size: calc(var(--u) * 25.0143); }  /* 34px : 보조 섹션 타이틀 */
.sec-title .accent { color: var(--green-600); }
.sec-desc {
  margin-top: 0.8rem;
  font-size: calc(var(--u) * 11.7714);
  line-height: 1.85;
  color: var(--gray-700);
}

/* 메인 / 브랜드 페이지 첫 섹션 전용 (74px) */
.hero-title {
  font-size: calc(var(--u) * 54.4429);          /* 74px @1920 */
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

@media (max-width: 990px) {
  body { font-size: calc(var(--u) * 12.5071); line-height: 1.66; }
  .sec-title { font-size: calc(var(--u) * 25.3); }         /* 시안 실측 : 잉크 높이 23px */
  .sec-title--sm { font-size: calc(var(--u) * 18.8343); }
  .hero-title { font-size: calc(var(--u) * 30.9); }     /* 38px @600 */
  .sec-desc { font-size: calc(var(--u) * 11.7714); margin-top: 0.6rem; }
  .eyebrow {
    font-size: calc(var(--u) * 7.6);
    letter-spacing: 0.545em;      /* 시안 실측 : "CONTACT US" 잉크 폭 84px */
    margin-right: -0.545em;       /* 마지막 글자 뒤 자간 보정 (가운데정렬 어긋남 방지) */
  }
}

/* ------------------------------------------------------------
   [5] Layout helper
------------------------------------------------------------ */
/* 기본 컨테이너
   · 좌우 여백은 --pad-pc 로 통일 (1512:171 비율)
   · 내용 최대 폭 1920px — 1920 초과 화면에서는 가운데 정렬되고
     섹션 배경만 화면 끝까지 이어진다. */
.container,
.container-wide,
.container-narrow { max-width: var(--site-max); margin-inline: auto; }

.container        { width: 100%; padding-inline: var(--pad-pc); }
.container-wide   { width: 100%; padding-inline: calc(var(--pad-pc) * 0.62); }
.container-narrow { width: 100%; padding-inline: calc(var(--pad-pc) * 1.55); }

@media (max-width: 990px) {
  .container-wide   { padding-inline: var(--pad-pc); }
  .container-narrow { padding-inline: var(--pad-pc); }
}

.section { padding-block: 6rem; }            /* 120px */
.section--sm { padding-block: 4rem; }        /* 80px */
.section--mint  { background: var(--bg-mint); }
.section--cream { background: var(--bg-cream); }
.section--gray  { background: var(--bg-gray); }

@media (max-width: 990px) {
  .section { padding-block: 3.2rem; }
  .section--sm { padding-block: 2.4rem; }
}

.tac { text-align: center; }
.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;
}

/* ------------------------------------------------------------
   [6] Button
------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.4rem;                 /* 48px */
  padding-inline: 1.3rem;
  border-radius: var(--r-full);
  font-size: calc(var(--u) * 11.0357);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn .ico { width: 0.7rem; height: 0.7rem; flex: none; }

.btn--primary { background: var(--green-800); color: #fff; }
.btn--primary:hover { background: var(--green-600); }

.btn--accent { background: var(--green-600); color: #fff; }
.btn--accent:hover { background: var(--green-500); }

.btn--ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.55);
}
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

.btn--line {
  background: #fff; color: var(--green-700);
  border: 1px solid var(--green-300);
}
.btn--line:hover { border-color: var(--green-600); background: var(--green-050); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2b3033; }

.btn--sm { height: 2rem; padding-inline: 1rem; font-size: calc(var(--u) * 10.3); }
.btn--lg { height: 2.8rem; padding-inline: 1.8rem; font-size: calc(var(--u) * 12.5071); }
.btn--block { width: 100%; }

@media (max-width: 990px) {
  .btn { height: 2.5rem; font-size: calc(var(--u) * 11.7714); padding-inline: 1.2rem; }
  .btn--lg { height: 2.8rem; font-size: calc(var(--u) * 12.5071); }
  .btn--sm { height: 2.1rem; font-size: calc(var(--u) * 11.0357); }
}

/* 텍스트 링크 (상세 확인 →) */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.3rem;
  white-space: nowrap;
  font-size: calc(var(--u) * 10.3); font-weight: 600; color: var(--gray-700);
  transition: color .2s var(--ease), gap .2s var(--ease);
}
/* ※ inline-flex 안의 SVG 는 width/height 속성이 없으면 0 으로 접힌다. 반드시 크기를 준다. */
.link-arrow .ico { width: 0.7rem; height: 0.7rem; flex: none; }
.link-arrow:hover { color: var(--green-600); gap: 0.5rem; }

/* ------------------------------------------------------------
   [7] Form
------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-label {
  font-size: calc(var(--u) * 10.3); font-weight: 600; color: var(--ink-80);
}
.field-label .req { color: #E0483C; margin-left: 0.15rem; }

.input, .textarea, .select {
  width: 100%;
  height: 2.4rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  font-size: calc(var(--u) * 11.0357);
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.textarea { height: auto; min-height: 6rem; padding: 0.7rem 0.9rem; line-height: 1.7; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--gray-400); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(46,139,103,.12);
  outline: none;
}

/* 체크박스 */
.checkbox { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; font-size: calc(var(--u) * 10.3); color: var(--gray-700); }
.checkbox input { width: 0.8rem; height: 0.8rem; accent-color: var(--green-600); cursor: pointer; }

/* 칩 형태 라디오 (문의 유형) */
.chip-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.1rem; padding-inline: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: #fff;
  font-size: calc(var(--u) * 10.3); font-weight: 500; color: var(--gray-700);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--green-300); color: var(--green-700); }
.chip:has(input:checked) {
  background: var(--green-800); border-color: var(--green-800);
  color: #fff; font-weight: 600;
}

@media (max-width: 990px) {
  .input, .select { height: 2.6rem; font-size: calc(var(--u) * 11.7714); }
  .textarea { font-size: calc(var(--u) * 11.7714); min-height: 6.5rem; }
  .field-label { font-size: calc(var(--u) * 11.0357); }
  .chip { height: 2.2rem; font-size: calc(var(--u) * 11.0357); }
  .checkbox { font-size: calc(var(--u) * 11.0357); }
}

/* ------------------------------------------------------------
   [8] Badge / Tag
------------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center;
  height: 1.1rem; padding-inline: 0.45rem;
  border-radius: var(--r-sm);
  font-size: calc(var(--u) * 8.0929); font-weight: 700; letter-spacing: 0;
}
.badge--rec { background: var(--green-800); color: #fff; }
.badge--hit { background: var(--badge-hit); color: var(--green-700); }
.badge--new { background: var(--badge-new); color: #C4453C; }
.badge--line { background: #fff; border: 1px solid var(--line); color: var(--gray-700); }

.tag {
  display: inline-flex; align-items: center;
  height: 1.2rem; padding-inline: 0.5rem;
  border-radius: var(--r-full);
  background: var(--bg-gray);
  font-size: calc(var(--u) * 8.8286); color: var(--gray-700);
}
.tag-list { display: flex; flex-wrap: wrap; gap: 0.25rem; }

@media (max-width: 990px) {
  .badge { height: 1.25rem; font-size: calc(var(--u) * 9.1229); }
  .tag { height: 1.4rem; font-size: calc(var(--u) * 10.0057); }
}

/* ------------------------------------------------------------
   [9] 이미지 플레이스홀더
   실제 이미지 교체 전까지 레이아웃이 무너지지 않도록 처리.
   img 로드 실패 시 common.js 가 .is-empty 를 부여한다.
------------------------------------------------------------ */
.ph {
  display: block;          /* span 으로 써도 비율이 유지되도록 */
  position: relative;
  overflow: hidden;
  border-radius: var(--r-img);   /* 페이지 이미지 공통 라디우스 10px */
  background:
    linear-gradient(135deg, #EDF2EE 0%, #E2EBE4 50%, #EDF2EE 100%);
}
.ph > picture { display: block; width: 100%; height: 100%; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.is-empty img { display: none; }
.ph.is-empty::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0.6rem;
  text-align: center;
  font-size: calc(var(--u) * 8.8286); font-weight: 600; letter-spacing: 0.02em;
  color: rgba(20, 82, 63, .38);
}
.ph--dark { background: linear-gradient(135deg, #23302A 0%, #16211C 50%, #23302A 100%); }
.ph--dark.is-empty::after { color: rgba(255,255,255,.34); }

/* 섹션 배경 전체를 덮는 이미지에는 라디우스 미적용 */
.hero__bg, .brand-hero__bg, .en-hero__bg, .sub-visual__bg,
.why-card > .ph, .motto__img .ph { border-radius: 0; }

/* ------------------------------------------------------------
   [10] 스크롤 등장 애니메이션
------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
