@import url("base.css");

*{
	box-sizing:border-box;
}
body,html {
    margin: 0 !important;
    padding: 0 !important;
/*    background-color:#f8f8f8;*/
	background-color:#fff8f8;
}
a{
	color:#000 !important;
	text-decoration:none;
}
a:hover{
	/*color:rgb(212, 181, 114) !important;*/
	color:rgb(212, 114, 114) !important;
}
a img:hover{
	opacity:0.8;
}

h2{
	margin:50px 0;
}

h2 .section-title-ja{
	font-size:32px;
}

dl, ol{
    margin: 0 !important;
}
ul,ol{
	margin-left:0 !important;
	padding-left:1.4em;
}

#page{

}

#masthead{
	position: fixed;
	left: 0;
    top: 0;
    width: 100%;
    height:120px;
    padding: 15px 80px;
    z-index: 10;
    background:#fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
#masthead .site-branding{

	position:absolute;
	left:80px;
	top:15px;
	height:80px;
}
#masthead .site-branding a.logo{
	display:block;
	width:400px;
	height:90px;
/*	background:url(/img/logo_machiokoshi.svg);*/
	background:url(/img/logo_machiokoshi_20220706.svg);
	background-repeat:no-repeat;
}

/* SP menu */

#nav-open {
    display: none;
}
.nav-unshown {
	display:none;
}

#nav-close {
	display: none;/*はじめは隠しておく*/
	position: fixed;
	z-index: 2;
	top: 64px;/*全体に広がるように*/
	left: 0;
	width: 100%;
	height: calc(100vh - 64px);
	background: #000000;
	opacity: 0.0;

}

/* SP menu */
#site-navigation {
	display:none;
}

/* PC menu */
#masthead #header-links ul{
	display:flex;
	justify-content:flex-end;

	list-style-type:none;
}

#masthead #header-links ul li{
	margin-right:1em;
	padding:0.2em 1em;
    /*background:#ead9a5;*/
    background: #eaa5a5;
}
#masthead #header-links ul li:last-child{
	margin-right:0;
}
#gnav{

	display:flex;
	justify-content:flex-end;
	margin:16px 0 !important;
	padding:0;
	list-style-type:none;
}

#gnav > li{

	position:relative;
	padding:1px 0;
	font-size:18px;
	font-weight:700;
}
#gnav > li:not(:last-child){
	border-style:solid;
	border-width:0 1px 0 0;
	border-color:rgb(230,230,230);
}
#gnav > li > a{
	margin:0 0.6em;
	font-family:"Shimanami JIS2004";
}
#gnav > li:first-child > a{
	margin-left:0;
}
#gnav > li:last-child > a{
	margin-right:0;
}
#gnav > li > div{
	display:none;
}
#gnav > li:hover > .gnav-box {
	display:block;
}
#gnav > li .gnav-box{
	position:absolute;
	left:calc((8em - 480px) / 2);
	top:auto;

	padding-top:8px;
}


#gnav > li .gnav-box .inner{

	width:480px;
	padding:40px;
	color:rgb(0, 0, 0) !important;
	/*background-color:rgba(212, 181, 114, 0.95);*/
	background-color: rgba(212, 114, 114, 0.95);
	zoom: 1;
}

#gnav > li .gnav-box a, #gnav > li .gnav-box a:hover{
	color:rgb(0, 0, 0) !important;
}
#gnav > li .gnav-box .menu-head{
	margin-bottom:24px;
	padding-bottom:8px;
	font-size:32px;
	border-bottom:solid 1px rgb(76, 49, 0);
}
#gnav > li .gnav-box ul.sub-menu{
	display:flex;
	flex-wrap:wrap;
	margin-bottom:0;
	padding-left:0;
/*	list-style-type:disc;*/
	list-style-type:none;
}
#gnav > li .gnav-box ul.sub-menu li{
	width:100%;
	margin-bottom:1.2em;
	font-size:20px;
	font-weight:normal;
}

