:root {
  --bg: #07090f;
  --surface: #0d1221;
  --surface-2: #141c32;
  --border: #1e2b45;
  --text: #dde4f5;
  --muted: #6b7899;
  --accent: #4361ee;
  --accent-2: #7c3aed;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 14px;
  --maxw: 1200px;
  --shadow: 0 12px 40px rgba(0,0,0,.5);
  --grad: linear-gradient(135deg, #4361ee, #7c3aed);
  --font: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", sans-serif;
}
[data-theme="light"] {
  --bg: #f7f9ff;
  --surface: #ffffff;
  --surface-2: #eef1fb;
  --border: #d6ddf0;
  --text: #0d1220;
  --muted: #4e5a7a;
  --shadow: 0 8px 28px rgba(15,23,60,.1);
}
* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--text); }
.muted { color: var(--muted); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); font-size: 1.05rem; white-space: nowrap; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: .95rem;
  box-shadow: 0 4px 16px rgba(67,97,238,.45); flex-shrink: 0;
}
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .9rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; cursor: pointer; color: var(--text);
  font-size: 1rem; transition: background .2s; outline: none;
}
.icon-btn:hover { background: var(--surface-2); }
.menu-toggle { display: none; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px; font-weight: 600;
  font-size: .9rem; cursor: pointer; transition: all .2s; border: none;
  font-family: var(--font); line-height: 1.4;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 18px rgba(67,97,238,.4); }
.btn-primary:hover { opacity: .88; color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--text); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 12px; }

/* SECTIONS */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: .4em; }
.section-sub { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 52px; font-size: 1.02rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* HERO */
.hero { padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 20%, rgba(67,97,238,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 480px; line-height: 1.85; margin-bottom: 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--border); }
.stat .num { font-size: 1.7rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat .lbl { font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* HERO CARD */
.hero-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(67,97,238,.1);
  position: relative; overflow: hidden;
}
.hero-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.rating-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px; font-size: .78rem; font-weight: 600;
}
.badge-blue { background: rgba(67,97,238,.18); color: var(--accent); }
.badge-green { background: rgba(16,185,129,.18); color: var(--success); }
.badge-purple { background: rgba(124,58,237,.18); color: var(--accent-2); }
.badge-orange { background: rgba(245,158,11,.18); color: var(--warning); }
.app-meta { display: flex; flex-direction: column; gap: 10px; }
.app-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--surface-2); border-radius: 10px; font-size: .88rem;
}
.app-meta-row .label { color: var(--muted); }
.app-meta-row .value { font-weight: 600; }

