@charset "utf-8";

/* ==========================================================================
   条文・実務メモ 汎用共通スタイル（クリーンアップ版）
   ========================================================================== */

/* 1. テキスト装飾関連 */
.msb-sub-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 16px;
    text-align: justify;
}
.msb-sub-text.alert {
    color: #e11d48;
    font-weight: 600;
}
.msb-sub-text.summary-bold {
    font-weight: 700;
    margin-top: 24px;
    color: #0f172a;
}
.msb-sub-text.note-sub {
    padding-left: 24px;
    color: #64748b;
    font-size: 0.9rem;
}
.law-link {
    color: #3a6b73;
    font-weight: 700;
    text-decoration: underline;
}
.law-link:hover {
    color: #2d5259;
    text-decoration: none;
}
.law-text-underline {
    font-weight: 600;
    border-bottom: 1px solid #1e293b;
}

/* 2. 条文カード（枠付き共通コンテナ） */
.law-card-box {
    margin: 28px 0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #f8fafc;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.law-card-header {
    background-color: #3a6b73;
    color: #ffffff;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.law-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}
.law-card-meta {
    font-size: 0.8rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.law-card-body {
    padding: 20px;
}

/* 3. 条文カード内の汎用テキスト・区切り線 */
.law-text-line {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #0f172a;
    margin-bottom: 12px;
    text-align: justify;
}
.law-article-num {
    font-weight: 700;
    color: #3a6b73;
    margin-right: 6px;
}
.law-hr-dashed {
    border: none;
    border-top: 1px dashed #cbd5e1;
    margin: 16px 0;
}

/* 4. 条文カード内の箇条書きリスト（ぶら下げインデント自動化） */
.law-ol-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 16px 0;
}
.law-ol-list > li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 10px;
    padding-left: 1.6em;
    text-indent: -1.6em;
}
.law-ol-list > li:last-child {
    margin-bottom: 0;
}
.law-sub-ol-list {
    list-style: none;
    padding-left: 1.6rem;
    margin: 6px 0 10px 0;
    text-indent: 0;
}
.law-sub-ol-list > li {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 4px;
    padding-left: 1.2em;
    text-indent: -1.2em;
}

/* 5. 解説・解釈固有のパーツ（カード内用） */
.law-term-subtitle {
    font-weight: 700;
    color: #475569;
    margin: 14px 0 8px 0;
    padding-left: 6px;
    border-left: 2px solid #475569;
    font-size: 0.95rem;
}
.law-term-omit {
    margin: 12px 0;
    color: #94a3b8;
    font-style: italic;
    font-size: 0.9rem;
}
.law-term-body {
    margin: 0;
    line-height: 1.7;
    text-align: justify;
    font-size: 0.95rem;
    color: #334155;
}

/* 6. 表（サンプル画像準拠スタイル） */
.law-table-caption {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    margin: 20px 0 8px 0;
}
.law-table-wrapper {
    margin-bottom: 20px;
    border: 1px solid #1e293b;
    overflow-x: auto;
    background-color: #ffffff;
}
.law-main-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 720px;
}
.law-main-table th {
    background-color: #1e293b;
    color: #ffffff;
    font-weight: 700;
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid #1e293b;
}
.law-main-table td {
    background-color: #ffffff;
    color: #334155;
    padding: 14px 16px;
    vertical-align: top;
    line-height: 1.6;
    text-align: justify;
    border-bottom: 1px solid #cbd5e1;
}
.law-main-table th:not(:last-child),
.law-main-table td:not(:last-child) {
    border-right: 1px solid #cbd5e1;
}
.law-main-table tr:last-child td {
    border-bottom: none;
}
.law-note-box {
    font-size: 0.85rem;
    color: #475569;
    background-color: #f8fafc;
    padding: 10px 16px;
    border-left: 4px solid #cbd5e1;
    margin: 12px 0 20px 0;
    line-height: 1.5;
}

/* 7. ハイライトマーカー */
.law-text-highlight-red {
    border-bottom: 2px solid #f0566e;
    font-weight: 700;
}
.law-text-bg-yellow {
    background-color: #fef08a;
    padding: 1px 3px;
    border-radius: 3px;
}
.law-text-strong-blue {
    color: #2563eb;
    font-weight: 700;
}