:root {
  --navy: #13315c;
  --navy-deep: #0d2445;
  --blue: #2563eb;
  --blue-soft: #e9f0fe;
  --tint: #f4f7fc;
  --text: #16233a;
  --muted: #5a677d;
  --line: #dfe5ef;
  --error: #c62828;
  --ok: #157a46;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 49, 92, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { font-weight: 900; color: var(--navy); text-decoration: none; letter-spacing: .04em; white-space: nowrap; font-size: 18px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--blue); }
.nav .nav-cta { color: #fff; background: var(--blue); padding: 8px 18px; border-radius: 999px; font-weight: 700; }
.nav .nav-cta:hover { background: #1d4fc4; color: #fff; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 16px; cursor: pointer; font-family: inherit; border: 1.5px solid var(--navy); transition: background .15s, color .15s; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-navy:disabled { opacity: .6; cursor: wait; }
.btn-line { background: #fff; color: var(--navy); }
.btn-line:hover { background: var(--blue-soft); }
.btn-block { width: 100%; }

/* ヒーロー */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.kicker { display: flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 700; font-size: 14px; margin: 0 0 24px; }
.kicker-line { width: 28px; height: 2px; background: var(--navy); }
.hero-pre { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.25; margin: 0 0 28px; font-weight: 900; letter-spacing: .01em; }
.h1-dark { color: var(--navy-deep); }
.h1-blue { color: var(--blue); }
.lead { color: var(--muted); font-size: 17px; margin: 0 0 32px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

/* 試作のデモ */
.demo { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(19,49,92,.14); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #d4dae4; display: block; }
.demo-title { font-size: 13px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 14px; flex: 1; }
.demo-live { font-size: 12px; font-weight: 700; color: var(--ok); display: flex; align-items: center; gap: 6px; }
.demo-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.demo-body { padding: 20px; }
.demo-label { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.xls { width: 100%; border-collapse: collapse; font-size: 12px; font-family: "Hiragino Sans", sans-serif; }
.xls th, .xls td { border: 1px solid #cfd8e3; padding: 4px 8px; text-align: left; }
.xls th { background: #e8f3ea; color: #2c5a35; font-weight: 600; }
.demo-arrow { text-align: center; color: var(--blue); font-weight: 900; font-size: 20px; line-height: 1; margin: 12px 0; }
.demo-to { background: var(--tint); border-radius: 12px; padding: 14px; }
.app-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 10px; }
.app-count { font-size: 12px; color: var(--muted); }
.app-count b { font-size: 20px; color: var(--blue); font-family: Inter, sans-serif; margin-right: 2px; }
.app-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.app-list li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 500; }
.app-list li em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.app-list li.is-new { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); animation: pop .5s ease; }
@keyframes pop { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
.tag { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 8px; }
.tag-a { background: var(--blue-soft); color: var(--blue); }
.tag-b { background: #fdeee6; color: #b4532a; }
.app-add { margin-top: 10px; text-align: center; font-size: 13px; font-weight: 700; color: var(--blue); border: 1.5px dashed #b8c9ef; border-radius: 10px; padding: 8px; }
.demo-steps { list-style: none; margin: 0; padding: 0 20px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-steps li { font-size: 12px; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; color: var(--muted); line-height: 1.5; }
.demo-steps b { display: block; font-family: Inter, sans-serif; font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.demo-steps li.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.demo-steps li.on b { color: #9fbaf0; }

/* 区画 */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.label { font-family: Inter, sans-serif; font-weight: 700; letter-spacing: .2em; color: var(--blue); font-size: 13px; margin: 0 0 8px; text-align: center; }
.section-title { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 16px; text-align: center; color: var(--navy-deep); font-weight: 900; }
.section-lead { color: var(--muted); text-align: center; margin: 0 auto 48px; max-width: 40em; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue); display: grid; place-items: center; margin-bottom: 20px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 10px; font-size: 20px; color: var(--navy-deep); }
.card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; flex: 1; }
.card-link { font-weight: 700; font-size: 14px; text-decoration: none; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: f; }
.flow li { background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); position: relative; }
.flow-no { font-family: Inter, sans-serif; font-size: 28px; font-weight: 700; color: var(--blue); line-height: 1; display: block; margin-bottom: 14px; }
.flow h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy-deep); }
.flow p { margin: 0; color: var(--muted); font-size: 14px; }

.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; align-items: stretch; }
.pack { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; background: #fff; display: flex; flex-direction: column; position: relative; }
.pack-main { border: 2px solid var(--navy); box-shadow: var(--shadow); }
.pack-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 14px; margin: 0; white-space: nowrap; }
.pack-name { font-weight: 900; font-size: 19px; margin: 0; color: var(--navy-deep); }
.pack-name small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.pack-price { font-family: Inter, sans-serif; font-size: 40px; font-weight: 700; color: var(--navy-deep); margin: 14px 0 6px; line-height: 1.1; }
.pack-price span { font-family: "Noto Sans JP", sans-serif; font-size: 15px; margin-left: 2px; }
.pack ul { list-style: none; padding: 0; margin: 12px 0 24px; flex: 1; border-top: 1px solid var(--line); }
.pack li { padding: 9px 0 9px 24px; border-bottom: 1px solid var(--line); font-size: 14px; position: relative; }
.pack li::before { content: "✓"; position: absolute; left: 2px; color: var(--blue); font-weight: 700; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 600px; }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { font-weight: 700; color: var(--navy-deep); width: 30%; }
.price-table td { color: var(--muted); }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table .num { font-weight: 700; color: var(--navy-deep); white-space: nowrap; width: 16%; }
.note { color: var(--muted); font-size: 13px; margin-top: 16px; }

.about { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.about .label, .about .section-title { text-align: left; }
.about-body p { margin: 0 0 16px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 0; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; color: var(--navy-deep); }

.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 36px 20px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: Inter, sans-serif; color: var(--blue); margin-right: 12px; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 22px; color: var(--blue); }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0 0 20px; color: var(--muted); padding-left: 26px; }

/* お問い合わせ */
.section-contact { background: var(--navy); color: #fff; }
.section-contact .section-title { color: #fff; }
.section-contact .section-lead { color: #c5d3ea; }
.label-light { color: #8fb0f2; }
.form { background: #fff; color: var(--text); border-radius: 18px; padding: 36px; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.req { display: inline-block; font-size: 11px; color: #fff; background: var(--blue); border-radius: 4px; padding: 0 6px; margin-left: 6px; vertical-align: 2px; line-height: 1.7; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #c8d1df; border-radius: 8px; font: inherit; font-size: 16px; background: #fff; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.err { color: var(--error); font-size: 13px; margin: 4px 0 0; }
.err:empty { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--error); }

.site-footer { padding: 32px 0; background: var(--navy-deep); color: #9fb0cc; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer .logo { color: #fff; font-size: 15px; }
.site-footer p { margin: 0; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .packs { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .pack-main { margin-top: 8px; }
  .about { grid-template-columns: 1fr; gap: 8px; }
  .about .label, .about .section-title { text-align: center; }
}
@media (max-width: 640px) {
  .nav a:not(.nav-cta) { display: none; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 64px 0; }
  .cards, .flow, .field-row, .facts { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .form { padding: 22px; }
  .btn { width: 100%; }
  .demo-steps li { font-size: 11px; }
  .footer-inner { flex-direction: column; }
}

/* 日本語の改行を文節で（対応ブラウザのみ） */
h1, h2, h3, .hero-pre, .kicker, .lead, .section-lead { word-break: auto-phrase; }
.nav .nav-cta { white-space: nowrap; }
@media (max-width: 400px) {
  .logo { font-size: 16px; }
  .nav .nav-cta { padding: 6px 12px; font-size: 13px; }
}
