:root {
  --bg-page: #f3f4f6;
  --bg-surface: #ffffff;
  --bg-soft: #f9fafb;
  --primary: #199c99;
  --primary-strong: #0f766e;
  --primary-soft: rgba(25, 156, 153, 0.08);
  --border-subtle: #e5e7eb;
  --border-strong: #a7f3d0;
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
  --footer-bg: #020617;
  --footer-sub: #111827;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius-xl: 1.1rem;
  --transition-fast: 160ms ease-out;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Basic Sans", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.7;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.site-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(25, 156, 153, 0.35);
  background:
    radial-gradient(circle at 10% 0, rgba(45, 212, 191, 0.9), transparent 60%),
    radial-gradient(circle at 90% 100%, rgba(16, 185, 129, 0.9), transparent 60%),
    #064e3b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #f9fafb;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15), 0 0 20px rgba(25, 156, 153, 0.5);
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-main-en {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logo-sub-ja {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-strong);
  background: rgba(25, 156, 153, 0.06);
}

.nav-link-cta {
  background: linear-gradient(120deg, #199c99, #22c55e);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.nav-link-cta:hover {
  color: #f9fafb;
  background: linear-gradient(120deg, #15837f, #16a34a);
}

/* Main layout */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

/* Buttons */
.btn-primary {
  border-radius: 999px;
  border: none;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  background: linear-gradient(120deg, #199c99, #22c55e);
  color: white;
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary span.icon {
  font-size: 1rem;
}

.btn-primary:hover {
  transform: translateY(-1px) translateZ(0);
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.5);
  filter: brightness(1.02);
}

.btn-primary-small {
  padding: 9px 16px;
  font-size: 0.82rem;
}

.btn-ghost {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  font-size: 0.76rem;
  cursor: pointer;
  background: #ffffff;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: rgba(25, 156, 153, 0.6);
  color: var(--text-main);
  background: var(--bg-soft);
  transform: translateY(-1px);
}

.btn-ghost-small {
  padding: 7px 12px;
  font-size: 0.75rem;
}

/* Secondary link buttons */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--primary-strong);
  text-decoration: none;
}

.btn-link::after {
  content: "›";
  font-size: 0.78rem;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-secondary {
  border-radius: 999px;
  border: 1px solid rgba(25, 156, 153, 0.4);
  padding: 6px 12px;
  font-size: 0.76rem;
  background: rgba(25, 156, 153, 0.04);
  color: var(--primary-strong);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

/* Hero */
.hero {
  border-radius: 20px;
  padding: 22px 22px 22px;
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 10px;
}

.hero-left {
  position: relative;
}

.hero-kicker {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--primary-strong);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-main-title {
  font-size: clamp(1.7rem, 3.2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.br-sp {
  display: none;
}

.hero-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-points {
  list-style: none;
  padding-left: 0;
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-points li {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.hero-points li::before {
  content: "・";
  color: var(--primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

/* Hero right */
.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-image {
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border-subtle);
  background: #000;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.25);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 9px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
}

.hero-label-main {
  font-weight: 600;
}

.hero-label-sub {
  color: var(--text-muted);
}

/* Section */
.section {
  margin-top: 28px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
}

.section-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Series diff */
.series-diff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.series-diff-card {
  border-radius: 16px;
  padding: 12px 12px 11px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  font-size: 0.8rem;
}

.series-diff-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

.series-diff-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.series-diff-tag {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.series-diff-lead {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.series-diff-list {
  padding-left: 1rem;
  margin: 0 0 8px;
  color: var(--text-muted);
}

.series-diff-list li {
  margin-bottom: 2px;
}

.series-diff-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
}

.series-diff-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}

.series-diff-text {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.series-aibox {
  border-left: 3px solid #199c99;
}

.series-adaptor {
  border-left: 3px solid #22c55e;
}

.series-screen {
  border-left: 3px solid #38bdf8;
}

.series-media {
  border-left: 3px solid #f97316;
}

/* Wizard */
.wizard {
  border-radius: var(--radius-xl);
  padding: 18px 16px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.wizard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
}

.wizard-step {
  border: none;
  margin: 0 0 10px;
  padding: 0 0 6px;
  border-bottom: 1px dashed var(--border-subtle);
}

.wizard-step:last-of-type {
  border-bottom: none;
}

.wizard-step-title {
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.wizard-step-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  padding: 6px 10px;
  font-size: 0.76rem;
  color: var(--text-main);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.chip-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-radio::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--text-soft);
}

.chip-radio:hover {
  border-color: rgba(25, 156, 153, 0.5);
  box-shadow: 0 0 0 1px var(--primary-soft);
  transform: translateY(-1px);
}

.chip-radio.is-selected {
  border-color: rgba(25, 156, 153, 0.95);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(25, 156, 153, 0.9);
}

.chip-radio.is-selected::before {
  background: radial-gradient(circle, #199c99 0, #22c55e 70%);
  border-color: transparent;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.wizard-message {
  font-size: 0.75rem;
  color: #b45309;
  margin-top: 6px;
}

/* Wizard result */
.wizard-right {
  border-radius: 18px;
  padding: 10px 10px 12px;
  background: linear-gradient(135deg, #ecfeff, #ffffff);
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.wizard-result-title {
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.wizard-result-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.wizard-result-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.wizard-card {
  border-radius: 14px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.wizard-card-main {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: baseline;
}

.wizard-card-title {
  font-size: 0.86rem;
  font-weight: 600;
}

.wizard-card-series {
  font-size: 0.68rem;
  color: var(--primary);
}

.wizard-card-score {
  font-size: 0.7rem;
  color: #16a34a;
}

.wizard-card-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.wizard-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.tag {
  font-size: 0.62rem;
  border-radius: 999px;
  padding: 2px 7px;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
}

/* Series tabs */
.series-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  padding: 3px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
}

.series-tab {
  border-radius: 999px;
  border: none;
  padding: 6px 12px;
  font-size: 0.78rem;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.series-tab.is-active {
  background: linear-gradient(120deg, #199c99, #22c55e);
  color: #f9fafb;
  transform: translateY(-1px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Product card */
.product-card {
  border-radius: 16px;
  padding: 10px 10px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(25, 156, 153, 0.8);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.product-thumb {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, #e0f2fe, #f9fafb);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-soft);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}

.product-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.product-series {
  font-size: 0.7rem;
  color: var(--primary);
}

.product-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.product-rank-badge {
  position: absolute;
  top: 8px;
  right: 9px;
  font-size: 0.6rem;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(234, 179, 8, 0.9);
  background: #ffffff;
  color: #92400e;
}

/* Support section */
.support-section {
  margin-top: 32px;
}

.support-card {
  border-radius: 18px;
  padding: 18px 16px 16px;
  background: linear-gradient(135deg, #ecfeff, #ffffff);
  border: 1px solid var(--border-strong);
}

.support-list {
  margin: 8px 0 10px;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* FAQ */
.faq-section {
  margin-top: 32px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.faq-item {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
}

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

.faq-item summary::before {
  content: "＋";
  display: inline-block;
  margin-right: 6px;
  font-size: 0.7rem;
  color: var(--text-soft);
}

.faq-item[open] summary::before {
  content: "－";
}

.faq-item p {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: #e5e7eb;
  padding: 24px 16px 20px;
}

.footer-top {
  max-width: 1120px;
  margin: 0 auto 14px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  padding-bottom: 14px;
}

.footer-logo-block {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-logo-mark {
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.45), 0 0 26px rgba(34, 197, 94, 0.6);
}

.footer-nav-block {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.footer-nav-column h3 {
  font-size: 0.78rem;
  margin: 0 0 6px;
  color: #e5e7eb;
}

.footer-nav-column a {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  margin-bottom: 4px;
}

.footer-nav-column a:hover {
  color: #e5e7eb;
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 8px;
  font-size: 0.7rem;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-company {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact {
  font-size: 0.7rem;
}

.footer-copy {
  margin: 0;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-right {
    order: -1;
  }
  .wizard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .series-diff-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-main-title {
    font-size: 1.6rem;
  }
  .br-sp {
    display: inline;
  }
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding: 18px 14px 18px;
  }
  .wizard {
    padding: 14px 12px 14px;
  }
  .series-tabs {
    width: 100%;
    justify-content: space-between;
  }
  .series-tab {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* ヘッダー ロゴ */
.site-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

/* フッター ロゴ */
.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* === 追加: 読みやすさ向上用のフォントサイズ調整 === */
body {
  font-size: 15px;
}

.section-title {
  font-size: 1.1rem;
}

.section-sub {
  font-size: 0.85rem;
}

.hero-subtitle {
  font-size: 0.95rem;
}

.hero-points {
  font-size: 0.85rem;
}

.wizard-step-title {
  font-size: 0.9rem;
}

.wizard-step-sub {
  font-size: 0.8rem;
}

.product-desc,
.faq-item p {
  font-size: 0.8rem;
}

/* === 追加: シリーズカード用サムネイル === */
.series-diff-thumb {
  margin: 6px 0 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
}

.series-diff-thumb img {
  display: block;
  width: 100%;
  height: auto;
}


/* Q1で「ない」を選んだときにQ2を無効表示 */
.wizard-step.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}
