@charset 'UTF-8';

/*
COLORS
================================================ */
:root {
    /* Color */
    --light-grey: #F0F0F0;
    --light-blue: #EBF0F5;
    --blue: #0969D8;
    --grey: #666;
    --dark-grey: #707070;
    --green: #007F2D;
    --dark-blue: #39565C;
    --white: #fff;
    --black: #000;

    /* SDGs Color */
    --color1: #E3243B;
    --color2: #DCA63B;
    --color3: #4C9C38;
    --color4: #C3192C;
    --color5: #FF3A22;
    --color6: #26BDE2;
    --color7: #F8C20A;
    --color8: #A01A41;
    --color9: #FB6926;
    --color10: #DB1367;
    --color11: #FC9A24;
    --color12: #BE892F;
    --color13: #3E7F44;
    --color14: #0997D9;
    --color15: #55C02A;
    --color16: #01679C;
    --color17: #1A4869;

    /* Font/Space Size */
    --font-sm: .75rem;
    --font-md: 1rem;
    --font-lg: 1.25rem;
    --font-xl: 1.625rem;

    /* Border Radius Size */
    --round-sm: 6px;
    --round-md: 10px;
    --round-lg: 50%;
}

/*
GENERAL STYLING
================================================ */
body {
    -webkit-font-feature-settings: 'palt';
    font-feature-settings: 'palt';
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    color: var(--black);
    font-family: 'Noto Sans', sans-serif;
    background: var(--white);
    letter-spacing: 0.02em;
    font-weight: 400;
    font-size: var(--font-md);
}

/*
COMMON
================================================ */
*, *:before, *:after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

p, ol, ul, li {
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    font-weight: 600;
}

img,
iframe {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

.green-back {
    background: var(--green);
}

.white-back {
    background: var(--white);
}

.gray-back {
    background: var(--light-grey);
}

.blue-back {
    background-color: var(--light-blue);
}

.pc {
    display: none;
}

.sp {
    display: block;
}

a {
    transition: all .3s ease;
    /* cursor: pointer; */
}

.sdg-color1 {
    background-color: #E3243B;
}

.sdg-color2 {
    background-color: #DCA63B;
}

.sdg-color3 {
    background-color: #4C9C38;
}

.sdg-color4 {
    background-color: #C3192C;
}

.sdg-color5 {
    background-color: #FF3A22;
}

.sdg-color6 {
    background-color: #26BDE2;
}

.sdg-color7 {
    background-color: #F8C20A;
}

.sdg-color8 {
    background-color: #A01A41;
}

.sdg-color9 {
    background-color: #FB6926;
}

.sdg-color10 {
    background-color: #DB1367;
}

.sdg-color11 {
    background-color: #FC9A24;
}

.sdg-color12 {
    background-color: #BE892F;
}

.sdg-color13 {
    background-color: #3E7F44;
}

.sdg-color14 {
    background-color: #0997D9;
}

.sdg-color15 {
    background-color: #55C02A;
}

.sdg-color16 {
    background-color: #01679C;
}

.sdg-color17 {
    background-color: #1A4869;
}

/*
LAYOUT
================================================ */
.wrapper {
    width: 90%;
    margin: 0 auto;
    max-width: 1350px;
}

/*
HEADER
================================================ */
.site-header {
    height: 60px;
    width: 100%;
}

.header-wrapper {
    width: 100%;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 0.5em 5%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    color: var(--white);
    font-size: 0.9em;
}

.site-title a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: stretch;
    line-height: 40px;
}

.site-title a:hover {
    opacity: .8;
}

.site-title a .title-l {
    padding: 0 0.5em;
    border-right: 1px solid var(--white);
}

.site-title a .title-r {
    padding-left: 0.5em;
}

.site-logo {
    /* height: 40px; */
    width: 40px;
    height: 40px;
}

/* Navigation */
.btn-menu {
    color: var(--white);
    padding: .5rem 0;
}

.btn-menu span {
    display: block;
    width: 30px;
    height: 1px;
    margin: 6px 0;
    background: var(--white);
    transition: .3s ease-in-out
}

