@charset "utf-8";
/* ////////////////////////////////////////////
 *  レスポンシブ対応
 *  1166px以上（従来のPC表示）には一切影響しません。
 *  1165px以下：幅に合わせて伸縮、メニューはボタンで開閉
 *  767px以下：1カラム（スマートフォン）
 * //////////////////////////////////////////// */

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

	/* Layout
	------------------------------------------*/
	body{
		min-width: 0;
	}
	#container,
	body.home #container{
		padding: 0;
	}
	#content{
		padding: 30px 20px 60px 20px;
		width: auto;
	}
	body.home #content{
		padding-top: 0;
	}
	#primary{
		width: 64%;
	}
	#secondary{
		width: 32%;
	}
	:target:before{
		height: 0;
		margin: 0;
	}

	/* header
	------------------------------------------*/
	#header{
		position: relative;
		background: #fff;
		border-bottom: #10A28D 4px solid;
	}
	#header-inner{
		padding: 12px 90px 12px 16px;
		width: auto;
		height: auto;
		text-align: left;
	}
	#header .logo{
		position: static;
	}
	#header .logo img{
		width: 320px;
	}
	.navigation-top{
		position: static;
		height: auto;
	}

	/* メニュー開閉ボタン（親テーマのボタンを表示） */
	#site-navigation button.menu-toggle{
		position: absolute;
		top: 16px;
		right: 12px;
		display: block;
		margin: 0;
		padding: 6px 0 0 0;
		width: 64px;
		height: 52px;
		color: #fff;
		font-size: 11px;
		font-weight: bold;
		line-height: 1.4;
		text-align: center;
		background: #10A28D;
		border: none;
		border-radius: 5px;
		cursor: pointer;
	}
	#site-navigation .menu-toggle .icon{
		display: block;
		margin: 0 auto 2px auto;
		width: 22px;
		height: 22px;
		fill: currentColor;
	}
	#site-navigation .menu-toggle .icon-close,
	#site-navigation.toggled-on .menu-toggle .icon-bars{
		display: none;
	}
	#site-navigation.toggled-on .menu-toggle .icon-close{
		display: block;
	}

	/* メニュー本体 */
	#site-navigation .menu-top-container,
	#site-navigation>div{
		display: none;
	}
	#site-navigation.toggled-on>div{
		display: block;
		margin: 12px -90px -12px -16px;
	}
	#top-menu li{
		float: none;
	}
	#top-menu>li>a{
		padding: 12px 56px 11px 16px;
		height: auto;
		font-size: 16px;
		text-align: left;
		background: #10A28D;
		border-top: rgba(255,255,255,0.35) 1px solid;
	}
	#top-menu>li.current-menu-item>a,
	#top-menu>li.current-menu-parent>a,
	#top-menu>li>a:hover{
		color: #fff;
		background: #0C8A78;
	}
	#top-menu ul,
	#top-menu ul ul{
		position: static;
		display: none !important;
		width: auto;
	}
	#top-menu ul.toggled-on{
		display: block !important;
	}
	#top-menu ul li a{
		padding: 11px 56px 10px 36px;
		font-size: 15px;
		background-color: #EAF7F5;
		background-position: 20px 50%;
		border-bottom: #C7ECE7 1px solid;
	}
	#top-menu ul li a:hover{
		background-color: #C7ECE7;
		background-position: 20px 50%;
	}
	#top-menu ul ul li a{
		padding-left: 56px;
		background-position: 40px 50%;
	}
	#top-menu ul ul li a:hover{
		background-position: 40px 50%;
	}
	#top-menu ul li:last-child>a{
		border-bottom: #C7ECE7 1px solid;
	}

	/* 下層メニューの開閉ボタン（親テーマが自動で追加するボタン） */
	#site-navigation button.dropdown-toggle{
		position: absolute;
		top: 0;
		right: 0;
		display: block;
		padding: 0;
		width: 52px;
		height: 47px;
		color: #fff;
		background: rgba(0,0,0,0.12);
		border: none;
		cursor: pointer;
	}
	#top-menu ul button.dropdown-toggle{
		height: 44px;
		color: #10A28D;
		background: rgba(16,162,141,0.12);
	}
	#site-navigation button.dropdown-toggle svg.icon-angle-down{
		display: inline-block;
		width: 18px;
		height: 18px;
		fill: currentColor;
		transition: transform .2s;
	}
	#site-navigation button.dropdown-toggle.toggled-on svg.icon-angle-down{
		transform: rotate(180deg);
	}
	.screen-reader-text{
		position: absolute !important;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
	}

	/* main
	------------------------------------------*/
	#mainimage{
		margin: 0 0 30px 0;
	}
	#mainimage-inner{
		width: auto;
	}
	.slideshow{
		margin: 0;
	}
	.slideshow .slick-list{
		overflow: hidden;
	}
	.slideshow img{
		width: 100%;
	}
	.main-takarabako li{
		margin: 0 3% 20px 0;
		width: 31.33%;
	}
	.main-takarabako li:nth-child(3n){
		margin: 0 0 20px 0;
	}

	/* footer
	------------------------------------------*/
	#footer-inner{
		padding: 30px 20px 50px 20px;
		width: auto;
	}
	.footer-logo{
		position: static;
		float: left;
		margin: 0 16px 0 0;
	}
	.footer-info{
		position: static;
		overflow: hidden;
		margin: 0 0 25px 0;
	}
	#footer-menu{
		clear: both;
	}
	#footer-menu>div{
		margin: 0 30px 0 0;
	}
	.pagetop{
		top: -40px;
		right: 20px;
	}
	#footer .copyright{
		left: 0;
		padding: 0 10px;
	}

	/* Lower
	------------------------------------------*/
	.takarabako-list ul li{
		margin: 0 3% 30px 0;
		width: 31.33%;
	}
	.takarabako-list li:nth-child(3n){
		margin: 0 0 30px 0;
	}
	.single-takarabako .main-img,
	.single-takarabako .main-img img{
		height: auto;
	}
	.single-takarabako .sub-images>div{
		margin: 0 2% 0 0;
		width: 32%;
	}
	.single-takarabako .info-area dd{
		float: none;
		margin: 0 0 0 90px;
		width: auto;
	}
	.entry-content table{
		max-width: 100%;
	}
	.entry-content .box .left,
	.entry-content .box .right,
	.entry-content .header-box .inr>div,
	body.event .entry-content .image>div,
	body.gyodo .entry-content .image>div,
	body.access .entry-content .image>div,
	body.jimukikou .once .upper .right,
	body.jimukikou .once .upper .left{
		max-width: 48%;
	}
	input[type="text"],
	input[type="email"],
	input[type="tel"],
	input[type="url"],
	textarea,
	select{
		max-width: 100%;
	}
}

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

	/* Layout
	------------------------------------------*/
	body{
		font-size: 15px;
	}
	#content{
		padding: 20px 14px 50px 14px;
	}
	#primary,
	#secondary{
		float: none;
		width: auto;
	}
	#secondary{
		margin: 40px 0 0 0;
	}
	.side-banner ul{
		text-align: center;
	}

	/* header
	------------------------------------------*/
	#header-inner{
		padding: 10px 84px 10px 12px;
	}
	#header .logo img{
		width: 250px;
	}
	#site-navigation button.menu-toggle{
		top: 8px;
	}
	#site-navigation.toggled-on>div{
		margin: 10px -84px -10px -12px;
	}

	/* main
	------------------------------------------*/
	#mainimage{
		margin: 0 0 20px 0;
	}
	.main-news{
		margin: 0 0 40px 0;
	}
	.main-news li,
	.archive-list ul li{
		padding: 8px 0 7px 0;
		border-bottom: #ddd 1px dotted;
	}
	.main-news h3,
	.archive-list h3{
		font-size: 15px;
		line-height: 1.6;
	}
	.main-news h3 span,
	.archive-list h3 span{
		display: block;
		margin: 0;
		font-size: 13px;
	}
	.main-takarabako li,
	.main-takarabako li:nth-child(3n),
	.takarabako-list ul li,
	.takarabako-list li:nth-child(3n){
		margin: 0 4% 24px 0;
		width: 48%;
	}
	.main-takarabako li:nth-child(2n),
	.takarabako-list li:nth-child(2n){
		margin-right: 0;
	}
	.main-takarabako li:nth-child(2n+1),
	.takarabako-list li:nth-child(2n+1){
		clear: left;
	}
	.main-takarabako h3 a,
	.takarabako-list h3 a{
		font-size: 14px;
	}
	.main-takarabako .info span,
	.takarabako-list .info span{
		margin: 0 4px 4px 0;
		font-size: 11px;
	}
	.main-takarabako .info span a,
	.takarabako-list .info span a{
		padding: 2px 8px 1px 8px;
	}

	/* 見出し
	------------------------------------------*/
	.h1,
	h2.title,
	.lower-main h1{
		padding: 4px 0 2px 48px;
		font-size: 21px;
		background-size: 34px auto;
		background-position: 4px 50%;
	}
	.page-takarabako-more a,
	.h1 .more a,
	h2.title .more a,
	.lower-main h1 .more a{
		top: auto;
		bottom: 4px;
		font-size: 12px;
	}
	.h2,
	.entry-content h2{
		font-size: 21px;
	}
	.h2:after,
	.entry-content h2:after{
		margin: -11px 0 0 0;
		height: 22px;
	}
	.h3,
	.entry-content h3{
		font-size: 18px;
	}
	.h4,
	.entry-content h4{
		font-size: 18px;
	}
	#breadcrumb li{
		font-size: 12px;
	}

	/* sidebar
	------------------------------------------*/
	.snav h2{
		font-size: 20px;
	}

	/* footer
	------------------------------------------*/
	#footer-inner{
		padding: 25px 14px 60px 14px;
	}
	.pagetop{
		font-size: 15px;
		background-size: 16px auto;
		padding-left: 22px;
	}
	.footer-info .upper{
		font-size: 20px;
	}
	.footer-info .upper span{
		font-size: 13px;
	}
	.footer-info .bottom{
		font-size: 13px;
	}
	.footer-info .bottom span{
		display: inline-block;
	}
	#footer-menu>div{
		float: none;
		margin: 0 0 12px 0;
	}
	#footer-menu li a{
		padding-top: 3px;
		padding-bottom: 3px;
	}
	#footer .copyright{
		font-size: 10px;
	}

	/* 下層ページの本文
	------------------------------------------*/
	.entry-content .left,
	.entry-content .right,
	.entry-content .box .left,
	.entry-content .box .right,
	.entry-content .header-box .inr>div,
	body.event .entry-content .image>div,
	body.gyodo .entry-content .image>div,
	body.access .entry-content .image>div,
	body.jimukikou .once .upper .right,
	body.jimukikou .once .upper .left,
	body.tochikairyo .entry-content .once .left{
		float: none;
		margin: 0 0 15px 0;
		max-width: none;
		width: auto;
	}
	.entry-content .header-box .text{
		font-size: 21px;
	}
	.fukidashi{
		font-size: 15px;
	}
	.fukidashi span{
		font-size: 26px;
	}
	.entry-content .box-title{
		font-size: 22px;
	}
	.entry-content .box-inr{
		padding: 14px;
	}
	.entry-content .box .sub{
		margin: 0 0 5px -14px;
		font-size: 19px;
	}
	.entry-content .box .sub-s{
		font-size: 17px;
	}
	body.mamechishiki .entry-content li a,
	body.doing .entry-content li a,
	body.library .entry-content li a,
	body.saiyo .entry-content li a,
	body.tokkyo .entry-content li a,
	body.midorinet .entry-content li a{
		padding: 8px 10px 6px 42px;
		font-size: 17px;
		background-position: 18px 50%;
	}
	body.tochikairyo .entry-content .bottom,
	body.henka .entry-content .bottom{
		padding: 0 95px 0 0;
		background-size: 90px auto;
	}
	body.henka .entry-content .bottom2{
		padding: 0 0 0 95px;
		background-size: 90px auto;
	}
	body.midorinet .once .bottom li{
		margin: 0 20px 10px 0;
	}
	body.analysis .once p>b{
		font-size: 19px;
	}
	body.analysis .once .more a{
		font-size: 16px;
	}

	/* 表：はみ出す場合は横にスクロール */
	.entry-content table,
	body.gaiyo .entry-content .once table,
	body.shikaku .entry-content .once table{
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		width: auto;
		max-width: 100%;
	}
	table.t-s1 th,
	table.t-s1 td{
		font-size: 14px;
	}

	/* フォーム：項目名と入力欄を縦に並べる */
	.mw_wp_form table,
	.mw_wp_form table tbody,
	.mw_wp_form table tr,
	.mw_wp_form table th,
	.mw_wp_form table td,
	table.t-s1.bosyu th,
	table.t-s1.bosyu td{
		display: block;
		overflow: visible;
		padding-left: 10px;
		padding-right: 10px;
		width: auto !important;
	}
	.mw_wp_form input[type="text"],
	.mw_wp_form input[type="email"],
	.mw_wp_form input[type="tel"],
	.mw_wp_form textarea{
		width: 100%;
		font-size: 16px;
	}
	.mw_wp_form .mwform-tel-field input,
	.mw_wp_form .mwform-zip-field input{
		width: auto;
	}

	/* 宝箱の詳細 */
	.single-takarabako .info-area dt{
		float: none;
		width: auto;
	}
	.single-takarabako .info-area dd{
		margin: 0 0 8px 0;
	}
}
