:root {
  --bg: #f5f2ec;
  --paper: #ffffff;
  --ink: #15181d;
  --muted: #676d76;
  --line: rgba(21, 24, 29, 0.12);
  --brand: #26313d;
  --brand-dark: #151d26;
  --accent: #e30613;
  --gold: #b58a49;
  --soft: #efe5d2;
  --radius: 24px;
  --shadow: 0 18px 46px rgba(18, 24, 31, 0.13);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 0%, rgba(227, 6, 19, .08), transparent 28%), var(--bg);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.container { width: min(100% - 36px, var(--max)); margin: 0 auto; }

.skip-link { position: absolute; left: -999px; top: 12px; background: #fff; padding: 10px 14px; z-index: 9999; }
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: 1.05;
  min-width: 142px;
}
.logo small { color: var(--accent); font-size: 11px; letter-spacing: .12em; }
.gnb { display: flex; align-items: center; gap: 15px; font-size: 14px; font-weight: 850; color: #343942; }
.gnb a { position: relative; padding: 8px 0; white-space: nowrap; }
.gnb a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: .2s ease;
}
.gnb a:hover::after, .gnb a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 22px rgba(38,49,61,.24); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 22px rgba(227,6,19,.2); }
.btn-soft { background: #f3eadc; color: #2e2a24; }
.btn-line { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 15px; border: 1px solid var(--line); background: #fff; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; transition: .2s; }
.menu-btn.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.65)),
    radial-gradient(circle at 75% 20%, rgba(227, 6, 19, .14), transparent 32%),
    linear-gradient(135deg, #f9f4eb, #eef3f7);
}
.hero-inner {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 46px;
  align-items: center;
  padding: 74px 0;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(227,6,19,.22);
  color: var(--accent);
  font-weight: 950;
  font-size: 14px;
}
.hero h1 { margin: 18px 0 18px; font-size: clamp(42px, 6vw, 80px); line-height: 1.05; letter-spacing: -.075em; }
.hero p { margin: 0 0 26px; color: #444a52; font-size: 19px; max-width: 600px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0 0; max-width: 680px; }
.hero-meta span { display: block; padding: 15px 14px; border-radius: 18px; background: rgba(255,255,255,.82); border: 1px solid var(--line); }
.hero-meta b { display: block; font-size: 18px; letter-spacing: -.04em; }
.hero-meta em { display: block; font-style: normal; color: var(--muted); font-size: 13px; }
.hero-visual { position: relative; }
.frame-card {
  padding: 14px;
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow);
}
.frame-card img { width: 100%; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.08); background: #fff; }
.floating-card {
  position: absolute;
  left: -22px;
  bottom: 24px;
  max-width: 270px;
  background: rgba(38,49,61,.94);
  color: #fff;
  padding: 18px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.floating-card b { display: block; font-size: 17px; }
.floating-card span { color: rgba(255,255,255,.78); font-size: 13px; }

.section { padding: 92px 0; }
.section-tight { padding: 58px 0; }
.section-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 30px; }
.section-title { margin: 0; font-size: clamp(31px, 4vw, 50px); line-height: 1.13; letter-spacing: -.06em; }
.section-desc { margin: 12px 0 0; color: var(--muted); max-width: 720px; }
.page-hero {
  padding: 56px 0 34px;
  background: linear-gradient(135deg, #ffffff, #f1e7d7);
  border-bottom: 1px solid var(--line);
}
.page-hero .container { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.breadcrumb { color: var(--muted); font-weight: 800; font-size: 14px; }
.page-title { margin: 10px 0 0; font-size: clamp(36px, 5vw, 62px); line-height: 1.08; letter-spacing: -.07em; }
.page-summary { color: #4f545d; max-width: 470px; margin: 0; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 26px rgba(18,24,31,.06);
}
.card h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.04em; }
.card p { margin: 0; color: var(--muted); }
.card .num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 950; margin-bottom: 14px; }

