:root {
  --ss-primary: #1d4ed8;
  --ss-primary-dark: #1e3a8a;
  --ss-primary-light: #eff6ff;
  --ss-secondary: #0f172a;
  --ss-accent: #f59e0b;
  --ss-danger: #dc2626;
  --ss-success: #059669;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-text: #1e293b;
  --ss-text-muted: #64748b;
  --ss-border: #e2e8f0;
  --ss-font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  --ss-container-max: 1160px;
  --ss-radius-sm: 6px;
  --ss-radius-md: 10px;
  --ss-radius-lg: 14px;
  --ss-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --ss-shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--ss-font-sans);
  color: var(--ss-text);
  background: var(--ss-bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--ss-primary); }
a:hover { color: var(--ss-primary-dark); }

.ss-container {
  max-width: var(--ss-container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.ss-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ss-header-bg, rgba(255, 255, 255, 0.96));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ss-header-border, var(--ss-border));
  box-shadow: var(--ss-shadow-sm);
  transition: background 0.2s, border-color 0.2s;
}

.ss-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.ss-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ss-header-text, var(--ss-secondary));
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.ss-brand-badge {
  background: linear-gradient(135deg, var(--ss-primary), var(--ss-primary-dark));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

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

.ss-nav a {
  text-decoration: none;
  color: var(--ss-header-text, var(--ss-text));
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--ss-radius-sm);
  transition: background 0.15s, color 0.15s;
}

.ss-nav a:hover {
  background: var(--ss-header-hover, var(--ss-surface));
  color: var(--ss-header-hover-text, var(--ss-primary));
}

.ss-nav a.ss-nav-cta {
  background: var(--ss-danger);
  color: #fff;
  padding: 7px 14px;
}

.ss-nav a.ss-nav-cta:hover {
  background: #b91c1c;
  color: #fff;
}

/* Main & Typography */
.ss-main { min-height: 65vh; }
.ss-page-body { padding-top: 32px; padding-bottom: 56px; }
.ss-home-body { padding-top: 28px; padding-bottom: 56px; }

h1, h2, h3, h4 {
  color: var(--ss-secondary);
  line-height: 1.35;
  margin-top: 1.6em;
  margin-bottom: 0.7em;
  font-weight: 800;
}

h1 {
  font-size: clamp(24px, 3.2vw, 34px);
  border-bottom: 3px solid var(--ss-primary);
  padding-bottom: 10px;
  margin-top: 0.4em;
}

h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  border-left: 5px solid var(--ss-primary);
  padding-left: 14px;
  background: linear-gradient(90deg, var(--ss-primary-light), transparent);
  padding-top: 6px;
  padding-bottom: 6px;
  border-radius: 0 var(--ss-radius-sm) var(--ss-radius-sm) 0;
}

h3 {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ss-primary-dark);
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.5em; }
li { margin-bottom: 0.45em; }

blockquote {
  margin: 1.2em 0;
  padding: 16px 20px;
  background: var(--ss-surface);
  border-left: 4px solid var(--ss-primary);
  border-radius: 0 var(--ss-radius-md) var(--ss-radius-md) 0;
  color: var(--ss-text);
}

hr.ss-hr {
  border: 0;
  border-top: 1px solid var(--ss-border);
  margin: 2.2em 0;
}

/* Eyecatch Hero - Full Width 100% */
.ss-eyecatch {
  position: relative;
  width: 100%;
  min-height: 520px;
  background-color: #070c18;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  color: #ffffff;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.25);
}

.ss-eyecatch-overlay {
  width: 100%;
  min-height: 520px;
  padding: 60px 0;
  background: linear-gradient(90deg, 
    rgba(7, 12, 24, 0.98) 0%, 
    rgba(7, 12, 24, 0.92) 42%, 
    rgba(7, 12, 24, 0.55) 68%, 
    rgba(7, 12, 24, 0.15) 100%
  );
  display: flex;
  align-items: center;
}

.ss-eyecatch .ss-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.ss-eyecatch .ss-cols {
  display: block;
  margin: 0;
}

.ss-eyecatch .ss-col-7 {
  max-width: 700px;
  width: 100%;
}

.ss-eyecatch .ss-col-5 {
  display: none;
}

.ss-eyecatch-hero-content {
  max-width: 700px;
}

