:root {
  --bg: #FAF7F0;
  --surface: #FFFFFF;
  --surface-alt: #F0ECE1;
  --primary: #1B4D3E;
  --primary-hover: #143A2E;
  --primary-soft: #E6EFEA;
  --accent: #B08228;
  --text: #1E2421;
  --text-muted: #525C57;
  --border: #DCD6C8;
  --header-h: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  padding-top: var(--header-h);
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

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

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

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #F6DE97;
  flex-shrink: 0;
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

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

@media (max-width: 640px) {
  .icon-btn .nav-label {
    display: none;
  }
  .icon-btn {
    padding: 0;
    width: 40px;
  }
  .brand-text-sub {
    display: none;
  }
}

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

.lang-btn {
  border: none;
  background: transparent;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.lang-btn.active {
  background: var(--primary);
  color: #FFFFFF;
}

/* Layout */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  padding: 48px 0 40px;
}

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

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero {
    padding: 28px 0 32px;
  }
}

.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text);
  font-weight: 800;
}

.lead {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.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;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 12px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--primary-soft);
}

.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(27, 77, 62, 0.08);
}

.hero-visual svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.visual-caption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

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

.section-title {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 10px;
  color: var(--text);
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--primary);
}

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

/* Legal / Article pages */
.page-main {
  padding: 36px 0 64px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(20px, 4vw, 36px);
}

.article-card h2 {
  font-size: 20px;
  color: var(--primary);
  margin: 26px 0 10px;
}

.article-card p,
.article-card li {
  font-size: 15px;
  color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 32px 0;
  margin-top: 32px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}
