:root {
    --ink: #172033;
    --muted: #607080;
    --navy: #102841;
    --blue: #245a82;
    --teal: #147c78;
    --orange: #d97728;
    --amber: #f4b44f;
    --bg: #ffffff;
    --soft: #f4f7f5;
    --line: #dce7e4;
    --dark: #0b1827;
    --shadow: 0 22px 52px rgba(16, 40, 65, 0.16);
    --shadow-soft: 0 14px 36px rgba(16, 40, 65, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f8faf9 0%, #ffffff 240px);
    line-height: 1.85;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    width: min(820px, calc(100% - 40px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(9, 23, 38, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 900;
    color: #fff;
}

.brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    font-weight: 700;
}

.header-nav a {
    text-decoration: none;
    transition: color 0.18s ease;
}

.header-nav a:hover {
    color: #fff;
}

.hero {
    position: relative;
    min-height: calc(100vh - 68px);
    padding: 98px 0 64px;
    overflow: hidden;
    background: var(--dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 22, 37, 0.96) 0%, rgba(9, 22, 37, 0.9) 44%, rgba(9, 22, 37, 0.58) 100%),
        linear-gradient(180deg, rgba(9, 22, 37, 0.2) 0%, rgba(9, 22, 37, 0.92) 100%);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.8) contrast(1.08);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 48px;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow,
.section-label {
    margin: 0 0 16px;
    color: var(--teal);
    font-weight: 900;
    letter-spacing: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 5px 12px;
    border: 1px solid rgba(244, 180, 79, 0.34);
    border-radius: 999px;
    background: rgba(244, 180, 79, 0.1);
    color: #ffd89a;
    font-size: 0.9rem;
}

.hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.55rem, 6vw, 5.35rem);
    line-height: 1.08;
    letter-spacing: 0;
    font-weight: 900;
}

.hero h1 span {
    color: #f5b85a;
}

.lead {
    margin: 28px 0 0;
    font-size: clamp(1.2rem, 2.1vw, 1.7rem);
    font-weight: 800;
    color: #fff;
}

.support {
    margin: 22px 0 0;
    max-width: 660px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 25px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 900;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    background: linear-gradient(135deg, #e27c2e, #c95f17);
    color: #fff;
    box-shadow: 0 16px 34px rgba(217, 121, 43, 0.28);
}

.button.secondary {
    background: #e7eeee;
    color: var(--navy);
    box-shadow: none;
}

.button.light {
    background: #fff;
    color: var(--navy);
}

.mini-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.86rem;
    font-weight: 900;
}

.note,
.small-note {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.94rem;
}

.hero-panel {
    position: relative;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, var(--amber), var(--teal));
}

.meter {
    padding: 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(20, 124, 120, 0.28));
    color: #fff;
}

.meter span,
.meter strong {
    display: block;
}

.meter span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.meter strong {
    margin-top: 4px;
    font-size: 1.65rem;
}

.hero-panel ul {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
}

.hero-panel li {
    padding: 12px 0 12px 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
}

.hero-panel li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--amber);
}

.section {
    padding: 92px 0;
}

.band {
    background: #f6faf9;
}

.muted {
    background: #f2f6f5;
}

.two-column,
.split {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 62px;
    align-items: start;
}

.split {
    grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
}

.split.reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.85rem, 3.4vw, 3.1rem);
    line-height: 1.28;
    letter-spacing: 0;
}

h3 {
    margin: 0;
    color: var(--navy);
    line-height: 1.45;
}

.text-flow p {
    margin: 0 0 18px;
    color: #344155;
    font-weight: 500;
}

.center,
.center-title {
    text-align: center;
}

.center-title {
    margin-bottom: 42px;
}

