main section {
	padding: 40px 5%;
	@media screen and (min-width:1025px) { padding: 50px 0; }
	& article {
		@media screen and (min-width:768px) {
			max-width: 1200px;
			margin: 0 auto;
		}
	}
	& p.link { text-align: right; }
}
main section.heading {
	padding: 0 5%;
	@media screen and (min-width:768px) { padding: 0; }
	& article {
		padding: 60px 5% 300px;
		&::before { top: 0px; }
		@media screen and (min-width:768px) { padding: 80px 0 400px; }
	    & div {
	       & h1, & p {
	            letter-spacing: 10px;
	            line-height: 1.2;
	            font-family: 'M PLUS Rounded 1c';
	            font-size: 9.5vw;
	            font-weight: bold;
	            text-align: center;
	            @media screen and (min-width:768px) { font-size: 312.5%; }
	        }
	        & h1 {
	        	& span {
		        	font-size: 50%;
		        	display:block;
		        	@media screen and (min-width:768px) { font-size: 75%; }
		        }
	        }
	    }
	}
	& + section {
		margin-top: -280px;
		@media screen and (min-width:768px) { margin-top: -370px; }
		&::before, &::after {
			display: block;
			position: absolute;
			height: auto;
			z-index: -1;
		}
		&::before {
			content: url(../img/common/bg02.svg);
			width: 50%;
			right: 0;
			top: 460px;
			@media screen and (min-width:768px) {
				width: 405px;
				right: 50%;
				top: 110px;
				margin-right: 360px;
			}
		}
		&::after {
			content: url(../img/common/bg03.svg);
			top: 590px;
			width: 30%;
			left: 0;
			@media screen and (min-width:768px) {
				width: 220px;
				left: 50%;
				 top: 495px;
				margin-left: -610px;
			}
		}
		& article h2 {
			letter-spacing: 0;
			@media screen and (min-width:768px) { font-size: 187.5%; }
		}
	}
}
main {
	position: relative;
	width: 100%;
	&::before {
		content: "";
		display: block;
		background: url(../img/common/bg-main.svg) no-repeat;
		background-position: 120% center;
		background-size: 120%;
		opacity: 0.5;
		width: 50%;
		height: 350px;
		position: absolute;
		bottom: 0;
		z-index: -1;
		@media screen and (min-width:768px) {
			width: 500px;
			height: 1000px;
	        }
	}
}
main section article h2 {
	font-size: 6.93vw;
	margin-bottom: 15px;
	letter-spacing: 10px;
	text-align: center;
	@media screen and (min-width:768px) { font-size: 250%; }
}
main section.headline article h2 + p {
	font-size: 112.5%;
	font-weight: bold;
	@media screen and (min-width:768px) { text-align: center; }
}
main section article h3, main section article h4 {
	font-family: 'M PLUS Rounded 1c';
	font-weight: bold;
	line-height: 1.5;
}
main section article h3 {
	font-size: 5vw;
	margin: 30px 0 15px;
	@media screen and (min-width:768px) { font-size: 150%; }
}
main section article h4 {
	font-size: 4vw;
	margin: 20px 0 10px;
	@media screen and (min-width:768px) { font-size: 125%; }
}
.post-type-archive-post, .single-post, .single-member_news,
.post-type-archive-magazine, .single-magazine,
.about, .contact, .confirm, .error, .thanx, .privacy-policy, .site-policy {
	& main section article {
	        @media screen and (min-width: 768px) {
	            max-width: 950px;
	            margin: 0 auto;
	        }
	}
}
.scroll-table {
	overflow: auto;
	width: 79vw;
	height: 43vh;
	margin-bottom: 7vh;
	@media screen and (min-width:768px) { max-width: 1000px; }
	& table {
		white-space: nowrap;
		width: 100%;
	}
}
.overflow {
	overflow-x: auto;
	width: 100%;
	max-width: calc(90vw - 40px);
	min-width: 0;
	& table {
		width: 100%;
		& tr th, & tr td { white-space: nowrap; }
	}
}
a.web::after {
	content: url(../img/common/ico-blank.svg);
	display: inline-block;
	vertical-align: middle;
	width: 1em;
	margin-left: 5px;
}
.tml-login{
	@media screen and (min-width:768px) {
		max-width: 600px;
		margin: 0 auto 1em;
	}
	& .tml-log-wrap, .tml-pwd-wrap {
		display: flex;
		gap: 0 10px;
		& .tml-label {
			white-space: nowrap;
		}
		& input {
			padding: 0 15px;
			background-color: #e4e4e4;
		}
		& + p img { width: auto; }
	}
	& #siteguard_captcha {
		padding: 10px 15px;
		background-color: #e4e4e4;
	}
	& .tml-submit-wrap button {
		background-color: #333333;
		color: #ffffff;
		border-radius: 35px;
		display: block;
		margin: 20px auto 0;
		padding: 10px 30px;
		width: fit-content;
	}
	& .tml-lostpassword-link {display: none;}
	& + p {
		@media screen and (min-width:768px) {
			text-align: center;
			font-weight: bold;
		}
	}
}
.pagination h2 {display:none;}
.nav-links {
	display: flex;
	gap: 0 20px;
	justify-content: center;
	margin-top: 20px;
	& .current { font-weight: bold; }
}
ol {
	list-style: auto;
	margin: 1em 0 1em 2em;
}
.error404 section.heading + section article > div {
	background: #ffffff;
	border: 1px solid #333333;
	border-radius: 20px;
	padding: 20px;
	@media screen and (min-width:768px) { padding: 40px; }
}
ul.study-flow {
	margin-top: 30px;
	@media screen and (min-width:768px) {
		width: 600px;
		margin: 30px auto 0;
	}
	&::after {
		content: "";
		background: url(../img/common/img_study.png) no-repeat;
		background-size: contain;
		display: block;
		position: absolute;
		width: 60px;
		height: 100px;
		right: -15px;
		bottom: auto;
		top: 10px;
		@media screen and (min-width:768px) {
			width: 110px;
			height: 195px;
			right: -80px;
			top: 5px;
		}
	}
}
@media screen and (min-width: 768px) {
	ul.study-flow li:last-child::before { left: -4%; }
	ul.study-flow li:last-child::after { right: -4%; }
}
main section > article > div:not(:first-of-type) {
	margin-top: 20px;
	@media screen and (min-width:768px) { margin-top: 40px; }
}

