/*コンテンツメニュー*/
#header_under {
	height: auto;
	width: 100%;
	margin-block: 0.7rem;
}

#contentMenu {
	height: auto;
	width: var(--theme-layout-width);
	margin-right: auto;
	margin-left: auto;
	display: flow-root;
	padding-bottom: 0px;
}

.box205 p {
	line-height: 3.7em;
}

.leaf1,.leaf2,.leaf3 {
	padding-left: 60px;
	padding-top: 150px;
}

.leaf1 {
	background: url(../../images/leaf1.png) no-repeat 0px 155px;
}
.leaf2 {
	background: url(../../images/leaf2.png) no-repeat 0px 155px;
}
.leaf3 {
	background: url(../../images/leaf3.png) no-repeat 0px 155px;
}
/*コンテンツメニューここまで*/

/*レイアウト設定
---------------------------------------------------------------*/
#container {
	background: #FFFFFF;
	margin-bottom: 0px;
	padding-top: 10px;
}
#wrap {
	height: auto;
	width: var(--theme-layout-width);
	display: flow-root;
	margin-right: auto;
	margin-left: auto;
	padding-bottom: 10px;
}
#content {
	float: left;
	width: 66%;
	/*width: 650px;*/
	margin-top: 0px;
}

@media (max-width: 767px) {
	#container {
		padding-top: 0;
	}

	#wrap {
		width: 100%;
		padding: 0 1rem 1rem;
	}

	#content {
		float: none;
		width: 100%;
	}

	#newsArea dt:nth-of-type(n + 6),
	#newsArea dd:nth-of-type(n + 6) {
		display: none;
	}

	#newsArea dt {
		float: none;
		width: auto;
		padding: 0 0.5rem;
	}

	#newsArea dd {
		margin: 0 0 0.8rem;
	}

	#newsArea dd a {
		padding: 0 0.5rem 0.5rem;
	}

}
/* 寄付金募集 */
#content_d {
	margin-top: 0px;
}
#content :is(h1, h2),
#content_d :is(h1, h2) {
	font-size: 1.35rem;
	border-left: solid 13px var(--theme-green);
	padding-left: 0.75rem;
	margin: 0.5rem 0 1.2rem;
	min-height: 2.5rem;
	align-content: center;
	font-family: inherit;
	font-style: inherit;
	font-weight: inherit;
}
#content h3,
#content .not-found-title,
.newspost h3 {
	font-size: 16px;
	font-weight: bold;
	border-left: solid 6px var(--theme-green);
	border-bottom: solid 1px var(--theme-green);
	padding: 4px 4px 4px 12px;
	margin: 0 0 15px;
	/*font-weight: bold;
	padding: 0 5px;
	margin-top: 3px;
	margin-bottom: 3px;*/
}
#content p, #content_d p {
	line-height: 2em;
	padding-left: 8px;
	margin-bottom: 15px;
}
#content ol {
    list-style: decimal;
    margin: 0 0 2px 2em;
}
#content li {
    margin: 0 0 4px 0em;
    line-height: 120%;
}

/*ニュースエリア*/

#newsArea {
	margin-top: 0px;
}

#newsArea > h2 {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: inherit;
}

#newsArea dl{
	margin: 0 0 20px;
}

#newsArea dt{
	width: 190px;
	clear: left;
	float: left;
	list-style: none;
	line-height: 140%;
	padding:0 10px;
}

#newsArea dd {
	margin-left: 200px;
	margin-bottom: 0.8em;
}

#newsArea dd a{
	display: block;
	padding: 0 10px 10px 10px;
}

.school{
	color:#000000;
	margin:0 10px;
	font-size:8px;
	background: #ffffff;
	border:2px solid #E80000;
}

.event{
	color:#0059B3;
	margin:0 10px;
	font-size:8px;
	background: #ffffff;
	border:2px solid #0059B3;
}

.news{
	color:#000000;
	margin:0 10px;
	font-size:8px;
	background: #ffffff;
	border:2px solid #DBB500;
}
/*ニュースエリアここまで*/

