@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&family=Noto+Serif+KR:wght@500;600;700&display=swap');
:root{--brown:#49372e;--gold:#bc8a5f;--ink:#26221f;--muted:#786f68;--cream:#f7f4f0}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;color:var(--ink);font-family:'Noto Sans KR',sans-serif;word-break:keep-all;padding-bottom:100px}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}.inner{width:min(1200px,calc(100% - 48px));margin:auto}.narrow{max-width:1020px}.header{height:90px;background:white;position:sticky;top:0;z-index:10;box-shadow:0 1px 4px #0000000e}.header-inner{width:min(1280px,calc(100% - 48px));height:100%;margin:auto;display:flex;align-items:center;justify-content:space-between}.brand,.footer-brand{font-family:'Noto Serif KR',serif;font-weight:700;font-size:30px;letter-spacing:.08em}.brand small{font-size:18px}.header nav{display:flex;gap:60px;color:#4f4a47;font-size:16px}.header nav a:hover{color:var(--gold)}.menu-toggle{display:none;border:0;background:transparent;font-size:24px}.hero{position:relative;background:#e9dfd7}.hero-slide{height:570px;display:grid;grid-template-columns:1fr 1fr;position:relative;overflow:hidden}.hero-copy{position:relative;z-index:1;justify-self:end;width:min(450px,80%);padding-top:112px}.eyebrow{font-size:18px;color:#806a5c}.hero h1{font-size:52px;line-height:1.25;letter-spacing:-.05em;margin:24px 0 28px;white-space:pre-line}.hero-description{font-size:18px;line-height:1.8;color:#62554c;white-space:pre-line}.outline-button{display:inline-block;margin-top:24px;padding:13px 25px;border:1px solid #806a5c;font-size:14px}.outline-button span{margin-left:30px}.portrait{height:100%;background:#dfd4c9 url('images/reference/clean-bg1.jpg') center / cover no-repeat}.hero-arrow{position:absolute;top:43%;border:0;background:none;color:white;font:200 70px/1 sans-serif}.prev{left:5%}.next{right:5%}.dots{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);display:flex;gap:8px}.dots button{width:8px;height:8px;border:0;border-radius:50%;background:#ffffff80;padding:0}.dots button[aria-current=true]{background:white;width:25px;border-radius:10px}.section{padding:130px 0}.section-heading{text-align:center;margin-bottom:65px}.kicker{color:#aa7b53;font-size:16px;font-weight:600;letter-spacing:.02em;margin:0 0 14px}.section h2{font-family:'Noto Serif KR',serif;font-size:42px;line-height:1.45;letter-spacing:-.05em;margin:0}.section-heading>p:last-child:not(.kicker){color:#817770;margin-top:20px}.intro{text-align:center;background:#faf8f6}.intro .lead{line-height:1.9;color:#786d66;font-size:18px;white-space:pre-line;margin:25px 0 0}.about-copy li{color:#796f68;line-height:1.8}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}.about-image{min-height:490px;background:#e4dad2;display:grid;place-items:center;text-align:center;color:#fff}.about-image span{letter-spacing:.3em;font-size:12px}.about-image p{font:600 24px 'Noto Serif KR',serif}.small-label{letter-spacing:.17em;color:#b48a6a;font-size:12px}.about-copy h3{font:700 36px 'Noto Serif KR',serif}.about-copy h3 small{font-size:18px}.about-copy blockquote{margin:30px 0;padding-bottom:30px;border-bottom:1px solid #ddd;color:#8e6b53;font:600 20px 'Noto Serif KR',serif}.about-copy h4{font-size:17px}.about-copy ul{padding-left:18px}.edit-note{font-size:12px;color:#9c8c80}.contact{text-align:center;background:#f7f3ef}.contact-card{background:white;padding:35px;display:flex;flex-direction:column;align-items:center;gap:12px}.contact-card p{color:#9c7b62;margin:0}.contact-card strong{font-size:22px}.contact-button{background:#bd8b60;color:white;padding:15px 60px;margin-top:10px}.contact-card small{color:#9a8f87}footer{background:#f2efec;padding:45px 0;color:#8d837b;font-size:13px}footer .inner{display:flex;gap:70px;align-items:center}.footer-brand{color:#665951;font-size:24px}.floating{position:fixed;left:50px;bottom:125px;z-index:9;display:grid;gap:10px}.floating a{width:65px;height:65px;border-radius:50%;display:grid;place-items:center;background:#eac748;font-weight:700}.floating a:last-child{background:#252525;color:white;font-size:28px}.bottom-bar{position:fixed;bottom:0;left:0;right:0;background:#49382e;color:white;z-index:9}.bottom-bar>div{width:min(1200px,calc(100% - 48px));margin:auto;min-height:100px;display:flex;align-items:center;gap:30px}.bottom-bar strong{font:700 21px 'Noto Serif KR',serif}.bottom-bar a{margin-left:auto;background:#bf8d62;padding:13px 100px;text-align:center;font-weight:700}
@media(max-width:700px){body{padding-bottom:70px}.header{height:68px}.brand{font-size:24px}.menu-toggle{display:block}.header nav{display:none;position:absolute;top:68px;left:0;right:0;background:white;padding:20px 24px;gap:0;box-shadow:0 8px 12px #0001}.header nav.open{display:grid}.header nav a{padding:12px}.hero-slide{height:570px;display:flex;flex-direction:column}.hero-copy{width:auto;align-self:stretch;padding:55px 38px 30px}.hero h1{font-size:37px;margin:15px 0}.hero-description{font-size:15px}.eyebrow{font-size:14px}.portrait{flex:1}.hero-arrow{font-size:44px;top:45%}.prev{left:5px}.next{right:5px}.section{padding:80px 0}.section h2{font-size:29px}.section-heading{margin-bottom:40px}.intro .lead{font-size:15px}.about-grid{grid-template-columns:1fr;gap:30px}.about-image{min-height:350px}.floating{left:auto;right:16px;bottom:85px}.floating a{width:48px;height:48px;font-size:13px}.bottom-bar>div{min-height:70px;gap:12px}.bottom-bar strong{font-size:16px}.bottom-bar a{padding:12px 25px;font-size:13px}footer .inner{display:block}.footer-brand{font-size:20px}}

/* 투명 배경 인물 사진을 배너 오른쪽에 배치합니다. */
.portrait.has-image{background-color:#d8c7bc;background-size:auto 118%;background-position:center top;background-repeat:no-repeat}
.about-image.has-profile-image{background-color:#e4dad2;background-size:contain!important;background-position:center bottom!important;background-repeat:no-repeat}
@media(max-width:700px){.portrait.has-image{background-size:auto 140%;background-position:center 8%}}

/* 소개 영역과 마지막 문의 영역의 인물 사진 */
.about-image.has-profile-image{background-size:cover!important;background-position:center top!important}
.contact{position:relative;overflow:hidden;min-height:650px;display:flex;align-items:center;text-align:left}
.contact-content{position:relative;z-index:1;margin-left:max(24px,calc((100% - 1200px)/2));margin-right:auto;width:43%;max-width:520px}
.contact .section-heading{text-align:left}
.contact-card{align-items:flex-start}
.contact-portrait{position:absolute;right:0;bottom:0;width:52%;height:100%;display:flex;justify-content:flex-end;align-items:flex-end}
.contact-portrait img{display:block;width:auto;max-width:100%;height:100%;object-fit:contain;object-position:right bottom}
@media(max-width:700px){.contact{display:flex;flex-direction:column;align-items:stretch;padding-bottom:0;min-height:0}.contact-content{width:auto;max-width:none;margin:0 24px}.contact-portrait{position:relative;order:2;width:100%;height:390px;margin-top:20px}.contact-portrait img{height:100%;max-width:100%;object-position:right bottom}.contact-card{padding:24px}.contact .section-heading{text-align:left}}

/* 문의 영역은 인물의 상반신이 크게 보이도록 맞춥니다. */
.contact-portrait{overflow:hidden;align-items:flex-start}
.contact-portrait img{height:200%;max-width:none;object-fit:initial;transform:translateX(9%)}
@media(max-width:700px){.contact-portrait img{height:180%;max-width:none;transform:translateX(9%)}}

/* 원본의 한방 분위기 배경 */
.intro{background:#f7f3ef url('images/reference/clean-bg1.jpg') center top / cover no-repeat}
.contact{background:#807570 url('images/reference/immunity-bg1.jpg') center top / cover no-repeat;color:#fff}
.contact .kicker{color:#efcfb2}
.contact .section-heading>p:last-child:not(.kicker){color:#f4e9e1}
.contact-card{color:#26221f}
.contact-card label{font-weight:700}
.contact-card textarea{width:100%;min-height:125px;padding:12px;border:1px solid #b8ab9f;border-radius:4px;background:white;color:inherit;font:inherit;line-height:1.5;resize:vertical}
.contact-card .contact-button{max-width:100%;border:0;background:#805635;padding-inline:clamp(12px,6vw,60px)}
.contact-card .contact-button:disabled{opacity:.7;cursor:wait}
.contact-card #contact-status{font-size:14px;color:#74503a;text-align:left}
.contact-card #contact-status:empty{margin-top:-12px}
@media(max-width:700px){.contact{background-position:38% top}.contact-content{z-index:1}.contact .section-heading>p:last-child:not(.kicker){color:#fff}}
/* 프로필 사진을 원본 비율 그대로 표시합니다. */
.about-image.has-profile-image{aspect-ratio:2/3;min-height:0;background-size:contain!important;background-position:center!important;background-repeat:no-repeat}
.about-image.has-profile-image{aspect-ratio:2/3.13;background-size:100% auto!important;background-position:center bottom!important}
.about-grid{align-items:start}.about-copy h3{margin:14px 0 24px}.about-copy h4{margin:28px 0 10px;padding-top:22px;border-top:1px solid #e1d9d3}.about-copy ul{margin:0}.about-copy li{padding:3px 0;font-size:15px}.biography{color:#6d625a;font-size:15px;line-height:1.85}.biography p{margin:0 0 12px}

/* Transparent company logo in the header and footer. */
.brand, .footer-brand { display: block; width: 202px; flex-shrink: 0; }
.brand img, .footer-brand img { display: block; width: 100%; height: auto; }
@media (max-width: 600px) { .brand, .footer-brand { width: 160px; } }

/* 조선한방 상품 배너와 상품 목록 */
.hero {
  --hero-gold: #8a5627;
  color: #241e18;
  isolation: isolate;
  overflow: hidden;
  background: #f3e9db url('images/hanji-landscape-hero.png') center bottom / cover no-repeat;
}
.hero-slide {
  width: min(1536px, calc(100% - 144px));
  height: auto;
  min-height: clamp(510px, calc(100svh - 190px), 850px);
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(16px, 2.5vw, 42px);
  padding: 26px 0 56px;
  overflow: visible;
}
.hero-copy {
  justify-self: stretch;
  width: auto;
  padding: 0;
}
.hero .eyebrow {
  color: #624a34;
  font-size: clamp(15px, 1.35vw, 21px);
  font-weight: 600;
  margin: 0;
}
.hero h1 {
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: clamp(34px, 4.05vw, 70px);
  font-weight: 900;
  line-height: 1.19;
  letter-spacing: -.065em;
  margin: 18px 0 20px;
}
.hero-highlight {
  display: block;
  margin-top: .04em;
  color: var(--hero-gold);
  font-size: 1.34em;
}
.hero-description { margin: 0; color: #533e2a; }
.hero .outline-button {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  padding: 13px 21px;
  border-color: #4d3828;
  background: #4d3828;
  color: #fff8eb;
  font-weight: 700;
}
.hero .outline-button span { margin: 0; }
.hero .outline-button:hover { background: #6b4830; }
.hero .portrait {
  display: grid;
  place-items: center;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  height: auto;
  aspect-ratio: 7 / 5;
  padding: clamp(9px, 1.4vw, 18px);
  border: 1px solid #88664155;
  background: #f6eee3d9;
}
.hero .portrait:not(.has-photo) { visibility: hidden; }
.hero.has-feature .portrait {
  align-self: end;
  width: 112%;
  margin: 0 0 -5.5% -2%;
  aspect-ratio: 1448 / 1086;
  padding: 0;
  border: 0;
  background: none;
  filter: drop-shadow(0 18px 14px #422a1c64);
}
.hero.has-feature .hero-image[src="images/yeongmyosahyangdan-hero.png"] {
  /* Show the two boxes over the scene using the original studio photo. */
  clip-path: polygon(3.05% 34.9%, 4.24% 33.42%, 47.59% 33.63%, 48.92% 34.97%,
    49.02% 67%, 53.22% 54.35%, 51.41% 27.5%, 52.87% 24.34%, 96.68% 25.64%,
    96.02% 37.9%, 95.78% 57.22%, 95.46% 60.5%, 96.4% 63%, 94.83% 85.01%,
    94.03% 85.5%, 47.03% 82.06%, 46.64% 81.6%, 46.56% 75.12%, 3.26% 74.9%, 3.05% 74.47%);
}
.hero .hero-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.hero .hero-image[hidden] { display: none; }
.hero .product-portrait .hero-image { background: #fff; }
.hero-controls {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 0 0 12px;
}
.hero-controls[hidden] { display: none; }
.hero-controls .hero-arrow, .hero-autoplay {
  display: grid;
  place-items: center;
  position: static;
  width: 40px;
  height: 40px;
  padding: 0 0 2px;
  border: 1px solid #62452955;
  border-radius: 50%;
  background: #faf3e6bb;
  color: #4d3424;
  font: 400 25px / 1 sans-serif;
}
.hero-autoplay { margin-left: 8px; font-size: 14px; }
.hero-controls button:hover { background-color: #fff9ed; }
@media (min-width: 901px) {
  .hero-controls { inset: 0; align-items: flex-end; pointer-events: none; }
  .hero-controls button { pointer-events: auto; }
  .hero-controls .hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .hero-controls .prev { left: clamp(16px, 2vw, 44px); }
  .hero-controls .next { right: clamp(16px, 2vw, 44px); }
}
.hero-controls .dots {
  position: static;
  transform: none;
  align-items: center;
  gap: 0;
}
.hero-controls .dots button {
  display: grid;
  place-items: center;
  width: 25px;
  height: 40px;
  background: transparent;
}
.hero-controls .dots button::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 10px;
  background: #63452d91;
}
.hero-controls .dots button[aria-current=true]::after {
  width: 17px;
  background: var(--hero-gold);
}
.hero a:focus-visible, .hero button:focus-visible {
  outline: 2px solid var(--hero-gold);
  outline-offset: 3px;
}
.products-page { padding-bottom: 0; }
.header nav a[aria-current="page"] { color: #745138; font-weight: 700; }
.products { padding: 95px 0 100px; background: #faf7f2; }
.products-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px 24px;
  margin-bottom: 12px;
  text-align: left;
}
.products-heading h1 {
  margin: 0;
  font: 700 clamp(29px, 4vw, 42px) / 1.45 'Noto Serif KR', serif;
  letter-spacing: -.05em;
}
.products-source { color: #745138; font-size: 14px; text-decoration: underline; text-underline-offset: .28em; }
.product-detail { display: none; scroll-margin-top: 20px; }
.product-detail:target { display: block; }
.product-detail:target + .product-catalog { display: none; }
.product-detail .products-heading { margin-bottom: 20px; }
.product-detail-images { display: grid; gap: clamp(12px, 2vw, 24px); }
.product-detail-images a, .product-detail-images img { display: block; }
.product-detail-images img { width: 100%; height: auto; }
.products-intro { margin: 0 0 30px; color: #685b50; line-height: 1.7; }
.product-group + .product-group { margin-top: 48px; }
.product-group h2 {
  margin: 0 0 17px;
  padding-top: 20px;
  border-top: 1px solid #ddcbbc;
  font: 700 23px / 1.4 'Noto Serif KR', serif;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 1100px) {
  #civet-products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.product-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e6dcd2;
  background: white;
}
.product-card a:hover, .product-card a:focus-visible { border-color: #98704f; }
.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}
.product-card h3 { margin: 14px 16px 4px; font-size: 16px; line-height: 1.45; }
.product-action {
  margin: auto 16px 0;
  padding: 0 0 16px;
  color: #745138;
  font-size: 13px;
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hero-slide { width: calc(100% - 48px); min-height: 0; gap: 20px; padding: 40px 0 56px; }
  .hero h1 { margin: 9px 0 14px; }
  .hero .outline-button { margin-top: 8px; }
  .hero .portrait { width: 100%; flex: none; aspect-ratio: 4 / 3; }
  .hero .portrait:not(.has-photo) { display: none; }
  .hero.has-feature .portrait { align-self: center; width: 106%; margin: -10% 0 -8%; }
  .hero-controls { width: 100%; padding-bottom: 8px; }
  .products { padding: 56px 0 62px; }
  .products-heading { flex-direction: column; align-items: flex-start; }
  .products-intro { font-size: 14px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card h3 { margin: 10px 10px 4px; font-size: 14px; }
  .product-action { margin-inline: 10px; padding-bottom: 11px; }
}
@media (max-width: 340px) {
  .hero-slide, .products > .inner { width: calc(100% - 28px); }
  .hero h1 { font-size: 30px; }
  .product-grid { grid-template-columns: 1fr; }
}
