/* 
Theme Name:wakanya
*/
@charset "utf-8";
/* CSS Document */
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
font-family: 'Courgette', cursive;
font-family: 'Noto Sans JP', sans-serif;
font-family: 'Noto Serif JP', serif;
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
/*font: inherit;*/
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers
*/
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/*====================*/

body{
    font-family: 游明朝,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Hiragino Mincho Pro",HGS明朝E,メイリオ,Meiryo,serif;    
    font-family: 'Noto Serif JP', serif;
    font-size:16px;
    line-height:1.5;
    letter-spacing:0.02em;
    font-weight: 500;
    color:#333;
}

*{
    position: relative;
    box-sizing: border-box;
}

a{
    text-decoration: none;
    color: #333;
}

header a[href^="tel:"] {
	color:#fff;
}

/*記事内の画像*/
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em !important;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em !important;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto !important;
	margin-right: auto !important;
}

table.aligncenter,
table.alignright,
table.alignleft{
	display:table;
}

table.flex_table.aligncenter,
table.flex_table.alignright,
table.flex_table.alignleft{
	float:none;
}

.mincho{
	font-family: "游明朝", YuMincho, "Hiragino Mincho ProN W3", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
}

.noborder{
	border:0 !important;
	box-shadow:none !important;
}

/* head */
header{
    justify-content: center;
    align-items: center;
    background-image: url("./img/header2.jpg");
}

header section{
    margin: auto;
    padding:.5em 1em;
    max-width: 1200px;
}

header h1{
	text-align:center;
}

header h1 a{
    display:inline-block;
    font-size: 200%;
    font-weight: bold;
    letter-spacing:.5em;
    color: white;
    text-decoration:none;	
}

header p{
    position:absolute;
    vertical-align:middle;
    display:flex;
    align-items:center;
    height:100%;
    margin:auto;
    font-size: 130%;
    color: white;
    top:0;
    right:0;
}

/* main image */
#main_image{
    z-index: 99;
}

.slider img{
    margin-bottom:5px;
    width: calc(100% - 1em);
    max-width: 936px;
    height: auto;
    box-shadow:2px 2px 5px #666;
}

#main_image p{
	position:absolute;
    display:flex;
    align-items:center;
    justify-content:center;
	margin:-5em auto 0;
	color:#fff;
	font-weight:bold;
	top:0;
	bottom:0;
	left:0;
	right:0;
}

#main_image p span{
	display:block;
	font-size:200%;
	text-shadow:2px 2px 2px #333;
}

/*menu*/
#top_nav{
    max-width: 1200px;
    margin: 2em auto;
}

#top_nav ul{
    display: flex;
    justify-content: space-between;
}

#top_nav li{
    width: 100%;
    text-align: center;
}

#top_nav a{
    display:inline-block;
    font-weight:bold;

}

#top_nav a:first-letter{
    color:#BC0000;
}

#top_nav a span{
    margin: auto;
    position: relative;
}

#top_nav a span::before{
    position: absolute;
    content: "";
    margin: auto;
    width: 60px;
    height: 2em;
    background-image: url("./img/1.png");
    background-repeat: no-repeat;
    background-size: contain;
    top: 0;
    bottom: 0;
    left: -70px;
}

#top_nav ul li:nth-child(2) a span::before{
    background-image: url("./img/2.png");
    left: -40px;
}

#top_nav ul li:nth-child(3) a span::before{
    background-image: url("./img/3.png");
    left: -35px;
}

#top_nav ul li:nth-child(4) a span::before{
    background-image: url("./img/4.png");
    left: -40px;
}

#top_nav ul li:nth-child(5) a span::before{
    background-image: url("./img/5.png");
    width: 35px;
    left: -45px;
}

#top_nav ul li a::after{
    position: absolute;
    display: block;
    content: '';
    margin: auto;
    width: 0;
    height: 3px;
    background: #BC0000;
    left: 0;
    right: 0;
    bottom: -8px;
    transition: .5s;
}

#top_nav ul li.carrent a::after,
#top_nav ul li a:hover::after{
    width: 100%;
}

/*main_wrap*/
#main_wrap{
    display: flex;
    justify-content: center;
}

/* news */
#news{
    margin-bottom:1.2em;
}

