/* ==========================================================================
   store.sofplant.com デザインモック共通スタイル
   ブランドカラーは Form Plant ロゴ (docs/assets/logo/) から採取:
   deep #2E5A3A / mid #3D7A4F #4A9960 / bright #5BB870 / light #A8E6B8 #C8F0D0
   ========================================================================== */

:root {
  --ink: #17251b;
  --body: #3f4f45;
  --muted: #68786e;
  --line: #dfe9e2;
  --bg: #ffffff;
  --tint: #f4faf6;
  --tint-2: #e9f4ec;
  --brand: #2e5a3a;
  --brand-dark: #234730;
  --accent: #5bb870;
  --accent-soft: #a8e6b8;
  --warn-bg: #fdf6e3;
  --warn-ink: #8a6d1a;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(23, 37, 27, 0.05), 0 10px 30px rgba(23, 37, 27, 0.08);
  --shadow-s: 0 1px 2px rgba(23, 37, 27, 0.06);
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; vertical-align: middle; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; font-weight: 700; }

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

/* --- ヘッダー ----------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand .store-chip {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--brand); background: var(--tint-2);
  border: 1px solid var(--accent-soft);
  padding: 2px 8px; border-radius: 999px;
}
.global-nav { display: flex; align-items: center; gap: 22px; }
.global-nav a { color: var(--body); font-size: 14px; font-weight: 500; }
.global-nav a:hover { color: var(--brand); text-decoration: none; }
.global-nav a.btn, .global-nav a.btn:hover { color: #fff; }
.global-nav a.btn-ghost, .global-nav a.btn-ghost:hover { color: var(--brand); }

/* --- ボタン ------------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 700;
  padding: 12px 26px; border-radius: 999px;
  border: 1px solid var(--brand);
  cursor: pointer; transition: background 0.15s ease;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn.btn-large { padding: 15px 34px; font-size: 16px; }
.btn.btn-small { padding: 7px 16px; font-size: 13px; }
.btn.btn-block { display: block; width: 100%; text-align: center; }
.btn-ghost {
  display: inline-block;
  background: #fff; color: var(--brand);
  font-size: 15px; font-weight: 700;
  padding: 12px 26px; border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer; transition: border-color 0.15s ease;
}
.btn-ghost:hover { border-color: var(--brand); text-decoration: none; }
.btn-ghost.btn-small { padding: 7px 16px; font-size: 13px; }

/* --- ヒーロー ------------------------------------------------------------ */

