@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;700&family=Zen+Maru+Gothic:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cherry+Bomb+One&display=swap');

body {
    font-family: 'Zen Maru Gothic', sans-serif;
}



/*  //////////// ハンバーガーメニュー ////////////////  */




.header-inner {             /* ハンバーガーメニューを開いたときの背景画像  */
    background-image: url(../image/archive-img/background.jpg);
    display: none;
    background-size: cover;
    width: 100vw;
    padding: 100px 0;
    overflow-y: scroll;
	position: fixed;
	z-index: 999;
}

.open-btn {  /* ハンバーガーメニューの形作り */
    display: block;
    width: 90px;
    height: 90px;
    border: #fff 0.5px solid;
    border-radius: 100%;
    background: linear-gradient(180deg, #f0da4b 35%, #ed8f14);
    margin: 20px 20px 0 0;
    box-shadow: #11111173 2px 4px 10px;
    transition: 0.3s ease-in-out;
    /*position: relative;*/
	position: fixed;
	right: 0;
	z-index: 9999;
}

.open-btn:hover {
    transform: scale(1.2);
}

.open-btn span {     /* 3本線の原型つくり */
    display: inline-block;
    transition: all .3s;
    width: 50px;
    height: 4px;
    border-radius: 50px;
    background-color: #fff;
    position: absolute;
    left: calc(50% - 26px);
}


.open-btn span:nth-child(1) {    /* 1本目の絶対位置 */
    top: 27px;
}

.open-btn span:nth-child(2) {   /* ２本目の絶対位置 */
    top: 39px;
}

.open-btn span:nth-child(3) {   /* ３本目の絶対位置 */
    top: 51px;
}

.open-btn span:nth-of-type(3)::after {
    content:"メニュー";/*3つ目の要素のafterにMenu表示を指定*/
    position: absolute;
    top: 8px;
    right: calc(50% - 24px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/*activeクラスが付与されると線が回転して×になり、Menu⇒Closeに変更*/

.open-btn.active span:nth-of-type(1) {
    top: calc(50% - 10px);
    right: calc(50% - 10px);
    transform: translateY(6px) rotate(-45deg);
}

.open-btn.active span:nth-of-type(2) {
    opacity: 0;
}

.open-btn.active span:nth-of-type(3){
    top: calc(50% + 3px);
    left: calc(50% -20px);
    transform: translateY(-6px) rotate(45deg);
}

.open-btn.active span:nth-of-type(3)::after {
    content:"とじる";/*3つ目の要素のafterにClose表示を指定*/
    transform: translateY(0) rotate(-45deg);
    top: 14px;
    right: -12px;
}

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

    .open-btn {
        display: block;
        width: 70px;
        height: 70px;
        margin: 10px 10px 0 0;
        box-shadow: #11111173 2px 3px 5px;
		position: fixed;
    }

    .open-btn span {     /* 3本線の原型つくり */
        display: inline-block;
        transition: all .3s;
        width: 40px;
        height: 3px;
        border-radius: 50px;
        background-color: #fff;
        position: absolute;
        left: calc(50% - 20px);
    }

    .open-btn span:nth-child(1) {    /* 1本目の絶対位置 */
        top: 26px;
    }
    
    .open-btn span:nth-child(2) {   /* ２本目の絶対位置 */
        top: 33px;
    }
    
    .open-btn span:nth-child(3) {   /* ３本目の絶対位置 */
        top: 40px;
    }

    .open-btn.active span:nth-of-type(1) {
        top: calc(50% - 7px);
        right: calc(50% - 10px);
        transform: translateY(6px) rotate(-45deg);
    }
    
    .open-btn.active span:nth-of-type(2) {
        opacity: 0;
    }
    
    .open-btn.active span:nth-of-type(3){
        top: calc(50% + 6px);
        left: calc(50% -20px);
        transform: translateY(-6px) rotate(45deg);
    }
    
    .open-btn span:nth-of-type(3)::after {
        content: '';
    }

    .open-btn.active span:nth-of-type(3)::after {
        content: '';
    }
}

/*  //////////// ハンバーガーメニュー終了////////////////  */


/*  //////////// ハンバーガーメニュー開いたときのデザイン////////////////  */

#logo img {
    width: 90px;
    height: auto;
    padding: 20px 0 0 20px;
    transition: 0.3s ease-in-out;
	z-index: 99999;
	position: fixed;
}

#logo img:hover {
    transform: scale(1.2);
}