#news h3{
    display: table;
    margin-bottom:1.2em;
    padding: .5em 60px;
    color: #BC0000;
    font-size: 150%;
}

#news h3::before{
    position: absolute;
    display: block;
    content: '';
    margin: auto;
    background-image: url("./img/h3_bg_left.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 51px;
    height: 40px;
    top: 0;
    bottom: 0;
    left: 0;
}

#news h3::after{
    position: absolute;
    display: block;
    content: '';
    margin: auto;
    background-image: url("./img/h3_bg_right.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 51px;
    height: 40px;
    top: 0;
    bottom: 0;
    right: 0;
}

#news ul{
    margin-bottom: 1em;
}

#news li{
    display: flex;
    margin-bottom:1em;
    padding: .5em;
    border-bottom: 1px dashed #999;
}

#news li .date{
    display: inline-block;
    color: #AC6C2C;
    width: 15%;
}

#news li .info{
    display: inline-block;
    width: 85%;
}

#news .info a{
    text-decoration: underline;
}
#news .info a:hover{
    text-decoration: none;
}
#news p{
    text-align: right;
}
#news p a{
    display: inline-block;
    text-decoration: underline;
    background-color: #BC0000;
    color: white;
    padding: .5em 1.5em;
}
#news p a:hover{
    text-decoration: none;
}

/* main */
#main{
    padding: 1em 3em;
    max-width: 1200px;
    width: 100%;
    order: 2;
margin-bottom: 8em;
}

#main #cont p:not(.wrapimg){
    margin-bottom:1.5em;
}

#main #cont img{
    max-width:100%;
    height:auto;
}

#main #cont iframe{
display:block;
	margin:auto;
    max-width:1024px;
    width:100%;
}

#main #cont h3{
    clear:both;
    display: table;
    margin-bottom:1.2em;
    padding: .5em 60px;
    color: #BC0000;
    font-size: 150%;
}

#main #cont h3::before{
    position: absolute;
    display: block;
    content: '';
    margin: auto;
    background-image: url("./img/h3_bg_left.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 51px;
    height: 40px;
    top: 0;
    bottom: 0;
    left: 0;
}

#main #cont h3::after{
    position: absolute;
    display: block;
    content: '';
    margin: auto;
    background-image: url("./img/h3_bg_right.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 51px;
    height: 40px;
    top: 0;
    bottom: 0;
    right: 0;
}

#main #cont h4{
    clear:both;

    margin-bottom:1.2em;
    padding: .2em 50px;
    font-size: 140%;
    color: #BC0000;
}

#main #cont h4::before{
    display: block;
    position: absolute;
    content: '';
    background-image: url("./img/h4_bg.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 40px;
    height: 42px;
    top: 0;
    bottom: 0;
    left: 0;
}

#main #cont h5{
    clear:both;

    display: inline-block;
    margin-bottom:1.2em;
    padding: .2em 60px;
    font-size: 130%;
    color: #BC0000;
}

#main #cont h5::before{
    position: absolute;
    display: block;
    content: '';
    width: 50px;
    height: 4px;
    border-top: 1px solid #BC0000;
    border-bottom: 1px solid #BC0000;
    top: calc(50% - 4px);
    left: 0;
}

#main #cont h5::after{
    position: absolute;
    display: block;
    content: '';
    width: 50px;
    height: 4px;
    border-top: 1px solid #BC0000;
    border-bottom: 1px solid #BC0000;
    top: calc(50% - 4px);
    right: 0;
}

#main #cont h6{
    display: inline;
    color: #BC0000;
    font-size: 120%;
    border-bottom: 1px dashed #BC0000;
}

#main_wrap #main #cont ul{
	margin-bottom:1.5em;
}

#main_wrap #main #cont ul li{
	margin-left:1.5em;
	margin-bottom:.5em;
}

#main_wrap #main #cont ul li:before {
	display: block;
	position: absolute;
	content: '';
	margin: auto;
	width: .5em;
	height: .5em;
	background-color: #BC0000;
	border-radius:25px;
	top:.5em;
	left: -1.5em;
}

#main_wrap #main #cont ol{
	margin-bottom:1.5em;
}

#main_wrap #main #cont ol li{
	margin-left:1.5em;
	margin-bottom:.5em;
	counter-increment: olNum1;

}