.hero {
  background: linear-gradient(180deg, var(--tint) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero .container {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px;
  align-items: center; padding: 72px 24px;
}
.hero .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  color: var(--brand); background: var(--tint-2);
  border: 1px solid var(--accent-soft);
  padding: 4px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: 40px; letter-spacing: 0.01em; margin-bottom: 18px; }
.hero .lead { font-size: 17px; margin-bottom: 28px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .cta-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* --- セクション共通 ------------------------------------------------------ */

.section { padding: 76px 0; }
.section.alt { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase;
}
.section-head h2 { font-size: 30px; margin: 8px 0 12px; }
.section-head p { color: var(--muted); }

/* --- 機能カード ---------------------------------------------------------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-s);
}
.feature-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--tint-2); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }
.feature-card.roadmap { background: var(--tint); border-style: dashed; }

/* --- 比較テーブル -------------------------------------------------------- */

.compare-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-s); font-size: 14.5px;
}
.compare-wrap { overflow-x: auto; border-radius: var(--radius); }
.compare-table th, .compare-table td {
  padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left;
}
.compare-table thead th { background: var(--tint-2); color: var(--ink); font-size: 14px; }
.compare-table td.center, .compare-table th.center { text-align: center; width: 130px; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.mark-yes { color: var(--accent); font-weight: 700; }
.mark-no { color: #c6cfc9; }
.pro-col { background: var(--tint); }

/* --- 価格 ---------------------------------------------------------------- */

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: stretch;
}
.price-card {
  position: relative; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-s);
  display: flex; flex-direction: column;
}
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.price-card .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card .plan-name { font-size: 16px; color: var(--ink); font-weight: 700; }
.price-card .plan-sites { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.price-card .amount { font-size: 38px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.price-card .amount small { font-size: 14px; font-weight: 600; color: var(--muted); }
.price-card .per { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.price-card ul { list-style: none; margin: 0 0 22px; font-size: 14px; }
.price-card ul li { padding: 6px 0 6px 26px; position: relative; }
.price-card ul li::before {
  content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700;
}
.price-card .btn, .price-card .btn-ghost { margin-top: auto; text-align: center; }
.pricing-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 22px; }

/* --- FAQ ----------------------------------------------------------------- */

.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-list details {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 0 20px;
}
.faq-list summary {
  cursor: pointer; list-style: none; font-weight: 700; color: var(--ink);
  padding: 16px 28px 16px 0; position: relative; font-size: 15px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 20px; font-weight: 400;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 0 18px; font-size: 14.5px; color: var(--muted); }

/* --- CTA バンド ----------------------------------------------------------- */

.cta-band { background: var(--brand); color: #fff; }
.cta-band .container { text-align: center; padding: 64px 24px; }
.cta-band h2 { color: #fff; font-size: 28px; margin-bottom: 12px; }
.cta-band p { color: var(--accent-soft); margin-bottom: 26px; }
.cta-band .btn { background: #fff; color: var(--brand); border-color: #fff; }
.cta-band .btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

/* --- フォーム部品 --------------------------------------------------------- */

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field .req { color: #c0392b; font-size: 11px; margin-left: 6px; }
.field input[type="email"], .field input[type="text"], .field input[type="password"] {
  width: 100%; padding: 11px 14px; font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: #fff; color: var(--ink);
}
.field input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* --- チェックアウト -------------------------------------------------------- */

.checkout-layout {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px;
  align-items: start; padding: 56px 0 76px;
}
.panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-s); padding: 30px;
}
.panel h2 { font-size: 19px; margin-bottom: 20px; }
.plan-options { display: grid; gap: 12px; margin-bottom: 24px; }
.plan-option {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 14px 16px; cursor: pointer; transition: border-color 0.15s ease;
}
.plan-option:hover { border-color: var(--accent); }
.plan-option input { accent-color: var(--brand); width: 18px; height: 18px; }
.plan-option .name { font-weight: 700; color: var(--ink); font-size: 15px; }
.plan-option .desc { font-size: 12.5px; color: var(--muted); }
.plan-option .price { margin-left: auto; font-weight: 800; color: var(--ink); white-space: nowrap; }
.plan-option.selected { border: 2px solid var(--brand); background: var(--tint); }
.order-summary .row {
  display: flex; justify-content: space-between; font-size: 14.5px; padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.order-summary .row.total {
  border-bottom: none; padding-top: 14px;
  font-size: 17px; font-weight: 800; color: var(--ink);
}
.secure-note {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px; color: var(--muted);
  background: var(--tint); border-radius: var(--radius-s);
  padding: 12px 14px; margin-top: 16px;
}
.legal-links { font-size: 12.5px; color: var(--muted); margin-top: 18px; }

/* --- 完了・アカウント ------------------------------------------------------ */

.page-title { padding: 56px 0 8px; }
.page-title h1 { font-size: 30px; }
.page-title p { color: var(--muted); margin-top: 8px; }

.license-key-box {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--ink); color: #d9efe0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px; letter-spacing: 0.04em;
  border-radius: var(--radius-s); padding: 16px 18px;
}
.license-key-box .btn-copy {
  margin-left: auto; background: rgba(255, 255, 255, 0.12); color: #fff;
  font-size: 12px; font-weight: 700; border: none; border-radius: 8px;
  padding: 7px 14px; cursor: pointer; font-family: inherit;
}
.steps { counter-reset: step; display: grid; gap: 14px; margin-top: 26px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 18px 20px;
}
.step::before {
  counter-increment: step; content: counter(step);
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--tint-2); color: var(--brand);
  font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 15px; margin-bottom: 4px; }
.step p { font-size: 13.5px; color: var(--muted); }

.license-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-s); padding: 26px 28px; margin-bottom: 22px;
}
.license-card .card-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.license-card .card-head h2 { font-size: 18px; }
.pill {
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.pill.ok { background: var(--tint-2); color: var(--brand); border: 1px solid var(--accent-soft); }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid #ecd9a0; }
.meta-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  font-size: 13.5px; margin-bottom: 18px;
}
.meta-grid dt { color: var(--muted); font-size: 12px; }
.meta-grid dd { color: var(--ink); font-weight: 700; }
.site-list { list-style: none; font-size: 13.5px; margin: 10px 0 18px; }
.site-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.site-list a.release { color: var(--muted); font-size: 12.5px; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.history-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.history-table th, .history-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.history-table thead th { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* --- 認証カード ------------------------------------------------------------ */

.auth-wrap { max-width: 420px; margin: 64px auto 90px; padding: 0 24px; }
.auth-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px;
}
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card .sub { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }
.auth-links { text-align: center; font-size: 13px; margin-top: 18px; }

/* --- 法務ページ ------------------------------------------------------------ */

.legal-article { padding: 24px 0 90px; }
.legal-article h2 { font-size: 18px; margin: 34px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-article h2:first-of-type { border-top: none; padding-top: 0; }
.legal-article p, .legal-article li { font-size: 14.5px; }
.legal-article ul { padding-left: 22px; margin: 8px 0; }
.placeholder { background: var(--warn-bg); color: var(--warn-ink); padding: 1px 6px; border-radius: 4px; }

/* --- フッター --------------------------------------------------------------- */

.site-footer { background: var(--tint); border-top: 1px solid var(--line); margin-top: 0; }
.site-footer .container {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 40px 24px 46px; font-size: 13px; color: var(--muted);
}
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand); }

/* --- レスポンシブ ------------------------------------------------------------ */

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding: 48px 24px; gap: 32px; }
  .hero h1 { font-size: 30px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .checkout-layout { grid-template-columns: 1fr; }
  .global-nav .nav-link { display: none; }
  .meta-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* --- 認証・マイアカウント (M4 追加) ---------------------------------------- */

.form-errors {
  background: #fdecea; color: #b03a2e; border: 1px solid #f5c6c2;
  border-radius: var(--radius-s); padding: 12px 16px 12px 32px; font-size: 13.5px; margin-bottom: 18px;
}
.form-errors li { margin: 2px 0; }
.alert {
  border-radius: var(--radius-s); padding: 12px 16px; font-size: 14px; margin-bottom: 18px;
}
.alert.ok { background: var(--tint-2); color: var(--brand); border: 1px solid var(--accent-soft); }
.alert.error { background: #fdecea; color: #b03a2e; border: 1px solid #f5c6c2; }
.field-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--body); margin-bottom: 18px; cursor: pointer;
}
.field-check input { width: 16px; height: 16px; accent-color: var(--brand); }
button.btn, button.btn-ghost, button.btn-copy { font-family: inherit; line-height: normal; }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.link-button {
  background: none; border: 0; padding: 0; margin: 0;
  color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline;
}
.link-button:hover { color: var(--brand-dark); }
.page-title .logout-form { margin-top: 6px; font-size: 13px; }
.pill.off { background: #f0f3f1; color: var(--muted); border: 1px solid var(--line); }
.site-list .pill { margin-left: 8px; font-size: 11px; padding: 1px 8px; vertical-align: 1px; }
.site-list .muted { color: var(--muted); }
.card-actions form { display: inline; }

/* --- 管理画面 (M5 追加) --------------------------------------------------- */

.admin-nav { display: flex; gap: 18px; margin-top: 14px; font-size: 14px; }
.admin-nav a { color: var(--muted); padding-bottom: 4px; border-bottom: 2px solid transparent; }
.admin-nav a.is-active { color: var(--brand); border-bottom-color: var(--accent); font-weight: 700; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
.admin-search { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.admin-search input[type="search"] {
  flex: 1; min-width: 240px; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-s); font-size: 14px; font-family: inherit;
}
.field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s);
  font-size: 14px; font-family: inherit; resize: vertical;
}
.field input[type="file"] { font-size: 13.5px; }
.table-actions { white-space: nowrap; }
.table-actions form { display: inline; margin-right: 10px; }
.history-table .muted { color: var(--muted); }
