    /* 結果アイテムを横に並べるためのスタイル */
    #results_father,
    #results_mother,
    #results_grandparents {
        display: flex;
        margin: auto;
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
        /* 中央揃え */
    }

    .result-item_father,
    .result-item_mother,
    .result-item_grandparents {
        width: calc(18% - 10px);
        /* 20%幅で、間隔を引く */
        text-align: center;
        /* 中央 */
        border: 1px solid #ccc;
        /* ランク表示のための境界線 */
        padding: 10px;
        /* アイテム内の余白 */
    }

    .rank {
        font-weight: bold;
        /* ランクの文字を太字に */
        color: #007bff;
        /* ランクの文字色を青に */
    }

    .tab_area {
        max-width: 1000px;
        width: 100%;
        flex-wrap: wrap;
        display: flex;
    }

    .tab_class {
        width: 50%;
        height: 50px;
        line-height: 50px;
        font-size: 16px;
        font-weight: bold;
        text-align: center;
        display: block;
        float: left;
        order: -1;
        background-color: var(--main-bg-color);
        color: var(--main-text-color);
        border: var(--main-text-color) solid 1px;
        box-sizing: border-box;
        margin-right: 0px;
    }
    .tab_class_floating {
        width: 33.33%;
        height: 50px;
        line-height: 50px;
        font-size: 16px;
        font-weight: bold;
        text-align: center;
        display: block;
        float: left;
        order: -1;
        background-color: var(--main-bg-color);
        color: var(--main-text-color);
        border: var(--main-text-color) solid 1px;
        box-sizing: border-box;
        margin-right: 0px;
    }

    @media only screen and (max-width: 768px) {
        .tab_class {
            width: 50%;
            font-size: 1.4rem;
        }
        .tab_class_floating {
            width: 33.33%;
            font-size: 1.4rem;
        }
    }

    .tab_class:hover {
        background-color: #e0e0e0;
    }
    .tab_class_floating:hover {
        background-color: #e0e0e0;
    }
    
    input[type="radio"] {
        display: none;
    }
    
    input[type="radio"]:checked + .tab_class {
        background-color: var(--secondary-bg-color);
        color: var(--secondary-text-color);
    }
    input[type="radio"]:checked + .tab_class_floating {
        background-color: var(--secondary-bg-color);
        color: var(--secondary-text-color);
    }
    
    .content_class {
        display: none;
        width: 100%;
        padding: 30px;
    }

    @media only screen and (max-width: 768px) {
        .content_class {
            padding: 10px 0px 0px 0px;
        }
    }



    input:checked+.tab_class+.content_class {
        display: block;
    }
    input:checked+.tab_class_floating+.content_class {
        display: block;
    }

    input:checked+.tab_single+.content_class {
        display: block;
    }

    input[name=tab_name] {
        display: none;
    }

    .output-container {
        display: grid;
        grid-template-columns: 1fr 2fr;
        /* 左側1列、右側2列 */
        gap: 10px;
        max-width: 1000px;
        width: 100%;
    }

    .output-container .output-item {
        padding: 10px;
        display: flex;
        flex-direction: column;
        /* 縦並びにする */
        justify-content: center;
        align-items: center;
    }

    .output-container .table-container {
        display: flex;
        flex-direction: row;
        /* テーブルを横並びに配置 */
        gap: 10px;
        height: 100%;
        align-items: center;
        width: 100%;
        /* 右側全体の幅を100%に設定 */
    }

    .output-container .table-row {
        flex: 1;
        /* 各テーブル行を均等に伸縮 */
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 50%;
        /* 右側テーブルの幅を50%に設定 */
    }

    .output-container .table-cell {
        padding: 5px;
        margin-bottom: 5px;
    }

    @media (max-width: 768px) {
        .output-container {
            grid-template-columns: 1fr;
            /* スマートフォンサイズでは1列にする */
        }

        .output-container .table-row {
            flex: auto;
            /* テーブル行を均等に伸縮 */
            width: 100%;
        }

        .table-row img {
            width: 50px;
        }

        .output-container .table-container {
            width: 95%;
        }
        .separate_fix {
            border-bottom: #44D62C 1px dashed;
        }
    }
    .separate_fix {
            border-right: #44D62C 1px dashed;
        }
    