:root {
  --navy: #1a2b4a;
  --navy-light: #2a4270;
  --accent: #e8618c;
  --accent-dark: #d14a77;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --text: #2b3445;
  --text-soft: #5a6478;
  --border: #e3e8f0;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 700; font-size: 1.05rem; color: var(--navy); text-decoration: none; letter-spacing: .02em; }
.logo span { color: var(--accent); }
.logo small { display: block; font-size: .62rem; font-weight: 600; color: var(--text-soft); letter-spacing: .08em; line-height: 1.2; }
nav a { color: var(--text-soft); text-decoration: none; font-size: .9rem; margin-left: 24px; }
nav a:hover { color: var(--navy); }
nav .nav-cta {
  background: var(--accent); color: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 600;
}
nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }
@media (max-width: 720px) { nav a:not(.nav-cta) { display: none; } }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; padding: 88px 0 96px; text-align: center;
}
.hero .badge {
  display: inline-block; border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  padding: 4px 16px; font-size: .82rem; letter-spacing: .05em; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); font-weight: 700; line-height: 1.5; }
.hero h1 .em { color: #ffd166; }
.hero p.lead { margin: 20px auto 0; max-width: 640px; font-size: 1.02rem; color: rgba(255,255,255,.85); }
.hero .cta-row { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .cta-sub { margin-top: 14px; font-size: .82rem; color: rgba(255,255,255,.7); }
.btn {
  display: inline-block; padding: 14px 36px; border-radius: 999px; font-weight: 700;
  text-decoration: none; font-size: 1rem; transition: transform .15s, box-shadow .15s;
  border: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(232,97,140,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(232,97,140,.5); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Sections */
section { padding: 80px 0; }
section.soft { background: var(--bg-soft); }
.sec-label { text-align: center; color: var(--accent); font-weight: 700; letter-spacing: .12em; font-size: .85rem; }
h2 { text-align: center; font-size: clamp(1.4rem, 3.5vw, 1.9rem); color: var(--navy); margin: 8px 0 12px; }
.sec-lead { text-align: center; color: var(--text-soft); max-width: 620px; margin: 0 auto 48px; font-size: .95rem; }

/* Problems */
.problems { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.problem {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px;
}
.problem .q { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.problem .q::before { content: "✕ "; color: var(--accent); }
.problem p { font-size: .9rem; color: var(--text-soft); }

/* Plugin grid */
.cat { margin-bottom: 40px; }
.cat h3 {
  font-size: 1.05rem; color: var(--navy); border-left: 4px solid var(--accent);
  padding-left: 12px; margin-bottom: 18px;
}
.plugins { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.plugin {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; transition: box-shadow .2s; position: relative;
}
.plugin:hover { box-shadow: 0 6px 18px rgba(26,43,74,.08); }
.plugin .name { font-weight: 700; color: var(--navy); font-size: .98rem; }
.plugin .desc { font-size: .86rem; color: var(--text-soft); margin-top: 6px; }
.plugin .tag {
  display: inline-block; font-size: .7rem; font-weight: 700; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px; padding: 0 10px; margin-left: 8px; vertical-align: 2px;
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 760px; margin: 0 auto; }
.plan {
  background: #fff; border: 1.5px solid var(--border); border-radius: 16px;
  padding: 40px 32px; text-align: center; position: relative;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 12px 32px rgba(232,97,140,.14); }
.plan .rec {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 4px 18px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 1.1rem; color: var(--navy); }
.plan .price { margin: 18px 0 4px; color: var(--navy); }
.plan .price .num { font-size: 2.6rem; font-weight: 700; }
.plan .price .unit { font-size: .9rem; color: var(--text-soft); }
.plan .note { font-size: .82rem; color: var(--text-soft); }
.plan ul { list-style: none; margin: 24px 0 28px; text-align: left; }
.plan li { font-size: .9rem; padding: 7px 0 7px 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.plan .btn { width: 100%; }
.pricing-note { text-align: center; color: var(--text-soft); font-size: .82rem; margin-top: 24px; }

/* Flow */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; text-align: center; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.step .t { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.step p { font-size: .86rem; color: var(--text-soft); }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; padding: 0 22px;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy); padding: 18px 0; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; color: var(--accent); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; font-size: .9rem; color: var(--text-soft); }

/* CTA */
.cta-final { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 32px; }

/* Footer */
footer { padding: 40px 0 32px; font-size: .8rem; color: var(--text-soft); border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; margin-bottom: 16px; }
.footer-inner a { color: var(--text-soft); text-decoration: none; }
.footer-inner a:hover { color: var(--navy); text-decoration: underline; }
footer .copy { text-align: center; }

/* ---- サブページ共通 ---- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; padding: 56px 0; text-align: center;
}
.page-hero h1 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.page-hero p { margin-top: 10px; color: rgba(255,255,255,.85); font-size: .95rem; }
.narrow { max-width: 640px; margin: 0 auto; }

/* フォーム */
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 36px 32px; box-shadow: 0 6px 24px rgba(26,43,74,.06);
}
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
.field .hint { font-size: .78rem; color: var(--text-soft); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 1rem; font-family: inherit; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.domain-row { display: flex; align-items: center; gap: 8px; }
.domain-row input { flex: 1; }
.domain-row .suffix { color: var(--text-soft); font-size: .95rem; white-space: nowrap; }
.radio-cards { display: grid; gap: 12px; }
.radio-card {
  display: flex; align-items: flex-start; gap: 12px; border: 1.5px solid var(--border);
  border-radius: 10px; padding: 14px 16px; cursor: pointer; transition: border-color .15s;
}
.radio-card:has(input:checked) { border-color: var(--accent); background: #fff8fa; }
.radio-card input { margin-top: 6px; accent-color: var(--accent); }
.radio-card .rc-title { font-weight: 700; color: var(--navy); font-size: .95rem; }
.radio-card .rc-desc { font-size: .8rem; color: var(--text-soft); }
.agree { font-size: .82rem; color: var(--text-soft); margin: 18px 0; }
.agree a { color: var(--accent); }
.msg { display: none; border-radius: 10px; padding: 16px 18px; font-size: .9rem; margin-top: 20px; }
.msg.ok { display: block; background: #eefaf2; border: 1px solid #bfe8cd; color: #1c6b3c; }
.msg.err { display: block; background: #fdf0f3; border: 1px solid #f3c7d3; color: #a52a4e; }

/* 法的ページ */
.legal { padding: 56px 0 80px; }
.legal .narrow { max-width: 760px; }
.legal h1 { font-size: 1.5rem; color: var(--navy); margin-bottom: 28px; }
.legal h2 { text-align: left; font-size: 1.1rem; margin: 32px 0 10px; }
.legal p, .legal li { font-size: .92rem; color: var(--text); }
.legal ul, .legal ol { padding-left: 24px; margin: 10px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal th, .legal td { border: 1px solid var(--border); padding: 12px 16px; font-size: .9rem; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-soft); color: var(--navy); width: 32%; font-weight: 700; }
.legal .updated { color: var(--text-soft); font-size: .82rem; margin-top: 32px; }

/* ダウンロード */
.dl-box {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px;
}
.dl-box .dl-name { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.dl-box .dl-meta { font-size: .82rem; color: var(--text-soft); }
.howto { counter-reset: howto; list-style: none; padding: 0; margin: 24px 0; }
.howto li { position: relative; padding: 10px 0 10px 44px; font-size: .92rem; }
.howto li::before {
  counter-increment: howto; content: counter(howto);
  position: absolute; left: 0; top: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem;
}
