@charset "utf-8";

/* -------------------------------------------------- */
/* COMMON */
/* -------------------------------------------------- */
#pageTtl {
    background-image: url(../img/sdgs_ttl_bg.png);
}

/* SDGsとは */
/* -------------------------------------------------- */
#sdgsInfo {
    margin-bottom: 50px;
    padding: 20px 0;
    position: relative;
}

#sdgsInfo {
    letter-spacing: .1em;
}

#sdgsInfoTtl {
    width: fit-content;
    padding: 5px 25px 8px;
    border-radius: 20px;
    background: linear-gradient(150deg, #079FE8 0%, #10459C 100%);
    color: #FFFFFF;
    font-size: 1.8rem;
    text-align: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
}

#sdgsInfoTxtBox {
    padding: 40px 25px 35px;
    background: #D9EEF9;
}

#sdgsInfoTxtBox p+p {
    margin-top: 15px;
}

/* -------------------------------------------------- */
/* 一覧ページ */
/* -------------------------------------------------- */

/* トップ */
/* -------------------------------------------------- */
#sdgsTopInner {
    width: 1000px;
    padding-bottom: 70px;
    letter-spacing: .1em;
}

#sdgsPoster {
    margin-bottom: 50px;
}

#sdgsPoster img {
    width: 100%;
    margin-bottom: 30px;
}

#sdgsPoster figcaption {
    font-size: 1.6rem;
}

#sdgsCatList {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    column-gap: 4%;
    row-gap: 30px;
}

.sdgsCatItem {
    width: calc(96% / 2);
    padding: 25px 20px;
    background-size: cover;
    background-position: center;
}

#catEducation {
    background: #2A9ADA;
}

#catCommunity {
    background: #2A9ADA;
}

#catTraffic {
    background: #2A9ADA;
}

.sdgsCatTtl {
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: .15em;
    text-align: left;
    color: #FFFFFF;
    position: relative;
}

.sdgsCatTtl::before {
    display: block;
    content: "";
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(150deg, #079FE8 0%, #10459C 100%);
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.sdgsCatTtl::after {
    display: block;
    content: "";
    width: 8px;
    height: 8px;
    border-left: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    position: absolute;
    top: 10px;
    right: 12px;
    transform: rotate(-45deg);
}

.sdgsCatTxt {
    padding: 20px;
    background: rgba(255, 255, 255, 1);
}

/* 一覧共通 */
/* -------------------------------------------------- */
.sdgsSection {
    padding-top: 200px;
    background-repeat: no-repeat;
    background-size: 100% auto;
}

.sdgsTtlWrap {
    position: relative;
}

.sdgsSection:nth-child(even) .sdgsTtlWrap {
    width: 100%;
    background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 50.1%, transparent 50%, transparent 100%);
}

.sdgsSection:nth-child(odd) .sdgsTtlWrap {
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, transparent 50%, #FFFFFF 50%, #FFFFFF 100%);
}

.sdgsTtlInner {
    width: 1000px;
    padding-top: 50px;
}

.sdgsTtlBox {
    width: 50%;
}

.sdgsSection:nth-child(even) .sdgsTtlBox {
    padding-right: 50px;
}

.sdgsSection:nth-child(odd) .sdgsTtlBox {
    margin-left: auto;
    padding-left: 50px;
}

.sdgsSectionTtl {
    text-align: left;
}

.sdgsSectionCatch {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.sdgsIconBox {
    width: 50%;
    background: #FFFFFF;
    column-gap: 1%;
    position: absolute;
    bottom: 0;
}

.sdgsSection:nth-child(even) .sdgsIconBox {
    padding: 20px 30px 0 0;
    right: 0;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}

.sdgsSection:nth-child(odd) .sdgsIconBox {
    padding: 20px 0 0 30px;
    left: 0;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.sdgsIconBox img {
    width: calc(93% / 8);
}

.sdgsNewsWrap {
    padding-top: 40px;
    padding-bottom: 120px;
    background: #FFFFFF;
}

.sdgsNewsInner {
    width: 1000px;
}

.sdgsNewsWrap .newsItem a {
    padding-right: 30px;
    position: relative;
}

.sdgsNewsWrap .newsItem a::after {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    border-top: 1px solid #0282C7;
    border-right: 1px solid #0282C7;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: rotate(45deg);
    transition: all .3s;
}

.sdgsNewsWrap .newsItem a:hover::after,
.sdgsNewsWrap .newsItem a:active::after {
    right: 0;
}

/* 子ども・教育 */
/* -------------------------------------------------- */
#education {
    background-image: url(../img/sdgs_back01.jpg);
}

/* 地域・社会 */
/* -------------------------------------------------- */
#community {
    background-image: url(../img/sdgs_back02.jpg);
}

/* 交通安全 */
/* -------------------------------------------------- */
#traffic {
    background-image: url(../img/sdgs_back03.jpg);
}

