@media only screen and (max-width:730px){
#device { display:block;}
#device p.pc_btn { display:none;}
#device p.sp_btn {display:block; }
}

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

body { min-width:320px; font-size:100%;}
#header { display:none;}
#content{ width:100%;}
#footer { width:100%;}

#wrapper { background:#FFF; border-top:none;}
#base { width:auto; margin:0 !important;}

.pc { display:none;}
.sm { display:block;}


/*====================================================================================================
  HEADER
====================================================================================================*/

#header {}
    

.cp_tooltip { display: block; width: 100%; }
.cp_tooltip .cp_tooltiptext {
	display: none; 
	}


/*====================================================================================================
  CONTENT
====================================================================================================*/

#content {}
	

/*====================================================================================================
  FOOTER
====================================================================================================*/
	
#footer { margin: 50px auto　0; padding: 50px 0 15px; ;}

#footer .top_f_line { padding: 10px; width: 100%; background:#9f8765;}		

#footer .f_menu { background:#797A6E;}
	
#footer .f_menu .fm_bk .menu{ float: left; width: 50%; text-align: center; border-left:1px solid #FFF;}
#footer .f_menu .fm_bk .menu:nth-child(1),
#footer .f_menu .fm_bk .menu:nth-child(2){ border-bottom: 1px solid #FFF;}
#footer .f_menu .fm_bk .menu:nth-child(2),
#footer .f_menu .fm_bk .menu:last-child{ border-right:none;}
#footer .f_menu .fm_bk .menu:nth-child(1),
#footer .f_menu .fm_bk .menu:nth-child(3){ border-left:none;}
#footer .f_menu .fm_bk .menu a{ height: 200px;}
#footer .f_menu .fm_bk .menu a:hover{ background: url("../image/footer_c.png") no-repeat center 153px rgba(0,0,0,0.25);}

#footer .f_nav,
#footer .other{ display: none;}

#footer .f_access{ padding: 0 auto ;}	
#footer .f_access .f_all{ padding: 50px 30px; background: url("../image/f_logo.png") no-repeat center 20px;}
    
#footer .f_access .f_all .sns{ position: static; margin: 10px 0; text-align: center;}
#footer .f_access .f_all .sns p{ display: inline-block;}
#footer .cont1{ padding-bottom: 10px;}
    
#footer .cp1,
#footer .cp2{ font-size: 80%;} 
#footer .cp2{ margin-top:10px;} 
    
/*====================================================================================================
  SIDE MENU
====================================================================================================*/
    
#side_m{position: fixed; top:auto; bottom:0; left: 0; width: 100%; height: 90px; line-height: 85%; z-index: 999;}
#side_m p{ float: left; width: 33.33%; margin-bottom: 5px; height: 110px; text-align: center;}

#side_m p a{
    display: block;
    color: #FFF;
    width: 100%;
    height: 90px;
    text-indent: 1px;
    font-size: 78%;
    font-weight: bold;
    text-decoration: none;
    box-sizing: border-box;
}

#side_m p:nth-child(1){}
#side_m p:nth-child(2){}
#side_m p:nth-child(3){}

#side_m p:nth-child(1) a{ padding: 55px 0 0; background: #797A6E url("../image/side_sm01.png") no-repeat center 12px;}
#side_m p:nth-child(2) a{ padding: 62px 0 0; background: #A08965 url("../image/side_sm02.png") no-repeat center 12px;}
#side_m p:nth-child(3) a{ padding: 62px 0 0; background: #AB8E3E url("../image/side_sm04.png") no-repeat center 12px;}
#side_m p:nth-child(4) a{ padding: 62px 0 0; background: #A87635 url("../image/side_sm03.png") no-repeat center 12px;}

#page { position: fixed; bottom:180px; right: 20px;}
	

	
	
#side_m2{position: fixed; top:auto; bottom:0; left: 0; width: 100%; height: 90px; line-height: 85%; z-index: 999;}
#side_m2 p{ float: left; width: 100%; margin-bottom: 5px; height: 110px; text-align: center;}

#side_m2 p a{
    display: block;
    color: #FFF;
    width: 100%;
    height: 90px;
    text-indent: 1px;
    font-size: 78%;
    font-weight: bold;
    text-decoration: none;
    box-sizing: border-box;
}

#side_m2 p:nth-child(1){}

#side_m2 p:nth-child(1) a{ padding: 55px 0 0; background: #797A6E url("../image/side_sm01.png") no-repeat center 12px;}

/*====================================================================================================
  TOPPAGE
====================================================================================================*/

#mainimg {
border-top: none!important;}
#toppage { margin: 0; padding: 0;}
	






/*====================================================================================================
  SUB PAGE
====================================================================================================*/

#subpage { 
	margin:0 auto !important;
	padding:5% 5%;
	width:100%;
    box-sizing:border-box;
}
	
