:root {
  --ink: #1a1a1a;
  --ink-soft: #5c5c5c;
  --stone: #2b2b2b;
  --accent: #e0562f;
  --accent-dark: #b8431f;
  --bg: #f5f4f2;
  --card-bg: #ffffff;
  --border: #e2e0dc;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 244, 242, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.logo-text em { font-style: normal; font-weight: 600; color: var(--ink-soft); margin-left: 2px; }

.site-nav { display: flex; gap: 32px; }
.site-nav a { font-size: 15px; font-weight: 600; color: var(--ink-soft); transition: color .15s; }
.site-nav a:hover, .site-nav a.active { color: var(--accent-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { width: 100%; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg svg, .hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,.5) 0%, rgba(26,26,26,.72) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 24px;
  width: 100%;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin-bottom: 32px;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 999px;
  transition: background .15s, transform .15s;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ---------- Page banner (subpages) ---------- */
.page-banner {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}
.page-banner .hero-bg img { object-fit: cover; object-position: center 35%; }
.page-banner-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.page-banner h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }

/* ---------- Home preview sections ---------- */
.preview-section { display: flex; min-height: 440px; }
.preview-section.reverse { flex-direction: row-reverse; }
.preview-media { flex: 1 1 50%; position: relative; }
.preview-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-content {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 72px;
  background: var(--card-bg);
}
.preview-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent-dark); margin-bottom: 14px; }
.preview-content h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.preview-content p { font-size: 15px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 28px; max-width: 420px; }
.preview-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--accent-dark); width: fit-content; }
.preview-link:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: 88px 24px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-desc { color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.6; margin-bottom: 40px; }

.section-about { background: var(--bg); }
.panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
}
.subsection { margin-top: 56px; }
.subsection-title { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.subsection .panel { margin-top: 0; }
.panel > .subsection-title { padding-left: 24px; margin-bottom: 24px; }

.info-table { display: flex; flex-direction: column; }
.info-table > div {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.info-table > div:last-child { border-bottom: none; padding-bottom: 0; }
.info-table dt { width: 96px; flex-shrink: 0; font-weight: 700; color: var(--ink-soft); }
.info-table dd { font-weight: 500; }

.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.timeline-item:last-child { border-bottom: none; padding-bottom: 0; }
.timeline-date { width: 84px; flex-shrink: 0; font-weight: 800; color: var(--accent-dark); }
.timeline-desc { color: var(--ink); }

.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.location-panel h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--accent-dark); }
.location-panel p { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }

/* ---------- Business cards ---------- */
.section-business { background: var(--card-bg); }
.card-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
}
.card-icon { display: inline-flex; width: 48px; height: 48px; color: var(--accent-dark); margin-bottom: 20px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

/* ---------- People values ---------- */
.section-people { background: var(--bg); }
.value-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
}
.value-mark { display: block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.value h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.value p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Placeholder note ---------- */
.section-welfare { background: var(--card-bg); }
.pending-note {
  padding: 24px;
  background: #fdece5;
  border: 1px solid #f6cfc0;
  border-radius: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 40px 24px; }
.footer-inner { max-width: var(--max); margin: 0 auto; font-size: 13px; }
.footer-logo { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-inner p { margin-top: 4px; }
.footer-copy { margin-top: 16px; color: rgba(255,255,255,0.4); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; gap: 28px; }
  .location-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { font-size: 30px; }
  .preview-section, .preview-section.reverse { flex-direction: column; min-height: 0; }
  .preview-media { min-height: 260px; }
  .preview-content { padding: 40px 28px; }
}

@media (max-width: 640px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .hero-content { padding: 72px 24px; }
  .hero h1 { font-size: 26px; }
}
