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

img {
    max-width: 100%;
    height: auto; /*高さ自動*/
    margin: 0;
    padding: 0;
}
a {
    display: block;
    color: #17469D;
    text-decoration-line: none;
    backface-visibility: hidden; /*Chromeずれ解消*/
}
a:hover { 
    color: #17469D;
    text-decoration: underline;
}
a img:hover {
    opacity: 0.8;
}
@media (min-width: 551px) {
a[href*="tel:"] {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
}
}
.underline {
    border-bottom: 3px solid #17469D;
    padding-bottom: 0.5rem;
}
.leftline { 
    border-left: 6px solid #17469D;
    padding-left: 0.5rem;
}
.bothline { 
    background-color: #17469D;
    padding: 0.5rem;
    color: #ffffff;
}
.title { 
    font-size: 2.2rem;
}

/*ヘッダー
-------------------------------------*/
header {
    position: sticky;
    top: 0;
    padding: 0;
    z-index: 1000;
    background-color: #ffffff;
    transition: top 0.4s ease;
}
@media (max-width: 550px) {
header {
    border-bottom: 1px solid #cccccc;
    }
}
.head {
    display: flex;
    flex-direction: row;
    padding: 1rem 0 0 0;
}
/*ロゴ
-------------------------------------*/
.site-logo {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.site-logo a {
    display: block;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

/* picture内のimg共通 */
.site-logo img {
    display: block;
    width: 470px; /* PC用幅 */
    height: 50px;
    margin-top: 1.0rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 550px) {
    .site-logo img {
        width: 263px; /* スマホ用幅 */
        height: 60px;
        margin-top: 0.5rem;
        margin-bottom: 1.2rem;
    }
}
/*電話・ナビ
-------------------------------------*/
.telbox {
    margin-left: auto;
    padding: 0;
}
.menu {
    background-color: #17469D;
}
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;
    font-weight: 600;
    text-align: center;
}
nav li a {
    text-decoration: none;
    text-align: center;
    background-color: #17469D;
    color: #ffffff;
}
nav li a.current {
    background-color: #4D71B4;
    color: #ffffff;
    text-decoration: none;
}
nav a:hover {
    background-color: #4D71B4;
    color: #ffffff;
    text-decoration: none;
}
nav a {
    padding: 2rem 1rem;
    display: block;
}

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

#navi {
    display: block !important;
}
}

@media screen and (max-width: 550px){
.head {
    flex-direction: column;
    text-align: left;
    margin-bottom: 5px;
}
.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;
    margin-bottom: 0;
}
/* スマホ時はMENUボタンを表示 */
#open,#close  {
    display: block;
    width: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
/* スマホ時はメニューを非表示 */
/* メニューを固定表示に変更 */
#navi {
    display: none;
    position: absolute; /* 絶対位置に変更 */
    top: 0; /* ヘッダーの高さに合わせて調整 */
    left: 0;
    width: 100%;
    z-index: 1000; /* 他の要素より前面に表示 */
    background-color: #17469D;
    height: 100vh;
    opacity: 90%;
}

/* メニュー表示時のスタイル */
#navi.show {
display: block;
}

/* メニューボタンのz-indexを上げる */
#open, #close {
z-index: 1001;
}

/* メニュー項目の背景色を確実に設定 */
nav li a {
    background-color: #17469D;
    border-bottom: 1px solid #cccccc;
}
}

/*メイン画像
-------------------------------------*/
.mainimg {
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}
.mainimg img {
    width: 100vw;
    height: auto;
}
.swiper-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    position: relative;
}
.swiper-slide img {
    display: block;
}
.swiper-slide {
  opacity: .2; /* 左右のスライドを薄くする */
  transform: scale(1); /* 左右のスライドを小さくする */
  transition: .7s; /* ゆっくり小さくさせる */
}
.swiper-slide img {
  height: auto;
  width: 100%;
}
.swiper-slide-active {
  opacity: 1; /* 中央のスライドは薄くしない */
  transform: scale(1); /* 中央のスライドは小さくしない */
  z-index: 1; /* 中央のスライドを一番上にする */
}
@media (max-width: 767px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}
.swiper-pagination {
  bottom: 15px !important;
}

/*サブ画像
-------------------------------------*/
.subimg {
    background-color: #e7ecf5;
}
.subimg img {
    width: 100vw;
    margin: 0;
    padding: 0;
}
/*メインコンテンツ
-------------------------------------*/
main {
    margin: 2rem 0 2rem 0;
}

/*新着情報
-------------------------------------*/
.news h2 {
    border-bottom: 3px solid #53a548;
    padding-bottom: 0.5rem;
    font-weight: 200;
}
.news li {
    list-style-type: none;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 0;
}

/*サイドメニュー
-------------------------------------*/
#sidemenu ul{ 
    margin: 0; 
    padding: 0; 
    list-style: none; 
}

#sidemenu li{ 
    display: inline; 
    padding: 0; 
    margin: 0;
}

#sidemenu li a{
    display: block; 
    border-left: 8px solid #17469D;
    border-top: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    background-color: #ffffff;
    padding: 1.3rem 2rem;
    text-decoration: none;
    color: #000000;
    width: 100%;
    height: 5rem;
    margin: 0 0 1rem 0;
    text-align: left;
    font-weight: bold;
}

#sidemenu li a:hover{
    border-left: 8px solid #4D71B4;
    background-color: #f1f1f1;
}

/*フッター
-------------------------------------*/
footer {
    background-color: #17469D;
    padding: 4rem 0 0.5rem 0;
    color: #ffffff;
    font-size: 80%;
    text-align: center;
    text-decoration: none;
}
footer h5 {
    border-bottom: 3px solid #ccc;
}
footer a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}
footer a:hover {
    color: #fff;
    text-decoration: underline;
    display: inline-block;
    font-weight: 600;
}

/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1.5rem 0;
    background-color: #17469D;
    color: #fff;
    font-size: 90%;
}
.copyright a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
}
.copyright a:hover {
    color: #fff;
    text-decoration: underline;
    display: inline-block;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: -25px;
    right: 0px;
}
#pagetop a {
    display: block;
    background: #4D71B4;
    color: #fff;
    width: 50px;
    padding: 10px 5px;
    text-align: center;
    text-decoration: none;
}
#pagetop a:hover {
    background: #4D71B4;
    text-decoration: none;
}
/*パンくずリスト
-----------------------------------*/
.breadcrumb {
    margin: 0 0 1em 0;
    padding: 0;	
}
.breadcrumb li {
    list-style-type: none;
}
.breadcrumb li a {
    display: inline-block;
    color: #959fa5;
}
/*スクロールアップ
-----------------------------------*/
.scroll_up {
    transition: 0.8s ease-in-out;
    transform: translateY(40px);
    opacity: 0;
}
.scroll_up.on {
    transform: translateY(0);
    opacity: 1.0;
}