:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-accent: #eff6ff;
  --bg-teal: #f0fdfa;
  --bg-gold: #fffbeb;
  --surface: #ffffff;
  --fg: #0f172a;
  --fg-secondary: #334155;
  --sub: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-light: #eff6ff;
  --teal: #0f766e;
  --teal-bg: #f0fdfa;
  --gold: #b45309;
  --gold-bg: #fef3c7;
  --success: #059669;
  --success-bg: #ecfdf5;
  --header-h: 68px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(29, 78, 216, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 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;
}

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 {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* =========================================
   Sticky Header (Icon-first on mobile)
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  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: 18px;
  color: var(--fg);
  letter-spacing: -0.02em;
  min-width: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

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

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

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

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

/* Tooltip on hover */
.icon-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--fg);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: var(--shadow-sm);
  z-index: 1100;
}

.icon-btn[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-left: 4px;
}

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

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

@media (max-width: 820px) {
  .brand-badge {
    display: none !important;
  }
  .icon-btn .nav-label {
    display: none !important;
  }
  .icon-btn {
    width: 40px;
    padding: 0;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
  }
}

/* =========================================
   Layout Containers & Sections
   ========================================= */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-main {
  padding-top: calc(var(--header-h) + 32px);
}

section {
  padding: 64px 0;
}

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

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

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

.section-head h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

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

/* =========================================
   Hero Section (Bright & Clear, Never Under Header)
   ========================================= */
.hero {
  padding-top: calc(var(--header-h) + 36px);
  padding-bottom: 64px;
  background:
    radial-gradient(circle at 88% 18%, rgba(29, 78, 216, 0.08), transparent 42%),
    radial-gradient(circle at 12% 75%, rgba(15, 118, 110, 0.07), transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

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

.hero h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: var(--fg);
}

.hero-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg-secondary);
  margin: 0 0 24px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-secondary);
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.24);
}

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

.btn-secondary {
  background: #ffffff;
  color: var(--fg);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

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

.cta-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* Interactive Studio Preview Card */
.studio-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.studio-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.studio-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-secondary);
}

.studio-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--teal-bg);
  color: var(--teal);
  border: 1px solid #99f6e4;
}

.svg-stage {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #f0fdfa 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#rosette-svg {
  width: 100%;
  max-width: 310px;
  height: auto;
  display: block;
}

.studio-controls {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-secondary);
}

.control-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
  cursor: pointer;
}

.symmetry-tabs {
  display: flex;
  gap: 6px;
}

.sym-btn {
  flex: 1;
  min-height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--fg-secondary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

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

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

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

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

@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: 24px;
  box-shadow: var(--shadow-sm);
}

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

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

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

/* Recommender Tabs */
.rec-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.rec-tab {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--fg-secondary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.rec-tab.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.2);
}

.rec-panel {
  display: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.rec-panel.active {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

@media (max-width: 768px) {
  .rec-panel.active {
    grid-template-columns: 1fr;
  }
}

.rec-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.rec-tag {
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--fg-secondary);
}

/* Comparison / Pricing Table */
.table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

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

tr:last-child td {
  border-bottom: none;
}

.badge-free {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
}

.badge-pro {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gold-bg);
  color: var(--gold);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.faq-item summary {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--sub);
}

/* Legal / Document Pages */
.meta {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
}

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

article h2 {
  font-size: 21px;
  margin: 32px 0 10px;
  color: var(--fg);
}

article ul {
  padding-left: 22px;
  color: var(--fg-secondary);
}

article li {
  margin-bottom: 8px;
  font-size: 15px;
}

code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 14px;
}

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

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

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