/* =========================================
   Solidra — 3D CAD Software Homepage
   Solidra Redesign
   ========================================= */

/* ---------- Imports ---------- */

/* ---------- Custom Properties ---------- */
:root {
  /* Palette: Black + White + Blue accent */
  --color-black: #000000;
  --color-dark: #111111;
  --color-dark-2: #1a1a1a;
  --color-dark-3: #222222;
  --color-dark-4: #2a2a2a;
  --color-gray-dark: #333333;
  --color-gray: #666666;
  --color-gray-light: #999999;
  --color-gray-border: #e0e0e0;
  --color-gray-bg: #f5f5f5;
  --color-white: #ffffff;

  /* Solidra Blue */
  --color-accent: #2d8cf0;
  --color-accent-light: #4da6ff;
  --color-accent-dark: #1a6fd4;
  --color-accent-subtle: rgba(45, 140, 240, 0.08);
  --color-accent-glow: rgba(45, 140, 240, 0.15);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Typography */
  --font-heading: 'Outfit', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
  --font-body: 'Inter', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;

  /* Radius — sharp/minimal */
  --radius-none: 0;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;

  /* Shadows — Subtle, corporate */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-white);
  color: var(--color-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

/* ---------- Utility ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================
   HEADER — Dual-layer nav
   ========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-black);
  border-bottom: 1px solid var(--color-dark-3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 56px;
}

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

.logo img {
  width: 36px;
  height: 36px;
  display: block;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-link {
  font-size: 0.85rem;
  color: var(--color-gray-light);
  transition: var(--transition-fast);
  cursor: pointer;
}

.header-link:hover {
  color: var(--color-white);
}

/* Buttons — sharp, outlined on dark */
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-black);
}

.btn-filled-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--color-accent);
  color: var(--color-white);
  border: 1px solid var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn-filled-accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

/* Sub-navigation (sticky) — section tabs */
.sub-nav {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-border);
  transform: translateY(-100%);
  opacity: 0;
  transition: var(--transition-base);
}

.sub-nav.visible {
  transform: translateY(0);
  opacity: 1;
}

.sub-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 48px;
}

.sub-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark);
}

.sub-nav-brand img {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
}

.sub-nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}

.sub-nav-links a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--space-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-gray);
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}

.sub-nav-links a:hover {
  color: var(--color-dark);
}

.sub-nav-links a.active {
  color: var(--color-dark);
  border-bottom-color: var(--color-dark);
  font-weight: 600;
}

.sub-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: transparent;
  color: var(--color-dark);
  border: 1px solid var(--color-dark);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn-outline-dark:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

.btn-filled-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--color-dark);
  color: var(--color-white);
  border: 1px solid var(--color-dark);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn-filled-dark:hover {
  background: var(--color-black);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition: var(--transition-base);
}

/* ==========================================
   HERO — Dark background
   ========================================== */
.hero {
  position: relative;
  background: var(--color-black);
  padding-top: 56px;
  overflow: hidden;
}

.hero-main {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 480px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl) var(--space-2xl) var(--space-2xl) 0;
  padding-left: max(var(--space-lg), calc((100vw - 1400px) / 2 + var(--space-lg)));
}

.hero-product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-md);
}

.hero-product-badge img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
}

.hero-product-badge span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-accent-light);
  background: rgba(45, 140, 240, 0.12);
  border: 1px solid rgba(45, 140, 240, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 2.9vw, 2.4rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

/* 言葉の途中で折り返さないよう、まとまりごとにだけ改行する */
.hero-title span {
  display: inline-block;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--color-gray-light);
  line-height: 1.7;
  margin-bottom: var(--space-xs);
}

.hero-credit {
  font-size: 0.75rem;
  color: var(--color-gray);
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}

.download-os-links a {
  color: inherit;
  text-decoration: underline;
}

.download-os-links a:hover {
  color: var(--color-white);
}

.hero-contact-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--color-accent-light);
  transition: var(--transition-fast);
  cursor: pointer;
}

.hero-contact-link:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

/* ---------- Pricing Block (in hero) ---------- */
.hero-pricing {
  background: var(--color-dark-2);
  border-top: 1px solid var(--color-dark-3);
}

.hero-pricing-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.pricing-header-label {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-align: center;
}

