/* 하위 페이지: 카드 · 단계 · 회사소개 · 품목 · 소싱 · 게시판 · 문의 폼 · FAQ · 방침 */

/* ── 아이콘 카드 ─────────────────────────────────── */

.icon-cards { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.icon-cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.icon-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.icon-cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.icon-cards.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.icon-cards li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 30px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 6px 18px rgb(11 31 75 / 0.05);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.icon-cards h3 { color: var(--navy); font-size: 19px; }
.icon-cards p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

.icon-cards.tone-navy li { border-color: rgb(255 255 255 / 0.14); background: rgb(255 255 255 / 0.06); box-shadow: none; }
.icon-cards.tone-navy .icon-badge { background: rgb(255 255 255 / 0.1); color: #9cc2f5; }
.icon-cards.tone-navy .card-code { color: #8fb4ec; }
.icon-cards.tone-navy h3 { color: var(--white); }
.icon-cards.tone-navy p { color: rgb(255 255 255 / 0.72); }

/* ── 번호 단계 카드(실제 순서가 있는 흐름) ──────────────── */

.step-cards { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.step-cards.n-3 { grid-template-columns: 1fr; gap: 14px; }
.step-cards.n-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step-cards.n-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.step-cards li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 22px;
  border-top: 3px solid var(--navy);
  border-radius: 0 0 10px 10px;
  background: var(--white);
  box-shadow: 0 8px 22px rgb(11 31 75 / 0.07);
}

.step-cards.n-4 li:not(:last-child)::after,
.step-cards.n-5 li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -21px;
  width: 14px;
  height: 14px;
  border-top: 2px solid #b5c3db;
  border-right: 2px solid #b5c3db;
  transform: translateY(-50%) rotate(45deg);
}

.step-num { position: absolute; top: 16px; right: 18px; font-family: var(--f-latin); font-size: 30px; font-weight: 800; color: rgb(37 96 184 / 0.16); }
.step-icon { color: var(--blue); margin-bottom: 6px; }
.step-cards h3 { color: var(--navy); font-size: 18px; }
.step-cards p { color: var(--muted); font-size: 14.5px; }

.step-cards.n-3 li { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 20px 22px; border-top: 0; border-left: 3px solid var(--navy); border-radius: 0 10px 10px 0; }
.step-cards.n-3 .step-num { position: static; font-size: 22px; color: var(--blue); }
.step-cards.n-3 .step-icon { display: none; }
.step-cards.n-3 .card-code { display: none; }
.step-cards.n-3 p { flex-basis: 100%; padding-left: 42px; }

.script-line { margin: -24px 0 36px; color: var(--blue); font-family: var(--f-script); font-size: 34px; font-weight: 600; text-align: center; }
.motto { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin: -18px 0 44px; font-family: var(--f-latin); font-size: 24px; font-weight: 700; letter-spacing: 0.02em; }
.motto span:nth-child(1) { color: #ff8a80; }
.motto span:nth-child(2) { color: #b39ddb; }
.motto span:nth-child(3) { color: #8fb4ec; }

/* ── 사진 ─────────────────────────────────────────── */

.media-frame { margin: 0; }
.media-frame img { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; object-fit: cover; box-shadow: 0 14px 30px rgb(11 31 75 / 0.12); }
.media-tall img { aspect-ratio: 3 / 4; max-height: 620px; }
.media-frame figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }
.media-pair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 52px; }
.media-pair img { aspect-ratio: 4 / 3; }

/* ── 회사소개 ─────────────────────────────────────── */

.flow { display: flex; align-items: center; gap: 24px; padding: 28px 32px; border-radius: 12px; background: var(--navy); color: var(--white); }
.flow-label { flex-shrink: 0; font-family: var(--f-head); font-size: 18px; font-weight: 700; }
.flow-list { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 0; padding: 0; list-style: none; }
.flow-list li { display: flex; flex-direction: column; padding: 0 18px; font-weight: 700; }
.flow-list li + li { border-left: 1px solid rgb(255 255 255 / 0.2); }
.flow-list span { font-family: var(--f-latin); font-size: 10px; letter-spacing: 0.16em; color: #8fb4ec; }

.brand-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.brand-board-logo, .brand-board-slogans { padding: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.brand-board-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.brand-board-logo img { width: min(300px, 80%); }
.brand-board-name { margin-top: 14px; font-family: var(--f-head); font-size: 24px; font-weight: 700; color: var(--navy); }
.brand-board-en { font-family: var(--f-latin); font-size: 12px; letter-spacing: 0.3em; color: var(--muted); }
.brand-board-slogans { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.slogan-en { font-family: var(--f-latin); font-size: 20px; font-weight: 500; letter-spacing: 0.3em; color: var(--navy); }
.slogan-local { font-family: var(--f-head); font-size: 22px; color: var(--navy); }
.slogan-sm { font-size: 14px; }
.slogan-en.slogan-sm { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); letter-spacing: 0.2em; }

.symbols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.symbol { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 20px; border-radius: 12px; background: var(--paper); text-align: center; }
.symbol-0 .icon, .symbol-2 .icon { color: var(--red); }
.symbol-1 .icon, .symbol-3 .icon { color: var(--blue); }
.symbol strong { margin-top: 8px; font-family: var(--f-head); font-size: 17px; color: var(--navy); }
.symbol p { color: var(--muted); font-size: 14px; }

.info-table { margin: 0; border-top: 2px solid var(--navy); }
.info-table > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 15px 4px; border-bottom: 1px solid var(--line); }
.info-table dt { color: var(--muted); font-weight: 600; }
.info-table dd { margin: 0; font-weight: 500; }

.location-card { padding: 40px; border-radius: 12px; background: var(--white); box-shadow: 0 14px 34px rgb(11 31 75 / 0.08); }
.location-card .section-head { margin-bottom: 24px; }
.contact-lines { display: grid; gap: 14px; margin: 0 0 28px; padding: 0; list-style: none; }
.contact-lines li { display: flex; align-items: center; gap: 12px; }
.contact-lines .icon { color: var(--blue); }
.contact-lines a { color: var(--ink); font-weight: 600; text-decoration: none; }

.statement { padding: 96px 0; background: linear-gradient(120deg, var(--navy-deep), #173f8a); color: var(--white); text-align: center; }
.statement-words { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 36px; margin-bottom: 22px; font-family: var(--f-latin); font-size: 13px; letter-spacing: 0.45em; color: #9cc2f5; }
.statement h2 { font-size: 36px; }
.statement p:not(.statement-words) { margin: 14px 0 32px; font-family: var(--f-latin); font-size: 13px; letter-spacing: 0.25em; color: rgb(255 255 255 / 0.75); }

/* ── 주요품목 ─────────────────────────────────────── */

.product-rows { display: grid; gap: 56px; }
.product-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.product-row:nth-child(even) .media-frame { order: 2; }
.product-row-body h3 { margin: 8px 0 22px; color: var(--navy); font-size: 30px; }
.product-row-body dl { margin: 0; }
.product-row-body dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.product-row-body dt { color: var(--muted); font-weight: 600; }
.product-row-body dd { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 4px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--navy); font-weight: 600; font-size: 14.5px; }
.chips .chip-muted { background: transparent; border: 1px dashed #b5c3db; color: var(--muted); font-weight: 500; }
.callout { display: flex; align-items: flex-start; gap: 12px; margin-top: 48px; padding: 20px 24px; border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0; background: var(--paper); color: var(--ink); }
.callout .icon { color: var(--blue); margin-top: 2px; }
.ask-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 48px; border-radius: 14px; background: var(--paper); }
.ask-box h2 { color: var(--navy); font-size: 26px; }
.ask-box p { margin-top: 8px; color: var(--muted); }

/* ── 글로벌 소싱: 실사 사진 · 7단계 ─────────────────── */

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.gallery li.is-wide { grid-column: span 2; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; object-fit: cover; }
.gallery .is-wide img { aspect-ratio: 8 / 3; }
.gallery figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }

.chain-regions { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; font-family: var(--f-head); font-weight: 700; font-size: 15px; }
.chain-regions .is-origin { grid-column: span 4; padding-bottom: 8px; border-bottom: 3px solid var(--red); color: var(--red); }
.chain-regions .is-korea { grid-column: span 3; padding-bottom: 8px; border-bottom: 3px solid var(--blue); color: var(--blue); }

.chain { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.chain::before { content: ''; position: absolute; top: 32px; left: calc(100% / 14); right: calc(100% / 14); height: 3px; background: linear-gradient(90deg, var(--red), #6a2c8e 45%, var(--blue)); }
.chain li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.chain-dot { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px; margin-bottom: 10px; border: 3px solid var(--blue); border-radius: 50%; background: var(--white); color: var(--blue); }
.chain .is-origin .chain-dot { border-color: var(--red); color: var(--red); }
.chain .step-num { position: static; font-size: 14px; color: var(--muted); }
.chain h3 { color: var(--navy); font-size: 18px; }
.chain p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ── 고객센터: 게시판 ───────────────────────────────── */

.post-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--navy); }
.post-list a { display: flex; gap: 20px; align-items: center; padding: 20px 8px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.post-list a:hover .post-title { color: var(--blue); text-decoration: underline; }
.post-main { display: flex; flex: 1; min-width: 0; gap: 16px; justify-content: space-between; align-items: baseline; }
.post-title { font-size: 17px; font-weight: 600; }
.post-main time { flex-shrink: 0; color: var(--muted); font-family: var(--f-latin); font-size: 13px; }
.post-thumb { flex-shrink: 0; width: 160px; height: 120px; border-radius: 8px; object-fit: cover; background: var(--paper); }
.post-list-media .post-main { flex-direction: column; gap: 6px; }
.chip { display: inline-block; margin-right: 8px; padding: 1px 10px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 12px; font-weight: 600; vertical-align: 2px; }
.empty { padding: 56px 0; border-top: 2px solid var(--navy); color: var(--muted); text-align: center; }
.empty p + p { margin-top: 8px; }

.pager { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 40px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.pager a:hover { background: var(--paper); }
.pager [aria-current='page'] { background: var(--navy); color: var(--white); font-weight: 700; }
.pager [aria-disabled='true'] { color: #c5cddb; }

.post .measure { margin: 0 auto; }
.post-head { padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.post-head h1 { color: var(--navy); font-size: 34px; }
.post-meta { margin-top: 12px; color: var(--muted); font-size: 14px; }
.prose { font-size: 17px; line-height: 1.9; }
.prose p + p { margin-top: 1.1em; }
.post-images { display: grid; gap: 16px; margin-top: 40px; }
.post-images figure { margin: 0; }
.post-images img { border-radius: 8px; }
.attachments { margin-top: 40px; padding: 20px 24px; border-radius: 8px; background: var(--paper); }
.attachments h2 { font-size: 16px; }
.attachments ul { margin: 12px 0 0; padding: 0; list-style: none; }
.attachments li { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; }
.att-size { color: var(--muted); font-size: 14px; }
.post-nav { display: grid; margin: 48px 0 32px; border-top: 1px solid var(--line); }
.post-nav a { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.post-nav span { flex-shrink: 0; width: 5em; color: var(--muted); }

/* ── 1:1 문의 폼 ───────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.form { display: grid; gap: 24px; }
.field, .consent { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
/* 직계 자식만: 안쪽 선택지(.choice) 라벨까지 잡으면 칩 모양이 깨진다. */
.field > label, .field > legend { display: flex; align-items: baseline; gap: 8px; padding: 0; font-weight: 700; }
.req, .opt { font-size: 13px; font-weight: 500; }
.req { color: var(--red); }
.opt { color: var(--muted); }
.hint { color: var(--muted); font-size: 14px; }

.field input:not([type='radio'], [type='checkbox']), .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #c5cddb;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.field textarea { resize: vertical; line-height: 1.6; }
.field input:not([type='radio'], [type='checkbox']):focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
.has-error input:not([type='radio'], [type='checkbox']), .has-error textarea { border-color: var(--red); }
.field-error { color: var(--red); font-size: 14px; font-weight: 600; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.choice { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.choices .choice { padding: 9px 18px; border: 1px solid #c5cddb; border-radius: 999px; font-weight: 500; }
.choices .choice:has(input:checked) { border-color: var(--navy); background: var(--navy); color: var(--white); font-weight: 600; }
.choices .choice:has(input:focus-visible) { outline: 3px solid #4d8ee8; outline-offset: 2px; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }

.consent { gap: 12px; padding: 22px 24px; border-radius: 8px; background: var(--paper); }
.consent legend { float: left; width: 100%; font-weight: 700; }
.consent p { color: var(--muted); font-size: 14px; }
.consent .choice { font-weight: 600; }
.consent.has-error { box-shadow: inset 4px 0 0 var(--red); }
.consent .text-link { font-size: 14px; }
.form > .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--radius); font-weight: 600; }
.alert-error { background: #fdecec; color: #9b1c15; box-shadow: inset 4px 0 0 var(--red); }

.contact-direct { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; border-radius: 12px; background: var(--navy); color: var(--white); }
.contact-direct h2 { font-size: 19px; }
.contact-direct dl { margin: 20px 0; }
.contact-direct dl > div + div { margin-top: 14px; }
.contact-direct dt { color: rgb(255 255 255 / 0.65); font-size: 13px; }
.contact-direct dd { margin: 2px 0 0; font-weight: 600; }
.contact-direct a { color: var(--white); }
.contact-direct .hint { color: rgb(255 255 255 / 0.7); }

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.faq summary { display: flex; align-items: center; gap: 14px; padding: 20px 22px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--f-latin); font-size: 18px; font-weight: 800; color: var(--blue); }
.faq-chevron { margin-left: auto; color: var(--muted); transition: transform 0.2s; }
.faq details[open] .faq-chevron { transform: rotate(90deg); }
.faq details p { padding: 0 22px 22px 54px; color: var(--muted); }

.sent { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 0; text-align: center; }
.sent-icon { color: var(--green); }
.sent h2 { color: var(--navy); font-size: 28px; }
.sent p { margin-bottom: 16px; color: var(--muted); }

/* ── 개인정보처리방침 ──────────────────────────────── */

.policy + .policy { margin-top: 32px; }
.policy h2 { margin-bottom: 10px; color: var(--navy); font-size: 20px; }
.policy p + p { margin-top: 8px; }
.policy-contact { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }

/* ── 반응형 ─────────────────────────────────────────── */

@media (max-width: 1100px) {
  .icon-cards.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step-cards.n-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step-cards.n-5 li::after { display: none; }
}

@media (max-width: 960px) {
  .icon-cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-cards.n-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-cards li::after { display: none; }
  .brand-board, .product-row, .contact-grid { grid-template-columns: 1fr; }
  .product-row:nth-child(even) .media-frame { order: 0; }
  .symbols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { flex-direction: column; align-items: flex-start; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain-regions { display: none; }
  .chain { grid-template-columns: 1fr; gap: 0; }
  .chain::before { top: 33px; bottom: 33px; left: 32px; right: auto; width: 3px; height: auto; background: linear-gradient(180deg, var(--red), #6a2c8e 45%, var(--blue)); }
  .chain li { display: grid; grid-template-columns: 66px 1fr; column-gap: 18px; align-items: start; padding-bottom: 20px; text-align: left; }
  .chain-dot { grid-row: span 4; margin: 0; }
  .contact-direct { position: static; }
  .ask-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .icon-cards.cols-2, .icon-cards.cols-3, .icon-cards.cols-4, .icon-cards.cols-5 { grid-template-columns: 1fr; }
  .step-cards.n-4, .step-cards.n-5 { grid-template-columns: 1fr; }
  .step-cards.n-3 p { padding-left: 0; }
  .media-pair { grid-template-columns: 1fr 1fr; }
  .media-pair figure:last-child { grid-column: span 2; }
  .gallery { grid-template-columns: 1fr; }
  .gallery li.is-wide { grid-column: auto; }
  .gallery .is-wide img { aspect-ratio: 4 / 3; }
  .symbols { grid-template-columns: 1fr; }
  .brand-board-logo, .brand-board-slogans, .location-card { padding: 28px; }
  .slogan-en { font-size: 16px; }
  .motto { font-size: 19px; }
  .info-table > div, .product-row-body dl > div { grid-template-columns: 1fr; gap: 2px; }
  .product-row-body h3 { font-size: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .post-thumb { width: 96px; height: 72px; }
  .post-main { flex-direction: column; gap: 4px; }
  .post-head h1 { font-size: 26px; }
  .statement h2 { font-size: 26px; }
  .ask-box { padding: 28px; }
  .faq details p { padding-left: 22px; }
}