.header-nav-list {
    display: block;
    display: flex;
    justify-content: center;
    gap: 120px;
    margin: 0 auto;
}



.header-item1 {
    width: fit-content;
    color: #29639B;
    font-size: 35px;
    font-weight: 500;
    position: relative;
    transition: 0.5s;
}

.header-item2 {
    width: fit-content;
    color: #1E962E;
    font-size: 35px;
    font-weight: 500;
    position: relative;
    transition: 0.5s;
}

.header-item1 span,.header-item2 span{
    font-size: 28px;
    transition: 0.5s;
}

.header-nav-list img {
    width: 280px;
    height: auto;
}

.header-local {
    display: flex;
    column-gap: 50px;
    row-gap: 20px;
    width: 300px;
    flex-wrap: wrap;
    padding-top: 20px;
}

.header-locals {
    color: #29639B;
    font-size: 20px;
    font-weight: 500;
    transition: 0.5s;
}

.header-locals2 {
    color: #1E962E;
    font-size: 20px;
    font-weight: 500;
    transition: 0.5s;
}

.header-list-item {
    margin-bottom: 60px;
}



.header-item1:hover, .header-item2:hover,
 .header-locals:hover, .header-locals2:hover:hover {
    transform: scale(1.15);
}

.header-item1::before {
    content: '';
    position: absolute;
    right: -65px;   
    top: 40px; 
    width: 40px;
    height: 3px;
    border-radius: 50px;
    background:#29639B;
}

.header-item1::after {
    content: '';
    position: absolute;
    right: -66px;   
    top: 35px; 
    width: 15px;
    height: 3px;
    border-radius: 50px;
    transform: rotate(45deg);
    background:#29639B;
}

.header-item2::before {
    content: '';
    position: absolute;
    right: -65px;   
    top: 40px; 
    width: 40px;
    height: 3px;
    border-radius: 50px;
    background:#1E962E;
}

.header-item2::after {
    content: '';
    position: absolute;
    right: -66px;   
    top: 35px; 
    width: 15px;
    height: 3px;
    border-radius: 50px;
    transform: rotate(45deg);
    background:#1E962E;
}


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

    #logo img {
        padding: 10px 0 0 10px;
        width: 50px;
        height: auto;
    }

    #logo img:hover {
        transform: scale(1);
    }

    .open-btn:hover {
        transform: scale(1);
    }

    .header-nav-list {
        display: block;
    }

    .header-inner {
        padding-top: 60px;
        padding-left: 80px;
    }

    .header-sdg-contact {
        display: flex;
        gap: 30px;
        align-items: center;
        flex-wrap: wrap;
    }

    .header-item1 {
        font-size: 18px;
        font-weight: 500;
    }
    
    .header-item2 {
        font-size: 18px;
        font-weight: 500;
    }

    .header-item1 span,.header-item2 span{
        font-size: 14px;
    }

    .header-nav-list img {
        width: 100px;
    }

    .header-local {
        column-gap: 30px;
        row-gap: 16px;
        width: 200px;
        padding-top: 16px;
    }
    
    .header-locals {
        font-size: 16px;
    }
    
    .header-locals2 {
        font-size: 16px;
    }

    .header-list-item {
        margin-bottom: 40px;
    }

    .header-list-item:nth-child(3) {
        margin-bottom: 40px;
    }

    .header-item1::before {
        content: '';
        position: absolute;
        right: -30px;   
        top: 20px; 
        width: 20px;
        height: 2px;
        border-radius: 50px;
        background:#29639B;
    }
    
    .header-item1::after {
        content: '';
        position: absolute;
        right: -30px;   
        top: 18px; 
        width: 6px;
        height: 2px;
        border-radius: 50px;
        transform: rotate(45deg);
        background:#29639B;
    }

    .header-item2::before {
        content: '';
        position: absolute;
        right: -30px;   
        top: 20px; 
        width: 20px;
        height: 2px;
        border-radius: 50px;
        background:#1E962E;
    }
    
    .header-item2::after {
        content: '';
        position: absolute;
        right: -30px;   
        top: 18px; 
        width: 6px;
        height: 2px;
        border-radius: 50px;
        transform: rotate(45deg);
        background:#1E962E;
    }

}

.sdgs {
    animation: poyopoyo 3s ease-in-out infinite;
}

