:root {
  --bg: #0b1020;
  --bg-elev: #131b33;
  --bg-card: #182240;
  --border: rgba(255, 255, 255, 0.11);
  --text: #f3f6ff;
  --text-muted: #9eb0d6;
  --accent: #f5b731;
  --accent-ink: #1a1300;
  --blue: #4ea1ff;
  --green: #38d399;
  --radius: 16px;
  --maxw: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 18% 0%, #19264d 0%, var(--bg) 52%);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(11, 16, 32, 0.82);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

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

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

.lang-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245, 183, 49, 0.12);
  border: 1px solid rgba(245, 183, 49, 0.34);
  margin-bottom: 16px;
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-muted {
  opacity: 0.9;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-card {
  background: linear-gradient(180deg, rgba(24, 34, 64, 0.92), rgba(14, 21, 41, 0.95));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  margin-bottom: 14px;
}

.hero-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

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

.section {
  padding: 36px 0;
}

.section-title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.3;
}

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

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

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

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

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

.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shot figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

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

.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.faq-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

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

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.doc-article {
  padding: 40px 0 64px;
}

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

.doc-box h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.doc-box h2 {
  margin: 26px 0 8px;
  font-size: 18px;
  color: var(--text);
}

.doc-box p,
.doc-box li {
  color: var(--text-muted);
  font-size: 14px;
}

.doc-box ul {
  padding-left: 20px;
  margin: 8px 0;
}

.doc-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

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

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

html:not(.lang-en) [data-lang="en"] {
  display: none !important;
}

html.lang-en [data-lang="ja"] {
  display: none !important;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .doc-box,
  .panel {
    padding: 20px;
  }
  .nav {
    gap: 10px;
  }
}
