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

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





img {
	max-width:100%;
	height: auto;/*高さ自動*/
}
a {
    display:inline;
    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(--border-color);
	padding-bottom: 0.5rem;
    font-family: serif;
}

.underline-light {
	border-bottom: 3px double var(--base-color);
	padding-bottom: 0.1rem;
  }









/*ヘッダー
-------------------------------------*/
.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;
}
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style: none;
     /* background-color: #b8b5b5; 背景色を指定します */
	margin-bottom: 1rem;
}
nav li {
    display: block;
    flex: 1 0 auto;
}
nav li a {
        display: block;
    text-decoration: none;
    text-align: center;
 /*    color: #fff; 文字色を指定します */
}
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: 100vw;
}

/*chapter画像
-------------------------------------*/
.chapterimg {
	width: 100vw;

    position: relative;
}

.chapterimg img {
	width: 100vw;
    height: 5%;

}

.chapterimg h1 {
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    color: rgb(255, 255, 255);

}



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

/*新着情報
-------------------------------------*/
.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;
}

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

/*本文ヘッダー
-------------------------------------*/
.honbun_hed {
    width: 100%;
    background: #edf2f7;
    border: 5px double rgb(175, 175, 175);
    margin: 0em;
    padding: 0.6em;
    text-align: center;
    line-height: 100%;
    font-family: serif;
    height: 50%;
}


/*SUBヘッダー
-------------------------------------*/
.sub_hed {
    width: 100%;
    background: #edf2f7;
    border: 1px solid #959798;
    margin: 0.5em;
    padding: 0.6em;
    text-align: start;
    line-height: 100%;
    font-family: serif;
}


/*introヘッダー
-------------------------------------*/
.intro_hed {
    width: 100%;
    background: #edf2f7;
    border: 5px double rgb(175, 175, 175);
    margin: 0em;
    padding: 0.6em 0.6em 0 2.0em;
    text-align: left;
    line-height: 100%;
    font-family: serif;
}






/*本文マージン
-------------------------------------*/
.honbun_margin {
    width: 100%;
    margin: 0 1em 0 1em;
    padding: 0em;
}



/*コピーライト
-------------------------------------*/
.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: 1em;	
}
.breadcrumb li {
    list-style-type: none;
}
.breadcrumb li a {
    display: inline-block;
    color: var(--link-color);
}






/*　------------- 切り替えタブ　-----------------------------------*/


.area {
    width: 100%;
    margin: 0;
    flex-wrap: wrap;
    display: flex;
  }
   
  .tab_class {
    width: calc(100%/3);
    height: 50px;
    background-color: rgb(238, 237, 237);
    line-height: 50px;
    font-size: 15px;
    text-align: center;
    display: block;
    float: left;
    order: -1;
  }
   
  input[name="tab_name"] {
    display: none;
  }
   
  input:checked + .tab_class {
    background-color: rgba(104, 106, 236, 0.918);
    color: rgb(253, 254, 255);
  }
   
  .content_class {
    display: none;
    width: 100%;
  }
   
  input:checked + .tab_class + .content_class {
    display: block;
  }


