/* 보디야나선원 첫 화면 시안 v2 — 하얀 바탕, 차분한 금빛 포인트 하나, 명조 제목 */
:root {
  --ink: #222;
  --ink-2: #555;
  --ink-3: #7d7d7d;
  --line: #e4e2de;
  --bg: #fff;
  --gray: #f6f5f3;
  --gold: #9a7b4f;
  --gold-2: #b89a6a;
  --seal: #c8161d;
  --dark: #1c1b19;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --wrap: 1180px;
  --side: 300px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.v2 { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.7; letter-spacing: -.01em; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.naver-n { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 4px; background: #03c75a; color: #fff; font: 700 11px/1 var(--sans); }
.v2-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }

/* ── 머리글 ── */
.v2-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.v2-header-top { position: relative; display: flex; align-items: center; justify-content: center; max-width: 1320px; height: 92px; margin: 0 auto; padding: 0 40px; transition: height .3s var(--ease); }
.v2-mark { position: absolute; left: 40px; width: 30px; }
.v2-brand { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.v2-brand img { width: 128px; }
.v2-brand span { font: 500 10.5px/1 var(--serif); letter-spacing: .32em; text-transform: uppercase; color: var(--ink); padding-left: .32em; }
.v2-util { position: absolute; right: 40px; display: flex; align-items: center; gap: 22px; font-size: 13px; color: var(--ink-2); }
.v2-cafe { display: inline-flex; align-items: center; font-weight: 500; color: var(--ink); }
.v2-tel { letter-spacing: .02em; }
.v2-nav { display: flex; justify-content: center; gap: 44px; height: 50px; align-items: center; font-size: 15px; font-weight: 400; }
.v2-nav > a { position: relative; color: var(--ink-2); transition: color .2s; }
.v2-nav > a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -15px; height: 1px; background: var(--ink); transition: left .3s var(--ease), right .3s var(--ease); }
.v2-nav > a:hover { color: var(--ink); }
.v2-nav > a:hover::after { left: 0; right: 0; }
.v2-nav-extra { display: none; }
.v2-menu { display: none; }
.v2-header.is-scrolled .v2-header-top { height: 64px; }
.v2-header.is-scrolled .v2-brand span { display: none; }
.v2-header.is-scrolled .v2-brand img { width: 112px; }

/* ── 첫 화면 영상형 슬라이드 ── */
.v2-hero { position: relative; height: min(76vh, 760px); min-height: 460px; overflow: hidden; background: #ddd; }
.v2-slides, .v2-slide { position: absolute; inset: 0; margin: 0; }
.v2-slide { opacity: 0; transition: opacity 1.6s ease; }
.v2-slide.is-active { opacity: 1; z-index: 1; }
.v2-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.0); transform-origin: 60% 50%; }
.v2-slide.is-active img { animation: v2-drift 9s linear forwards; }
.v2-slide:nth-child(even).is-active img { transform-origin: 35% 55%; }
@keyframes v2-drift { from { transform: scale(1.0); } to { transform: scale(1.08); } }
.v2-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.32) 100%); }
.v2-slide figcaption { position: absolute; z-index: 2; left: max(40px, calc((100vw - var(--wrap)) / 2 + 40px)); bottom: 104px; color: #fff; font: 400 clamp(32px, 3.6vw, 50px)/1.35 var(--serif); letter-spacing: -.01em; opacity: 0; transform: translateY(14px); transition: opacity 1s ease .6s, transform 1.2s var(--ease) .6s; text-shadow: 0 1px 12px rgba(0,0,0,.18); }
.v2-slide figcaption span { display: block; margin-bottom: 14px; font: 500 13px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.v2-slide.is-active figcaption { opacity: 1; transform: none; }
.v2-hero-ctrl { position: absolute; z-index: 3; left: max(40px, calc((100vw - var(--wrap)) / 2 + 40px)); right: max(40px, calc((100vw - var(--wrap)) / 2 + 40px)); bottom: 44px; display: flex; align-items: center; gap: 18px; color: #fff; }
.v2-progress { flex: 1; height: 1px; background: rgba(255,255,255,.4); }
.v2-progress i { display: block; height: 100%; width: 0; background: #fff; }
.v2-progress i.run { animation: v2-run var(--dur, 6s) linear forwards; }
@keyframes v2-run { to { width: 100%; } }
.v2-count { margin: 0; font-size: 12px; letter-spacing: .12em; opacity: .9; }
.v2-count b { font-weight: 500; }
.v2-prev, .v2-next { width: 24px; height: 24px; position: relative; }
.v2-prev::before, .v2-next::before { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-left: 1.2px solid currentColor; border-bottom: 1.2px solid currentColor; transform: rotate(45deg); }
.v2-next::before { transform: rotate(-135deg); }

/* ── 공통 구획 ── */
.v2-sec { padding: 120px 0; }
.v2-gray { background: var(--gray); }
.v2-cols { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: 40px; align-items: start; }
.v2-side { position: sticky; top: 170px; }
.v2-title { margin: 0 0 14px; font: 400 34px/1.3 var(--serif); letter-spacing: .02em; }
.v2-sub { margin: 0 0 48px; font-size: 14px; color: var(--ink-2); }
.v2-eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 500; letter-spacing: .24em; color: var(--gold); }
.v2-filter, .v2-linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.v2-filter button, .v2-linklist a { display: inline-block; padding: 4px 0; font-size: 14px; color: var(--ink-3); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.v2-filter button:hover, .v2-linklist a:hover { color: var(--ink); }
.v2-filter button.is-on { color: var(--ink); font-weight: 500; border-color: var(--ink); margin-bottom: 8px; }

/* ── 카드 ── */
.v2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 24px; }
.v2-card { display: block; min-width: 0; }
.v2-cols > * { min-width: 0; }
.v2-card[hidden] { display: none; }
.v2-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.v2-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.v2-card:hover .v2-img img, .v2-ev .v2-img:hover img { transform: scale(1.05); }
.v2-card h3 { margin: 22px 0 10px; padding: 0 4px; font: 400 21px/1.35 var(--serif); letter-spacing: -.01em; }
.v2-card p { margin: 0; padding: 0 4px; font-size: 13.5px; line-height: 1.65; color: var(--ink-3); }
.v2-card .v2-meta { margin-top: 14px; font-size: 13px; color: var(--ink); }
.v2-meta b { font-weight: 500; }
.v2-meta em { font-style: normal; font-weight: 500; color: var(--gold); margin-left: 10px; }
.v2-tag { position: absolute; left: 0; top: 0; padding: 7px 12px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; }
.v2-tag.soft { background: var(--gold); }
.v2-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px !important; }
.v2-links a { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink); transition: border-color .2s, background .2s, color .2s; }
.v2-links a:hover { border-color: var(--ink); }
.v2-links a.go { background: var(--ink); border-color: var(--ink); color: #fff; }
.v2-links a.go:hover { background: var(--gold); border-color: var(--gold); }
.v2-grid.is-filtered .v2-card { animation: v2-fade .5s ease; }
@keyframes v2-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── 행사: 오른쪽으로 흐르는 가로 목록 ── */
.v2-rail { min-width: 0; margin-right: calc(-1 * max(40px, (100vw - var(--wrap)) / 2 + 40px)); }
.v2-track { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-right: 40px; scrollbar-width: none; }
.v2-track::-webkit-scrollbar { display: none; }
.v2-track > * { scroll-snap-align: start; }
.v2-rail-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 56px; padding-right: max(40px, calc((100vw - var(--wrap)) / 2 + 40px)); color: var(--ink); }
.v2-bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.v2-bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 30%; background: var(--ink); transition: left .3s var(--ease), width .3s var(--ease); }