.visual-strip,
.profile-photo {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.visual-strip img,
.profile-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.check-grid,
.category-grid,
.type-grid,
.next-grid {
    display: grid;
    gap: 18px;
}

.check-grid {
    grid-template-columns: repeat(5, 1fr);
}

.category-grid,
.type-grid {
    grid-template-columns: repeat(4, 1fr);
}

.next-grid {
    grid-template-columns: repeat(3, 1fr);
}

.check-grid article,
.category-grid article,
.type-grid article,
.next-grid article {
    min-height: 100%;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(18, 52, 91, 0.06);
}

.check-grid span,
.next-grid span {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--orange);
    font-weight: 900;
}

.check-grid p,
.category-grid p,
.type-grid p,
.next-grid p {
    margin: 10px 0 0;
    color: var(--muted);
    font-weight: 500;
}

.section-note {
    width: min(760px, 100%);
    margin: 34px auto 0;
    text-align: center;
    color: var(--navy);
    font-weight: 800;
}

.reassurance {
    background: linear-gradient(135deg, #fff 0%, #f2f7f4 100%);
}

.supervisor {
    background: #fff;
}

.cta-band,
.final-cta {
    background: linear-gradient(135deg, var(--navy), #1f6d73);
    color: #fff;
}

.cta-band h2,
.final-cta h2,
.cta-band p,
.final-cta p,
.final-cta .section-label {
    color: #fff;
}

.cta-band p,
.final-cta p {
    margin: 22px auto 30px;
}

.diagnosis-intro {
    width: min(820px, 100%);
    margin: 0 auto 38px;
    text-align: center;
}

.diagnosis-app {
    width: min(880px, 100%);
    margin: 0 auto;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.progress-area {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.progress-area > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
}

.step-label {
    color: var(--teal);
    font-weight: 900;
}

.progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8efee;
}

.progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--orange));
    transition: width 0.25s ease;
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

legend {
    display: block;
    width: 100%;
    color: var(--navy);
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    font-weight: 900;
    line-height: 1.45;
}

.question-help {
    margin: 12px 0 22px;
    color: var(--muted);
}

.answer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.answer-grid label {
    cursor: pointer;
}

.answer-grid input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.answer-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 14px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #f9fbfb;
    color: var(--navy);
    font-weight: 900;
    text-align: center;
}

.answer-grid input:checked + span {
    border-color: var(--orange);
    background: #fff4ea;
    color: #9d4d0d;
}

.question-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
}

.question-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.result-panel {
    border-top: 1px solid var(--line);
    padding-top: 30px;
}

.result-score {
    margin: 0 0 8px;
    color: var(--teal);
    font-weight: 900;
}

.result-heading {
    color: var(--navy);
    font-size: 1.22rem;
    font-weight: 900;
}

.result-copy p {
    color: #344155;
}

.result-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 24px 0;
}

.result-columns > div {
    padding: 22px;
    border-radius: 8px;
    background: #f6faf9;
}

.result-columns ul {
    padding-left: 1.2em;
    margin: 12px 0 0;
}

.result-common {
    padding: 18px;
    border-left: 5px solid var(--orange);
    background: #fff8f0;
    color: var(--navy);
    font-weight: 800;
}

.report-section {
    background: #fbf7f0;
}

.report-form {
    display: grid;
    gap: 16px;
    padding: 28px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.report-form label {
    display: grid;
    gap: 7px;
    color: var(--navy);
    font-weight: 900;
}

.report-form input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.report-form p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.faq-section details {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.faq-section summary {
    cursor: pointer;
    color: var(--navy);
    font-weight: 900;
}

.faq-section details p {
    margin: 12px 0 0;
    color: var(--muted);
}

.site-footer {
    padding: 28px 0;
    background: #0f2439;
    color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.9rem;
}

.footer-inner a {
    text-decoration: none;
    color: #fff;
}

/* Visual refinement layer */
.section {
    position: relative;
}

.band {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(20, 124, 120, 0.04) 100%),
        #f6faf9;
}

.muted {
    background: #eef4f2;
}

h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--teal));
}