.pricing-toggle-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: var(--color-dark-4);
  padding: 4px;
  border-radius: 999px;
  max-width: 380px;
  margin: 0 auto var(--space-lg) auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-toggle-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-gray-light);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.pricing-toggle-btn:hover {
  color: var(--color-white);
}

.pricing-toggle-btn.active {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 2px 10px rgba(45, 140, 240, 0.35);
}

.pricing-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.pricing-card-mini {
  background: var(--color-dark-3);
  border: 1px solid var(--color-dark-4);
  padding: var(--space-md);
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card-mini:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.pricing-card-mini.selected {
  border-color: var(--color-accent);
  background: var(--color-dark-4);
  box-shadow: 0 4px 20px rgba(45, 140, 240, 0.15);
}

.pricing-card-mini .plan-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pricing-card-mini .plan-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-white);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-card-mini .plan-price .period {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-gray-light);
}

.pricing-card-mini .plan-note {
  font-size: 0.75rem;
  color: var(--color-gray);
  margin-top: 4px;
  line-height: 1.5;
}

.pricing-card-mini .plan-features {
  margin-top: var(--space-sm);
  padding-top: var(--space-xs);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.pricing-card-mini .plan-features li {
  font-size: 0.76rem;
  color: var(--color-gray-light);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}

.pricing-card-mini .plan-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}

.pricing-card-mini .plan-features li.highlight {
  color: var(--color-accent-light);
  font-weight: 600;
}

.pricing-card-mini .plan-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-dark-2);
  color: var(--color-gray-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
}

.pricing-card-mini .plan-badge.badge-standard {
  background: var(--color-accent-dark);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.pricing-card-mini .plan-badge.badge-pro {
  background: linear-gradient(135deg, #1a6fd4, #2d8cf0);
  border-color: var(--color-accent-light);
  color: var(--color-white);
  box-shadow: 0 2px 6px rgba(45, 140, 240, 0.3);
}

.pricing-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-dark-4);
}

.pricing-compare-cta {
  text-align: center;
  padding: var(--space-md) 0 var(--space-xs) 0;
}

.pricing-compare-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent-light);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 20px;
  background: rgba(45, 140, 240, 0.12);
  border: 1px solid rgba(45, 140, 240, 0.3);
  border-radius: 999px;
  transition: var(--transition-base);
}

.pricing-compare-link:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 140, 240, 0.3);
}

.plan-selector {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-gray-light);
}

.plan-selector label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--color-white);
}

.plan-selector input[type="radio"] {
  accent-color: var(--color-accent);
}

.pricing-total {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-shrink: 0;
}

.pricing-total .total-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-white);
}

.pricing-total .total-price .total-detail {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-gray-light);
  white-space: nowrap;
}

.btn-cart {
  padding: 10px 28px;
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn-cart:hover {
  background: var(--color-gray-bg);
}

.btn-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--color-white);
}

/* Trust badges row */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-dark-4);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--color-gray-light);
}

.trust-badge-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ==========================================
   WHITE SECTIONS — Clean
   ========================================== */
.section-white {
  background: var(--color-white);
  padding: var(--space-4xl) 0;
}

.section-gray {
  background: var(--color-gray-bg);
  padding: var(--space-4xl) 0;
}

.section-dark {
  background: var(--color-dark-2);
  padding: var(--space-4xl) 0;
}

/* About section — "とは" */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.about-desc {
  font-size: 0.95rem;
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.about-features-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.about-features-list li {
  font-size: 0.9rem;
  color: var(--color-gray-dark);
  line-height: 1.7;
  padding-left: 1.5rem;
  position: relative;
}

.about-features-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 1.2rem;
  line-height: 1.5;
}

.about-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-gray-border);
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
  transition: var(--transition-fast);
}

.about-link:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

.about-link svg {
  width: 14px;
  height: 14px;
}

.about-video-container {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-video-container img,
.about-video-container video {
  width: 100%;
  display: block;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
}

.video-play-btn:hover {
  background: var(--color-accent);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--color-white);
  margin-left: 3px;
}