#gnav > li .gnav-box ul.sub-menu li a{
	width:100%;
}

#gnav > li .gnav-box ul.sub-menu .sub-menu{
	padding-left:1em;
	/*list-style-type: "-"*/
	list-style-type: disc;
}
#gnav > li .gnav-box ul.sub-menu .sub-menu li{
	margin-left:2em;
}

footer#colophon {
    width: 100%;
    margin: 120px auto 0;
    padding: 20px 80px;
    text-align:center;
    background-color: #ddd;
    /*background: linear-gradient(to right, #ead9a5 0%, #ead9a5 50%, #cca11f 80%, #997817 90%, #66500f 100%);*/
	background: linear-gradient(to right, #eaa5a5 0%, #eaa5a5 50%, #cc1f1f 80%, #991717 90%, #660f0f 100%);
}


#primary{
	padding-top:120px;
}
.home-mv{
	padding:0;
	/*background-color:#3b2f08;*/
	background-color:#3b0808;
}
.home-mv-slide a:hover{
	color:#444 !important;
}
.home-mv-slide a:hover .home-mv-slide-img {
	opacity:0.9;
}

.home-mv-slide-item {
	position:relative;
	padding:0;
}

.home-mv-slide-img {
    width: 100%;
    margin: 0 auto;
    height: 40vw !important;

	position: relative;
    background: url() center no-repeat;
    background-size: cover;
}
.slick-current .home-mv-slide-img {
}

.home-mv-slide-charm {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
	padding:40px;
    background:rgba(255,255,255,0.85);
}
.home-mv-slide-charm img{
	display:block;
	width:80%;
	margin:auto;
}
.home-mv-slide-charm .note{
	display:block;
	margin-top:16px;
	font-size:18px;
	text-align:center;
	white-space: nowrap;
	color:#333;
}

.home-mv-slide-charm-upper{
	top:10%;
	bottom:auto;
}
.home-mv-slide #event-banner{
	position:absolute;
	top:1em;
	left:1em;
	max-width:calc(100% - 2em);
}
.home-mv-slide #event-banner img{
	max-width:100%;
}

.top-section-1{
	display:flex;
	flex-wrap:wrap;
	justify-content:space-between;
	width:100%;
	max-width:1280px;
	margin:auto;
}

section#news{
	width:46%;
	max-width:640px;
	margin:0 0 24px;
}

#pr{
	width:50%;
	max-width:640px;
	margin:50px 0 24px;
	padding:32px 48px;
	/*background:#ead9a5;*/
	background:#ffcece;
}
#pr h2{
	margin:0 0 24px;
	text-align:center;
}

#pr-list{

	display:flex;
	flex-wrap:wrap;
	justify-content:space-between;

	margin:4em 0;
	padding:0;
	list-style-type:none;
}
#pr #pr-list{
	margin:0;
}

#pr-list:after {
	display: block;
	content:"";
	width:calc((100% - 48px) / 3);
}

#pr-list li{
	position:relative;
	width:calc((100% - 48px) / 3);
	margin-bottom:48px;
	padding-bottom:16px;
	border-bottom:solid 1px rgba(102, 80, 15, 0.90);
}
#pr #pr-list li{
	width:calc((100% - 48px) / 2);
}

#pr-list li .photo{
	position:relative;
	width:100%;
	margin-bottom:1em;
}
#pr-list li .photo:before{
	content:"";
	display: block;
	padding-top: 75%; /* h = w * 0.75 */
}

#pr-list li .photo figure{
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	margin:0 !important;
	background-size:cover !important;
	background-position:center !important;
}

#pr-list li a{
	display:flex;
	flex-direction: column;
	height:100%;
}
#pr-list li a:hover .photo figure{
	opacity:0.8;
}
#pr-list li .note{
	flex: 1 0 auto;
}
#pr-list li .note .title{
	padding-bottom:32px;
	font-weight:bold;
}

#pr-list li .sub .date{
	font-size:12px;
	color:rgb(140,140,140);
}

