/* 하나교회 — 글씨를 크게, 버튼을 넉넉하게 (어르신도 보기 편하게) */
:root {
  color-scheme: light;
  --forest: #1d4a3a;
  --forest-2: #2a6450;
  --leaf: #86bf3e;
  --sky: #3f8fd8;
  --warm: #b4532a;
  --bg: #f7f5ef;
  --card: #ffffff;
  --ink: #1d2420;
  --ink-2: #4b554f;
  --line: #e3dfd3;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 40, 30, .06), 0 6px 20px rgba(20, 40, 30, .06);
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Gowun Batang", "Noto Serif KR", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 18px/1.75 var(--sans); word-break: keep-all; overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: var(--forest-2); }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0 0 .6em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }
.serif { font-family: var(--serif); }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--forest-2); margin: 0 0 6px; }
.eyebrow.light { color: #cfe6b5; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 알림띠 */
.notice { background: var(--warm); color: #fff; text-align: center; padding: 8px 16px; font-size: 16px; font-weight: 500; }

/* 머리말 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo svg { width: 30px; height: 42px; }
.logo small { display: block; font-size: 11px; color: var(--ink-2); letter-spacing: .08em; line-height: 1.2; }
.logo b { display: block; font-size: 23px; line-height: 1.15; letter-spacing: -.01em; }
.gnb { display: flex; gap: 4px; margin-left: auto; }
.gnb a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 10px 14px; border-radius: 10px; }
.gnb a:hover { background: #eef3ea; }
.gnb a.on { color: var(--forest); background: #e6efe0; font-weight: 700; }
.call { text-decoration: none; background: var(--forest); color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 999px; font-size: 16px; white-space: nowrap; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border-radius: 12px; border: 0; background: var(--forest); color: #fff; font: 700 17px var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--forest-2); }
.btn-ghost { background: #fff; color: var(--forest); border: 1.5px solid #bcd0b8; }
.btn-ghost:hover { background: #f0f5ec; }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: #eef5e6; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-video { background: #c4302b; }
.btn-video:hover { background: #a82722; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* 첫 화면 */
.hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(134,191,62,.35), transparent 60%),
              linear-gradient(160deg, #1d4a3a 0%, #173a2e 60%, #12302a 100%); }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 420px; height: 420px; opacity: .12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 95C50 60 20 45 10 10c40 5 75 30 40 85z' fill='%23ffffff'/%3E%3Cpath d='M50 95C55 55 75 35 92 25' stroke='%23ffffff' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat center/contain; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 5.4vw, 60px); letter-spacing: -.01em; margin-bottom: 14px; }
.hero-sub { font-size: 20px; color: #dfeadb; margin-bottom: 28px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card { display: block; background: #fff; color: var(--ink); text-decoration: none; border-radius: var(--radius); padding: 28px; box-shadow: 0 20px 40px rgba(0,0,0,.2); }
.hero-card h3 { font-family: var(--serif); font-size: 26px; margin: 4px 0 8px; }
.hero-card .ref { color: var(--ink-2); }
.hero-card .more, .more { color: var(--forest-2); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; }

/* 바로가기 (둥근 아이콘) */
.quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 12px; margin-top: -36px; position: relative; z-index: 2; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 16px; padding: 8px 4px; border-radius: 12px; text-align: center; }
.quick a:hover { background: #f3f6ef; }
.qi { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #eaf2e2; color: var(--forest); }
.qi .ic { width: 28px; height: 28px; }

/* 카드와 구역 */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; align-items: start; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 24px; display: block; }
.grid2 .card { margin-bottom: 0; }
a.card { color: var(--ink); text-decoration: none; }
a.card:hover { box-shadow: 0 2px 4px rgba(20,40,30,.08), 0 12px 30px rgba(20,40,30,.1); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-size: 26px; }
.welcome p { color: var(--ink-2); }
.welcome-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.col-teaser h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 8px; }
.col-teaser p { color: var(--ink-2); }

.wtable { width: 100%; border-collapse: collapse; }
.wtable th, .wtable td { text-align: left; padding: 13px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wtable tr:last-child th, .wtable tr:last-child td { border-bottom: 0; }
.wtable th { font-weight: 700; }
.wtable td { font-weight: 500; color: var(--forest); white-space: nowrap; }
.wtable td.place { color: var(--ink-2); font-weight: 400; text-align: right; }

.verse-band { background: var(--forest); color: #fff; margin-top: 48px; padding: 52px 0; text-align: center; }
.verse-band blockquote { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.6; margin: 8px auto 0; max-width: 820px; }

.news { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.news > li { counter-increment: n; position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--line); }
.news > li:last-child { border-bottom: 0; }
.news > li::before { content: counter(n); position: absolute; left: 0; top: 14px; width: 28px; height: 28px; border-radius: 50%;
  background: #eaf2e2; color: var(--forest); font-weight: 700; font-size: 15px; display: grid; place-items: center; }
.news strong { display: block; font-size: 19px; }
.news span { color: var(--ink-2); }
.news ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink); }

.photo-feature { margin: 40px 0 0; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-feature img { width: 100%; max-height: 560px; object-fit: cover; }
.photo-feature figcaption { padding: 20px 28px; color: var(--ink-2); }

/* 하위 페이지 */
.page-head { background: linear-gradient(160deg, #1d4a3a, #173a2e); color: #fff; padding: 52px 0 44px; margin-bottom: 36px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(32px, 4.5vw, 44px); }
.page-head p:last-child { color: #dfeadb; margin: 8px 0 0; }
.lead { font-size: 20px; line-height: 1.85; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.value { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.value .num { display: block; color: var(--leaf); font-weight: 700; font-size: 15px; }
.value strong { font-size: 20px; }
.motto { text-align: center; background: #eef4e7; box-shadow: none; }
.motto h2 { font-size: clamp(26px, 3.6vw, 36px); color: var(--forest); }
.servants { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.servants li { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 16px 20px; }
.servants span { display: block; color: var(--ink-2); font-size: 15px; }
.servants strong { font-size: 20px; }
.gospel { margin-top: 40px; }
.gospel ol { padding-left: 1.3em; }
.gospel li { margin-bottom: 12px; }
.prayer { font-family: var(--serif); background: var(--card); border-left: 5px solid var(--leaf); border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 20px 0; font-size: 19px; }
.belong { color: var(--ink-2); text-align: center; margin: 32px 0 0; }
.note { color: var(--ink-2); text-align: center; }

.week-pick { display: flex; flex-direction: column; gap: 6px; font-weight: 700; margin-bottom: 20px; }
.week-pick select { font: 500 17px var(--sans); min-height: 52px; padding: 0 12px; border-radius: 12px; border: 1.5px solid #bcd0b8; background: #fff; }
.sermon-main h2 { font-size: clamp(26px, 3.4vw, 32px); margin: 4px 0 6px; }
.sermon-main .ref { color: var(--ink-2); margin-bottom: 16px; }
.pm { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.pm span { display: inline-block; background: #eaf2e2; color: var(--forest); font-weight: 700; font-size: 15px; padding: 2px 10px; border-radius: 999px; margin-right: 6px; }
.yt { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.order summary { cursor: pointer; font-weight: 700; font-size: 19px; min-height: 32px; }
.otable { width: 100%; border-collapse: collapse; margin-top: 12px; }
.otable th, .otable td { padding: 9px 4px; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; }
.otable th { width: 7em; font-weight: 500; color: var(--ink-2); }
.otable .who { text-align: right; color: var(--ink-2); white-space: nowrap; }
.verse-card { background: var(--forest); color: #fff; }
.verse-card .eyebrow { color: #cfe6b5; }
.verse-card blockquote { font-family: var(--serif); font-size: 22px; margin: 10px 0 0; }
ol.plain { padding-left: 1.3em; margin: 0; }
ol.plain li { margin-bottom: 8px; }
.column h2 { font-size: 30px; margin-bottom: 18px; }
.column p { text-indent: .5em; line-height: 1.95; margin-bottom: 1em; }
.photos { margin-bottom: 24px; }
.photos img { border-radius: var(--radius); margin-bottom: 10px; width: 100%; }
.photos .cap { color: var(--ink-2); }

.sermons { list-style: none; padding: 0; margin: 0; }
.sermon { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.sermon .thumb { position: relative; width: 240px; border-radius: 12px; overflow: hidden; }
.sermon .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.25); }
.sermon .play .ic { width: 48px; height: 48px; }
.sermon .sbody { grid-column: auto; }
.sermon:not(:has(.thumb)) { grid-template-columns: 1fr; }
.sermon .date { color: var(--ink-2); font-size: 16px; margin: 0; }
.sermon h3 { font-family: var(--serif); font-size: 24px; margin: 2px 0 4px; }
.sermon .ref { color: var(--ink-2); }
.sbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.center { text-align: center; }

.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/10; background: #e8e6df; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; }
.contact { display: grid; grid-template-columns: 7em 1fr; gap: 12px 16px; margin: 0; }
.contact dt { color: var(--ink-2); font-weight: 500; }
.contact dd { margin: 0; font-weight: 500; }
.handmap { margin: 0 0 24px; }
.handmap img { border-radius: 10px; width: 100%; }
.handmap figcaption { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.offering { background: #eef4e7; border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.offering .acct { font-size: 24px; margin: 4px 0; }
.offering .acct strong { letter-spacing: .02em; white-space: nowrap; }
.offering .holder { color: var(--ink-2); }

/* 꼬리말 */
.foot { background: #12302a; color: #cfdcd3; margin-top: 64px; padding: 40px 0; font-size: 16px; }
.foot a { color: #fff; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot p { margin: 0 0 4px; }
.foot-name { color: #fff; font-size: 18px; margin-bottom: 10px !important; }
.copy { opacity: .7; align-self: flex-end; }

/* 휴대폰 하단 메뉴 */
.tabbar { display: none; }

@media (max-width: 900px) {
  .gnb { display: none; }
  .top-in { justify-content: space-between; min-height: 64px; }
  .hero-in { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; padding-bottom: 64px; }
  .quick { grid-template-columns: repeat(3, 1fr); margin-top: 16px; box-shadow: none; border: 1px solid var(--line); }
  .hero-in { padding-bottom: 40px; }
  .notice { font-size: 15px; }
  .grid2 { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .values { grid-template-columns: 1fr; }
  .sermon { grid-template-columns: 1fr; }
  .sermon .thumb { width: 100%; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(0,0,0,.05); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 8px; text-decoration: none; color: var(--ink-2); font-size: 13px; font-weight: 500; }
  .tabbar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.on { color: var(--forest); font-weight: 700; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .card { padding: 22px 18px; }
  .call { padding: 8px 12px; font-size: 15px; }
  .logo b { font-size: 21px; }
  .hero-card { padding: 22px; }
  .quick a { font-size: 15px; }
  .qi { width: 54px; height: 54px; }
  .contact { grid-template-columns: 1fr; gap: 2px; }
  .contact dd { margin-bottom: 12px; }
  .wtable td.place { display: none; }
  .offering .acct { font-size: 21px; }
  .offering { padding: 22px 18px; }
  .btn { width: 100%; }
  .hero-btns .btn, .sbtns .btn { width: auto; flex: 1; }
}
@media print { .top, .tabbar, .foot, .notice, .quick { display: none; } body { background: #fff; } .card { box-shadow: none; border: 1px solid #ccc; } }
