@charset "utf-8";
/* CSS Document */
/*=====================================================================================
***************************************************************************************

　　中ページ上部
		
***************************************************************************************
=====================================================================================*/
.wrapper {overflow: hidden;}
#hed_mv img{
	width: 1043px;
	max-width: 90%;
}


@media screen and (max-width: 740px){
	#hed_mv img{
		width: 324px;
		max-width: 90%;
	}
}
/*=====================================================================================
***************************************************************************************

　　contents01
		
***************************************************************************************
=====================================================================================*/
#contents01{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 2%;
}

.page_description{margin-bottom: 0;}
@media screen and (max-width: 1024px){
    #contents01 img{width: 20%;}
}
@media screen and (max-width: 600px){
    .page_description{text-align: center;margin-bottom: 10px;}
    .page_description br,.page_description .sp{display: block;}
    #contents01{flex-direction: column;}
    #contents01 .sp{display: block;}
    #contents01 .pc{display: none;}
    #contents01 img{width: 170px;}
}
/*=====================================================================================
***************************************************************************************

　　contents02
		
***************************************************************************************
=====================================================================================*/
#contents02{margin: 50px auto 70px;}
#contents02 .btn a {
    max-width: 420px;
    width: 100%;
    display: block;
    margin: 10px auto 0;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 900;
    background-color: #0583d5;
    box-shadow: 0 10px 0 #0b517f;
    border-radius: 10px;
    color: #FFFFFF;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}
#contents02 .btn a::after {
    content: "";
    display: block;
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
    border-width: 5px 0px 5px 8px;
    right: 25px;
    top: 45%;
    animation: moveArrow 1.5s ease-in-out infinite;
}
#contents02 .btn a:hover {
    box-shadow: none;
    transform: translateY(5px);
    opacity: 1;
}
@media screen and (max-width: 740px){
    #contents02{font-weight: bold;margin: 30px auto 50px;}
    #contents02 .sp{display: block;}
    #contents02 .btn a {font-size: 14px;}
    }

/*=====================================================================================
***************************************************************************************

　　contents03
		
***************************************************************************************
=====================================================================================*/
/* パズルのピース */
.puzzle_link_box img{max-width: 100%;}
#contents03 .puzzle_link_box07{
	bottom: 0;
    right: -8%;
}
#contents03 .puzzle_link_box04{
    top: 30%;
    left: 14%;
}
#contents03 .puzzle_link_box07 button{transform: rotate(-20deg);}
.puzzle_link_box07 .puzzle_link_box_popup .box{background: url("../../img/common/puzzle/7_pop.png") center top no-repeat;}
.puzzle_link_box04 .puzzle_link_box_popup .box{background: url("../../img/common/puzzle/4_pop.png") center top no-repeat;}

.puzzle_link_box15{
	top: 70px;
    left: 2%;
}
.puzzle_link_box15 button{transform: rotate(-20deg);}
.puzzle_link_box15 .puzzle_link_box_popup .box{background: url("../../img/common/puzzle/15_pop.png") center top no-repeat;}
@media screen and (max-width: 1023px){
    #contents03 .puzzle_link_box07{right: 0;}
    #contents03 .puzzle_link_box04{
        top: 22%;
        left: 18%;
    }
}
@media screen and (max-width: 740px){
    #contents03 .puzzle_link_box04{
        top: -35px;
        left: 50%;
    }
    .puzzle_link_box15{left: -10%;}
    .puzzle_link_box15 button{width: 70%;}
}



.project a:hover{opacity: 1;}
.card_box{
    max-width: 1580px;
	position: relative;
	display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap:50px 0;
    z-index: 1;
}
.card_box .project {width:20%;position: relative;}
.card_box .project:nth-child(1),:nth-child(6),:nth-child(11){z-index: 5;}
.card_box .project:nth-child(2),:nth-child(7),:nth-child(12){z-index: 4;}
.card_box .project:nth-child(3),:nth-child(8),:nth-child(13){z-index: 3;}
.card_box .project:nth-child(4),:nth-child(9),:nth-child(14){z-index: 2;}
.card_box .project:nth-child(5),:nth-child(10),:nth-child(15){z-index: 1;}
.card_box a{display: block;}
.project img {
    max-width: 100%;
    width: 100%; /* 親要素に応じてリサイズ */
    transition: transform 0.5s ease;
}