#main_wrap #main #cont ol li:before {
	display: block;
	position: absolute;
	content: '';
	margin: auto;
	width: 1em;
	height: 1em;
	background-color: #BC0000;
	border-radius:5px;
	top:.25em;
	left: -1.5em;
}

#main_wrap #main #cont ol > li:after{
	position: absolute;
	display:flex;
	justify-content:center;
	align-items:center;
	width: 1em;
	height: 1em;
	border-radius: 25px;
	color: #fff;
	top: .25em;
	left: -1.5em;
	content: counter(olNum1);
}


#main #cont table{
    margin-bottom:1.5em;
	max-width:100%;
    border-top: 1px solid #BC0000;
    border-left: 1px solid #BC0000;
}

#main #cont th{
	vertical-align:middle;

    padding: .5em 1em;
    color: #fff;
    border-right: 1px dotted #fff;
    border-bottom: 1px dotted #fff;
    background-color: #BC0000;
}

#main #cont tr > th:last-child{
    border-right: 1px solid #BC0000;
}

#main #cont td{
    padding: 1em;
    background:rgba(255,255,255,0.8);
    border-right: 1px solid #BC0000;
    border-bottom: 1px solid #BC0000;
}

#main #cont th > :last-child,
#main #cont td > :last-child{
	margin-bottom:0;
}

#main #cont table.flex_table,
#main #cont table.flex_table > tbody{
	display:block;
	max-width:100%;
	border:0;
}

#main #cont table.flex_table > tbody > tr{
	display:flex;
}

#main #cont table.flex_table > tbody > tr > td{
	display:block;
	padding:.5em;
	width:auto !important;
	background:transparent;
	border:0;
}

#main #cont table.flex_table > tbody > tr > td table.flex_table td{
	padding:.5em;
}

#main #cont table.flex_table.aligncenter > tbody > tr{
	justify-content:center;
}

#main #cont table.flex_table.aligncenter > tbody > tr > td{
	width:auto !important;
}

#main #cont table.flex_table.alignright > tbody > tr{
	justify-content:flex-end;
}


#main #cont table.flex_table.al_center > tbody > tr{
	align-items:center;
}

#main #cont table.flex_table.eq_width > tbody > tr > td{
	width:100% !important;
}

table.tb_noborder,
table.tb_noborder > tbody,
table.tb_noborder > tbody > tr,
table.tb_noborder > tbody > tr > th,
table.tb_noborder > tbody > tr > td{
	border:0 !important;
	background:none !important;
}

/*sub_cont*/

#main #cont_foot{
    margin:auto;
    display: flex;
    align-items:center;
    justify-content:space-between;
    padding:1em;
}

#main #cont_foot > section:first-of-type{
	padding-right:1em;
}

#main #cont_foot{
    padding: .5em;
    min-width:245px;
    order: 1;
}

#main #cont_foot h4{
    display:inline-block;
    margin-bottom:0;
    padding:.2em 2em;
    color:#fff;
    text-align: center;
    font-size:100%;

    background:#BC0000;
}

#main #cont_foot h4:before{
    display:none;	
}

#main #cont_foot h5{
      display:block;
    padding:.5em;
    margin-bottom:1em;
    color:#BC0000;
    font-weight:bold;
    font-size:100%;
    border-bottom:1px dotted #BC0000;
}

#main #cont_foot table table{
    margin-bottom:1em;
    font-size:80%;
	border:0;

}

#main #cont_foot table table th{
	padding:.2em;
	color:#BC0000;
	background:transparent;
	border:0;
	white-space:pre;
}

#main #cont_foot table table td{
	padding:.2em;
	background:transparent;
	border:0;
}

#main #cont_foot table table td p{
	white-space:pre;

}

#main #cont_foot h5:before,
#main #cont_foot h5:after{
    display:none;	
}



#sub_right{
    padding: .5em;
margin-bottom: 8em;
    min-width:245px;
    order: 3;
}

#sub_right p{
	margin-bottom:1.5em;
}

#sub_right img{
	max-width:100%;
	height:auto;
}

#sub_right p.btn a{
    display:block;
    padding:.5em;
    color:#fff;
    text-align:center;
    background:#8b90be;
	border:1px solid #8b90be;
	transition:.2s;
}

#sub_right p.btn:hover a{
	color:#8b90be;
	background:#fff;
}