.box205 {
	float: left;
	height: auto;
	width: 205px;
	margin-left: 18px;
	padding-top: 0px;
	margin-bottom: 0px;
	padding-bottom: 0px;
}
#contentMenu img {
	float: left;
	margin-top: 12px;
	padding-top: 0px;
}
.box205 h2 {
	margin-top: 0px;
	margin-bottom: 8px;
}

/* フォーム
------------------------------------------------------------*/
input[type="text"],
textarea {
	vertical-align:middle;
	max-width:90%;
	line-height:30px;
	height:30px;
	padding:1px 5px;
	border:1px solid #d4d4d7;
	border-radius:3px;
	font-size:100%;
	color:#555;
	background:#fcfcfc;
}

textarea{
	height:auto;
	line-height:1.5;
}

input[type="submit"],
input[type="reset"],
input[type="button"] {
	padding:3px 10px;
	background: #2a588b;
	background: linear-gradient(to bottom, #2a588b 0%,#214a78 100%);
	border:0;
	border-radius:3px;
	line-height:1.5;
	font-size:100%;
	color:#fff;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
	background: #2a588b;
	background: linear-gradient(to bottom, #214a78 0%,#2a588b 100%);
}


/* NEWS
------------------------------------------------------------*/
.newspost h3 span {
	font-size: 12px;
	color: #888;
}

.news-content {
	margin: 0 0 20px;
	padding: 0 8px;
}

.news-content summary {
	cursor: default;
	list-style: none;
}

.news-content summary::-webkit-details-marker {
	display: none;
}

.news-content__preview {
	display: -webkit-box;
	max-height: 6em;
	overflow: hidden;
	color: var(--theme-text);
	line-height: 2em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.news-content__toggle {
	display: inline-block;
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--theme-link);
	cursor: pointer;
	font: inherit;
	text-decoration: underline;
}

.news-content__toggle--close,
.news-content[open] .news-content__toggle--open {
	display: none;
}


.news-content[open] .news-content__toggle--close {
	display: inline-block;
}

.news-content__body {
	margin-top: 12px;
	padding: 12px;
	border-left: 3px solid var(--theme-green);
	background: #f7f7f3;
}

@media (max-width: 767px) {
	#content .news-content__body {
		overflow-wrap: anywhere;
	}

	#content .news-content__body :is(table, pre, code) {
		overflow-wrap: normal;
	}
}

.news-content[open] .news-content__preview {
	display: none;
}

#content .news-content__body p {
	padding-left: 0;
}

.newspost {
	margin-bottom: 28px;
}

/* Classic Editor tables with legacy presentational attributes. */
#content .newspost table:is([border], [cellpadding], [cellspacing]):not(.wp-block-table table) {
	border-collapse: collapse;
}

#content .newspost table:is([border], [cellpadding], [cellspacing]):not(.wp-block-table table) > :is(thead, tbody, tfoot) > tr > :is(th, td),
#content .newspost table:is([border], [cellpadding], [cellspacing]):not(.wp-block-table table) > tr > :is(th, td) {
	padding: 3px;
	text-align: center;
	vertical-align: middle;
}

.pagination {
	margin-top: 30px;
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}

.pagination a,
.pagination span {
	display: block;
	min-width: 2.25em;
	padding: 0.4em 0.6em;
	border: 1px solid var(--theme-green);
	text-align: center;
	text-decoration: none;
}

.pagination .current {
	color: #fff;
	background: var(--theme-green);
}

.pagination__jump {
	display: flex;
	gap: 4px;
	align-items: center;
}

.pagination__jump input {
	width: 5em;
	min-width: 0;
	padding: 0.4em;
	border: 1px solid var(--theme-green);
}

.pagination__jump button {
	display: none;
	padding: 0.4em 0.6em;
	border: 1px solid var(--theme-green);
	background: #fff;
	color: var(--theme-link);
	cursor: pointer;
}

.pagination__jump:focus-within button,
.pagination__jump.is-active button {
	display: block;
}

.pagination__jump button:hover {
	background: #f7f7f3;
}

