#candidate .title{
    margin-bottom: 24px;
}
#candidate .type{
    margin-bottom: 24px;
}
#candidate .type .btn{
    display: none;
}
#candidate .type ul{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
#candidate .type ul li{
    list-style: none;
    padding: 8px 12px;
    border-radius: 16px;
    color: #161719;
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    cursor: pointer;
    white-space: nowrap;
}
#candidate .type ul li.active{
    background: #2786A2;
    color: #fff;
}
#candidate .box{
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #2786A2;
    background: #E0EFF3;
}
#candidate .box > .city .btn{
    display: none;
}
#candidate .box > .city ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px 8px;
}
#candidate .box > .city ul li{
    list-style: none;
    padding: 8px 12px;
    border-radius: 16px;
    overflow: hidden;
    color:#161719;
    text-overflow: ellipsis;
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    cursor: pointer;
}
#candidate .box > .city ul li.active{
    background: #2786A2;
    color: #fff;
}
@media (max-width:767px) {
    #candidatePage section:first-child{
        padding-bottom: 24px;
    }
    #candidatePage section:nth-child(2){
        padding-top: 0;
    }
    #candidate .box{
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 16px;
        border-radius: 12px;
        overflow: visible;
    }
    #candidate .box > .city{
        position: relative;
    }
    #candidate .box > .city .btn{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 0;
        background: transparent;
        color: #161719;
        font-size: 16px;
        font-weight: 700;
        line-height: 32px;
        cursor: pointer;
        white-space: nowrap;
    }
    #candidate .box > .city .arraw{
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        background: url("../images/triangle.svg") no-repeat center;
        background-size: 16px 16px;
        transition: transform 0.3s;
    }
    #candidate .box > .city.open .arraw{
        transform: rotate(180deg);
    }
    #candidate .box > .city ul{
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        min-width: 100%;
        max-height: 240px;
        overflow-y: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(8, 27, 32, 0.12);
        z-index: 3;
    }
    #candidate .box > .city.open ul{
        display: block;
    }
    #candidate .box > .city ul li{
        padding: 8px 16px;
        border-radius: 0;
        overflow: visible;
        color: #081B20;
        font-size: 16px;
        font-weight: 500;
        line-height: 23px;
        text-align: center;
        white-space: nowrap;
    }
    #candidate .box > .city ul li.active{
        padding: 8px 16px;
        background: transparent;
        color: #2786A2;
    }
}

/* 市長候選人名單 */
#candidateList .mayor .list ul{
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
}
#candidateList .mayor .list > ul > li{
    display: flex;
    flex-direction: column;
    width: calc((100% - 48px) / 3);
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    border-radius: 16px;
}
#candidateList .mayor .number{
    color: #161719;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    color: #FFF;
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    background-color: #2786A2;
    padding: 8px;
    min-height: 32px;
}
#candidateList .mayor .person{
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #DDE1E6;
    margin-bottom: 16px;
}
#candidateList .mayor .person .pic{
    width: 30%;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    overflow: hidden;
}
#candidateList .mayor .person .pic img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
#candidateList .mayor .person .nameBox{
    width: 70%;
    min-width: 0;
}
#candidateList .mayor .person .party{
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
    font-size: 16px;
    font-weight: 500;
    line-height: 23px;
}
#candidateList .mayor .person .name{
    color: #000;
    font-size: 24px;
    font-weight: 700;
    line-height: 35px;
    letter-spacing: -0.48px;
    margin-bottom: 8px;
    word-break: break-all;
    overflow-wrap: anywhere;
}
#candidateList .mayor .person .party .img{
    width: 24px;
    height: 24px;
    overflow: hidden;
    border-radius: 50%;
    overflow: hidden;
}
#candidateList .mayor .person .party .img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#candidateList .mayor .info{
    flex: 1;
    display: flex;
    flex-direction: column;
    padding:0 16px;
}
#candidateList .mayor .info .item{
    color: #000;
    font-size: 16px;
    font-weight: 500;
    line-height: 23px;
    margin-bottom: 16px;
}
#candidateList .mayor .info .item .label{
    margin-bottom: 2px;
}
#candidateList .mayor .info .item.fill:has(.empty){
    flex: 1;
    display: flex;
    flex-direction: column;
}
#candidateList .mayor .info .item.fill:has(.empty) .newsList{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
#candidateList .mayor .info .newsList .empty{
    width: 100%;
    margin: 0;
    color: #8d8d8d;
    text-align: center;
}
#candidateList .mayor .info .item .value{
    list-style: disc;
    list-style-position: outside;
    overflow: unset;
}
#candidateList .mayor .info .newsList ul{
    display: block;
    padding-left: 20px;
}
#candidateList .mayor .info .newsList ul li{
    width: 100%;
    list-style: disc;
    list-style-position: outside;
    overflow: unset;    
}
#candidateList .mayor .info .newsList ul li p{
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
#candidateList .mayor .info .newsList ul li a{
    color: #000;
    font-size: 16px;
    font-weight: 500;
    line-height: 23px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
