﻿@charset "UTF-8";
@import url("grid.css");

:root { /* 色変更される場合は、#以降のカラーコードを変更してください IE非対応 */
    --base-color: #000;
    --link-color: #666;
    --linkhover-color: #999;
    --back-color: #f7f7f7;
    --border-color: #ccc;
    --white-color: #fff;
}

h1,h2,h4,h5,p,ul,ol,li,dl,dt,dd,form{
	margin: 0px;
	padding: 0px;
}
h3 {
	font-size: 180%;	/*文字サイズ*/
	clear: both;
	width: 680px;
	border-bottom: 3px solid #16a085;/*708BE6 007F0E*/
	color: #007F0E;/*708BE6*/
	text-align: left;
	margin-left: 10px;
}
img {
	max-width:100%;
	height: auto;/*高さ自動*/
}
a {
    display:block;
    color: var(--link-color);
    text-decoration-line: none;
}
a:hover { 
    color: var(--linkhover-color);
}
a img {
    margin-bottom: 1rem;
}
a img:hover {
	opacity: 0.8;
}
.underline {
	border-bottom: 3px solid var(--base-color);
	padding-bottom: 0.5rem;
}

/*ヘッダー
-------------------------------------*/
.head {
	display: flex;
    flex-direction: row;
    padding: 1rem 0 0 0;
}

.head h1 { 
    padding: 1rem 0;
}
.telbox {
	margin-left: auto;
	font-size: 1.5rem;
	padding: 1rem 0 0 0;
}
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style: none;
	margin-bottom: 1rem;
}
nav li {
    display: block;
    flex: 1 0 auto;
}
nav li a {
    text-decoration: none;
    text-align: center;
}
nav a:hover {
    background-color: var(--back-color);   
}
nav a {
    padding: 1rem;
}

@media screen and (min-width: 769px){
/* PC時はMENUボタンを非表示 */
#open,#close {
    display: none !important;
}

#navi {
    display: block !important;
}
}

@media screen and (max-width: 768px){
.head {
	flex-direction: column;
    text-align: left;
    margin-bottom: 20px;
}
.telbox {
	margin-left: 0;
	text-align: center;
}
.head #open,#close  {
    position: absolute;
    top: 28px;
    right: 12px;
    }
nav ul {
	flex-direction: column;
}

nav li {
	padding-top: 0;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 0;
}
/* スマホ時はMENUボタンを表示 */
#open {
    display: block;
    background: url(../img/button.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
#close  {
    display: block;
    background: url(../img/button2.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
/* スマホ時はメニューを非表示 */
#navi {
    display: none;
}
}
/*メイン画像*/
-------------------------------------
.mainimg img {
	width: 100px;
	height: 50%;
}

/*トップページのスライドショーabsolute relative*/
---------------------------------------------------------------------------
.slideshow { width: 100%; overflow: hidden; position:relative; }
.slide { width: 100%; position:absolute ; opacity: 0; animation: fade 9s infinite; }
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 3s; }
.slide:nth-child(3) { animation-delay: 6s; }
@keyframes fade {
0% { opacity: 0; }
10% { opacity: 1; }
30% { opacity: 1; }
40% { opacity: 0; }
100% { opacity: 0; }
 }
/*メインコンテンツ*/
-------------------------------------
main {
    margin: 2rem 0 2rem 0;
}*/

---------------------------------------------------------------------------*/
main {
	float: right;	/*メインコンテンツを右側に回り込みさせる*/
	width: 680px;	/*メインコンテンツ幅*/
	background: #FFF;
	margin: 5rem 0 5rem 0;
}

/*段落タグの余白設定*/
#main p {
	padding: 0.5em 0px 1em;	/*左から、上、左右、下への余白*/
}

/*新着情報
-------------------------------------*/
.news h2 {
    border-bottom: 3px solid var(--base-color);
	padding-bottom: 0.5rem;
}
.news li {
    list-style-type: none;
	border-bottom: 1px solid var(--border-color);
	padding: 0.5rem 0;
}
.main2  {
    text-align: left;
    padding: 1rem 0;

}
/*フッター
-------------------------------------*/
footer {
    background-color: var(--back-color);
    padding: 5rem 0;
}
footer h5 {
    border-bottom: 3px solid var(--border-color);
}

/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: var(--white-color);
}
.copyright a {
    color: var(--base-color);
    text-decoration: none;
	display: inline-block;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 15px;
    right: 15px;
}
#pagetop a {
    display: block;
    background-color: var(--base-color);
    color: var(--white-color);
    width: 50px;
    padding: 10px 5px;
    text-align: center;
}
#pagetop a:hover {
    background-color: var(--link-color);
}
/*パンくずリスト
-----------------------------------*/
.breadcrumb {
    margin: 0 0 1em 0;
    padding: 0;	
}
.breadcrumb li {
    list-style-type: none;
}
.breadcrumb li a {
    display: inline-block;
    color: var(--link-color);
}

/*gallery.htmlで使っているボックス
---------------------------------------------------------------------------*/
main .box1 {
	padding: 8px;	/*１個ごとのボックス内の余白*/
	float: left;
	height: 200px;	/*ボックスの高さ*/
	width: 200px;	/*ボックスの幅*/
	border: 1px solid #999;	/*ボックスの線の幅、線種、色*/
	font-size: 12px;	/*文字サイズ*/
	line-height: 1.6;
	margin-left: 10px;
	display: inline;
	margin-bottom: 10px;
	overflow: hidden;
}
main .box1 p {
	padding: 0px;
}

/*その他
---------------------------------------------------------------------------*/
.look {
	background: #d2d2d2;
}
.mb1em {
	margin-bottom: 1em;
}
.clear {
	clear: both;
}
ul.disc {
	padding: 0em 25px 1em;
	list-style: disc;
}
.color1 {
	color: #708BE6;
}
.color2 {
	color: #007F0E;
}
.pr {
	font-size: 10px;
}
.btn {
	font-size: 13px;
}
.wl {
	width: 96%;
}
.ws {
	width: 50%;
}
.c {
	text-align: center;
}