.slide-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.slide-box img { width: 100%; border-radius: 18px; background: #fff; }
.slide-caption { padding: 14px 4px 2px; color: var(--muted); font-size: 14px; }
.full-slide { margin-top: 20px; }
.detail-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 24px; align-items: start; }
.side-panel { position: sticky; top: 96px; }
.info-list { display: grid; gap: 10px; }
.info-list div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list dt { margin: 0; font-weight: 900; color: #2b3038; }
.info-list dd { margin: 0; color: var(--muted); text-align: right; }

.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card { display: flex; flex-direction: column; min-height: 170px; padding: 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(18,24,31,.06); }
.quick-card strong { font-size: 22px; letter-spacing: -.05em; }
.quick-card span { margin-top: 8px; color: var(--muted); font-size: 14px; }
.quick-card em { margin-top: auto; font-style: normal; font-weight: 950; color: var(--accent); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { border: 0; padding: 0; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 26px rgba(18,24,31,.08); cursor: pointer; text-align: left; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; }
.gallery-item span { display: block; padding: 14px 16px; font-weight: 900; }
.lightbox { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.78); padding: 28px; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 96vw; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 24px; cursor: pointer; }

.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: start; }
.form-card { background: #fff; border-radius: 30px; padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field label { font-weight: 900; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 14px 15px; background: #fbfaf7; outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: rgba(227,6,19,.48); box-shadow: 0 0 0 4px rgba(227,6,19,.08); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; margin: 10px 0 18px; }
.form-message { margin-top: 12px; font-weight: 900; }
.form-message.ok { color: #087a42; }
.form-message.err { color: #c62828; }

.admin-body { background: #f6f6f6; }
.admin-shell { width: min(100% - 32px, 1180px); margin: 38px auto; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 14px 34px rgba(18,24,31,.08); }
.admin-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-filters input, .admin-filters select { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 840px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; vertical-align: top; }
th { background: #f4f0e8; font-weight: 950; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #e7f7ee; color: #087a42; font-weight: 900; font-size: 12px; }
.badge.no { background: #f1f1f1; color: #777; }
.empty-box { display: none; padding: 30px; text-align: center; color: var(--muted); }
.pagination { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 16px; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 20% 10%, rgba(227,6,19,.12), transparent 32%), #f5f2ec; }
.login-box { width: min(100% - 32px, 430px); background: #fff; border-radius: 28px; padding: 32px; box-shadow: var(--shadow); }
.login-box h1 { margin: 0 0 6px; letter-spacing: -.06em; }
.login-box p { margin: 0 0 22px; color: var(--muted); }

.site-footer { padding: 42px 0; color: rgba(255,255,255,.78); background: var(--brand-dark); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-brand { color: #fff; font-size: 22px; font-weight: 950; letter-spacing: -.05em; }
.footer-note { max-width: 760px; font-size: 13px; color: rgba(255,255,255,.62); }
.floating-cta { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: flex; flex-direction: column; gap: 9px; }
.floating-cta a { display: inline-flex; align-items: center; justify-content: center; padding: 13px 18px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 950; box-shadow: 0 10px 25px rgba(227,6,19,.28); }

@media (max-width: 1080px) {
  .gnb { position: fixed; left: 18px; right: 18px; top: 84px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
  .gnb.is-open { display: flex; }
  .gnb a { padding: 13px 14px; border-radius: 14px; }
  .gnb a:hover { background: #f6f2ea; }
  .gnb a::after { display: none; }
  .menu-btn { display: block; }
  .header-actions .btn-primary { display: none; }
  .hero-inner, .detail-layout, .contact-wrap { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .hero-inner { min-height: auto; }
  .floating-card { left: 18px; right: 18px; bottom: 24px; max-width: none; }
  .quick-links, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero .container { display: block; }
  .page-summary { margin-top: 14px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--max)); }
  .header-inner { height: 66px; }
  .logo { font-size: 15px; min-width: 120px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 16px; }
  .hero-meta, .grid-2, .grid-3, .grid-4, .quick-links, .gallery-grid, .form-row { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .section-head { display: block; }
  .slide-box, .frame-card { padding: 8px; border-radius: 20px; }
  .slide-box img, .frame-card img { border-radius: 14px; }
  .form-card { padding: 20px; border-radius: 22px; }
  .footer-inner { display: block; }
  .floating-cta { left: 12px; right: 12px; bottom: 12px; }
  .floating-cta a { width: 100%; }
}