#pr-list li .sub .category{
	font-size:10px;
	text-decoration:none;
	color:rgb(140,140,140);
}

#pr-list li .sub .arrow{
	position:absolute;
	right:0;
	text-decoration:none;
	bottom:16px;
}

.list-bottom{
	width:16em;
	margin:auto;
}



#news #news-list{
	margin:0 0 48px 0;
	padding:0;
	list-style-type:none;
}

#news #news-list li{
	padding:0 1em;
	border-bottom:dotted 1px rgb(230,230,230);
}
#news #news-list li:first-child{
	border-top:solid 1px rgb(230,230,230);
}
#news #news-list li:last-child{
	border-bottom:solid 1px rgb(230,230,230);
}

#news #news-list li a{
	display:table;
	table-layout:fixed;
	margin:19px 8px 17px 0;
}

#news #news-list li .date{
	width:200px;
	display:table-cell;
	font-weight:bold;
}
#news #news-list li .title{
	display:table-cell;
}

#sponsor {
	width:100%;
	max-width:1280px;
	margin:0 auto 24px;
}

#sponsor #sponsor-list{
	display:flex;
	flex-wrap:wrap;
	justify-content:space-between;

	margin:0;
	padding:0;
	list-style-type:none;
}

#sponsor #sponsor-list li{
	position:relative;
	width:calc((100% - 64px) / 3);
	margin-bottom:48px;
}

#relation_contents {
	width: 100%;
	max-width: 1280px;
	margin: auto;
}
.relation_contents_area {
	display: flex;
}
.relation_contents_area div {
	text-align: center;
}
.relation_contents_area div img {
	border: 1px solid #bbb;
}
.relation_contents_area div a span{
	display: block;
}


@media only screen and (max-width: 799px) {
}

/* 第2階層 */
main header{
	background:url('/img/belt_0.jpg');
	background-position:center top 40%;
	background-size:cover;
}
main.page-learn header{
	background:url('/img/belt_1.jpg');
	background-position:center;
	background-size:cover;
}
main.page-see header{
	background:url('/img/belt_2.jpg');
	background-position:center top 70%;
	background-size:cover;
}
main.page-visit header{
	background:url('/img/belt_3.jpg');
	background-position:center top 45%;
	background-size:cover;
}

#breadcrumb{
	width:100%;
	margin:0 auto;
	padding:10px 80px;
	background-color:#ddd;
	/*background: linear-gradient(to right, #ead9a5 0%, #ead9a5 50%, #cca11f 80%, #997817 90%, #66500f 100%);*/
	background: linear-gradient(to right, #eaa5a5 0%, #eaa5a5 50%, #cc1f1f 80%, #991717 90%, #660f0f 100%);
}

#breadcrumb ul {
  margin:0;
  padding-left:4px;

  font-size:88%;
}

#breadcrumb ul li{
  display:inline;
  list-style: none;
}

#breadcrumb ul li:after{
  content: ' > ';
  padding: 0 3px;
  color: #000000;
}

#breadcrumb ul li:last-child:after{
  content: '';
}

#breadcrumb ul li a {
	color:#000000;
}

#breadcrumb ul li:first-child a:before{/* home icon */
  font-family: FontAwesome;
  content: '\f015';
  font-weight: normal;
  font-size: 1.1em;
  margin-right:0.2em;
}

#breadcrumb ul li a:hover {
    text-decoration: underline;
}
#breadcrumb br{
	display: none;
}

article{
	width:100%;
/*	max-width:960px; */
}

article .entry-header{
	padding:60px 0;
	background-color:#eee;
}

article h1{
	font-size:3em;
	font-family: "Midashi Min MA31";
	color:#fff;
	text-shadow:  2px  2px 10px #666,
		-2px  2px 10px #666,
		2px -2px 10px #666,
		-2px -2px 10px #666;
}

article h1, article h2, article h3{
	font-family: "Ryumin Medium KL";
}