.card_box .project:nth-child(8)::after,
.card_box .project:nth-child(4)::after{
    content: "";
    position: absolute;
    max-width: 131px;
    width: 42%;
}
.card_box .project:nth-child(4)::after{
    content: "";
    position: absolute;
    background: url(../img/fukidashi_1.png) top left no-repeat;
    height: 348px;
    top: -30px;
    right: -30%;
    transform: rotate(10deg);
    background-size: contain;
}

.card_box .project:nth-child(8)::after{
    background: url(../img/fukidashi_2.png) top left no-repeat;
    height: 308px;
    top: -42px;
    left: -14%;
    transform: rotate(-10deg);
    background-size: contain;
}
/* モーダルウィンドウ */
#wrapper .modal_on{
    display: flex;
    animation: popupin 0.8s forwards;
}
.modal{
    display: none;
    position: fixed;
    inset:0;
    width: 100%;
    height: 100%;
    background: #fff6e9f2;
    justify-content: center;
    align-items: center;
	animation: popup_out 0.8s forwards;
     z-index: 1000;
}
@keyframes popupin {
  0% {
    transform: translateY(-100%);
  }
  30% {
    transform: translateY(-40%);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes popup_out {
  0% {
    transform: translateY(0);
  }
  60% {
    transform: translateY(-40%);
  }
  100% {
    transform: translateY(-100%);
  }
}


@media screen and (max-width: 1023px){
    .card_box .project:nth-child(4)::after{right: -23%;}
    .card_box .project {width: 25%;}
}
@media screen and (max-width: 740px){
    .card_box .project:nth-child(6){z-index: 1;}
    .card_box .project:nth-child(9){z-index: 6;}
    .card_box .project:nth-child(8)::after,
    .card_box .project:nth-child(4)::after{display: none;}
    .card_box{margin-top:20px;gap:0;}
    .card_box .project {width: 47%;}
    .project.tilt_R {margin-top: -20px;}
    .project.tilt_L {margin-top: 20px;}
}

.modal-content {
    background: #FFFFFF;
    padding: 80px 2.5%;
    border-radius: 15px;
    text-align: center;
    height: 80vh;
    position: relative;
    overflow: auto;
    animation: tiltAndReturn 1s ease forwards;
}
/* アニメーション */
@keyframes tiltAndReturn {
    80% {
    transform: rotate(10deg);
    }
    100% {
    transform: rotate(0deg);
    }
}

/* モーダルウィンドウの中身 */

.modal-content{overflow-y: scroll;}
.modal-content::-webkit-scrollbar {
    border-radius: 20px;
    width: 13px;
    height: 13px;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    background-clip: padding-box;
}
.modal-content::-webkit-scrollbar-thumb {
    border-radius: 20px;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    background-clip: padding-box;
}
.modal-content::-webkit-scrollbar-track { /* 上下に余白を付ける */
  margin-top: 10px;
  margin-bottom: 10px;
}

.modal-close{
    position: relative;
    max-width: 1200px;   
    width: 90%;
    
}
.close{
    position: absolute;
    font-size: 33px;
    font-weight: bold;
    color: #ffffff;
    background-color: #949494;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 76px;
    border-radius: 100%;
    aspect-ratio: 1;
    top: -85px;
    right: 0;    
    cursor: pointer;
}
.red .close:hover{background-color: #e60024;}
.orange .close:hover{background-color: #e77301;}
.blue .close:hover{background-color: #059dbe;}
.green .close:hover{background-color: #2d9391;}

.modal-content-in{
    max-width: 850px;
    margin: 0 auto;
}
.bottom_box,
.table_title{color: #373737;}
.modal .number {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 0.5em;
}
.modal .number b{
    font-size: 250%;
    line-height: 0.8;
    display: block;
}
.modal .theme{
    font-weight: bold;
    font-size: 35px;
}
.modal .comment{
    position: relative;
    font-size: 28px;
    line-height: 1.5;
    padding: 0.8em 2.5% 0.4em;
    color: #FFFFFF;
    border-radius: 5px;    
    margin: 20px auto 50px;
}
.modal .comment::before{
    content: "";
    position: absolute;    
    width: 0;
    height: 0;
    inset: auto 0 -20px 0;
    margin: auto;
    border-style: solid;
    border-right: 21px solid transparent;
    border-left: 21px solid transparent;
    border-top: 27px solid;
    z-index: -1;
}
.modal .btn a {
    max-width: 420px;
    width: 90%;
    display: block;
    margin: 10px auto 0;
    padding: 1.2em 0;
    font-size: 16px;
    font-weight: 900;
    border-radius: 10px;
    color: #FFFFFF;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}
.modal .btn a::after {
    content: "";
    display: block;
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
    border-width: 5px 0px 5px 8px;
    right: 20px;
    top: 40%;
    animation: moveArrow 1.5s ease-in-out infinite;
}
.modal .btn a:hover {
    box-shadow: none;
    transform: translateY(5px);
    opacity: 1;
}
.modal .modal-content{border: solid 4px;}

.modal-content-in img{
    max-width: 100%;
    width: 90%;
    margin: 20px auto;
}
.bottom_box p{
    text-align: left;
    line-height: 1.2;
}
.bottom_box div{
    font-size: 18px;
    font-weight: bold;
    margin: 1em auto;
}

/*スクロールバーのカラー*/
.red .modal-content::-webkit-scrollbar {background: #FFF0F2;}
.red .modal-content::-webkit-scrollbar-thumb{background-color: #e60024;}

.orange .modal-content::-webkit-scrollbar {background: #fffae6;}
.orange .modal-content::-webkit-scrollbar-thumb{background-color: #f49e2c;}

.blue .modal-content::-webkit-scrollbar {background: #E6F7FA;}
.blue .modal-content::-webkit-scrollbar-thumb{background-color: #21b0c9;}

.green .modal-content::-webkit-scrollbar {background: #E8F8F7;}
.green .modal-content::-webkit-scrollbar-thumb{background-color: #2d9391;}

/*囲み線のカラー*/
.red .modal-content{border-color: #e60024;}
.orange .modal-content{border-color: #e77301;}
.blue .modal-content{border-color: #059dbe;}
.green .modal-content{border-color: #2d9391;}

/*吹き出しのカラー*/
.red .comment{background-color:#e60024;}
.red .comment::before{border-top-color:#e60024;}
.orange .comment{background-color:#e77301;}
.orange .comment::before{border-top-color:#e77301;}
.blue .comment{background-color:#059dbe;}
.blue .comment::before{border-top-color:#059dbe;}
.green .comment{background-color:#2d9391;}
.green .comment::before{border-top-color:#2d9391;}

/*ボタンのカラー*/
.red .btn a {
    background-color: #e60024;
    box-shadow: 0 10px 0 #9d051d;
}
.orange .btn a {
    background-color: #e77301;
    box-shadow: 0 10px 0 #c5760d;
}
.blue .btn a {
    background-color: #059dbe;
    box-shadow: 0 10px 0 #198396;
}
.green .btn a {
    background-color: #2d9391;
    box-shadow: 0 10px 0 #196261;
}

@media screen and (max-width: 1024px){
    .modal-content {padding: 40px 5%;}
    .modal .number{font-size: 15px;}
    .modal .theme{font-size: 25px;}
    .modal .comment{font-size: 22px;}
}
@media screen and (max-width: 740px){
    .modal .number{font-size: 12px;}
    .modal .theme{font-size: 16px;}
    .modal .comment,.bottom_box div,.modal .btn a,.modal .font_size_20{font-size: 13px;}
    .bottom_box p{font-size: 12px;}
    .modal .comment{margin: 15px auto 25px; }
    .modal .comment::before{inset: auto 0 -13px 0;}
    
}