/*まなぶ・はたらく*/
.learning main section.items, .work main section.work_cat article {
	position: relative;
	z-index: 1;
	& h2 { line-height: 1.2; }
	& h2 + p {
		@media screen and (min-width: 768px) { text-align: center; }
	} 
	& ul {
		margin-top: 30px;
		display: grid;
		gap: 10px;
		@media screen and (min-width:768px) { grid-template-columns: repeat(2, 1fr); }
		@media screen and (min-width:1025px) { grid-template-columns: repeat(3, 1fr); }
		& li a {
			display: grid;
			gap: 0 10px;
			grid-template-columns: 80px 1fr;
			background-color: #ffffff;
			border: 2px solid #333333;
			border-radius: 20px;
			padding: 5px 15px;
			text-decoration: none;
			align-items: center;
			&:hover {
				background-color: #e5efcb;
				opacity: 1;
			}
			& .ico {
				text-align: center;
				 img {
					object-fit: contain;
					height: 80px;
				}
			}
			& div {
				display: flex;
				align-items: center;
				height: 2em;
				font-weight: bold;
				line-height: 1.2;
				&::after {
					content: url(../img/common/ico-arrow.png);
					display: block;
					transform: scale(0.6);
				}
			}
		}
	}
}
.work main section.work_cat article ul li a:hover { background-color: #f9efda; }
.learning #colorbox section > p.lead {
	margin-bottom: 10px;
	font-size: 112.5%;
	font-weight: bold;
	line-height: 1.5;
	@media screen and (min-width:768px) { font-size: 125%; }
	& strong {
		background: linear-gradient(transparent 60%, #bde593 30%);
	}
}
.learning #colorbox section ul.anchor {
	display: flex;
	gap: 0 1.5em;
	font-size: 87.5%;
	flex-wrap: wrap;
	margin-top: 10px;
	& li a {
		display: flex;
		align-items: center;
		&::after {
			content: "";
			display: block;
			transform: rotate(90deg);
			height: 1em;
			width: 1em;
			background: url(../img/common/ico-arrow.png);
			background-size: contain;
		}
	}
}
.learning #cboxLoadedContent { scroll-behavior: smooth; }
.learning #colorbox section article {
	padding-top: 40px;
	& > div {
		& h4, & h5, & h6 {
			font-weight: bold;
			line-height: 1.5;
		}
		& h4 {
			font-family: 'M PLUS Rounded 1c';
			font-size: 150%;
			margin-bottom: 10px;
		}
		& h5 {
			font-size: 125%;
			margin-top: 15px;
			@media screen and (min-width:768px) { margin-top: 0; }
		}
		& p strong {
			background: linear-gradient(transparent 60%, #bde593 30%);
			font-weight: normal;
		 }
		& p em {
		 	font-weight: bold;
		 	& strong { font-weight: bold; }
		 }
		& > div { margin-top: 15px; }
		& .wp-block-gallery {
			margin-top: 5px;
			@media screen and (min-width:768px) {
				display: grid;
				grid-template-columns: repeat(2, 1fr);
				gap: 10px;
			}
		}
		& figure {
			& img {
				border: 1px solid #333333;
				border-radius: 20px;
			}
		}
		& figure + figure {
			margin-top: 5px;
			@media screen and (min-width:768px) { margin-top: 0; }
		}
		& figcaption {
			font-size: 75%;
			line-height: 1.3;
			margin-top: 5px;
		}
		& .wp-block-columns {
			@media screen and (min-width:768px) {
				display: grid;
				grid-template-columns: repeat(2, 1fr);
				gap: 40px;
			}
		}
	}
}
#cboxOverlay  { background: rgb(0, 0, 0); }
#cboxWrapper {
	background: #ffffff;
	border: 2px solid #333333;
	border-radius: 30px;
}
#cboxTopLeft, #cboxTopCenter, #cboxTopRight, #cboxMiddleLeft, #cboxMiddleRight, #cboxBottomLeft, #cboxBottomCenter, #cboxBottomRight {background: none;}
#cboxLoadedContent {
	overflow: auto !important; 
	box-sizing: border-box !important;
}
.members #cboxLoadedContent{ 
	margin-bottom: 100px !important;
	@media screen and (min-width:768px) { margin-bottom: 80px !important; }
}
.learning #cboxLoadedContent {
	height: calc(85vh - 100px) !important; 
}
.work #cboxLoadedContent {
	margin-bottom: 100px !important;
	height: auto !important;
	@media screen and (min-width:768px) { margin-bottom: 80px !important; }
}
.work #colorbox section h3 { margin-bottom: 40px; }
#cboxClose {
	position: absolute; 
	z-index: 10;
	bottom: 30px;
	right: 50%;
	transform: translateX(50%);
	width: auto !important;
	height: auto !important;
	padding: 10px 30px;
	border: 1px solid #333333;
	border-radius: 32px;
	background-color: #ffffff;
	background-image: none;
	font-size: 0;
	text-indent: 0;
	&::before {
		content: "閉じる";
		color: #333333;
		font-size: 20px;
		vertical-align: bottom;
	}
	&::after {
		content: url(../img/common/ico-close.png);
              display: inline-block;
		vertical-align: middle;
		margin-left: 10px;
	}
}
#colorbox section {
	padding: 10px;
	@media screen and (min-width:768px) { padding: 30px ; }
	& h3 {
		font-family: 'M PLUS Rounded 1c';
		font-weight: bold;
		font-size: 187.5%;
		img {
			width: 50px;
			margin-right: 0.5em;
		}
	}
	& article ul {
		list-style: disc;
		margin: 10px 0 10px 1.5em;
	}
}
.learning #colorbox section h3 + p {
	text-align: right;
	margin: 5px 0 15px;
	font-size: 125%;
	line-height: 1;
	& span {
		font-weight: bold;
		font-size: 70%;
		margin-left: 0.5em;
		display: inline-block;
	}
}
.work main section.headline article {
	& .visual {
		width: 70%;
		margin: 30px auto 0;
		@media screen and (min-width: 768px) { width: 400px; }
	}
	& ul {
		margin-top: 20px;
		display: grid;
		gap: 10px;
		justify-content: center;
		@media screen and (min-width: 768px) { display: flex; }
		& li a {
			background: #ffffff;
			text-decoration: none;
			display: block;
			font-size: 4vw;
			padding: 10px 15px;
			border: 1px solid #333333;
			border-radius: 35px;
			@media screen and (min-width: 768px) {
				font-size: 100%;
				padding: 10px 30px;
			}
			& div {
				display: flex;
				align-items: center;
				height: 2em;
				line-height: 1.2;
				&::after {
					content: url(../img/common/ico-arrow.png);
					display: block;
					transform: scale(0.6) rotate(90deg);
				}
			}
		}
	}
}
.work main section.work_cat article:last-child {
	margin-top: 60px;
	@media screen and (min-width: 768px) { margin-top: 100px; }
	& ul {
		margin-bottom: 60px;
		@media screen and (min-width: 768px) { margin-bottom: 100px; }
	}
}
figure.wp-block-video {
	margin: 1em auto !important;
	@media screen and (min-width:768px) { width: 70%;}
	& video {
		width: 100%;
		height: auto;
		display: block; 
	}
	& figcaption {margin-top: 5px;}
}
figure.illust {
	& img { border: none !important; }
	& figcaption { display: none; }
}
/*会員校一覧*/
.member-facilities div table th {
	vertical-align: middle; 
	background-color: #f4f4f4;
	text-align: center;
}
.member-facilities main section article .committee {
	@media screen and (min-width:768px) {
		display: grid;
		grid-template-columns: repeat(2, auto);
		width: auto;
		justify-content: center;
		& h3 { grid-column: 1/3;}
	}
	& ul li a {
		background-color: #333333;
		color: #ffffff;
		text-decoration: none;
		padding: 3px 15px;
		border-radius: 15px;
	}
	& ul li:not(:last-child) {margin-bottom: 10px;}
}
/*機関誌*/
.post-type-archive-magazine main section.heading + section article > div {
	background: #ffffff;
	border: 1px solid #333333;
	border-radius: 20px;
	padding: 20px;
	@media screen and (min-width:768px) { padding: 40px; }
	& h3 { margin: 0 0 15px; }
	& ul {
		list-style: disc;
		margin-left: 1.5em;
		@media screen and (min-width:768px) { column-count: 4; }
	}
}
.single-magazine main section article  div ul  {
	& li:not(:last-child) { margin-bottom: 20px; }
	& li > dl > dd > dl {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		& dt {
			font-weight: normal;
			width: 100%;
			text-indent: -1.3em;
			margin-left: 1.3em;
			&::before { content: "● ";}
		}
		& dd { margin-left: 1em; }
		& dd.writer { margin-left: auto; }
	}
}

