/* ============================================================
   VARNAMORE 販売ページ
   配色: 背景 #F2F4F7 / 白カード / アクセント #2F6FDE / バッジ #E8B84B
   ============================================================ */

:root {
  --bg: #F2F4F7;
  --card: #FFFFFF;
  --accent: #2F6FDE;
  --accent-dark: #2557B4;
  --accent-soft: #E4EDFB;
  --badge: #E8B84B;
  --text: #1E2732;
  --text-sub: #5A6675;
  --line: #E1E6EC;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(20, 35, 60, 0.06), 0 8px 24px rgba(20, 35, 60, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Meiryo",
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 780px; }
.center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(47, 111, 222, 0.35);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline {
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-soft); }
.btn-lg { padding: 15px 34px; font-size: 1.06rem; }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }
.btn:not(.btn-lg):not(.btn-sm) { padding: 11px 26px; font-size: 0.95rem; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 244, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 60px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-weight: 700; font-size: 1.08rem; letter-spacing: 0.01em; }

.main-nav {
  display: flex;
  gap: 20px;
  margin-right: auto;
}
.main-nav a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--text-sub);
}
.lang-icon { width: 17px; height: 17px; flex: none; }
.lang-switch select {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  outline: none;
  max-width: 9.5em;
}

/* ---------- ヒーロー ---------- */
.hero {
  padding: 64px 0 76px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(47, 111, 222, 0.10), transparent 65%),
    radial-gradient(700px 380px at 5% 110%, rgba(232, 184, 75, 0.12), transparent 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--text-sub);
  margin-bottom: 22px;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--badge);
  flex: none;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.hero-sub {
  color: var(--text-sub);
  font-size: 1.02rem;
  margin-bottom: 30px;
  max-width: 34em;
}
.cta-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-sub);
}

.screenshot-placeholder {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
}
.screenshot-placeholder svg {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.screenshot-placeholder figcaption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-sub);
  padding: 8px 4px 2px;
}

/* ヒーローの実画面（プレースホルダと同じ見た目で画像を収める） */
.hero-shot {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  margin: 0;
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.hero-shot figcaption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-sub);
  padding: 8px 4px 2px;
}

/* ---------- AI 高解像度化ショーケース ---------- */
.ai-showcase {
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* メイン比較: Before は After の 37.5% 幅（1500 : 4000）・下端揃え */
.ba-main {
  display: grid;
  grid-template-columns: 3fr auto 8fr; /* 3 : 8 = 37.5% */
  gap: 18px;
  align-items: end;
  max-width: 920px;
  margin: 0 auto;
  padding: 24px;
}
.ba-panel { margin: 0; min-width: 0; }
.ba-panel img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.ba-panel figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-sub);
  padding-top: 8px;
  font-weight: 600;
}
.ba-arrow {
  font-size: 1.7rem;
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
  align-self: center;
}
/* 補助比較: 同一部分の拡大 crop（常に 2 枚横並び） */
.ba-zoom-title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 24px 0 12px;
}
.ba-zoom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto 28px;
}
.ba-zoom-item { margin: 0; }
.ba-zoom-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.ba-zoom-item figcaption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-sub);
  padding-top: 6px;
  font-weight: 600;
}
.ai-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 0;
}
.ai-badges li {
  background: #FBF3DD;
  border: 1px solid #EDD79E;
  color: #7A5A0F;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.86rem;
  font-weight: 600;
}
.ai-note {
  text-align: center;
  color: var(--text-sub);
  font-size: 0.88rem;
}
/* 品質へのこだわり（読ませるテキストブロック） */
.ai-craft {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 28px 30px;
  background: #F7F9FB;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ai-craft h3 {
  font-size: 1.06rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.5;
}
.ai-craft p {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.85;
}
.ai-craft p + p { margin-top: 12px; }

