*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--link); }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--space-10); }
@media (max-width: 640px) { .wrap { padding: 0 var(--space-4); } }

/* 文字のスタイル（販促：Zen Maru Gothic） */
.display { font-family: var(--font-maru); font-weight: 700; font-size: clamp(34px, 5.2vw, 52px); line-height: 1.3; letter-spacing: .02em; }
.headline { font-family: var(--font-maru); font-weight: 700; font-size: clamp(24px, 3.2vw, 30px); line-height: 1.45; }
.lead { font-family: var(--font-maru); font-weight: 500; font-size: 17px; line-height: 1.9; color: var(--ink-2); }
.eyebrow { font-family: var(--font-maru); font-weight: 700; font-size: 15px; color: var(--brand-strong); letter-spacing: .04em; margin-bottom: var(--space-3); }
.note { font-size: 13px; line-height: 1.8; color: var(--ink-muted); margin-top: var(--space-5); }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 var(--space-4);
  border-radius: var(--radius-md); border: 1px solid var(--line-strong);
  background: var(--surface-raised); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--surface-sunken); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600; padding: 0 18px; box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-lg { height: 46px; padding: 0 var(--space-5); font-size: 15px; }
.btn-sm { height: 32px; padding: 0 var(--space-3); border-radius: var(--radius-sm); font-size: 13px; }
.btn-quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--surface-sunken); color: var(--ink); }
.btn:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--radius-md); }

.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

/* 試作の帯 */
.draft-bar { background: var(--info-soft); color: var(--info); font-size: 13px; line-height: 1.6; text-align: center; padding: 6px var(--space-4); }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface-brand) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--space-6); height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-mark { width: 36px; height: 36px; }
.logo-name { font-family: var(--font-maru); font-weight: 700; font-size: 22px; letter-spacing: .04em; }
.header-nav { display: flex; gap: var(--space-1); margin-left: auto; }
.header-nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: var(--radius-sm); }
.header-nav a:hover { background: var(--surface-sunken); color: var(--ink); }
@media (max-width: 860px) { .header-nav { display: none; } .header-inner > .btn { margin-left: auto; } }

