/* ==========================================
   분당유앤미 의료철학 (mn01_02) 공통 CSS — PC/모바일 파일이 함께 사용
   접두어: ynm- / 이미지: /images/sub/philosophy/
   ========================================== */
/* ==========================================
   00. 공통 스타일 및 타이포그래피
   ========================================== */
.ynm-page {
    --ynm-gold:#b89874; --ynm-gold-light:#e4cfac; --ynm-gold-deep:#8d6f4c;
    --ynm-ink:#141311; --ynm-text:#4a453f; --ynm-mute:#8a847c;
    --ynm-wall:#e9e6e1; --ynm-soft:#f4f1ec; --ynm-line:#e3dfd8;
    --ynm-ease:cubic-bezier(.16,1,.3,1);
    max-width: 1200px; margin: 0 auto; color: var(--ynm-ink);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Noto Sans KR', sans-serif;
    font-size: 16px; font-weight: 400; line-height: 1.9; letter-spacing: -0.01em;
    word-break: keep-all; text-align: left; -webkit-font-smoothing: antialiased;
}
/* 사이트 전역 CSS(p/span/div 18px, 회색 얇은 글씨 등)를 이 영역 안에서만 되돌림 */
.ynm-page :where(h1,h2,h3,h4,p,div,span,a,b,em,strong,i,small,blockquote,address,figure,figcaption,li,nav,section,article,header) {
    font-family: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; letter-spacing: inherit;
    color: inherit; text-align: inherit; margin: 0; padding: 0;
}
.ynm-page :where(a) { text-decoration: none; }
.ynm-page [id^="ynm-"] { scroll-margin-top: 24px; }
.ynm-bleed { box-sizing: border-box; width: 100vw; margin-left: calc(-50vw + 50%); }
.ynm-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ynm-eyebrow { font: 500 12px 'Manrope','Pretendard',sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--ynm-ink); }
.ynm-eyebrow.gold { color: var(--ynm-gold-deep); }
.ynm-btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px; background: var(--ynm-ink); color: #fff; font: 500 12px 'Manrope','Pretendard',sans-serif; letter-spacing: .16em; text-transform: uppercase; transition: background .4s var(--ynm-ease), gap .4s var(--ynm-ease), color .4s; }
.ynm-btn:hover { background: var(--ynm-gold-deep); gap: 18px; }
.ynm-btn:after { content: '→'; font-size: 14px; }
.ynm-js .ynm-reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ynm-ease), transform 1s var(--ynm-ease); transition-delay: var(--d,0s); }
.ynm-js .ynm-reveal.ynm-in { opacity: 1; transform: none; }

/* ==========================================
   01. 인트로 (상단 배너 자리 / 원장님 사진 배경)
   ========================================== */