/* CARDS */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(67,97,238,.15); }
.card .ico { font-size: 1.8rem; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* SCORE BARS */
.score-bar { margin-bottom: 16px; }
.score-bar label { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 6px; }
.score-bar label span:last-child { font-weight: 700; }
.bar-track { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: var(--grad); }

/* COMPARISON TABLE */
.comp-table-wrap { overflow-x: auto; margin-top: 40px; }
.comp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.comp-table th, .comp-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.comp-table th { background: var(--surface); font-weight: 700; color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.comp-table td:first-child { color: var(--muted); font-size: .88rem; }
.comp-table tr:hover td { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.comp-table .highlight td { background: rgba(67,97,238,.07); }
.comp-table .check { color: var(--success); font-weight: 700; }
.comp-table .cross { color: var(--danger); }
.comp-table .partial { color: var(--warning); }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 48px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; position: relative; transition: transform .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(67,97,238,.25); }
.plan.featured::before {
  content: "人気 No.1"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; padding: 4px 18px; border-radius: 20px;
  font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.plan-name { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.plan-price { margin-bottom: 8px; }
.plan-price .amount { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.plan-price .period { font-size: .88rem; color: var(--muted); margin-left: 4px; }
.plan-desc { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; }
.plan-features li::before { content: "✓"; color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: 3px; }
.plan-features li.no::before { content: "✕"; color: var(--border); }
.plan-features li.no { color: var(--muted); }

/* BLOG */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-thumb { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.post-body { padding: 22px; }
.post-meta { font-size: .78rem; color: var(--muted); margin-bottom: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.post-body h3 { font-size: 1rem; margin-bottom: 8px; }
.post-body p { font-size: .88rem; color: var(--muted); margin: 0; }
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.tag { padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(67,97,238,.15); display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 16px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font); font-size: .9rem;
  transition: border-color .2s; outline: none; width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select option { background: var(--surface); }
#contact-status { min-height: 20px; font-size: .9rem; }

/* DOCS */
.docs-grid { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.docs-nav { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.docs-nav h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.docs-nav ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 4px; }
.docs-nav ul a { display: block; padding: 7px 12px; border-radius: 8px; font-size: .88rem; color: var(--muted); transition: all .2s; }
.docs-nav ul a:hover { background: rgba(67,97,238,.1); color: var(--accent); }
.docs-content { max-width: 720px; }
.docs-content h2 { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--border); }
.docs-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.docs-content code { background: var(--surface-2); padding: 2px 7px; border-radius: 5px; font-size: .85em; font-family: monospace; color: var(--accent); }
.callout { display: flex; gap: 14px; padding: 16px 20px; border-radius: 12px; margin: 20px 0; border: 1px solid; }
.callout.info { background: rgba(67,97,238,.1); border-color: rgba(67,97,238,.3); }
.callout.tip { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.3); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 40px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q { padding: 18px 22px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; font-size: .95rem; }
.faq-q::after { content: "＋"; color: var(--accent); font-size: 1.1rem; }
.faq-item.open .faq-q::after { content: "－"; }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; color: var(--muted); font-size: .92rem; transition: max-height .3s ease, padding .3s; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 22px 18px; }

/* CTA STRIP */
.cta-strip {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  margin-top: 60px; position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(67,97,238,.12), transparent);
  pointer-events: none;
}
.cta-strip h3 { font-size: 1.3rem; margin-bottom: 6px; }
.cta-strip p { color: var(--muted); margin: 0; font-size: .95rem; }

/* FOOTER */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-grid h4 { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot-grid a { display: block; color: var(--muted); font-size: .88rem; margin-bottom: 8px; transition: color .2s; }
.foot-grid a:hover { color: var(--text); }
.foot-legal { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.foot-legal address { font-style: normal; font-size: .8rem; color: var(--muted); line-height: 1.7; }
.foot-legal .copy { font-size: .8rem; color: var(--muted); }

/* COOKIE BANNER */
.cookie {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  max-width: 700px; width: calc(100% - 40px);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 24px;
  display: flex; gap: 20px; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow); z-index: 100; flex-wrap: wrap;
}
.cookie.hidden { display: none; }
.cookie p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1; }
.cookie .actions { display: flex; gap: 8px; flex-shrink: 0; }

/* LEGAL */
.legal-content { max-width: 760px; margin: 0 auto; padding: 60px 0; }
.legal-content h1 { margin-bottom: 8px; }
.legal-content .last-updated { color: var(--muted); font-size: .88rem; margin-bottom: 48px; display: block; }
.legal-content h2 { font-size: 1.25rem; margin-top: 40px; margin-bottom: 12px; }
.legal-content p, .legal-content li { color: var(--muted); font-size: .93rem; line-height: 1.85; }
.legal-content ul, .legal-content ol { padding-left: 20px; margin: 12px 0; }
.legal-content li { margin-bottom: 6px; }

/* UTILS */
.text-grad { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.surface-section { background: var(--surface); }
.divider { height: 1px; background: var(--border); margin: 40px 0; }

/* RESPONSIVE */
@media(max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-nav { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-strip { flex-direction: column; text-align: center; }
}
@media(max-width: 700px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; padding: 16px 24px;
    background: var(--surface); border-bottom: 1px solid var(--border); gap: 12px;
  }
  .nav-links.open { display: flex; }
  .nav { position: relative; flex-wrap: wrap; }
  .menu-toggle { display: grid; }
  .foot-grid { grid-template-columns: 1fr; }
  .stats { gap: 20px; }
  section { padding: 56px 0; }
  .hero { padding: 70px 0 56px; }
  .cta-strip { padding: 28px 24px; }
}
