:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-soft: #f3efe8;
  --text: #1f1c18;
  --text-muted: #5b5349;
  --gold: #b8860b;
  --gold-dark: #936806;
  --gold-soft: #fff7e2;
  --border: #e5dfd5;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(31, 28, 24, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

/* Language visibility */
body.lang-en .t-ja { display: none !important; }
body.lang-ja .t-en { display: none !important; }

a {
  color: var(--gold-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d4af37, #936806);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  flex-shrink: 0;
}

.brand-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  border: 1px solid #edd99f;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  position: relative;
}

.icon-btn:hover {
  background: var(--surface-soft);
  text-decoration: none;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.lang-switcher {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.lang-btn.active {
  background: var(--gold);
  color: #ffffff;
}

/* Hero Section */
.hero {
  padding: 36px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  background: var(--gold-soft);
  border: 1px solid #edd99f;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.18;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #c99714, #9b6f07);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(184, 134, 11, 0.25);
  transition: transform 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: 14px;
}

.btn-secondary:hover {
  background: var(--surface-soft);
  text-decoration: none;
}

.hero-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.hero-caption {
  padding: 12px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

/* Sections */
.section {
  padding: 36px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin: 0 0 8px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 22px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 14px rgba(31, 28, 24, 0.03);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Legal & Article pages */
.page-main {
  padding: 28px 0 56px;
}

.legal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.legal-box h2 {
  font-size: 19px;
  margin: 22px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.legal-box h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.legal-box p,
.legal-box li {
  font-size: 15px;
  color: #36312b;
}

.legal-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Footer */
.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Mobile */
@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .brand-badge,
  .nav-label {
    display: none;
  }
  .hero-visual img {
    height: 260px;
  }
}
