@charset "utf-8";

/* =========================================================
   相続のお手続き（souzoku.css）
   ブレークポイント：
     〜768px … スマートフォン（関係図の縮小・かんたん検索を縦積み・
               書類リスト/ダウンロード/提携先を1カラムに）
   ========================================================= */

:root {
    --green: #15a648;
    --green-band: #fbffef;
    --title-band: #f4fcec;
    --green-dk: #1e3d22;
    --ink: #333;
    --sub: #9b9b9b;
}


/* ---------------------------------------------------------
   A. 相続人関係図（被相続人 → 配偶者／第1〜3順位）
   --------------------------------------------------------- */
.heir-diagram {
    margin-top: 16px;
    margin-bottom: 30px;
    padding: 40px;
    background: #fff;
    border: 1px solid var(--green);
    border-radius: 14px;
}

/* 図内のインラインSVGアイコンは親の枠いっぱいに表示 */
.hn-ic svg,
.hs-ic svg,
.heir-tier-ic svg,
.hd-ic svg,
.dl-ft-ic svg {
    width: 100%;
    height: 100%;
}

/* 被相続人ノード（図の起点） */
.heir-root-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.heir-node-deceased {
    padding: 14px 28px;
    background: #525c60;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    color: #fff;
    text-align: center;
}

.heir-node-deceased .hn-ic {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto 6px;
    color: #fff;
}

.heir-node-deceased .hn-t {
    font-size: 15px;
    font-weight: 700;
}

.heir-node-deceased .hn-s {
    margin-top: 2px;
    font-size: 11.5px;
    opacity: .85;
}

/* 配偶者・順位ラベルへの分岐線（SVG） */
.heir-connector-svg {
    display: block;
    width: 400px;
    max-width: 100%;
    height: 56px;
    margin: 0 auto;
}

.heir-branch-row {
    display: flex;
    justify-content: center;
}

.heir-branch-col {
    box-sizing: border-box;
    width: 200px;
    max-width: 50%;
    padding: 0 10px;
}

.heir-spouse {
    padding: 14px 16px;
    background: var(--green);
    border: 1.5px solid var(--green);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.heir-spouse .hs-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 12px;
    background: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--green-dk);
}

.heir-spouse .hs-ic {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0 auto 4px;
    color: #fff;
}

.heir-spouse span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, .92);
}

.heir-tree-label {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 16px 18px;
    background: #fff;
    border: 1.5px solid var(--green);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--green-dk);
    text-align: center;
}

/* 優先順位ツリー（第1〜3順位）
   連結線は間の要素（connector／daishu）側に描き、代襲カードへは横枝を伸ばす
   縦線の位置 = margin-left − 線のleft = バッジ中心（PC：98 − 61 = 37 ≒ 74 / 2） */
.heir-tiers {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding-top: 8px;
}

.heir-tier {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 0;
}

.heir-tier-badge {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    background: var(--green);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    text-align: center;
}

.heir-tier-badge b {
    font-size: 20px;
}

.heir-tier-body {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #c8e6c8;
    border-radius: 10px;
}

.heir-tier-ic {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    color: var(--green);
}

.heir-tier-txt {
    flex: 1;
    min-width: 0;
}

.heir-tier h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.heir-tier p {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.heir-tier-connector {
    position: relative;
    margin-left: 98px;
    padding: 8px 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #5c8a3a;
}

.heir-tier-connector::before {
    content: "";
    position: absolute;
    top: -16px;
    bottom: -16px;
    left: -61px;
    width: 2px;
    background: #b7d9a0;
}

/* 代襲相続の枝（順位の下にぶら下がるサブカード。幹から横枝で接続） */
.heir-daishu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 98px;
    padding: 8px 0;
}

.heir-daishu::before {
    content: "";
    position: absolute;
    top: -16px;
    bottom: -16px;
    left: -61px;
    width: 2px;
    background: #b7d9a0;
}

.heir-daishu:last-child::before {
    bottom: auto;
    height: calc(50% + 16px);
}

.heir-daishu::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -61px;
    width: 61px;
    height: 2px;
    background: #b7d9a0;
}

.heir-daishu .hd-pill {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    padding: 5px 14px;
    background: #fff;
    border: 1.5px solid var(--green);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--green-dk);
}

.heir-daishu .hd-card {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--green-band);
    border: 1px solid #c8e6c8;
    border-radius: 10px;
}

.heir-daishu .hd-ic {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    color: var(--green);
}

