/* Ellymary 회사 홈페이지 공통 스타일
   색은 브랜드 가이드의 세 가지만 씁니다: Royal Navy · Queen's Gold · Ivory */
:root {
    --navy: #1B2A4A;
    --navy-deep: #131E36;
    --gold: #C9A24A;
    --gold-soft: #E3CB8F;
    --ivory: #FFFFFF;
    --paper: #FFFFFF;
    --dark: #0C0C0E;
    --dark-2: #000000;
    --ink: #141416;
    --mist: #6E6E76;
    --line: rgba(0, 0, 0, .12);
    --serif: 'Cormorant Garamond', 'Pretendard', serif;
    --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --head-h: 72px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ---------- 머리 (모든 페이지) ---------- */
.em-head { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--head-h); background: var(--dark); color: var(--ivory); transition: background .3s; }
body.over-hero .em-head:not(.solid) { background: var(--dark); }
.em-head .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; max-width: none; padding: 0 32px; }
.em-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 17px; letter-spacing: .42em; color: var(--ivory); }
.em-logo img { width: 38px; height: 38px; object-fit: contain; }
.em-logo img.wm { width: auto; height: 15px; }
.em-nav { display: flex; align-items: center; gap: 6px; }
.em-nav > .item { position: relative; }
.em-nav > .item > a, .em-nav > .item > button { display: block; background: none; border: 0; color: var(--ivory); font: inherit; font-size: 14.5px; font-weight: 500; letter-spacing: .02em; padding: 10px 16px; text-decoration: none; cursor: pointer; opacity: 1; transition: color .2s; -webkit-tap-highlight-color: transparent; }
.em-nav > .item.on > a, .em-nav > .item.on > button { opacity: 1; color: #ffffff; }
.em-nav > .item > a:hover, .em-nav > .item > button:hover, .em-nav > .item:hover > a, .em-nav > .item:focus-within > a { opacity: 1; color: #ffffff; }
.em-nav a:focus { outline: none; }
.em-nav a:focus-visible { outline: 1px solid rgba(255,255,255,.6); outline-offset: 2px; }
.em-nav > .item { height: var(--head-h); display: flex; align-items: center; }
/* 마우스를 올리면 밑줄이 한 번 지나가고, 아래 메뉴는 바탕 없이 글자만 */
.em-nav > .item > a { position: relative; }
.em-nav > .item > a::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px; background: #ffffff; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.em-nav > .item:hover > a::after { animation: em-sweep .7s cubic-bezier(.6,0,.3,1) 1 forwards; }
@keyframes em-sweep { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 50.1% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
@media (prefers-reduced-motion: reduce) { .em-nav > .item:hover > a::after { animation: none; } }
.em-sub { position: absolute; top: calc(100% - 6px); left: 0; width: max-content; background: none; box-shadow: none; border: 0; padding: 4px 0 0; display: none; flex-direction: column; }
.item:hover .em-sub, .item:focus-within .em-sub { display: flex; }
.em-sub a { position: relative; display: block; padding: 5px 16px; font-size: 13.5px; font-weight: 500; letter-spacing: .04em; text-decoration: none; color: #ffffff; white-space: nowrap; transition: color .2s, opacity .2s; }
.em-sub a::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.em-sub a:hover::after { animation: em-sweep .7s cubic-bezier(.6,0,.3,1) 1 forwards; }
.em-sub.on-light a { color: #0c0c0e; }
.em-sub a:hover { background: none; color: #ffffff; }
.em-sub.on-light a:hover { background: none; color: #0c0c0e; }
.em-sub a small { display: none; }
.em-lang { display: inline-flex; gap: 2px; margin-left: 14px; }
.em-lang button { background: none; border: 0; color: var(--ivory); font: inherit; font-size: 12.5px; font-weight: 500; letter-spacing: .08em; padding: 4px 6px; cursor: pointer; opacity: 1; transition: color .2s; -webkit-tap-highlight-color: transparent; }
.em-lang button:hover { opacity: 1; color: #ffffff; }
.em-lang button:focus { outline: none; }
.em-lang button:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.em-lang button[aria-pressed="true"] { opacity: 1; color: #ffffff; font-weight: 600; }
.em-lang button { position: relative; }
.em-lang button::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 0; height: 1px; background: #ffffff; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.em-lang button:hover::after { animation: em-sweep .7s cubic-bezier(.6,0,.3,1) 1 forwards; }
@media (prefers-reduced-motion: reduce) { .em-lang button:hover::after { animation: none; } }
.em-burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.em-burger span { display: block; width: 22px; height: 1.5px; background: var(--ivory); margin: 5px auto; }
.page-top { padding-top: var(--head-h); }

/* ---------- 아래 (모든 페이지) ---------- */
.em-foot { background: #0c0c0e; color: #ffffff; padding: 88px 0 56px; font-size: 13px; }
.em-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.em-foot .foot-brand { display: flex; align-items: center; gap: 14px; }
.em-foot .foot-logo { width: 46px; height: 46px; margin: 0; }
.em-foot .mark { display: block; width: auto; height: 18px; }
.em-foot h4 { font-weight: 600; font-size: 13px; color: var(--ivory); margin-bottom: 10px; }
.em-foot a { text-decoration: none; }
.em-foot a { position: relative; color: #ffffff; transition: color .2s; }
.em-foot a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.em-foot a:hover { color: #ffffff; }
.em-foot a:hover::after { animation: em-sweep .7s cubic-bezier(.6,0,.3,1) 1 forwards; }
.em-foot .muted { color: rgba(255,255,255,.55); }
.em-foot .copy { color: rgba(255,255,255,.7); }
.em-foot li { list-style: none; line-height: 2; }
.em-foot .copy { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(244,239,230,.12); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- 공통 본문 ---------- */
section.blk { padding: 150px 0; }
.blk + .blk { border-top: 1px solid var(--line); }
h1.pg, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: .01em; }
h1.pg { font-size: clamp(44px, 6vw, 80px); }
h2 { font-size: clamp(32px, 4.2vw, 52px); margin-bottom: 36px; }
.lead { font-size: 18px; line-height: 1.9; max-width: 680px; }
p + p { margin-top: 1.15em; }
/* 한국어는 낱말 중간에서 줄이 바뀌지 않게 */
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, .lead { text-wrap: balance; }
.muted { color: var(--mist); }
.crumb { font-size: 13px; color: var(--mist); margin-bottom: 18px; }
.crumb a { text-decoration: none; }
.pg-head { background: var(--dark); color: var(--ivory); padding: 54px 0 50px; }
.pg-head h1.pg { font-size: clamp(34px, 4vw, 52px); font-weight: 300; letter-spacing: .02em; }
.pg-head .crumb { color: rgba(244,239,230,.6); }
.pg-head .lead { color: rgba(244,239,230,.85); margin-top: 18px; }
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 15px; padding: 14px 30px; text-decoration: none; cursor: pointer; border: 1px solid var(--dark); background: var(--dark); color: var(--ivory); }
.btn:hover { background: var(--dark-2); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.btn.gold:hover { background: var(--gold-soft); }
.btn.line { background: transparent; color: inherit; border-color: currentColor; }
.btn.line:hover { background: rgba(244,239,230,.12); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.state { display: inline-block; font-size: 12px; padding: 1px 9px; border: 1px solid currentColor; vertical-align: 2px; }
.state.on { color: #1d6b45; }
.state.soon { color: var(--mist); }

/* 문의 양식 */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 13px; color: var(--mist); margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-bottom: 1.5px solid var(--dark); padding: 12px 14px; border-radius: 0; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,74,.22); }
.agree { display: flex; gap: 10px; font-size: 13.5px; color: var(--mist); align-items: flex-start; }
.agree input { width: 16px; height: 16px; flex: 0 0 16px; margin: 4px 0 0; accent-color: var(--dark); }
.agree { gap: 12px; }
.form .btn { justify-self: start; }
.form .btn:disabled { opacity: .5; cursor: default; }
.msg { font-size: 14.5px; min-height: 1.5em; }
.msg.ok { color: #1d6b45; }
.msg.err { color: #9b2c2c; }

/* ---------- 휴대폰 ---------- */
@media (max-width: 900px) {
    :root { --head-h: 62px; }
    .em-head .wrap { padding: 0 18px; }
    .em-burger { display: block; }
    .em-nav { position: fixed; top: var(--head-h); left: 0; right: 0; bottom: 0; background: var(--dark); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 0 40px; overflow-y: auto; display: none; }
    .em-head.open .em-nav { display: flex; }
    .em-head.open { background: var(--dark) !important; }
    .em-nav > .item > a, .em-nav > .item > button { padding: 14px 24px; font-size: 17px; width: 100%; text-align: left; }
    .em-nav > .item { height: auto; display: block; }
    .em-sub { position: static; display: block !important; height: auto; border-top: 0; background: none; color: var(--ivory); box-shadow: none; padding: 0 0 8px 12px; }
    .em-sub .grp { padding: 6px 12px 2px; }
    .em-sub .grp { color: rgba(244,239,230,.55); }
    .em-sub a:hover { background: none; color: #ffffff; }
    .em-sub a small { color: rgba(244,239,230,.55); }
    .em-lang { margin: 18px 18px 0; align-self: flex-start; }
    section.blk { padding: 96px 0; }
    .wrap { padding: 0 22px; }
    .pg-head { padding: 40px 0 36px; }
    .form { grid-template-columns: 1fr; }
    .em-foot .cols { grid-template-columns: 1fr 1fr; }
    .em-foot .cols > div:first-child { grid-column: 1 / -1; }
}

.form label.agree { display: flex; align-items: flex-start; gap: 12px; }
.form label.agree input { margin-top: 3px; }

/* 맨 위로 버튼 */
.em-top { position: fixed; right: 26px; bottom: 26px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(12,12,14,.88); color: #ffffff; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.em-top.show { opacity: 1; visibility: visible; transform: none; }
.em-top:hover { border-color: #ffffff; }
.em-top:focus { outline: none; } .em-top:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
@media (max-width: 900px) { .em-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }

[id] { scroll-margin-top: calc(var(--head-h) + 20px); }
