:root {
  --ink: #123a3e;
  --ink-strong: #092a2e;
  --teal: #117e7a;
  --teal-2: #21a7a0;
  --teal-soft: #e9f6f5;
  --blue: #3f7798;
  --orange: #e77e34;
  --rose: #c64c73;
  --paper: #f7fbfa;
  --white: #ffffff;
  --line: #dbe9e7;
  --muted: #62777a;
  --shadow: 0 24px 70px rgba(8, 47, 51, .12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "BIZ UDPGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 1000;
  background: var(--ink-strong); color: white; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(247, 251, 250, .88);
  border-bottom: 1px solid rgba(219, 233, 231, .8);
}
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { display: block; height: 32px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; letter-spacing: .04em; }
.brand-text strong { font-size: .93rem; }
.brand-text small { color: var(--muted); font-size: .65rem; }

.header-cta, .primary-button, .secondary-button, .text-button {
  border: 0; border-radius: 999px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.header-cta, .primary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  color: white; padding: 14px 24px; text-decoration: none; font-weight: 700;
  box-shadow: 0 12px 30px rgba(17, 126, 122, .22);
}
.header-cta { padding: 10px 18px; font-size: .9rem; }
.primary-button:hover, .header-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(17,126,122,.3); }
.primary-button:disabled { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }
.secondary-button {
  background: white; color: var(--ink); border: 1px solid var(--line);
  padding: 13px 22px; font-weight: 700;
}
.secondary-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(8,47,51,.08); }
.text-button { background: transparent; color: var(--teal); font-weight: 700; padding: 12px; }

