:root {
  --bg: #faf8f4;
  --bg-soft: #f3efe6;
  --bg-accent: #fdf4f2;
  --bg-accent-strong: #f6dcd6;
  --surface: #ffffff;
  --fg: #1f1b18;
  --fg-secondary: #3f3934;
  --sub: #575049;
  --muted: #6f675e;
  --line: #e6dfd3;
  --line-strong: #d4cab9;
  --accent: #b83728;
  --accent-hover: #992a1d;
  --accent-light: #fdf4f2;
  --indigo: #1e3a5f;
  --indigo-soft: #eef3f9;
  --gold: #a67824;
  --gold-soft: #fbf5e6;
  --success: #047857;
  --success-bg: #ecfdf5;
  --header-h: 68px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(31, 27, 24, 0.05);
  --shadow-md: 0 12px 30px rgba(184, 55, 40, 0.08), 0 4px 12px rgba(31, 27, 24, 0.04);
  --shadow-lg: 0 20px 40px rgba(31, 27, 24, 0.08);
  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.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Language Toggle */
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, border-color 0.15s ease, transform 0.15s ease;
}

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

img, svg {
  max-width: 100%;
  display: block;
}

/* =========================================
   Sticky Header (Never overlaps Hero, Icon-first on mobile)
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(250, 248, 244, 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: 8px;
}

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

.brand:hover {
  color: var(--fg);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid #ead8b1;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

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

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--fg-secondary);
  background: transparent;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

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

.icon-btn:hover {
  background: var(--bg-soft);
  color: var(--accent);
}

/* Tooltip on desktop hover */
.icon-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fg);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 1200;
}

.icon-btn[data-tooltip]:hover::after {
  opacity: 1;
}

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

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

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

@media (max-width: 768px) {
  .brand-badge,
  .nav-label {
    display: none !important;
  }
  .icon-btn {
    width: 40px;
    padding: 0;
  }
}

/* =========================================
   Layout & Sections (Header clearance guaranteed)
   ========================================= */
.page-main {
  padding-top: calc(var(--header-h) + 28px);
}

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

.section {
  padding: 64px 0;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--bg-accent-strong);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-desc {
  font-size: 17px;
  color: var(--sub);
  max-width: 680px;
  margin: 0 0 36px;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  padding: 28px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}

.hero-lead {
  font-size: 18px;
  color: var(--fg-secondary);
  margin: 0 0 28px;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 28px;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(184, 55, 40, 0.25);
  border: none;
  cursor: pointer;
}

.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);
  border: 1.5px solid var(--line-strong);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo);
  background: var(--indigo-soft);
  padding: 6px 12px;
  border-radius: 10px;
}

/* Interactive Studio Preview Card */
.hero-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.crest-stage {
  background: radial-gradient(circle at center, #fffdf9 0%, #f5efe2 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  position: relative;
}

.crest-stage svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
}

.stage-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip-btn {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--fg-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.chip-btn.active,
.chip-btn:hover {
  background: var(--indigo);
  color: #ffffff;
  border-color: var(--indigo);
}

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

/* =========================================
   Cards, Recommender, Pricing, FAQ
   ========================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

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

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}

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

/* Recommender Box */
.recommender-box {
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.recommender-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.recommender-result {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Pricing */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.pricing-card.featured {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
  box-shadow: var(--shadow-md);
}

.price-tag {
  font-size: 34px;
  font-weight: 800;
  color: var(--fg);
  margin: 8px 0 16px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.check-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--fg-secondary);
}

/* Legal & Tables */
article h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 8px;
}

article h2 {
  font-size: 22px;
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

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

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

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

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

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

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 12px;
}

summary {
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

details p {
  margin: 12px 0 0;
  color: var(--sub);
  font-size: 16px;
}

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

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 15px;
  font-weight: 600;
}

.footer-copy {
  font-size: 14px;
  color: var(--muted);
}