.menu-wrapper {
    background: rgba(255, 255, 255, .7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 40px 5%;
    position: absolute;
    z-index: 1;
    top: 60px;
    right: 0;
    overflow-x: hidden;
    text-align: center;
    transition: right .5s ease;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    right: -100%;
    width: 100%;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
}

.menu-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.menu-wrapper li {
    width: calc(100% / 4);
}

.menu-wrapper li img {
    width: 100%;
}

.menu-wrapper.open {
    right: 0;
}

/* バツ印に変化するスタイル */
.btn-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.btn-menu.active span:nth-child(2) {
    opacity: 0;
}

.btn-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/*
MAIN
================================================ */
.main-contents {
    padding: clamp(75px, 15vw, 150px) 0;
}

.main-contents h3 {
    font-size: 1.5em;
    color: var(--green);
    letter-spacing: 0.05em;
    margin-bottom: 1em;
    line-height: 1.5;
}

article p {
    margin-bottom: 1.5em;
    text-align: justify;
}

article p.h7_ttl {
    font-weight: bold;
    margin-bottom: 0;
    /* text-align: justify; */
}

article ul {
    /* margin-left: 1em; */
    list-style: disc;
    padding-left: 1em;
}

article a {
    color: var(--blue);
    text-decoration: underline;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

article a:hover {
    opacity: .6;
}

/*
TOP PAGE
================================================ */

.top-header {
    position: relative;
    z-index: 10;
    clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0);
    background-color: transparent;
    height: calc(100dvh - 60px);
    color: var(--white);
}

.top-header::before {
    background-image: url(../images/top-header.jpg);
    /* background-attachment: fixed; */
    background-size: 400%;
    background-position: center center;
    background-repeat: no-repeat;
    position: fixed;
    height: 100%;
    width: 100%;
    inset: 0;
    z-index: -1;
    content: '';
    animation: fadeIn 3s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.top-header-cont {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}

.top-header-cont-l {
    width: 100%;
    margin: 0 auto;
}

.top-header-cont-l .top-header-ttl {
    filter: drop-shadow(0 0 30px #fff) drop-shadow(0px 0px 1px #fff) drop-shadow(-2px -2px 5px #fff) drop-shadow(2px 2px 5px #fff);
    animation: fadeIn 4s forwards;
}

.top-header-cont-r {
    font-size: clamp(1.5em, 3vw, 3em);
    text-align: left;
    margin: 0.5em 0 0;
    text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.5;
    animation: fadeIn 4s forwards;
}

.top-header-cont-r h3 {
    font-size: 0.8em;
    margin-bottom: 1em;
}

/*
SINGLE / PAGE GOALS
================================================ */

.goal-header {
    text-align: center;
    padding: clamp(50px, 10vw, 100px) 0 clamp(30px, 7vw, 70px);
}

.goal-header-img {
    width: 30%;
    max-width: 150px;
    margin: 0 auto 1em;
}

.goal-header h2 {
    font-size: 2em;
    letter-spacing: 0.05em;
    line-height: 1.5;
}

.goal-contents {
    display: flex;
    justify-content: space-between;
    padding: 0 0 clamp(50px, 10vw, 100px);
}

.goal-article {
    width: 100%;
    border: 1px solid var(--light-grey);
    padding: 2em 0;
}

.pankuzu {
    margin-bottom: 2em;
}

.pankuzu a {
    color: initial;
    text-decoration: none;
}

.pankuzu a:hover {
    text-decoration: underline;
    opacity: 1;
}

.goal-contents h2.goal-contents-ttl {
    font-size: 1.5em;
    letter-spacing: 0.05em;
    margin-bottom: 0.5em;
    line-height: 1.5;
}

#goals2 .goal-contents h2.goal-contents-ttl {
    color: var(--color2);
}

#goals3 .goal-contents h2.goal-contents-ttl {
    color: var(--color3);
}

#goals6 .goal-contents h2.goal-contents-ttl {
    color: var(--color6);
}

#goals7 .goal-contents h2.goal-contents-ttl {
    color: var(--color7);
}

#goals11 .goal-contents h2.goal-contents-ttl {
    color: var(--color11);
}

#goals12 .goal-contents h2.goal-contents-ttl {
    color: var(--color12);
}