/* ヒーロー */
.hero { position: relative; overflow: hidden; background: var(--surface-brand); padding: 72px 0 88px; border-bottom: 1px solid var(--line); }
.hero-dots { position: absolute; right: -10px; top: 24px; width: 140px; fill: var(--sakura); opacity: .9; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero-copy .lead { margin-top: var(--space-5); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-price { margin-top: var(--space-4); font-size: 14px; color: var(--ink-muted); }
.hero-price strong { font-family: var(--font-maru); font-size: 20px; color: var(--ink); font-weight: 700; }
@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ヒーローの画面（システムの画面なので IBM Plex Sans JP） */
.hero-demo { position: relative; }
.demo-window { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card), 0 30px 60px -30px #1a274430; overflow: hidden; font-size: 14px; line-height: 22px; }
.demo-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.demo-bar span { width: 9px; height: 9px; border-radius: var(--radius-full); background: var(--line-strong); }
.demo-body { display: grid; grid-template-columns: 172px minmax(0, 1fr); height: 340px; }
.demo-side { background: var(--surface-raised); border-right: 1px solid var(--line); padding: var(--space-3) var(--space-2); }
.demo-company { display: flex; align-items: center; gap: 8px; padding: 4px 8px 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: var(--space-2); }
.demo-company svg { width: 28px; height: 28px; flex-shrink: 0; }
.demo-company span { display: flex; flex-direction: column; line-height: 1.3; }
.demo-company strong { font-weight: 600; letter-spacing: .12em; font-size: 14px; }
.demo-company small { font-size: 11px; color: var(--ink-muted); }
.demo-nav li { overflow: hidden; }
.demo-nav button { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; margin: 1px 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 500; text-align: left; cursor: pointer; }
.demo-nav button:hover { background: var(--surface-sunken); color: var(--ink); }
.demo-nav button[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.demo-nav svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.demo-nav li.is-new { animation: nav-grow .7s cubic-bezier(.2,.8,.2,1) both; }
.demo-nav button { white-space: nowrap; }
.demo-nav li.is-new button::after { content: ""; margin-left: auto; width: 8px; height: 8px; flex-shrink: 0; border-radius: var(--radius-full); background: var(--brand); box-shadow: 0 0 0 3px var(--sakura); animation: fade-out 2.4s 1.6s both; }
@keyframes nav-grow { from { max-height: 0; opacity: 0; transform: translateX(-8px); } to { max-height: 44px; opacity: 1; transform: none; } }
@keyframes fade-out { to { opacity: 0; } }

.demo-main { padding: var(--space-5); overflow: hidden; }
.demo-main .panel { animation: panel-in .5s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel-crumb { font-size: 12px; color: var(--ink-muted); }
.panel-title { font-size: 19px; line-height: 28px; font-weight: 600; margin-bottom: var(--space-3); }
.panel-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.panel-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.panel-table th { text-align: left; font-size: 11.5px; font-weight: 500; letter-spacing: .04em; color: var(--ink-muted); padding: 8px 14px; border-bottom: 1px solid var(--line); }
.panel-table td { padding: 9px 14px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.panel-table tr:last-child td { border-bottom: 0; }
.panel-table .num, .data { font-family: var(--font-mono); font-size: 12.5px; }
.panel-table .r { text-align: right; }
.panel-form { padding: 14px 16px; display: grid; gap: 10px; }
.panel-field { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 10px; font-size: 13px; }
.panel-field span:first-child { color: var(--ink-muted); font-weight: 500; }
.panel-field span:last-child { border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 5px 10px; background: var(--surface-raised); }
.panel-form .btn { justify-self: end; height: 34px; font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; line-height: 18px; padding: 2px 9px 2px 7px; border-radius: var(--radius-full); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-full); background: currentColor; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-info { background: var(--info-soft); color: var(--info); }

.demo-caption { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.kun-plate { flex-shrink: 0; width: 56px; height: 56px; border-radius: var(--radius-full); background: #fbf7f4; border: 1px solid var(--line); display: grid; place-items: center; }
.kun-plate svg { width: 48px; height: 48px; }
.demo-say { min-width: 0; flex: 1; }
.demo-when { font-size: 12px; color: var(--ink-muted); }
.demo-when .pt { margin-left: 6px; }
.demo-line { font-family: var(--font-maru); font-weight: 500; font-size: 16px; line-height: 1.6; }
.demo-replay { flex-shrink: 0; }
@media (max-width: 640px) {
  .demo-body { grid-template-columns: 56px minmax(0, 1fr); height: 320px; }
  .demo-side { padding: var(--space-2) 6px; }
  .demo-company { justify-content: center; padding: 4px 0 10px; }
  .demo-company span, .nav-label { display: none !important; }
  .demo-nav button { justify-content: center; padding: 0; }
  .demo-nav li.is-new button::after { display: none; }
  .demo-main { padding: var(--space-3); }
  .panel-table th, .panel-table td { padding: 8px 10px; }
  .panel-table th:nth-child(2):not(.r), .panel-table td.data { display: none; }
  .panel-field { grid-template-columns: 1fr; gap: 2px; }
  .demo-replay { display: none; }
}

/* ポイントの札 */
.pt { display: inline-block; font-size: 12.5px; font-weight: 600; line-height: 20px; padding: 2px 10px; border-radius: var(--radius-full); white-space: nowrap; }
.pt-dev { background: var(--point-dev); color: #fff; }
.pt-ai { background: var(--point-ai); color: #fff; }
.pt-soft-neutral { background: var(--surface-sunken); color: var(--ink-muted); font-weight: 500; }
:root[data-theme="dark"] .pt-dev, :root[data-theme="dark"] .pt-ai { color: var(--surface); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pt-dev, :root:not([data-theme="light"]) .pt-ai { color: var(--surface); } }

/* セクション */
.section { padding: 88px 0; }
.section-brand { background: var(--surface-brand); border-block: 1px solid var(--line); }
.section-sunken { background: var(--surface-sunken); }
.section-lead { margin-top: var(--space-3); max-width: 40em; color: var(--ink-2); }
@media (max-width: 640px) { .section { padding: 60px 0; } }

/* お悩み */
.worries { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-8); }
.worry { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-6); }
.worry p { font-family: var(--font-maru); font-weight: 700; font-size: 18px; line-height: 1.6; }
.dot { width: 12px; height: 12px; margin-top: 9px; flex-shrink: 0; border-radius: var(--radius-full); background: var(--brand); box-shadow: 0 0 0 5px var(--sakura); }
.worries-answer { margin-top: var(--space-8); font-size: 17px; line-height: 2; }
.worries-answer strong { font-family: var(--font-maru); font-weight: 700; font-size: 20px; }
@media (max-width: 860px) { .worries { grid-template-columns: 1fr; gap: var(--space-3); } }

/* 育ち方 */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); margin-top: var(--space-10); }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 63px; height: 2px; background: var(--line-strong); border-radius: 2px; }
.stage { position: relative; }
.sprout { width: 64px; height: 64px; color: var(--ink); transform: scale(var(--grow)); transform-origin: 50% 100%; margin-bottom: var(--space-4); }
.stage::after { content: ""; position: absolute; left: 26px; top: 58px; width: 12px; height: 12px; border-radius: var(--radius-full); background: var(--brand); box-shadow: 0 0 0 4px var(--surface-brand); }
.stage-when { font-family: var(--font-maru); font-weight: 700; font-size: 14px; color: var(--brand-strong); margin-top: var(--space-2); }
.stage-title { font-family: var(--font-maru); font-weight: 700; font-size: 19px; line-height: 1.5; margin-top: 2px; }
.stage-text { font-size: 14.5px; color: var(--ink-2); margin-top: var(--space-2); line-height: 1.75; }
.stage-pt { margin-top: var(--space-3); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: var(--space-6); padding-left: 76px; }
  .timeline::before { left: 31px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .sprout { position: absolute; left: -76px; top: -8px; margin: 0; }
  .stage::after { left: -51px; top: 50px; }
  .stage-when { margin-top: 0; }
}

/* 進め方 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-8); counter-reset: s; }
.step { padding: var(--space-6) var(--space-5); }
.step-no { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand-strong); font-family: var(--font-maru); font-weight: 700; }
.step-who { margin-top: var(--space-3); font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.step p:last-child { margin-top: 2px; font-weight: 500; line-height: 1.7; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* 安全 */
.safety { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-8); }
.safe { padding: var(--space-6) var(--space-5); }
.safe h3, .safe-wide h3 { font-family: var(--font-maru); font-weight: 700; font-size: 18px; margin-top: var(--space-3); }
.safe p, .safe-wide p { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.75; }
.icon { width: 28px; height: 28px; fill: none; stroke: var(--brand-strong); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 40px; height: 40px; flex-shrink: 0; }
.safe-wide { display: flex; gap: var(--space-5); align-items: flex-start; padding: var(--space-6); margin-top: var(--space-4); }
.safe-wide h3 { margin-top: 0; }
@media (max-width: 860px) { .safety { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .safety { grid-template-columns: 1fr; } .safe-wide { flex-direction: column; } }

/* 料金 */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-8); align-items: stretch; }
.plan { position: relative; padding: var(--space-6) var(--space-5); display: flex; flex-direction: column; }
.plan-pick { border: 2px solid var(--brand); }
.plan-badge { position: absolute; top: -13px; left: var(--space-5); background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 600; line-height: 24px; padding: 0 12px; border-radius: var(--radius-full); }
.plan-name { font-family: var(--font-maru); font-weight: 700; font-size: 18px; }
.plan-price { margin-top: var(--space-2); font-size: 14px; color: var(--ink-2); }
.plan-price .num { font-family: var(--font-maru); font-weight: 700; font-size: 40px; line-height: 1.2; color: var(--ink); margin-right: 2px; }
.plan-pts { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
.plan-pts .per { font-size: 12px; color: var(--ink-muted); margin-left: 4px; }
.plan-spec { margin: var(--space-5) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--line-soft); display: grid; gap: 6px; font-size: 14px; }
.plan-spec div { display: flex; justify-content: space-between; gap: var(--space-3); }
.plan-spec dt { color: var(--ink-muted); }
.plan-spec dd { margin: 0; font-weight: 500; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr 1fr; row-gap: var(--space-6); } }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-6); }
.point-box { border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); }
.point-box h3 { font-family: var(--font-maru); font-weight: 700; font-size: 18px; }
.point-box p { font-size: 14.5px; margin-top: 4px; color: var(--ink); line-height: 1.75; }
.point-box-dev { background: var(--point-dev-soft); }
.point-box-dev h3, .point-box-dev .point-add { color: var(--point-dev); }
.point-box-ai { background: var(--point-ai-soft); }
.point-box-ai h3, .point-box-ai .point-add { color: var(--point-ai); }
.point-add { font-weight: 600; margin-top: var(--space-2) !important; }
@media (max-width: 720px) { .points { grid-template-columns: 1fr; } }