#sub_right h5{
    padding:.5em;
    margin-bottom:1em;
    color:#BC0000;
    font-weight:bold;
    border-bottom:1px dotted #BC0000;
}

#sub_right h6{
	margin-bottom:1em;
	padding:0 .5em;
	border-left:3px solid #BC0000;
}


#sub_right table{
	margin-bottom:1em;
    width: 100%;
    font-size:70%;
    border-top: 1px solid #BC0000;
    border-left: 1px solid #BC0000;
}

#sub_right th{
    padding: .5em;
    color: #fff;
    border-right: 1px solid #BC0000;
    border-bottom: 1px solid #BC0000;
    background-color: #BC0000;
}

#sub_right td{
    padding: .5em;
    border-right: 1px solid #BC0000;
    border-bottom: 1px solid #BC0000;
    background-color: #fff;
}

#sub_right tr td:first-of-type,
#sub_right td span{
	color:#f10;
}

#sub_right tr td:last-child{
	color:#3f51b5;
}

#sub_right td p{
	margin:0;
}

/* page */
#p_list{
    padding: .5em;
    margin: 0 auto;
    max-width: 1200px;
}

#breadcrumb{
    display: flex;
    justify-content: flex-end;
    font-size:80%;
}

#breadcrumb li::after{
    margin-left: .5em;
    content: '＞';
}

#breadcrumb li:last-child::after{
    margin-left: .5em;
    content: '';
    font-size:80%;
}

#page #main_wrap{
    flex-wrap:wrap;
}

#page h2{
    border-top: 1px solid #8C222E;
    border-bottom: 1px solid #8C222E;
}

#page h2 span{
    display:block;
    margin:auto;
    padding:1em;
    max-width:1200px;
    width:100%;
    font-size:150%;
}

#page #main_wrap  > *{
    order:unset;
    width:100%;
}

#page #main_wrap  #main{
    margin-bottom:5em;
    width:100%;
    max-width:none;
}

#page #main_wrap  #main #cont_foot,
#page #main_wrap  #sub_right{
    padding:1em;
    max-width: 600px;
}

#page #main_wrap #main #cont_foot{
	width:auto;
}

#page #main_wrap #cont{
    margin:auto;
    padding:1em 3em;
    max-width: 1200px;
}

#page #main #cont_foot h4,
#page #main #cont_foot h5,
#page #main #cont_foot table,
#page #sub_right h5,
#page #sub_right table{
	display:none;
}

#page .gallery{
	display:flex;
	flex-wrap:wrap;
	justify-content:space-between;
	margin:0 auto 1.5em;
	max-width:1024px;
}

#page .gallery-columns-2 dl.gallery-item{
	width:49%;
}


#page .gallery-columns-3 dl.gallery-item{
	width:32.3333%;
}

#page .gallery-columns-4 dl.gallery-item{
	width:24%;
}

#page .gallery-columns-5 dl.gallery-item{
	width:19%;
}

#page .gallery br{
	display:none;
}

#page .gallery img{
	border:none !important;
}

/* form */

#page #main form > div:not(.wpcf7-response-output){
	display:table;
	margin:auto;
}

#page #main form input,
#page #main form textarea{
	max-width:800px;
	padding:.2em 1em;
	font-size: 100%;
	border:1px solid #ccc;
	border-radius:5px;
	font-family: 游ゴシック,メイリオ,Meiryo,ヒラギノ角ゴ Pro W3,Hiragino Kaku Gothic Pro,Osaka,ＭＳ\ Ｐゴシック,MS PGothic,sans-serif;
}

#page #main form input[name=birth-y]{
	max-width:6em !important;
}

#page #main form input[name=birth-m],
#page #main form input[name=birth-d]{
	display:inline-block !important;
	max-width:4em !important;
}

#page #main form textarea{
	width:100%;
}

#page #main form select{
	padding:1em;
	padding:.2em 1em;
	font-size: 100%;
	border:1px solid #ccc;
	border-radius:5px;
	font-family: 游ゴシック,メイリオ,Meiryo,ヒラギノ角ゴ Pro W3,Hiragino Kaku Gothic Pro,Osaka,ＭＳ\ Ｐゴシック,MS PGothic,sans-serif;
}

