@charset "UTF-8";
/* CSS Document */

#contents01{
	margin-top: 100px;
}

#contents01 ul{
	display: -webkit-flex;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

#contents01 li{
	position: relative;
	width: 25%;
	padding: 50px 0;
	background-image : linear-gradient(to right, #05903f, #05903f 2px, transparent 2px, transparent 8px);  /* 幅2の線を作る */
	background-size: 8px 2px;          /* グラデーションの幅・高さを指定 */
	background-position: left top;  /* 背景の開始位置を指定 */
	background-repeat: repeat-x;       /* 横向きにのみ繰り返す */
}

#contents01 li::after{
	content: "";
	width: 5px;
	height: calc(100% - 40px);
	display: block;
	
	position: absolute;
	top: 20px;
	right: 0;
	
	background-image :linear-gradient(to bottom, #05903f, #05903f 2px, transparent 2px, transparent 8px); /* 右の線 */
	background-size: 2px 8px; /* 右の線 */
	background-position: right top; /* 右の線 */
	background-repeat:repeat-y; /* 右の線 */
	
}

#contents01 li:nth-child(4n)::after{display: none;}

#contents01 .movie{position: absolute; top: 20px; right: 20px;}
#contents01 .icon{width: 140px;}
#contents01 li p{font-size: 18px; margin: 15px 0;}
#contents01 .box_bt{
	display: inline-block;
	text-decoration: none;
	background: #05903f;
	line-height: 32px;
	width: 140px;
	color: #FFFFFF;
	border-radius: 16px;
	position: relative;
}
#contents01 .box_bt::after{
	content: "▶";
	font-size: 10px;
	display: block;
	color: #FFFFFF;
	position: absolute;
	top: 0;
	right: 10px;
}
#contents01 .box_bt:hover{opacity: 0.6;}


@media screen and (max-width: 780px){
	#contents01 li{width: 33%;}
	#contents01 li:nth-child(3n)::after{display: none;}
	#contents01 li:nth-child(4n)::after{display: block;}
	#contents01 li:nth-child(12)::after{display: none;}
}

@media screen and (max-width: 600px){
	#contents01{margin-top: 50px;}
	#contents01 li{width: 50%; padding: 30px 0;}
	#contents01 li:nth-child(2n)::after{display: none;}
	#contents01 li:nth-child(3n)::after{display: block;}
	#contents01 li:nth-child(4n)::after{display: none;}
	#contents01 li:nth-child(6)::after{display: none;}
	
	#contents01 .movie{width: 25px;}
	#contents01 .icon{width: 100px;}
	#contents01 li p{font-size: 16px; margin: 8px 0;}
	#contents01 .box_bt{width: 120px;}
}


/* ポップアップ */
.modal {
  display: none;
  position: fixed;
  z-index: 8887;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.3);
  transition: all 1s ease-in-out;
}

.modal-content {
    background: #FFF;
    overflow-y: auto;
    padding: 80px 55px;
	border-radius: 15px;
    width: 90%;
    max-width: 770px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 600px;
    animation: show 0.6s linear 0s;
}
.modal-top {
    display: inline-block;
    position: absolute;
    right: 30px;
    top: 30px;
}
.modal-close {
    color: #c51a1f;
    text-decoration: none;
    font-size: 40px;
    line-height: 1;
}
.modal-close:hover, .modal-close:focus {
  text-decoration: none;
  cursor: pointer;
	opacity: 0.6;
}

@keyframes show{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}


.modal-container{
    display: -webkit-flex;
    display: flex;	
}


/* アイコン */
.img_box{
	padding: 0 45px 0 0;
	font-weight: bold;
	text-align: center;
	
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;	
}

#contents01 li .img_box p{font-size: 20px; margin: 15px 0 10px;}
.img_box span{display: block; font-size: 14px;}


/* ノートの点線の設定 */
.dashed-note {
	width: 430px;
	background-color: #fff; /* 背景色 */
	background-image: linear-gradient(90deg, transparent 0%, transparent 30%, #fff 30%, #fff 100%), /* 点線1の色 */
					linear-gradient(180deg, #05903f 2px, transparent 2px); /* 点線2の色と太さ */
	background-size: 8px 100%, /* 点線1のサイズ */
				   100% 3.5em; /* 点線2のサイズ */
	line-height: 3.5em; /* 文字の高さ */
	padding-bottom: 2px; /* 最終行の下にも罫線を引く */
}

#contents01 li .modal-container .dashed-note p{
	font-size: 16px; 
	margin: 0;
	text-align: justify;
}

.m_box{margin-top: 50px;}
.m_box iframe{width: 100%; max-width: 560px;}

@media screen and (max-width: 860px){
	.modal-container{display: block!important;}
	.img_box{width: 100%; margin: 0 auto 20px; padding: 0;}
	.dashed-note{width: 100%;}
}

@media screen and (max-width: 600px){
	.modal-content{padding: 50px 30px;}
	.m_box iframe{height: 200px;}
	.m_box{margin-top: 30px;}
	.img_box span{margin-top: -10px;}
	.dashed-note{    
		background-size: 8px 100%, /* 点線1のサイズ */ 100% 2.5em;
		line-height: 2.5em;
	}
}




