:root {
  --bg-paper: #fbf8f1;
  --bg-card: #ffffff;
  --bg-alt: #f2ece0;
  --ink-primary: #231f1e;
  --ink-secondary: #5b534b;
  --emerald: #1b6b52;
  --emerald-hover: #145440;
  --gold: #a67c1e;
  --border: #e2dacb;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

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

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

body.lang-en .t-ja { display: none !important; }
body.lang-ja .t-en { display: none !important; }

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

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

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

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

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--emerald);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 6px 10px;
  border-radius: 8px;
}
.nav-link:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.lang-switcher {
  display: inline-flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
}
.lang-btn.active {
  background: var(--emerald);
  color: #fff;
}

/* Main & Hero */
.page-main {
  padding-top: 28px;
}

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

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(27, 107, 82, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

h1 {
  font-family: Georgia, "Noto Serif JP", serif;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.22;
  margin: 0 0 16px;
  color: var(--ink-primary);
}

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

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--emerald);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--emerald-hover);
  text-decoration: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-card);
  color: var(--emerald);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1.5px solid var(--emerald);
}
.btn-secondary:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(35, 31, 30, 0.06);
}

.hero-caption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-secondary);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 44px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  font-family: Georgia, "Noto Serif JP", serif;
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 10px;
}

.section-sub {
  font-size: 16px;
  color: var(--ink-secondary);
  margin: 0 0 26px;
}

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

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

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

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

.planet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.planet-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.planet-glyph {
  font-size: 24px;
  color: var(--emerald);
  font-weight: 700;
}

.planet-name {
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0;
}

.planet-meta {
  font-size: 14px;
  color: var(--ink-secondary);
}

/* Legal / Policy Tables */
article h2 {
  font-family: Georgia, "Noto Serif JP", serif;
  font-size: 22px;
  margin: 32px 0 10px;
}

article p, article li {
  font-size: 16px;
  color: var(--ink-primary);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

th {
  background: var(--bg-alt);
  font-weight: 700;
}

.meta {
  font-size: 14px;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--ink-secondary);
}

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

@media (max-width: 820px) {
  .hero-grid,
  .cards-3 {
    grid-template-columns: 1fr;
  }
  .hide-mobile {
    display: none;
  }
}
