@media screen and (max-width: 1320px) {
	#logo_area .hero{
		transform: scale(0.8);
	}
}

@media screen and (max-width: 1199px) {
	
	/*=======================================================
		KV
	=======================================================*/
	.KV{
		background-size: 170%;
	}
	/*=======================================================
		common
	=======================================================*/
	section {
		width: 980px;
	}
		
	/*=======================================================
		logo_area
	=======================================================*/
	#logo_area {
	}
	
	#logo_area .hero{
		width: 100%;
	}	
	#logo_area .hero .grid-container{
	display: grid;
		grid-template-columns: repeat(3, 395px);
		width: 100%;
		gap: 7px;
	}
/* 中の1マス（div） */
    #logo_area .hero .grid-container .grid-item {
        /* 隙間（10px×2箇所=20px）を引いた3分割の横幅に固定 */
        width: calc((100% - 20px) / 3) !important; 
        max-width: calc((100% - 20px) / 3) !important;
        height: auto !important; /* PC用の固定高さを解除 */
        box-sizing: border-box;
    }
	
    /* 中の画像 */
    .grid-item img {
        width: 100% !important;
        height: auto !important;
        display: block;
    }
	#logo_area h1 {
	}
	
}

@media screen and (max-width: 979px) {
	/*=======================================================
		common
	=======================================================*/
	section {
		width: 100%;
	}
		
	.br_640 {
		display: block;
	}
	
	#logo_area .hero{
		width: 100%;
	}	
	.youtube_area iframe {
		width: 640px;
		height: 360px;
	}
	

	/*=======================================================
		container
	=======================================================*/
	#container {
		position: relative;
	}
	
	.KV{
		background-size: 180%;
	}

	/*=======================================================
		logo_area
	=======================================================*/
	#logo_area {
		padding-top: 120px;
	}
		
	#logo_area h1 {
	}


/* 9分割の親要素（外枠） */
    #logo_area .hero .grid-container {
        width: 100% !important;   /* 横幅を画面いっぱいにフィットさせる */
        max-width: 100% !important;
        box-sizing: border-box;
        padding: 0 10px;          /* スマホの画面端に少しだけ余白を作る */

        /* 💡ココが超重要！スマホ側でも強制的にフレックスボックスにして折り返させる */
        display: flex !important;
        flex-wrap: wrap !important; /* はみ出さずに3列で下に折り返す魔法 */
        justify-content: space-between; /* マス目を左右に綺麗に分散配置 */
        gap: 10px 0; /* 縦の隙間を10pxあける（横の隙間は下のcalcで自動調整） */
    }

    /* 中の1マス（div） */
    #logo_area .hero .grid-container .grid-item {
        /* 隙間（10px×2箇所=20px）を引いた3分割の横幅に固定 */
        width: calc((100% - 20px) / 3) !important; 
        max-width: calc((100% - 20px) / 3) !important;
        height: auto !important; /* PC用の固定高さを解除 */
        box-sizing: border-box;
    }

    /* 中の画像 */
    .grid-item img {
        width: 100% !important;
        height: auto !important;
        display: block;
    }

	/*=======================================================
		new_area
	=======================================================*/
	#new_area {
  		width: 100%;
		padding: 120px 0; 
	}
	/*=======================================================
		about_area
	=======================================================*/
	#about_area {
		padding: 120px 0; 
	}

	#about_area p {
		text-align: left;
	}
	
	#about_area p span {
		display: inline;
	}

	/*=======================================================
		intro_area
	=======================================================*/
	#intro_area {
		padding: 120px 0 0;
	}
	.intro_row {
        flex-direction: column; /* 2段目を通常の縦並び（上画像・下文章）に */
        gap: 20px;
        margin-bottom: 50px;
    }
    
    /* ★ 1・3段目のひっくり返しを解除して、通常の縦並び（上画像・下文章）にリセット */
    #intro_area .intro_row.reverse {
        flex-direction: column; 
    }

    #intro_area .intro_img,#intro_area  .intro_text {
        width: 100%; /* スマホ時は横幅いっぱいに広げる */
    }

	#intro_area .intro_text p {
		text-align: center;
	}

	/*=======================================================
		archive_area
	=======================================================*/
	 #archive_area{
		padding: 50px 0;
	 }

	 #archive_area > ul > li {
		width: 92%;
		margin: 0 4% 80px;
	}

}

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

	#btn_sns_area {
		right: 100px;
	}
	
	/*=======================================================
		common
	=======================================================*/
	section {
		width: 100%;
	}
	
	.youtube_area iframe {
		width: 400px;
		height: 225px;
	}
	
	/*=======================================================
		logo_area
	=======================================================*/
	#logo_area {
	}
		
	#logo_area h1,
	#logo_s_area h1 a {
	}
	

	/*=======================================================
		sponsor_area
	=======================================================*/
	#sponsor_area ul li {
		margin: 0;
	}

		
	/*=======================================================
		footer
	=======================================================*/
	#footer {
		height: 100px;
	}
	
	#footer p {
		line-height: 100px;
		font-size: 10px;
	}
	
	#pagetop_area a {
		width: 80px;
		height: 80px;
		background-size: cover;
	}
	
	#pagetop_area a img {
		width: 100%;
	}
}