#candidateList .mayor .info .newsList ul li a:hover{
    color: rgba(0, 0, 0, 0.5);
}
#candidateList .mayor .more{
    display: block;
    color: #2786A2;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 23px;
    background-color: #fff;
    padding: 8px;
    border-top: 1px solid #DDE1E6;
    margin-top: auto;
    cursor: pointer;
}
#candidateList .mayor .more:hover{
    color: #175061;
}
#candidateList .council .title{
    margin-bottom: 8px;
}
#candidateList .council .subArea{
    margin: 0 0 24px;
    color: #2786A2;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    text-align: center;
    word-break: break-word;
}
#candidateList .council .area{
    display: none;
}
#candidateList .council .item{
    display: none;
}
#candidateList .council .item.act{
    display: block;
}
#candidateList .council .note,
#candidateList .mayor .note{
    margin: 0;
    color: #081B20;
    font-size: 12px;
    font-weight: 500;
    line-height: 17px;
    text-align: right;
}
#candidateList .mayor .note{
    margin-top: 24px;
}
#candidate .areaBoxSelect{
    display: none;
}
#candidatePage.is-council .areaBoxSelect{
    display: flex;
    justify-content: center;
    width: 100%;
}
#candidatePage.is-council .box{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0;
    border: 0;
    background: transparent;
}
#candidatePage.is-council .box > .city{
    display: none;
}
#candidatePage.is-council section:first-child{
    padding-bottom: 0;
}
#candidatePage.is-council section:nth-child(2){
    padding-top: 48px;
}
#candidate .areaBoxSelect .inner{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    width: max-content;
    max-width: 100%;
    padding: 16px 20px;
    box-sizing: border-box;
    background-color: #E0EFF3;
    border: 1px solid #2786A2;
    border-radius: 16px;
}
#candidate .box .areaBoxSelect .select.city{
    margin: 0;
    padding: 0;
    border: 0;
}
#candidate .areaBoxSelect .select{
    position: relative;
}
#candidate .areaBoxSelect .select.district:not(:has(.txt:not(:empty))){
    display: none;
}
#candidate .areaBoxSelect .btn{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #161719;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    cursor: pointer;
    white-space: nowrap;
}
#candidate .areaBoxSelect .district .btn{
    gap: 10px;
}
#candidate .areaBoxSelect .arraw{
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: url("../images/triangle.svg") no-repeat center;
    background-size: 16px 16px;
    transition: transform 0.3s;
}
#candidate .areaBoxSelect .select.open .arraw{
    transform: rotate(180deg);
}
#candidate .box .areaBoxSelect ul{
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 100%;
    max-height: 240px;
    overflow-y: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 0;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(8, 27, 32, 0.12);
    z-index: 3;
}
#candidate .box .areaBoxSelect .select.open ul{
    display: block;
}
#candidate .box .areaBoxSelect li{
    padding: 8px 16px;
    border-radius: 0;
    background: transparent;
    color: #081B20;
    font-size: 16px;
    font-weight: 500;
    line-height: 23px;
    white-space: nowrap;
    cursor: pointer;
    text-align: center;
}
#candidate .box .areaBoxSelect li.act,
#candidate .box .areaBoxSelect li:hover{
    background: transparent;
    color: #2786A2;
}
#candidateList .council .list ul{
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
}
#candidateList .council .list > ul > li{
    display: flex;
    flex-direction: column; 
    width: calc((100% - 72px) / 4);
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    border-radius: 16px;    
}
#candidateList .council .item{
    margin-bottom: 48px;
}
#candidateList .council .list > ul > li .city{
    color: #FFF;
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    background-color: #2786A2;
    padding: 8px;
    min-height: 32px;
    text-align: center;
}
#candidateList .council .list .person{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    flex: 1;
}
#candidateList .council .list .person .pic{
    width: 82px;
    height: 82px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
    overflow: hidden;
}
#candidateList .council .list .person .pic img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#candidateList .council .list .person .nameBox{
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 98px);
}
#candidateList .council .list .person .nameBox .partyName{
    color: #000;
    font-size: 16px;
    font-weight: 500;
    line-height: 23px;
}
#candidateList .council .list .person .nameBox .name{
    color: #000;
    font-size: 24px;
    font-weight: 700;
    line-height: 35px;
    letter-spacing: -0.48px;
    margin-bottom: 8px;
    word-break: break-all;
    overflow-wrap: anywhere;
}
#candidateList .council .list .person .more{
    color: #2786A2;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}