#goals13 .goal-contents h2.goal-contents-ttl {
    color: var(--color13);
}

#goals14 .goal-contents h2.goal-contents-ttl {
    color: var(--color14);
}

#goals15 .goal-contents h2.goal-contents-ttl {
    color: var(--color15);
}

#goals16 .goal-contents h2.goal-contents-ttl {
    color: var(--color16);
}

#goals17 .goal-contents h2.goal-contents-ttl {
    color: var(--color17);
}

.goal-contents article {
    margin-bottom: 2em;
}

.goal-contents h3.goal-group-ttl {
    font-size: 1.5em;
    color: var(--green);
    letter-spacing: 0.05em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #656D76;
}

.goal-contents h4.goal-category-ttl {
    font-size: 1.2em;
    letter-spacing: 0.05em;
    margin-bottom: 1em;
    line-height: 1.5;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #656D76;
    display: block;
}

.goal-category-sub-ttl {
    letter-spacing: 0.05em;
    line-height: 1.5;
    font-weight: bold;
    margin-bottom: 0.2em;
}

.goal-headline {
    font-weight: bold;
    font-style: italic;
}

.right-column {
    display: none;
}

.goal-links {
    width: 400px;
    position: sticky;
    top: 100px;
}

h6.key_ttl {
    font-weight: bold;
}

.goal-image-box{
    margin-bottom: 1.5em;
}

.goal-image-flex{
    display: flex;
    gap: 1em;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    /* flex-direction: column; */
}

/* .image-flex2-1,.image-flex2-2{
    width: calc(100%/2 - 1em);
} */

.goal-links-ttl {
    color: var(--white);
    padding: 1em 1em 1.5em;
}

.goal-links-ttl a {
    display: block;
    position: relative;
    margin-bottom: 1.5em;
    font-size: 0.7em;
    font-weight: 400;
    padding-left: 1.7em;
}

.goal-links-ttl a::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 7.5px;
    width: 15px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.goal-links-ttl a::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--white);
    border-right: 2px solid var(--white);
    -webkit-transform: rotate(-13 5deg);
    transform: rotate(-135deg);
    transition: all 0.3s ease;
}

.goal-links-ttl a:hover::before {
    left: 0;
}

.goal-links-ttl a:hover::after {
    left: 0;
}

.goal-links-ttl {
    font-size: 1.3em;
}

.goal-link-box {
    padding: 1.5em 1em;
}

.goal-link-list {
    max-height: 45vh;
    /* 上限高さを設定 */
    overflow-y: auto;
    /* スクロール可能にする */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: var(--light-blue) var(--white);
}

.goal-link-list::-webkit-scrollbar {
    width: 8px;
}

.goal-link-list::-webkit-scrollbar-track {
    background: var(--white);
    /* border-radius: 4px; */
}

.goal-link-list::-webkit-scrollbar-thumb {
    background-color: var(--light-blue);
    /* border-radius: 4px; */
    border: 2px solid var(--white);
}

.goal-link-list li {
    /* overflow: hidden; */
    padding-right: 1em;
    /* 横幅いっぱいにするため */
    display: block;
}

.goal-group-sub-list li {
    padding: 0;
}

.goal-link-list li>a.toc-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all;
}


.goal-link-list li>a.toc-link.active, .goal-link-list li>a.toc-link:hover {
    background-color: var(--light-blue);
}

.goal-link-sub-list {
    margin-left: 1em;
}

.goal-link-list .goal-group-item .goal-group-label {
    margin: 0;
    font-size: 1em;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goal-link-list .goal-group-label {
    cursor: pointer;
    position: relative;
    padding-right: 1.2em;
}

.goal-link-list .goal-group-label::before {
    content: '';
    position: absolute;
    right: 0.5em;
    top: 0.5em;
    font-size: 0.8em;
    transition: transform 0.2s;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--grey);
    border-right: 2px solid var(--grey);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg) translateX(2px);
}

.goal-link-list .goal-group-item.closed>.goal-group-label::before {
    transform: rotate(135deg);
    right: 0.2em;
}

.goal-link-list .goal-group-item.closed>.goal-group-sub-list {
    display: none;
}

