/* Page 404: scoped styles */
.report-404-body .report-404-page {
    color: #29333d;
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.9;
}

.report-404-page *,
.report-404-page *::before,
.report-404-page *::after {
    box-sizing: border-box;
}

.report-404-page a {
    color: #17676f;
    text-underline-offset: 0.2em;
}

.report-404-hero {
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 14px;
    background: #f1f4f4;
    box-shadow: 0 10px 30px rgba(35, 54, 62, 0.12);
}

.report-404-hero img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.report-404-lead,
.report-404-overview,
.report-404-toc,
.report-404-section,
.report-404-related {
    margin: 0 0 44px;
}

.report-404-lead {
    padding: 26px 28px;
    border-left: 5px solid #3a7380;
    border-radius: 0 12px 12px 0;
    background: #f1f7f8;
}

.report-404-page h2 {
    margin: 0 0 22px;
    padding-bottom: 12px;
    border-bottom: 3px solid #3a7380;
    color: #255662;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    line-height: 1.45;
}

.report-404-page h3 {
    color: #2d4d54;
    line-height: 1.5;
}

.report-404-overview,
.report-404-check-box {
    padding: 24px 28px;
    border: 1px solid #cee0e3;
    border-radius: 12px;
    background: #fbfdfe;
}

.report-404-overview h2 {
    font-size: 1.45rem;
}

.report-404-check-list {
    margin: 0;
    padding-left: 1.35em;
}

.report-404-check-list li {
    margin: 7px 0;
}

.report-404-toc {
    padding: 24px 28px;
    border-radius: 12px;
    background: #f3f5f6;
}

.report-404-toc-title {
    margin: 0 0 10px;
    color: #255662;
    font-weight: 800;
}

.report-404-toc ol {
    margin: 0;
    padding-left: 1.4em;
    columns: 2;
    column-gap: 34px;
}

.report-404-toc li {
    margin: 7px 0;
    break-inside: avoid;
}

.report-404-point-grid,
.report-404-product-grid,
.report-404-related-grid {
    display: grid;
    gap: 18px;
}

.report-404-point-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 26px 0;
}

.report-404-point-card {
    padding: 22px;
    border: 1px solid #d5e2e4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(35, 54, 62, 0.06);
}

.report-404-point-card h3 {
    margin: 0 0 8px;
}

.report-404-point-card p {
    margin: 0;
}

.report-404-table-wrap {
    max-width: 100%;
    margin: 24px 0;
    overflow-x: auto;
    border: 1px solid #d3dfe2;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}

.report-404-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: #fff;
}

.report-404-table th,
.report-404-table td {
    padding: 15px 17px;
    border-right: 1px solid #dfe7e9;
    border-bottom: 1px solid #dfe7e9;
    text-align: left;
    vertical-align: top;
}

.report-404-table thead th {
    background: #3a7380;
    color: #fff;
    font-weight: 800;
}

.report-404-table tbody th {
    width: 24%;
    background: #eef5f6;
    color: #255662;
}

.report-404-table tr:last-child th,
.report-404-table tr:last-child td {
    border-bottom: 0;
}

.report-404-table th:last-child,
.report-404-table td:last-child {
    border-right: 0;
}

.report-404-note {
    margin: 26px 0;
    padding: 22px 24px;
    border-left: 5px solid #cb9134;
    border-radius: 12px;
    background: #fff8eb;
}

.report-404-note h3 {
    margin: 0 0 8px;
}

.report-404-step-list {
    display: grid;
    gap: 16px;
    margin: 26px 0;
    padding: 0;
    list-style: none;
}

.report-404-step-list li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 20px 22px;
    border: 1px solid #d5e2e4;
    border-radius: 12px;
    background: #fff;
}

.report-404-step-number {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: #3a7380;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
}

.report-404-step-list h3 {
    margin: 0 0 6px;
}

.report-404-step-list p {
    margin: 0;
}

.report-404-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0 30px;
}

.report-404-product-card {
    display: block;
    min-height: 174px;
    padding: 22px;
    border: 1px solid #d3e0e2;
    border-radius: 12px;
    background: #fff;
    color: #27333a !important;
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(35, 54, 62, 0.06);
}