/* ── 선원장 인사 ── */
.v2-greet { display: grid; grid-template-columns: 5fr 6fr; gap: 90px; align-items: center; }
.v2-greet-img { margin: 0; aspect-ratio: 4 / 4.7; overflow: hidden; }
.v2-greet-img img { width: 100%; height: 100%; object-fit: cover; }
.v2-greet blockquote { margin: 0 0 28px; font: 400 26px/1.65 var(--serif); letter-spacing: -.01em; }
.v2-greet-text > p { color: var(--ink-2); }
.v2-sign { margin-top: 26px; font-family: var(--serif); color: var(--ink) !important; }
.v2-more { display: inline-block; margin-top: 28px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 400; }
.v2-more::after { content: " →"; }

/* ── 법문 ── */
.v2-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.v2-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.v2-cap { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }
.v2-cap a { color: var(--ink); border-bottom: 1px solid var(--line); }

/* ── 오시는 길 ── */
.v2-visit { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.v2-visit .v2-img { aspect-ratio: 900 / 680; }
.v2-visit dl { margin: 0; display: grid; grid-template-columns: 76px 1fr; gap: 14px 10px; font-size: 14px; }
.v2-visit dt { color: var(--ink-3); }
.v2-visit dd { margin: 0; color: var(--ink); }
.v2-visit .v2-links { grid-column: 2; margin-top: 0 !important; }

/* ── 바닥글 ── */
.v2-footer { background: var(--dark); color: rgba(255,255,255,.62); padding: 72px 0 40px; font-size: 13px; }
.v2-foot-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.12); }
.v2-foot-top img { width: 150px; }
.v2-foot-top nav { display: flex; flex-wrap: wrap; gap: 28px; color: rgba(255,255,255,.85); font-size: 14px; }
.v2-foot-info { padding: 30px 0; }
.v2-foot-info p { margin: 0 0 6px; }
.v2-social { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px !important; color: rgba(255,255,255,.85); }
.v2-foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: rgba(255,255,255,.4); }