article h1{
	text-align:center;
}
article h2{
	font-size:32px;
	margin-top:calc(4em - 160px); /* fixed相殺 */
	padding-top:160px; /* fixed相殺 */
	z-index:1;
}
article h2:after{
    content: "";
    display: block;
    height: 10px;
    /*background: linear-gradient(to right, #cca11f 0%, #997817 70%, #66500f 100%);*/
	background: linear-gradient(to right, #cc1f1f 0%, #991717 70%, #660f0f 100%);
}
article h3{
	font-size:24px;
}
article h3:before{
    margin-right: 0.4em;
    content:"●";
    /*color:#cca11f;*/
    color:#cc1f1f;
}
article p + h3{
	margin-top:2em;
}
article a{
	z-index:10; /* fixed相殺でh2のpadding下に潜るのを防ぐ */
}

article .entry-content, article .entry-footer{
	max-width:960px;
	margin:auto;
}
article .entry-content p{
	line-height:2;
}

article .external{
	margin-top:40px;
}
article .external a{
	display:inline-block;
	padding:0.6em 2em;
	color:#997817 !important;
	border:solid 1px #997817;
}
article .external a:hover{
    background: rgba(153, 120, 23, 0.2);
}

article .external a:after{/* external icon */
  font-family: FontAwesome;
  content: "\f2d2";
  font-weight: normal;
  font-size:12px;
  margin-left:1em;
}
article .external:hover{
}

article .flex-list{
	display:flex;
	flex-wrap:wrap;
	justify-content:space-between;
	margin-left:0;
	padding:0;
	list-style-type:none;
}
.pamphlet-list > li{
	width:calc((100% - 24px * 2) / 3);
}
.pamphlet-list > li h3{
	text-align:center;
}
.pamphlet-list > li ul{
	margin-left:0;
	padding-left:32px;
}
.pamphlet-list > li ul li a{
	text-decoration:underline;
}
.location-list li{
	/*width:calc((100% - 24px * 3) / 4);*/
	width:calc((100% - 24px * 3) / 3);
	text-align:center;
	margin-bottom: 1em;
}
.location-list li span.location_caption:before {
	content: "\A";
	white-space: pre ;
}
.location-list li a{
	text-decoration:underline;
}
.location-list li a:after{/* external icon */
  font-family: FontAwesome;
  content: "\f2d2";
  font-weight: normal;
  font-size:12px;
  margin-left:0.6em;
}


.event_list {
	font-size: larger;
	line-height: 2;
}
.event_list li a {
	text-decoration: underline;
	color: #f44336!important;
}



#page-top {
    position: fixed;
    width: 80px;
    height: 80px;
    right: 16px;
    bottom: 16px;
    background-color: #505168;
    opacity: 0.7;
    border-radius: 50%;
    z-index: 10;
}

.page-top-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align:center;
    transform: translate(-50%,-50%);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    line-height:1.6em;
}

.button {
    display: block;
    position: relative;
    margin: 0.6em auto;
    padding: 0.6em 1em;
    background-color: rgba(102, 80, 15, 0.90);
    color: #fff !important;
    text-align: center;
    border-radius: 3px;
}

.button:hover{
	color:#fff !important;
    background-color: rgba(102, 80, 15, 0.50);
}


.clear-text {
    overflow: hidden;
    font-size: 0;
    text-indent: 100%;
    white-space: nowrap;
}

.gothic{
	font-family: "UD Shin Go Regular", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", "Meiryo", "verdana", sans-serif;
}
.mincho{
	font-family: "Ryumin Medium KL", mrs-eaves,Yu Mincho,YuMincho,"ヒラギノ明朝 ProN W3",Hiragino Mincho ProN,"HG明朝E","ＭＳ Ｐ明朝","ＭＳ 明朝",serif;
}


/* アコーディオン */
.ac-menu{
  width: 100%;
  margin: 1em 0;
}

.ac-menu label{
	display: block;
	margin: 0;
	padding: 1em;
	/*background:rgba(102, 80, 15, 0.90);*/
	background:rgba(102, 15, 15, 0.90);
	color: #fff;
	border: 1px solid #fff;
	cursor:pointer;
}