/* ---------- セクション共通 ---------- */
.section { padding: 72px 0; }
.section-alt { background: #EAEEF4; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.section-sub {
  text-align: center;
  color: var(--text-sub);
  margin-bottom: 44px;
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- 機能カード（アコーディオン） ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start; /* 展開したカードが同じ行の他カードを引き伸ばさない */
}
.feature-card {
  position: relative;
  padding: 0;
}
.feature-card summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 24px 40px;
  position: relative;
  border-radius: var(--radius);
}
.feature-card summary::-webkit-details-marker { display: none; }
.feature-card summary:hover h3 { color: var(--accent); }
/* 開閉インジケータ（▼） */
.feature-card summary::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateX(-50%) rotate(45deg);
  transition: transform 0.2s ease;
}
.feature-card[open] summary::after {
  transform: translateX(-50%) rotate(225deg);
}
.feature-card[open] summary { padding-bottom: 30px; }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 {
  font-size: 1.04rem;
  margin-bottom: 8px;
  line-height: 1.45;
  padding-right: 3.6em;
  transition: color 0.15s ease;
}
.feature-lead {
  display: block;
  font-size: 0.9rem;
  color: var(--text-sub);
}
/* 展開部分 */
.feature-body {
  padding: 0 24px 24px;
  display: grid;
  gap: 14px;
}
.feature-card[open] .feature-body {
  animation: acc-open 0.25s ease;
}
@keyframes acc-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.feature-long {
  font-size: 0.9rem;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
/* スクリーンショット / デモ動画のプレースホルダ枠（16:10） */
.media-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  border: 1.5px dashed #C7CFDA;
  background: #F7F9FB;
  color: #9AA6B5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 12px;
}
.media-demo { background: #F2F5F9; }
.media-glyph { width: 44px; height: 44px; flex: none; }
.media-caption {
  font-size: 0.78rem;
  color: #8492A3;
  line-height: 1.5;
}
.media-sep { margin: 0 0.5em; }
.feature-body video { max-width: 100%; border-radius: 10px; }
/* 実スクリーンショット */
.media-figure { margin: 0; }
.media-figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}
.media-figure img.media-portrait {
  width: auto;
  max-width: 100%;
  max-height: 340px;
  margin: 0 auto;
}
/* UI 切り出し画像: 原寸以上に引き伸ばさず枠内フィット */
.media-figure img.media-fit {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}
.media-figure .media-caption {
  text-align: center;
  padding-top: 8px;
}
.pro-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--badge);
  color: #4A3A0E;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}
.pro-badge-inline {
  position: static;
  display: inline-block;
}

/* ---------- 比較表 ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.92rem;
}
.compare-table th,
.compare-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.compare-table thead th {
  background: #F7F9FB;
  font-size: 0.95rem;
  padding: 16px 18px;
}
.compare-table tbody th[scope="row"] {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  width: 52%;
}
.compare-table .col-free, .compare-table .col-pro { width: 24%; }
.mark-yes { color: var(--accent); font-weight: 700; font-size: 1.05rem; }
.mark-no { color: #B6BFCA; }
.cell-limited { color: var(--text-sub); font-size: 0.86rem; }
.cell-strong { color: var(--accent); font-weight: 700; }
.compare-table tfoot td { border-bottom: none; vertical-align: top; }
.plan-cell { padding: 24px 18px 28px; }
.plan-price {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.plan-note {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ---------- 信頼セクション ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.trust-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 26px 24px;
  align-items: start;
}
.trust-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: #FBF3DD;
  color: #A97E17;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-icon svg { width: 26px; height: 26px; }
.trust-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.trust-card p { font-size: 0.9rem; color: var(--text-sub); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  position: relative;
  font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item p {
  padding: 0 22px 20px;
  color: var(--text-sub);
  font-size: 0.92rem;
}

/* ---------- 最終 CTA ---------- */
.cta-final { padding-bottom: 88px; }

/* ---------- フッター ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #EAEEF4;
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.85rem; color: var(--text-sub); line-height: 1.7; }
.footer-product { font-weight: 600; color: var(--text); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-sub);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 44px 0 56px; }
  /* メイン比較は縦積み: Before 小さいまま上 → 矢印 90° → After 大きく下 */
  .ba-main { grid-template-columns: 1fr; padding: 16px; }
  .ba-small { width: 42%; min-width: 150px; justify-self: start; }
  .ba-large { width: 100%; }
  .ba-arrow { transform: rotate(90deg); justify-self: center; align-self: auto; }
  .ai-craft { padding: 22px 18px; margin-top: 30px; }
  /* 補助比較は横並びを維持 */
  .section { padding: 52px 0; }
  .feature-grid, .trust-grid { grid-template-columns: 1fr; }
  .trust-card { grid-template-columns: 40px 1fr; }
  .header-inner { gap: 10px; }
  .btn-lg { display: block; }
  .lang-switch select { max-width: 6.5em; }
}

/* 行き先がまだ決まっていないボタン（site/links.js を参照）。
   押せるように見えて何も起きない状態を避け、準備中と分かるようにする */
.is-not-ready {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}