#page #main form input[type=submit],
#page #main form button[type=submit]{
	position:relative;
	display:block;
	margin:auto;
	color:#fff;
	font-weight:bold;
	letter-spacing:0.5em;
	text-shadow:none;
	background: #333;
	border:0;
	cursor:pointer;
	transition:.2s;
	font-family: 游ゴシック,メイリオ,Meiryo,ヒラギノ角ゴ Pro W3,Hiragino Kaku Gothic Pro,Osaka,ＭＳ\ Ｐゴシック,MS PGothic,sans-serif;
}

#page table#mfp_confirm_table tr th,
#page table#mfp_confirm_table tr td{
	padding:1em .5em;
	font-size:100%;
}

#page .mfp_element_submit,
#page .mfp_element_reset,
#page .mfp_element_button,
#page button.mfp_next,
#page button.mfp_prev{
	position:relative;
	margin:auto;
	color:#fff;
	font-weight:bold;
	letter-spacing:0.05em;
	text-shadow:none;
	background: #052f47;
	cursor:pointer;
	transition:.2s;
	font-family: 游ゴシック,メイリオ,Meiryo,ヒラギノ角ゴ Pro W3,Hiragino Kaku Gothic Pro,Osaka,ＭＳ\ Ｐゴシック,MS PGothic,sans-serif;
}


#page #main form input[type=submit]:hover,
#page #main form button[type=submit]:hover{
	background-color:#718692;
	transition:.2s;
}

#page #main form input[type=submit]:before {
    display: block;
    position: absolute;
    content: '';
    margin: auto;
    width: 1em;
    height: .5em;
    background: linear-gradient(to top left, rgba(255,255,255,0) 50%, #052F47 50.5%) no-repeat top left/100% 100%;
    top: .5em;
    left: -1.2em;
}

#page #main form input[type=reset]{
	position:relative;
	display:inline-block;
	margin:auto;
	padding:.5em 1em;
	width:auto;
	color:#fff;
	font-size:100%;
	letter-spacing:.8em;
	background-color:#666;
	text-align:center;
	cursor:pointer;
	transition:.2s;
}

#page #main form input[type=reset]:hover{
	background-color:#aaa;
	transition:.2s;
}

/*foot*/
footer{
}

footer nav > p{
	padding:2em 0 1em;
	text-align:center;
}

footer nav{
    border-top: 3px solid #8C222E;
}

footer nav ul{
    display:flex;
    justify-content:center;
}

footer nav ul li{
    padding:1em;
}

footer nav ul li a{
    text-decoration:underline;
}

footer nav ul li a:hover{
    text-decoration:none;
}

.copy{
    padding:.5em;
    color:#fff;
    font-size:80%;
    text-align: center;
    background-color: #8C222E;
}

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

#main_wrap{
	align-items:center;
	flex-direction:column;
}

#sub_right{
	max-width:381px;
}

#main{
	padding:1em;
}

#page #main_wrap #cont{
	padding:0;
}

}

#sp_toggle{
	display:none;
}

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

header p{
	position:relative;
	justify-content: center;
	font-size:100%;
}


/*記事内の画像*/
#page img,
.alignleft,
.alignright {
	float: none;
	clear: both;
	display: block;
	margin-left: auto !important;
	margin-right: auto !important;
}

#main #cont p:not(.wrapimg){
	margin-bottom:1.5em;
}


#sp_toggle{
	position:relative;
	display:table;
	margin: 0 0 0 auto;
	padding:1.5em;
	font-size:100%;
	color:#333;
	text-align:center;
	font-weight:bold;
	box-sizing:border-box;
	cursor:pointer;
}

#sp_toggle #sp_toggle_icon{
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -.5em;
  background: #333;
  transition: .2s;
}

#sp_toggle #sp_toggle_icon:before,
#sp_toggle #sp_toggle_icon:after{
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 2px;
  background: #333;
  transition: .3s;
}

#sp_toggle #sp_toggle_icon:before{
  margin-top: -6px;
}

#sp_toggle #sp_toggle_icon:after{
  margin-top: 4px;
}

#sp_toggle #sp_toggle_icon.close{
  background: transparent;
}

#sp_toggle #sp_toggle_icon.close:before, #panel-btn .close:after{
  margin-top: 0;
}

#sp_toggle #sp_toggle_icon.close:before{
  margin-top: -1px;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

