/* AI料金ラボ 専用デザイン（2026-08-01）
   参考：Linear（linear.app/pricing）を実測して起こしたフルダーク
   実測値＝背景 #08090a／文字 #f7f8f8／ミュート #8a8f98／縦罫 #202122／横罫 rgba(255,255,255,.05)
          h1 42px・weight510・字間-.022em／プラン名 21px・weight590／本文 14px・行間1.5
          ボタン＝#e5e5e6 背景・#08090a 文字・完全ピル・高さ32px
   ※離脱対策としてスクロール連動モーションと図版を前提にした設計 */
:root {
  --bg: #08090a;
  --surface: #0e0f11;
  --surface-2: #141517;
  --text: #f7f8f8;
  --muted: #8a8f98;
  --line: #202122;
  --line-soft: rgba(255,255,255,.05);
  --accent: #7c6cff;
  --accent-2: #3ea8ff;
  --accent-grad: linear-gradient(135deg, #7c6cff, #3ea8ff);
  --warn: #ffb224;
  --danger: #ff6369;
  --radius: 12px;
  --radius-lg: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

/* ヘッダー */
body::before { display: none; }
.site-header {
  background: rgba(8,9,10,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .inner {
  max-width: 1120px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand .logo-mark {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 1rem;
}
.brand .brand-name { font-weight: 590; font-size: 1rem; letter-spacing: -.012em; }
.brand .brand-sub { display: block; font-size: .62rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.header-nav { display: flex; gap: 2px; }
.header-nav a {
  text-decoration: none; color: var(--muted); font-size: .82rem; font-weight: 510;
  padding: 7px 12px; border-radius: 7px; white-space: nowrap; transition: color .15s, background .15s;
}
.header-nav a:hover { background: rgba(255,255,255,.06); color: var(--text); }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px 80px; }

/* ヒーロー：ゆっくり動くグラデーションで最初の数秒を持たせる */
.hero {
  position: relative; margin: 0 -24px; padding: 72px 24px 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 520px; z-index: 0;
  background:
    radial-gradient(420px 240px at 20% 30%, rgba(124,108,255,.30), transparent 70%),
    radial-gradient(420px 240px at 75% 20%, rgba(62,168,255,.22), transparent 70%);
  filter: blur(20px);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(700px 320px at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(700px 320px at 50% 0%, #000 20%, transparent 78%);
}
@keyframes heroDrift {
  from { transform: translate3d(-3%, 0, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.08); }
}
.hero > * { position: relative; z-index: 1; }
.hero-visual { margin: 30px 0 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.hero-visual img { display: block; width: 100%; height: auto; }

.badge-update {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.05); color: var(--muted);
  border: 1px solid var(--line);
  font-size: .74rem; font-weight: 510; padding: 5px 13px; border-radius: 999px;
  margin-bottom: 22px;
}
.badge-update::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3ecf8e;
  box-shadow: 0 0 0 3px rgba(62,207,142,.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

h1 {
  font-size: 2.6rem; line-height: 1.14; letter-spacing: -.024em; font-weight: 510;
  margin-bottom: 18px;
}
h1 .hl {
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead { color: var(--muted); font-size: .98rem; max-width: 46em; margin-bottom: 18px; }
.pr-note { font-size: .69rem; color: #5b6068; margin-bottom: 0; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.trust-badges span {
  font-size: .73rem; font-weight: 510; color: var(--muted);
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px; display: inline-flex; align-items: center; gap: 6px;
}
.trust-badges span::before { content: "✓"; color: var(--accent-2); }

/* 見出し */
h2 {
  font-size: 1.42rem; font-weight: 590; margin: 72px 0 16px; line-height: 1.4; letter-spacing: -.018em;
  display: flex; align-items: center; gap: 12px;
}
h2::before {
  content: ""; width: 3px; height: 20px; border-radius: 2px; flex-shrink: 0;
  background: var(--accent-grad);
}
h2 + p, h2 + .lead { margin-top: 0; }
h2 + .table-scroll, h2 + .rank-cards, h2 + .calc-card, h2 + .tool-grid, h2 + .plan-grid { margin-top: 18px; }
h3 { font-size: 1.04rem; font-weight: 590; margin: 34px 0 10px; letter-spacing: -.012em; }
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px 1.4em; }
li { margin-bottom: 6px; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 590; }

/* 料金プランカード（Linear型：枠線を引かず縦罫だけで区切る） */
.plan-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid var(--line); margin: 22px 0 8px;
}
.plan {
  padding: 26px 24px 28px; border-left: 1px solid var(--line);
  position: relative; transition: background .2s;
}
.plan:first-child { border-left: none; }
.plan:hover { background: rgba(255,255,255,.02); }
.plan.featured::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--accent-grad);
}
.plan-name { font-size: 1.3rem; font-weight: 590; letter-spacing: -.014em; display: flex; align-items: center; gap: 8px; }
.plan-tag {
  font-size: .66rem; font-weight: 510; color: var(--accent); letter-spacing: .02em;
  border: 1px solid rgba(124,108,255,.4); background: rgba(124,108,255,.10);
  border-radius: 999px; padding: 2px 9px;
}
.plan-desc { color: var(--muted); font-size: .82rem; margin: 6px 0 18px; min-height: 2.6em; }
.plan-price { font-size: 1.7rem; font-weight: 590; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: .78rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan-yen { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.plan hr { border: none; border-top: 1px solid var(--line-soft); margin: 18px 0; }
.plan ul { list-style: none; margin: 0; }
.plan li { font-size: .82rem; color: var(--text); margin-bottom: 9px; padding-left: 22px; position: relative; line-height: 1.6; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 13px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan li::after {
  content: ""; position: absolute; left: 4.4px; top: 10px; width: 4px; height: 2px;
  border-left: 1.4px solid var(--accent-2); border-bottom: 1.4px solid var(--accent-2);
  transform: rotate(-45deg);
}

/* 表：ダーク版 */
.article table, .content-card table, .table-scroll table {
  width: 100%; border-collapse: collapse; margin: 0 0 8px;
  font-size: .84rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.article th, .article td, .content-card th, .content-card td,
.table-scroll th, .table-scroll td {
  border-bottom: 1px solid var(--line-soft); padding: 13px 14px; text-align: left; vertical-align: top;
}

/* 縦ヘッダー型の表（各行の先頭がth）は薄いグレーで */
.article th, .content-card th, .table-scroll th { background: var(--surface-2); color: var(--text); }
.article tr:first-child:has(th + th) th, .table-scroll tr:first-child:has(th + th) th, .content-card tr:first-child:has(th + th) th {
  background: var(--surface-2); color: var(--muted); font-size: .74rem; font-weight: 510; letter-spacing: .04em;
  border-bottom: 1px solid var(--line);
}
.table-scroll tbody tr, .article tbody tr { transition: background .15s; }
.table-scroll tbody tr:hover td, .article tbody tr:hover td { background: rgba(255,255,255,.03); }
.article tr:last-child td, .table-scroll tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; margin-bottom: 16px; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 680px; }

/* カード類 */
.calc-card, .content-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px; margin-bottom: 22px;
}
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; margin: 24px 0; }
.tool-card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--text);
  position: relative; overflow: hidden;
  transition: transform .2s, border-color .2s, background .2s;
}
.tool-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--accent-grad); opacity: 0; transition: opacity .2s;
}
.tool-card:hover { transform: translateY(-3px); border-color: #33353a; background: var(--surface-2); }
.tool-card:hover::before { opacity: 1; }
.tool-card .tool-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  font-size: 1.25rem; display: flex; align-items: center; justify-content: center; margin-bottom: 13px;
}
.tool-card .tool-name { font-weight: 590; font-size: 1rem; margin-bottom: 6px; letter-spacing: -.01em; }
.tool-card .tool-desc { font-size: .8rem; color: var(--muted); line-height: 1.7; }
.tool-card .tool-more { display: inline-block; margin-top: 12px; font-size: .78rem; font-weight: 510; color: var(--accent-2); }

.rank-cards { display: grid; gap: 14px; margin: 20px 0 10px; counter-reset: rank; }
.rank-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center;
  position: relative; transition: border-color .2s, background .2s;
}
.rank-card:hover { border-color: #33353a; background: var(--surface-2); }
.rank-card::before {
  counter-increment: rank; content: counter(rank);
  position: absolute; top: -10px; left: 16px;
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--accent-grad); color: #fff;
  font-size: .78rem; font-weight: 590; display: flex; align-items: center; justify-content: center;
}
.rank-card .rc-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; grid-column: 1; grid-row: 1; padding-top: 4px; }
.rank-card .rc-name { font-size: 1.08rem; font-weight: 590; }
.rank-card .rc-tag {
  font-size: .68rem; font-weight: 510; color: var(--accent);
  background: rgba(124,108,255,.10); border: 1px solid rgba(124,108,255,.35);
  border-radius: 999px; padding: 2px 10px;
}
.rank-card .rc-tag.warn { color: var(--warn); background: rgba(255,178,36,.10); border-color: rgba(255,178,36,.35); }
.rank-card .rc-price { grid-column: 1; grid-row: 2; font-size: .85rem; color: var(--muted); margin: 2px 0 0; }
.rank-card .rc-price b { font-size: 1.45rem; color: var(--text); font-weight: 590; font-variant-numeric: tabular-nums; }
.rank-card .rc-note { font-size: .77rem; color: var(--muted); grid-column: 1 / -1; margin: 6px 0 0; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.rank-card .rc-cta { grid-column: 2; grid-row: 1 / 3; align-self: center; }

/* ボタン */
.calc-btn, .btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: #e5e5e6; color: #08090a !important; font-size: .84rem; font-weight: 510;
  text-decoration: none; border: none; border-radius: 999px; padding: 0 18px; height: 34px;
  cursor: pointer; transition: background .15s;
}
.calc-btn::before, .btn-cta::before { display: none; }
.calc-btn:hover, .btn-cta:hover { background: #fff; transform: none; text-decoration: none; }
.btn-cta::after { content: "→"; }
.btn-ghost { background: transparent; color: var(--text) !important; border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }

/* 図版 */
figure.fig { margin: 26px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
figure.fig img { display: block; width: 100%; height: auto; }
figure.fig figcaption { font-size: .76rem; color: var(--muted); padding: 11px 14px; border-top: 1px solid var(--line); }

/* 目次 */
.toc { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; }
.toc strong { color: var(--text); }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--accent-2); }