.heir-daishu .hd-t {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.heir-daishu .hd-d {
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #555;
}

.heir-diagram-note {
    margin-top: 30px;
    padding: 14px 18px;
    background: #f7f8f9;
    border-left: 3px solid #9ca3af;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    line-height: 1.8;
    color: #4b5563;
}


/* ---------------------------------------------------------
   B. 相続人かんたん検索
   --------------------------------------------------------- */
.csim {
    margin-top: 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--title-band), var(--green-band));
    border: 1px solid var(--green);
    border-radius: 14px;
}

.csim-body {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.csim-steps,
.csim-result-col {
    flex: 1 1 50%;
    min-width: 0;
}

.csim-step {
    margin-top: 24px;
}

.csim-step:first-child {
    margin-top: 0;
}

.csim-lab {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--green-dk);
}

.csim-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.csim-chip {
    padding: 10px 20px;
    background: #fff;
    border: 1.5px solid #c8e6c8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: .15s;
}

.csim-chip:hover {
    border-color: var(--green);
}

.csim-chip.on {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.csim-empty {
    font-size: 14px;
    color: var(--sub);
}

.csim-result {
    margin-top: 0;
    padding: 24px 26px;
    background: #fff;
    border: 1px solid #c8e6c8;
    border-radius: 12px;
}

.csim-result-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--green-band);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
}

.csim-result-title {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: #333;
}

/* 結果の人型アイコン（JSで挿入） */
.heir-result-icons {
    display: flex;
    gap: 16px;
    margin-top: 14px;
}

.heir-result-icons:empty {
    display: none;
}

.heir-result-icons .hri {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--green-dk);
}

.heir-result-icons .hri svg {
    width: 30px;
    height: 30px;
    color: var(--green);
}

.csim-note {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.csim-note-lab {
    font-size: 14px;
    font-weight: 700;
    color: #b4444c;
}

.csim-note-list {
    margin-top: 6px;
    padding-left: 1.2em;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.csim-reset {
    display: inline-block;
    margin-top: 18px;
    padding: 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--green);
    text-decoration: underline;
    cursor: pointer;
}


/* ---------------------------------------------------------
   C. 必要書類（ケース選択・入手先凡例・チェックリスト）
   --------------------------------------------------------- */
.csim-table-wrap {
    margin-top: 8px;
}

.doc-case-lab {
    margin: 18px 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--green-dk);
}

.doc-case {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.doc-case button {
    padding: 14px 10px;
    background: #fff;
    border: 1.5px solid #c8e6c8;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
    transition: .15s;
}

.doc-case button:hover {
    border-color: var(--green);
}

.doc-case button.on {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.doc-default-note {
    margin: 4px 0 14px;
    font-size: 12.5px;
    color: var(--sub);
}

.doc-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: #555;
}

.doc-hint {
    margin-top: 8px;
    font-size: 12.5px;
    color: #6b7280;
}

/* ケースごとのブロック */
.doc-pattern.hide {
    display: none;
}

.doc-pattern-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 36px 0 4px;
}

.csim-table-cat {
    margin: 36px 0 4px;
    padding-left: 2px;
    font-size: 19px;
    font-weight: 700;
    color: var(--green-dk);
}

.csim-table-cat:first-child {
    margin-top: 8px;
}

.doc-pattern-head .csim-table-cat {
    margin: 0;
}

.doc-print-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 1.5px solid #c8e6c8;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
}

.doc-print-btn:hover {
    border-color: var(--green);
    color: var(--green-dk);
}

.doc-print-btn svg {
    width: 15px;
    height: 15px;
}