.video-thumbnails {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.video-thumbnails img {
  width: calc((100% - 20px) / 6);
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  opacity: 0.7;
  cursor: pointer;
  transition: var(--transition-fast);
}

.video-thumbnails img:hover,
.video-thumbnails img.active {
  opacity: 1;
}

.video-caption {
  font-size: 0.8rem;
  color: var(--color-gray);
  margin-top: var(--space-xs);
}

/* ==========================================
   BENEFITS CARDS — 3-column
   ========================================== */
.section-title-left {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: var(--space-xl);
}

.section-title-left.white {
  color: var(--color-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.benefit-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  padding: var(--space-xl);
  transition: var(--transition-base);
}

.benefit-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.benefit-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-xs);
}

.benefit-desc {
  font-size: 0.88rem;
  color: var(--color-gray);
  line-height: 1.7;
}

/* Gray background cards */
.benefit-card-gray {
  background: var(--color-gray-bg);
  border: 1px solid var(--color-gray-border);
  padding: var(--space-xl);
  transition: var(--transition-base);
}

.benefit-card-gray:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

/* ==========================================
   FEATURE SHOWCASE — alternating image+text
   ========================================== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-4xl);
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-media {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-media img {
  width: 100%;
  display: block;
}

.feature-badge-standard {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: var(--space-xs);
}

.feature-badge-pro {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #1a6fd4 0%, #2d8cf0 100%);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: var(--space-xs);
  box-shadow: 0 2px 8px rgba(45, 140, 240, 0.25);
}

.feature-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.feature-pro-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem !important;
  font-weight: 600;
  color: var(--color-accent-dark) !important;
  background: var(--color-accent-subtle);
  border: 1px solid rgba(45, 140, 240, 0.2);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  margin-bottom: var(--space-md);
}

.feature-content p,
.feature-content li {
  font-size: 0.9rem;
  color: var(--color-gray);
  line-height: 1.8;
}

.feature-content ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.feature-content ul li {
  padding-left: 1.3rem;
  position: relative;
}

.feature-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 1.2rem;
}

.btn-outline-dark-lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: transparent;
  color: var(--color-dark);
  border: 1px solid var(--color-dark);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn-outline-dark-lg:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

/* ==========================================
   RESOURCES — 3-column cards
   ========================================== */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.resource-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  transition: var(--transition-base);
}

.resource-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.resource-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.resource-link--soon,
.resource-link--soon:hover {
  color: var(--color-gray);
  cursor: default;
}

.resource-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.resource-desc {
  font-size: 0.85rem;
  color: var(--color-gray);
  line-height: 1.7;
  flex: 1;
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-gray-border);
  transition: var(--transition-fast);
}

.resource-link svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.resource-link:hover {
  color: var(--color-accent-dark);
}

/* ==========================================
   FAQ — Accordion
   ========================================== */
.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--color-gray-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  stroke: currentColor;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 800px;
  padding-bottom: var(--space-md);
}

.faq-answer p {
  font-size: 0.88rem;
  color: var(--color-gray);
  line-height: 1.8;
}

/* ==========================================
   CTA BANNER — Vault/Data management style
   ========================================== */
.cta-banner {
  background: var(--color-dark-2);
  padding: var(--space-3xl) 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.cta-media {
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-media img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta-content p {
  font-size: 0.9rem;
  color: var(--color-gray-light);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  max-width: 640px;
}

/* ==========================================
   FOOTER — Dark, multi-column
   ========================================== */
.site-footer {
  background: var(--color-black);
  color: var(--color-gray-light);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--color-gray);
  line-height: 1.7;
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-gray);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-dark-3);
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--color-gray);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.footer-social a:hover {
  color: var(--color-white);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .hero-main { grid-template-columns: 1fr; }
  .hero-text {
    padding: var(--space-3xl) var(--space-lg);
    text-align: center;
    align-items: center;
  }
  .hero-image { max-height: 350px; }
  .hero-actions { align-items: center; }
  .hero-contact-links { justify-content: center; }

  .pricing-cards-row { grid-template-columns: 1fr; }
  .pricing-summary { flex-direction: column; gap: var(--space-md); align-items: flex-start; }
  .trust-badges { grid-template-columns: repeat(2, 1fr); }

  .about-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse { direction: ltr; }

  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .sub-nav-links { display: none; }
  .sub-nav-actions { display: none; }

  .cta-grid { grid-template-columns: 1fr; text-align: center; }
  .cta-media { margin: 0 auto; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .header-right { display: none; }
  .header-right.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-dark-2);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-dark-3);
  }

  .benefits-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
  .trust-badges { grid-template-columns: 1fr; }
  .video-thumbnails { display: none; }

  .pricing-toggle-btn { font-size: 0.72rem; padding: 8px; white-space: normal; }
  .pricing-total .total-price .total-detail { white-space: normal; }
  .pricing-total { flex-direction: column; align-items: stretch; gap: var(--space-sm); width: 100%; }
  .btn-cart { width: 100%; }
}

