/* 도안사랑교회 홈페이지
   색: 보혈의 붉은색(blood)을 중심으로 흰 바탕, 포도주빛(wine) 하단.
   글꼴: 제목과 성경 구절은 고운 바탕(류양희, OFL), 본문과 메뉴는 Pretendard(OFL). 둘 다 jsDelivr에서 불러온다. */

:root {
  --blood: #9e0b22;
  --blood-deep: #7d0719;
  --scarlet: #d0122e;
  --wine: #2a0a10;
  --blush: #fbf0f1;
  --rose-line: #ecd3d7;
  --ink: #2b2526;
  --stone: #6a6164;
  --line: #e9e2e3;
  --serif: "Gowun Batang", "Noto Serif KR", "AppleMyungjo", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --wrap: 1160px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3, p { margin: 0; }
cite { font-style: normal; }
:focus-visible { outline: 2px solid var(--scarlet); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 버튼 · 링크 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-light { background: #fff; color: var(--blood); }
.btn-light:hover { background: var(--blush); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-red { background: var(--blood); color: #fff; }
.btn-red:hover { background: var(--blood-deep); }
.btn-line { border-color: var(--rose-line); color: var(--blood); background: #fff; }
.btn-line:hover { border-color: var(--blood); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.text-link {
  display: inline-block;
  font-weight: 600;
  color: var(--blood);
  border-bottom: 1px solid var(--rose-line);
  padding-bottom: 2px;
  transition: border-color .15s;
}
.text-link:hover { border-color: var(--blood); }

/* ---------- 머리글 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; height: var(--header-h); }
.logo { line-height: 0; margin-right: auto; }
.logo img { width: 166px; }

.main-menu > ul { display: flex; gap: 6px; }
.main-menu > ul > li { position: relative; }
.main-menu .top {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 18px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.main-menu .top::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 3px;
  background: var(--blood);
  transform: scaleX(0);
  transition: transform .2s;
}
.main-menu li:hover > .top,
.main-menu li.active > .top { color: var(--blood); }
.main-menu li:hover > .top::after,
.main-menu li.active > .top::after { transform: scaleX(1); }

.main-menu .dropdown {
  position: absolute;
  left: 6px;
  top: calc(var(--header-h) + 1px);
  min-width: 170px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: 0 12px 24px -12px rgba(42, 10, 16, .25);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s, visibility .15s;
}
.main-menu li:hover > .dropdown,
.main-menu li:focus-within > .dropdown { opacity: 1; visibility: visible; }
.main-menu .dropdown a { display: block; padding: 10px 20px; font-size: 15px; color: var(--stone); white-space: nowrap; }
.main-menu .dropdown a:hover { color: var(--blood); background: var(--blush); }

.m-menu-btn, .m-menu, .m-dim { display: none; }

/* ---------- 대문: 첫 화면 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--blood);
  color: #fff;
  isolation: isolate;
}
.hero-inner { position: relative; padding-top: clamp(64px, 11vw, 132px); padding-bottom: clamp(64px, 10vw, 120px); }
.hero-church { font-size: 15px; font-weight: 500; opacity: .85; margin-bottom: 22px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 66px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  max-width: 13.5em;
  text-wrap: balance;
}
.hero-title span { display: inline-block; }
.hero-verse {
  margin-top: 30px;
  max-width: 34em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.9;
  opacity: .9;
}
.hero-verse cite { display: block; margin-top: 6px; font-family: var(--sans); font-size: 14px; opacity: .8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-mark {
  position: absolute;
  z-index: -1;
  right: max(-80px, calc(50% - 760px));
  bottom: -18%;
  width: clamp(360px, 52vw, 720px);
  opacity: .1;
  transform: rotate(-12deg);
  pointer-events: none;
}

/* 첫 화면에서 한 번만 차례로 나타나는 움직임 */
@media (prefers-reduced-motion: no-preference) {
  .hero-church, .hero-title span, .hero-verse, .hero-actions { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-title span:nth-child(1) { animation-delay: .08s; }
  .hero-title span:nth-child(2) { animation-delay: .22s; }
  .hero-verse { animation-delay: .4s; }
  .hero-actions { animation-delay: .55s; }
  .hero-mark { animation: mark 1.6s ease-out both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes mark { from { opacity: 0; transform: rotate(-4deg) scale(.96); } to { opacity: .1; transform: rotate(-12deg); } }

/* ---------- 대문: 공통 구역 ---------- */
.is-home main > section:not(.hero) { padding: clamp(56px, 8vw, 96px) 0; }
.sec-head { margin-bottom: 36px; }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.sec-h {
  text-wrap: balance;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sec-sub { margin-top: 10px; color: var(--stone); }
.sec-links { display: flex; gap: 20px; }

/* 예배 안내: PC에서는 다섯 칸 한 줄, 휴대폰에서는 줄 목록 */
.w-list { display: grid; grid-template-columns: repeat(5, 1fr); column-gap: 28px; }
.w-list li { display: flex; flex-direction: column; padding: 22px 0 6px; border-top: 2px solid var(--blood); }
.w-name { font-size: 16px; font-weight: 600; }
.w-time {
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1;
  color: var(--blood);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.w-note { margin-top: 8px; font-size: 14px; color: var(--stone); }

/* 대문 행사 알림 (content.json의 events) */
.is-home main > section.event { padding: clamp(40px, 6vw, 72px) 0; background: var(--blush); border-bottom: 1px solid var(--rose-line); }
.event-inner { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.event-poster { display: block; border-radius: 4px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(74, 6, 18, .55); }
.event-poster img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.event-poster:hover img { transform: scale(1.02); }
.event-tags { display: flex; gap: 8px; align-items: center; }
.event-label, .event-dday { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.2; }
.event-label { background: var(--blood); color: #fff; }
.event-dday { background: #fff; color: var(--blood); border: 1px solid var(--rose-line); font-variant-numeric: tabular-nums; }
.event-title { margin-top: 18px; font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 5vw, 56px); line-height: 1.15; color: var(--ink); text-wrap: balance; }
.event-lead { margin-top: 14px; max-width: 30em; color: #4a4244; font-size: 17px; text-wrap: pretty; }
.event-info { margin: 26px 0 30px; border-top: 2px solid var(--blood); }
.event-info div { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rose-line); }
.event-info dt { flex: none; width: 5.5em; color: var(--blood); font-weight: 600; }
.event-info dd { margin: 0; min-width: 0; }
@media (max-width: 768px) {
  .event-inner { grid-template-columns: 1fr; }
  .event-poster { max-width: 420px; }
  .event-info dt { width: 4.8em; }
}
@media (prefers-reduced-motion: reduce) { .event-poster img { transition: none; } }

/* 사랑이야기 글 안의 큰 사진 */
.photos-wide { display: block; margin-bottom: 26px; }
.photos-wide .photo { display: block; max-width: 640px; }
.photos-wide img { width: 100%; height: auto; display: block; border-radius: 4px; }

/* 환영 인사 */
.welcome { background: var(--blush); }
.welcome-inner { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.welcome-photo img { display: block; width: 100%; border-radius: 4px 4px 140px 4px; }
.welcome-text p { margin-top: 18px; max-width: 36em; color: #4a4244; }
.welcome-text .sec-h { max-width: 18em; }
.welcome-sign { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 600; color: var(--ink) !important; }
.welcome-sign img { width: 110px; }
.welcome-text .text-link { margin-top: 18px; }

/* 말씀과 영상 */
.v-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.v-item figcaption { margin-top: 12px; font-weight: 600; }
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--wine); border-radius: 4px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 선교 */
.mission { background: var(--wine); color: #fff; }
.mission-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.mission .mission-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.mission .sec-h { color: #fff; }
.mission-verse { margin-top: 12px; font-family: var(--serif); font-size: 17px; opacity: .85; }
.mission-verse cite { margin-left: 8px; font-family: var(--sans); font-size: 13px; opacity: .8; }
.m-groups { margin: 28px 0 30px; }
.m-groups div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.m-groups dt { font-weight: 700; color: #ffb3bf; }
.mission .text-link { color: #fff; border-color: rgba(255, 255, 255, .4); }
.mission .text-link:hover { border-color: #fff; }

/* 앨범 카드 */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
.card a { display: block; }
.card .thumb { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; background: var(--blush); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-title { display: block; margin-top: 14px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.card-date { display: block; margin-top: 4px; font-size: 13px; color: var(--stone); }
.card a:hover .card-title { color: var(--blood); }

/* 오시는 길 */
.visit { border-top: 1px solid var(--line); }
.visit-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.visit-addr { margin-top: 20px; font-size: 19px; font-weight: 600; }
.visit-tel { margin-top: 8px; color: var(--stone); }
.visit-tel a { color: var(--blood); font-weight: 600; }
.visit-near { margin: 8px 0 26px; color: var(--stone); }
.visit-map { display: block; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.visit-map img { display: block; width: 100%; }

/* ---------- 소개 페이지 제목 띠 ---------- */
.page-band { position: relative; overflow: hidden; background: var(--blood); color: #fff; isolation: isolate; }
.page-band .wrap { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(36px, 5vw, 60px); }
.page-section { font-size: 14px; font-weight: 500; opacity: .8; margin-bottom: 8px; }
.page-title { text-wrap: balance; font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.3; letter-spacing: -0.01em; }
.page-lead { margin-top: 10px; font-size: 15px; opacity: .85; line-height: 1.6; }
.band-mark {
  position: absolute;
  z-index: -1;
  right: max(-40px, calc(50% - 640px));
  top: -60%;
  width: clamp(240px, 30vw, 380px);
  opacity: .1;
  transform: rotate(-12deg);
  pointer-events: none;
}
.subnav { border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 4px; max-width: var(--wrap); margin: 0 auto; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; padding: 16px 12px; font-size: 15px; font-weight: 500; color: var(--stone); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--blood); }
.subnav a[aria-current="page"] { color: var(--blood); border-bottom-color: var(--blood); font-weight: 700; }

/* ---------- 소개 페이지 본문 ---------- */
.sub-page { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 88px); }
.sub-body { max-width: 780px; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.85; }
.sub-body em { font-style: normal; color: var(--scarlet); font-weight: 600; }
.sub-body p + p { margin-top: 1.3em; }

.sec-title { display: flex; align-items: center; gap: 14px; margin: 52px 0 22px; font-size: 17px; font-weight: 700; color: var(--blood); }
.sec-title:first-child { margin-top: 0; }
.sec-title::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--rose-line); }

/* 인사말 */
.greeting-text p:first-child { font-family: var(--serif); font-weight: 700; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.6; color: var(--ink); }
.greeting-bottom { display: flex; gap: 36px; align-items: flex-start; margin-top: 1.3em; }
.greeting-close { flex: 1 1 auto; }
.greeting-photos { flex: 0 0 240px; display: flex; flex-direction: column; gap: 10px; }
.greeting-photos img { display: block; width: 100%; border-radius: 4px; }
.sign { display: flex; align-items: center; gap: 18px; margin-top: 1.8em !important; font-size: 15px; font-weight: 700; }
.sign img { width: 114px; }
.bio { margin-top: 1.6em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.bio li { position: relative; padding-left: 16px; margin-top: .35em; font-size: 16px; color: #4a4244; }
.bio li::before { content: ""; position: absolute; left: 0; top: .75em; width: 5px; height: 5px; border-radius: 50%; background: var(--blood); }

/* 비전 */
.big-lines { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 38px); font-weight: 700; line-height: 1.55; color: var(--ink); }
.big-lines em { color: var(--blood); font-weight: 700; }

/* 예배시간 */
.time-table { width: 100%; max-width: 640px; border-collapse: collapse; }
.time-table th, .time-table td { padding: 16px 0; vertical-align: baseline; border-bottom: 1px solid var(--line); font-size: clamp(17px, 2vw, 20px); font-weight: 500; text-align: left; }
.time-table tr:first-child th, .time-table tr:first-child td { border-top: 2px solid var(--blood); }
.time-table th small { font-size: 14px; color: var(--stone); margin-left: 6px; font-weight: 400; }
.time-table .when { text-align: right; padding-right: 28px; color: var(--stone); }
.time-table .time { width: 1%; white-space: nowrap; font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); color: var(--blood); font-variant-numeric: tabular-nums; }

/* 오시는 길 */
.map { display: block; max-width: 780px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.map img { display: block; width: 100%; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.map-links .btn { border-color: var(--rose-line); color: var(--blood); background: #fff; min-height: 44px; }
.map-links .btn:hover { border-color: var(--blood); }
.contact li { display: flex; gap: 18px; padding: 8px 0; }
.contact .label { flex: 0 0 auto; min-width: 40px; font-weight: 700; color: var(--blood); }
.contact a { color: var(--blood); font-weight: 600; }

/* 사랑의선교 */
.sub-missionization .mission-photo { margin-bottom: 36px; max-width: 780px; }
.sub-missionization .mission-photo img { display: block; width: 100%; border-radius: 4px; }
.mission-list dt { margin-top: 1.8em; padding-top: 1.1em; border-top: 2px solid var(--blood); font-family: var(--serif); font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; }
.mission-list dt:first-child { margin-top: 0; }
.mission-list dd { margin-top: .4em; font-size: clamp(16px, 1.8vw, 19px); }
.sub-missionization .more { margin-top: 40px; }
.sub-missionization .more .btn { border-color: var(--rose-line); color: var(--blood); }
.sub-missionization .more .btn:hover { border-color: var(--blood); }

/* ---------- 앨범 ---------- */
.board { padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(56px, 7vw, 88px); }
.post { padding-top: clamp(32px, 4vw, 48px); padding-bottom: 40px; }
.post-head { max-width: 820px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.post-head h2 { font-family: var(--serif); font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.4; }
.post-meta { display: flex; gap: 16px; margin-top: 10px; font-size: 14px; color: var(--stone); }
.post-body { max-width: 820px; padding: 28px 0 12px; font-size: 16px; line-height: 1.85; }
.post-body p { margin-bottom: .9em; }
.post-body .video { margin: 22px 0; }
.photos { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.photos .photo { display: block; cursor: zoom-in; }
.photos img { display: block; width: 100%; border-radius: 4px; }
.post-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  max-width: 820px;
  margin-top: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.post-nav small { display: block; font-size: 12px; color: var(--stone); }
.post-nav span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-nav .next { text-align: right; }
.post-nav a:hover span { color: var(--blood); }
.post-nav .list { padding: 9px 20px; border: 1px solid var(--rose-line); border-radius: 999px; color: var(--blood); font-weight: 600; }

/* 사진 크게 보기 */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 4, 8, .94); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 2px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; padding: 16px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 6px; right: 10px; }
.lightbox .lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; top: 20px; left: 22px; color: #d9c3c7; font-size: 13px; }

/* 사랑이야기 */
.story-list { max-width: 820px; border-top: 2px solid var(--blood); }
.story-list li { border-bottom: 1px solid var(--line); }
.story-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 4px; }
.story-list a:hover .s-title { color: var(--blood); }
.s-title { font-weight: 600; }
.s-date { color: var(--stone); font-size: 14px; white-space: nowrap; }

.notfound { padding: 96px 24px; text-align: center; }
.notfound .page-title { color: var(--ink); }
.notfound p { margin-top: 14px; color: var(--stone); }
.notfound p + p { margin-top: 28px; }

/* ---------- 하단 ---------- */
.site-footer { background: var(--wine); color: rgba(255, 255, 255, .82); font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 32px; padding-top: 52px; padding-bottom: 36px; }
.footer-name { font-family: var(--serif); font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.footer-info div { display: flex; gap: 14px; padding: 3px 0; }
.footer-info dt { min-width: 44px; color: #ffb3bf; font-weight: 600; }
.footer-info a:hover { color: #fff; }
.footer-menu ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-menu a:hover { color: #fff; }
.copyright { padding-top: 18px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ---------- 태블릿 ---------- */
@media (max-width: 1024px) {
  .main-menu .top { padding: 0 12px; }
  .main-menu .top::after { left: 12px; right: 12px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-menu { grid-column: 1 / -1; }
}

/* ---------- 휴대폰 ---------- */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  body { font-size: 15px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .logo img { width: 136px; }
  .main-menu { display: none; }

  .m-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .m-menu-btn span { display: block; height: 2px; background: var(--blood); border-radius: 2px; }
  .m-menu-btn span:nth-child(2) { width: 70%; margin-left: auto; }

  .m-dim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(42, 10, 16, .55); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .m-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 50;
    width: 82%;
    max-width: 340px;
    height: 100%;
    overflow-y: auto;
    background: #fff;
    transform: translateX(100%);
    transition: transform .25s;
  }
  .menu-open .m-menu { transform: none; }
  .menu-open .m-dim { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .m-menu-head { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 8px 0 22px; background: var(--blood); color: #fff; }
  .m-menu-head span { font-family: var(--serif); font-weight: 700; font-size: 18px; }
  .m-close { background: none; border: 0; color: #fff; font-size: 32px; line-height: 1; padding: 8px 12px; cursor: pointer; }
  .m-menu > ul > li { position: relative; border-bottom: 1px solid var(--line); }
  .m-top { display: block; padding: 16px 22px; font-size: 17px; font-weight: 600; }
  .m-toggle { position: absolute; right: 0; top: 0; width: 58px; height: 58px; background: none; border: 0; cursor: pointer; }
  .m-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--stone);
    border-bottom: 2px solid var(--stone);
    transform: translate(-50%, -70%) rotate(45deg);
    transition: transform .2s;
  }
  .m-menu li.open .m-toggle::after { transform: translate(-50%, -30%) rotate(-135deg); }
  .m-menu li > ul { display: none; padding: 0 0 10px; }
  .m-menu li.open > ul { display: block; }
  .m-menu li > ul a { display: block; padding: 9px 22px 9px 34px; font-size: 15px; color: var(--stone); }
  .m-menu-foot { margin-top: auto; padding: 20px 22px 28px; font-size: 14px; color: var(--stone); }
  .m-menu-foot a { color: var(--blood); font-weight: 600; margin-left: 6px; }

  .hero-title { font-size: 30px; line-height: 1.35; }
  .hero-title span { display: inline; }
  .hero-mark { width: 360px; right: -110px; bottom: -40px; }
  .welcome-photo { max-width: 200px; }
  .hero-actions .btn { flex: 1 1 0; }

  .w-list { grid-template-columns: 1fr; row-gap: 0; }
  .w-list li { display: flex; flex-flow: row wrap; align-items: baseline; column-gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
  .w-name { flex: 1 1 0; min-width: 0; }
  .w-list li:first-child { border-top: 2px solid var(--blood); }
  .w-time { flex: none; margin-top: 0; font-size: 28px; white-space: nowrap; }
  .w-note { flex: 0 0 100%; margin-top: 2px; }

  .welcome-inner { grid-template-columns: 1fr; }
  .v-grid { grid-template-columns: 1fr; }
  .mission-inner { grid-template-columns: 1fr; }
  .m-groups div { grid-template-columns: 84px 1fr; }
  .visit-inner { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .card-title { font-size: 14px; margin-top: 10px; }

  .band-mark { width: 220px; right: -60px; top: -30%; }
  .subnav ul { padding: 0 8px; }
  .subnav a { padding: 14px 10px; font-size: 14px; }

  .greeting-text br, .greeting-close p br { display: none; }
  .greeting-bottom { flex-direction: column; align-items: stretch; gap: 24px; }
  .greeting-photos { flex: none; flex-direction: row; }
  .greeting-photos img { width: calc(50% - 5px); aspect-ratio: 4 / 5; object-fit: cover; }
  .time-table .when { padding-right: 14px; }
  .post-nav { grid-template-columns: 1fr 1fr; }
  .post-nav .list { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .post-nav .next { grid-column: 2; grid-row: 1; }

  .footer-inner { grid-template-columns: 1fr; gap: 22px; padding-top: 40px; }
}