.doc-sum {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.doc-sum span {
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
}

.doc-sum .doc-sum-n {
    background: var(--green);
    color: #fff;
}

.doc-sum .doc-sum-note {
    background: #eaf9ef;
    font-weight: 600;
    color: var(--green-dk);
}

/* 書類リスト（長文注記が多いため表ではなくカード風の縦積み） */
.doc-list {
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid #c8e6c8;
    border-radius: 12px;
}

.doc-item {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 22px 16px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background .15s;
}

.doc-list .doc-item:last-child {
    border-bottom: none;
}

.doc-item.checked {
    background: #f7fcf2;
}

.doc-item-no {
    display: flex;
    flex: 0 0 auto;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    background: var(--green);
    border-radius: 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
}

.doc-item-body {
    flex: 1;
    min-width: 0;
}

/* 書類名（先頭にチェックボックス風の枠） */
.doc-item-name {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.6;
    color: #333;
}

.doc-item-name::before {
    content: "";
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 19px;
    height: 19px;
    margin-top: 3px;
    background: #fff;
    border: 2px solid #c8e6c8;
    border-radius: 5px;
}

.doc-item.checked .doc-item-name::before {
    background-color: var(--green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23fff' d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 11px;
    border-color: var(--green);
}

.doc-item-note {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.85;
    color: #555;
}

.doc-item-dl {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    text-decoration: underline;
}

/* 文中に続けて置く場合 */
.doc-item-dl.doc-item-dl--inline {
    margin-top: 0;
    margin-left: 8px;
}

/* 入手先バッジ */
.doc-item-src {
    flex: 0 0 auto;
    align-self: flex-start;
    margin-top: 1px;
    padding: 6px 16px;
    background: var(--green-band);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--green-dk);
    white-space: nowrap;
}

.src-yakuba {
    background: #e8f1fa;
    color: #2c6ea5;
}

.src-saiban {
    background: #f1ecfa;
    color: #6b4fa0;
}

.src-kinko {
    background: var(--green-band);
    border: 1px solid #c8e6c8;
    color: var(--green-dk);
}

.src-kyaku {
    background: #fff3e3;
    color: #b45309;
}

.src-houmukyoku {
    background: #e3f6f5;
    color: #0e7c74;
}

/* 1項目に複数書類がある場合（いずれか） */
.doc-subitem {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.doc-subitem + .doc-subitem {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e5e7eb;
}

.doc-subitem .doc-item-name {
    margin: 0;
}

.doc-subitem .doc-item-note {
    margin-top: 6px;
}

/* その他のケース */
.doc-other-box {
    margin-top: 32px;
    padding: 22px 26px;
    background: #f9fafb;
    border-radius: 10px;
}

.doc-other-box h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.doc-other-box dl {
    font-size: 14px;
    line-height: 1.9;
    color: #333;
}

.doc-other-box dt {
    margin-top: 12px;
    font-weight: 700;
}

.doc-other-box dt:first-child {
    margin-top: 0;
}

.doc-other-box dd {
    margin-left: 1em;
}

.doc-other-box .doc-other-note {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.8;
    color: #4b5563;
}

.doc-table-note {
    margin: 12px 2px 0;
    font-size: 13.5px;
    line-height: 1.8;
    color: #4b5563;
}

/* 印刷：対象ケースの複製（#print-clone）だけを出力 */
@media print {
    body > *:not(#print-clone) {
        display: none !important;
    }

    #print-clone {
        display: block !important;
        padding: 20px;
    }

    .doc-print-btn {
        display: none;
    }
}


/* ---------------------------------------------------------
   D. 当金庫所定の書類ダウンロード
   --------------------------------------------------------- */
.doc-dl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 14px;
}

.doc-dl-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    border: 1px solid #c8e6c8;
    border-radius: 12px;
}

.doc-dl-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: #333;
}

.doc-dl-card p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.doc-dl-card > p:last-of-type {
    margin-bottom: 16px;
}

.doc-dl-card .doc-dl-note {
    font-size: 13px;
    color: #4b5563;
}

/* ファイル形式アイコン */
.dl-ft {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dl-ft-ic {
    flex: 0 0 auto;
    width: 28px;
    height: 36px;
}

.dl-ft-ic.pdf {
    color: #b3261e;
}

.dl-ft-note {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
}

/* ダウンロード／チラシボタン（共通デザイン） */
.doc-dl-btn,
.gaiyo-flyer-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 8px 0 20px;
    background: var(--green);
    border-radius: 40px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.doc-dl-btn {
    margin-top: auto;
}

.gaiyo-flyer-btn {
    margin-top: 14px;
}

.doc-dl-btn .a,
.gaiyo-flyer-btn .a {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
}

.doc-dl-btn .a svg,
.gaiyo-flyer-btn .a svg {
    width: 14px;
    height: 14px;
    color: var(--green);
}


/* ---------------------------------------------------------
   E. 提携先のご紹介（概要テーブル＋チラシ）
   --------------------------------------------------------- */
.gaiyo-flex {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
    margin-top: 20px;
    background-color: #fff;
}

.gaiyo-table .trow {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--green);
}

.gaiyo-table .trow:last-child {
    border-bottom: none;
}

.gaiyo-table .tlabel {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    width: 150px;
    padding: 16px 12px;
    background: var(--green-band);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.5;
    color: #000;
}

.gaiyo-table .tval {
    flex: 1;
    min-width: 0;
    padding: 16px 20px;
}

.gaiyo-table .tval ul {
    margin: 0;
    padding-left: 1.1em;
    font-size: 14px;
    line-height: 1.85;
    color: #333;
}

.gaiyo-table .tval li {
    margin-bottom: 4px;
}

.gaiyo-table .tval li:last-child {
    margin-bottom: 0;
}

/* 面談の流れ */
.mendan-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.mendan-step {
    padding: 8px 12px;
    background: #fff;
    border: 1.5px solid var(--green);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--green-dk);
    text-align: center;
}

.mendan-step small {
    font-size: 10.5px;
    font-weight: 400;
}