.toc-link {
    color: var(--grey);
    padding: 0.5em 0;
}

.toc-link.active {
    background-color: var(--light-blue);
}

.toc-link span {
    padding: 0 1em;

}

#goals2 .toc-link.active::before {
    background-color: var(--color2);
}

#goals3 .toc-link.active::before {
    background-color: var(--color3);
}

#goals6 .toc-link.active::before {
    background-color: var(--color6);
}

#goals7 .toc-link.active::before {
    background-color: var(--color7);
}

#goals11 .toc-link.active::before {
    background-color: var(--color11);
}

#goals12 .toc-link.active::before {
    background-color: var(--color12);
}

#goals13 .toc-link.active::before {
    background-color: var(--color13);
}

#goals14 .toc-link.active::before {
    background-color: var(--color14);
}

#goals15 .toc-link.active::before {
    background-color: var(--color15);
}

#goals16 .toc-link.active::before {
    background-color: var(--color16);
}

#goals17 .toc-link.active::before {
    background-color: var(--color17);
}

.contents-section {
    padding-top: 120px;
    margin-top: -80px;
}

/*
FOOTER
================================================ */

.upper-footer {
    padding: clamp(50px, 10vw, 100px) 0;
}

.footer-cont {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.footer-box h4 {
    margin-bottom: 0.7em;
}

.footer-box .footer-ttl-logo {
    width: 1em;
    height: 1em;
    margin-top: 0.2em;
}



.footer-box .footer-link-list a {
    color: #0969D8;
    text-decoration: none;
    font-size: 0.9em;
}

.footer-box .footer-link-list a:hover {
    text-decoration: underline;
}

.footer-box h4 {
    display: flex;
    gap: 0.2em;
}

.footer-box span {
    display: inline-block
}

.footer-box .footer-ttl, .footer-ttl-num {
    line-height: 1.4;
}

.footer-ttl-num {
    min-width: 1.48em;
    text-align: center;
}

.bottom-footer {
    padding: 1em;
    text-align: center;
}

.bottom-footer-cont {
    display: flex;
    flex-direction: column-reverse;
}

.bottom-footer-cont a {
    transition: all 0.3s ease;
}

.bottom-footer-cont a:hover{
    opacity: 0.8;
}

.upper-footer .footer-link-list li {
    width: 100%;
    margin-bottom: 0.7em;
    line-height: 1.2;
}

.bottom-footer .footer-link-list li {
    width: 100%;
    line-height: 1.2;
    max-width: 300px;
    margin: 0 0 0 1.5em;
}

.footer-bnr-list li {
    width: 100%;
    max-width: 300px;
}

.footer-box-l .footer-ura-logo {
    width: 90%;
    max-width: 350px;
    margin: 2em auto 0.5em 0;
}

.footer-box-l {
    color: var(--white);
}

.ftter-ura-address {
    display: inline-block;
    margin: 0 auto 2em;
    text-align: left;
    font-size: 0.8em;
}


.copyright {
    font-size: var(--font-sm);
}

.back-to-top {
    position: fixed;
    right: 0;
    bottom: 40px;
    z-index: 1000;
    display: block;
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    font-size: 0.8em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s linear;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}


/*
MEDIUM SIZE
================================================ */
@media(min-width: 600px) {

    /* COMMON  */
    .pc {
        display: block;
    }

    .sp {
        display: none;
    }


    /* HEADER */
    .site-header {
        text-align: center;
        padding-top: 2.5rem;
    }

    .site-logo {
        height: 100px;
    }

    .site-title {
        font-size: 1em;
    }

    .site-description {
        font-size: var(--font-md);
    }

    /* Navigation */

    .home nav.primary-navigation {
        display: none;
    }

    .header-wrapper {
        padding: 0.5em 3%;
    }

    .menu-wrapper li {
        width: calc(100% / 5);
    }

    .menu-wrapper li a:hover {
        opacity: 0.8;
    }

    /* MAIN */


    /* SINGLE / PAGE ARTICLE */
    .single .post-item .wp-post-image,
    .page .post-item .wp-post-image {
        aspect-ratio: 16 / 9;
    }

    .single .post-item:hover,
    .page .post-item:hover {
        box-shadow: none;
    }

    .single .post-header {
        padding: 4rem 3rem 2rem;
    }

    .page .post-header {
        padding: 2rem 3rem;
    }

    .single .wp-post-image+.post-header,
    .page .wp-post-image+.post-header {
        padding-top: 2rem;
    }

    /*
    TOP PAGE
    ================================================ */

    .top-header-cont {
        max-width: 400px;
    }

    .top-nav {
        padding: 50px 0;
    }

    .top-nav-list {
        display: flex;
        gap: 1em;
        flex-wrap: wrap;
    }

    .top-nav-list li {
        width: calc((100% - 5em) / 6);
        position: relative;
    }

    .top-nav-list li a {
        display: block;
    }

    .top-nav-list li a div {
        position: absolute;
        top: 0;
        left: 0;
        transition: .7s;
        backface-visibility: hidden;
    }

    .top-nav-list li a .back-card {
        width: 100%;
        height: auto;
        position: relative;
    }


    .top-nav-list li a .back-card {
        transform: rotateY(-180deg)
    }

    .top-nav-list li a:hover .front-card {
        transform: rotateY(180deg)
    }

    .top-nav-list li a:hover .back-card {
        transform: rotateY(0)
    }

    /*
    FOOTER
    ================================================ */

    .footer-box-l .footer-ura-logo {
        margin-top: 1em;
    }

    .bottom-footer-cont {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 90%;
        max-width: 1150px;
        margin: 0 auto;
    }

    .copyright {
        text-align: left;
    }

}

/*
LARGE SIZE
================================================ */
@media(min-width: 900px) {

    /*
    MAIN
    ================================================ */
    .main-contents .wrapper, .top-nav .wrapper {
        padding: 0 50px;
    }

    /*
    TOP PAGE
    ================================================ */

    .top-header {
        clip-path: none;
        color: var(--white);
        background-image: url(../images/top-header.jpg);
        background-repeat: no-repeat;
        background-size: 100%;
        height: 500px;
        background-position: center center;
        animation: fadeIn 3s forwards;
    }

    .top-header::before {
        background-image: none;
        content: none;
    }

    .top-header-cont {
        display: flex;
        max-width: 1400px;
        width: 90%;
        justify-content: flex-start;
        align-items: center;
    }

    .top-header-cont-l {
        width: 400px;
        margin: 0 auto 0 0;
    }

    .top-header-cont-r {
        font-size: clamp(1.7em, 3vw, 3em);
        margin: 0;
        width: calc(100% - 450px)
    }

    .top-header-cont-r h3 {
        font-size: 0.8em;
    }

    .top-nav-list li {
        width: calc((100% - 9em) / 10);
    }

    /*
        SINGLE / PAGE GOALS
        ================================================ */

    .right-column {
        display: block;
    }

    .goal-contents {
        display: flex;
        justify-content: space-between;
        padding: 0 0 clamp(50px, 10vw, 100px);
    }

    .goal-article {
        width: calc(100% - 330px);
        border: 1px solid var(--light-grey);
        padding: 2em 1em;
    }

    .goal-links {
        width: 300px;
    }

    /* FOOTER */
    .footer-cont {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 100px 2em;
    }

    .footer-box {
        width: calc((100% - 2em) / 2);
    }

    .back-to-top.show:hover {
        /* box-shadow: 0 2px 8px rgba(0, 127, 45, 0.5); */
        background-color: var(--black);
    }

    .menu-wrapper li {
        width: calc(100% / 10);
    }

}


@media(min-width: 1400px) {

    /* Navigation */

    .menu-wrapper {
        justify-content: center;
    }

    .menu-wrapper li {
        width: calc(100% / 11);
        max-width: 120px;
    }

    .menu-wrapper li:last-child {
        display: none;
    }

    /*
        SINGLE / PAGE GOALS
        ================================================ */

    .goal-contents {
        display: flex;
        padding: 0 0 clamp(50px, 10vw, 100px);
    }

    .goal-article {
        width: calc(100% - 450px);
        padding: 2em 1em;
    }

    .goal-links {
        width: 400px;
    }

    .footer-box {
        width: calc((100% - 4em) / 3);
    }

}