:root {
  --navy: #1a2b4a;
  --navy-light: #2a4270;
  --ink: #0b1424;
  --ink-2: #101d36;
  --accent: #d2d254;        /* kintoneイエロー(ロゴ準拠) */
  --accent-dark: #b9b944;
  --accent-text: #8f8f2b;   /* 白背景上の文字用の濃いイエロー */
  --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 { text-decoration: none; }
.logo img { display: block; height: 30px; width: auto; }
.logo small { display: block; margin-top: 2px; 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: var(--ink); padding: 8px 18px; border-radius: 999px; font-weight: 600;
}
nav .nav-cta:hover { background: var(--accent-dark); color: var(--ink); }
@media (max-width: 720px) { nav a:not(.nav-cta) { display: none; } }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 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: linear-gradient(135deg, #e9e97a, var(--accent)); color: var(--ink); box-shadow: 0 6px 20px rgba(210,210,84,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(210,210,84,.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-text); font-family: "Cinzel", serif; font-weight: 700; letter-spacing: .3em; font-size: .85rem; }
.sec-label::before, .sec-label::after { content: " ✦ "; color: var(--accent); font-size: .7em; vertical-align: 2px; }
h1, h2, h3 { font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif; }
h2 { text-align: center; font-size: clamp(1.4rem, 3.5vw, 1.9rem); font-weight: 900; 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: #c25e5e; }
.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-text);
  border: 1px solid var(--accent); background: rgba(210,210,84,.12);
  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(210,210,84,.22); }
.plan .rec {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--ink); 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-text); 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(--accent); color: var(--ink); font-weight: 700; margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(210,210,84,.4);
}
.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-text); 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(180deg, var(--ink) 0%, var(--ink-2) 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(夜を駆けるこどもキンタウロス) — マークアップは scripts/partials/footer.html が正 */
footer {
  --footer-bg: #0e1728; /* footer-night.webp の空・地面と同じ色(継ぎ目を出さない) */
  position: relative; overflow: hidden; font-size: .88rem; color: rgba(255,255,255,.85);
  background: var(--footer-bg);
}
.footer-art {
  height: clamp(200px, 30vw, 430px);
  background: url("/images/footer-night.webp") center bottom / cover no-repeat var(--footer-bg);
}
footer .container { position: relative; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 40px 56px;
  padding: 28px 0 48px;
}
.footer-logo { display: block; margin-bottom: 20px; }
.footer-logo img { display: block; height: 34px; width: auto; }
.footer-def { color: rgba(255,255,255,.72); font-size: .82rem; line-height: 1.9; max-width: 460px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-col-t { font-weight: 700; color: var(--accent); font-size: .78rem; letter-spacing: .14em; margin-bottom: 4px; }
/* ヘッダー用の nav a(margin-left / モバイル非表示)を打ち消す。リンクは白+下線で背景と区別する */
footer nav.footer-col a {
  display: inline-block; margin-left: 0; font-size: .9rem; line-height: 1.6; color: #fff; text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat; padding-bottom: 2px;
  transition: background-size .25s ease, color .2s ease;
}
footer nav.footer-col a:hover, footer nav.footer-col a:focus-visible { color: #f1f196; background-size: 100% 2px; }
.footer-bottom {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.16); padding: 24px 0 32px;
}
.footer-bottom .footer-def { flex: 1 1 420px; max-width: none; font-size: .76rem; color: rgba(255,255,255,.62); }
footer .copy { color: rgba(255,255,255,.72); font-size: .78rem; white-space: nowrap; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding: 20px 0 36px; }
  .footer-brand { grid-column: 1 / -1; }
  footer .copy { white-space: normal; }
}

/* ---- サブページ共通 ---- */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff; padding: 56px 0; text-align: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: -60% -20%;
  background: conic-gradient(from 120deg at 50% 0%,
    transparent 0deg, rgba(210,210,84,.07) 14deg, transparent 30deg,
    transparent 330deg, rgba(210,210,84,.07) 346deg, transparent 360deg);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.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-dark); }
.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-dark); background: #fbfbee; }
.radio-card input { margin-top: 6px; accent-color: var(--accent-dark); }
.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-text); }
.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; }

/* プラグイン一覧カードのリンク化 */
a.plugin { display: block; text-decoration: none; }
.plugin .more { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--accent-text); margin-top: 10px; }
a.plugin:hover .more { text-decoration: underline; }