.center-title::after,
.center h2::after {
    margin-left: auto;
    margin-right: auto;
}

.visual-strip,
.profile-photo {
    position: relative;
}

.visual-strip::after,
.profile-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: inherit;
    pointer-events: none;
}

.check-grid article,
.category-grid article,
.type-grid article,
.next-grid article {
    position: relative;
    border-color: rgba(220, 231, 228, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.check-grid article:hover,
.category-grid article:hover,
.type-grid article:hover,
.next-grid article:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 124, 120, 0.24);
    box-shadow: 0 22px 48px rgba(16, 40, 65, 0.13);
}

.check-grid article::before,
.category-grid article::before,
.type-grid article::before,
.next-grid article::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, rgba(217, 119, 40, 0.9), rgba(20, 124, 120, 0.9));
}

.section-note {
    padding: 18px 22px;
    border: 1px solid rgba(20, 124, 120, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.cta-band,
.final-cta {
    background:
        linear-gradient(135deg, rgba(11, 24, 39, 0.96), rgba(20, 124, 120, 0.9)),
        url("../images/service-industry-complexity.png") center / cover;
}

.diagnosis-section {
    background: linear-gradient(180deg, #ffffff 0%, #f4f8f7 100%);
}

.diagnosis-intro p {
    color: #3b4656;
    font-weight: 500;
}

.diagnosis-app {
    position: relative;
    overflow: hidden;
    padding: 38px;
    border-color: rgba(20, 124, 120, 0.14);
    background: rgba(255, 255, 255, 0.94);
}

.diagnosis-app::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, var(--orange), var(--amber), var(--teal));
}

.progress-area > div:first-child {
    font-weight: 800;
}

.step-label {
    color: var(--orange);
}

.progress-track {
    height: 12px;
}

.answer-grid span {
    min-height: 68px;
    background: #f8fbfa;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.answer-grid span:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 124, 120, 0.45);
    background: #fff;
    box-shadow: 0 12px 24px rgba(16, 40, 65, 0.09);
}

.answer-grid input:checked + span {
    background: linear-gradient(180deg, #fff8ef 0%, #fff1e3 100%);
    box-shadow: 0 14px 26px rgba(217, 119, 40, 0.13);
}

.result-score {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #eef8f6;
}

.result-columns > div {
    border: 1px solid rgba(20, 124, 120, 0.13);
}

.report-section {
    background:
        linear-gradient(135deg, rgba(251, 247, 240, 0.96), rgba(238, 247, 244, 0.94)),
        #fbf7f0;
}

.report-section .small-note {
    color: var(--muted);
}

.report-form {
    border: 1px solid rgba(220, 231, 228, 0.9);
}

.report-form input {
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.report-form input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(20, 124, 120, 0.12);
}

.report-form input[readonly] {
    background: #f4f8f7;
    color: var(--navy);
    font-weight: 900;
}

.faq-section details {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 40, 65, 0.05);
}

@media (max-width: 980px) {
    .hero-grid,
    .two-column,
    .split,
    .split.reverse {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .check-grid,
    .category-grid,
    .type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .container,
    .narrow {
        width: min(100% - 28px, 1120px);
    }

    .header-nav {
        display: none;
    }

    .hero {
        padding-top: 58px;
    }

    .hero-bg::after {
        background: linear-gradient(180deg, rgba(9, 22, 37, 0.94) 0%, rgba(9, 22, 37, 0.88) 100%);
    }

    .section {
        padding: 68px 0;
    }

    .check-grid,
    .category-grid,
    .type-grid,
    .next-grid,
    .answer-grid,
    .result-columns {
        grid-template-columns: 1fr;
    }

    .diagnosis-app {
        padding: 22px;
    }

    .progress-area > div:first-child,
    .question-actions,
    .footer-inner {
        flex-direction: column;
    }

    .question-actions .button {
        width: 100%;
    }
}