/* MIDASHI */
#subpage h3 { margin:0 0 20px; display: block; min-width: 100%!important; font-size: 100%; box-sizing: border-box;}
#subpage h4 { margin:0 2% 20px; font-size: 100%;}
#subpage h4.mid { font-size: 100%;}

/* CATCH COPY */
#subpage .catch { margin:0 2% 20px; font-size: 120%;}

/* COMMON */
#subpage .comment1 { margin:0 2% 20px;}
#subpage .comment2 { margin:0 2% 20px; padding:5%;}
#subpage .comment3 { margin:0 2% 20px; padding:5%;}

/* HYOU */
#subpage table.hyou { margin:0 2%; width:96%; table-layout:auto;}
#subpage table.hyou th,
#subpage table.hyou td{
	table-layout:auto !important;
	display:block !important;
	padding:5% !important;
	width:90% !important;
	height:auto !important;
}
#subpage table.pc_tit { display:none;}
#subpage table.hyou .sm_mid { display:block;}

/* 2RETU */
#subpage table.hyou2 td table {}
#subpage table.hyou2 td table th,
#subpage table.hyou2 td table td {
	display:table-cell !important;
	padding:5% !important;
	width:auto !important;
	height:auto !important;
}

/* 3RETU */
#subpage table.hyou3 { border-top:1px solid #DDD;}
#subpage table.hyou3+table.hyou3 { border-top:1px solid #DDD;}

/* 4RETU */
#subpage table.hyou4 {border-top:1px solid #DDD;}
#subpage table.hyou4+table.hyou4 { border-top:1px solid #DDD;}

/* 5RETU */
#subpage table.hyou5 { border-top:1px solid #DDD;}
#subpage table.hyou5+table.hyou5 { border-top:1px solid #DDD;}

/* FREE */
#subpage .pc_table { display:none;}
#subpage .sm_table { display:block;}
#subpage .sm_table table td { padding:5% !important;}

/* LIST */
#subpage ul.list-ul { margin:20px 2%;}

/* LINK */
#subpage .link-box { width:100%; margin:0 2%;}
#subpage .link-box:after { display:none;}
#subpage .link2 .link {width:auto;}
#subpage .link3 .link {width:auto;}
#subpage .link4 .link {width:auto;}
#subpage .file-box { width:100%; margin:0 2%;}
#subpage .file-box:after { display:none;}
#subpage .file-box .file img {padding-right:10px;}
#subpage .file2 .file {width:auto;}
#subpage .file3 .file {width:auto;}
#subpage .file4 .file {width:auto;}

/* EMBEDDED */
#subpage .embedded { margin:0 2% 20px;}

/* PHOTO BOX */
#subpage ul.photo_box { clear:none !important; float:none !important; margin:2%; width:96% !important; text-align:center;}
#subpage ul.g1 li,
#subpage ul.g2 li,
#subpage ul.g3 li,
#subpage ul.g4 li,
#subpage ul.g5 li{ margin:15px 0; width:100%; text-align:center;}
#subpage ul.g1 li.photo img,
#subpage ul.g2 li.photo img,
#subpage ul.g3 li.photo img,
#subpage ul.g4 li.photo img,
#subpage ul.g5 li.photo img { max-width:240px !important; height:auto !important;}

/* BOX */
#subpage .temple-box { margin:0 2%; width:96%;}
#subpage .temple-box:after { display:none;}
#subpage .box1,
#subpage .box2 { float:none;margin: 0 2% 20px; width:96%;}
#subpage .box1:after,
#subpage .box2:after { display:none;}
#subpage .box1 .catch { margin:0 0 20px !important;}
#subpage .box1 h4,
#subpage .box2 h4 { margin:10px 0; font-size:100%;}
#subpage .photo-c { float:none; padding:0; width:100%;}
#subpage .photo-c img { max-width:240px !important; height:auto !important; padding:0 0 20px;}
#subpage .photo-l,
#subpage .photo-r { float:none; padding:0; width:100%; text-align:center;}
#subpage .photo-l img,
#subpage .photo-r img { max-width:240px !important; height:auto !important; padding:0 0 20px;}


/* LINE */
#subpage .line {
	margin:0 2% 20px;
	height:50px;
	background-size:100% auto;
}

/* BUTTON */
#subpage .btn { float:none; margin:1% 2%;}
#subpage .b1,
#subpage .b2,
#subpage .b3 { width:auto;}


    
.pan { display: none;}
.text1{ padding: 5% 0 10%; text-align: center;}
    


/*====================================================================================================
  PAGE TITLE
====================================================================================================*/

/*====================================================================================================
  PAGE TITLE
====================================================================================================*/

/*====================================================================================================
  PAGE TITLE
====================================================================================================*/

/*====================================================================================================
  PAGE TITLE
====================================================================================================*/
