/*
Theme Name: S-Buddy LP
Theme URI: https://gd-core.grow-days.com
Author: GrowDays
Description: 中古買取・リユース店向けクラウド業務システム「S-Buddy（エスバディ）」の製品紹介サイト用テーマ。1ページ完結のLP。
Version: 1.3.0
*/

:root {
  --ink: #0f172a;
  --sub: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg2: #f8fafc;
  --brand: #4f46e5;       /* indigo */
  --brand-d: #4338ca;
  --accent: #10b981;      /* emerald */
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--alt { background: var(--bg2); }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .08em; margin: 0 0 8px; }
.h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; margin: 0 0 12px; letter-spacing: .01em; }
.lead { color: var(--sub); font-size: 16px; margin: 0 auto 36px; max-width: 720px; }
.center { text-align: center; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { font-weight: 900; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.brand b { color: var(--brand); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav a.navlink { color: var(--sub); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav a.navlink:hover { color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; border: 0; transition: .15s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-d); }
.btn--ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.btn--ghost:hover { background: #eef2ff; }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--lg { padding: 15px 30px; font-size: 16px; }

/* hero */
.hero { padding: 72px 0 64px; background: radial-gradient(1200px 500px at 50% -10%, #eef2ff 0%, #fff 60%); }
.hero h1 { font-size: clamp(28px, 5.4vw, 48px); font-weight: 900; line-height: 1.3; margin: 0 0 18px; letter-spacing: .01em; }
.hero h1 .hl { color: var(--brand); }
.hero p.sub { color: var(--sub); font-size: 17px; max-width: 640px; margin: 0 auto 28px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* grids */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card .ic { width: 42px; height: 42px; border-radius: 11px; background: #eef2ff; color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.card h3 { font-size: 17px; margin: 0 0 6px; font-weight: 800; }
.card p { color: var(--sub); font-size: 14px; margin: 0; }

/* problems */
.prob { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 14px 16px; color: var(--sub); font-weight: 600; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.step .no { counter-increment: step; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step .no::before { content: counter(step); }
.step h3 { margin: 2px 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--sub); font-size: 14px; }

/* pricing */
.price { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.price .amt { font-size: 30px; font-weight: 900; margin: 8px 0; }
.price .amt small { font-size: 14px; color: var(--muted); font-weight: 600; }
.price ul { list-style: none; padding: 0; margin: 16px 0 0; text-align: left; color: var(--sub); font-size: 14px; }
.price li { padding: 6px 0 6px 26px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }

/* faq */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; float: right; color: var(--brand); }
.faq details[open] summary::after { content: "－"; }
.faq p { color: var(--sub); font-size: 14px; margin: 0 0 12px; }

/* contact */
.form { max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.form label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit;
}
.form input:focus, .form textarea:focus { outline: 2px solid #c7d2fe; border-color: var(--brand); }
.form .submit { margin-top: 20px; width: 100%; }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.notice--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.notice--ng { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* cta band */
.band { background: linear-gradient(120deg, var(--brand), #6366f1); color: #fff; border-radius: 20px; padding: 40px 28px; text-align: center; }
.band h2 { font-size: clamp(22px, 3.6vw, 30px); font-weight: 900; margin: 0 0 10px; }
.band p { opacity: .92; margin: 0 0 22px; }
.band .btn--primary { background: #fff; color: var(--brand); }
.band .btn--primary:hover { background: #eef2ff; }

/* footer */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 40px 0; font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer .brand { color: #fff; }
.site-footer a { color: #cbd5e1; text-decoration: none; }

@media (max-width: 820px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .nav a.navlink { display: none; }
  .section { padding: 52px 0; }
}

/* ===== trial badge / demo mockups (v1.1) ===== */
.trial-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0;
  font-weight: 800; font-size: 13px; padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.trial-pill b { color: var(--accent); }

/* app window frame */
.mock {
  border-radius: 16px; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 24px 60px -24px rgba(15,23,42,.28); overflow: hidden; text-align: left;
}
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; display: inline-block; }
.mock__bar span { margin-left: 10px; font-size: 11px; color: var(--muted); }
.mock__body { padding: 18px; }
.hero .mock { max-width: 880px; margin: 40px auto 0; }

/* stat cards */
.mstats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.mstat { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mstat .k { font-size: 11px; color: var(--muted); }
.mstat .v { font-size: 20px; font-weight: 900; margin-top: 2px; }
.mstat .v.g { color: var(--accent); }
.mstat .v.b { color: var(--brand); }

/* mini bar chart */
.mbars { display: flex; align-items: flex-end; gap: 10px; height: 110px; margin-top: 16px; padding: 0 4px; }
.mbars .bar { flex: 1; background: linear-gradient(180deg, #818cf8, var(--brand)); border-radius: 6px 6px 0 0; }

/* demo grid */
.demos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.demo-cap { font-weight: 800; font-size: 14px; margin: 0 0 4px; }
.demo-cap span { color: var(--muted); font-weight: 600; font-size: 12px; }

/* member card mock (phone) */
.phone { width: 240px; margin: 0 auto; border: 8px solid #0f172a; border-radius: 28px; overflow: hidden; background: #0f172a; box-shadow: 0 24px 60px -24px rgba(15,23,42,.4); }
.phone__screen { background: #fff; }
.mc-head { background: var(--brand); color: #fff; padding: 14px; text-align: center; font-weight: 800; }
.mc-body { padding: 16px; text-align: center; }
.mc-no { font-family: monospace; font-size: 13px; color: var(--sub); }
.mc-bar { height: 46px; margin: 12px 0; background: repeating-linear-gradient(90deg,#0f172a 0 2px,#fff 2px 5px); border-radius: 4px; }
.mc-pt { font-size: 22px; font-weight: 900; color: var(--brand); }

/* mini table */
.mtable { width: 100%; border-collapse: collapse; font-size: 12px; }
.mtable th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.mtable td { padding: 7px 8px; border-bottom: 1px solid #f1f5f9; }
.mtable .pos { color: var(--accent); font-weight: 700; }
.pill-s { display:inline-block; font-size:10px; font-weight:700; padding:2px 8px; border-radius:999px; background:#ede9fe; color:#6d28d9; }

@media (max-width: 820px) {
  .mstats { grid-template-columns: 1fr 1fr; }
  .demos { grid-template-columns: 1fr; }
}