/*当機構について*/
.about main section.heading + section article > div:has(.photo) {
	@media screen and (min-width:768px) {
		display: grid;
		gap: 0 40px;
		grid-template-columns: calc(80% - 40px) 20%;
		h2 {grid-column: 1/3;}
	}
	& .photo {
		margin: 0 auto;
		width: 60%;
		@media screen and (min-width:768px) {
			grid-row: 2/7;
			grid-column: 2/3;
			width: 100%;
			& img {
				width: 100%;
				margin: 0 0 20px 0;
			}
		}
		& p {
			font-weight: bold;
			& span {
				font-size: 75%;
				display: block;
			}
		}
	}
}
.about main section article div.outline ol {
	@media screen and (min-width:768px) { column-count: 2; }
}
@media screen and (min-width:768px) {
	.about main section article div.officer {
		display: grid;
		grid-template-columns: 130px 1fr;
		align-items: baseline;
		& h2 { grid-column: 1 / 3; }
		& h3 { margin: 0 0 15px;}
	}
}
.about main section article div.officer dl dd {
	display: inline-block;
	line-height: 1.5;
	width: 100%;
	@media screen and (min-width:768px) { width: 32%; }
	& span {
		font-size: 75%;
		display: inline-block;
		margin-left: 0.5em;
	}
}
.about main section article div.officer dl dt { margin: 15px 0 5px; }
.about main section article div.officer dl:last-child dd {
	width: 30%;
	@media screen and (min-width:768px) { width: 11%; }
}
.about main section article div.records dl {
	@media screen and (min-width:768px) { column-count: 2; }
	& dt { font-weight: normal;}
	& dd {margin-left: 1.3em;}
	& dd:not(:last-child) {margin-bottom: 15px;}
}
/*会員専用ページ*/
.members main section article div.member_news {
	background: #ffffff;
	border: 1px solid #333333;
	border-radius: 20px;
	padding: 20px;
	@media screen and (min-width: 768px) {
		padding: 40px;
		max-width: 950px;
		margin: 0 auto;
	}
}
.members main section article div.member_news ul {
	display: grid;
	gap: 20px;
	max-height: 40vh;
	overflow-y: auto;
	@media screen and (min-width: 768px) { max-height: initial; }
	& li {
		display: grid;
		gap: 0 20px;
		grid-template-columns: auto 1fr;
	}
}
.members main section article ul.other-contents {
	padding-top: 80px;
	display: grid;
	gap: 20px 0;
	@media screen and (min-width: 768px) {
		padding-top: 100px;
		grid-template-columns: repeat(3, 1fr);
		gap: 0 40px;
		margin: 0 auto 50px;
	}
	& li {
		position: relative;
		transition: 0.7s;
		&:hover { transform: scale(1.2); }
		& a {
			font-size: 6.4vw;
			font-weight: bold;
			display: block;
			text-decoration: none;
			text-align: center;
			background-color: #ffffff;
			padding: 1em;
			border: 1px solid #333333;
			border-radius: 62px;
			@media screen and (min-width: 768px) { font-size: 150%; }
			&:hover { opacity: 1; }
			&::after {
				content: url(../img/common/ico-arrow.png);
				display: inline-block;
				vertical-align: middle;
				margin-left: 0.5em;
				line-height: 1;
			}
		}
		&::after {
			content: '';
			display: block;
			width: 100%;
			height: 100%;
			background: url(../img/top/bg-data.svg);
			position: absolute;
			top: 10px;
			left: 10px;
			border: 1px solid #333333;
			border-radius: 61px;
			z-index: -1;
		}
	}
}
.members #cboxLoadedContent section ul {
	list-style: disc;
	margin-left: 1.5em;
}
.single main .heading + section {
	& article > div {
		& h1 {
			font-family: 'M PLUS Rounded 1c';
			font-weight: bold;
			line-height: 1.5;
			font-size: 5vw;
			@media screen and (min-width:768px) { font-size: 187.5%; }
		}
		& .date {
			margin-bottom: 40px;
			text-align: right;
		 }
		 & p { overflow-wrap: break-word }
	}
}
/*お問い合わせ*/
form {
	margin-top: 20px;
	& dl {
		margin-bottom: 20px;
		& dt span {
			background-color: #f49981;
			color: #ffffff;
			font-weight: normal;
			font-size: 75%;
			padding: 1px 1em;
			border-radius: 10px;
			margin-left: 10px;
		}
		& dd {
			margin-top: 5px;
			& input, & textarea {
				background-color: #f4f4f4;
				width: 100%;
				padding: 10px;
			}
		}
	}
	& .policy {
		border: 1px solid #cccccc;
		padding: 20px;
		height: 20vh;
		overflow-y: auto;
		& h3 {
			margin: 0 0 15px;
			font-size: 4vw;
			@media screen and (min-width: 768px) { font-size: 150%; }
		}
	}
	& > p { text-align: center; }
	& input[type=submit] {
		text-decoration: none;
		background-color: #333333;
		color: #ffffff;
		margin-top: 20px;
		display: inline-block;
		padding: 20px 30px;
		border-radius: 35px;
		line-height: 1;
	}
}
.confirm main section article > div dl dd span { display: none; }

