:root {
  --primary: #6B0504;
  --accent: #CB997E;
  --bg: #FBF6F3;
  --text: #241010;
  --line: #6B0504;
  --line-soft: rgba(107, 5, 4, 0.18);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Paperlogy', 'Malgun Gothic', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  border-bottom: 3px solid var(--primary);
  background: #fff;
}
.header-bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  padding: 10px 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 2px;
}
.site-nav a:hover { color: var(--primary); text-decoration: underline; }

/* Hero */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 16px;
  line-height: 1.3;
  color: var(--text);
}
.hero .lede {
  font-size: 1.05rem;
  margin: 0 0 24px;
}
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--primary);
}
.btn:hover { background: #4d0403; border-color: #4d0403; }

/* Rule-line list layout */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--line-soft);
}
.row:first-of-type { border-top: 3px solid var(--primary); }

.row-label { position: relative; }
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  background: var(--accent);
}

.row-body h2 {
  margin: 0 0 14px;
  font-size: 1.4rem;
  color: var(--primary);
  line-height: 1.4;
}
.row-body p { margin: 0 0 14px; }
.row-body p:last-child { margin-bottom: 0; }
.row-sub { color: #5a4038; font-size: 0.95rem; }

/* Table */
.table-scroll { overflow-x: auto; }
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  margin-top: 8px;
}
caption { text-align: left; }
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
  vertical-align: top;
}
thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-bottom: none;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-soft);
}

.cta-row .btn { margin-top: 8px; }

/* Footer */
footer {
  background: var(--primary);
  color: #f6e9e4;
  padding: 40px 20px 28px;
}
footer nav {
  max-width: 1120px;
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 20px;
}
footer nav a {
  color: #f6e9e4;
  text-decoration: none;
  font-size: 0.92rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
footer nav a:hover { color: var(--accent); text-decoration: underline; }
footer address {
  max-width: 1120px;
  margin: 0 auto;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #f0d8cf;
}
footer address a {
  color: var(--accent);
  font-weight: 700;
}
footer p {
  max-width: 1120px;
  margin: 16px auto 0;
  font-size: 0.82rem;
  color: #ddb6ab;
}

/* Breakpoints */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

@media (max-width: 768px) {
  .row { grid-template-columns: 1fr; gap: 10px; }
  .row-label { display: flex; }
  .gallery { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 28px 16px 24px; }
  .wrap { padding: 0 16px 44px; }
  .header-bar { padding: 12px 16px; }
  .btn { width: 100%; }
  th, td { padding: 10px; font-size: 0.88rem; }
}

@media (min-width: 1280px) {
  .hero, .wrap, .header-bar { max-width: 1200px; }
}
