:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-accent: #eff6ff;
  --bg-accent-strong: #dbeafe;
  --surface: #ffffff;
  --fg: #0f172a;
  --fg-secondary: #334155;
  --sub: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --orange: #ea580c;
  --orange-hover: #c2410c;
  --success: #15803d;
  --success-bg: #dcfce7;
  --header-h: 68px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 28px rgba(29, 78, 216, 0.08), 0 4px 12px rgba(15, 23, 42, 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", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }

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

/* Sticky Header (Icon-first on mobile, never overlaps Hero) */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--fg);
  flex-shrink: 0;
}

.brand-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-accent);
  border: 1px solid var(--bg-accent-strong);
  padding: 3px 10px;
  border-radius: 999px;
}

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

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

.icon-btn:hover { background: var(--bg-soft); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

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

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

.lang-btn.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

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

/* Main container safely below fixed header */
.page-main {
  padding-top: calc(var(--header-h) + 24px);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-accent);
  border: 1px solid var(--bg-accent-strong);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 17px;
  color: var(--sub);
  margin: 0 0 20px;
}

.hero-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

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

.hero-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--sub);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

/* Prominent CTA Buttons (>=16px) */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-hover); color: #fff; }
.btn-outline { background: var(--surface); color: var(--accent); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); }

/* Sections & Cards */
.section { padding: 48px 0 8px; }
.section-title { font-size: clamp(22px, 3vw, 28px); margin: 0 0 8px; }
.section-sub { color: var(--sub); margin: 0 0 24px; font-size: 16px; }

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

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

@media (max-width: 820px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

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

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

.spot-link-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}

.spot-link-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.spot-link-card img { width: 100%; height: 160px; object-fit: cover; }
.spot-link-card .body { padding: 14px 16px; }

/* Legal Document Tables */
article h2 { margin-top: 32px; font-size: 20px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
article table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
article th, article td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
article th { background: var(--bg-soft); }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* Footer */
.site-footer {
  margin-top: 64px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--sub);
  font-size: 14px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

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