.ynm-top-page { margin-bottom: -40px; } /* 아래 탭이 인트로 하단에 30px 걸쳐 보이도록 */
.ynm-hero { --ynm-hero-pos: 72% 0%; position: relative; display: flex; align-items: center; min-height: 860px; padding: 160px 20px 140px; color: #fff; }
.ynm-hero-bg { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100vw; height: 100%; overflow: hidden; background: #1b1713; z-index: 0; }
.ynm-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; object-position: var(--ynm-hero-pos); transform-origin: 72% 0%; transform: scale(1.06); transition: transform 2.8s var(--ynm-ease); }
.ynm-ready .ynm-hero-bg img { transform: none; }
.ynm-hero-bg:after { content: ''; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(14,12,10,.93) 0%, rgba(14,12,10,.8) 36%, rgba(14,12,10,.36) 62%, rgba(14,12,10,.06) 100%); }
.ynm-hero-text { position: relative; z-index: 1; max-width: 640px; }
.ynm-hero .ynm-eyebrow { display: flex; align-items: center; gap: 14px; font-family: 'Pretendard',sans-serif; font-weight: 400; letter-spacing: .2em; color: var(--ynm-gold-light); }
.ynm-hero .ynm-eyebrow:before { content: ''; width: 34px; height: 1px; background: var(--ynm-gold); }
.ynm-hero h1 { margin: 26px 0 24px; font-weight: 500; font-size: 62px; line-height: 1.24; letter-spacing: -.05em; color: #fff; }
.ynm-line { display: block; overflow: hidden; padding-bottom: .08em; }
.ynm-line > span { display: block; transform: translateY(110%); transition: transform 1.2s var(--ynm-ease); }
.ynm-ready .ynm-line > span { transform: none; }
.ynm-line:nth-child(2) > span { transition-delay: .12s; }
.ynm-hero-sub { margin: 0 0 14px; font-size: 19px; font-weight: 400; color: rgba(255,255,255,.92); }
.ynm-hero-quote { margin: 0 0 38px; padding-top: 18px; border-top: 1px solid rgba(184,152,116,.55); max-width: 520px; font-size: 17px; line-height: 1.9; font-weight: 400; color: rgba(255,255,255,.9); }
.ynm-hero .ynm-btn { gap: 20px; padding: 6px 6px 6px 28px; border-radius: 999px; background: linear-gradient(135deg, rgba(255,255,255,.26), rgba(255,255,255,.08)); border: 1px solid rgba(255,255,255,.42); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); color: #fff; font: 600 15px 'Pretendard','Noto Sans KR',sans-serif; letter-spacing: -.01em; text-transform: none; text-shadow: 0 1px 8px rgba(0,0,0,.25); box-shadow: 0 16px 40px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.5); transition: opacity 1s var(--ynm-ease) .7s, transform .5s var(--ynm-ease), background .4s var(--ynm-ease), border-color .4s, box-shadow .4s; }
.ynm-hero .ynm-btn:after { content: '↓'; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #e4cfac, #b89874); color: #1b1713; font: 500 18px/1 'Pretendard',sans-serif; text-shadow: none; box-shadow: 0 6px 16px rgba(184,152,116,.45); transition: transform .5s var(--ynm-ease), background .4s, box-shadow .4s; }
.ynm-hero .ynm-btn:hover { gap: 20px; background: linear-gradient(135deg, rgba(255,255,255,.4), rgba(255,255,255,.16)); border-color: rgba(255,255,255,.7); transform: translateY(-3px); box-shadow: 0 22px 48px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.7); }
.ynm-hero .ynm-btn:hover:after { transform: translateY(3px); background: #fff; box-shadow: 0 8px 20px rgba(255,255,255,.35); }
.ynm-hero .ynm-btn:focus-visible { outline: 2px solid var(--ynm-gold-light); outline-offset: 4px; }
.ynm-fade { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ynm-ease) .5s, transform 1s var(--ynm-ease) .5s; }
.ynm-ready .ynm-fade { opacity: 1; transform: none; }
.ynm-fade.d2 { transition-delay: .7s; }

/* ==========================================
   02. 인사말
   ========================================== */
.ynm-letter { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr); background: var(--ynm-wall); }
.ynm-letter-copy { padding: 120px 40px 120px max(20px, calc((100vw - 1300px) / 2 + 20px)); }
.ynm-letter-copy h2 { margin: 22px 0 34px; font-weight: 500; font-size: 40px; line-height: 1.45; letter-spacing: -.045em; color: var(--ynm-ink); }
.ynm-letter-copy p { margin: 0 0 16px; font-size: 16.5px; line-height: 2.05; color: var(--ynm-text); font-weight: 400; }
.ynm-letter-copy strong { display: block; margin-top: 26px; padding-top: 24px; border-top: 1px solid #d6d1c8; font-weight: 500; color: var(--ynm-ink); line-height: 1.9; }
.ynm-room { position: relative; min-height: 520px; background: linear-gradient(180deg,#e4ddd1 0%,#d9d0c1 100%); overflow: hidden; }
.ynm-room .frame { position: absolute; left: 13%; top: 12%; width: 38%; height: 46%; border: 1px solid rgba(255,255,255,.7); background: linear-gradient(145deg,#ece6db,#e1d8c9); box-shadow: 0 0 0 10px rgba(184,152,116,.22); }
.ynm-room .ledge { position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: repeating-linear-gradient(90deg,#6e4d33 0 6px,#5f4029 6px 12px); }
.ynm-room .bowl { position: absolute; left: 46%; bottom: 28%; width: 90px; height: 28px; border-radius: 0 0 90px 90px; background: #d9cbb4; }
.ynm-room .vase { position: absolute; right: 17%; bottom: 28%; width: 78px; height: 150px; border-radius: 46% 46% 40% 40% / 30% 30% 70% 70%; background: linear-gradient(100deg,#cdb592,#b99e78); }
.ynm-room .vase:before { content: ''; position: absolute; left: 50%; top: -34px; width: 2px; height: 70px; background: #5c4632; transform: translateX(-50%) rotate(8deg); transform-origin: bottom; }
.ynm-room .vase:after { content: ''; position: absolute; left: 50%; top: -30px; width: 26px; height: 26px; margin-left: -6px; border-radius: 50%; background: rgba(122,90,60,.35); }

/* ==========================================
   03. 네 가지 원칙 (카드 바로가기)
   ========================================== */
.ynm-principles { background: #fff; }
.ynm-cards-area { padding: 130px 0 120px; }
.ynm-section-top { text-align: center; margin-bottom: 68px; }
.ynm-section-top h2 { margin: 18px 0 12px; font-weight: 500; font-size: 46px; line-height: 1.35; letter-spacing: -.05em; color: var(--ynm-ink); }
.ynm-section-top p { margin: 0; font-size: 15px; color: var(--ynm-text); font-weight: 400; }
.ynm-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.ynm-card { display: block; }
.ynm-tile { position: relative; aspect-ratio: 4/4.6; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 22px 20px; overflow: hidden; }
.ynm-card:nth-child(1) .ynm-tile { background: #ece8e1; }
.ynm-card:nth-child(2) .ynm-tile { background: #e6dfd3; }
.ynm-card:nth-child(3) .ynm-tile { background: #efe9df; }
.ynm-card:nth-child(4) .ynm-tile { background: #e3dacb; }
.ynm-tile img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; transition: transform 1.1s var(--ynm-ease); }
.ynm-card:hover .ynm-tile img { transform: scale(1.05); }
.ynm-tile i { position: relative; z-index: 1; font: 300 88px/.9 'Manrope','Pretendard',sans-serif; font-style: normal; letter-spacing: -.06em; color: rgba(255,255,255,.9); transition: transform .9s var(--ynm-ease), color .6s; }
.ynm-tile:before { content: ''; position: absolute; right: -30%; bottom: -24%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(184,152,116,.55), rgba(184,152,116,.12) 70%); transition: transform 1.1s var(--ynm-ease); }
.ynm-tile small { position: relative; z-index: 1; font: 500 10px 'Manrope','Pretendard',sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--ynm-text); }
.ynm-card:hover .ynm-tile:before { transform: scale(1.25) translate(-6%,-6%); }
.ynm-card:hover .ynm-tile i { transform: translateY(-6px); color: #fff; }
.ynm-card-title { display: block; margin: 18px 0 6px; font-size: 16.5px; font-weight: 500; line-height: 1.5; letter-spacing: -.02em; color: var(--ynm-ink); }
.ynm-card-go { display: block; font-size: 13px; color: var(--ynm-text); transition: letter-spacing .4s var(--ynm-ease), color .3s; }
.ynm-card:hover .ynm-card-go { color: var(--ynm-gold-deep); letter-spacing: .04em; }

/* ==========================================
   04. 원칙 상세
   ========================================== */
.ynm-row { padding: 100px 0 110px; border-top: 1px solid var(--ynm-line); }
.ynm-row:nth-of-type(even) { background: var(--ynm-soft); }
.ynm-row-grid { display: grid; grid-template-columns: 440px minmax(0,1fr); gap: 90px; align-items: center; }
.ynm-no { font: 500 15px 'Manrope','Pretendard',sans-serif; letter-spacing: .2em; color: var(--ynm-gold-deep); display: flex; align-items: center; gap: 14px; }
.ynm-no:after { content: ''; width: 44px; height: 1px; background: var(--ynm-gold); }
.ynm-en { margin: 26px 0 12px; font: 500 11px 'Manrope','Pretendard',sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--ynm-mute); }
.ynm-row-aside h3 { margin: 0; font-weight: 500; font-size: 36px; line-height: 1.45; letter-spacing: -.05em; color: var(--ynm-ink); }
.ynm-row-body p { margin: 0 0 15px; font-size: 16.5px; line-height: 2.05; color: var(--ynm-text); font-weight: 400; }
.ynm-row-body p.ynm-desc { margin: 0 0 28px; font-size: 21px; font-weight: 500; line-height: 1.7; letter-spacing: -.03em; color: var(--ynm-ink); }
.ynm-row-body p.ynm-take { margin: 34px 0 0; padding: 4px 0 4px 24px; border-left: 1px solid var(--ynm-gold); font-weight: 500; color: var(--ynm-ink); font-size: 17px; line-height: 1.85; }

/* ==========================================
   05. 맺음말
   ========================================== */
.ynm-closing { background: var(--ynm-wall); padding: 150px 20px 140px; text-align: center; }
.ynm-closing h2 { margin: 24px auto 44px; max-width: 900px; font-weight: 500; font-size: 52px; line-height: 1.45; letter-spacing: -.05em; color: var(--ynm-ink); }
.ynm-closing h2 em { font-style: normal; color: var(--ynm-gold-deep); }
.ynm-closing-body { max-width: 640px; margin: 0 auto; font-size: 16.5px; line-height: 2.1; color: var(--ynm-text); font-weight: 400; }
.ynm-closing-body p { margin: 0 0 14px; }
.ynm-closing-body strong { font-weight: 500; color: var(--ynm-ink); }
.ynm-sign { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ynm-sign:before { content: ''; width: 1px; height: 44px; background: var(--ynm-gold); margin-bottom: 16px; }
.ynm-sign .role { font-size: 13px; color: var(--ynm-mute); letter-spacing: .06em; }
.ynm-sign .name { font-weight: 500; font-size: 22px; letter-spacing: .16em; color: var(--ynm-ink); }

/* ==========================================
   06. 반응형 (Mobile / Tablet)
   ========================================== */
@media (max-width: 1100px) {
    .ynm-cards { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
    .ynm-row-grid { gap: 50px; }
    .ynm-hero h1 { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
    .ynm-line > span { transform: none; transition: none; }
    .ynm-fade { opacity: 1; transform: none; transition: none; }
    .ynm-hero-bg img { transform: none; transition: none; }
    .ynm-js .ynm-reveal { opacity: 1; transform: none; transition: none; }
}

/* 인사말 옆 원장님 사진 (없으면 위 CSS 오브제가 대신 보임) */
.ynm-room-photo { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; object-position: center 20%; }

/* ==========================================
   위치 안내 (HOME > 분당유앤미 소개 > 의료진 소개)
   sub.css 의 #content_wrap #location 을 이 페이지에서만 덮어씀 (class="ynm-location")
   ========================================== */
#content_wrap #location.ynm-location { height: auto; padding: 4px 0 72px; }
#content_wrap #location.ynm-location .locbox span { display: inline-block; vertical-align: middle; width: auto; height: auto; margin: 0; padding: 0 0 9px; overflow: visible; background: none; font-size: 14px; line-height: 1; letter-spacing: -.01em; }
#content_wrap #location.ynm-location .locbox .home { font: 500 12px/1 'Manrope','Pretendard',sans-serif; letter-spacing: .16em; color: #8a847c; }
#content_wrap #location.ynm-location .locbox .arrow { width: 4px; height: 4px; margin: 0 16px 9px; padding: 0; border-radius: 50%; background: #c9b394; font-size: 0; color: transparent; }
#content_wrap #location.ynm-location .locbox .loc1 { height: auto; font-size: 14px; line-height: 1; color: #8a847c; }
#content_wrap #location.ynm-location .locbox .loc2 { position: relative; height: auto; font-size: 14px; line-height: 1; font-weight: 600; color: #141311; }
#content_wrap #location.ynm-location .locbox .loc2:after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: #b89874; }


/* ==========================================
   네 가지 원칙 카드 모션
   ========================================== */
.ynm-tile { transform-style: preserve-3d; transition: transform .7s var(--ynm-ease), box-shadow .7s var(--ynm-ease); will-change: transform; }
.ynm-card:hover .ynm-tile { transform: perspective(900px) translateY(-8px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); box-shadow: 0 30px 50px -22px rgba(90,70,40,.4); }
.ynm-tile:after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--mx,50%) var(--my,30%), rgba(255,255,255,.4), transparent 55%); transition: opacity .5s; }
.ynm-card:hover .ynm-tile:after { opacity: 1; }
.ynm-js .ynm-card .ynm-tile { clip-path: inset(0 0 100% 0); }
.ynm-js .ynm-card.ynm-in .ynm-tile { clip-path: inset(0); transition: clip-path 1.2s var(--ynm-ease) var(--d,0s), transform .7s var(--ynm-ease), box-shadow .7s var(--ynm-ease); }
.ynm-js .ynm-card .ynm-tile img { transform: scale(1.3); transition: transform 1.8s var(--ynm-ease) var(--d,0s); }
.ynm-js .ynm-card.ynm-in .ynm-tile img { transform: scale(1); }
.ynm-js .ynm-card.ynm-in:hover .ynm-tile img { transform: scale(1.08); transition: transform 1.1s var(--ynm-ease); }
.ynm-card-title { transition: transform .5s var(--ynm-ease); }
.ynm-card:hover .ynm-card-title { transform: translateX(4px); }

/* ==========================================
   원칙 상세 — 사진 + 핵심 문장 + 펼쳐 읽기
   ========================================== */
.ynm-row { position: relative; overflow: hidden; }
.ynm-row-media { position: relative; }
.ynm-row-fig { position: relative; z-index: 1; margin: 0; aspect-ratio: 4 / 4.6; overflow: hidden; background: #e6dfd3; }
.ynm-fig-par { position: absolute; left: 0; right: 0; top: -9%; bottom: -9%; transform: translate3d(0,var(--par,0px),0); will-change: transform; }
.ynm-row:nth-of-type(even) .ynm-row-grid { grid-template-columns: minmax(0,1fr) 440px; }
.ynm-row:nth-of-type(even) .ynm-row-media { order: 2; }
.ynm-row-fig img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; }
.ynm-js .ynm-row-fig.ynm-reveal { opacity: 1; transform: none; }
.ynm-js .ynm-row-fig img { clip-path: inset(0 0 100% 0); transform: scale(1.25); transition: clip-path 1.3s var(--ynm-ease), transform 2s var(--ynm-ease); }
.ynm-js .ynm-row-fig.ynm-in img { clip-path: inset(0); transform: scale(1); }
.ynm-row-main { min-width: 0; }
.ynm-row-aside { margin-bottom: 34px; }
.ynm-row-body p.ynm-take { margin: 26px 0 34px; padding: 22px 26px; border: 0; background: none; font-size: 17px; font-weight: 600; line-height: 1.8; }
@media (max-width: 1100px) {
    .ynm-row-grid, .ynm-row:nth-of-type(even) .ynm-row-grid { grid-template-columns: 1fr; gap: 36px; }
    .ynm-row:nth-of-type(even) .ynm-row-media { order: 0; }
    .ynm-row-media { width: min(100%, 420px); }
}
@media (prefers-reduced-motion: reduce) {
    .ynm-js .ynm-card .ynm-tile, .ynm-js .ynm-row-fig img { clip-path: none; }
    .ynm-js .ynm-card .ynm-tile { transition: none; }
    .ynm-js .ynm-card .ynm-tile img, .ynm-js .ynm-row-fig img { transform: none; transition: none; }
    .ynm-card:hover .ynm-tile { transform: none; }
    }

/* ==========================================
   원칙 상세 — 움직이는 효과
   ========================================== */
/* 큰 숫자 (스크롤에 따라 가로로 이동) */
.ynm-bignum { position: absolute; top: 40px; right: 4%; z-index: 0; font: 200 240px/1 'Manrope','Pretendard',sans-serif; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(184,152,116,.4); transform: translate3d(var(--bx,0px),0,0); pointer-events: none; user-select: none; }
.ynm-row:nth-of-type(even) .ynm-bignum { right: auto; left: 34%; }
.ynm-row-grid { position: relative; z-index: 1; }
/* 사진 뒤에서 떠다니는 골드 빛 + 돌아가는 점선 링 */
.ynm-orb { position: absolute; z-index: 0; left: -64px; bottom: -64px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(184,152,116,.7), rgba(184,152,116,.12) 70%); animation: ynmFloat 9s ease-in-out infinite alternate; }
.ynm-ring { position: absolute; z-index: 2; right: -44px; top: -44px; width: 150px; height: 150px; border: 1px dashed rgba(141,111,76,.7); border-radius: 50%; animation: ynmSpin 28s linear infinite; }
.ynm-ring:after { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--ynm-gold); }
.ynm-row:nth-of-type(even) .ynm-orb { left: auto; right: -64px; }
.ynm-row:nth-of-type(even) .ynm-ring { right: auto; left: -44px; }
@keyframes ynmFloat { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(22px,-26px,0) scale(1.08); } }
@keyframes ynmSpin { to { transform: rotate(360deg); } }
/* 글이 한 줄씩 차례로 올라옴 */
.ynm-js .ynm-row-body.ynm-reveal { opacity: 1; transform: none; }
.ynm-js .ynm-row-body > * { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ynm-ease), transform .9s var(--ynm-ease); }
.ynm-js .ynm-row-body.ynm-in > * { opacity: 1; transform: none; }
.ynm-row-body > :nth-child(1) { transition-delay: .05s; }
.ynm-row-body > :nth-child(2) { transition-delay: .2s; }
.ynm-row-body > :nth-child(3) { transition-delay: .35s; }
.ynm-row-body > :nth-child(4) { transition-delay: .5s; }
.ynm-row-body > :nth-child(5) { transition-delay: .65s; }
.ynm-row-body > :nth-child(6) { transition-delay: .8s; }
.ynm-row-body > :nth-child(7) { transition-delay: .95s; }
/* 핵심 문장: 골드 바탕이 왼쪽에서 채워짐 */
.ynm-row-body p.ynm-take { position: relative; isolation: isolate; overflow: hidden; }
.ynm-row-body p.ynm-take:before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(184,152,116,.16); }
.ynm-js .ynm-row-body p.ynm-take:before { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ynm-ease) .6s; }
.ynm-js .ynm-row-body.ynm-in p.ynm-take:before { transform: none; }
.ynm-row-body p.ynm-take:after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ynm-gold); }
@media (prefers-reduced-motion: reduce) {
    .ynm-orb, .ynm-ring { animation: none; }
    .ynm-js .ynm-row-body > * { opacity: 1; transform: none; transition: none; }
    .ynm-js .ynm-row-body p.ynm-take:before { transform: none; transition: none; }
    .ynm-bignum, .ynm-fig-par { transform: none; }
}

/* 좁은 화면에서 좌우 여백(padding)이 폭에 더해져 옆으로 밀리지 않게 */
@media (max-width: 1240px) {
    .ynm-wrap { box-sizing: border-box; }
}

/* 제목 줄바꿈이 한 글자만 남지 않게 */
.ynm-hero h1, .ynm-letter-copy h2, .ynm-section-top h2, .ynm-row-aside h3, .ynm-closing h2 { text-wrap: balance; }

/* ==========================================
   모바일 (화면 폭 768px 이하) — 모바일 사이트가 viewport width=640 이라 640px 기준 크기
   PC/모바일 파일이 이 CSS 하나를 함께 사용합니다.
   ========================================== */
@media (max-width: 768px) {
    .ynm-top-page { margin-bottom: 0; }
    .ynm-hero-bg img { object-position: 55% 0%; }
    .ynm-hero-bg:after { background: linear-gradient(180deg, rgba(40,32,25,.1) 0%, rgba(40,32,25,.22) 38%, rgba(52,42,33,.62) 78%, #4a3c30 100%); }
    .ynm-hero { align-items: flex-end; }
    .ynm-hero-quote br { display: none; }
    .ynm-letter { grid-template-columns: 1fr; }
    .ynm-page { font-size: 24px; }
    .ynm-wrap { padding: 0 32px; }
    .ynm-eyebrow { font-size: 19px; }

    /* 인트로 */
    .ynm-hero { display: block; min-height: 0; padding: 0 0 160px; background: #4a3c30; }
    .ynm-hero-bg { position: relative; left: auto; top: auto; transform: none; width: 100%; height: auto; }
    .ynm-hero-bg img { position: static; display: block; width: 100%; height: auto; transform: none; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
    .ynm-hero-text { position: absolute; left: 0; right: 0; bottom: 0; max-width: none; padding: 0 32px 76px; }
    .ynm-hero .ynm-eyebrow { gap: 18px; }
    .ynm-hero .ynm-eyebrow:before { width: 48px; }
    .ynm-hero h1 { margin: 34px 0 32px; font-size: 62px; line-height: 1.28; }
    .ynm-hero-sub { margin-bottom: 22px; font-size: 27px; }
    .ynm-hero-quote { margin-bottom: 52px; padding-top: 28px; max-width: none; font-size: 24px; line-height: 1.85; }
    .ynm-hero .ynm-btn { gap: 30px; padding: 10px 10px 10px 46px; font-size: 25px; }
    .ynm-hero .ynm-btn:after { width: 72px; height: 72px; font-size: 30px; }
    .ynm-hero .ynm-btn:hover { gap: 30px; }

    /* 인사말 */
    .ynm-letter { padding: 110px 0 100px; }
    .ynm-letter-copy { display: contents; }
    .ynm-letter .ynm-letter-copy > * { margin-left: 32px; margin-right: 32px; }
    .ynm-letter .ynm-letter-copy > p { order: 2; }
    .ynm-room { order: 1; min-height: 0; aspect-ratio: 1 / 1.02; margin: 0 32px 52px; border-radius: 28px; }
    .ynm-letter-copy h2 { margin: 28px 0 40px; font-size: 46px; }
    .ynm-letter-copy p { margin-bottom: 24px; font-size: 25px; line-height: 1.95; }
    .ynm-letter-copy strong { margin-top: 36px; padding-top: 34px; }
    .ynm-room .vase { width: 120px; height: 230px; }
    .ynm-room .bowl { width: 140px; height: 42px; }

    /* 네 가지 원칙 카드 */
    .ynm-cards-area { padding: 130px 32px 110px; }
    .ynm-section-top { margin-bottom: 64px; }
    .ynm-section-top h2 { margin: 24px 0 18px; font-size: 48px; }
    .ynm-section-top p { font-size: 24px; }
    .ynm-cards { gap: 52px 24px; }
    .ynm-tile { padding: 26px 26px 24px; }
    .ynm-tile i { font-size: 98px; }
    .ynm-tile small { font-size: 16px; }
    .ynm-card-title { margin: 26px 0 10px; font-size: 25px; }
    .ynm-card-go { font-size: 21px; }

    /* 원칙 상세 */
    .ynm-row { padding: 200px 0 112px; }
    .ynm-row-grid { gap: 52px; }
    .ynm-row-media { width: 82%; margin-left: auto; }
    .ynm-row:nth-of-type(even) .ynm-row-media { margin-left: 0; margin-right: auto; }
    .ynm-row-fig { aspect-ratio: 5 / 4.2; border-radius: 26px; }
    .ynm-no { font-size: 22px; }
    .ynm-no:after { width: 64px; }
    .ynm-en { margin: 34px 0 16px; font-size: 18px; }
    .ynm-row-aside h3 { font-size: 44px; }
    .ynm-row-aside { margin-bottom: 36px; }
    .ynm-row-body p { margin-bottom: 22px; font-size: 25px; line-height: 1.95; }
    .ynm-row-body p.ynm-desc { margin-bottom: 30px; font-size: 31px; }
    .ynm-row-body p.ynm-take { margin: 38px 0 48px; padding: 30px 34px; font-size: 26px; }
    .ynm-bignum { z-index: 2; top: 44px; left: 32px; right: auto; font-size: 150px; -webkit-text-stroke: 1.5px rgba(184,152,116,.75); transform: translate3d(calc(var(--bx, 0px) * .2), 0, 0); }
    .ynm-row:nth-of-type(even) .ynm-bignum { left: auto; right: 32px; }
    .ynm-orb { width: 240px; height: 240px; left: -40px; bottom: -40px; }
    .ynm-ring { width: 150px; height: 150px; right: -20px; top: -36px; }
    .ynm-row:nth-of-type(even) .ynm-orb { right: -40px; }
    .ynm-row:nth-of-type(even) .ynm-ring { left: -20px; }

    /* 맺음말 */
    .ynm-closing { padding: 140px 32px 130px; }
    .ynm-closing h2 { margin: 32px auto 44px; font-size: 48px; }
    .ynm-closing-body { font-size: 25px; line-height: 2; }
    .ynm-closing-body p { margin-bottom: 22px; }
    .ynm-sign { margin-top: 76px; }
    .ynm-sign:before { height: 64px; margin-bottom: 24px; }
    .ynm-sign .role { font-size: 22px; }
    .ynm-sign .name { font-size: 36px; }

    /* 상단 메뉴(#sub_portal 드롭다운): 스크롤해도 화면 맨 위에 고정 (JS 가 .ynm-stuck 을 붙임) */
    #sub_portal.ynm-stuck > p { position: fixed; top: 0; left: 0; right: 0; z-index: 900; margin: 0; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.14); }
}