/* 日本語を文節で改行し、見出しやボタンで1〜2文字だけ次の行に残らないようにする */
h1, h2, h3, h4,
button, .btn-outline-dark, .btn-filled-dark, .th-plan-btn, .pricing-compare-link,
.hero-product-badge span, .feature-desc-sub, .cell-text, .total-detail, #pricing-note-text, li,
.compare-table td.col-feature, .compare-table small {
  word-break: auto-phrase;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* 要確認プレースホルダー */
.ph{color:#b8860b;font-weight:600}

/* ==========================================
   COMPARE PAGE STYLES — Detailed Comparison
   ========================================== */
.compare-hero {
  background: var(--color-black);
  color: var(--color-white);
  padding: calc(var(--space-4xl) + 40px) 0 var(--space-3xl) 0;
  text-align: center;
  position: relative;
}

.compare-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 140, 240, 0.4), transparent);
}

.compare-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(45, 140, 240, 0.15);
  border: 1px solid rgba(45, 140, 240, 0.3);
  color: var(--color-accent-light);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: var(--space-md);
}

.compare-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.compare-subtitle {
  font-size: 1.05rem;
  color: var(--color-gray-light);
  max-width: 680px;
  margin: 0 auto var(--space-xl) auto;
  line-height: 1.8;
}

.compare-section {
  padding: var(--space-3xl) 0 var(--space-4xl) 0;
  background: #f8fafc;
}

.compare-table-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-gray-border);
  overflow-x: auto;
  position: relative;
  margin-bottom: var(--space-3xl);
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
  font-size: 0.9rem;
}

/* Header Columns */
.compare-table thead th {
  background: var(--color-white);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  position: sticky;
  top: 56px;
  z-index: 20;
  border-bottom: 2px solid #e2e8f0;
  vertical-align: top;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.compare-table thead th.col-feature {
  text-align: left;
  width: 32%;
  padding-left: var(--space-xl);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-dark);
}

.compare-table thead th.col-free {
  width: 22%;
  background: #fafafa;
}

.compare-table thead th.col-standard {
  width: 23%;
  background: #f0f7ff;
}

.compare-table thead th.col-pro {
  width: 23%;
  background: #0f172a;
  color: var(--color-white);
}

.th-plan-badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.th-plan-badge.badge-free {
  background: #e2e8f0;
  color: #475569;
}

.th-plan-badge.badge-std {
  background: var(--color-accent);
  color: var(--color-white);
}

.th-plan-badge.badge-pro {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: var(--color-white);
}

.th-plan-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.col-pro .th-plan-name {
  color: var(--color-white);
}

.th-plan-target {
  font-size: 0.78rem;
  color: var(--color-gray);
  margin-bottom: var(--space-sm);
  min-height: 2.2em;
}

.col-pro .th-plan-target {
  color: #94a3b8;
}

.th-plan-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.col-pro .th-plan-price {
  color: #38bdf8;
}

.th-plan-subprice {
  font-size: 0.76rem;
  color: var(--color-gray);
  margin-bottom: var(--space-md);
}

.col-pro .th-plan-subprice {
  color: #94a3b8;
}

.th-plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  transition: var(--transition-base);
  cursor: pointer;
  text-decoration: none;
}

