/* 속초종합중앙시장 — 로고·안내 아이콘 색에 맞춤: 청록 #00566a, 자주 #8a0058, 파랑 #0078a0, 주황 #cc4400 */
:root {
  --bg: #ffffff;
  --paper: #f3f5f6;
  --ink: #1b2a33;
  --muted: #5a6770;
  --line: #dfe4e7;
  --red: #cc4400;
  --red-deep: #a63700;
  --sea: #00566a;
  --plum: #8a0058;
  --blue: #0078a0;
  --green: #2f8f46;
  --sun: #f5a623;
  --radius: 12px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.65; word-break: keep-all;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.03em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 머리: 흰 바탕에 실제 로고 ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px; display: flex; align-items: center; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; font-weight: 800; font-size: 17px; color: var(--ink); }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 15.5px; color: var(--ink); transition: background .2s, color .2s; }
.nav a:hover { background: var(--paper); color: var(--sea); }
.nav a.cta { background: var(--sea); color: #fff; }
.nav a.cta:hover { background: #003f4e; color: #fff; }
@media (max-width: 820px) { .nav a:not(.cta) { display: none; } }
@media (max-width: 400px) { .brand img { height: 38px; } .nav a.cta { padding: 8px 11px; font-size: 14.5px; } }

/* ---------- 첫 화면 슬라이드 ---------- */
.hero { position: relative; margin-top: 68px; height: calc(100svh - 68px); min-height: 520px; max-height: 900px; background: #111; color: #fff; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero-slide.on img { animation: kenburns 8s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 20, .5) 0%, rgba(10, 14, 20, .08) 32%, rgba(10, 14, 20, .82) 100%); pointer-events: none; }
.hero-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(96px, 14vh, 140px); }
.hero-tag { display: inline-block; font-weight: 700; font-size: clamp(15px, 1.7vw, 18px); color: #fff; border-left: 4px solid var(--sun); padding-left: 10px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, 7.6vw, 92px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.08; max-width: 12em; }
.hero p { margin-top: 16px; font-size: clamp(16px, 2vw, 21px); max-width: 30em; color: rgba(255, 255, 255, .9); }
.hero-text { display: none; }
.hero-text.on { display: block; animation: rise .8s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.fill { background: var(--red); color: #fff; }
.btn.fill:hover { background: var(--red-deep); }
.btn.ghost { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.line { box-shadow: inset 0 0 0 1.5px var(--ink); }
.hero-bars { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(56px, 8vh, 84px); }
.hero-bars .wrap { display: flex; gap: 8px; }
.hero-bars button { flex: 1; max-width: 120px; height: 22px; display: flex; align-items: center; }
.hero-bars i { display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.hero-bars i::after { content: ''; display: block; height: 100%; width: 0; background: #fff; }
.hero-bars button.done i::after { width: 100%; }
.hero-bars button.on i::after { animation: bar var(--dur, 6s) linear forwards; }
@keyframes bar { to { width: 100%; } }

/* ---------- 원형 아이콘 바로가기 (기존 안내 아이콘) ---------- */
.quick { background: #fff; border-bottom: 1px solid var(--line); }
.quick ul { list-style: none; margin: 0; padding: clamp(26px, 4vw, 44px) 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick a { display: grid; justify-items: center; text-align: center; gap: 4px; }
.quick .ico { position: relative; width: clamp(72px, 10vw, 118px); aspect-ratio: 1; margin-bottom: 8px; transition: transform .25s; }
.quick .ico img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .25s; }
.quick .ico img + img { opacity: 0; }
.quick a:hover .ico { transform: translateY(-4px); }
.quick a:hover .ico img + img { opacity: 1; }
.quick b { font-size: clamp(15px, 1.9vw, 20px); font-weight: 700; letter-spacing: -0.03em; }
.quick span { color: var(--muted); font-size: clamp(13px, 1.5vw, 15.5px); }
@media (max-width: 560px) { .quick ul { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } }

/* ---------- 구역 공통 ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section.paper { background: var(--paper); }
.section.dark { background: #5f003d; color: #fff; }
.section.sea { background: var(--sea); color: #fff; }
.eyebrow { font-weight: 800; font-size: 15.5px; letter-spacing: .02em; color: var(--red); line-height: 1.3; }
.dark .eyebrow, .sea .eyebrow { color: var(--sun); }
.title { font-size: clamp(30px, 5vw, 54px); font-weight: 900; margin-top: 6px; }
.lead { margin-top: 14px; color: var(--muted); font-size: clamp(16px, 1.8vw, 19px); max-width: 34em; }
.dark .lead, .sea .lead { color: rgba(255, 255, 255, .78); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 4vw, 44px); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 숫자 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1.5px solid var(--ink); }
.stat { padding: clamp(18px, 3vw, 32px) clamp(10px, 2vw, 24px); border-left: 1.5px solid var(--ink); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(30px, 5.4vw, 64px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.stat b small { font-size: .45em; font-weight: 800; letter-spacing: -0.02em; margin-left: 2px; }
.stat:nth-child(1) b { color: var(--sea); } .stat:nth-child(2) b { color: var(--plum); } .stat:nth-child(3) b { color: var(--blue); } .stat:nth-child(4) b { color: var(--red); }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1.5px solid var(--ink); }
}

/* ---------- 가로 슬라이드(먹거리·발자취·풍경) ---------- */
.rail { display: flex; gap: clamp(12px, 2vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); padding-bottom: 6px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.rail-btns { display: flex; gap: 8px; flex: none; }
.rail-btns button { width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; display: grid; place-items: center; font-size: 20px; transition: background .2s, color .2s; }
.rail-btns button:hover { background: var(--ink); color: var(--bg); }
.dark .rail-btns button:hover, .sea .rail-btns button:hover { background: #fff; color: var(--ink); }
@media (max-width: 640px) { .rail-btns { display: none; } }

.food-card { position: relative; width: clamp(240px, 30vw, 330px); aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; color: #fff; background: #222; }
.food-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.food-card:hover img { transform: scale(1.07); }
.food-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(10, 14, 20, .86) 100%); }
.food-card .txt { position: absolute; z-index: 1; inset: auto 20px 20px 20px; }
.food-card .num { position: absolute; z-index: 1; top: 16px; left: 18px; font-weight: 800; font-size: 14px; background: rgba(255, 255, 255, .92); color: var(--ink); padding: 4px 11px; border-radius: 999px; }
.food-card h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 900; }
.food-card p { margin-top: 6px; font-size: 15.5px; color: rgba(255, 255, 255, .88); line-height: 1.45; }
.food-card .go { margin-top: 12px; display: inline-flex; font-weight: 700; font-size: 14.5px; color: var(--sun); }

/* ---------- 시장 이야기 ---------- */
.story { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.story article { background: var(--bg); border-radius: var(--radius); overflow: hidden; }
.story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story div { padding: 22px 22px 26px; }
.story h3 { font-size: 23px; font-weight: 800; }
.story p { margin-top: 8px; color: var(--muted); font-size: 16px; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } .story article { display: grid; grid-template-columns: 120px 1fr; align-items: center; } .story img { aspect-ratio: 1; height: 100%; } .story div { padding: 16px 18px; } .story h3 { font-size: 20px; } }

/* ---------- 골목 안내 ---------- */
.alleys { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.map-box { position: sticky; top: 84px; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .5); }
.map-box button { display: block; width: 100%; cursor: zoom-in; }
.map-box figcaption { padding: 10px 16px; font-size: 14px; color: var(--muted); background: #fff; }
.alley-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.alley-list li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .09); }
.alley-list i { width: 14px; height: 14px; border-radius: 50%; margin-top: 7px; background: var(--c); box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.alley-list b { font-size: 19px; font-weight: 800; }
.alley-list p { color: rgba(255, 255, 255, .8); font-size: 15.5px; margin-top: 2px; }
@media (max-width: 880px) { .alleys { grid-template-columns: 1fr; } .map-box { position: static; } }

/* ---------- 층별 안내 ---------- */
.floors { display: grid; gap: 12px; }
.floor { display: grid; grid-template-columns: clamp(84px, 14vw, 170px) 1fr auto; gap: clamp(14px, 3vw, 36px); align-items: center; padding: clamp(18px, 3vw, 30px) clamp(18px, 3vw, 36px); border-radius: var(--radius); background: var(--paper); border: 1.5px solid var(--line); transition: transform .25s, border-color .25s; }
.floor:hover { transform: translateX(6px); border-color: var(--ink); }
.floor .lv { font-size: clamp(40px, 7vw, 84px); font-weight: 900; letter-spacing: -0.06em; line-height: 1; color: var(--plum); }
.floor:nth-child(2) .lv { color: var(--red); }
.floor:nth-child(3) .lv { color: var(--blue); }
.floor h3 { font-size: clamp(19px, 2.4vw, 26px); font-weight: 800; }
.floor p { color: var(--muted); margin-top: 4px; font-size: 15.5px; }
.floor .cnt { font-weight: 800; font-size: 15px; padding: 6px 14px; border-radius: 999px; background: var(--bg); white-space: nowrap; }
@media (max-width: 560px) { .floor { grid-template-columns: 70px 1fr; } .floor .cnt { grid-column: 2; justify-self: start; } }

/* ---------- 이름난 가게 ---------- */
.shops { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.shop { border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.shop img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.shop div { padding: 18px 20px 22px; }
.shop h3 { font-size: 21px; font-weight: 800; }
.shop p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
@media (max-width: 820px) { .shops { grid-template-columns: 1fr; } }

/* ---------- 발자취 ---------- */
.era { width: clamp(270px, 34vw, 380px); background: rgba(255, 255, 255, .07); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.era img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.9); }
.era .no-img { aspect-ratio: 3 / 2; display: grid; place-items: center; font-weight: 800; font-size: 24px; color: var(--sun); background: rgba(255, 255, 255, .06); }
.era div { padding: 20px 22px 24px; }
.era .yr { font-size: 38px; font-weight: 900; letter-spacing: -0.05em; color: var(--sun); line-height: 1; }
.era h3 { font-size: 20px; font-weight: 800; margin-top: 8px; }
.era p { margin-top: 8px; font-size: 15.5px; color: rgba(255, 255, 255, .78); }
.credit { margin-top: 20px; font-size: 13.5px; color: rgba(255, 255, 255, .55); }

/* ---------- 영상 ---------- */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 20px); }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; display: block; width: 100%; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .86; transition: opacity .2s, transform .5s; }
.yt:hover img { opacity: 1; transform: scale(1.04); }
.yt::after { content: '▶'; position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%; background: var(--plum); color: #fff; display: grid; place-items: center; font-size: 22px; padding-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.playing::after { display: none; }
@media (max-width: 820px) { .videos { grid-template-columns: 1fr; } }

/* ---------- 시장 풍경 ---------- */
.scene { width: clamp(200px, 24vw, 290px); aspect-ratio: 400 / 563; border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; }
.scene:nth-child(even) { margin-top: 36px; }
.scene img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.scene:hover img { transform: scale(1.06); }
.scene span { position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, .94); color: var(--ink); font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 999px; }

/* ---------- 소식 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.news-card { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
a.news-card:hover { transform: translateY(-4px); border-color: var(--ink); }
.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-card .ph { aspect-ratio: 16 / 10; background: var(--sea); color: var(--sun); display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.news-card div { padding: 18px 20px 22px; }
.news-card time { font-size: 14px; color: var(--muted); font-weight: 600; }
.news-card h3 { font-size: 20px; font-weight: 800; margin-top: 4px; }
.news-card p { margin-top: 8px; color: var(--muted); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.empty { padding: 44px 24px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); grid-column: 1 / -1; }
@media (max-width: 820px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- 오시는 길 ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); }
.card { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 38px); }
.card h3 { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.card h3 em { font-style: normal; width: 38px; height: 38px; border-radius: 50%; background: var(--sea); color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 800; flex: none; }
.card .big { font-size: clamp(20px, 2.6vw, 27px); font-weight: 800; margin-top: 18px; letter-spacing: -0.03em; }
.card .sub { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.card .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.card .btn { padding: 12px 18px; font-size: 15.5px; }
.rules { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 0; }
.rules li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.rules li b { color: var(--sea); }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 820px) { .visit { grid-template-columns: 1fr; } }

/* ---------- 바닥: 밝은 바탕에 로고 ---------- */
.footer { background: var(--paper); border-top: 1px solid var(--line); color: var(--muted); padding: 44px 0 110px; font-size: 14.5px; }
.footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.footer .logo { height: 52px; width: auto; margin-bottom: 14px; }
.footer a { text-decoration: underline; text-underline-offset: 3px; }
.footer .links { display: flex; gap: 16px; }
@media (max-width: 640px) { .footer .wrap { grid-template-columns: 1fr; } }
@media (min-width: 821px) { .footer { padding-bottom: 44px; } }

/* ---------- 휴대폰 아래 고정 버튼 ---------- */
.dock { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); display: none; background: rgba(0, 62, 77, .96); backdrop-filter: blur(12px); border-radius: 20px; padding: 6px; grid-template-columns: repeat(3, 1fr); gap: 4px; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .5); }
.dock a { color: #fff; text-align: center; padding: 11px 4px; border-radius: 15px; font-weight: 700; font-size: 15px; }
.dock a:first-child { background: var(--red); }
@media (max-width: 820px) { .dock { display: grid; } }

/* ---------- 크게 보기 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 14, 20, .94); display: none; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox.on { display: grid; }
.lightbox img { max-width: 100%; max-height: 92svh; border-radius: 12px; }
.lightbox button { position: absolute; top: 14px; right: 16px; color: #fff; font-size: 30px; width: 48px; height: 48px; }

/* ---------- 먹거리 상세 (사진 + 새로 쓴 글) ---------- */
.page-hero { position: relative; margin-top: 68px; padding: 84px 0 70px; color: #fff; background: var(--sea); overflow: hidden; text-align: center; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero .wrap { position: relative; }
.page-hero .eyebrow { color: var(--sun); }
.page-hero h1 { font-size: clamp(38px, 7vw, 76px); font-weight: 900; letter-spacing: -0.045em; }
.page-hero p { margin: 12px auto 0; font-size: clamp(16px, 2vw, 20px); color: rgba(255, 255, 255, .9); max-width: 32em; }
.chips { position: sticky; top: 68px; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.chips .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.chips a { flex: none; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 15.5px; box-shadow: inset 0 0 0 1.5px var(--c, var(--ink)); color: var(--c, var(--ink)); transition: background .2s, color .2s; }
.chips a:first-child { margin-left: auto; }
.chips a:last-child { margin-right: auto; }
.chips a:hover { background: var(--c, var(--ink)); color: #fff; }
.food-sec { scroll-margin-top: 136px; --c: var(--sea); }
.food-top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 5vw, 64px); align-items: center; }
.food-top .pic { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.food-top .pic img { width: 100%; height: 100%; object-fit: cover; }
.food-sec:nth-of-type(even) .food-top .pic { order: 2; }
.food-top .where { display: inline-block; font-weight: 800; font-size: 14.5px; padding: 5px 13px; border-radius: 999px; background: var(--c); color: #fff; margin-bottom: 14px; }
.food-top h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; }
.food-top p { margin-top: 14px; color: var(--muted); font-size: clamp(16px, 1.8vw, 18.5px); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tags span { padding: 5px 13px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); font-size: 15px; font-weight: 600; }
.paper .tags span { background: var(--bg); }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(24px, 4vw, 44px); }
.tip { padding: 20px 22px; border-radius: var(--radius); background: var(--paper); border: 1.5px solid var(--line); border-top: 4px solid var(--c); text-align: center; }
.paper .tip { background: var(--bg); }
.tip b { display: block; font-size: 18px; font-weight: 800; }
.tip span { display: block; margin-top: 4px; color: var(--muted); font-size: 15.5px; }
.shots { margin-top: clamp(20px, 3vw, 34px); }
.shots figure { margin: 0; width: clamp(190px, 22vw, 260px); text-align: center; }
.shots img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); cursor: zoom-in; }
.shots figcaption { margin-top: 8px; font-weight: 700; font-size: 15px; }
@media (max-width: 820px) {
  .food-top { grid-template-columns: 1fr; text-align: center; }
  .food-sec:nth-of-type(even) .food-top .pic { order: 0; }
  .tags { justify-content: center; }
  .tips { grid-template-columns: 1fr; }
}

/* ---------- 소식 목록·관리자 ---------- */
.plain-top { padding: 120px 0 30px; }
.post { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.4vw, 36px); margin-bottom: 18px; scroll-margin-top: 84px; }
.post time { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.post h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-top: 4px; }
.post .body { margin-top: 14px; white-space: pre-line; font-size: 17px; }
.post .pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 18px; }
.post .pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; cursor: zoom-in; }
.form { display: grid; gap: 14px; max-width: 720px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 15.5px; }
.form input[type=text], .form input[type=password], .form input[type=date], .form textarea { font: inherit; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
.form textarea { min-height: 200px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.msg { font-weight: 700; min-height: 1.6em; }
.msg.err { color: var(--red-deep); }
.msg.ok { color: var(--sea); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs figure { margin: 0; position: relative; width: 96px; height: 96px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.thumbs button { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; }
.admin-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.admin-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; }
.admin-list small { color: var(--muted); display: block; }
.admin-list .acts { display: flex; gap: 6px; flex: none; }
.mini { padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14.5px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.mini.del { box-shadow: inset 0 0 0 1.5px var(--red-deep); color: var(--red-deep); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide.on img, .hero-text.on { animation: none; }
  .hero-bars button.on i::after { animation: none; width: 100%; }
}

[hidden] { display: none !important; }

/* ---------- 가운데 정렬: 창을 늘리거나 줄여도 내용이 가운데에 오도록 ---------- */
/* 가로 넘기기: 내용이 화면보다 짧으면 가운데, 길면 왼쪽부터 넘겨 보기 */
.rail > :first-child { margin-left: auto; }
.rail > :last-child { margin-right: auto; }
.rail { padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
/* 구역 제목 */
.section .eyebrow, .section .title, .section .lead, .plain-top { text-align: center; }
.section .lead { margin-inline: auto; }
.head-row { flex-direction: column; align-items: center; text-align: center; }
/* 첫 화면 */
.hero-body { text-align: center; }
.hero h1, .hero p { margin-inline: auto; }
.hero-actions { justify-content: center; }
.hero-bars .wrap { justify-content: center; }
/* 숫자 */
.stat, .stat:first-child { text-align: center; padding-inline: clamp(8px, 2vw, 24px); }
@media (max-width: 640px) { .stat:nth-child(3) { padding-inline: clamp(8px, 2vw, 24px); } }
/* 카드 묶음: 개수가 모자라도 가운데로 */
.story, .shops, .videos, .news-grid, .visit { display: flex; flex-wrap: wrap; justify-content: center; }
.story > *, .shops > *, .videos > *, .news-grid > .news-card { flex: 0 1 calc((100% - 2 * clamp(14px, 2vw, 24px)) / 3); min-width: 260px; }
.visit > * { flex: 1 1 340px; max-width: 580px; }
.news-grid > .empty { flex: 1 1 100%; }
.story div, .shop div { text-align: center; }
@media (max-width: 820px) {
  .story > *, .shops > *, .videos > *, .news-grid > .news-card { flex: 1 1 100%; }
  .story article { display: block; }
  .story img { aspect-ratio: 16 / 10; height: auto; }
  .story div { padding: 18px 20px 22px; }
}
/* 골목·층별 */
.alleys { justify-content: center; }
.map-box { max-width: 640px; margin-inline: auto; width: 100%; }
.floors { max-width: 900px; margin-inline: auto; }
.card h3, .card .row { justify-content: center; }
.card .big, .card .sub, .card .note { text-align: center; }
/* 소식 목록·관리자 */
.post, .form, .admin-list { max-width: 820px; margin-inline: auto; }
.post { margin-bottom: 18px; }
/* 바닥 */
.footer .wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.footer .logo { margin-inline: auto; }
.footer .links { justify-content: center; }
img { margin-inline: auto; }
/* 원형 아이콘 줄도 가운데 */
.quick ul { margin: 0 auto; }
/* 가로 넘기기는 본문 폭 안에서만 움직이게 해서 좌우 여백을 똑같이 */
.rail { --gap: clamp(12px, 2vw, 20px); width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; padding-inline: 0; scroll-padding-inline: 0; gap: var(--gap); }
.food-card { width: max(230px, calc((100% - 3 * var(--gap)) / 4)); }
.era { width: max(270px, calc((100% - 2 * var(--gap)) / 3)); }
.scene { width: max(150px, calc((100% - 5 * var(--gap)) / 6)); }
.scene:nth-child(even) { margin-top: 28px; }
.shots figure { width: max(170px, calc((100% - 4 * var(--gap)) / 5)); }
@media (max-width: 640px) {
  .food-card { width: 72%; }
  .era { width: 84%; }
  .scene { width: 46%; }
  .shots figure { width: 46%; }
}