#candidateList .council .list .person .more:hover{
    color: #175061;
}
@media (max-width:1023px) {
    #candidateList .mayor .list > ul > li{
        width: calc((100% - 24px) / 2);
    }
    #candidateList .council .list > ul > li{
        width: calc((100% - 24px) / 2);
    }
}
@media (max-width:767px) {
    #candidateList .council .note,
    #candidateList .mayor .note{
        text-align: left;
    }
    #candidateList .council .item{
        margin-bottom: 24px;
    }
    #candidateList .mayor .list > ul > li{
        width: 100%;
    }
    #candidateList .council .list > ul > li{
        width: 100%;
    }
}
/* 市長候選人名單 ed*/

/* 議員候選人名單 */
#candidateList .council{
    display: none;
}
@media (max-width:767px) {
    #candidatePage.is-council section:first-child{
        padding-bottom: 24px;
    }
    #candidatePage.is-council section:nth-child(2){
        padding-top: 0;
    }
    #candidate .areaBoxSelect .inner{
        width: 100%;
        gap: 12px;
        padding: 8px 20px;
        border-radius: 12px;
    }
    #candidate .areaBoxSelect .btn,
    #candidate .areaBoxSelect .district .btn{
        gap: 4px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        font-size: 16px;
        line-height: 32px;
    }
    #candidate .box .areaBoxSelect ul{
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 50%;
        transform: translateX(-50%);
        min-width: 100%;
        max-height: 240px;
        overflow-y: auto;
        flex-wrap: nowrap;
        gap: 0;
        padding: 8px 0;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(8, 27, 32, 0.12);
    }
    #candidate .box .areaBoxSelect .select.open ul{
        display: block;
    }
    #candidate .box .areaBoxSelect li{
        padding: 8px 16px;
        border-radius: 0;
        color: #081B20;
        font-size: 16px;
        font-weight: 500;
        line-height: 23px;
        background: transparent;
    }
    #candidate .box .areaBoxSelect li.act{
        background: transparent;
        color: #2786A2;
    }
    #candidate .areaBoxSelect li:hover{
        color: #081B20;
    }
    #candidate .areaBoxSelect li.act,
    #candidate .areaBoxSelect li.act:hover{
        color: #2786A2;
    }
    #candidateList .council .title{
        display: none;
    }
}

/* 議員候選人名單 ed*/