/* 前後ページへのリンク
------------------------------------------------------------*/
.prevnext {
	font-family: Verdana,sans-serif;
	color: #8bc124;
	margin-top: 30px;
	display: flow-root;
}

.prevnext a {
	color: #8bc124;
}

.prevnext a:hover {
	color: #ff8800;
}

.prev {
	margin: 0;
	float: left;
}

.next {
	margin: 0;
	float: right;
}

/* 個別投稿: 前後の記事 */
.post-navigation {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	margin-top: 30px;
	font-family: inherit;
}

.post-navigation__link,
.post-navigation__status {
	display: grid;
	gap: 3px;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #d8d8d0;
	border-radius: 3px;
	background: #fff;
	color: var(--theme-link);
	text-decoration: none;
}

.post-navigation__link:hover {
	border-color: var(--theme-green);
	background: #f7f7f3;
	color: var(--theme-link);
}

.post-navigation__label {
	color: #8bc124;
	font-size: .9em;
	font-weight: bold;
}

.post-navigation__title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 1.05em;
	font-weight: bold;
	line-height: 1.45;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.post-navigation__date {
	color: #ff8800;
	font-size: .9em;
}

.post-navigation__link--next {
	text-align: right;
}

.post-navigation__status {
	border-color: #ddd;
	background: #f5f5f5;
	color: #777;
	text-align: right;
}

.post-navigation__status .post-navigation__label {
	color: #999;
}

@media (min-width: 768px) {
	.post-navigation--has-previous {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* 記事の個別ページ
------------------------------------------------------------*/
.postdate {
	color: #ff8800;
	font-weight: bold;
}

/* FAQ
------------------------------------------------------------*/
#faq-block .faq-answer {
	width: 630px;
	height: auto;
}


/*ーーーーーーーーーーーーーーーー*/
/*　　MW WP Formカスタマイズ　　*/
/*ーーーーーーーーーーーーーーーー*/



.mw_wp_form input[type="email"],
.mw_wp_form input[type="tel"],
.mw_wp_form input[type="text"],
.mw_wp_form textarea {
	width: 100%;
	padding: 1em;
	font-size: 15px;
	border: 1px solid #ccc;
}

.mw_wp_form select {
	display: block;
	width: 80%;
	height: 38px;
	padding: 0 10px;
	font-size: .9rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}


/*――――「表」デザイン――――*/

.cform th {
	/*font-size: 15px;*/
	width: 35%; 
	border-bottom: solid 1px #d6d6d6;
	padding: 10px 0px 10px 15px;
	font-weight: bolder;
}


.cform td {
	/*font-size: 15px;*/
	line-height: 200%;
	border-bottom: solid 1px #d6d6d6;
	padding: 10px 10px;
}


/*―――――表示―――――*/

.cform {
	width: 94%;
	margin: auto;
}


.cform option,
.cform textarea,
.cform input[type=text],
.cform input[type=email],
.cform input[type=search],
.cform input[type=url] {
	width: 90%;
}



@media only screen and (max-width:767px) {
	.cform th,
	.cform td {
		width: 97%;
  border: 1px solid #999;
  padding: .5em 1em;
		display: block;
		border-top: none;
	}
}

/*――「送信ボタン」デザイン――*/

.submit-btn input {
background-color:#ebbbbb;
border:0;
color:#ffffff;
font-size:1.3em;
font-weight:bolder;
margin:0 auto;
padding: 10px 35px;
border-radius: 3px;
cursor: pointer;
text-align:center;
}

.submit-btn {
	margin-top: 20px;
	text-align: center;
}

.submit-btn input:hover {
	background: #EF5B9C;
	color: #FFFFFF;
}


/*―――「必須」デザイン―――*/
.required-srt {
font-size:0.9em;
padding: 6px;
border-radius: 5px;
margin-right: 10px;
background: #ff0000;
color: #ffffff;
}

/*―――「任意」デザイン―――*/
.optional-srt {
font-size:0.9em;
padding: 6px;
border-radius: 5px;
margin-right: 10px;
background: #000080;
color: #ffffff;
}

/* デスクトップ共通レイアウト: 現行の960px幅・比率を保って配置を安定化する。 */
@media (min-width: 768px) {
	#wrap {
		display: grid;
		grid-template-columns: 66% var(--theme-sidebar-width);
		justify-content: space-between;
	}

	#wrap > section,
	#content {
		min-width: 0;
	}

	/* 固定ページのアイキャッチは本文・サイドバーの前の全幅行に置く。 */
	#wrap > .wp-post-image {
		grid-column: 1 / -1;
	}

	#wrap > section {
		grid-column: 1;
	}

	#wrap > #menu {
		grid-column: 2;
	}

	#content,
	#menu {
		float: none;
	}

	#content {
		width: auto;
	}

	#contentMenu {
		display: flex;
		align-items: flex-start;
	}

	#contentMenu > img,
	.box205 {
		float: none;
	}

	#contentMenu > img {
		flex: 0 0 289px;
	}

	.box205 {
		flex: 0 0 205px;
	}

	.inner2 {
		display: flex;
		justify-content: space-between;
	}

	#copy_box {
		float: none;
	}
}