/* 相談 */
#contact { padding-top: 0; }
.cta { display: flex; gap: 48px; align-items: center; background: var(--surface-brand); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 48px; }
.kun-plate-lg { width: 200px; height: 200px; border: 0; background: none; }
.kun-plate-lg svg { width: 176px; height: 176px; }
.kun-say { display: inline-block; font-family: var(--font-maru); font-weight: 500; font-size: 15px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 6px 14px; margin-bottom: var(--space-4); }
.cta-copy > p:not(.kun-say) { margin-top: var(--space-3); color: var(--ink-2); }
@media (max-width: 760px) { .cta { flex-direction: column; align-items: flex-start; padding: var(--space-6); gap: var(--space-6); } .kun-plate-lg { width: 140px; height: 140px; } .kun-plate-lg svg { width: 124px; height: 124px; } }

/* フッター */
/* 紺の地に、ダークの文字色をのせる（ライト・ダークどちらでも同じ見た目） */
.site-footer {
  --f-bg: #1a2744; --f-ink: #eef0f5; --f-muted: #a3abbf; --f-line: #2e3a5a; --f-link: #f0a2bf;
  position: relative; overflow: hidden;
  background: var(--f-bg); color: var(--f-muted);
  padding: 72px 0 28px;
  border-radius: 32px 32px 0 0;
  font-size: 14px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { --f-bg: #0e1322; --f-line: #262d44; } }
:root[data-theme="dark"] .site-footer { --f-bg: #0e1322; --f-line: #262d44; }
.footer-sprouts { position: absolute; right: 40px; top: 10px; width: 180px; fill: var(--sakura); opacity: .22; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--f-ink); text-decoration: none; font-family: var(--font-maru); font-weight: 700; font-size: 26px; letter-spacing: .04em; }
.footer-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-full); background: #ffffff; }
.footer-mark svg { width: 38px; height: 38px; }
.footer-tag { margin-top: var(--space-4); font-family: var(--font-maru); font-weight: 700; font-size: 16px; color: var(--f-ink); }
.footer-lead { margin-top: 4px; font-size: 13.5px; line-height: 1.8; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-head { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--f-ink); margin-bottom: 4px; }
.footer-col a { color: var(--f-muted); text-decoration: none; line-height: 1.6; border-radius: 4px; }
.footer-col a:hover { color: var(--f-link); }
.site-footer :focus-visible { box-shadow: 0 0 0 2px var(--f-bg), 0 0 0 4px var(--f-link); }
.footer-col .footer-tel { font-family: var(--font-mono); font-size: 18px; color: var(--f-ink); letter-spacing: .02em; }
.footer-col .footer-cta { margin-top: 4px; padding: 8px 16px; border: 1px solid var(--f-line); border-radius: var(--radius-md); color: var(--f-ink); font-weight: 500; font-size: 13.5px; }
.footer-col .footer-cta:hover { border-color: var(--f-link); color: var(--f-link); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-6); margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--f-line); font-size: 12.5px; }
.footer-copy { font-family: var(--font-mono); font-size: 12px; }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-footer { padding-top: 56px; border-radius: 24px 24px 0 0; }
  .footer-sprouts { right: 8px; top: 16px; width: 120px; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; }
}
