@charset "UTF-8";
/* CSS Document */

.topbox {
	width: 100%;
	margin-top: 20px;
}
.toppageonly {
	color: #036EB8;
	font-family: "ＭＳ Ｐ明朝", "MS PMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
	text-align: center;
}
#nav ul li a {
	text-align: left;
	float: left;
	list-style-type: none;
	color: #231815;
	text-decoration: none;
	height: auto;
	padding-top: 2px;
	padding-bottom: 2px;
	padding-left: 0px;
	margin-right: px;
}
#nav ul li {
	list-style-type: none;
	float: left;
	display: block;
	margin-top: 10px;
	margin-left: 8px;
}
#ftnav ul li {
	list-style-type: none;
	float: left;
	display: block;
}
.navibox {
	background-color: #717071;
	color: #FFFFFF;
	padding-left: 10px;
	float: left;
	padding-right: 10px;
	padding-bottom: 4px;
	padding-top: 4px;
	margin-top: -3px;
}
.navibox:hover {
	background-color: #036EB8;
	color: #FFFFFF;
	padding-left: 10px;
	float: left;
	padding-right: 10px;
	padding-bottom: 4px;
	padding-top: 4px;
}
.rline {
	border-right: 1px solid #000000;
	padding-right: 8px;
}
.footerwrap {
	width: 100%;
	height: auto;
	display: block;
	margin-top: 10px;
	margin-bottom: 10px;
	margin-left: auto;
	margin-right: auto;
	float: left;
}
.facebookicon {
	margin-top: -3px;
}
.fcblue {
	color: #036EB8;
}
.fcred {
	color: #E60012;
}
.fdidot {
	font-family: "Times New Roman", Times, serif;
}
#text-8 {
	color: #036EB8;
}
#text-8 .top-title {
	color: #036EB8;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-style: italic;
	font-weight: normal;
	font-size: 30px;
	line-height: 32px;
}
#text-8 .textwidget {
	color: #036EB8;
	font-size: 18px;
	font-family: Georgia, "Times New Roman", Times, serif;
	line-height: 27px;
	font-style: normal;
	font-weight: normal;
}
.textwidget .pagelink a  {
	background-image: url(http://y51.jp/wp/wp-content/themes/mdm/images/ar.png);
}
.textwidget .pagelink a:hover  {
	background-color: #036EB8;
	color: #FFFFFF;
	background-image: url(http://y51.jp/wp/wp-content/themes/mdm/images/ar2.png);
}
.pagelink3 {
    text-align: center;
    width: 48%;
    float: left;
    margin-left: 1%;
    margin-right: 1%;
    margin-top: 10px;
    color: #595757;
    font-size: 18px;
    margin-bottom: 50px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
}
.pagelink3 a {
	text-align: center;
	width: 100%;
	padding-top: 25px;
	padding-bottom: 25px;
	background-color: #a2d7d4;
	color: #595757;
	font-size: 18px;
	background-repeat: no-repeat;
	background-position: right 15px center;
	float: left;
}
.textwidget .pagelink3 a  {
	background-image: url(http://y51.jp/wp/wp-content/themes/mdm/images/ar.png);
}
.textwidget .pagelink3 a:hover  {
	background-color: #036EB8;
	color: #FFFFFF;
	background-image: url(http://y51.jp/wp/wp-content/themes/mdm/images/ar2.png);
}

.mainimg66 {
	width: 100%;
	padding: 0px;
	margin-top: 0px;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 0px;
	overflow: hidden;
	position: relative;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}
.maintxt {
	position: absolute;
	width: 100%;
	top: 45%;
}
.maintxt h2 {
	text-align: center;
	color: #FFFFFF;
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-weight: normal;
	vertical-align: middle;
	width: 100%;
	font-size: 25px;
}
.mainimg:before {
    content:"";
    display: block;
    padding-top: 29%; /* 高さを幅の29%に固定 */
}
.mainimg66:before {
    content:"";
    display: block;
    padding-top: 66%; /* 高さを幅の29%に固定 */
}
.top7 {
	background-image: url(http://y51.jp/wp/wp-content/themes/mdm/images/top7.jpg);
}
.top9 {
	background-image: url(http://y51.jp/wp/wp-content/themes/mdm/images/top9.jpg);
}
.top9a {
	background-image: url(http://y51.jp/wp/wp-content/themes/mdm/images/top9a.jpg);
}
.top2 {
	background-image: url(http://y51.jp/wp/wp-content/themes/mdm/images/top2.jpg);
}
.top4 {
	background-image: url(http://y51.jp/wp/wp-content/themes/mdm/images/top4.jpg);
}
.top10 {
	background-image: url(http://y51.jp/wp/wp-content/themes/mdm/images/main_01.jpg);
}
.top10a {
	background-image: url(http://y51.jp/wp/wp-content/themes/mdm/images/main_08.jpg);
}
.f14b {
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-weight: bold;
	font-size: 14px;
	margin-bottom: 0px;
}
.mt30 {
	margin-top: 30px;
}
.mt10 {
	margin-top: 10px;
	padding-top: 0px;
	padding-right: 0px;
	padding-left: 0px;
}
#text-7 .textwidget {
	text-align: left;
}
.star {
	padding-right: 15px;
	background-image: url(http://y51.jp/wp/wp-content/themes/mdm/images/asterisk.png);
	background-repeat: no-repeat;
	background-position: right top;
}
.f16b {
	font-size: 16px;
	line-height: 24px;
}
.box {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 30px;
	margin-top: 30px;
	height: auto;
	width: 100%;
	float: left;
}
.box br {
	display: none;
}
.f24n {
	font-size: 24px;
	line-height: 150%;
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-weight: normal;
}
.f11n {
	font-size: 11px;
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-weight: normal;
}
.mb10 {
	margin-bottom: 10px;
}
.mb30 {
	margin-bottom: 30px;
}
.mb50 {
	margin-bottom: 50px;
}
.f16s {
	font-size: 16px;
	font-family: "Times New Roman", Times, serif;
	font-weight: normal;
	padding-top: 0px;
}
.f18s {
	font-size: 18px;
	font-family: "Times New Roman", Times, serif;
	font-weight: normal;
	padding-top: 0px;
}
.on .pcmr2em, a:hover .pcmr2em {
		color: #036EB8;
}
/* pager */
.example-pager {
	text-align: center;
	width: 100%;
	z-index: 500;
	top: 10px;
	overflow: hidden;
	margin-top: 13px;
}
.example-pager span {
	font-family: arial;
	font-size: 40px;
	width: 21px;
	height: 15px;
	display: inline-block;
	color: #ddd;
	cursor: pointer;
}
.example-pager span.cycle-pager-active {
	color: #036EB8;
}
.example-pager > * { cursor: pointer;}


/* caption */
.cycle-caption { position: absolute; color: white; bottom: 15px; right: 15px; z-index: 700; }


/* overlay */
.cycle-overlay { 
    font-family: tahoma, arial;
    position: absolute; bottom: 0; width: 100%; z-index: 600;
    background: black; color: white; padding: 15px; opacity: .5;
}
.pagelink4 {
    text-align: center;
    width: 25%;
    float: left;
    margin-left: 0%;
    margin-right: 75%;
    margin-top: 40px;
    color: #FFFFFF;
    font-size: 18px;
    margin-bottom: 20px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    height: auto;
}
.pagelink4 a {
	text-align: center;
	width: 100%;
	padding-top: 25px;
	padding-bottom: 25px;
	background-color: #036EB8;
	color: #FFFFFF;
	font-size: 18px;
	background-image: url(http://y51.jp/wp/wp-content/themes/mdm/images/ar2.png);
	background-repeat: no-repeat;
	background-position: right 15px center;
	float: left;
}
.pagelink4 a:hover  {
	background-color: #2ea7e0;
}
.box-form {
    width: 100%;
    float: left;
    display: block;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    height: calc(100% + 80px);
    overflow-y: visible;
    margin-top: 40px;
    margin-bottom: 30px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px !important;
}
.box-form iframe {
    width: 100%;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px !important;
}
	
@media screen and (min-width:768px){
.footerlogo img {
	float: right;
	margin-right: 0px;
}
.ad .ftlogo {
	margin-top: 17px;
}
.pagelink {
	text-align: center;
	width: 48%;
	float: left;
	margin-left: 1%;
	margin-right: 1%;
	margin-top: 10px;
	color: #595757;
	font-size: 18px;
	margin-bottom: 10px;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
}
.pagelink a {
	text-align: center;
	width: 100%;
	padding-top: 25px;
	padding-bottom: 25px;
	background-color: #E8F0C4;
	color: #595757;
	font-size: 18px;
	background-repeat: no-repeat;
	background-position: right 15px center;
	float: left;
}
.pagelink2 {
	text-align: center;
	width: 512px;
	margin-top: 10px;
	color: #595757;
	font-size: 18px;
	margin-bottom: 10px;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
	margin-right: auto;
	margin-left: auto;
	height: 108px;
	border: 1px solid #444444;
	vertical-align: middle;
	line-height: 108px;
}
.pagelink2:hover {
	text-align: center;
	color: #036EB8;
	vertical-align: middle;
	background-color: #DBDCDC;
}
.on .pagelink2 {
	color: #036EB8;
	background-color: #DBDCDC;
}
#header #mobile-menu {
	position: relative;
	width: 70px;
	height: 70px;
	z-index: 2;
	top: 0px;
	display: none;
}
.br-sp { display:none; }
.mtsp30 {
	margin-top: 30px;
	margin-bottom: 30px;
}
.pcmr2em {
	margin-right: 1em;
}
}

@media screen and (min-width:768px) and (max-width:959px){
.footerwrap .ad {
	width: 48%;
	float: right;
}
.ad #copyright {
	text-align: left;
}
.ftnav ul .nav-btn {
	margin-right: 5px;
	margin-left: 5px;
	font-size: 12px;
	text-align: center;
}
.footerwrap .footerlogo {
	width: 48%;
	float: left;
	margin-left: 2%;
}
#nav ul .facebookicon {
	margin-left: 20px;
}
#nav ul li {
}
.mainimg:before {
    content:"";
    display: block;
    padding-top: 42%; /* 高さを幅の42%に固定 */
}
.a1, .a2, .a4, .a5, .a7, .a8 {
	margin-bottom: 20px;
	width: 32%;
	height: auto;
	margin-right: 1%;
}
.a3, .a6, .a9 {
	margin-bottom: 20px;
	width: 32%;
	height: auto;
	margin-right: 0%;
}
#nav ul .nav-btn {
	font-size: 90%;
}
.pagelink4 {
    text-align: center;
    width: 40%;
    float: left;
    margin-left: 0%;
    margin-right: 60%;
    margin-top: 40px;
    color: #FFFFFF;
    font-size: 18px;
    margin-bottom: 20px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    height: auto;
}
.pagelink4 a {
	text-align: center;
	width: 100%;
	padding-top: 25px;
	padding-bottom: 25px;
	background-color: #036EB8;
	color: #FFFFFF;
	font-size: 18px;
	background-image: url(http://y51.jp/wp/wp-content/themes/mdm/images/ar2.png);
	background-repeat: no-repeat;
	background-position: right 15px center;
	float: left;
}
.pagelink4 a:hover  {
	background-color: #2ea7e0;
}
}

@media screen and (max-width:767px){
.footer-inner .ftnav {
	display: none;
}
.footerwrap .footerlogo {
	margin-bottom: 15px;
}
#text-8 .top-title {
	font-size: 20px;
	line-height: 27px;
}
/************************************
** モバイルメニューボタン
************************************/
#mobile-menu{
	display: block;
	float: left;
	width: 70px;
}
 
#mobile-menu a{
	color: #fff;
	padding: 10px;
	text-decoration: none;
	display: block;
	cursor: pointer;
	text-align: center;
	background: #aaa;
	line-height: 100%;
}
 
#mobile-menu a:hover{
  background:#8b8b8b;
  -webkit-transition:all 0.3s;
  -moz-transition:all 0.3s;
  transition:all 0.3s;
}
#header #mobile-menu {
	position: fixed;
	width: 70px;
	height: 70px;
	z-index: 2;
	top: 0px;
}
/************************************
** メニュースタイルの調整
************************************/
#header div.menu > ul > li, 
#header ul.menu > li {
    float:none;
    border-top:0px;
}
 
#header .menu li a:hover {
  text-decoration:none;
}
 
#header .menu li a {
  font-size: medium;
    
}
 
#header ul.children{
  display:none !important;
}
.a10 {
	margin-top: 10px;
	margin-bottom: 15px;
}
.mtsp30 {
	margin-top: -60px;
	margin-bottom: 30px;
}
.pagelink2 {
	text-align: center;
	margin-top: 10px;
	color: #595757;
	font-size: 18px;
	margin-bottom: 10px;
	padding-top: 20px;
	padding-right: 5%;
	padding-bottom: 20px;
	padding-left: 5%;
	margin-right: auto;
	margin-left: auto;
	border: 1px solid #444444;
	vertical-align: middle;
	width: 90%;
	line-height: 30px;
}
.pagelink2:hover {
	text-align: center;
	color: #036EB8;
	vertical-align: middle;
	background-color: #DBDCDC;
}
.on .pagelink2 {
	color: #036EB8;
	background-color: #DBDCDC;
}
.pcmr2em {
	width: 100%;
	float: left;
}
ul .2gyousp a {
    line-height: 14px !important;
}
}

