/* ============================================================
   Promptly LP — 共通スタイル
   ブランド: bg #0a0a0a / card #141414 / accent #fb923c
   ============================================================ */
:root {
  --bg: #0a0a0a;
  --bg2: #101010;
  --card: #141414;
  --hover: #1c1c1c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #fafafa;
  --muted: #a1a1a1;
  --dim: #6b6b6b;
  --accent: #fb923c;
  --accent-dark: #ea580c;
  --accent-ink: #1a0a00;
  --radius: 14px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

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

/* ---------- ヘッダー ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
nav.main { display: flex; gap: 26px; align-items: center; }
nav.main a { color: var(--muted); font-size: 14px; }
nav.main a:hover { color: var(--text); opacity: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: none; transition: all .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; opacity: 1; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---------- ヒーロー ---------- */
.hero {
  padding: 96px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(251,146,60,.10), transparent 70%);
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--accent);
  border: 1px solid rgba(251,146,60,.35); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 28px; background: rgba(251,146,60,.06);
}
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.25; letter-spacing: .01em; }
.hero h1 .ac { color: var(--accent); }
.hero p.lead { color: var(--muted); font-size: clamp(15px, 2.2vw, 18px); margin: 22px auto 0; max-width: 640px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero .note { color: var(--dim); font-size: 12px; margin-top: 14px; }

kbd.k {
  font-family: ui-monospace, "Cascadia Code", monospace;
  background: #0d0d0d; border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 6px; padding: 2px 8px; font-size: .85em; color: var(--text);
}

/* ---------- パレットモック ---------- */
.mock-wrap { margin: 64px auto 0; max-width: 760px; position: relative; }
.mock-glow {
  position: absolute; inset: -40px -60px; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(251,146,60,.14), transparent 65%);
  pointer-events: none;
}
.palette {
  position: relative; z-index: 1;
  background: #141414; border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0,0,0,.65);
  text-align: left; overflow: hidden;
  font-size: 14px;
}
.palette .p-search {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--dim);
}
.palette .p-search .q { color: var(--text); }
.palette .p-search .caret { display: inline-block; width: 2px; height: 18px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.palette .p-esc { margin-left: auto; font-size: 11px; color: var(--dim); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; font-family: monospace; }
.palette ul { list-style: none; padding: 8px; }
.palette li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px; color: var(--muted);
}
.palette li .ico {
  width: 32px; height: 32px; border-radius: 7px; background: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-weight: 700; flex-shrink: 0;
}
.palette li.sel { background: rgba(251,146,60,.14); }
.palette li.sel .ico { background: var(--accent); color: var(--accent-ink); }
.palette li .t { color: var(--text); font-weight: 500; }
.palette li .s {
  font-size: 10px; color: var(--accent); background: rgba(251,146,60,.14);
  border-radius: 4px; padding: 1px 6px; font-family: monospace;
}
.palette li .b { font-size: 11px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette li .enter { margin-left: auto; color: var(--accent); font-family: monospace; font-size: 11px; }
.palette .p-foot {
  display: flex; justify-content: space-between; padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.25);
  font-size: 11px; color: var(--dim);
}
.palette .p-foot .mark { color: var(--accent); font-weight: 700; }

/* ---------- セクション共通 ---------- */
section.block { padding: 88px 0; }
section.block.alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-head .tag { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.sec-head h2 { font-size: clamp(26px, 4vw, 38px); margin-top: 10px; }
.sec-head p { color: var(--muted); margin-top: 12px; }

/* ---------- 機能グリッド ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px;
}
.card .ic { font-size: 26px; }
.card h3 { font-size: 17px; margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: 14px; }
.card .hint { margin-top: 12px; font-size: 12px; color: var(--dim); }

/* ---------- 使い方 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 24px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.step h3 { font-size: 16px; margin: 6px 0 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- 料金 ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; justify-content: center; }
.plan {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 34px 30px;
  display: flex; flex-direction: column;
}
.plan.pro { border-color: rgba(251,146,60,.5); position: relative; box-shadow: 0 0 60px rgba(251,146,60,.08); }
.plan.pro .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 16px;
}
.plan h3 { font-size: 18px; }
.plan .price { font-size: 40px; font-weight: 800; margin: 14px 0 2px; }
.plan .price small { font-size: 14px; color: var(--dim); font-weight: 400; }
.plan .per { color: var(--dim); font-size: 12px; margin-bottom: 20px; }
.plan ul { list-style: none; margin: 0 0 26px; }
.plan li { padding: 7px 0; color: var(--muted); font-size: 14px; display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.plan li.no { color: var(--dim); }
.plan li.no::before { content: "—"; color: var(--dim); }
.plan .btn { margin-top: auto; width: 100%; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 22px 18px; color: var(--muted); font-size: 14px; }

/* ---------- CTAバンド ---------- */
.cta-band {
  text-align: center; padding: 80px 24px;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(251,146,60,.12), transparent 70%);
}
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); }
.cta-band p { color: var(--muted); margin-top: 10px; }
.cta-band .cta { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- フッター ---------- */
footer.site {
  border-top: 1px solid var(--border); padding: 44px 0; color: var(--dim); font-size: 13px;
}
footer.site .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.site a { color: var(--dim); }
footer.site a:hover { color: var(--accent); }
footer.site .links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- 法務ページ ---------- */
.legal { max-width: 800px; margin: 0 auto; padding: 56px 24px 88px; }
.legal h1 { font-size: 28px; margin-bottom: 8px; }
.legal .updated { color: var(--dim); font-size: 13px; margin-bottom: 36px; }
.legal h2 { font-size: 19px; margin: 36px 0 12px; padding-top: 8px; }
.legal p, .legal li { color: var(--muted); font-size: 14.5px; }
.legal ul, .legal ol { padding-left: 22px; margin: 10px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal th, .legal td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; font-size: 14px; }
.legal th { background: var(--card); color: var(--text); width: 32%; }
.legal td { color: var(--muted); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .grid.cols3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; margin-top: 20px; }
  .step { margin-top: 10px; }
  .pricing { grid-template-columns: 1fr; }
  nav.main .hide-sp { display: none; }
}