.hero {
  position: relative; overflow: hidden; min-height: 730px;
  display: flex; align-items: center;
  background:
    linear-gradient(125deg, rgba(255,255,255,.96), rgba(233,246,245,.92)),
    radial-gradient(circle at 80% 20%, rgba(33,167,160,.18), transparent 32%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(17,126,122,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(17,126,122,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, transparent, black 45%, black);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-glow-a { width: 480px; height: 480px; right: -180px; top: -140px; background: rgba(33,167,160,.11); }
.hero-glow-b { width: 360px; height: 360px; left: -180px; bottom: -180px; background: rgba(63,119,152,.09); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; color: var(--ink-strong); font-size: clamp(2.7rem, 5vw, 5rem); line-height: 1.12; letter-spacing: -.045em; }
.hero h1 span { color: var(--teal); }
.hero-lead { max-width: 650px; margin: 26px 0 32px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 12px; flex-wrap: wrap; list-style: none; padding: 0; margin: 28px 0 0; }
.hero-points li { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: .85rem; color: var(--muted); }
.hero-points li::before { content: "✓"; color: var(--teal); margin-right: 7px; font-weight: 900; }

.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.dashboard-card {
  width: min(100%, 500px); padding: 28px; border-radius: var(--radius-xl);
  background: linear-gradient(150deg, rgba(11,56,61,.98), rgba(17,126,122,.92));
  color: white; box-shadow: 0 36px 90px rgba(6,42,46,.28);
  transform: rotate(-2deg);
}
.dashboard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.dashboard-top small { display: block; opacity: .62; letter-spacing: .14em; font-weight: 700; }
.dashboard-top strong { display: block; font-size: 2.3rem; line-height: 1.1; margin-top: 8px; }
.status-pill { background: rgba(255,255,255,.14); padding: 8px 12px; border-radius: 999px; font-size: .78rem; }
.mini-chart { height: 190px; display: flex; align-items: flex-end; gap: 14px; margin: 34px 0 26px; padding: 0 8px 10px; border-bottom: 1px solid rgba(255,255,255,.18); }
.mini-chart div { flex: 1; min-width: 22px; background: linear-gradient(to top, rgba(255,255,255,.28), rgba(255,255,255,.92)); border-radius: 10px 10px 3px 3px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric-grid div { padding: 15px; background: rgba(255,255,255,.1); border-radius: 14px; }
.metric-grid span { display: block; opacity: .65; font-size: .72rem; }
.metric-grid strong { display: block; font-size: 1.55rem; margin-top: 4px; }
.floating-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: white; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 14px 18px;
}
.floating-card small { display: block; color: var(--muted); font-size: .68rem; }
.floating-card strong { display: block; color: var(--ink); }
.floating-card-a { left: -15px; top: 90px; }
.floating-card-b { right: -10px; bottom: 70px; }
.icon-dot, .check-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-weight: 900; }

.section { padding: 100px 0; }
.section-light { background: white; }
.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.25; letter-spacing: -.03em; }
.section-heading p:last-child { color: var(--muted); }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.step-card span { color: var(--teal); font-size: .8rem; font-weight: 900; letter-spacing: .12em; }
.step-card h3 { margin: 18px 0 7px; font-size: 1.15rem; }
.step-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.diagnosis-section { min-height: calc(100vh - 76px); padding: 24px 0 40px; background: linear-gradient(180deg, #eff8f7, #f7fbfa); }
.diagnosis-container { max-width: 900px; }
.diagnosis-header { display: flex; justify-content: space-between; align-items: flex-start; }
.diagnosis-header h2 { margin: 0; font-size: 2rem; }
.close-button { width: 44px; height: 44px; border: 1px solid var(--line); background: white; border-radius: 50%; color: var(--muted); font-size: 1.6rem; }
.progress-wrap { margin: 20px 0 16px; }
.progress-meta { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.progress-track { height: 7px; background: #dbe9e7; border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; width: 10%; background: linear-gradient(90deg, var(--teal), var(--teal-2)); transition: width .35s ease; }

.question-shell { background: white; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 40px); }
.question-number { color: var(--teal); font-size: .78rem; font-weight: 900; letter-spacing: .14em; }
.question-shell h3 { margin: 16px 0 8px; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.38; letter-spacing: -.025em; }
.question-hint { margin: 0 0 16px; color: var(--muted); }
.answer-options { display: grid; gap: 8px; margin-top: 16px; }
.answer-option {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px;
  background: white; color: var(--ink); text-align: left;
}
.answer-option:hover { border-color: var(--teal-2); background: var(--teal-soft); }
.answer-option.selected { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.answer-option span:last-child { width: 26px; height: 26px; border: 2px solid #bdd2d0; border-radius: 50%; display: grid; place-items: center; }
.answer-option.selected span:last-child { border-color: var(--teal); background: var(--teal); color: white; }
.question-navigation { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }

.loading-section { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 40px; background: linear-gradient(160deg, #eef8f7, #f9fcfb); }
.loading-card { width: min(560px, 100%); text-align: center; background: white; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 56px; }
.loader-ring { width: 74px; height: 74px; margin: 0 auto 26px; border: 7px solid var(--teal-soft); border-top-color: var(--teal); border-radius: 50%; animation: spin .9s linear infinite; }
.loading-card h2 { margin: 0; }
.loading-card p:not(.eyebrow) { color: var(--muted); }
.loading-bar { height: 8px; background: #e5efee; border-radius: 99px; overflow: hidden; margin-top: 28px; }
.loading-bar span { display: block; height: 100%; width: 45%; background: linear-gradient(90deg, transparent, var(--teal), transparent); animation: loading 1.3s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loading { from { transform: translateX(-120%); } to { transform: translateX(260%); } }

.result-section { padding: 72px 0 100px; background: #f3f9f8; }
.result-hero { display: grid; grid-template-columns: 1fr .8fr; gap: 40px; align-items: center; background: linear-gradient(135deg, var(--ink-strong), #116f70); color: white; border-radius: var(--radius-xl); padding: clamp(30px, 5vw, 64px); box-shadow: var(--shadow); }
.result-hero .eyebrow { color: #8de0db; }
.result-label { margin: 18px 0 2px; opacity: .72; }
.result-hero h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.2; }
.result-summary { max-width: 620px; opacity: .84; }
.result-insight { max-width: 620px; margin-top: 6px; font-weight: 600; color: #8de0db; }
.maturity-badge { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding: 12px 16px; background: rgba(255,255,255,.1); border-radius: 14px; }
.maturity-badge span { opacity: .65; font-size: .78rem; }
.maturity-badge strong { font-size: 1.25rem; }
.maturity-badge small { color: #a7e7e3; }
.radar-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 12px; }
.radar-card canvas { display: block; width: 100%; height: auto; }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.result-card { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.card-heading small { display: block; color: var(--teal); font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.card-heading h3 { margin: 2px 0 0; font-size: 1.3rem; }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--teal-soft); color: var(--teal); font-weight: 900; }
.priority-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.priority-list li { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.priority-list li:last-child { border-bottom: 0; }
.strengths-card .card-icon { background: #e3f7e9; color: #1a9a52; }
.strengths-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.strengths-list li { background: #e3f7e9; color: #157a41; font-weight: 700; padding: 8px 16px; border-radius: 999px; }
.priority-rank { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-strong); color: white; font-size: .8rem; font-weight: 800; }
.priority-score { color: var(--teal); font-weight: 900; }

.roadmap { display: grid; gap: 0; }
.roadmap-item { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding-bottom: 20px; }
.roadmap-item:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--line); }
.roadmap-dot { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: white; font-size: .75rem; font-weight: 900; z-index: 1; }
.roadmap-item strong { display: block; }
.roadmap-item p { margin: 3px 0 0; color: var(--muted); font-size: .88rem; }

.service-card { margin-top: 22px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-item { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--paper); }
.service-item span { display: inline-block; color: var(--teal); font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.service-item h4 { margin: 12px 0 8px; font-size: 1.05rem; }
.service-item p { margin: 0; color: var(--muted); font-size: .86rem; }

.cta-panel { margin-top: 22px; display: flex; justify-content: space-between; gap: 32px; align-items: center; background: linear-gradient(120deg, #e8f5f4, #ffffff); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.cta-panel h2 { margin: 0; max-width: 680px; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.35; }
.cta-panel p:last-child { color: var(--muted); margin-bottom: 0; }
.cta-actions { min-width: 245px; display: grid; gap: 10px; }

.site-footer { background: var(--ink-strong); color: white; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-inner div { display: flex; flex-direction: column; }
.footer-inner small { opacity: .6; }
.footer-inner a { color: #9de3df; text-decoration: none; }
.footer-links { align-items: flex-end; }
.footer-version { font-size: .72rem; }

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 90px 0 70px; }
  .hero-grid, .result-hero, .result-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 460px; }
  .step-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .result-hero { text-align: left; }
  .radar-card { max-width: 470px; width: 100%; margin: 0 auto; }
  .cta-panel { flex-direction: column; align-items: stretch; }
  .cta-actions { min-width: 0; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1160px); }
  .header-inner { height: 66px; }
  .header-cta { display: none; }
  .brand-text small { display: none; }
  .hero { padding-top: 66px; }
  .hero h1 { font-size: 2.45rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .primary-button { width: 100%; }
  .text-button { width: 100%; }
  .hero-visual { min-height: 390px; }
  .dashboard-card { padding: 20px; }
  .dashboard-top strong { font-size: 1.7rem; }
  .mini-chart { height: 130px; }
  .metric-grid div { padding: 10px; }
  .floating-card-a { left: 0; top: 20px; }
  .floating-card-b { right: 0; bottom: 10px; }
  .step-grid, .service-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .question-navigation { flex-direction: column-reverse; }
  .question-navigation button { width: 100%; }
  .loading-card { padding: 38px 22px; }
  .result-section { padding-top: 24px; }
  .result-hero { padding: 28px 22px; }
  .result-card, .cta-panel { padding: 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

.registration-section{min-height:calc(100vh - 76px);display:grid;place-items:center;padding:52px 20px;background:linear-gradient(160deg,#eef8f7,#f9fcfb)}
.registration-card{width:min(720px,100%);background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);padding:clamp(28px,5vw,54px)}
.registration-card h2{margin:0;font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.3}.registration-card>p:not(.eyebrow){color:var(--muted)}
.registration-form{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:28px}.registration-form label{display:grid;gap:7px;font-weight:700;font-size:.92rem}.registration-form label>span{color:var(--orange);font-size:.72rem}
.registration-form input,.registration-form select{width:100%;border:1px solid var(--line);border-radius:12px;padding:13px 14px;background:#fff;color:var(--ink);outline:none}.registration-form input:focus,.registration-form select:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(17,126,122,.12)}
.registration-form .consent{grid-column:1/-1;display:flex;align-items:flex-start;gap:10px;font-weight:400;color:var(--muted)}.registration-form .consent input{width:18px;height:18px;margin-top:4px}.registration-form .consent span{color:var(--muted);font-size:.84rem}
.registration-form .primary-button,.form-error{grid-column:1/-1}.form-error{background:#fff1f1;color:#9b2c2c;border:1px solid #f4caca;border-radius:12px;padding:12px 14px}
@media(max-width:620px){.registration-form{grid-template-columns:1fr}.registration-form .consent,.registration-form .primary-button,.form-error{grid-column:1}}
