/* ===== まるまえ — layout.css ===== */

/* ===== HEADER ===== */
header {
  background: var(--bark);
  border-bottom: 3px solid var(--sand);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-area {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.logo-jp {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: .18em;
}
.logo-en {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--sand);
  text-transform: uppercase;
  font-weight: 300;
}
nav.nav { display: flex; gap: 2px; }
nav.nav a {
  color: rgba(247,241,227,.72);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  letter-spacing: .04em;
  transition: .2s;
}
nav.nav a:hover { color: var(--ivory); background: rgba(255,255,255,.1); text-decoration: none; }
nav.nav a.active { color: var(--sand-light); font-weight: 500; }

/* ===== PAGE WRAP ===== */
.page-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 44px 24px 80px;
}

/* ===== SECTION HEADING ===== */
.section-en {
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--bark);
  letter-spacing: .08em;
  padding-left: 16px;
  position: relative;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: .12em;
  bottom: .12em;
  width: 4px;
  background: var(--rust);
  border-radius: 2px;
}

/* ===== DIVIDER LABEL ===== */
.divider-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.divider-line { flex: 1; height: 1px; background: var(--ivory-dark); }
.divider-text {
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bark);
  border-top: 3px solid var(--sand);
  padding: 30px 24px 22px;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
}
.footer-links a {
  font-size: 12px;
  color: rgba(247,241,227,.6);
  text-decoration: none;
  padding: 4px 10px;
  border-right: 1px solid rgba(247,241,227,.18);
  letter-spacing: .04em;
}
.footer-links a:last-child { border-right: none; }
.footer-links a:hover { color: var(--sand-light); text-decoration: none; }
.footer-copy { font-size: 12px; color: rgba(247,241,227,.4); letter-spacing: .08em; }

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
    gap: 8px;
  }
  nav.nav { flex-wrap: wrap; justify-content: center; gap: 2px; }
  .page-main { padding: 32px 16px 64px; }
}