@keyframes poyopoyo {
    0%, 40%, 60%, 80% {
      transform: scale(1.0);
    }
    50%, 70% {
      transform: scale(0.85);
    }
  }


  /*************ここからメインエリア***************/

.main {
    width: 100%;
    height: 100vh;
    background-image: url(../image/page-sdg-img/kagayaku3.png);
    background-position: center;
    background-size:cover;
    position: relative;
}


.main h1 {
    font-family: 'Cherry Bomb One', cursive;
}

.main h1 {
    font-size: 8vw;
    font-weight: 400;
    color: #ffaa00;
	-webkit-text-stroke: 3px #FFF;
    letter-spacing: 10px;
    text-align: center;
    position: absolute;
    top: 30%;
    right: calc(50% - 27vw);
}


/********************************************/
/*****************ここから１つ目のセクション***************/
/********************************************/

#first-section {
    background-color: #F8D26C;
}

/*------------------------------
  画像付き吹き出し(会話)
------------------------------*/
/* 吹き出し 全体*/
.talking {
    position:relative;
    display: flex; 
    align-items: center;
    justify-content: center;
    max-width: 80vw;
    margin: 0 auto;
    margin-bottom: 3em;
}

/*アイコン*/
.talking img {
    width:15vw;     /*アイコンの横幅*/
    height:auto;    /*アイコンの縦幅*/
}

.talking-left-icon {
    margin-right:3vw;    /*アイコンの右の余白(左の吹き出し)*/
}

.talking-right-icon {
    margin-left:3vw;    /*アイコンの左の余白(右の吹き出し)*/
}



/*アイコンの下の名前*/
.talking-left-icon figcaption ,
.talking-right-icon figcaption {
    padding: 2px 0 0;
    font-size: 1.05vw;
    text-align:center;
}

/*吹き出しのセリフ部分*/
.talking-left , .talking-right  {
    position:relative;
    padding: 30px;
    border-radius: 18px;    /*セリフを入れる部分の角丸*/
    height: fit-content;
}

.talking p {
    font-size: 1.5vw;
    color: #DF7600;
    font-weight: 600;
    letter-spacing: 5px;
    line-height: 1.8;
    margin:0;
}

.talking p :last-child {
    margin:0;
}

/*---左の吹き出し---*/
.talking-left {
    background: #fff;    /*背景色*/
}

/*左の吹き出し 三角*/
.talking-left:before {
    position: absolute;
    content: '';
    border: 10px solid transparent;
    border-right: 10px solid #fff;  /*三角の線になる部分*/
    top: 15px;
    left: -10px;
}

.talking-left:after {
    position: absolute;
    content: '';
    border: 14px solid transparent;
    border-right: 20px solid #fff;
    top: 20px;
    left: -30px;
}

/*---右の吹き出し---*/
.talking-right {
    background: #fff;    /*背景色*/
}

/*右の吹き出し 三角*/
.talking-right:before {
    position: absolute;
    content: '';
    border: 10px solid transparent;
    border-left: 10px solid #fff;  /*三角の線になる部分*/
    top: 15px;
    right: -10px;
}

.talking-right:after {
    position: absolute;
    content: '';
    border: 14px solid transparent;
    border-left: 20px solid #fff;
    top: 20px;
    right: -30px;
}

/*目次ここから*/

.index {
    width: fit-content;
    margin: 0 auto;
}

.index h2 {
    font-family: 'Cherry Bomb One', cursive;
    font-size: 6vw;
    font-weight: 400;
    color: #ec790c;
    -webkit-text-stroke: 2px #FFF;
    letter-spacing: 10px;
    text-align: center;
}

.index-parent {
    padding: 3vw 4vw;
    background-color: #fff;
    border-radius: 20px;
}

.index-child:first-child , .index-child:nth-child(2){
    padding-bottom: 12px;
}
    
.index-child a{
    display: flex;
    align-items: center;
}

.index-child img {
    width: 6vw;
}



.index-child p {
    display: inline-block;
    color: #DF7600;
    font-weight: 600;
    font-size: 3vw;
    letter-spacing: 5px;
    padding-left: 2vw;
}


/********************************************/
/*****************ここから２つ目のセクション***************/
/********************************************/

#section2 {
    background-image: url(../image/page-sdg-img/hoshi445.png);
    background-size: cover;
}