/* ---- プラグイン詳細ページ ---- */
.plugin-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff; padding: 64px 0 72px;
}
/* ヒーロー背景アート(--hero-art に各プラグインのイラストを指定) */
.plugin-hero.has-art {
  background-image:
    linear-gradient(90deg, rgba(11,20,36,.97) 0%, rgba(11,20,36,.9) 34%, rgba(11,20,36,.45) 58%, rgba(11,20,36,.08) 82%, rgba(11,20,36,0) 100%),
    var(--hero-art), linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  background-size: cover, auto 100%, cover;
  background-position: center, right center, center;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  .plugin-hero.has-art {
    background-image:
      linear-gradient(180deg, rgba(11,20,36,.86) 0%, rgba(11,20,36,.78) 100%),
      var(--hero-art), linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
    background-size: cover, cover, cover;
    background-position: center, center, center;
  }
}
/* 一覧ページ: PR画像(横長バナー)を全面に敷く */
.plugin-hero.hero-banner {
  background-image:
    linear-gradient(90deg, rgba(11,20,36,.96) 0%, rgba(11,20,36,.88) 40%, rgba(11,20,36,.55) 75%, rgba(11,20,36,.35) 100%),
    var(--hero-art), linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  background-size: cover, cover, cover;
  background-position: center, center 35%, center;
}
@media (max-width: 768px) {
  .plugin-hero.hero-banner {
    background-image:
      linear-gradient(180deg, rgba(11,20,36,.9) 0%, rgba(11,20,36,.82) 100%),
      var(--hero-art), linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  }
}
.plugin-hero::before {
  content: ""; position: absolute; inset: -60% -20%;
  background: conic-gradient(from 120deg at 50% 0%,
    transparent 0deg, rgba(210,210,84,.07) 14deg, transparent 30deg,
    transparent 330deg, rgba(210,210,84,.07) 346deg, transparent 360deg);
  pointer-events: none;
}
.plugin-hero .container { position: relative; }
.plugin-hero .crumb { font-size: .8rem; margin-bottom: 20px; }
.plugin-hero .crumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.plugin-hero .crumb a:hover { color: #fff; text-decoration: underline; }
.plugin-hero .crumb span { color: rgba(255,255,255,.5); margin: 0 6px; }
.plugin-hero h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.4; }
.plugin-hero h1 .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; color: #fff;
  border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 2px 12px;
  margin-left: 12px; vertical-align: middle;
}
.plugin-hero .lead { margin-top: 14px; max-width: 640px; color: rgba(255,255,255,.85); font-size: 1rem; }
.plugin-hero .meta { margin-top: 10px; font-size: .82rem; color: rgba(255,255,255,.6); }
.plugin-hero .cta-row { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* スクリーンショット枠(画像が用意できたら中の .shot-placeholder を <img> に差し替える) */
.shot {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 8px 28px rgba(26,43,74,.10);
}
.shot img { display: block; width: 100%; height: auto; }
.shot .shot-placeholder {
  aspect-ratio: 16 / 9; display: flex; flex-direction: column; gap: 6px;
  align-items: center; justify-content: center;
  border: 2px dashed var(--border); border-radius: var(--radius); margin: 8px;
  color: var(--text-soft); font-size: .88rem;
}
.shot .shot-placeholder::before { content: "🖼"; font-size: 1.6rem; opacity: .5; }
.shot-caption { text-align: center; font-size: .82rem; color: var(--text-soft); margin-top: 10px; }
.hero-shot { max-width: 860px; margin: -40px auto 0; padding: 0 24px; position: relative; z-index: 2; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.shot-note { text-align: center; font-size: .75rem; color: var(--text-soft); opacity: .75; margin-top: 28px; }

/* 特長 */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px;
}
.feature .ic { font-size: 1.5rem; margin-bottom: 10px; }
.feature .t { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.feature p { font-size: .88rem; color: var(--text-soft); }

/* 使い方(縦ステップ) */
.usage { max-width: 720px; margin: 0 auto; counter-reset: usage; }
.usage .u-step {
  position: relative; padding: 0 0 32px 56px;
}
.usage .u-step::before {
  counter-increment: usage; content: counter(usage);
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--ink); font-weight: 700;
  box-shadow: 0 4px 14px rgba(210,210,84,.4);
}
.usage .u-step:not(:last-child)::after {
  content: ""; position: absolute; left: 18px; top: 44px; bottom: 6px;
  width: 2px; background: var(--border);
}
.usage .u-step .t { font-weight: 700; color: var(--navy); margin-bottom: 4px; padding-top: 6px; }
.usage .u-step p { font-size: .9rem; color: var(--text-soft); }
.usage .u-step .shot { margin-top: 14px; }
.usage .u-step .shot .shot-placeholder { aspect-ratio: 21 / 9; }

/* 活用事例 */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.case {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px;
}
.case .c-tag {
  display: inline-block; font-size: .74rem; font-weight: 700; color: var(--accent-text);
  background: #f6f6e0; border-radius: 999px; padding: 2px 12px; margin-bottom: 10px;
}
.case .t { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.case p { font-size: .88rem; color: var(--text-soft); }
.case .flow {
  margin-top: 12px; font-size: .8rem; color: var(--navy); font-weight: 600;
  background: var(--bg-soft); border-radius: 8px; padding: 8px 12px;
}

/* 仕様テーブル */
.spec { width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse; }
.plugin-hero h1 .name-sub { font-size: .72em; font-weight: 700; }
.notice-box {
  max-width: 760px; margin: 28px auto 0; padding: 20px 24px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px;
}
.notice-box .t { font-weight: 700; color: var(--navy); margin-bottom: 10px; font-size: .95rem; }
.notice-box p { font-size: .86rem; line-height: 1.9; color: var(--text); margin: 0 0 10px; }
.notice-box p:last-child { margin-bottom: 0; }
.notice-box .sub { font-size: .8rem; color: var(--text-soft); }
.spec th, .spec td { border: 1px solid var(--border); padding: 12px 16px; font-size: .9rem; text-align: left; vertical-align: top; }
.spec th { background: var(--bg-soft); color: var(--navy); width: 30%; font-weight: 700; }

/* ダウンロード */
.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(--accent); color: var(--ink); font-weight: 700; font-size: .85rem;
}

/* ダウンロードページ: プラグイン一覧テーブル(モバイルでも2列のまま収まるシンプル構成) */
.dl-table { width: 100%; max-width: 720px; margin: 0 auto 40px; border-collapse: collapse; background: #fff; border: 1px solid #e3e7ee; border-radius: 12px; overflow: hidden; }
.dl-table td { padding: 13px 16px; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
.dl-table tr:last-child td { border-bottom: none; }
.dl-table .dl-plugin { font-weight: 700; color: var(--navy); text-decoration: none; }
.dl-table .dl-plugin:hover { color: var(--accent-text); text-decoration: underline; }
.dl-table .dl-ver { margin-left: 8px; font-size: .75rem; color: var(--text-soft); white-space: nowrap; }
.dl-table .dl-act { text-align: right; white-space: nowrap; width: 1%; }
.dl-table .dl-btn { padding: 7px 16px; font-size: .82rem; box-shadow: none; }
.dl-table .dl-btn:hover { transform: none; box-shadow: 0 4px 12px rgba(210,210,84,.4); }
@media (max-width: 480px) {
  .dl-table td { padding: 11px 10px; }
  .dl-table .dl-plugin { font-size: .9rem; }
  .dl-table .dl-ver { display: block; margin-left: 0; }
  .dl-table .dl-btn { padding: 6px 12px; font-size: .78rem; }
}

/* トップページ: 無料トライアルCTAの強調と、独立したお問い合わせセクション */
.cta-final .btn-xl { padding: 18px 48px; font-size: 1.08rem; }
.cta-final .cta-note { margin: 14px auto 0; font-size: .82rem; color: rgba(255,255,255,.7); }
.contact-sec { background: var(--bg-soft); }
.contact-sec .contact-form {
  max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid #e3e7ee;
  border-radius: 16px; padding: 24px 24px 8px; text-align: left;
}

/* ライトボックス(スクリーンショット拡大表示) */
.shot img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 23, 42, .84);
  display: flex; align-items: center; justify-content: center;
  padding: 32px; opacity: 0; transition: opacity .18s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox-figure {
  margin: 0; max-width: min(1400px, 94vw); max-height: 92vh;
  display: flex; flex-direction: column; gap: 10px;
  transform: scale(.97); transition: transform .18s ease;
}
.lightbox.is-open .lightbox-figure { transform: scale(1); }
.lightbox-figure img {
  max-width: 100%; max-height: calc(92vh - 40px); object-fit: contain;
  border-radius: 10px; box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
  background: #fff; cursor: zoom-out;
}
.lightbox-figure figcaption {
  color: #dbe2ee; font-size: .88rem; text-align: center;
}
/* 縦長画像: 高さに収めず幅を基準に表示し、縦スクロールで全体を見られるようにする */
.lightbox.is-tall { align-items: flex-start; overflow-y: auto; }
.lightbox.is-tall .lightbox-figure { max-height: none; }
.lightbox.is-tall .lightbox-figure img { max-height: none; }
.lightbox-close {
  position: fixed; top: 18px; right: 22px;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; transition: background .15s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .28); }

/* ---- SEO副題・フッター定義文 ---- */
.plugin-hero .h1-sub {
  margin-top: 10px; font-weight: 700; font-size: .95rem;
  color: rgba(255, 255, 255, .78); letter-spacing: .02em;
}

/* プラグイン一覧ページ(/plugins/)と、トップからの導線 */
.plugins-more { text-align: center; margin-top: 8px; }
.plugin-index { padding: 56px 0 72px; background: var(--bg-soft); }
.plugin-index-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 44px; }
.plugin-index-nav a {
  font-size: .85rem; color: var(--navy); background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 14px; text-decoration: none; transition: background .2s, border-color .2s;
}
.plugin-index-nav a:hover { border-color: var(--accent); background: rgba(210,210,84,.12); }
.plugin-index .cat { scroll-margin-top: 80px; margin-bottom: 56px; }
.cat-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  position: relative; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border);
}
.cat-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 88px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), rgba(210,210,84,0)); }
.cat-num { display: block; font-family: "Cinzel", serif; font-weight: 700; font-size: .72rem; letter-spacing: .3em; color: var(--accent-text); margin-bottom: 4px; }
.cat-num::before { content: "✦ "; color: var(--accent); }
.plugin-index .cat h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 900; color: var(--navy); border: 0; padding: 0; margin: 0; line-height: 1.4; }
.cat-count { font-family: "Cinzel", serif; font-size: .72rem; letter-spacing: .2em; color: var(--text-soft); white-space: nowrap; padding-bottom: 6px; }
.plugin-index .cat-lead { margin: 0 0 22px; font-size: .92rem; color: var(--text-soft); }
.plugin-index .cat .sub-title { font-size: .9rem; font-weight: 700; color: var(--text-soft); margin: 20px 0 10px; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
/* カード: 縦書きスラッグ | サムネイル(左上にカテゴリ)+タイトル帯+紹介文+タグ。カード全体がリンク(h4 a::after で拡張) */
.pcard {
  position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px 18px 8px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pcard:hover { transform: translateY(-3px); border-color: rgba(210,210,84,.7); box-shadow: 0 14px 30px rgba(26,43,74,.12); }
.pcard-slug {
  writing-mode: vertical-rl; font-family: "SF Mono", Menlo, Consolas, monospace; font-size: .7rem;
  color: #a0a8b8; letter-spacing: .06em; padding-top: 10px; user-select: none;
}
.pcard-main { min-width: 0; }
.pcard-media { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--border); }
.pcard-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .35s ease; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-cat {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--navy); font-size: .72rem; font-weight: 700; line-height: 1;
  padding: 7px 12px 7px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(26,43,74,.15);
}
.pcard-cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dark); }
.pcard-title { position: relative; z-index: 2; margin: -30px 0 12px -16px; text-align: left; font-size: 1.05rem; line-height: 1.45; }
.pcard-title a {
  display: inline-block; max-width: calc(100% + 8px); background: var(--navy); color: #fff; text-decoration: none;
  padding: 7px 16px; border-radius: 4px; box-shadow: 0 4px 14px rgba(11,20,36,.25);
}
.pcard-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard:hover .pcard-title a { background: var(--navy-light); }
.pcard .desc { font-size: .86rem; color: var(--text-soft); margin: 0; }
.pcard-tags { margin: 14px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pcard-tags span { font-size: .78rem; color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; line-height: 1.5; }
.pcard-tags i { color: var(--accent-text); font-weight: 700; margin-right: 1px; }

/* docs ページ(AIエージェントと使う / エラーコード): ダウンロード・トライアルページと同じ page-hero + カード構成 */
.page-hero .crumb { font-size: .8rem; margin-bottom: 14px; }
.page-hero .crumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.page-hero .crumb a:hover { color: #fff; text-decoration: underline; }
.page-hero .crumb span { color: rgba(255,255,255,.5); margin: 0 6px; }
.page-hero .lead { max-width: 720px; margin-left: auto; margin-right: auto; }
.doc .doc-card { text-align: left; }
.doc .doc-card > :first-child { margin-top: 0; }
.doc h2 { font-size: 1.05rem; text-align: left; margin: 36px 0 12px; padding-left: 12px; border-left: 4px solid var(--accent); line-height: 1.5; }
.doc h2:first-child { margin-top: 0; }
.doc .updated { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); }
@media (max-width: 640px) { .doc .doc-card { padding: 24px 18px; } }

/* /docs/ 索引: ガイドへのリンクカード */
.doc-links { display: grid; gap: 16px; margin-bottom: 24px; }
.doc-link {
  display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 24px; text-decoration: none; color: var(--text); box-shadow: 0 6px 24px rgba(26,43,74,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.doc-link:hover { transform: translateY(-3px); border-color: rgba(210,210,84,.7); box-shadow: 0 14px 30px rgba(26,43,74,.12); }
.doc-link-ic { font-size: 1.8rem; line-height: 1; flex: none; }
.doc-link-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.doc-link-t { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.doc-link-d { font-size: .86rem; color: var(--text-soft); }
.doc-link-arrow { color: var(--accent-text); font-weight: 700; flex: none; }
@media (max-width: 640px) { .doc-link { padding: 18px 16px; gap: 12px; } }
