@charset "utf-8";

@import url("variables.css");/*変数定義*/
@import url("the-new-css-reset.css"); /*リセット*/

A:link {
	COLOR: #0033cc;
}
A:visited {
	COLOR: #990099;
}
A:HOVER {
	COLOR: red;
}

#page_title{
	margin-bottom:40px;
	font-size: clamp(1.7rem, 1.409rem + 1.45vw, 2.5rem);
}
.section_title{
	margin:80px 0 20px 0;
	font-weight: 800;
	font-size: clamp(1.5rem, 1.245rem + 1.27vw, 2.2rem);
}
.mt0{
	margin-top:0;
}
#page_title + .section_title{/*#page_title のすぐ下にあったらトップのマージン削除*/
		margin-top:0;
}



/*-----------------------------------------------------	*/
/*	for all						*/
/*-----------------------------------------------------	*/
	
	body,
	html{
		height:100%;
		color: rgb(var(--baceFontColor));
		text-align:center;
		font-family: var(--font-family-gothic);
		font-weight: 400;
		font-kerning: auto;
		font-variant-numeric: tabular-nums;
		font-feature-settings: "palt" 1;
	}
	html{
		scroll-behavior: smooth;/*formに影響する*/
	}
	/*ダークモード対応テスト*/
	html[theme='dark-mode'] {
		filter: invert(1) hue-rotate(180deg);
	}
	html[theme='dark-mode'] img{/*img　除外*/
		filter: invert(1) hue-rotate(180deg);
	}
	*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: .1em;
	}
	#page{
		position:relative;
		height:auto !important; 
		height:100%;
		min-height:100%;
	}
	#globalHeader{
		padding:20px 0;
		border-bottom:1px solid silver;
		> div{
			width:min(calc(100% - 40px),var(--page_max));
			margin:0 auto;
			position:relative;
			display:flex;
			justify-content: space-between;
			align-items: end;
			#title{
				font-size:1.8rem;
				font-weight: 600;
				line-height:1em;
				a{
					color:rgb(var(--mainColor));
					position:relative;
					padding-left:72px;
					display:inline-block;
					span{
						display:block;
						font-size: .9rem;
						font-weight: 600;
					}
					i{
						font-size: 1.2rem;
						margin:0 .5em 0 0;
					}
					&::before{
						content:url(../grp/logo.png);
						position:absolute;
						left:0;
						top:50%;
						margin-top:-32px;
					}
				}
				
			}
			> div{
				> a{
					background: linear-gradient(45deg, rgba(254,212,117,1) 0%,rgba(229,61,93,1) 50%,rgba(194,49,134,1) 70%,rgba(156,56,187,1) 100%);
					display:inline-block;
					padding:.2em .7em;
					font-size: .9rem;
					border-radius: 0 0 5px 5px;
					color:white;
					position:absolute;
					top:-20px;
					right:0;
					svg{
						margin:0 .3em 0 0;
						fill:white;
					}
					&:hover{
						padding-top:.5em;
					}
				}
				address{
					display:block;
					font-style:normal;
					color:rgb(var(--mainColor));
					text-align: right;
					svg{
						font-size:1rem;
						fill:rgb(var(--mainColor));
						margin:0 .3em 0 0;
					}
					span{
						font-weight: 600;
						font-size:1.5rem;
						a{
							color:rgb(var(--mainColor));
						}
					}
				}
			}
		}
		@media (max-width: 768px) {
			> div{
				display:block;
				padding-top:20px;
				#title{
					
					a{
						span{
							display:none;
						}
					}
				}
				> div{
					address{
						text-align: center;
						margin:10px auto 0 auto;
					}
				}
			}
		}
	}

	#grobalNav{
		background:white;
		border-bottom:1px solid silver;
		ul{
			width: min(var(--page_max),100%);
			margin:0 auto;
			display:grid;
			grid-template-columns: repeat(5,1fr);
			li{
				a{
					border-left:1px solid silver;
					font-size: 1.2rem;
					
					font-weight: 500;
					display:block;
					padding:.5em 0;
					color:rgb(var(--baceFontColor));
					&[aria-current="page"],[aria-current="page"]:hover{/*現在のページ*/
						background:rgb(var(--mainColor));
						color:white;
					}
					&:hover{
						color:rgb(var(--mainColor));
						background:yellow;
					}
				}
				&:last-child{
					a{
						border-right:1px solid silver;
					}
				}
			}
		}
		@media (max-width: 1200px) {
		}
		@media (max-width: 980px) {
			background:silver;
			ul{
				grid-template-columns: repeat(3,1fr);
				li{
					a{
						border-top:1px solid silver;
						border-left:1px solid silver;
						background:white;
					}
					&:nth-child(-n+3){
						a{
							border-top:none;
						}
					}
					&:first-child{
						display:block;
					}
					&:last-child{
						a{
							border-right:none;
						}
					}
				}
			}
		}
		@media (max-width: 650px) {
			ul{
				li{
					&:nth-of-type(2){
						grid-column: span 2;
					}
					&:nth-child(-n+3){
						a{
							border-top:1px solid silver;
						}
					}
				}
			}
		}
	}
	
	#preamble{
		padding:40px 0;
		margin:0 auto;
		width: min(calc(100% - 40px), var(--page_max));
		main{
			display:block;
			container-type: inline-size;
		}
		@media (max-width: 768px) {
		}
	}

	#preamble{/*2カラム対応*/
		main:has(> div > nav){
			display:grid;
			grid-template-columns: 230px 1fr;
			gap:30px;
			> div{
					&:nth-of-type(1){/*サブナビゲーション*/
						nav{
							position: sticky;
							top: 0;
							> * + *{
								margin-top:20px;
							}
							ul{
								&:not(:has(img)){/*imgを持っていないul*/
									border:2px solid rgb(var(--mainColor));
									border-radius: 10px;
									> * + *{
										border-top:1px dotted silver;
									}
									> li{
										a{
											font-size: 1.1rem;
											font-weight: 600;
											color:rgb(var(--baceFontColor));
											display:block;
											padding:.8em 10px;
											text-align: left;
											&[aria-current="page"],[aria-current="page"]:hover{/*現在のページ*/
												background:rgb(var(--mainColor));
												color:white;
											}
										}
										&:first-child{
											a{
												padding-top:1em;
											}
										}
										&:last-child{
											a{
												padding-bottom:1em;
											}
										}
									}
								}
								&:has(img){/*imgを持っている*/
									li{
										a{
											border-radius: 10px;
											overflow: hidden;
											display:block;
											&:hover{
												opacity: .75;
											}
										}
									}
								}
							}
						}
					}
					&:nth-of-type(2){/*メインボックス*/
						container-type: inline-size;
					}
			}
		}
		@media (max-width: 768px) {
			main:has(> div > nav){
				display:block;
				> div{
					&:nth-of-type(1){
						nav{
							ul{
								&:not(:has(img)){
									border:none;
									display:flex;
									flex-wrap:wrap;
									justify-content: start;
									gap:.5em 10px;
									> * + *{
										border-top:none;
									}
									> li{
										a{
											padding:.5em .7em;
											border-radius: 10px;
											border:2px solid rgb(var(--mainColor));
											br{
												display:none;
											}
										}
										&:first-child{
											a{
												padding-top:.5em;
											}
										}
										&:last-child{
											a{
												padding-bottom:.5em;
											}
										}
									}
								}
								&:has(img){
									display:none;
								}
							}
						}
					}
					&:nth-of-type(2){
						margin-top:30px;
					}
				}
			}
		}
	}
	
	.backtotop {/*ページトップに戻る*/
		position: fixed;
		right: 15px;
		bottom: 15px;
		z-index: 99;
		a{
			display:block;
			text-decoration:none;
			color: white !important;
			background:#333;
			padding:10px 15px;
			border-radius:5px;
			border:1px solid white;
			svg{
				width:30px;
				height:30px;
				fill:white;
			}
			&:hover {
				background:#999;
				fill: #42AFE3;
			}
		}
	}
	
	#breadcrumb{/*パンくずリスト*/
		ul{
			display:flex;
			justify-content: start;
			flex-wrap:wrap;
			li{
				font-size:.9rem;
				a{
					text-decoration:none;
					
				}
				&::before{
					content: '';
					display: inline-block;
					width: 12px;
					height: 12px;
					background-image: url('../svg/chevron_right.svg');
					background-size: contain;
					background-repeat: no-repeat;
					vertical-align: middle;
					margin:0 .5em;
				}
				&:first-child{
					&::before{
						background-image:none;
						margin:0 0 0 0;
						width:0;
						height:0;
					}
				}
			}
		}
	}
	
	#sns_btn{/*シェアボタン*/
		margin:0 auto;
		padding:10px 0;
		background:#f2f2f2;
		> div{
			width: min(calc(100% - 40px), var(--page_max));
			margin:0 auto;
			ul{
				display: grid;
				grid-template-columns: repeat(5, auto);
				justify-content: start;
				column-gap: 10px;
				li{
					> a{
						border:2px solid #eee;
						border-radius:.4rem;
						display:block;
						text-decoration: none;
						padding: .5em .7em;
						font-weight: bold;
						background:white;
						&:hover{
							color:white !important;
						}
					}
					&.facebook a {
						color: #3c5a99;
						border-color: #3c5a99;
						&:hover{
							background:#3c5a99;
						}
					}
					&.twitter a {
						color: #333;
						border-color: #333;
						&:hover{
							background:#333;
						}
					}
					&.hatena a {
						color: #009fd7;
						border-color: #009fd7;
						&:hover{
							background:#009fd7;
						}
					}
					&.pocket a {
						color: #ed374d;
						border-color: #ed374d;
						&:hover{
							background:#ed374d;
						}
					}
					&.line a {
						color: #01ba01;
						border-color: #01ba01;
						&:hover{
							background:#01ba01;
						}
					}
				}
				&:after {
					content: "";
					clear: both;
					display: block;
					height: 0;
				}
			}
		}
		@media (max-width: 768px) {
			> div{
				ul{
					grid-template-columns: repeat(3, 1fr);
					row-gap: 10px;
					li{
						a{
							padding:.5rem 0;
						}
					}
				}
			}
		}
	}
	
	footer#globalFooter{/*フッター*/
		position: sticky;
  	top: 100vh;
		padding:30px 0;
		background:rgb(var(--mainColor));
		color:white;
		> div{
			width: min(calc(100% - 40px), var(--page_max));
			margin:0 auto;
			position:relative;
			text-align: left;
			> div{
				h3{
					font-weight: 600;
					font-size: 1.6rem;
					i{
						display:block;
						font-size: .9rem;
						font-weight: 500;
					}
					span{
						font-size: 1.3rem;
						margin:0 .3em 0 0;
						font-weight: 600;
					}
					
				}
				address{
					span{
						a{
							color:white;
						}
					}
				}
			}
			#copyright{
				margin:20px auto 0 auto;
				font-size:.9rem;
				text-align: left;
			}
		}
	}

	/**************************/

	#tokuchou{
		display:grid;
		grid-template-columns: 2fr 3fr;
		gap:30px;
		figure{
			aspect-ratio: 3 / 2;
        position:relative;
        overflow: hidden;
				border-radius: 10px;
				img{
          min-width:100%;
						min-height:100%;
						object-fit: cover;
						position: absolute;
						top: 50%;
						transform: translate(-50%, -50%);
        }
		}
		div{
			h3{
				font-size: 1.4rem;
				padding-bottom:.2em;
				font-weight: 600;
				text-align: left;
				color:silver;
				border-bottom:2px solid silver;
			}
			p{
				margin:.7em auto 0 auto;
				text-align: left;
			}
		}
		@container (max-width: 650px) {
			display:block;
			div{
				margin:20px auto 0 auto;
			}
		}
	}

	table.jugyou_table{
		margin:20px auto 0 auto;
		width:min(860px,100%);
		border:2px solid rgb(var(--mainColor));
		tr{
			> *{
				border:1px solid silver;
				padding:.5em 10px;
			}
			th{
				background: rgba(var(--mainColor), .1);
				font-weight: 600;
				vertical-align: middle;
			}
			td{
				vertical-align: middle;
			}
		}
	}

	div.normal_table{
		@media (max-width: 640px) {
			overflow: auto;
			white-space: nowrap;
			&::-webkit-scrollbar{
				height: 15px;
			}
			&::-webkit-scrollbar-track{
				background: #F1F1F1;
			}
			&::-webkit-scrollbar-thumb{
				background: #BCBCBC;
			}
			table{
				width:100%;
			}
		}
	}