#section2 h3 {
    text-align: center;
}

#section2 h3 img {
    width: 5vw;
}

#section2 h3 p {
    display: inline-block;
    color: #DF7600;
    font-weight: 600;
    font-size: 3vw;
    letter-spacing: 5px;
    padding-bottom: 2vw;
}

.unicef {
    width: fit-content;
    margin: 0 auto;
    text-align: center;
    font-size: 1.5vw;
    font-weight: 600;
    letter-spacing: 2px;
    background-color: #fff;
    padding: 2vw 4vw;
    border-radius: 100px;
    border: solid #DF7600 2px;
    box-shadow: 6px 6px 4px #0000002d;
}

.unicef a {
    color: #DF7600;
    word-break: break-all;
}


/********************************************/
/*****************ここから３つ目のセクション***************/
/********************************************/

#section3 {
    background-image: url(../image/page-sdg-img/sai-62.png);
    background-size: cover;
}

#section3 h3 {
    text-align: center;
}

#section3 h3 img {
    width: 5vw;
}

#section3 h3 p {
    display: inline-block;
    color: #DF7600;
    font-weight: 600;
    font-size: 3vw;
    letter-spacing: 5px;
    padding-bottom: 2vw;
}

.s3-p {
    font-size: 1.5vw;
    letter-spacing: 5px;
    font-weight: 600;
    text-align: center;
    color: #DF7600;
}

.goals-box {
    width: 80vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 30px auto;
    gap: 1vw;
}

.goals-box div {
    width: 15vw;
}

/* ここからゲームエリア*/

#section4 {
    background-image: url(http://nsb-it.net/nature/wp-content/uploads/2023/12/game-background.png);
    background-size: cover;
}

#section4 h3 {
    text-align: center;
}

#section4 h3 img {
    width: 5vw;
}

.garbage{
	width: 7vw;
	height: 7vw;
}

#section4 h3 p {
    display: inline-block;
    color: #DF7600;
    font-weight: 600;
    font-size: 3vw;
    letter-spacing: 5px;
    padding-bottom: 2vw;
}

.game-flex-area {
            display: flex;
            flex-wrap: wrap-reverse;
            justify-content: space-around;
        }



        #gameArea {
            width: 50vw;
            height: 40vw;
            border: 3px solid rgb(8, 143, 201);
            border-radius: 20px;
			background-image: url(../image/page-sdg-img/top.png);
            background-size: cover;
            position: relative;
            overflow: hidden;
        }

#startButton {
	margin-top: 2vw;
}

#section4 h4 {
	font-size: 2.5vw;
	color: #21a5bc;
}

.rule-box ,.garbage-box{
	width: fit-content;
	margin: 0 auto;
	background-color: #fff;
	padding: 3vw;
	border: #21a5bc 5px double;
	border-radius: 5vw;
	margin-bottom:3vw;
}

#section4 .rule {
	font-size: 1.8vw;
	color: #21a5bc;
	font-weight: 500;
	line-height: 2em;
}

.garbage-flex {
	display: flex;
	gap: 3vw;
}

.garbage-flex img {
	width:10vw;
}

.garbage-flex p {
	text-align: center;
	font-size: 1.5vw;
	padding: 0.8vw 0;
}

h5 {
	font-size: 1.2vw;
	color: #21a5bc;
	padding-bottom:10px;
}

        @media screen and (max-width: 1024px) {
            #gameArea {
                width: 100vw;
            }
        }

        #startButton {
            display: block;
            padding: 10px 20px;
            background-color: #d68f00;
            color: #fff;
            border: #d68f00 2px solid;
            font-size: 3vw;
            font-weight: 500;
            letter-spacing: 1.25px;
            border-radius: 50px;
            margin-bottom: 20px;
        }

        #resetButton {
            display: block;
            padding: 10px 20px;
            background-color: #fff;
            color: #d68f00;
            border: #d68f00 2px solid;
            font-size: 1.8vw;
            font-weight: 500;
            letter-spacing: 1.25px;
            border-radius: 50px;
        }
        
        #scoreDisplay,#timeDisplay {
            font-size: 1.8vw;
            color: #333;
        }

        .garbage {
            width: 7vw;
            height: 7vw;
            position: absolute;
            cursor: pointer;
            transition: left 1s ease-in-out, top 1s ease-in-out;
        }

/********************************************/
/*****************すべてのセクションに共通***************/
/********************************************/

