/* ==========================================================================
   KumiSlide Editorial & SEO Design System (Vanilla CSS, Zero External CDN)
   ========================================================================== */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-subtle: #eff3f8;
  --border: #dce3ee;
  --border-strong: #c2cede;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #526071;
  --brand: #0b2545;
  --brand-ink: #ffffff;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #dbeafe;
  --success: #065f46;
  --success-bg: #d1fae5;
  --warn: #92400e;
  --warn-bg: #fef3c7;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 28px -6px rgba(11, 37, 69, 0.09), 0 2px 6px rgba(11, 37, 69, 0.04);
  --shadow-slide: 0 18px 42px -10px rgba(11, 37, 69, 0.16), 0 2px 8px rgba(11, 37, 69, 0.06);
  --max-w: 1160px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover {
  color: var(--accent-hover);
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Hiragino Kaku Gothic ProN", monospace;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

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

/* Header Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand-link:hover {
  color: var(--brand);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 600;
}

.nav-links a {
  color: var(--ink-secondary);
}
.nav-links a:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-subtle);
}
.lang-switch a, .lang-switch span {
  padding: 5px 9px;
  color: var(--muted);
}
.lang-switch .active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
}
.btn-primary:hover {
  background: #143662;
  color: var(--brand-ink);
}
.btn-accent {
  background: var(--accent);
  color: #ffffff;
}
.btn-accent:hover {
  background: var(--accent-hover);
  color: #ffffff;
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}
.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
}
.btn-lg {
  padding: 13px 24px;
  font-size: 15.5px;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--border-strong);
}

/* Hero Section */
.hero {
  padding: 44px 0 48px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
    gap: 42px;
  }
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.26;
  letter-spacing: -0.02em;
  color: var(--brand);
  font-weight: 800;
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-secondary);
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.hero-trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* Slide Specimen Frame (Responsive 960x540 scaler) */
.slide-preview-shell {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-slide);
  background: #ffffff;
}

.slide-virtual {
  width: 960px;
  height: 540px;
  position: relative;
  overflow: hidden;
  transform-origin: top left;
  user-select: none;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}

.slide-preview-shell .slide-virtual {
  position: absolute;
  top: 0;
  left: 0;
}

/* Content Sections */
.section {
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}
.section-white {
  background: var(--surface);
}

.section-header {
  max-width: 760px;
  margin-bottom: 28px;
}
.section-header h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--brand);
}
.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* Grids & Cards (Clean 1px borders, no colored border-left clichés) */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.grid-4 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 680px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.card {
  color: inherit;
}
a.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.card h3 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.4;
  color: var(--brand);
}
.card p {
  margin: 0;
  font-size: 13.8px;
  color: var(--muted);
  line-height: 1.65;
}
.card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-subtle);
  color: var(--ink-secondary);
}

/* Interactive Demo Box on SEO Tool Pages */
.demo-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}
@media (min-width: 920px) {
  .demo-workbench {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: start;
  }
}

.sample-textarea {
  width: 100%;
  min-height: 220px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}

.prompt-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}
.prompt-box pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  font-size: 12.8px;
  line-height: 1.65;
  color: var(--ink-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 600px;
}
.data-table th, .data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  background: var(--surface-subtle);
  color: var(--brand);
  font-weight: 700;
}
.data-table tr:last-child td {
  border-bottom: none;
}

/* Prose / Legal / Guide Articles */
.prose {
  max-width: 820px;
}
.prose h1 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--brand);
  margin: 0 0 14px;
  line-height: 1.3;
}
.prose h2 {
  font-size: 20px;
  color: var(--brand);
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.prose h3 {
  font-size: 16.5px;
  color: var(--ink);
  margin: 24px 0 8px;
}
.prose p, .prose li {
  color: var(--ink-secondary);
  font-size: 14.8px;
  line-height: 1.8;
}
.prose ul, .prose ol {
  padding-left: 22px;
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.faq-q {
  font-weight: 700;
  color: var(--brand);
  font-size: 15px;
  margin: 0 0 6px;
}
.faq-a {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.7;
}

/* Policy-Safe Editorial Ad Container (Strictly separated from interactive controls) */
.editorial-ad-section {
  margin: 40px auto;
  padding: 20px;
  max-width: 780px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}
.editorial-ad-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  font-size: 13px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer-col h3 {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 700;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-col a {
  color: var(--muted);
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Cookie / CMP Consent Banner (Shown only when ads/analytics enabled) */
.cmp-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-slide);
  padding: 16px 20px;
  z-index: 90;
  display: none;
}
.cmp-banner.visible {
  display: block;
}