/*
 * PC presentation compatibility
 *
 * The structural refactor keeps labels and contact information as HTML so
 * narrow layouts can reflow them later. Until that mobile presentation is
 * designed, retain the established desktop artwork and dimensions.
 */
@media (min-width: 768px) {
	/* Top-page introduction: preserve the original 289 + 3 × 205px layout. */
	#contentMenu.home-introduction__inner {
		display: flex;
		align-items: flex-start;
	}

	.home-message {
		flex: 0 0 289px;
	}

	#contentMenu .home-message > img {
		display: block;
		float: none;
		width: 289px;
		margin-top: 12px;
		padding-top: 0;
	}

	.home-feature-list {
		display: flex;
		align-items: flex-start;
		margin: 0;
		padding: 0;
	}

	.home-feature {
		flex: 0 0 205px;
		width: 205px;
		margin-left: 18px;
		padding: 0;
	}

	.home-feature__link {
		display: block;
	}

	.home-feature__title {
		height: 29px;
		margin: 0 0 8px;
		overflow: hidden;
		background-repeat: no-repeat;
		background-position: 0 0;
		font-size: 0;
		line-height: 0;
	}

	.home-feature--principles .home-feature__title {
		background-image: url(../../images/top_rinen.gif);
	}

	.home-feature--year .home-feature__title {
		background-image: url(../../images/top_1nen.gif);
	}

	.home-feature--career .home-feature__title {
		background-image: url(../../images/top_shinro.gif);
	}

	#contentMenu .home-feature__image {
		display: block;
		float: none;
		width: 205px;
		height: 135px;
		margin: 0;
		padding: 0;
	}

	.home-feature__more {
		display: block;
		padding-left: 60px;
		line-height: 3.7em;
		background-repeat: no-repeat;
	}

	.home-feature__more::before {
		content: ">>>";
	}

	.home-feature--principles .home-feature__more {
		background-image: url(../../images/leaf1.png);
	}

	.home-feature--year .home-feature__more {
		background-image: url(../../images/leaf2.png);
	}

	.home-feature--career .home-feature__more {
		background-image: url(../../images/leaf3.png);
	}

	/* The legacy News & Topics title was a 650 × 82px image link. */
	#newsArea.news-area {
		margin-top: 0;
	}

	#newsArea .news-area__header {
		position: relative;
		width: 650px;
		height: 82px;
		margin: 0;
		padding: 0;
		background: url(../../images/newsTitle.png) no-repeat 0 0;
	}

	#newsArea .news-area__header > div {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	#newsArea .news-area__title,
	#newsArea .news-area__subtitle {
		margin: 0;
		padding: 0;
		border: 0;
		font: inherit;
	}

	#newsArea .news-area__archive-link {
		position: absolute;
		inset: 0;
		overflow: hidden;
		text-indent: 100%;
		white-space: nowrap;
	}

	#newsArea .news-area__header:hover {
		opacity: 0.6;
	}

}