#sp_toggle #sp_toggle_icon.close:after{
  margin-top: -1px;
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}

#main_image p span{
	font-size:150%;
	word-break:keep-all;
}

#top_nav{
	position:fixed;
	margin:0 auto;
	top:0;
	right:0;
	background:rgba(255,255,255,.9);
	z-index:9999;
}

#top_nav.menuopen{
	width:100%;
}

#top_nav ul{
	display:none;
	flex-direction: column;
	width:100vw;
	height:100vh;
}

#top_nav ul li{
	margin-bottom:2em;
}

#top_nav ul li a{
	display:block;
	padding:1em;
	text-align:center;
}

#top_nav ul li a span{
	padding-left:1em;
}

#top_nav ul li:first-of-type a{
	padding-left: 1em;
	background-image:none;
}

#top_nav ul li a:after{
	right:auto;
	left:8px;
}

.slider img{
	width:100%;
}

#news li{
	flex-direction:column;
}

#main #cont #cont_foot h4{
	padding: .2em 2em;
}

#main #cont #cont_foot h5{
	padding: .5em;
}

#main #cont_foot,
#main #cont_foot > section,
#main #cont table.flex_table > tbody > tr,
#main #cont_foot table table{
	flex-direction:column;
	padding:0;
	width:100%;
}

#main #cont_foot > section:first-of-type{
	padding-right:0;
}

#main #cont_foot table table th,
#main #cont_foot table table td{
	vertical-align:top;
	border-bottom:1px dotted #ccc;
}

#main #cont table.flex_table.eq_width > tbody > tr > td{
	padding:0;
}

#main #cont_foot table table{
}

#main #cont_foot table table td p{
	white-space:unset;
}

#sub_right{
	max-width:100%;
}

footer nav ul{
	flex-direction:column;

}

#main #cont h4{
	padding-right:0;
}

#main #cont h5{
	padding:.2em 25px;
}

#main #cont h5::before,
#main #cont h5::after{
	width:20px;
}

#main #cont table{
	width:100% !important;
}

#main table.large_table,
#main table.alignleft,
#main table.alignright{
	width:96% !important;
	margin-left:auto;
	margin-right:auto;
}

#main table.large_table strong{
	word-break: keep-all;
}

#main table.heaf_left{
	float:none;
	width:98% !important;
	margin-left:1%;
}

#main table.heaf_right{
	float:none;
	width:98% !important;
	margin-left:1%;
}

#main table.large_table{
	display: block;
	height:auto !important;
	overflow-x: scroll;
	table-layout:fixed; 
	box-sizing: border-box;
}

#main table.large_table:before{
	content:'※表が画面サイズを超える場合、横にスクロールできます。';
}

#main #cont table.large_table td,
#main #cont table.large_table th{
	white-space: nowrap;
	padding:3px 8px;
}

#main table.large_table {
     overflow: auto;
}

#main table::-webkit-scrollbar{ /* スクロールバー全体 */
    height: 5px;
}

#main table::-webkit-scrollbar-thumb{ /* スクロールバーのある部分 */
    background: #BC0000;
    border-radius: 10px;
}
#main table::-webkit-scrollbar-track-piece:start{ /* スクロールバーが表示されてない部分（前） */
    background: #fbd6d6;
}
#main table::-webkit-scrollbar-track-piece:end{ /* スクロールバーが表示されてない部分（後ろ） */
    background: #fbd6d6;
}

#main table:not(.large_table) td{
	text-align:left !important;
}


#main table:not(.large_table),
#main table:not(.large_table) tbody,
#main table:not(.large_table) tbody tr,
#main table:not(.large_table):not(.fit) > tbody > tr > td,
#main table:not(.large_table):not(.fit) > tbody > tr > th{
	display:block;
	overflow:hidden;
	width:100% !important;
	text-align:left;
}

#main table:not(.large_table):not(.fit) > tbody > tr > td,
#main table:not(.large_table):not(.fit) > tbody > tr > th{
	padding:.5em 0 !important;
}

#page dl.gallery-item{
	width:49% !important;
}

#page dl.gallery-item img{
	width: 100%;
}

#page #main form input[type='text'],
#page #main form input[type='email'],
#page #main form input[type='tel'],
#page #main form select,
#page #main form textarea{
	max-width:100%;
	width:100%;
}

}
