@font-face {
  font-family: Pretendard;
  src: url('/assets/fonts/pretendard.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif.ttf') format('truetype');
  font-display: swap;
}
:root {
  --paper: #f8f7f2; --ink: #202a22; --mute: #536054; --orange: #a84726;
  --line: #cecec3; --forest: #173b2c; --pad: clamp(20px, 5.1vw, 104px);
  --display: 'Instrument Serif', Georgia, serif;
  --masthead-height: 84px;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 18px }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif; word-break: keep-all; overflow-wrap: break-word }
button, input, textarea, select { font: inherit }
button, a { touch-action: manipulation }
button { cursor: pointer; color: inherit }
a { color: inherit; text-decoration: none }
h1, h2, h3, p, figure { margin: 0 }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.045em }
img { max-width: 100% }
:focus-visible { outline: 3px solid #c36c34; outline-offset: 4px }
[hidden] { display: none !important }
header, footer, .section { padding-inline: var(--pad) }
body > header { min-height: var(--masthead-height); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line) }
.masthead { z-index: 4; position: relative; gap: 25px; background: var(--paper) }
.brand { display: inline-flex; align-items: center; width: clamp(174px, 16vw, 210px); max-width: 100%; flex-shrink: 0; line-height: 1 }
.brand img { display: block; width: 100%; height: auto }
.masthead nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 46px) }
.masthead nav a { font-size: clamp(17px, calc(16px + .12vw), 18px); font-weight: 620; letter-spacing: -.035em; padding-block: 10px }
.masthead nav a:not(.contact-link):hover, .masthead nav a[aria-current]:not(.contact-link), .footer-links a:hover { text-decoration: underline; text-underline-offset: 7px }
.masthead nav .contact-link { display: inline-flex; align-items: center; gap: 19px; background: var(--forest); color: white; border-radius: 35px; padding: 9px 22px }
.site-icon { display: inline-block; flex-shrink: 0; width: 22px; height: 22px; vertical-align: middle }
.menu { display: none; min-width: 46px; min-height: 46px; border: 0; background: transparent }
.skip { position: absolute; top: -100px; z-index: 8; background: white; padding: 10px }.skip:focus { top: 0 }
.section { padding-block: clamp(52px,6.5vw,110px) }
.section h2 { font-size: clamp(32px,3.6vw,62px) }
.eyebrow { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 14px; letter-spacing: .08em }
.eyebrow b { width: 8px; height: 8px; background: var(--orange); border-radius: 50% }
.pill { border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 17px; border-radius: 99px; padding: 12px 23px; min-height: 48px; font-weight: 650; font-size: 17px }
.dark { background: var(--forest); color: white }.orange { background: var(--orange); color: white }
.sectiontitle, .actions, .item { display: flex; align-items: center; gap: 20px }.sectiontitle { justify-content: space-between; margin: 20px 0 30px }
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding-block: clamp(30px, 3.6vw, 64px);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  padding-bottom: clamp(18px, 2vw, 30px);
  border-bottom: 1px solid var(--line);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 2px 24px; font-size: var(--type-link); font-weight: 560 }
