/* =====================================================================
   common.css — kaitori-saas デモサイト 共通スタイル
   widget.js が描画する価格表 (アクセント #0070f3 / 白カード) と調和させる
   ===================================================================== */

:root {
  --brand: #d32f2f;
  --brand-dark: #b71c1c;
  --brand-light: #fdeaea;
  --ink: #1a2233;
  --ink-soft: #4b5563;
  --ink-faint: #6b7280;
  --line: #e5e7eb;
  --bg: #f6f8fb;
  --white: #ffffff;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow { max-width: 760px; }

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.3);
}
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand);
}
.btn--lg { padding: 16px 34px; font-size: 17px; }

/* ---- 架空価格の注意書き ---- */
.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  margin: 14px auto 0;
}
.disclaimer::before { content: "⚠️"; }

/* ---- widget 価格表の囲み ---- */
.widget-frame {
  max-width: 720px;
  margin: 0 auto;
}
#kaitori-price-table {
  max-width: 720px;
  margin: 0 auto;
}
/* widget 読込前のプレースホルダ高さ確保 */
#kaitori-price-table:empty::after {
  content: "価格表を読み込んでいます…";
  display: block;
  text-align: center;
  color: var(--ink-faint);
  padding: 48px 16px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 14px;
}

/* ---- 埋め込みコード解説セクション ---- */
.embed-explainer {
  background: linear-gradient(180deg, #3a0b0b 0%, #2a0808 100%);
  color: #f6e8e8;
  border-radius: var(--radius);
  padding: 28px 26px;
  margin: 36px auto;
  max-width: 760px;
  box-shadow: var(--shadow-md);
}
.embed-explainer h3 {
  margin: 0 0 6px;
  font-size: 19px;
  color: #fff;
}
.embed-explainer p { margin: 6px 0; color: #b9c6d8; font-size: 14px; }
.embed-explainer pre {
  background: #1c0606;
  border: 1px solid #5a1d1d;
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 14px 0;
}
.embed-explainer code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12.5px;
  color: #ffd9a8;
  line-height: 1.7;
  white-space: pre;
}
.embed-explainer .embed-steps {
  margin: 14px 0 0;
  padding-left: 20px;
  color: #e3c4c4;
  font-size: 14px;
}
.embed-badge {
  display: inline-block;
  background: rgba(211, 47, 47, 0.22);
  color: #ff9a9a;
  border: 1px solid rgba(255, 154, 154, 0.4);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---- セクション見出し ---- */
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}
.section-lead {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 auto 28px;
  max-width: 560px;
}

.powered {
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 10px;
}
.powered a { font-weight: 700; }

@media (max-width: 640px) {
  .section-title { font-size: 23px; }
  .btn--lg { padding: 14px 26px; font-size: 16px; }
}