.ac-menu label:before {
    content: '\f054';
    font-family: 'FontAwesome';
    padding-right: 1em;
}


.ac-menu input[type="checkbox"].on-off{
  display: none;
}

.ac-menu div{
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	-ms-transition: all 0.5s;
	-o-transition: all 0.5s;
	transition: all 0.5s;
	margin:0;
	padding:2em;
	list-style: none;
    background:#fff;
}
.ac-menu input[type="checkbox"].on-off + label + div{
  height: 0;
  padding: 0 2em;
  line-height:1.6;
  overflow: hidden;
}
.ac-menu input[type="checkbox"].on-off:checked + label +div{
  height: auto;
  padding:2em;
}

/*アイコンを入れ替える*/
.ac-menu input[type="checkbox"].on-off:checked + label:before {
    content: '\f078';
}

.first-element{
	margin-top:120px;
	margin-bottom:80px;
}


/* 問い合わせフォーム */
.mw_wp_form form > label{
	display:block;
	margin:1.4em 0;
}
.form-required {
    font-weight: bold;
    color: #ed1a3d;
}
#terms{
	height: 7em;
	margin: 2em 0 1em 0;
	padding: 0.5em 1em;
	overflow-y: scroll;
	background:#fff;
	border: solid 1px #000000;
}

.instructor_info_area {
	display: flex;
	margin-bottom:2em;
}
.instructor_info_area div {
	width: auto;
	line-height:1.5;
	margin: 1em;
}

.fes_image_area {
	display: flex;
}
.fes_image_area > div:first-of-type {
	width: 50%;
	text-align: center;
	margin-right: 3em;
}

.mw_wp_form .mwform-radio-field{
	display:block;
	margin-left:10px;
}

.mw_wp_form .form-submit{
	text-align:center;
}
.mw_wp_form .form-submit input[type="submit"]{
	padding:1em 2em;
}

@media only screen and (max-width: 1280px) {
	section {
	    padding: 0 0 0 40px;
	}

	#masthead .site-branding a.logo{
		width:300px;
		height:34px;
		/*background:url(/img/logo_machiokoshi.svg) no-repeat;*/
		background:url(/img/logo_machiokoshi_20220705a.svg) no-repea;
	}

	#news #news-list li a {
	    display: block;
	    margin: 19px 8px 17px 0;
	}

	#news #news-list li .date {
	    width: 100%;
	    display: block;
	}

	#news #news-list li .title {
	    display: block;
	}
}