/* ── 태블릿 ── */
@media (max-width: 1100px) {
  :root { --side: 220px; }
  .v2-grid { grid-template-columns: repeat(2, 1fr); }
  .v2-nav { gap: 30px; }
  .v2-greet { gap: 50px; }
  .v2-visit { grid-template-columns: 1fr; }
  .v2-visit .v2-links { grid-column: auto; }
}

/* ── 휴대폰 ── */
@media (max-width: 760px) {
  body.v2 { font-size: 14.5px; }
  .v2-wrap { padding: 0 20px; }
  /* 휴대폰 머리글도 PC처럼: 가운데 로고와 영문, 아래 메뉴 두 줄 */
  .v2-header-top { height: 90px; padding: 8px 16px 0; }
  .v2-header.is-scrolled .v2-header-top { height: 58px; padding-top: 0; }
  .v2-mark { left: 16px; width: 26px; }
  .v2-brand { gap: 6px; }
  .v2-brand img { width: 126px; }
  .v2-header.is-scrolled .v2-brand img { width: 100px; }
  .v2-brand span { display: block; font-size: 10px; letter-spacing: .3em; padding-left: .3em; }
  .v2-header.is-scrolled .v2-brand span { display: none; }
  .v2-util { right: 16px; gap: 0; }
  .v2-tel { display: none; }
  .v2-cafe { font-size: 0; }
  .v2-cafe .naver-n { width: 24px; height: 24px; margin: 0; font-size: 13px; border-radius: 5px; }
  .v2-menu { display: none; }
  .v2-nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; column-gap: 34px; row-gap: 0; height: auto; padding: 0 16px 12px; font-size: 14.5px; }
  .v2-nav > a { padding: 1px 0; line-height: 1.75; text-align: center; color: var(--ink); }
  .v2-nav > a::after { bottom: 0; }
  .v2-nav-extra { display: none; }

  .v2-hero { height: calc(100svh - 150px); max-height: 680px; min-height: 440px; }
  .v2-slide figcaption { left: 24px; right: 24px; bottom: 84px; font-size: 27px; }
  .v2-hero-ctrl { left: 24px; right: 24px; bottom: 36px; gap: 12px; }

  .v2-sec { padding: 72px 0; }
  .v2-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .v2-side { position: static; }
  .v2-title { font-size: 27px; margin-bottom: 8px; }
  .v2-sub { margin-bottom: 22px; font-size: 13.5px; }
  .v2-filter { display: flex; gap: 6px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .v2-filter::-webkit-scrollbar { display: none; }
  .v2-filter button { white-space: nowrap; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); }
  .v2-filter button.is-on { margin: 0; background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 400; }
  .v2-linklist { display: flex; flex-wrap: wrap; gap: 6px 16px; }

  .v2-grid { grid-template-columns: 1fr 1fr; gap: 36px 12px; }
  .v2-card h3 { margin: 14px 0 6px; padding: 0; font-size: 17px; }
  .v2-card p { padding: 0; font-size: 12.5px; }
  .v2-card p br { display: none; }
  .v2-card .v2-meta { margin-top: 8px; font-size: 12px; }
  .v2-meta em { display: block; margin: 2px 0 0; }

  .v2-rail { margin-right: -20px; }
  .v2-track { grid-auto-columns: 78%; gap: 14px; padding-right: 20px; }
  .v2-ev p br { display: inline; }
  .v2-rail-ctrl { margin-top: 32px; padding-right: 20px; }

  .v2-greet { grid-template-columns: 1fr; gap: 32px; }
  .v2-greet-img { aspect-ratio: 4 / 3.6; }
  .v2-greet blockquote { font-size: 21px; }
  .v2-visit dl { grid-template-columns: 64px 1fr; font-size: 13.5px; }
  .v2-foot-top { flex-direction: column; align-items: flex-start; }
  .v2-foot-top nav { gap: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-slide, .v2-slide figcaption, .v2-img img { transition: none !important; }
  .v2-slide.is-active img { animation: none; }
}