.container {
    padding: 6vw 5vw;
}





/********************************************/
/*****************フッター***************/
/********************************************/


footer {
    padding: 50px 100px;
    background-color: #F8D26C;
}

#footer {
    padding: 50px;
    background-color: #ffffffa0;
    border-radius: 30px;
}

.footer-flex {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
}

.footer-flex ul{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-flex ul li {
    max-width: 270px;
}

.footer-item {
    font-size: 28px;
    color: #707070;
    padding: 6px 14px;
    position: relative;
}

.footer-item::before {
    background: #ffaa00;
    content: '';
    width: 100%;
    height: 4px;
    border-radius: 50px;
    position: absolute;
    left: 0;
    bottom: 0;
    margin: auto;
    transform-origin: center top;
    transform: scale(0, 1);
    transition: transform .3s;
  }
  .footer-item:hover::before {
    transform-origin: center top;
    transform: scale(1, 1);
  }

.footer-sdgs {
    width: 200px;
    height: auto;
}

.copyright {
    font-size: 14px;
    text-align: center;
}

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

    .main {
        height: 65vw;
    }

    .main h1 {
        font-size: 10vw;
        font-weight: 400;
        color: #ffaa00;
        -webkit-text-stroke: 2px #FFF;
        letter-spacing: 8px;
        text-align: center;
        position: absolute;
        top: 30%;
        right: calc(50% - 37vw);
    }

    .talking {
        max-width: 95vw;
        margin-bottom: 2em;
    }

    .talking p {
		font-size: 3vw;
        letter-spacing: 2px;
    }

    .talking img {  /*このcssの最後に画面幅390px以下の場合の記述があることに注意*/
        width: 18vw;
        height: auto;
    }

    .talking-left , .talking-right {
        padding: 18px;
    }

    /*左の吹き出し 三角*/
.talking-left:after {
    position: absolute;
    content: '';
    border: 7px solid transparent;
    border-right: 10px solid #fff;
    top: 20px;
    left: -15px;
}

/*右の吹き出し 三角*/
.talking-right:after {
    position: absolute;
    content: '';
    border: 7px solid transparent;
    border-left: 10px solid #fff;
    top: 20px;
    right: -15px;
}
	
	.talking-left-icon figcaption ,
.talking-right-icon figcaption {
    padding: 2px 0 0;
    font-size: 3vw;
    text-align:center;
}
	
	.unicef {
		font-size:2.5vw;
	}

.index h2 {
    font-size: 8vw;
    -webkit-text-stroke: 1px #FFF;
}

	.s3-p {
		font-size: 2.5vw;
	}
	
#section2 h3 img , #section3 h3 img{
    width: 10vw;
}
	
	#section4 h4 {
	font-size: 4vw;
}
	
	#section4 .rule {
		font-size: 3vw;
	}
	
	#gameArea {
		height: 60vh;
	}
	
	.garbage {
		width: 10vw;
		height: 10vw;
	}
	
	.garbage-flex img {
	width:20vw;
}
	
	.garbage-flex p{
		font-size: 2.5vw;
	}
	
	h5 {
		font-size: 2.8vw;
	}
	
	#startButton {
            font-size: 3.8vw;
        }

        #resetButton {
            font-size: 3.5vw;
        }
        
        #scoreDisplay,#timeDisplay {
            font-size: 3.8vw;
        }

    footer {
        padding: 35px;
    }

    #footer {
        width: fit-content;
        padding: 40px;
        margin: 0 auto;
    }

    .footer-flex {
        padding: 35px;
        width: fit-content;
        margin: 0 auto;
    }

    .footer-flex ul {
        display: block;
    }
    
    .footer-flex ul li {
        width: fit-content;
        margin: 0 auto;
        margin-bottom: 20px;
    }

    .footer-item {
        font-size: 20px;
    }

    .footer-sdgs {
        width: 150px;
    }

    .copyright {
        font-size: 1vw;
    }

    body {
        overflow-x: hidden;
    }
}

@media screen and (max-width: 390px) {
    .talking img {
        width: 30vw;
        height: auto;
    }

    .talking-left-icon figcaption ,
.talking-right-icon figcaption {
    padding: 2px 0 0;
    font-size: 3vw !important;
    text-align:center;
}
	
	.garbage {
		width: 20vw;
		height: 20vw;
	}
}