.footer-links a { padding-block: 6px }
.footer-business {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.6;
}
.footer-business > div { display: flex; align-items: baseline; gap: 8px }
.footer-business dt { color: var(--mute) }
.footer-business dd { margin: 0; font-weight: 550 }
.footer-business a { white-space: nowrap; color: var(--forest) }
.footer-business .footer-address { white-space: normal; color: inherit; }
.footer-copyright { display: block; margin-top: 14px; font-size: 14px; color: var(--mute) }
.footer-copyright span { white-space: nowrap }
.footer-business a:hover, .footer-copyright a:hover { text-decoration: underline; text-underline-offset: 3px }
dialog { color: var(--ink); background: var(--paper); max-height: 86dvh; width: min(480px,90vw); padding: 30px; border: 1px solid var(--line); overflow-wrap: anywhere }
dialog::backdrop { background: #14241bd1 }dialog h2 { font-size: 32px; margin: 18px 0 }
dialog p { color: var(--mute); white-space: normal }.notice .actions { margin-top: 26px; flex-wrap: wrap }
button:not([class]), .admin button:not(.pill), .notice button[data-today] { border: 1px solid var(--line); border-radius: 4px; background: var(--paper); padding: 9px 14px }
.panel { padding: 28px; background: #fffefa; border: 1px solid var(--line) }
form label { display: block; font-weight: 600; margin-bottom: 17px }
input:not([type=checkbox],[type=radio],[type=hidden]), textarea, select { display: block; width: 100%; border: 1px solid #aeb5a8; border-radius: 4px; background: white; margin-top: 6px; padding: 10px; color: var(--ink) }
textarea { resize: vertical }.check { display: flex; align-items: center; gap: 8px }.check input { width: 20px; height: 20px }
.error { color: #962613 !important; background: #ffebe2; padding: 13px }
.admin { max-width: 1200px; margin: auto }.admin h1 { font-size: clamp(36px,5vw,64px); margin: 16px 0 }.admin h2 { font-size: 29px; margin: 20px 0 }.admin .panel { max-width: 690px }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px }.tabs a { padding: 9px 14px }.current { background: var(--forest); color: white }
.portfolio-subnav { display: flex; flex-wrap: wrap; gap: 24px; padding: 8px 0 0; font-size: 17px }
.portfolio-subnav a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; color: var(--mute) }
.portfolio-subnav a[aria-current] { border-color: var(--forest); color: var(--forest); font-weight: 700 }
.portfolio-subnav a:hover { color: var(--forest) }
.item { padding: 16px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere }.item>div { flex: 1 }.item small { display: block }.item a,.item button { font-size: 16px }.thumb { width: 130px }
@media(max-width:900px) {
  :root { --masthead-height: 68px }
  body { font-size: 17px }.menu { display: block }
  .masthead nav { display: none; position: absolute; inset: 100% 0 auto; background: var(--paper); border-block: 1px solid var(--line); padding: 14px var(--pad) 20px; box-shadow: 0 15px 28px #14241b1c }
  .masthead nav.open { display: grid; gap: 0 }.masthead nav a { display: block; padding: 12px 4px }.masthead nav .contact-link { margin-top: 5px; justify-content: space-between }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 12px }
  .footer-links { gap: 0 16px }
  .footer-business { display: grid; gap: 6px }
  .footer-business > div { display: grid; grid-template-columns: 7em minmax(0, 1fr) }
  .footer-business dt { white-space: nowrap }
  .sectiontitle { align-items: flex-start; gap: 12px }.panel { padding: 17px }.item { gap: 10px }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto } *, *::before, *::after { animation-duration: .01ms!important; transition-duration: .01ms!important }
}

/* YJ Textile public identity */
body:has(.masthead) {
    /* Scale headings from the public menu banner; keep reading text within a narrower range. */
    --type-page-title: clamp(36px, calc(16px + 2.5vw), 64px);
    --type-section: clamp(30px, calc(var(--type-page-title) * .75), 48px);
    --type-subtitle: clamp(22px, calc(var(--type-page-title) * .47), 30px);
    --type-card: clamp(18px, calc(var(--type-page-title) * .375), 24px);
    --type-lead: clamp(17px, calc(15px + .27vw), 20px);
    --type-body: clamp(16px, calc(14px + .22vw), 18px);
    --type-label: clamp(15px, calc(13px + .27vw), 18px);
    --type-link: clamp(15px, calc(14px + .12vw), 16px);
    font-size: var(--type-body);
    --ink: #192330;
    --paper: #fafaf7;
    --line: #d5d9dc;
    --mute: #515b66;
    --forest: #0054a6;
    --orange: #0054a6;
}
@media (min-width: 1920px) {
    body:has(.masthead) { --type-page-title: 64px; }
}
body:has(.masthead) dialog h2 { font-size: var(--type-subtitle); }
.masthead { background: #fff; border-color: #e1e3e5 }
.masthead nav a { letter-spacing: -.035em }
.masthead nav .contact-link { background: #0054a6 }
body:has(.masthead) :focus-visible { outline-color: #0054a6 }

html.lenis.lenis-smooth { scroll-behavior: auto }
html:has(.masthead) { scrollbar-gutter: stable }
html:has(.masthead):has(dialog:modal) { overflow: hidden }
body:has(.masthead) dialog { overscroll-behavior: contain }
