:root {
  --navy: #1C2188;
  --navy-dark: #141863;
  --accent: #1FA8E0;
  --tint: #E8F4FD;
  --tint-2: #F2F5FA;
  --line: #D9E0EC;
  --text: #1F2433;
  --muted: #5B6475;
  --white: #FFFFFF;
  --error: #C62828;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.45; margin: 0 0 16px; font-weight: 700; }
h1 { font-size: clamp(26px, 3.6vw, 40px); }
h2 { font-size: clamp(22px, 2.8vw, 30px); padding-bottom: 14px; border-bottom: 3px solid var(--navy); margin-bottom: 24px; }
h3 { font-size: 19px; margin-top: 40px; }
h4 { font-size: 17px; margin-bottom: 8px; }
p { margin: 0 0 16px; }
[id] { scroll-margin-top: 80px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 800px; }
.center { text-align: center; margin-top: 32px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo img { width: 128px; height: auto; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--text); }
.nav a:hover { color: var(--navy); }

/* Buttons */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 12px 28px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid var(--navy); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; line-height: 1.4; text-align: center; font-family: inherit; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-secondary { background: var(--white); color: var(--navy); }
.btn-secondary:hover { background: var(--tint); }
.btn-outline { background: var(--white); color: var(--navy); border-width: 1.5px; font-size: 15px; min-height: 46px; padding: 10px 22px; }
.btn-outline:hover { background: var(--tint); }
.btn-sm { min-height: 40px; padding: 6px 20px; font-size: 14px; }
.btn-lg { min-width: 300px; min-height: 60px; font-size: 17px; }
.btn-sub { font-size: 12px; font-weight: 500; opacity: .9; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.btn-row-center { justify-content: center; }

.pill { display: inline-block; background: var(--tint); color: var(--navy); font-weight: 700; font-size: 14px; padding: 4px 20px; border-radius: 999px; margin-bottom: 14px; }
.note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.text-link a { font-weight: 500; }
.text-link a::after { content: " ↓"; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--tint) 0%, var(--white) 100%); padding: 64px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 16px; }
.hero-visual img { border-radius: 10px; box-shadow: 0 12px 32px rgba(28, 33, 136, 0.14); border: 1px solid var(--line); }

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--tint-2); }

.stuck-list { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stuck-list li { background: var(--tint-2); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--white); color: var(--navy); font-weight: 700; border: 1.5px solid var(--navy); line-height: 1; }
.conclusion { font-weight: 700; color: var(--navy); background: var(--tint); border-left: 4px solid var(--navy); padding: 16px 20px; border-radius: 0 8px 8px 0; }

/* Stage table */
.stage-table { margin: 24px 0 8px; display: grid; gap: 8px; }
.stage-row { display: grid; grid-template-columns: 1.1fr 2fr 110px; gap: 16px; align-items: center; background: var(--white); border-radius: 10px; padding: 14px 20px; }
.stage-row:nth-child(2) { background: var(--tint); }
.stage-head { background: transparent !important; padding-top: 0; padding-bottom: 0; font-weight: 700; font-size: 14px; color: var(--muted); }
.stage-name { font-weight: 700; color: var(--navy); }
.period { display: inline-block; min-width: 88px; text-align: center; border: 1.5px solid var(--accent); color: var(--navy); background: var(--white); border-radius: 999px; font-weight: 700; padding: 2px 12px; font-size: 15px; }

.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 10px; height: 6px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.samples figure { margin: 0; }
.samples img { border-radius: 8px; border: 1px solid var(--line); background: var(--white); }
.samples figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.6; }

.notes { font-size: 13px; color: var(--muted); padding-left: 1.2em; margin-top: 24px; }