/* 注意・FAQ */
.disclaimer {
  background: rgba(255,178,36,.06); border: 1px solid rgba(255,178,36,.22); border-left: 3px solid var(--warn);
  border-radius: var(--radius); padding: 16px 20px; font-size: .78rem; color: #d8c49a; margin: 30px 0; line-height: 1.85;
}
.disclaimer a { color: var(--warn); }
.faq dt { font-weight: 590; margin-top: 22px; padding-left: 30px; position: relative; }
.faq dt::before {
  content: "Q"; position: absolute; left: 0; top: 3px; width: 21px; height: 21px;
  background: rgba(124,108,255,.14); color: var(--accent); border: 1px solid rgba(124,108,255,.35);
  font-size: .7rem; font-weight: 590; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.faq dd { margin: 7px 0 0 30px; color: var(--muted); font-size: .9rem; }

.breadcrumb { font-size: .75rem; color: var(--muted); margin: 22px 0 6px; }
.breadcrumb a { color: var(--muted); }
main > .breadcrumb + h1 { font-size: 1.85rem; margin-top: 4px; }

/* フッター */
.site-footer { background: #050506; color: var(--muted); margin-top: 56px; border-top: 1px solid var(--line); }
.site-footer .inner { max-width: 1120px; margin: 0 auto; padding: 44px 24px 30px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px 64px; margin-bottom: 26px; }
.footer-brand { max-width: 300px; }
.footer-brand .fb-name { font-weight: 590; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; color: var(--text); }
.footer-brand p { font-size: .76rem; color: #6b7079; margin: 0; line-height: 1.8; }
.footer-col .fc-title { font-size: .68rem; font-weight: 590; color: #5b6068; letter-spacing: .1em; margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { font-size: .82rem; color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-note { font-size: .69rem; color: #5b6068; border-top: 1px solid var(--line); padding-top: 18px; }
.footer-note p { margin-bottom: 4px; }

/* ── モーション（離脱対策）────────────────────────
   スクロールで要素がふわっと出る／数値が回る／カードが浮く。
   端末側で「視差効果を減らす」を選んでいる人には一切動かさない。 */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s }
.reveal[data-d="2"] { transition-delay: .16s }
.reveal[data-d="3"] { transition-delay: .24s }
.reveal[data-d="4"] { transition-delay: .32s }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero::before { animation: none !important; }
  .badge-update::before { animation: none !important; }
  html { scroll-behavior: auto; }
  * { transition-duration: .001ms !important; }
}

@media (max-width: 860px) {
  .plan-grid { grid-template-columns: 1fr; border-top: none; }
  .plan { border-left: none; border-top: 1px solid var(--line); }
  .plan:first-child { border-top: none; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.72rem; }
  main > .breadcrumb + h1 { font-size: 1.44rem; }
  h2 { font-size: 1.16rem; margin-top: 52px; }
  .header-nav { display: none; }
  main { padding: 0 18px 56px; }
  .hero { margin: 0 -18px; padding: 46px 18px 38px; }
  .calc-card, .content-card { padding: 20px 16px; }
  .rank-card { grid-template-columns: 1fr; }
  .rank-card .rc-head, .rank-card .rc-price { grid-column: 1; grid-row: auto; }
  .rank-card .rc-cta { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .rank-card .btn-cta { width: 100%; }
}

/* サービスロゴ */
.tlogo { border-radius: 5px; vertical-align: -4px; margin-right: 8px; background: #fff; padding: 1px; }
.tcell { white-space: nowrap; }
.rc-name .tlogo-lg { width: 24px; height: 24px; vertical-align: -5px; }