.ss-eyecatch-tagline {
  margin-bottom: 8px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ss-eyecatch-meta {
  color: #38bdf8;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.ss-eyecatch h1,
.ss-eyecatch-hero-content h1 {
  color: #ffffff !important;
  border-bottom: none !important;
  border-left: none !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 0 16px 0 !important;
  font-size: clamp(28px, 3.2vw, 42px) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.ss-eyecatch-desc,
.ss-eyecatch-hero-content p.ss-eyecatch-desc {
  color: #cbd5e1 !important;
  font-size: 15.5px !important;
  line-height: 1.8 !important;
  margin: 0 0 22px 0 !important;
}

.ss-eyecatch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.ss-eyecatch-actions .ss-btn {
  margin: 0;
}

.ss-eyecatch-actions .ss-btn-default {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}
.ss-eyecatch-actions .ss-btn-default:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.ss-eyecatch-checks {
  font-size: 14px;
  color: #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.ss-eyecatch-checks span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.ss-titlebar {
  border-left: 4px solid var(--ss-primary);
  padding: 8px 16px;
  margin: 20px 0 16px;
  background: #f8fafc;
  font-weight: 700;
  color: var(--ss-secondary);
  font-size: 14.5px;
  border-radius: 0 var(--ss-radius-sm) var(--ss-radius-sm) 0;
}

/* Grid & Columns */
.ss-cols {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin: 20px 0;
  align-items: stretch;
}

.ss-col-12 { grid-column: span 12; }
.ss-col-8  { grid-column: span 8; }
.ss-col-7  { grid-column: span 7; }
.ss-col-6  { grid-column: span 6; }
.ss-col-5  { grid-column: span 5; }
.ss-col-4  { grid-column: span 4; }
.ss-col-3  { grid-column: span 3; }

@media (max-width: 860px) {
  .ss-col-8, .ss-col-7, .ss-col-6, .ss-col-5, .ss-col-4, .ss-col-3 {
    grid-column: span 12;
  }
}

/* Cards & Boxes */
.ss-card {
  background: #ffffff;
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-md);
  padding: 20px;
  box-shadow: var(--ss-shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ss-box {
  border-radius: var(--ss-radius-md);
  border: 1px solid var(--ss-border);
  background: var(--ss-surface);
  margin: 18px 0;
  overflow: hidden;
  box-shadow: var(--ss-shadow-sm);
  height: 100%;
}

.ss-box-title {
  font-weight: 800;
  padding: 12px 18px;
  font-size: 16px;
  border-bottom: 1px solid var(--ss-border);
  background: #eff6ff;
  color: var(--ss-primary-dark);
}

.ss-box-alert .ss-box-title {
  background: #fef2f2;
  color: #991b1b;
  border-bottom-color: #fecaca;
}

.ss-box-alert {
  border-color: #fecaca;
  background: #fffafa;
}

.ss-box-info .ss-box-title {
  background: #ecfeff;
  color: #155e75;
}

.ss-box-body {
  padding: 18px 22px;
  display: flow-root;
}

/* Buttons */
.ss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--ss-radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
  margin: 4px;
  min-height: 40px;
}

.ss-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.ss-btn-lg { padding: 14px 28px; font-size: 16px; min-height: 48px; }
.ss-btn-sm { padding: 7px 14px; font-size: 13.5px; min-height: 34px; }
.ss-btn-xs { padding: 5px 10px; font-size: 12px; min-height: 28px; }
.ss-btn-block { display: flex; width: 100%; box-sizing: border-box; text-align: center; justify-content: center; clear: both; }
.ss-box-body > .ss-align-center:last-child { clear: both; padding-top: 14px; margin-bottom: 0; }

.ss-btn-primary { background: var(--ss-primary); color: #fff; }
.ss-btn-primary:hover { background: var(--ss-primary-dark); color: #fff; }

.ss-btn-danger { background: var(--ss-danger); color: #fff; }
.ss-btn-danger:hover { background: #b91c1c; color: #fff; }

.ss-btn-warning { background: var(--ss-accent); color: #0f172a; }
.ss-btn-warning:hover { background: #d97706; color: #fff; }

.ss-btn-success { background: var(--ss-success); color: #fff; }
.ss-btn-success:hover { background: #047857; color: #fff; }

.ss-btn-info { background: #0284c7; color: #fff; }
.ss-btn-info:hover { background: #0369a1; color: #fff; }

.ss-btn-default { background: #ffffff; color: var(--ss-text); border-color: #cbd5e1; }
.ss-btn-default:hover { background: var(--ss-surface); color: var(--ss-secondary); }

/* Labels / Badges */
.label, .ss-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}
.label-primary { background: #dbeafe; color: #1e40af; }
.label-danger  { background: #fee2e2; color: #991b1b; }
.label-success { background: #d1fae5; color: #065f46; }
.label-warning { background: #fef3c7; color: #92400e; }
.label-info    { background: #e0f2fe; color: #075985; }
.label-default { background: #f1f5f9; color: #334155; }

/* Tables */
.ss-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border-radius: var(--ss-radius-md);
  border: 1px solid var(--ss-border);
  box-shadow: var(--ss-shadow-sm);
}

.ss-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: #fff;
}

.ss-table th, .ss-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ss-border);
  border-right: 1px solid var(--ss-border);
  text-align: left;
  vertical-align: top;
}

.ss-table th {
  background: #f1f5f9;
  color: var(--ss-secondary);
  font-weight: 700;
}

.ss-table tr:nth-child(even) td {
  background: #fafcff;
}

/* FAQ & Accordions */
details.ss-faq-item, details.ss-accordion {
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-md);
  margin: 10px 0;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--ss-shadow-sm);
}

details.ss-faq-item summary, details.ss-accordion summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--ss-secondary);
  background: var(--ss-surface);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.ss-faq-item summary::after, details.ss-accordion summary::after {
  content: "＋";
  font-size: 16px;
  color: var(--ss-primary);
}

details[open] summary::after {
  content: "－";
}

.ss-faq-answer, .ss-accordion-body {
  padding: 14px 18px;
  border-top: 1px solid var(--ss-border);
  background: #fff;
}

/* Steps & QA */
.ss-step {
  border-left: 4px solid var(--ss-primary);
  padding: 12px 18px;
  margin: 14px 0;
  background: var(--ss-surface);
  border-radius: 0 var(--ss-radius-md) var(--ss-radius-md) 0;
}

.ss-step-title {
  font-weight: 800;
  color: var(--ss-primary-dark);
  margin-bottom: 6px;
}

.ss-qa {
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-md);
  padding: 16px;
  margin: 14px 0;
  background: #fff;
}

.ss-qa-q { font-weight: 800; color: var(--ss-primary-dark); margin-bottom: 8px; }
.ss-qa-a { color: var(--ss-text); }

/* Utilities */
.ss-align-center { text-align: center; }
.ss-align-left   { text-align: left; }
.ss-align-right  { text-align: right; }
.ss-figure { margin: 18px auto; text-align: center; }
.ss-figure img { border-radius: var(--ss-radius-md); box-shadow: var(--ss-shadow-md); max-width: 100%; height: auto; }
.ss-figure.ss-float-right {
  float: right;
  margin: 6px 0 18px 24px;
  text-align: right;
  max-width: 48%;
}
.ss-figure.ss-float-left {
  float: left;
  margin: 6px 24px 18px 0;
  text-align: left;
  max-width: 48%;
}
.ss-clear {
  clear: both;
}
@media (max-width: 768px) {
  .ss-figure.ss-float-right,
  .ss-figure.ss-float-left {
    float: none;
    margin: 16px auto;
    text-align: center;
    max-width: 100%;
  }
}
.ss-marker { background: linear-gradient(transparent 60%, #fef08a 60%); padding: 0 3px; font-weight: 700; }
.ss-icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--ss-primary-light); color: var(--ss-primary); font-size: 24px; margin-bottom: 8px; }
.ss-toc { background: var(--ss-surface); border: 1px solid var(--ss-border); border-radius: var(--ss-radius-md); padding: 16px 20px; margin: 16px 0; }

/* Contact Form */
.ss-form {
  background: var(--ss-surface);
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-lg);
  padding: 28px;
  max-width: 720px;
  margin: 24px auto;
}
.ss-form-group { margin-bottom: 18px; }
.ss-form-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14.5px; }
.ss-form-group input, .ss-form-group select, .ss-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--ss-radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}

/* Footer */
.ss-footer {
  background: var(--ss-secondary);
  color: #cbd5e1;
  padding: 48px 0 0;
  margin-top: 48px;
  font-size: 14px;
}

.ss-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 36px;
}

@media (max-width: 860px) {
  .ss-footer-grid { grid-template-columns: 1fr; }
}

.ss-footer-brand { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.ss-footer-desc { color: #94a3b8; font-size: 13.5px; line-height: 1.7; }
.ss-footer-meta { color: #cbd5e1; font-size: 13px; margin-top: 10px; }
.ss-footer-heading { font-weight: 700; color: #fff; margin-bottom: 12px; font-size: 15px; }
.ss-footer-links { list-style: none; padding: 0; margin: 0; }
.ss-footer-links li { margin-bottom: 8px; }
.ss-footer-links a { color: #cbd5e1; text-decoration: none; }
.ss-footer-links a:hover { color: #38bdf8; text-decoration: underline; }

.ss-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

/* ==========================================================================
   SmartSite 🎨 モダンデザイン・テーマ別スキントークン (9 Variations)
   ========================================================================== */

/* 1. 標準ナチュラル (smart_seed) */
body[data-theme-style="smart_seed"], body:not([data-theme-style]) {
  --ss-primary: #0284c7;
  --ss-primary-dark: #0369a1;
  --ss-primary-light: #f0f9ff;
  --ss-secondary: #0f172a;
  --ss-accent: #0284c7;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 6px;
  --ss-radius-md: 10px;
}

/* 2. フラットデザイン (smart_flat) */
body[data-theme-style="smart_flat"] {
  --ss-primary: #0d9488;
  --ss-primary-dark: #0f766e;
  --ss-primary-light: #f0fdfa;
  --ss-secondary: #134e4a;
  --ss-accent: #14b8a6;
  --ss-bg: #ffffff;
  --ss-surface: #f7faf9;
  --ss-radius-sm: 2px;
  --ss-radius-md: 4px;
}

/* 3. クール・先進 (smart_cool) */
body[data-theme-style="smart_cool"] {
  --ss-primary: #2563eb;
  --ss-primary-dark: #1d4ed8;
  --ss-primary-light: #eff6ff;
  --ss-secondary: #0f172a;
  --ss-accent: #38bdf8;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 4px;
  --ss-radius-md: 8px;
}

/* 4. オーガニック・自然 (smart_bio) */
body[data-theme-style="smart_bio"] {
  --ss-primary: #16a34a;
  --ss-primary-dark: #15803d;
  --ss-primary-light: #f0fdf4;
  --ss-secondary: #14532d;
  --ss-accent: #84cc16;
  --ss-bg: #fcfdfa;
  --ss-surface: #f4f7f2;
  --ss-radius-sm: 10px;
  --ss-radius-md: 16px;
}

/* 5. ポップ・活気 (smart_pop) */
body[data-theme-style="smart_pop"] {
  --ss-primary: #ea580c;
  --ss-primary-dark: #c2410c;
  --ss-primary-light: #fff7ed;
  --ss-secondary: #7c2d12;
  --ss-accent: #f59e0b;
  --ss-bg: #ffffff;
  --ss-surface: #fffbeb;
  --ss-radius-sm: 12px;
  --ss-radius-md: 20px;
}

/* 6. ファブリック・クラフト (smart_fabric) */
body[data-theme-style="smart_fabric"] {
  --ss-primary: #b45309;
  --ss-primary-dark: #92400e;
  --ss-primary-light: #fffbeb;
  --ss-secondary: #451a03;
  --ss-accent: #d97706;
  --ss-bg: #faf8f5;
  --ss-surface: #f5f0e8;
  --ss-radius-sm: 6px;
  --ss-radius-md: 10px;
}

/* 7. きなこ・和モダン (smart_kinako) */
body[data-theme-style="smart_kinako"] {
  --ss-primary: #854d0e;
  --ss-primary-dark: #713f12;
  --ss-primary-light: #fefce8;
  --ss-secondary: #292524;
  --ss-accent: #ca8a04;
  --ss-bg: #faf7f2;
  --ss-surface: #f4efe6;
  --ss-radius-sm: 3px;
  --ss-radius-md: 6px;
}

/* 8. moi + Nordic (smart_nordic) */
body[data-theme-style="smart_nordic"] {
  --ss-primary: #475569;
  --ss-primary-dark: #334155;
  --ss-primary-light: #f8fafc;
  --ss-secondary: #1e293b;
  --ss-accent: #0284c7;
  --ss-bg: #f8fafc;
  --ss-surface: #f1f5f9;
  --ss-radius-sm: 8px;
  --ss-radius-md: 14px;
}

/* 9. TENT Outdoor (smart_tent) */
body[data-theme-style="smart_tent"] {
  --ss-primary: #15803d;
  --ss-primary-dark: #166534;
  --ss-primary-light: #f0fdf4;
  --ss-secondary: #1c1917;
  --ss-accent: #d97706;
  --ss-bg: #fbfbfa;
  --ss-surface: #f3f3f0;
  --ss-radius-sm: 4px;
  --ss-radius-md: 8px;
}

/* --- 1. 学校・法人・ビジネス向け --- */
body[data-theme-style="quark"] {
  --ss-primary: #6366f1;
  --ss-primary-dark: #4f46e5;
  --ss-primary-light: #eef2ff;
  --ss-secondary: #1e1b4b;
  --ss-accent: #8b5cf6;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 6px;
  --ss-radius-md: 10px;
}
body[data-theme-style="deliver"] {
  --ss-primary: #0f2b48;
  --ss-primary-dark: #071626;
  --ss-primary-light: #f0f4f8;
  --ss-secondary: #0a192f;
  --ss-accent: #ea580c;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 4px;
  --ss-radius-md: 8px;
}
body[data-theme-style="openmatter"] {
  --ss-primary: #003366;
  --ss-primary-dark: #002244;
  --ss-primary-light: #e6f0fa;
  --ss-secondary: #1a252f;
  --ss-accent: #c0392b;
  --ss-bg: #ffffff;
  --ss-surface: #f4f6f9;
  --ss-radius-sm: 3px;
  --ss-radius-md: 6px;
}
body[data-theme-style="antimatter"] {
  --ss-primary: #2c3e50;
  --ss-primary-dark: #1a252f;
  --ss-primary-light: #ecf0f1;
  --ss-secondary: #2c3e50;
  --ss-accent: #1abc9c;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 4px;
  --ss-radius-md: 6px;
}
body[data-theme-style="mache"] {
  --ss-primary: #0284c7;
  --ss-primary-dark: #0369a1;
  --ss-primary-light: #f0f9ff;
  --ss-secondary: #0f172a;
  --ss-accent: #0ea5e9;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 0px;
  --ss-radius-md: 2px;
}
body[data-theme-style="landio"] {
  --ss-primary: #059669;
  --ss-primary-dark: #047857;
  --ss-primary-light: #ecfdf5;
  --ss-secondary: #064e3b;
  --ss-accent: #10b981;
  --ss-bg: #ffffff;
  --ss-surface: #f0fdf4;
  --ss-radius-sm: 8px;
  --ss-radius-md: 14px;
}
body[data-theme-style="editorial"] {
  --ss-primary: #b91c1c;
  --ss-primary-dark: #991b1b;
  --ss-primary-light: #fef2f2;
  --ss-secondary: #1e293b;
  --ss-accent: #ef4444;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 4px;
  --ss-radius-md: 8px;
}
body[data-theme-style="myriad"] {
  --ss-primary: #1e3a8a;
  --ss-primary-dark: #172554;
  --ss-primary-light: #eff6ff;
  --ss-secondary: #1e293b;
  --ss-accent: #3b82f6;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 4px;
  --ss-radius-md: 8px;
}

/* --- 2. 1ページLP・相談窓口向け --- */
body[data-theme-style="agency"] {
  --ss-primary: #f59e0b;
  --ss-primary-dark: #d97706;
  --ss-primary-light: #fffbeb;
  --ss-secondary: #212529;
  --ss-accent: #fed136;
  --ss-bg: #ffffff;
  --ss-surface: #f8f9fa;
  --ss-radius-sm: 4px;
  --ss-radius-md: 8px;
}
body[data-theme-style="twenty"] {
  --ss-primary: #0284c7;
  --ss-primary-dark: #0369a1;
  --ss-primary-light: #f0f9ff;
  --ss-secondary: #1e293b;
  --ss-accent: #38bdf8;
  --ss-bg: #ffffff;
  --ss-surface: #ffffff;
  --ss-radius-sm: 6px;
  --ss-radius-md: 12px;
}
body[data-theme-style="bigpicture"] {
  --ss-primary: #3b82f6;
  --ss-primary-dark: #2563eb;
  --ss-primary-light: #eff6ff;
  --ss-secondary: #0f172a;
  --ss-accent: #60a5fa;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 8px;
  --ss-radius-md: 16px;
}
body[data-theme-style="soratemplates"] {
  --ss-primary: #4f46e5;
  --ss-primary-dark: #4338ca;
  --ss-primary-light: #eef2ff;
  --ss-secondary: #1e1b4b;
  --ss-accent: #10b981;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 6px;
  --ss-radius-md: 10px;
}
body[data-theme-style="spatial"] {
  --ss-primary: #475569;
  --ss-primary-dark: #334155;
  --ss-primary-light: #f8fafc;
  --ss-secondary: #0f172a;
  --ss-accent: #0ea5e9;
  --ss-bg: #ffffff;
  --ss-surface: #f1f5f9;
  --ss-radius-sm: 10px;
  --ss-radius-md: 18px;
}
body[data-theme-style="grayscale"] {
  --ss-primary: #212529;
  --ss-primary-dark: #000000;
  --ss-primary-light: #e9ecef;
  --ss-secondary: #212529;
  --ss-accent: #6c757d;
  --ss-bg: #ffffff;
  --ss-surface: #f8f9fa;
  --ss-radius-sm: 2px;
  --ss-radius-md: 4px;
}

/* --- 3. ポータル・マニュアル・Q&A向け --- */
body[data-theme-style="learn2"] {
  --ss-primary: #0284c7;
  --ss-primary-dark: #0369a1;
  --ss-primary-light: #f0f9ff;
  --ss-secondary: #334155;
  --ss-accent: #38bdf8;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 4px;
  --ss-radius-md: 6px;
}
body[data-theme-style="knowledgebase"] {
  --ss-primary: #2563eb;
  --ss-primary-dark: #1d4ed8;
  --ss-primary-light: #eff6ff;
  --ss-secondary: #0f172a;
  --ss-accent: #059669;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 6px;
  --ss-radius-md: 10px;
}
body[data-theme-style="bones"] {
  --ss-primary: #1e293b;
  --ss-primary-dark: #0f172a;
  --ss-primary-light: #f1f5f9;
  --ss-secondary: #334155;
  --ss-accent: #64748b;
  --ss-bg: #ffffff;
  --ss-surface: #fafafa;
  --ss-radius-sm: 2px;
  --ss-radius-md: 4px;
}

/* --- 4. お知らせ・ブログ・メディア向け --- */
body[data-theme-style="future2021"] {
  --ss-primary: #2563eb;
  --ss-primary-dark: #1d4ed8;
  --ss-primary-light: #eff6ff;
  --ss-secondary: #0f172a;
  --ss-accent: #f59e0b;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 6px;
  --ss-radius-md: 10px;
}
body[data-theme-style="mundana"] {
  --ss-primary: #0f172a;
  --ss-primary-dark: #020617;
  --ss-primary-light: #f8fafc;
  --ss-secondary: #1e293b;
  --ss-accent: #0284c7;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 6px;
  --ss-radius-md: 10px;
}
body[data-theme-style="chalk"] {
  --ss-primary: #334155;
  --ss-primary-dark: #1e293b;
  --ss-primary-light: #f1f5f9;
  --ss-secondary: #0f172a;
  --ss-accent: #b45309;
  --ss-bg: #fafaf9;
  --ss-surface: #f5f5f4;
  --ss-radius-sm: 4px;
  --ss-radius-md: 8px;
}
body[data-theme-style="striped"] {
  --ss-primary: #1e293b;
  --ss-primary-dark: #0f172a;
  --ss-primary-light: #f1f5f9;
  --ss-secondary: #0f172a;
  --ss-accent: #ea580c;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 6px;
  --ss-radius-md: 10px;
}
body[data-theme-style="lingonberry"] {
  --ss-primary: #e11d48;
  --ss-primary-dark: #be123c;
  --ss-primary-light: #fff1f2;
  --ss-secondary: #1e293b;
  --ss-accent: #f43f5e;
  --ss-bg: #ffffff;
  --ss-surface: #fff1f2;
  --ss-radius-sm: 10px;
  --ss-radius-md: 18px;
}
body[data-theme-style="mediumish"] {
  --ss-primary: #0284c7;
  --ss-primary-dark: #0369a1;
  --ss-primary-light: #f0f9ff;
  --ss-secondary: #0f172a;
  --ss-accent: #0f766e;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 6px;
  --ss-radius-md: 10px;
}
body[data-theme-style="cleanblog"] {
  --ss-primary: #0085a1;
  --ss-primary-dark: #00657b;
  --ss-primary-light: #e6f6f9;
  --ss-secondary: #212529;
  --ss-accent: #0085a1;
  --ss-bg: #ffffff;
  --ss-surface: #f8f9fa;
  --ss-radius-sm: 4px;
  --ss-radius-md: 8px;
}

/* --- 5. 写真ギャラリー・ビジュアル重視 --- */
body[data-theme-style="multiverse"] {
  --ss-primary: #38bdf8;
  --ss-primary-dark: #0284c7;
  --ss-primary-light: #0f172a;
  --ss-secondary: #f8fafc;
  --ss-accent: #38bdf8;
  --ss-bg: #0f172a;
  --ss-surface: #1e293b;
  --ss-text: #f1f5f9;
  --ss-text-muted: #94a3b8;
  --ss-border: #334155;
  --ss-radius-sm: 4px;
  --ss-radius-md: 8px;
}
body[data-theme-style="phantom"] {
  --ss-primary: #4f46e5;
  --ss-primary-dark: #4338ca;
  --ss-primary-light: #eef2ff;
  --ss-secondary: #0f172a;
  --ss-accent: #ec4899;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 8px;
  --ss-radius-md: 14px;
}
body[data-theme-style="gateway"] {
  --ss-primary: #1e3a8a;
  --ss-primary-dark: #172554;
  --ss-primary-light: #eff6ff;
  --ss-secondary: #0f172a;
  --ss-accent: #f59e0b;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 6px;
  --ss-radius-md: 10px;
}

/* --- 6. Tailwind / フレームワークベース --- */
body[data-theme-style="tailwind"] {
  --ss-primary: #4f46e5;
  --ss-primary-dark: #3730a3;
  --ss-primary-light: #eef2ff;
  --ss-secondary: #111827;
  --ss-accent: #06b6d4;
  --ss-bg: #ffffff;
  --ss-surface: #f9fafb;
  --ss-radius-sm: 6px;
  --ss-radius-md: 12px;
}
body[data-theme-style="gantry5"] {
  --ss-primary: #2563eb;
  --ss-primary-dark: #1d4ed8;
  --ss-primary-light: #eff6ff;
  --ss-secondary: #0f172a;
  --ss-accent: #f97316;
  --ss-bg: #ffffff;
  --ss-surface: #f8fafc;
  --ss-radius-sm: 4px;
  --ss-radius-md: 8px;
}

/* ==========================================================================
   SmartSite 🧭 ナビゲーションバーのスタイル (5 Styles)
   ========================================================================== */

/* 丸角ピル・ボタン型 */
.ss-nav-style-pills .ss-nav a {
  border-radius: 9999px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.05);
  transition: transform 0.15s, background 0.15s;
}
.ss-nav-style-pills .ss-nav a:hover {
  transform: translateY(-2px);
  background: var(--ss-primary-light);
  color: var(--ss-primary);
}
.ss-nav-style-pills .ss-nav a.ss-nav-cta {
  background: var(--ss-primary);
  color: #fff;
}
.ss-nav-style-pills .ss-nav a.ss-nav-cta:hover {
  background: var(--ss-primary-dark);
}

/* 完全非表示 (メニューなし) */
.ss-nav-style-none .ss-nav {
  display: none !important;
}

/* ハンバーガーのみ */
.ss-nav-style-hamburger .ss-nav {
  display: none;
}
.ss-nav-style-hamburger .ss-header-inner {
  justify-content: space-between;
}
.ss-nav-hamburger-trigger {
  display: none;
  background: var(--ss-surface);
  border: 1px solid var(--ss-border);
  color: inherit;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.2;
}
.ss-nav-style-hamburger .ss-nav-hamburger-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  order: 2;
}
.ss-nav-style-hamburger .ss-header.ss-nav-open .ss-nav {
  display: flex;
  order: 3;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 10px 0 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

@media (max-width: 900px) {
  .ss-header-inner {
    min-height: 54px;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .ss-brand {
    font-size: 17px;
    order: 1;
  }
  body:not(.ss-nav-style-none) .ss-nav-hamburger-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    order: 2;
  }
  body:not(.ss-nav-style-none) .ss-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 0 6px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
  }
  body:not(.ss-nav-style-none) .ss-header.ss-nav-open .ss-nav {
    display: flex;
  }
  body:not(.ss-nav-style-none) .ss-nav a {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 8px;
  }
  body:not(.ss-nav-style-none) .ss-nav a.ss-nav-cta {
    text-align: center;
    margin-top: 4px;
  }
}

/* ==========================================================================
   SmartSite 🎨 ナビゲーションバーの配色プリセット (8 Presets)
   ========================================================================== */

.ss-header-preset-white {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0;
}
.ss-header-preset-white .ss-brand-name,
.ss-header-preset-white .ss-nav a {
  color: #1e293b !important;
}

.ss-header-preset-corporate_blue {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8) !important;
  border-bottom: none;
}
.ss-header-preset-corporate_blue .ss-brand-name,
.ss-header-preset-corporate_blue .ss-nav a {
  color: #ffffff !important;
}
.ss-header-preset-corporate_blue .ss-nav a:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

.ss-header-preset-dark_navy {
  background: #0f172a !important;
  border-bottom: 1px solid #1e293b;
}
.ss-header-preset-dark_navy .ss-brand-name,
.ss-header-preset-dark_navy .ss-nav a {
  color: #f8fafc !important;
}
.ss-header-preset-dark_navy .ss-nav a:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

.ss-header-preset-botanical_green {
  background: linear-gradient(135deg, #14532d, #166534) !important;
  border-bottom: none;
}
.ss-header-preset-botanical_green .ss-brand-name,
.ss-header-preset-botanical_green .ss-nav a {
  color: #ffffff !important;
}
.ss-header-preset-botanical_green .ss-nav a:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

.ss-header-preset-warm_orange {
  background: linear-gradient(135deg, #c2410c, #ea580c) !important;
  border-bottom: none;
}
.ss-header-preset-warm_orange .ss-brand-name,
.ss-header-preset-warm_orange .ss-nav a {
  color: #ffffff !important;
}
.ss-header-preset-warm_orange .ss-nav a:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

.ss-header-preset-black {
  background: #000000 !important;
  border-bottom: 1px solid #27272a;
}
.ss-header-preset-black .ss-brand-name,
.ss-header-preset-black .ss-nav a {
  color: #ffffff !important;
}
.ss-header-preset-black .ss-nav a:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

.ss-header-preset-pastel_pink {
  background: #fdf2f8 !important;
  border-bottom: 1px solid #fbcfe8;
}
.ss-header-preset-pastel_pink .ss-brand-name,
.ss-header-preset-pastel_pink .ss-nav a {
  color: #831843 !important;
}
.ss-header-preset-pastel_pink .ss-nav a:hover {
  background: #fce7f3 !important;
}

/* ========================================================
   SmartSite CMS: Omajinai Enhanced Styles
   ======================================================== */
.ss-code-block {
  background: #0f172a;
  color: #f8fafc;
  padding: 14px 18px;
  border-radius: var(--ss-radius-md);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 16px 0;
  box-shadow: var(--ss-shadow-sm);
  border: 1px solid #1e293b;
}
.ss-code-block code {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  font-size: inherit !important;
  font-family: inherit !important;
}

.ss-box-warning {
  border-color: #fde68a !important;
  background: #fffbeb !important;
}
.ss-box-warning .ss-box-title {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-bottom-color: #fde68a !important;
}

.ss-box-success {
  border-color: #bbf7d0 !important;
  background: #f0fdf4 !important;
}
.ss-box-success .ss-box-title {
  background: #dcfce7 !important;
  color: #166534 !important;
  border-bottom-color: #bbf7d0 !important;
}

.ss-marker-yellow { background: linear-gradient(transparent 60%, #fef08a 60%); padding: 0 4px; border-radius: 2px; }
.ss-marker-pink   { background: linear-gradient(transparent 60%, #fbcfe8 60%); padding: 0 4px; border-radius: 2px; }
.ss-marker-blue   { background: linear-gradient(transparent 60%, #bae6fd 60%); padding: 0 4px; border-radius: 2px; }
.ss-marker-green  { background: linear-gradient(transparent 60%, #bbf7d0 60%); padding: 0 4px; border-radius: 2px; }
.ss-marker-orange { background: linear-gradient(transparent 60%, #fed7aa 60%); padding: 0 4px; border-radius: 2px; }

.ss-spot-card {
  background: #ffffff;
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-lg);
  padding: 24px;
  margin: 20px 0;
  box-shadow: var(--ss-shadow-md);
}
.ss-spot-card .ss-spot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ss-primary);
}
.ss-spot-card .ss-spot-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ss-text-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ss-telbtn-wrap {
  text-align: center;
  margin: 22px 0;
}
.ss-telbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ss-telbtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.ss-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.ss-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ss-qa-accordion {
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-md);
  margin: 12px 0;
  background: #ffffff;
  overflow: hidden;
}
.ss-qa-accordion summary {
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  color: #1e293b;
}
.ss-qa-accordion summary:hover {
  background: #f1f5f9;
}
.ss-qa-badge-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0284c7;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
}
.ss-qa-badge-a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}


/* ==========================================================================
   Theme-Specific Stylesheet Overrides (Typography, Header, Layout, Cards)
   ========================================================================== */

/* 1. Corporate & Authoritative (Dark Navy Header + Sharp Structure) */
body[data-theme-style="smart_cool"],
body[data-theme-style="deliver"],
body[data-theme-style="openmatter"],
body[data-theme-style="future2021"] {
  --ss-header-bg: #0f172a;
  --ss-header-text: #f8fafc;
  --ss-header-border: #1e293b;
  --ss-header-hover: rgba(255, 255, 255, 0.12);
  --ss-header-hover-text: #38bdf8;
}
body[data-theme-style="smart_cool"] h2,
body[data-theme-style="deliver"] h2,
body[data-theme-style="openmatter"] h2,
body[data-theme-style="future2021"] h2 {
  border-left: 6px solid var(--ss-primary);
  border-bottom: 2px solid var(--ss-border);
  background: var(--ss-surface);
  padding: 10px 16px;
  border-radius: 4px;
}

/* 2. Japanese Classic & Editorial (Mincho/Serif Font + Classic Borders) */
body[data-theme-style="smart_kinako"],
body[data-theme-style="smart_fabric"],
body[data-theme-style="editorial"],
body[data-theme-style="mundana"],
body[data-theme-style="twenty"] {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  letter-spacing: 0.02em;
}
body[data-theme-style="smart_kinako"] h1,
body[data-theme-style="smart_fabric"] h1,
body[data-theme-style="editorial"] h1,
body[data-theme-style="mundana"] h1,
body[data-theme-style="twenty"] h1 {
  border-bottom: 3px double var(--ss-primary);
  text-align: center;
  padding-bottom: 14px;
}
body[data-theme-style="smart_kinako"] h2,
body[data-theme-style="smart_fabric"] h2,
body[data-theme-style="editorial"] h2,
body[data-theme-style="mundana"] h2,
body[data-theme-style="twenty"] h2 {
  border-left: none;
  border-bottom: 2px double var(--ss-primary);
  background: transparent;
  padding: 8px 0;
  border-radius: 0;
}
body[data-theme-style="smart_kinako"] .ss-header,
body[data-theme-style="smart_fabric"] .ss-header {
  border-top: 4px solid var(--ss-primary);
  --ss-header-bg: rgba(250, 247, 242, 0.96);
}
body[data-theme-style="smart_kinako"] .ss-card,
body[data-theme-style="smart_fabric"] .ss-card,
body[data-theme-style="smart_kinako"] .ss-box,
body[data-theme-style="smart_fabric"] .ss-box {
  border-radius: 2px;
  box-shadow: none;
  border: 1px solid #d6cfc2;
}

/* 3. Luxury Dark Mode (Grayscale & Agency) */
body[data-theme-style="grayscale"],
body[data-theme-style="agency"] {
  --ss-bg: #0b1120;
  --ss-surface: #1e293b;
  --ss-text: #e2e8f0;
  --ss-text-muted: #94a3b8;
  --ss-secondary: #ffffff;
  --ss-border: #334155;
  --ss-primary-light: rgba(56, 189, 248, 0.14);
  --ss-header-bg: rgba(15, 23, 42, 0.96);
  --ss-header-text: #f8fafc;
  --ss-header-border: #1e293b;
  --ss-header-hover: rgba(255, 255, 255, 0.1);
  --ss-header-hover-text: #38bdf8;
}
body[data-theme-style="grayscale"] .ss-card,
body[data-theme-style="agency"] .ss-card,
body[data-theme-style="grayscale"] .ss-box,
body[data-theme-style="agency"] .ss-box,
body[data-theme-style="grayscale"] .ss-faq-item,
body[data-theme-style="agency"] .ss-faq-item,
body[data-theme-style="grayscale"] table td,
body[data-theme-style="agency"] table td {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
body[data-theme-style="grayscale"] h3,
body[data-theme-style="agency"] h3 {
  color: #38bdf8;
}

/* 4. Blackboard / School (Chalk) */
body[data-theme-style="chalk"] {
  --ss-header-bg: #143326;
  --ss-header-text: #f8fafc;
  --ss-header-border: #1e4d3a;
  --ss-header-hover: rgba(255, 255, 255, 0.12);
  --ss-header-hover-text: #fde047;
}
body[data-theme-style="chalk"] h2 {
  background: #143326;
  color: #ffffff;
  border-left: 6px solid #f59e0b;
  padding: 10px 16px;
  border-radius: 6px;
}

/* 5. Flat Minimal (No Shadows, Sharp Corners) */
body[data-theme-style="smart_flat"],
body[data-theme-style="antimatter"],
body[data-theme-style="bones"],
body[data-theme-style="spatial"] {
  --ss-shadow-sm: none;
  --ss-shadow-md: none;
  --ss-radius-sm: 2px;
  --ss-radius-md: 2px;
}
body[data-theme-style="smart_flat"] .ss-card,
body[data-theme-style="antimatter"] .ss-card,
body[data-theme-style="bones"] .ss-card,
body[data-theme-style="spatial"] .ss-card,
body[data-theme-style="smart_flat"] .ss-box,
body[data-theme-style="antimatter"] .ss-box {
  box-shadow: none !important;
  border-width: 2px !important;
  border-radius: 2px !important;
}
body[data-theme-style="smart_flat"] h2,
body[data-theme-style="antimatter"] h2,
body[data-theme-style="bones"] h2,
body[data-theme-style="spatial"] h2 {
  border-left: none;
  border-bottom: 3px solid var(--ss-primary);
  background: transparent;
  padding: 6px 0;
  border-radius: 0;
}

/* 6. Pop, Friendly & Rounded (Pill Buttons + Soft Curves) */
body[data-theme-style="smart_pop"],
body[data-theme-style="smart_bio"],
body[data-theme-style="smart_nordic"],
body[data-theme-style="smart_tent"] {
  --ss-header-bg: var(--ss-primary-light);
}
body[data-theme-style="smart_pop"] .ss-btn,
body[data-theme-style="smart_bio"] .ss-btn,
body[data-theme-style="smart_nordic"] .ss-btn {
  border-radius: 999px !important;
}
body[data-theme-style="smart_pop"] .ss-card,
body[data-theme-style="smart_bio"] .ss-card,
body[data-theme-style="smart_nordic"] .ss-card {
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07) !important;
}
body[data-theme-style="smart_pop"] h2,
body[data-theme-style="smart_bio"] h2,
body[data-theme-style="smart_nordic"] h2 {
  border-left: none;
  background: var(--ss-primary-light);
  border: 2px solid var(--ss-primary);
  padding: 8px 18px;
  border-radius: 999px;
  display: inline-block;
}

/* 7. Landing Page / High-Impact (Centered Headings + Bold Buttons) */
body[data-theme-style="mache"],
body[data-theme-style="landio"],
body[data-theme-style="myriad"],
body[data-theme-style="bigpicture"] {
  --ss-header-bg: rgba(255, 255, 255, 0.98);
}
body[data-theme-style="mache"] h2,
body[data-theme-style="landio"] h2,
body[data-theme-style="myriad"] h2,
body[data-theme-style="bigpicture"] h2 {
  text-align: center;
  border-left: none;
  background: transparent;
  padding: 10px 0;
  border-bottom: 3px solid var(--ss-primary);
  letter-spacing: 0.04em;
}
body[data-theme-style="mache"] .ss-btn,
body[data-theme-style="landio"] .ss-btn {
  border-radius: 999px !important;
  padding-left: 24px;
  padding-right: 24px;
}

/* 8. Portal & Documentation (Accent Top Bar + Structured Cards) */
body[data-theme-style="learn2"] .ss-header,
body[data-theme-style="knowledgebase"] .ss-header,
body[data-theme-style="striped"] .ss-header,
body[data-theme-style="soratemplates"] .ss-header {
  border-top: 4px solid var(--ss-primary);
}

/* Alias & Full 30-Theme Catalog Sync */
body[data-theme-style="bootstrap4-open-matter"] {
  --ss-primary: #2563eb; --ss-primary-dark: #1d4ed8; --ss-primary-light: #eff6ff; --ss-secondary: #0f172a; --ss-accent: #38bdf8; --ss-bg: #ffffff; --ss-surface: #f8fafc;
  --ss-header-bg: #0f172a; --ss-header-text: #f8fafc; --ss-header-border: #1e293b; --ss-header-hover: rgba(255,255,255,0.12); --ss-header-hover-text: #38bdf8;
}
body[data-theme-style="knowledge-base"] {
  --ss-primary: #16a34a; --ss-primary-dark: #15803d; --ss-primary-light: #f0fdf4; --ss-secondary: #14532d; --ss-accent: #22c55e; --ss-bg: #ffffff; --ss-surface: #f8fafc;
}
body[data-theme-style="knowledge-base"] .ss-header { border-top: 4px solid var(--ss-primary); }
body[data-theme-style="clean-blog"] {
  --ss-primary: #0085a1; --ss-primary-dark: #00657b; --ss-primary-light: #e6f6f9; --ss-secondary: #212529; --ss-accent: #0085a1; --ss-bg: #ffffff; --ss-surface: #f8f9fa;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
}
body[data-theme-style="clean-blog"] h2 { border-left: none; border-bottom: 2px double var(--ss-primary); background: transparent; padding: 8px 0; border-radius: 0; }
body[data-theme-style="ceevee"] {
  --ss-primary: #f97316; --ss-primary-dark: #ea580c; --ss-primary-light: #fff7ed; --ss-secondary: #0f172a; --ss-accent: #fb923c; --ss-bg: #ffffff; --ss-surface: #f8fafc;
  --ss-header-bg: #18181b; --ss-header-text: #f8fafc; --ss-header-border: #27272a; --ss-header-hover: rgba(255,255,255,0.12); --ss-header-hover-text: #fb923c;
}
body[data-theme-style="learn2-git-sync"] {
  --ss-primary: #0d9488; --ss-primary-dark: #0f766e; --ss-primary-light: #f0fdfa; --ss-secondary: #134e4a; --ss-accent: #14b8a6; --ss-bg: #ffffff; --ss-surface: #f8fafc;
}
body[data-theme-style="learn2-git-sync"] .ss-header { border-top: 4px solid var(--ss-primary); }
body[data-theme-style="multiverse"] {
  --ss-primary: #8b5cf6; --ss-primary-dark: #7c3aed; --ss-primary-light: rgba(139,92,246,0.15); --ss-secondary: #ffffff; --ss-accent: #a78bfa;
  --ss-bg: #0f172a; --ss-surface: #1e293b; --ss-text: #e2e8f0; --ss-border: #334155;
  --ss-header-bg: rgba(15,23,42,0.96); --ss-header-text: #f8fafc; --ss-header-border: #1e293b;
}
body[data-theme-style="multiverse"] .ss-card, body[data-theme-style="multiverse"] .ss-box { background: #1e293b !important; color: #e2e8f0 !important; border-color: #334155 !important; }
body[data-theme-style="phantom"] {
  --ss-primary: #f43f5e; --ss-primary-dark: #e11d48; --ss-primary-light: #fff1f2; --ss-secondary: #0f172a; --ss-accent: #fb7185; --ss-bg: #ffffff; --ss-surface: #f8fafc;
  --ss-shadow-sm: none; --ss-shadow-md: none; --ss-radius-sm: 2px; --ss-radius-md: 2px;
}
body[data-theme-style="gateway"] {
  --ss-primary: #0369a1; --ss-primary-dark: #075985; --ss-primary-light: #f0f9ff; --ss-secondary: #0f172a; --ss-accent: #0284c7; --ss-bg: #ffffff; --ss-surface: #f8fafc;
}
body[data-theme-style="tailwind"] {
  --ss-primary: #06b6d4; --ss-primary-dark: #0891b2; --ss-primary-light: #ecfeff; --ss-secondary: #0f172a; --ss-accent: #22d3ee; --ss-bg: #ffffff; --ss-surface: #f8fafc;
}
body[data-theme-style="tailwind"] .ss-btn { border-radius: 999px !important; }
body[data-theme-style="gantry5"] {
  --ss-primary: #4f46e5; --ss-primary-dark: #4338ca; --ss-primary-light: #eef2ff; --ss-secondary: #1e1b4b; --ss-accent: #6366f1; --ss-bg: #ffffff; --ss-surface: #f8fafc;
  --ss-header-bg: #1e1b4b; --ss-header-text: #ffffff; --ss-header-border: #312e81;
}

/* ==========================================================================
   True Layout Structure Transformations (2-Col Sidebar, Centered, LP, Boxed)
   ========================================================================== */

/* Layout A: 2-Column Fixed Left Sidebar + Right Main Content */
@media (min-width: 640px) {
  body[data-theme-style="editorial"],
  body[data-theme-style="learn2"],
  body[data-theme-style="learn2-git-sync"],
  body[data-theme-style="knowledge-base"],
  body[data-theme-style="striped"],
  body[data-theme-style="bones"] {
    padding-left: 220px;
  }
  body[data-theme-style="editorial"] .ss-header,
  body[data-theme-style="learn2"] .ss-header,
  body[data-theme-style="learn2-git-sync"] .ss-header,
  body[data-theme-style="knowledge-base"] .ss-header,
  body[data-theme-style="striped"] .ss-header,
  body[data-theme-style="bones"] .ss-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 220px;
    border-right: 1px solid var(--ss-header-border, var(--ss-border));
    border-bottom: none;
    box-shadow: 4px 0 20px rgba(15, 23, 42, 0.06);
    overflow-y: auto;
  }
  body[data-theme-style="editorial"] .ss-header-inner,
  body[data-theme-style="learn2"] .ss-header-inner,
  body[data-theme-style="learn2-git-sync"] .ss-header-inner,
  body[data-theme-style="knowledge-base"] .ss-header-inner,
  body[data-theme-style="striped"] .ss-header-inner,
  body[data-theme-style="bones"] .ss-header-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 20px 14px;
    gap: 16px;
    height: 100%;
  }
  body[data-theme-style="editorial"] .ss-nav,
  body[data-theme-style="learn2"] .ss-nav,
  body[data-theme-style="learn2-git-sync"] .ss-nav,
  body[data-theme-style="knowledge-base"] .ss-nav,
  body[data-theme-style="striped"] .ss-nav,
  body[data-theme-style="bones"] .ss-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }
  body[data-theme-style="editorial"] .ss-nav a,
  body[data-theme-style="learn2"] .ss-nav a,
  body[data-theme-style="learn2-git-sync"] .ss-nav a,
  body[data-theme-style="knowledge-base"] .ss-nav a,
  body[data-theme-style="striped"] .ss-nav a,
  body[data-theme-style="bones"] .ss-nav a {
    padding: 8px 10px;
    border-radius: 7px;
    display: block;
    font-size: 13px;
  }
  body[data-theme-style="editorial"] .ss-nav a.ss-nav-cta,
  body[data-theme-style="learn2"] .ss-nav a.ss-nav-cta,
  body[data-theme-style="learn2-git-sync"] .ss-nav a.ss-nav-cta,
  body[data-theme-style="knowledge-base"] .ss-nav a.ss-nav-cta,
  body[data-theme-style="striped"] .ss-nav a.ss-nav-cta,
  body[data-theme-style="bones"] .ss-nav a.ss-nav-cta {
    margin-top: 10px;
    text-align: center;
  }
}
@media (min-width: 1024px) {
  body[data-theme-style="editorial"],
  body[data-theme-style="learn2"],
  body[data-theme-style="learn2-git-sync"],
  body[data-theme-style="knowledge-base"],
  body[data-theme-style="striped"],
  body[data-theme-style="bones"] {
    padding-left: 260px;
  }
  body[data-theme-style="editorial"] .ss-header,
  body[data-theme-style="learn2"] .ss-header,
  body[data-theme-style="learn2-git-sync"] .ss-header,
  body[data-theme-style="knowledge-base"] .ss-header,
  body[data-theme-style="striped"] .ss-header,
  body[data-theme-style="bones"] .ss-header {
    width: 260px;
  }
}

/* Layout B: Centered Logo & Nav + Focused Editorial Reading Column */
body[data-theme-style="twenty"] .ss-header-inner,
body[data-theme-style="mundana"] .ss-header-inner,
body[data-theme-style="clean-blog"] .ss-header-inner,
body[data-theme-style="mediumish"] .ss-header-inner,
body[data-theme-style="lingonberry"] .ss-header-inner,
body[data-theme-style="smart_kinako"] .ss-header-inner,
body[data-theme-style="smart_fabric"] .ss-header-inner {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 14px;
  padding-bottom: 10px;
  gap: 8px;
}
body[data-theme-style="twenty"] .ss-nav,
body[data-theme-style="mundana"] .ss-nav,
body[data-theme-style="clean-blog"] .ss-nav,
body[data-theme-style="mediumish"] .ss-nav,
body[data-theme-style="lingonberry"] .ss-nav,
body[data-theme-style="smart_kinako"] .ss-nav,
body[data-theme-style="smart_fabric"] .ss-nav {
  justify-content: center;
}
body[data-theme-style="twenty"] .ss-main .ss-container,
body[data-theme-style="mundana"] .ss-main .ss-container,
body[data-theme-style="clean-blog"] .ss-main .ss-container,
body[data-theme-style="mediumish"] .ss-main .ss-container,
body[data-theme-style="lingonberry"] .ss-main .ss-container,
body[data-theme-style="smart_kinako"] .ss-main .ss-container,
body[data-theme-style="smart_fabric"] .ss-main .ss-container {
  max-width: 820px;
}

/* Layout C: Diagonal Cut Hero LP */
body[data-theme-style="mache"] .ss-eyecatch,
body[data-theme-style="landio"] .ss-eyecatch,
body[data-theme-style="myriad"] .ss-eyecatch {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  padding-bottom: 64px !important;
}

/* Layout D: Full-Canvas Floating Content Sheet */
body[data-theme-style="bigpicture"],
body[data-theme-style="multiverse"],
body[data-theme-style="phantom"],
body[data-theme-style="spatial"],
body[data-theme-style="grayscale"],
body[data-theme-style="agency"] {
  background-image: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.08), transparent 45%), radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08), transparent 45%);
}
body[data-theme-style="bigpicture"] .ss-main,
body[data-theme-style="multiverse"] .ss-main,
body[data-theme-style="phantom"] .ss-main,
body[data-theme-style="spatial"] .ss-main,
body[data-theme-style="grayscale"] .ss-main,
body[data-theme-style="agency"] .ss-main {
  max-width: 1060px;
  margin: 24px auto 40px;
  background: var(--ss-bg);
  border: 1px solid var(--ss-border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}