/* ── 연락 · 네이버 카페 (오시는 길 아래) ── */
.v2-contact { padding: 0 0 120px; }
.v2-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.v2-contact-item { display: flex; flex-direction: column; gap: 10px; padding: 40px 44px; background: var(--gray); transition: background .3s; }
.v2-contact-item:hover { background: #efede9; }
.v2-contact-label { display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--gold); }
.v2-contact-item strong { font: 400 30px/1.3 var(--serif); color: var(--ink); letter-spacing: .01em; }
.v2-contact-sub { font-size: 13.5px; color: var(--ink-3); }
.v2-contact-go { align-self: flex-start; margin-top: 14px; padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-size: 14px; color: var(--ink); }
.v2-contact-go::after { content: " →"; }
@media (max-width: 760px) {
  .v2-contact { padding: 0 0 72px; }
  .v2-contact-grid { grid-template-columns: 1fr; gap: 12px; }
  .v2-contact-item { padding: 28px 24px; }
  .v2-contact-item strong { font-size: 24px; }
}

/* 지금 보고 있는 쪽의 메뉴 표시 */
.v2-nav > a.is-current { color: var(--ink); font-weight: 500; }
.v2-nav > a.is-current::after { left: 0; right: 0; }

/* ── 행사 홍보 슬라이드 (첫 화면 맨 앞) ── */
.v2-slide.is-event::after { background: linear-gradient(90deg, rgba(20,18,15,.62) 0%, rgba(20,18,15,.38) 45%, rgba(20,18,15,0) 75%), linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.3) 100%); }
.v2-slide figcaption.v2-event { display: flex; flex-direction: column; align-items: flex-start; gap: 0; bottom: 110px; max-width: 640px; font-size: 16px; }
.v2-slide .v2-event .v2-event-tag { display: inline-block !important; margin: 0 0 22px !important; padding: 7px 14px; background: var(--gold); color: #fff; font: 500 13px/1 var(--sans) !important; letter-spacing: .12em !important; text-transform: none !important; opacity: 1 !important; }
.v2-slide .v2-event .v2-event-en { margin: 0 0 12px !important; font: 500 13px/1.2 var(--sans) !important; letter-spacing: .28em !important; text-transform: uppercase; opacity: .85; }
.v2-slide .v2-event .v2-event-title { display: block; font: 400 clamp(36px, 4.2vw, 58px)/1.25 var(--serif); letter-spacing: -.01em; }
.v2-slide .v2-event .v2-event-date { display: block; margin-top: 18px; font: 400 clamp(19px, 1.7vw, 24px)/1.4 var(--serif); letter-spacing: .02em; }
.v2-slide .v2-event .v2-event-info { display: block; margin-top: 10px; font: 400 15px/1.6 var(--sans); opacity: .9; }
.v2-slide .v2-event .v2-event-btns { display: flex !important; gap: 10px; margin-top: 28px; }
.v2-slide .v2-event .v2-event-btns a { display: inline-flex; align-items: center; height: 46px; padding: 0 24px; border: 1px solid rgba(255,255,255,.7); color: #fff; font: 400 14.5px/1 var(--sans); letter-spacing: .02em; text-shadow: none; transition: background .25s, border-color .25s, color .25s; }
.v2-slide .v2-event .v2-event-btns a:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }
.v2-slide .v2-event .v2-event-btns a.go { background: #fff; border-color: #fff; color: var(--ink); }
.v2-slide .v2-event .v2-event-btns a.go:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
@media (max-width: 760px) {
  .v2-slide.is-event::after { background: linear-gradient(180deg, rgba(20,18,15,.05) 25%, rgba(20,18,15,.55) 62%, rgba(20,18,15,.78) 100%); }
  .v2-slide figcaption.v2-event { bottom: 86px; font-size: 14px; }
  .v2-slide .v2-event .v2-event-tag { margin-bottom: 16px !important; font-size: 12px !important; padding: 6px 12px; }
  .v2-slide .v2-event .v2-event-en { font-size: 11px !important; letter-spacing: .22em !important; }
  .v2-slide .v2-event .v2-event-title { font-size: 31px; }
  .v2-slide .v2-event .v2-event-date { margin-top: 12px; font-size: 17px; }
  .v2-slide .v2-event .v2-event-info { font-size: 13.5px; }
  .v2-slide .v2-event .v2-event-btns { margin-top: 20px; }
  .v2-slide .v2-event .v2-event-btns a { height: 42px; padding: 0 18px; font-size: 14px; }
}
.v2-slide .v2-event .v2-event-date, .v2-slide .v2-event .v2-event-info, .v2-slide .v2-event .v2-event-btns { letter-spacing: 0; text-transform: none; opacity: 1; margin-bottom: 0; }
.v2-slide .v2-event .v2-event-info { opacity: .92; }
.v2-slide .v2-event .v2-event-date { letter-spacing: .02em; }

/* ── 휴원 안내 띠 (머리글 바로 아래, 모든 쪽) ── */
.v2-notice { background: var(--dark); color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.6; }
.v2-notice .v2-wrap { display: flex; align-items: center; gap: 16px; padding-top: 13px; padding-bottom: 13px; }
.v2-notice-tag { flex: 0 0 auto; padding: 4px 10px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.v2-notice p { flex: 1 1 auto; margin: 0; }
.v2-notice b { color: #fff; font-weight: 500; }
.v2-notice-sub { color: rgba(255,255,255,.7); }
.v2-notice-more { flex: 0 0 auto; padding-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.5); color: #fff; font-size: 13px; white-space: nowrap; }
.v2-notice-more::after { content: " →"; }
.v2-notice-more:hover { color: var(--gold-2); border-color: var(--gold-2); }
@media (max-width: 760px) {
  .v2-notice { font-size: 13px; }
  .v2-notice .v2-wrap { flex-wrap: wrap; gap: 8px 10px; padding-top: 12px; padding-bottom: 12px; }
  .v2-notice p { flex-basis: 100%; order: 2; }
  .v2-notice-sub { display: block; margin-top: 2px; }
  .v2-notice-more { order: 1; margin-left: auto; font-size: 12.5px; }
}
