@charset "UTF-8";

.cell {
    cursor: pointer;
}

#output_childlookbestparents_main table,
#output_childlookbestparents_sub table,
#output_child_parentslook_bestgrand_main table,
#output_child_parentslook_bestgrand_sub table,
#outputParents2 table,
.firstlooktable {
    width: 100%;
    border-collapse: collapse;
}

@media only screen and (max-width: 768px) {

    #output_childlookbestparents_main table,
    #output_childlookbestparents_sub table,
    #output_child_parentslook_bestgrand_main table,
    #output_child_parentslook_bestgrand_sub table,
    #outputParents2 table,
    .firstlooktable {
        width: 100%;
        border-collapse: collapse;
    }

}

#output_childlookbestparents_main td,
#output_childlookbestparents_sub td,
#output_child_parentslook_bestgrand_main td,
#output_child_parentslook_bestgrand_sub td,
#outputParents2 td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    width: 20%;
}

@media only screen and (max-width: 768px) {

    #output_childlookbestparents_main td,
    #output_childlookbestparents_sub td,
    #output_child_parentslook_bestgrand_main td,
    #output_child_parentslook_bestgrand_sub td,
    #outputParents2 td {
        border: 1px solid #ddd;
        padding: 0.5rem;
        text-align: center;
        width: 20%;
    }
}

#output_childlookbestparents_main img,
#output_childlookbestparents_sub img,
#output_child_parentslook_bestgrand_main img,
#output_child_parentslook_bestgrand_sub img,
#outputParents2 img {
    max-width: 80px;
    display: block;
    margin: 0 auto;
}

@media only screen and (max-width: 768px) {

    #output_childlookbestparents_main img,
    #output_childlookbestparents_sub img,
    #output_child_parentslook_bestgrand_main img,
    #output_child_parentslook_bestgrand_sub img,
    #outputParents2 img {
        max-width: 5em;
        display: block;
        margin: 0 auto;
    }

}

.column {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.column img {
    width: 60px;
}

.info {
    margin-bottom: 10%;
    text-align: center;
}

@media all and (min-width: 500px) {
    .wrapper {
        display: flex;
    }
}

/* トルグスイッチ　*/
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 20px;
    /* スライダーの幅を広げます */
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #44D62C;
}

input:checked+.slider:before {
    transform: translateX(22px);
    /* スライダーの位置を調整します */
}

.on-text,
.off-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: white;
    font-weight: bold;
}

.on-text {
    left: 5px;
}

.off-text {
    right: 5px;
}
/* 母親結果出力 */
#combined_matchcalc {
    display: flex;
    flex-direction: column;
}

.result-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    vertical-align: middle;
    font-size: 1.0rem;
}
@media only screen and (max-width: 768px) {
    .result-item {
        font-size: 1.5rem;
    }
}

.result-rank {
    margin-right: 10px;
    flex-shrink: 0;
    margin:auto;
    font-size: 1.2rem;
}
@media only screen and (max-width: 768px) {
    .result-rank {
        font-size: 1.5rem;
    }
}

.result-item img {
    margin-right: 10px;
    flex-shrink: 0;
}

.result-text {
    word-break: break-word;
    flex: 1;
    margin:auto;
}