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

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

img {
	max-width:100%;
	height: auto;/*高さ自動*/
}
a {
    display:block;
    color: var(--base-color);
    text-decoration-line: none;
}
a:hover { 
    color: var(--linkhover-color);
}
a img {
    margin-bottom: 1rem;
}
a img:hover {
	opacity: 0.8;
}
.blueback {
	background-color: var(--back-color);
	color: var(--white-color);
	padding: 1rem;
}
.underline {
	border-bottom: 3px solid var(--back-color);
	padding-bottom: 0.5rem;
}
.center {
	text-align: center;
}

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

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

@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: 20px;
    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: 100vw;
}

/*メインコンテンツ
-------------------------------------*/
main {
    margin: 5rem 0 5rem 0;
}

/*新着情報
-------------------------------------*/
.news h2 {
    background-color: var(--back-color);
	color: var(--white-color);
	padding: 1rem;
}
.news li {
    list-style-type: none;
	border-bottom: 1px solid var(--border-color);
	padding: 0.5rem 0;
}

/*フッター
-------------------------------------*/
footer {
    background-color: var(--back-color);
    padding: 5rem 0;
	color: var(--white-color);
}
footer h5 {
    border-bottom: 2px solid var(--white-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: var(--back-color);
    color: var(--white-color);
    width: 50px;
    padding: 10px 5px;
    text-align: center;
}
#pagetop a:hover {
    background: var(--back-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);
}

/* メイン画像スライドショー */
.mainimg {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 350px;
    margin: 0 auto;
    overflow: hidden;
}

.mainimg .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.mainimg .slide.active {
    opacity: 1;
}

/* 左右の切り替えボタン */
.mainimg .slide-prev,
.mainimg .slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
}

/* 前へ */
.mainimg .slide-prev {
    left: 10px;
}

/* 次へ */
.mainimg .slide-next {
    right: 10px;
}

/* マウスを乗せたとき */
.mainimg .slide-prev:hover,
.mainimg .slide-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* スライド切り替えボタンの位置調整 */
.mainimg .slide-prev,
.mainimg .slide-next {
    box-sizing: border-box;
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* 左ボタン */
.mainimg .slide-prev {
    left: 15px;
    right: auto;
}

/* 右ボタン */
.mainimg .slide-next {
    right: 15px;
    left: auto;
}

/* ヘッダー余白調整 */
.head {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    margin: 0;
}

.head h1 {
    padding: 0;
    margin: 0;
    line-height: 1;
}

.head h1 a {
    display: block;
}

.head h1 img {
    display: block;
    margin: 0;
    max-height: 80px;
    width: auto;
}

.telbox {
    margin-left: auto;
    padding: 0;
    font-size: initial;
    line-height: 1;
}

.telbox img {
    display: block;
    max-height: 70px;
    width: auto;
}

/* スマートフォン */
@media screen and (max-width: 768px) {
    .head {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0;
    }

    .telbox {
        margin-left: 0;
    }
}

/* ヘッダー下に少し余白 */
.head {
    padding-bottom: 10px;
}

/* お問い合わせ枠 */
.contact-box {
    border: 1px solid #003399;
    text-align: center;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
}

/* 青い見出し */
.contact-title {
    background-color: #003399;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 5px;
}

/* 内容 */
.contact-body {
    padding: 20px 10px;
}

/* 電話番号 */
.contact-tel {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* メールボタン */
.contact-button {
    display: inline-block;
    background-color: #3355aa;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 15px;
    text-decoration: none;
}

/* マウスを乗せたとき */
.contact-button:hover {
    background-color: #003399;
    color: white;
}