@media only screen and (max-width: 979px) {

	#gnav > li{
		font-size:13px;
	}

	#gnav > li .gnav-box{
		left:auto;
		right:0;
		max-width:100%;
	}


	.home-mv-slide-charm {
		padding: 1em;
	    font-size:24px;
	}

	section{
		padding:0 20px;
	}

	section#pickup #pickup-list li {
	    width: calc((100% - 48px) / 3);
	}
	section#pickup #pickup-list li:nth-child(n + 9) {
		display:block;
	}

	.fes_image_area {
		flex-direction: column;
		align-items: center;
	}
	.fes_image_area > div:first-of-type {
		width: auto;
		text-align: center;
		margin-right: 0;
		margin-bottom: 3em;
	}

	.fes_image_area > div:first-of-type img {
		margin-right: 0!important;
	}

}
@media only screen and (max-width: 799px) {

	#masthead{
		height:56px;
	}

	header .site-branding{
		float:none;
		text-align:center;
	}
	header .site-branding{
		left:8px !important;
		top:12px !important;
		height:32px !important;
		
	}
	#masthead .site-branding a.logo{
		width:240px;
		height:32px;
		/*background:url(/img/logo_machiokoshi.svg) no-repeat;*/
		background:url(/img/logo_machiokoshi_20220705a.svg) no-repea;
	}
	#nav-open{
		display:block;
		position: absolute;
		top: 12px;
		right: 12px;
		margin: auto;
	}

	#nav-open img{
		width: 32px;
		height: 32px;
	}

	#nav-input:checked ~ #nav-close {
		display: block;/*カバーを表示*/
		opacity: 0.7;
	}

	#header-links{
		display:none;
	}

	#nav-input:checked ~ #site-navigation{
		display: block;
	}

	#site-navigation{
		display: none;
	    position: fixed;
	    top: 56px;
	    left: 0;
	    width: 100%;
	    max-height: calc(100vh - 56px);
	    overflow-y: auto;
	    text-align: left;
	    /*background:rgba(102, 80, 15, 0.90);*/
	    background: rgba(102, 15, 15, 0.90);
	    z-index: 10;
	}
	#site-navigation > ul{
		display:block;
	    width: 100%;
	    /*padding: 20px;*/
	    padding: 20px 20px 6em 20px;
	    list-style-type: none;
	}
	#site-navigation > ul > li{
		padding:0.8em 1em;
		/*font-size:20px;*/
		font-size:16px;
		color:#fff !important;
		border-bottom:solid 1px #eee;
	}
	#site-navigation > ul > li > a{
		font-weight:bold;
	}
	#site-navigation > ul > li:first-child{
		border-top:solid 1px #eee;
	}
	#site-navigation > ul > li > ul{
		display:block !important;
		margin-top:0.4em;
		/*list-style:"-";*/
		list-style: none;
		font-size:16px;
	}	#site-navigation > ul > li > ul li{
		padding-left:0.4em;
		line-height:1.6 !important;
	}
	#site-navigation > ul > li > ul > li > ul > li {
		list-style: "-";
	}
	#site-navigation > ul li a{
		width:100% !important;
		color:#fff !important;
	}
	#gnav {
		display:none;
	}

	#breadcrumb{
		padding:10px 8px !important;
	}

	.home-mv{
		padding:0;
	}

	.home-mv-slide-item {
	    padding:0;
	}

	.home-mv-slide-img {
	    height: 100vw !important;
	}

	.home-mv-slide-charm {
	    font-size:16px;
	}

	#primary{
		padding-top:56px;
	}

	h2 .section-title-ja {
	    font-size: 24px;
	}

	.top-section-1 {
	    display: block;
	}

	section#news, section#pr {
	    width: 100%;
	    max-width:100%;
	}

	section#news h2, section#pr h2{
		margin:32px 0;
	}

	#pr-list li{
		width:100% !important;
	}

	section#pickup #pickup-list li {
	    width: calc((100% - 20px) / 2);
	}

	section#pickup #pickup-list li:nth-child(n + 9) {
		display:none;
	}

	article .entry-header h1{
		font-size:32px;
	}
	article .entry-content{
		padding:0 20px;
	}
	article h2{
		font-size:24px;
		margin-top:calc(4em - 120px); /* fixed相殺 */
		padding-top:120px; /* fixed相殺 */
	}

	.pamphlet-list > li{
		width:100%;
		margin-bottom:2em;
	}
	.pamphlet-list > li h3{
		text-align:left;
	}
	.photo-list figure{
		width:100% !important;
	}
	.photo-list img{
		max-width:100% !important;
	}

	.instructor_info_area {
		flex-direction: column;
		align-items: center;
	}
	.instructor_info_area div {
		margin: 0;
	}

	.location-list li{
		width:calc((100% - 24px * 1) / 2);
		margin-bottom:2em;
	}
	footer#colophon{
		padding:20px;
	}
}
.movie-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}
.movie-wrap iframe {
    position: absolute;
    top: 0;
    right: 0;
    width: 100% !important;
    height: 100% !important;
    background: #ddd;
}


.no-active {
	display:none;
}
.lecture_alert {
	text-align: center;
	color: #ff0000;
	font-weight:bold;
	font-size:22px;
}


a.link {
	color: #d47272!important;
	text-decoration: underline;
}


@media only screen and (max-width: 479px) {

	.home-mv-slide-charm .note{
		font-size:15px;
	}
}