:root {
  --bg: #fcf9f2;
  --bg-soft: #f5efe2;
  --surface: #ffffff;
  --fg: #1f1d1b;
  --fg-secondary: #3e3934;
  --sub: #645c54;
  --line: #e5ddd0;
  --line-strong: #d3c7b6;
  --accent: #c83226;
  --accent-hover: #a6251b;
  --accent-light: #fdf0ee;
  --gold: #b88b22;
  --header-h: 68px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(31, 29, 27, 0.05);
  --shadow-md: 0 12px 30px rgba(200, 50, 38, 0.08), 0 4px 12px rgba(31, 29, 27, 0.04);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* Sticky Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(252, 249, 242, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}

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

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

.brand img {
  border-radius: 10px;
}

.brand-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(200, 50, 38, 0.22);
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--fg-secondary);
  font-size: 14px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.lang-switcher {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--sub);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 9px;
  cursor: pointer;
}

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

/* Main Content (Never overlaps fixed header) */
.page-main {
  padding-top: calc(var(--header-h) + 32px);
}

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

/* Hero Section */
.hero {
  padding: 28px 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(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(200, 50, 38, 0.2);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

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

.hero-lead {
  font-size: 16px;
  color: var(--fg-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: 10px;
  min-height: 54px;
  padding: 14px 26px;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--fg);
  font-size: 15px;
  font-weight: 700;
  border: 1px solid var(--line-strong);
}

.hero-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.seal-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.showcase-caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--sub);
}

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

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

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

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

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

/* Legal & Article */
article h2 {
  font-size: 20px;
  margin: 32px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

article p,
article li {
  font-size: 15px;
  color: var(--fg-secondary);
}

article .meta {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 20px;
}

article .lead {
  font-size: 16px;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

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

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

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

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

.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: 13px;
  color: var(--sub);
}

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

/* Mobile Adjustments */
@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-badge,
  .nav-label {
    display: none;
  }
  .icon-btn {
    padding: 8px 10px;
  }
}
