/* ==========================================
   /works/sample-report/ 専用スタイル
   common.cssのブランド変数（--color-gold / --color-gold-dark / --color-navy）のみ使用。
========================================== */

/* ---- 冒頭ノーティス（H1直下・目次より前。.works-noticeを拡大表示） ---- */
.sr-notice-hero {
    margin-top: 26px;
    margin-bottom: 32px !important;
    padding: 26px 30px;
    border-left-width: 4px;
}
.sr-notice-hero .works-notice-mark {
    width: 26px;
    height: 26px;
    font-size: 14px;
}
.sr-notice-hero p {
    font-size: 15.5px !important;
    line-height: 1.9;
}

/* ---- 目次 ---- */
.sr-toc {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sr-toc li {
    counter-increment: sr-toc;
    border-bottom: 1px solid #eee;
}
.sr-toc a {
    display: block;
    padding: 14px 4px;
    font-size: 14.5px;
    color: var(--color-navy);
    font-weight: 600;
}
.sr-toc a:hover {
    color: var(--color-gold-text, #7a5e1f);
}

/* ---- 各章 ---- */
.sr-chapter {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid #eee;
}
.sr-chapter:first-child {
    margin-top: 30px;
    padding-top: 0;
    border-top: none;
}
.sr-chapter h3 {
    font-size: 19px;
    color: var(--color-navy);
    margin-bottom: 14px;
    letter-spacing: 0.03em;
}
.sr-chapter p {
    font-size: 14.5px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 16px;
}
.sr-sample-caption {
    font-size: 12.5px;
    color: var(--color-gold-text, #7a5e1f);
    font-weight: 600;
    margin-bottom: 10px !important;
}

/* ---- サンプル表 ---- */
.sr-table-wrap {
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid #eee;
}
.sr-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 13px;
}
.sr-table th,
.sr-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: normal;
}
.sr-table th {
    background: var(--color-navy);
    color: #fff;
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 0.03em;
}
.sr-table tbody tr:nth-child(even) {
    background: #fafafa;
}
.sr-table tbody tr:last-child td {
    border-bottom: none;
}

/* 767px以下：横スクロール表を禁止し、行ごとのカード表示に切り替える（必須対応） */
@media screen and (max-width: 767px) {
    .sr-table-wrap {
        overflow-x: visible;
        border: none;
    }
    .sr-table,
    .sr-table thead,
    .sr-table tbody,
    .sr-table tr,
    .sr-table td {
        display: block;
        width: 100%;
    }
    .sr-table {
        min-width: 0;
    }
    .sr-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }
    .sr-table tbody tr {
        margin-bottom: 14px;
        background: #f9f9f9;
        border-left: 3px solid var(--color-gold);
        padding: 6px 16px;
    }
    .sr-table tbody tr:last-child {
        margin-bottom: 0;
    }
    .sr-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        text-align: right;
    }
    .sr-table tbody tr:last-child td:last-child {
        border-bottom: none;
    }
    .sr-table td::before {
        content: attr(data-label);
        flex: none;
        text-align: left;
        font-weight: 700;
        font-size: 12px;
        color: var(--color-navy);
        margin-right: 12px;
    }
}

/* ---- リスク優先度マトリクス（影響度×緊急度のカード群） ---- */
.sr-risk-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.sr-risk-card {
    background: #f9f9f9;
    border-left: 3px solid var(--color-gold-dark);
    padding: 22px 24px;
}
.sr-risk-card.sr-risk-priority-mid {
    border-left-color: #ccc;
}
.sr-risk-priority {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
}
.sr-risk-priority-high .sr-risk-priority {
    background: var(--color-navy);
    color: #fff;
}
.sr-risk-priority-mid .sr-risk-priority {
    background: transparent;
    border: 1.4px solid var(--color-gold-dark);
    color: var(--color-gold-text, #7a5e1f);
}
.sr-risk-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.7;
    margin-bottom: 14px;
}
.sr-risk-axes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.sr-axis {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.sr-axis-impact-high { background: rgba(31, 41, 55, 0.10); color: var(--color-navy); }
.sr-axis-impact-mid  { background: rgba(31, 41, 55, 0.05); color: #555; }
.sr-axis-urgency-high { background: rgba(201, 162, 75, 0.18); color: var(--color-gold-text, #7a5e1f); }
.sr-axis-urgency-mid  { background: rgba(201, 162, 75, 0.10); color: var(--color-gold-text, #7a5e1f); }
.sr-axis-urgency-low  { background: #f0f0f0; color: #777; }
.sr-risk-action {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
    margin: 0 !important;
}

@media screen and (max-width: 640px) {
    .sr-risk-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- 診断の進め方：4ステップ ---- */
.sr-flow {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.sr-flow li {
    background: #fcfbf9;
    padding: 24px 18px;
    border-left: 3px solid var(--color-gold);
}
.sr-flow-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}
.sr-flow-label {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 8px;
}
.sr-flow p {
    font-size: 12.8px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* ---- ご用意いただく資料 ---- */
.sr-materials {
    margin-top: 30px;
    background: #f9f9f9;
    border-left: 3px solid var(--color-navy);
    padding: 24px 28px;
}
.sr-materials h4 {
    font-size: 14.5px;
    color: var(--color-navy);
    margin-bottom: 12px;
}
.sr-materials ul {
    margin: 0 0 14px 1.2em;
    font-size: 13.5px;
    color: #555;
    line-height: 1.9;
}
.sr-materials-note {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
    margin: 0 !important;
    font-weight: 600;
}

.sr-hours {
    margin-top: 24px;
    font-size: 13.5px;
    color: #555;
}

/* ---- 納品形式 ---- */
.sr-delivery {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.sr-delivery div {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}
.sr-delivery dt {
    flex: none;
    width: 160px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-navy);
}
.sr-delivery dd {
    font-size: 14px;
    color: #555;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .sr-flow {
        grid-template-columns: 1fr 1fr;
    }
    .sr-delivery div {
        flex-direction: column;
        gap: 4px;
    }
    .sr-delivery dt {
        width: auto;
    }
}
@media screen and (max-width: 480px) {
    .sr-flow {
        grid-template-columns: 1fr;
    }
}