@media screen and (min-width:480px) and (max-width:767px){
.footerwrap {
	width: 76%;
	margin-left: 12%;
	margin-right: 12％;
}
.pagelink {
	text-align: center;
	width: 100%;
	float: left;
	margin-top: 10px;
	color: #595757;
	font-size: 18px;
	margin-bottom: 10px;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
}
.pagelink a {
	text-align: center;
	width: 100%;
	padding-top: 25px;
	padding-bottom: 25px;
	background-color: #E8F0C4;
	color: #595757;
	font-size: 18px;
	background-repeat: no-repeat;
	background-position: right 15px center;
	float: left;
}

.pagelink3 {
	text-align: center;
	width: 100%;
	float: left;
	margin-top: 10px;
	color: #595757;
	font-size: 18px;
	margin-bottom: 10px;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
}
.pagelink3 a {
	text-align: center;
	width: 100%;
	padding-top: 25px;
	padding-bottom: 25px;
	background-color: #a2d7d4;
	color: #595757;
	font-size: 18px;
	background-repeat: no-repeat;
	background-position: right 15px center;
	float: left;
}
	
.mainimg:before {
    content:"";
    display: block;
    padding-top: 54%; /* 高さを幅の54%に固定 */
}
.maintxt h2 {
	text-align: center;
	color: #FFFFFF;
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-weight: normal;
	vertical-align: middle;
	width: 100%;
	font-size: 21px;
}
.a1, .a3, .a5, .a7, .a9 {
	margin-bottom: 20px;
	width: 49%;
	height: auto;
	margin-right: 1%;
}
.a2, .a4, .a6, .a8 {
	margin-bottom: 20px;
	width: 49%;
	height: auto;
	margin-right: 0%;
}
#main ul .leftaligned {
	margin-right: 20px;
	float: left;
	width: 200px;
}
.item-img a .attachment-464x309.size-464x309.wp-post-image {
	width: 464px;
}

}