.th-plan-btn.btn-free {
  background: #e2e8f0;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}
.th-plan-btn.btn-free:hover {
  background: #cbd5e1;
}

.th-plan-btn.btn-std {
  background: var(--color-accent);
  color: var(--color-white);
  border: 1px solid var(--color-accent);
}
.th-plan-btn.btn-std:hover {
  background: var(--color-accent-dark);
}

.th-plan-btn.btn-pro {
  background: #38bdf8;
  color: #0f172a;
  border: 1px solid #38bdf8;
}
.th-plan-btn.btn-pro:hover {
  background: #7dd3fc;
}

/* Category Section Rows */
.compare-cat-row td {
  background: #f1f5f9;
  padding: var(--space-sm) var(--space-xl);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Feature Item Rows */
.compare-table tbody tr {
  transition: background var(--transition-fast);
}

.compare-table tbody tr:hover {
  background: #f8fafc;
}

.compare-table tbody td {
  padding: var(--space-md) var(--space-md);
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  vertical-align: middle;
}

.compare-table tbody td.col-feature {
  text-align: left;
  padding-left: var(--space-xl);
  font-weight: 600;
  color: var(--color-dark);
}

.feature-desc-sub {
  display: block;
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--color-gray);
  margin-top: 3px;
}

.compare-table tbody td.col-free {
  background: #fafafa;
}

.compare-table tbody td.col-standard {
  background: rgba(240, 247, 255, 0.4);
}

.compare-table tbody td.col-pro {
  background: rgba(15, 23, 42, 0.03);
  font-weight: 600;
}

/* Icons & Labels */
.icon-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #e6f4ea;
  color: #137333;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.78rem;
}

.icon-check.pro-highlight {
  background: #dbeafe;
  color: #1d4ed8;
}

.icon-cross {
  color: #94a3b8;
  font-size: 1.1rem;
}

.cell-text {
  font-size: 0.85rem;
  color: var(--color-dark);
}

.cell-text.mute {
  color: var(--color-gray);
  font-size: 0.8rem;
}

.badge-tag-pro {
  display: inline-block;
  padding: 2px 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  margin-top: 2px;
}