/*コラム/お知らせ*/
.post-type-archive main .heading + section article > div,
.wp-singular main .heading + section article > div {
	background: #ffffff;
	border: 1px solid #333333;
	border-radius: 20px;
	padding: 20px;
	@media screen and (min-width: 768px) { padding: 40px; }
}
.post-type-archive main .heading + section article > div {
	& table tr th {
		display: block;
		padding: 0.5em 0.5em 0;
		@media screen and (min-width: 768px){
			padding: 0.5em;
			display: table-cell;
		}
	}
	& table tr td {
		display: block;
		padding: 0 0.5em 0.5em;
		@media screen and (min-width: 768px){
			padding: 0.5em;
			display: table-cell;
		}
	}
	& table.topics {margin-bottom: 40px;}
}
.post-type-archive-column main .heading article div h1,
.single-column main .heading article div p {
	letter-spacing: 8%;
	@media screen and (min-width: 768px) { letter-spacing: 10px; }
}
.single-column main .heading + section article > div {
	display: flex;
	flex-direction: column;
	@media screen and (min-width: 768px) {
		display: grid;
		gap: 0 40px;
		grid-template-columns: 1fr 20%;
		& h1, & .date { grid-column: 1 / 3; }
	}
	& h1 {
		font-family: 'M PLUS Rounded 1c';
		font-weight: bold;
		line-height: 1.5;
		font-size: 5vw;
		@media screen and (min-width:768px) { 
			font-size: 187.5%;
			text-align: center;
		}
	}
	& h2 {
	  	font-size: 4vw;
	  	text-align: left;
	  	@media screen and (min-width:768px) { font-size: 150%;}
	}
	& .date {
		margin-bottom: 40px;
		text-align: right;
	 }
	  & p { overflow-wrap: break-word }
	 & p strong {
	 	background: linear-gradient(transparent 60%, #b5e8ed 30%);
	 	font-weight: normal;
	 }
	 & .wp-block-gallery {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
		margin: 10px 0;
		& > figure {
		 	width: calc((100% - 10px) / 2);
		 	@media screen and (min-width:768px) { width: calc((100% - 20px) / 3);}
		}
	 }
	& .control{
		order: 2;
		& .wp-block-group__inner-container {
			display: grid;
			justify-content: center;
			gap: 0 20px;
			@media screen and (min-width:768px) { grid-template-columns: auto auto;}
			  & p.link a, & p.before a {
			  	padding: 10px 20px;
				display: flex;
				align-items: center;
				text-align: justify;
				font-size: 87.5%;
				&::after { transform: scale(0.5); }
			  }
			 & p.before a {
				flex-direction: row-reverse;
				&::after {
					transform: rotate(180deg) scale(0.5);
			 	}
			 }
		}
	}
	& .wp-element-caption {font-size: 75%;}
}
.single-column main section article > div > div {
	display: contents;
	@media screen and (min-width:768px) { display: block; }
	& .wp-block-group {
		margin: 30px 0 10px;
	}
}
.single-column main section article > div div p:has(.wp-post-image) {
	margin: 0 auto 10px;
	text-align: center;
	@media screen and (min-width:768px) { 
		width: 45%;
		float: inline-start;
		padding: 0 20px 0 0;
	}
}
.single-column main section article > div .author {
	margin: 0 auto;
        width: 60%;
        order: 1;
        display: block;
        @media screen and (min-width: 768px) {
		margin: 0;
	        width: 100%;
        }
        & img {
        	margin: 20px 0;
        	@media screen and (min-width: 768px) { margin: 0 0 20px 0; }
        }
        & .name {
        	font-weight: bold;
        	& span {
        		font-weight: normal;
        		font-size: 75%;
        	}
        }
        & p:last-child {
        	font-size: 87.5%;
        	line-height: 1.5;
        }
}
.single-post, .single-member_news {
	& main section article div {
		& a { color: #4a85df;
			&:has(img)::before { display: none; }
		}
		& figure {
			max-width: 300px;
			margin: 20px auto;
			border: solid 1px #E0E0E0;
			
		}
		& .has-text-align-center { text-align: center;}
		& .wp-block-list + .wp-block-list { margin-top: 20px; }
		& .gray {
			margin: 20px 0;
			background-color: #f1f1f1;
			padding: 15px;
		}
	}
}