/* Demo cards */
.notice { background: var(--tint); border-radius: 8px; padding: 12px 16px; font-size: 14px; color: var(--navy); font-weight: 500; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.card-live { border: 2px solid var(--navy); box-shadow: 0 8px 24px rgba(28, 33, 136, 0.08); }
.card-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 999px; background: var(--tint-2); color: var(--muted); border: 1px solid var(--line); }
.badge-live { background: var(--navy); color: var(--white); border-color: var(--navy); }
.stage-tag { font-size: 12px; color: var(--navy); font-weight: 500; }
.card h3 { margin-top: 0; font-size: 20px; }
.card dl { margin: 0; flex: 1; }
.card dt { font-size: 13px; font-weight: 700; color: var(--navy); margin-top: 12px; }
.card dd { margin: 4px 0 0; font-size: 15px; }
.card dd p { margin-bottom: 8px; }
.card .btn-row { margin-top: 16px; }

/* Support table */
.support-table { margin: 24px 0; display: grid; gap: 8px; }
.support-row { display: grid; grid-template-columns: 1fr 1.6fr 1.4fr; gap: 20px; background: var(--white); border-radius: 10px; padding: 16px 20px; }
.support-head { background: transparent; padding-top: 0; padding-bottom: 0; font-weight: 700; font-size: 14px; color: var(--muted); }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promise { background: var(--white); border-radius: var(--radius); padding: 24px; }
.promise .num { margin-bottom: 12px; }
.promise p { margin: 0; font-size: 15px; }

.flow { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: none; }
.flow li { background: var(--white); border-radius: 10px; padding: 16px; font-size: 15px; font-weight: 500; position: relative; }
.flow .step { display: block; font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .08em; margin-bottom: 4px; }

/* Consult（相談フォームへのリンク） */
.consult-box { background: var(--tint); border-radius: var(--radius); padding: 32px 24px; text-align: center; margin: 24px 0 20px; }
.consult-reply { margin: 14px 0 0; font-size: 15px; color: var(--navy); font-weight: 500; }
.form-note { font-size: 13px; color: var(--muted); background: var(--tint-2); border-radius: 8px; padding: 12px 16px; }
.consult-pending { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.consult-box .consult-pending { margin-top: 8px; }
.center + .consult-pending { text-align: center; }
a.btn:not([href]), a.btn.is-disabled { background: var(--tint-2); color: var(--muted); border-color: var(--line); cursor: not-allowed; pointer-events: none; }
.text-link a.is-disabled, .text-link a:not([href]) { color: var(--muted); text-decoration: none; cursor: not-allowed; pointer-events: none; }
.text-link a.is-disabled::after, .text-link a:not([href])::after { content: none; }
.text-link a[target="_blank"]::after { content: " ↗"; }

/* FAQ */
.faq details { background: var(--white); border-radius: 10px; margin-bottom: 10px; border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 48px 18px 20px; font-weight: 700; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 18px; margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: var(--white); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.footer-logo img { width: 112px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.footer-nav a { color: var(--white); text-decoration: none; opacity: .9; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.copy { margin: 0 0 0 auto; font-size: 12px; opacity: .8; }

/* Responsive */
@media (max-width: 640px) { .br-pc { display: none; } }
@media (max-width: 960px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .cards, .promises { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .samples { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0; }
  .btn-row .btn { width: 100%; }
  .btn-lg { min-width: 0; width: 100%; }
  .stuck-list, .samples, .flow { grid-template-columns: 1fr; }
  .stage-row { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; }
  .stage-row > :nth-child(1) { grid-column: 1; }
  .stage-row > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 14px; }
  .stage-row > :nth-child(3) { grid-column: 2; grid-row: 1; }
  .stage-head { display: none; }
  .period { min-width: 0; font-size: 13px; }
  .support-head { display: none; }
  .support-row { grid-template-columns: 1fr; gap: 6px; }
  .support-row span:not(.stage-name)::before { content: attr(data-label) "：" ; font-weight: 700; color: var(--muted); font-size: 13px; display: block; }
  .card { padding: 20px; }
  .copy { margin-left: 0; }
}