.mendan-step.fill {
    background: var(--green);
    color: #fff;
}

.mendan-arrow {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--green);
}

.mendan-note {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.6;
    color: #666;
}

/* チラシ */
.gaiyo-flyer-col {
    text-align: center;
}

.gaiyo-flyer-col h4 {
    text-align: left;
}

.gaiyo-flyer-photo {
    display: block;
    width: 100%;
    border: 1px solid #c8e6c8;
    border-radius: 8px;
}


/* ---------------------------------------------------------
   F. スマートフォン（〜768px）
   --------------------------------------------------------- */
@media (max-width: 768px) {

    /* 相続人関係図 */
    .heir-diagram {
        padding: 24px 14px;
    }

    .heir-node-deceased {
        padding: 10px 18px;
    }

    .heir-connector-svg {
        width: 280px;
        height: 48px;
    }

    .heir-branch-col {
        width: 140px;
        padding: 0 6px;
    }

    .heir-spouse,
    .heir-tree-label {
        padding: 12px 8px;
        font-size: 12px;
    }

    .heir-tiers {
        max-width: none;
    }

    .heir-tier {
        gap: 14px;
        padding: 12px 0;
    }

    .heir-tier-badge {
        width: 56px;
        height: 56px;
        font-size: 10.5px;
    }

    .heir-tier-badge b {
        font-size: 16px;
    }

    .heir-tier-body {
        gap: 10px;
        padding: 10px 12px;
    }

    .heir-tier-ic {
        width: 26px;
        height: 26px;
    }

    .heir-tier h4 {
        font-size: 14px;
    }

    .heir-tier p {
        font-size: 12.5px;
    }

    /* 縦線の位置 = 70 − 42 = 28（バッジ56pxの中心） */
    .heir-tier-connector {
        margin-left: 70px;
        font-size: 11.5px;
    }

    .heir-tier-connector::before {
        left: -42px;
    }

    .heir-daishu {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-left: 70px;
    }

    .heir-daishu::before {
        left: -42px;
    }

    .heir-daishu::after {
        left: -42px;
        width: 42px;
    }

    .heir-daishu .hd-card {
        box-sizing: border-box;
        width: 100%;
        padding: 10px 12px;
    }

    .heir-daishu .hd-ic {
        width: 22px;
        height: 22px;
    }

    /* かんたん検索：質問 → 結果の縦積み */
    .csim {
        margin-top: 16px;
        padding: 18px 16px;
    }

    .csim-body {
        flex-direction: column;
    }

    .csim-steps,
    .csim-result-col {
        flex: none;
        width: 100%;
    }

    .csim-step {
        margin-top: 18px;
    }

    .csim-lab {
        font-size: 14px;
    }

    .csim-chip {
        padding: 8px 14px;
        font-size: 13px;
    }

    .csim-result {
        margin-top: 18px;
        padding: 16px 18px;
    }

    .csim-result-title {
        font-size: 17px;
    }

    .heir-result-icons {
        gap: 10px;
    }

    .heir-result-icons .hri svg {
        width: 24px;
        height: 24px;
    }

    /* 必要書類 */
    .doc-case {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .doc-case button {
        padding: 10px 8px;
        font-size: 12px;
    }

    .doc-legend {
        font-size: 11.5px;
    }

    .doc-pattern-head {
        margin: 26px 0 4px;
    }

    .csim-table-cat {
        font-size: 15px;
    }

    .doc-print-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    .doc-sum span {
        padding: 4px 10px;
        font-size: 11px;
    }

    /* 書類カード：番号 → 書類名 → 入手先の縦積み */
    .doc-item {
        flex-direction: column;
        gap: 10px;
        padding: 16px 14px;
    }

    .doc-subitem {
        flex-direction: column;
        gap: 8px;
    }

    .doc-item-name {
        font-size: 15px;
    }

    .doc-item-note {
        font-size: 13px;
    }

    .doc-other-box {
        padding: 16px;
    }

    .doc-other-box h4 {
        font-size: 15px;
    }

    .doc-other-box dl {
        font-size: 13px;
    }

    /* 書類ダウンロード */
    .doc-dl-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .doc-dl-card {
        padding: 18px;
    }

    .dl-ft-ic {
        width: 24px;
        height: 30px;
    }

    /* 提携先のご紹介 */
    .gaiyo-flex {
        display: block;
        margin-top: 16px;
    }

    .gaiyo-table .tlabel {
        width: 120px;
        font-size: 13px;
    }

    .gaiyo-table .tval {
        padding: 14px 12px;
    }

    .gaiyo-table .tval ul {
        font-size: 13px;
    }

    .gaiyo-flyer-col {
        margin-top: 20px;
    }
}