/* Selection Guide Cards */
.guide-section {
  padding: var(--space-3xl) 0 var(--space-4xl) 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-border);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.guide-card {
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  transition: var(--transition-base);
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.guide-card.featured {
  background: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(45, 140, 240, 0.12);
  position: relative;
}

.guide-target-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.guide-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.guide-card-desc {
  font-size: 0.88rem;
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.guide-card-points {
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-card-points li {
  font-size: 0.82rem;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-card-points li svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

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

/* =========================================
   Compare Page — Tab Navigation
   ========================================= */
.compare-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.compare-tab {
  padding: 10px 28px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-gray-border);
  background: transparent;
  color: var(--color-gray);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.compare-tab:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.compare-tab.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
}

/* =========================================
   VS Section — Intro
   ========================================= */
.vs-section {
  background: var(--color-white);
}

.vs-intro {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.vs-intro-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.vs-intro-desc {
  color: var(--color-gray);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Disclaimer note */
.vs-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #f5d67a;
  border-left: 3px solid #f0b429;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: var(--space-md);
  font-size: 0.78rem;
  color: #7a5c00;
  line-height: 1.6;
}

.vs-disclaimer svg {
  color: #f0b429;
  margin-top: 1px;
}


/* =========================================
   VS Table — Extra Columns
   ========================================= */
.vs-table {
  min-width: 980px;
}

/* VS表: 列幅（5列構成） */
.vs-table thead th.col-feature,
.vs-table tbody td.col-feature {
  width: 26%;
}

.vs-table thead th.col-solidra,
.vs-table tbody td.col-solidra {
  width: 18.5%;
}

.vs-table thead th.col-fusion,
.vs-table tbody td.col-fusion {
  width: 18.5%;
}

.vs-table thead th.col-solidworks,
.vs-table tbody td.col-solidworks {
  width: 18.5%;
}

.vs-table thead th.col-onshape,
.vs-table tbody td.col-onshape {
  width: 18.5%;
}

.vs-table .col-solidra {
  background: rgba(45, 140, 240, 0.04);
  border-left: 3px solid var(--color-accent);
  border-right: 3px solid var(--color-accent);
}

.vs-table thead .col-solidra {
  background: rgba(45, 140, 240, 0.08);
  border-top: 3px solid var(--color-accent);
  border-left: 3px solid var(--color-accent);
  border-right: 3px solid var(--color-accent);
}

/* Win indicator */
.cell-text.vs-win {
  color: var(--color-accent-dark);
  font-weight: 600;
}

/* Red cross */
.icon-cross-red {
  color: #e74c3c;
  font-size: 1rem;
  font-weight: 700;
}

/* Yellow triangle */
.icon-cross-yellow {
  color: #f39c12;
  font-size: 0.95rem;
  font-weight: 700;
}

/* =========================================
   VS Strengths Card Grid
   ========================================= */
.vs-strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.vs-strength-card {
  background: var(--color-gray-bg);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.vs-strength-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.vs-strength-card.featured-card {
  background: linear-gradient(135deg, rgba(45, 140, 240, 0.06) 0%, rgba(45, 140, 240, 0.02) 100%);
  border-color: var(--color-accent);
}

.vs-strength-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.vs-strength-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.vs-strength-desc {
  font-size: 0.83rem;
  color: var(--color-gray);
  line-height: 1.7;
}

.vs-strength-desc strong {
  color: var(--color-accent-dark);
}

@media (max-width: 1024px) {
  .vs-strength-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .vs-strength-grid {
    grid-template-columns: 1fr;
  }

  .compare-tab {
    font-size: 0.82rem;
    padding: 8px 18px;
  }
}


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

/* ==========================================================================
   MCP DEMO CARD & AI FEATURE STYLES
   ========================================================================== */
.mcp-demo-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4), 0 0 25px rgba(16, 185, 129, 0.1);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

.mcp-card-header {
  background: #1e293b;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mcp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.mcp-dot.red { background: #ef4444; }
.mcp-dot.yellow { background: #f59e0b; }
.mcp-dot.green { background: #10b981; }

.mcp-title {
  margin-left: 8px;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.mcp-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mcp-role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.mcp-role.user {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.mcp-role.ai {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.mcp-prompt p {
  color: #f1f5f9;
  font-size: 0.92rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
}

.mcp-response {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mcp-action {
  color: #cbd5e1;
  font-size: 0.8rem;
  margin: 0;
}

.mcp-action code {
  color: #fbbf24;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}

.mcp-status {
  color: #34d399;
  font-size: 0.84rem;
  margin: 0;
  background: rgba(16, 185, 129, 0.08);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}


/* ----- Install guide notice ----- */
.install-note { margin-top: 10px; font-size: 0.8rem; line-height: 1.6; color: var(--color-gray-light, #cbd5e1); }
.install-note .install-note-link, .install-note-link { color: inherit; text-decoration: underline; font-weight: 600; }
.install-note .install-note-link:hover, .install-note-link:hover { opacity: .8; }

/* ----- スマホ・タブレット表示 (device.js が html[data-device="mobile"] を付ける) ----- */
html[data-device="mobile"] body { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
html[data-device="mobile"] img,
html[data-device="mobile"] video { max-width: 100%; height: auto; }
html[data-device="mobile"] .menu-toggle { display: block; }
html[data-device="mobile"] .header-right { display: none; }
html[data-device="mobile"] .header-right.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-dark-2);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-dark-3);
}
html[data-device="mobile"] .sub-nav-actions { display: none; }
html[data-device="mobile"] .benefits-grid,
html[data-device="mobile"] .resources-grid,
html[data-device="mobile"] .footer-grid,
html[data-device="mobile"] .trust-badges,
html[data-device="mobile"] .cta-grid { grid-template-columns: 1fr; }
html[data-device="mobile"] .video-thumbnails { display: none; }
html[data-device="mobile"] .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }

/* ダウンロードページの表を縦並びに */
html[data-device="mobile"] .dl-wrap { padding: 90px 16px 60px; }
html[data-device="mobile"] .dl-table thead { display: none; }
html[data-device="mobile"] .dl-table,
html[data-device="mobile"] .dl-table tbody,
html[data-device="mobile"] .dl-table tr,
html[data-device="mobile"] .dl-table td { display: block; width: 100%; }
html[data-device="mobile"] .dl-table tr { padding: 12px 0; border-bottom: 1px solid var(--color-gray-border); }
html[data-device="mobile"] .dl-table td { border-bottom: none; padding: 4px 0; }
html[data-device="mobile"] .dl-table td:first-child { width: 100%; font-weight: 600; }
html[data-device="mobile"] .dl-table td a { word-break: break-all; }

/* ==========================================
   Mobile fixes (320px overflow / tap targets)
   ========================================== */
@media (max-width: 400px) {
  .hero-text { padding-left: var(--space-md); padding-right: var(--space-md); }
  .hero-title { font-size: clamp(1.5rem, 7.2vw, 1.9rem); }
  .hero-title span:nth-child(4) { white-space: nowrap; }
  .hero-product-badge { max-width: 100%; }
}
@media (max-width: 1024px) {
  .menu-toggle { min-width: 44px; min-height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .menu-toggle span { margin: 3px 0; }
  .header-right.open .header-link { display: flex; align-items: center; min-height: 44px; }
  .btn-outline-light, .btn-filled-accent, .btn-outline-dark, .btn-filled-dark, .btn-cart,
  .hero-contact-link, .pricing-compare-link { min-height: 44px; }
  .footer-grid a, .resources-grid a { display: inline-block; padding: 6px 0; }
}

/* ==========================================
   Subtle motion + cost simulator
   ========================================== */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero-text > * { animation: rise-in 0.6s ease both; }
.hero-text > *:nth-child(2) { animation-delay: 0.06s; }
.hero-text > *:nth-child(3) { animation-delay: 0.12s; }
.hero-text > *:nth-child(4) { animation-delay: 0.18s; }
.hero-text > *:nth-child(n+5) { animation-delay: 0.24s; }

.site-header { transition: box-shadow var(--transition-base); }
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45); }

.feature-media { overflow: hidden; }
.feature-media img { transition: transform 0.6s ease; }
.feature-media:hover img { transform: scale(1.025); }

.cost-sim {
  margin: var(--space-lg) auto;
  padding: var(--space-lg);
  max-width: 760px;
  background: var(--color-dark-3);
  border: 1px solid var(--color-dark-4);
  border-radius: var(--radius-md);
  color: var(--color-white);
}
.cost-sim-title { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 4px; }
.cost-sim-lead { font-size: 0.85rem; color: var(--color-gray-light); margin-bottom: var(--space-md); }
.cost-sim-range { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.9rem; margin-bottom: var(--space-md); }
.cost-sim-range > span { flex-shrink: 0; }
.cost-sim-range output { flex-shrink: 0; min-width: 5.5em; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.cost-sim-range input[type="range"] {
  flex: 1; min-width: 0; height: 28px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.cost-sim-range input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--color-accent) var(--fill, 30%), var(--color-gray-dark) var(--fill, 30%));
}
.cost-sim-range input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--color-gray-dark); }
.cost-sim-range input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--color-accent); }
.cost-sim-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%;
  background: var(--color-white); border: 2px solid var(--color-accent);
}
.cost-sim-range input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--color-white); border: 2px solid var(--color-accent); }
.cost-sim-range input[type="range"]:focus-visible { outline: 2px solid var(--color-accent-light); outline-offset: 4px; }

.cost-sim-row { display: grid; grid-template-columns: 11.5em 1fr 6em; align-items: center; gap: var(--space-sm); margin-bottom: 10px; font-size: 0.85rem; }
.cost-sim-track { display: block; height: 14px; background: var(--color-dark-4); border-radius: 7px; overflow: hidden; }
.cost-sim-bar { display: block; height: 100%; width: 0; background: var(--color-gray); border-radius: 7px; transition: width 0.35s ease, background 0.25s ease; }
.cost-sim-row.is-best .cost-sim-bar { background: var(--color-accent); }
.cost-sim-row.is-best .cost-sim-amount { color: var(--color-accent-light); }
.cost-sim-amount { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.cost-sim-result { margin-top: var(--space-sm); font-size: 0.95rem; font-weight: 600; min-height: 1.7em; }
.cost-sim-note { margin-top: 6px; font-size: 0.75rem; color: var(--color-gray-light); }
@media (max-width: 600px) {
  .cost-sim { padding: var(--space-md); }
  .cost-sim-row { grid-template-columns: 1fr 5.5em; }
  .cost-sim-row .cost-sim-track { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text > * { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feature-media img, .cost-sim-bar, .site-header { transition: none; }
  .feature-media:hover img { transform: none; }
  html { scroll-behavior: auto; }
}

.cost-sim p, .cost-sim h3 { max-width: none; text-wrap: wrap; }
@media (max-width: 600px) {
  .cost-sim-range { display: grid; grid-template-columns: 1fr auto; row-gap: 2px; }
  .cost-sim-range input[type="range"] { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .cost-sim-range output { text-align: right; min-width: 0; }
}

/* ---- Pricing switch: sliding thumb ---- */
.pricing-toggle-wrap { position: relative; }
.pricing-toggle-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-accent-light), var(--color-accent));
  box-shadow: 0 2px 12px rgba(45, 140, 240, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateX(0);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}
.pricing-toggle-wrap.has-thumb .pricing-toggle-btn { position: relative; z-index: 1; transition: color 0.3s ease; }
.pricing-toggle-wrap.has-thumb .pricing-toggle-btn.active { background: transparent; box-shadow: none; }
.pricing-toggle-btn:focus-visible { outline: 2px solid var(--color-accent-light); outline-offset: 2px; }

@keyframes swap-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.swap-in { animation: swap-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.pricing-card-mini .price-val, #total-amount { font-variant-numeric: tabular-nums; }
.pricing-card-mini { transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base); }

@media (prefers-reduced-motion: reduce) {
  .pricing-toggle-thumb, .swap-in { transition: none; animation: none; }
}

/* ==========================================
   Hero slider
   ========================================== */
.hero-image { background: #1c2129; }
.hero-slider { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden;
  /* ゆっくり暗くなりながら切り替える（強い ease-out だと一瞬で切り替わって見えるので ease-in-out） */
  transition: opacity 2s ease-in-out, visibility 0s linear 2s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 2s ease-in-out, visibility 0s; z-index: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0.92;
}
.hero-slider::after { /* 文字との境目と下部を少し暗くして、キャプションとボタンを読みやすく */
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 32%),
              linear-gradient(to right, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 18%);
}
.hero-slide-caption {
  position: absolute; left: 24px; bottom: 44px; z-index: 3;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: #fff;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(15, 18, 24, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-slide.is-active .hero-slide-caption { opacity: 1; transform: none; transition-delay: 0.25s; }

.hero-slider-nav {
  position: absolute; top: 50%; z-index: 4; width: 40px; height: 40px; margin-top: -20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 18, 24, 0.5); color: #fff; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
}
.hero-slider-prev { left: 16px; }
.hero-slider-next { right: 16px; }
.hero-slider:hover .hero-slider-nav, .hero-slider-nav:focus-visible { opacity: 1; }
.hero-slider-nav:hover { background: rgba(45, 140, 240, 0.85); }
.hero-slider-nav:active { transform: scale(0.94); }
.hero-slider-nav:focus-visible { outline: 2px solid var(--color-accent-light); outline-offset: 2px; }

.hero-slider-dots { position: absolute; left: 24px; right: 24px; bottom: 18px; z-index: 4; display: flex; gap: 6px; }
.hero-slider-dot { flex: 1; max-width: 56px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.hero-slider-dot span { position: relative; display: block; width: 100%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.28); overflow: hidden; }
.hero-slider-dot span::after {
  content: ''; position: absolute; inset: 0; background: #fff; border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
}
.hero-slider-dot.is-done span::after { transform: scaleX(1); }
.hero-slider-dot.is-active span::after { animation: slider-progress var(--slide-ms, 5000ms) linear forwards; }
.hero-slider.is-paused .hero-slider-dot.is-active span::after { animation-play-state: paused; }
.hero-slider.no-autoplay .hero-slider-dot.is-active span::after { animation: none; transform: scaleX(1); }
.hero-slider-dot:focus-visible { outline: 2px solid var(--color-accent-light); outline-offset: 2px; border-radius: 3px; }
@keyframes slider-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 1024px) {
  .hero-image { aspect-ratio: 16 / 10; max-height: none; }
  .hero-slider-nav { opacity: 1; width: 36px; height: 36px; margin-top: -18px; }
}
@media (hover: none) { .hero-slider-nav { opacity: 1; } }
@media (max-width: 600px) {
  .hero-slide-caption { left: 14px; bottom: 36px; font-size: 0.72rem; }
  .hero-slider-dots { left: 14px; right: 14px; bottom: 12px; }
  .hero-slider-prev { left: 10px; } .hero-slider-next { right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide-caption { transition: none; }
}

/* PC: スクリーンショット全体を浮かせて見せ、背景に同じ画像をぼかして敷く */
@media (min-width: 1025px) {
  .hero-image { min-height: 420px; }
  .hero-slide::before {
    content: ''; position: absolute; inset: -40px;
    background: var(--bg) center / cover no-repeat;
    filter: blur(28px) saturate(1.1) brightness(0.42);
  }
  .hero-slide img {
    position: absolute; inset: 0; margin: auto;
    width: auto; height: auto;
    max-width: calc(100% - 72px); max-height: calc(100% - 140px);
    object-fit: contain; opacity: 1;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  .hero-slider::after { background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 22%); }
}
