section.content_area.white_bg.link_summary{
    margin-top: 20px;
}

.summary_head{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    height: 129px;
    padding-bottom: 33px;
}
.summary_head img{
    height: 100%;
    object-fit: cover; 
}


.summary_colmon {
    padding-bottom: 40px;
}
.summary_title{
    position: relative;
    font-size: 30px!important;
    margin-bottom: 18px;
    z-index: 2;
    padding: 0 10px;
    margin-right: 28px;
}
.summary_title::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 15px;
    background: #ffe760;
    bottom: 7px;
    left: 0;
    z-index: -1;
    transform: translateY(50%); /* 文字全体の中央に線を配置 */
}


.sub_title{
    width: 100%;
    margin-bottom: 0;
    height: 34px;
    font-size: 22px;
    margin-bottom: 13px;
    color: #000000!important;
}

.summary_p{
    font-size: 16px;
    color: rgb(51, 51, 51);
    line-height: 1;
}

.summary_ul{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.summary_li{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: calc(25% - 10px);
}
.summary_colmon.summary_female .summary_li {
    width: calc(33.33% - 10px); 
    height: 126px;
    object-fit: cover;
}
.summary_colmon.summary_male .summary_li {
    width: calc(50% - 10px); 
}



.summary_img{
    position: relative;
    display: inline-block; 
    border-radius: 0.5rem;
    overflow: hidden;
}
.summary_img:hover{
    opacity: 0.5;
}
.summary_li img{
    display: block;
    width: 100%;
}
.arrow{
    position: absolute; 
    top: 70%; 
    left: 88%;
    transform: translate(-50%, -50%); 
    width: 32px;
    height: 32px; 
    background-color: #ffd700; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center;
}
.bg_arrow {
    color: rgb(0, 0, 0); 
    font-size: 18px; 
    font-weight: bold; 
  }


.last_type{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 25px;
}
.last_type ul.summary_ul{
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}
.last_type li.summary_li{
    width: 100%;
}
a{
    text-decoration: none;
}
.last_type a{
    width: 100%;
}

.last_text{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 7px;
}
.arrow-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background-color: #ffd700; 
    color: #000000; 
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
  }

li.summary_li.last_link {
    border-bottom: 1px solid #898989;
}
li.summary_li.last_link:hover{
    opacity: 0.4;
}
h3.mini_box_caption.sub_title{
    color: #000000!important;
}



@media screen and (max-width: 640px){
    h2.caption.mincho.summary_title{
        width: auto!important;
    }
    .summary_title{
        padding: 0;
        margin-right: 0;
    }
    .marker_text{
        position: relative;
        padding: 0 10px;
    }
    .marker_text::before{
        content: "";
        position: absolute;
        width: 100%;
        height: 15px;
        background: #ffe760;
        bottom: 7px;
        left: 0;
        z-index: -1;
        transform: translateY(50%); /* 文字全体の中央に線を配置 */
    }
    .summary_ul{
        align-items: flex-start;
    }
    .summary_li{
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        width: calc(50% - 10px);
    }
    .summary_colmon.summary_female .summary_li {
        width: calc(50% - 10px); 
        height: auto;
    }
    .summary_colmon.summary_male .summary_li {
        width: calc(50% - 10px); 
    }
    .last_type{
        align-items: flex-start;
    }
    .mini_box_caption{
        height: 33px;
        line-height: 37px;
    }
    h3.mini_box_caption.sub_title.last_title{
        height: auto;
    }
}


@media screen and (min-width: 641px){
    h2.summary_title br{
        display: none;
    }
}