/* kintoneプラグインストア 共通スタイル */
:root {
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --blue-pale: #eff6ff;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --ok: #059669;
  --radius: 12px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ヘッダー */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .brand-mark { color: var(--blue); }
.gnav { display: flex; gap: 24px; font-size: 0.95rem; }
.gnav a { color: var(--ink-soft); }

/* ヒーロー */
.hero {
  background: linear-gradient(180deg, var(--blue-pale) 0%, #fff 100%);
  padding: 72px 0 56px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.4;
  margin-bottom: 16px;
}
.hero .lead {
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero .accent { color: var(--blue); }

/* ボタン */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-ghost { border: 2px solid var(--blue); color: var(--blue); }
.btn-large { font-size: 1.1rem; padding: 16px 40px; }

/* セクション */
section { padding: 64px 0; }
section.alt { background: var(--bg-soft); }
.section-title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

/* プラグインカード */
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.plugin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s;
}
.plugin-card:hover { box-shadow: 0 4px 20px rgba(37, 99, 235, .1); }
.plugin-card .tag {
  align-self: flex-start;
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-pale);
  border-radius: 99px;
  padding: 2px 12px;
  margin-bottom: 12px;
}
.plugin-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.plugin-card p { font-size: .92rem; color: var(--ink-soft); flex: 1; }
.plugin-card .price {
  margin: 16px 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
}
.plugin-card .price small { font-size: .85rem; font-weight: 400; color: var(--ink-soft); }
.plugin-card .btn { text-align: center; }

/* 流れ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.step .num {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: .88rem; color: var(--ink-soft); }

/* 特徴リスト */
.feature-list { list-style: none; max-width: 720px; margin: 0 auto; }
.feature-list li {
  padding: 12px 0 12px 36px;
  position: relative;
  border-bottom: 1px dashed var(--line);
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 8px;
  color: var(--ok);
  font-weight: 700;
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
}
.faq summary {
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
}
.faq .a { padding: 0 20px 16px; color: var(--ink-soft); }

/* 詳細ページ */
.detail-hero {
  background: var(--blue-pale);
  padding: 56px 0;
}
.detail-hero .tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue);
  background: #fff;
  border-radius: 99px;
  padding: 2px 14px;
  margin-bottom: 12px;
}
.detail-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 12px; }
.detail-hero .lead { color: var(--ink-soft); max-width: 680px; margin-bottom: 24px; }
.detail-hero .price-line { font-size: 1.4rem; font-weight: 700; margin-bottom: 24px; }
.detail-hero .price-line small { font-weight: 400; font-size: .9rem; color: var(--ink-soft); }

.pain-list { list-style: none; max-width: 720px; margin: 0 auto; }
.pain-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 20px 14px 48px;
  margin-bottom: 10px;
  position: relative;
}
.pain-list li::before {
  content: "×";
  position: absolute;
  left: 18px;
  color: #dc2626;
  font-weight: 700;
}

.spec-table { width: 100%; border-collapse: collapse; max-width: 760px; margin: 0 auto; }
.spec-table th, .spec-table td {
  border: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
  font-size: .95rem;
}
.spec-table th { background: var(--bg-soft); width: 32%; font-weight: 700; }

/* 申込テンプレ */
.mail-template {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 24px;
  max-width: 640px;
  margin: 24px auto 0;
  font-size: .92rem;
  white-space: pre-wrap;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

/* CTAバンド */
.cta-band {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 56px 20px;
}
.cta-band h2 { font-size: 1.5rem; margin-bottom: 12px; }
.cta-band p { opacity: .9; margin-bottom: 28px; }
.cta-band .btn { background: #fff; color: var(--blue); }

/* 申込フォーム */
.apply-form {
  max-width: 560px;
  margin: 8px auto 0;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.apply-form .form-row { margin-bottom: 18px; border: none; padding: 0; }
.apply-form label, .apply-form legend {
  display: block;
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: 6px;
}
.apply-form .req {
  font-size: .72rem;
  font-weight: 700;
  color: #dc2626;
  border: 1px solid #dc2626;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
}
.apply-form input:focus, .apply-form textarea:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}
.apply-form small { display: block; color: var(--ink-soft); font-weight: 400; margin-top: 4px; font-size: .8rem; }
.apply-form .chk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: .95rem;
  padding: 6px 0;
  margin-bottom: 0;
  cursor: pointer;
}
.apply-form .chk input { width: 18px; height: 18px; accent-color: var(--blue); }
.apply-form button.btn {
  width: 100%;
  border: none;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
}
.apply-form button.btn:disabled { opacity: .6; cursor: wait; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.apply-result { margin-top: 14px; font-size: .92rem; line-height: 1.7; }
.apply-result.is-success { color: var(--ok); font-weight: 700; }
.apply-result.is-error { color: #dc2626; font-weight: 700; }

/* 法的ページ */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: 1.6rem; margin: 48px 0 24px; }
.legal h2 { font-size: 1.15rem; margin: 32px 0 12px; border-left: 4px solid var(--blue); padding-left: 12px; }
.legal p, .legal li { font-size: .95rem; color: var(--ink-soft); }
.legal ol, .legal ul { padding-left: 24px; margin: 8px 0; }
.legal .updated { text-align: right; font-size: .85rem; color: var(--ink-soft); margin: 24px 0 64px; }

/* フッター */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: .88rem;
  color: var(--ink-soft);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 640px) {
  .gnav { display: none; }
  section { padding: 48px 0; }
}