.report-404-product-card:hover,
.report-404-product-card:focus-visible {
    border-color: #3a7380;
    background: #f1f7f8;
    color: #27333a !important;
    outline: 3px solid rgba(58, 115, 128, 0.2);
    outline-offset: 2px;
}

.report-404-product-card span {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e9f2f4;
    color: #2d6470;
    font-size: 0.82rem;
    font-weight: 800;
}

.report-404-product-card strong {
    display: block;
    margin-bottom: 8px;
    color: #255662;
    font-size: 1.1rem;
}

.report-404-product-card p {
    margin: 0;
}

.report-404-cta {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
    gap: 24px;
    align-items: center;
    padding: 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2a5b65, #3a7380);
    color: #fff;
}

.report-404-cta h3,
.report-404-cta p {
    color: #fff;
}

.report-404-cta h3 {
    margin: 4px 0 10px;
    font-size: 1.5rem;
}

.report-404-cta-kicker {
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.report-404-cta-actions {
    display: grid;
    gap: 12px;
}

.report-404-button {
    display: block;
    padding: 14px 18px;
    border: 2px solid transparent;
    border-radius: 9px;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
    line-height: 1.45;
}

.report-404-button-primary {
    background: #fff;
    color: #255662 !important;
}

.report-404-button-primary:hover,
.report-404-button-primary:focus-visible {
    border-color: #fff;
    background: #e9f2f4;
    color: #173e47 !important;
    outline: 3px solid rgba(255,255,255,0.4);
    outline-offset: 2px;
}

.report-404-button-secondary {
    border-color: #fff;
    background: transparent;
    color: #fff !important;
}

.report-404-button-secondary:hover,
.report-404-button-secondary:focus-visible {
    background: #fff;
    color: #255662 !important;
    outline: 3px solid rgba(255,255,255,0.4);
    outline-offset: 2px;
}

.report-404-faq-item {
    margin: 12px 0;
    overflow: hidden;
    border: 1px solid #d4e1e3;
    border-radius: 10px;
    background: #fff;
}

.report-404-faq-item summary {
    padding: 17px 20px;
    cursor: pointer;
    color: #2a616c;
    font-weight: 800;
}

.report-404-faq-item summary:hover,
.report-404-faq-item summary:focus-visible {
    background: #eef5f6;
    color: #1d4851;
    outline: 3px solid rgba(58, 115, 128, 0.2);
    outline-offset: -3px;
}

.report-404-faq-answer {
    padding: 0 20px 18px;
}

.report-404-faq-answer p {
    margin: 0;
}

.report-404-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-404-related-grid a {
    display: flex;
    min-height: 126px;
    flex-direction: column;
    justify-content: center;
    padding: 20px 22px;
    border: 1px solid #d5e2e4;
    border-radius: 12px;
    background: #f9fbfc;
    color: #28363d;
    text-decoration: none;
}

.report-404-related-grid a:hover,
.report-404-related-grid a:focus-visible {
    border-color: #3a7380;
    background: #eef5f6;
    color: #1d4851;
    outline: 3px solid rgba(58, 115, 128, 0.2);
    outline-offset: 2px;
}

.report-404-related-grid strong {
    margin-bottom: 6px;
    color: #2a616c;
}

.report-404-related-grid span {
    color: #526369;
}

.report-404-back-link {
    margin-top: 24px;
    text-align: right;
}

@media (max-width: 1100px) {
    .report-404-product-grid {
        grid-template-columns: 1fr;
    }

    .report-404-product-card {
        min-height: 0;
    }

    .report-404-cta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .report-404-lead,
    .report-404-overview,
    .report-404-toc,
    .report-404-check-box,
    .report-404-cta {
        padding: 20px;
    }

    .report-404-toc ol {
        columns: 1;
    }

    .report-404-point-grid,
    .report-404-related-grid {
        grid-template-columns: 1fr;
    }

    .report-404-step-list li {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 18px;
    }

    .report-404-step-number {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .report-404-table {
        min-width: 680px;
    }

    .report-404-back-link {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .report-404-hero {
        border-radius: 9px;
    }

    .report-404-lead,
    .report-404-overview,
    .report-404-toc,
    .report-404-note,
    .report-404-check-box,
    .report-404-cta {
        padding: 17px;
    }

    .report-404-step-list li {
        grid-template-columns: 1fr;
    }
}