/* -------------------------------------------------- */
/* 詳細ページ */
/* -------------------------------------------------- */

/* テーブル */
#sdgsTable {
    width: 100%;
    margin-bottom: 50px;
}

#sdgsTable tr {
    border: 1px solid #E3E3E3;
    font-size: 1.4rem;
    letter-spacing: .1em;
}

#sdgsTable th {
    width: 150px;
    padding: 15px 20px;
    font-weight: bold;
    background: #0282C7;
    color: #FFFFFF;
}

#sdgsTable td {
    width: calc(100% - 150px);
    padding: 15px 20px;
}

/* 17の目標 */
#sdgsGoal {
    margin-bottom: 50px;
}

#sdgsGoalList {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    column-gap: 4%;
    row-gap: 25px;
}

.sdgsGoalItem {
    width: 48%;
}

.sdgsGoalImgBox {
    width: 140px;
    column-gap: 2%;
}

.sdgsGoalTxtBox {
    width: calc(98% - 140px);
    letter-spacing: .1em;
}

.sdgsGoalTtl {
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: bold;
}

/* アコーディオン */
.accordion #sdgsInfoTxtBox {
    display: none;
}

.accordion #sdgsInfoTtl::after {
    display: inline-block;
    content: "";
    width: 5px;
    height: 5px;
    margin-left: 10px;
    border-top: 1px solid #FFFFFF;
    border-right: 1px solid #FFFFFF;
    transform: rotate(135deg);
    vertical-align: middle;
}

.accordion #sdgsInfoTtl.close::after {
    transform: rotate(-45deg);
}

/* スライダー */
#sdgsSlider {
    margin-bottom: 50px;
}

#sdgsSliderMain {
    margin-bottom: 14px;
}

.sdgsSliderMainImg img {
    margin: auto;
}

.sdgsSliderThumbImg {
    padding: 0 7px;
    cursor: pointer;
}

/* フリースペース */
#free {
    letter-spacing: .1em;
}

#free p+p {
    margin-top: 15px;
}

/* -------------------------------------------------- */
/* IE対応 */
/* -------------------------------------------------- */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {}

/* -------------------------------------------------- */
/* TAB&SP */
/* -------------------------------------------------- */
@media screen and (max-width: 1024px) {

    #pageTtl {
        background-size: 100% auto;
    }

    /* -------------------------------------------------- */
    /* 一覧ページ */
    /* -------------------------------------------------- */

    /* 一覧共通 */
    /* -------------------------------------------------- */
    .sdgsSection {
        padding-top: 300px;
    }

    .sdgsTtlWrap {
        background: #FFFFFF !important;
    }

    .sdgsTtlBox {
        width: 100%;
        padding: 0 !important;
    }

    .sdgsIconBox {
        width: 1000px;
        max-width: 92%;
        margin: 20px auto 0;
        padding: 0 !important;
        justify-content: center !important;
        position: inherit;
    }

    /* -------------------------------------------------- */
    /* 詳細ページ */
    /* -------------------------------------------------- */

    /* 17の目標 */
    /* -------------------------------------------------- */
    .sdgsGoalItem {
        width: 100%;
    }
}

/* -------------------------------------------------- */
/* TAB(調整) */
/* -------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {}

/* -------------------------------------------------- */
/* SP(調整) */
/* -------------------------------------------------- */
@media screen and (max-width: 767px) {

    /* -------------------------------------------------- */
    /* 一覧ページ */
    /* -------------------------------------------------- */

    /* トップ */
    /* -------------------------------------------------- */
    #sdgsPoster figcaption {
        font-size: 1.4rem;
    }

    #sdgsCatList {
        row-gap: 15px;
    }

    .sdgsCatItem {
        width: 100%;
    }

    /* 一覧共通 */
    /* -------------------------------------------------- */
    .sdgsSection {
        padding-top: 150px;
    }

    .sdgsTtlInner {
        padding-top: 30px;
    }

    .sdgsNewsWrap {
        padding-top: 20px;
        padding-bottom: 50px;
    }

    .sdgsIconBox {
        flex-wrap: wrap;
        gap: 5px;
    }

    .sdgsIconBox img {
        width: calc((100% - 15px) / 4);
    }

    /* -------------------------------------------------- */
    /* 詳細ページ */
    /* -------------------------------------------------- */

    /* 17の目標 */
    .sdgsGoalImgBox {
        width: 100px;
    }

    .sdgsGoalTxtBox {
        width: calc(98% - 100px);
    }

    .sdgsGoalTtl {
        font-size: 1.6rem;
    }

    /* テーブル */
    /* -------------------------------------------------- */
    #sdgsTable th,
    #sdgsTable td {
        display: block;
        width: 100%;
        padding: 10px;
    }

}