@media screen and (min-width:480px) and (max-width:577px){
.pagelink4 {
    text-align: center;
    width: 100%;
    float: left;
    margin-left: 0%;
    margin-right: 0%;
    margin-top: 40px;
    color: #FFFFFF;
    font-size: 18px;
    margin-bottom: 20px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    height: auto;
}	
}	

@media screen and (min-width:578px) and (max-width:767px){
.pagelink4 {
    text-align: center;
    width: 60%;
    float: left;
    margin-left: 0%;
    margin-right: 40%;
    margin-top: 40px;
    color: #FFFFFF;
    font-size: 18px;
    margin-bottom: 20px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    height: auto;
}	
}	
	

@media screen and (max-width:479px){
	.pagelink {
	text-align: center;
	width: 100%;
	float: left;
	margin-top: 10px;
	color: #595757;
	font-size: 18px;
	margin-bottom: 10px;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
}
.pagelink a {
	text-align: left;
	width: 100%;
	padding-top: 25px;
	padding-bottom: 25px;
	background-color: #E8F0C4;
	color: #595757;
	font-size: 16px;
	background-repeat: no-repeat;
	background-position: right 15px center;
	float: left;
	text-indent: 15px;
}
.pagelink3 {
	text-align: left;
	width: 100%;
	float: left;
	margin-top: 10px;
	color: #595757;
	font-size: 18px;
	margin-bottom: 10px;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
}
.pagelink3 a {
	text-align: left;
	width: 100%;
	padding-top: 25px;
	padding-bottom: 25px;
	background-color: #a2d7d4;
	color: #595757;
	font-size: 16px;
	background-repeat: no-repeat;
	background-position: right 15px center;
	float: left;
	text-indent: 15px;
}	
.toppageonly {
	font-size: 1.5em;
	line-height: 150%;
}
.mainimg:before {
    content:"";
    display: block;
    padding-top: 66.7%; /* 高さを幅の50%に固定 */
}
.maintxt h2 {
	text-align: center;
	color: #FFFFFF;
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-weight: normal;
	vertical-align: middle;
	width: 100%;
	font-size: 18px;
}
.a1, .a2, .a3, .a4, .a4, .a5, .a6, .a7, .a8, .a9 {
	margin-bottom: 20px;
	width: 300px;
	height: auto;
}
#main ul .leftaligned {
	float: none;
	width: 100%;
}
.vis {
	width: 310px;
	float: left;
	height: auto;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
	display: inline;
	margin-bottom: 30px;
	word-break: normal;
}
.pagelink4 {
    text-align: center;
    width: 100%;
    float: left;
    margin-left: 0%;
    margin-right: 0%;
    margin-top: 40px;
    color: #FFFFFF;
    font-size: 18px;
    margin-bottom: 20px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    height: auto;
}	
}

@media screen and (min-width:960px){
.a1, .a2, .a4, .a5, .a7, .a8 {
	margin-bottom: 20px;
	width: 32%;
	height: auto;
	margin-right: 1%;
}
.a3, .a6, .a9 {
	margin-bottom: 20px;
	width: 32%;
	height: auto;
	margin-right: 0%;
}.a10 {
	margin-top: 10px;
	margin-right: 10px;
	margin-bottom: 10px;
	margin-left: 10px;
}
.a11 {
	margin-top: 10px;
	margin-right: 10px;
	margin-bottom: 10px;
	margin-left: 10px;
}
#main ul .leftaligned {
	margin-right: 20px;
	float: left;
	width: 200px;
}
.ftnav {
	margin-left: 100px;
	float: left;
}
.item-img a img {
	height: auto;
	width: 464px;
}
.block-two .item .item-img {
	height: 278px;
	overflow-y: hidden;
}
}

@media (min-width:1800px){
#top-slide .cycle-slideshow img {
	width: 100%;
	height: auto;
}
}
