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

:root {
    --base-color: #000;
    --link-color: #666;
    --linkhover-color: #3366FF; ;
    --back-color: #1e90ff;
    --border-color: #ccc;
    --white-color: #fff;
}

img {
	max-width:100%;
	height: auto;
}
a {
    display:inline-block;
    color: var(--linkhover-color);
    text-decoration-line: none;
}
a:hover {
    color: #b0c4de;
}
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;
}

/*コンテナー*/
#container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 3%;
}

/*ヘッダー*/
.head {
	display: flex;
    flex-direction: row;
    padding: 1rem 0 0 -1rem;
}
.head h1 {
    padding: 2.5rem 0;
    color: #000000;
}
.telbox {
	margin-left: auto;
	font-size: 3.0rem;
	padding: 0.5rem 0 0 0;
}
.head2 {
    position: absolute;
    width: 90%;
    box-sizing: border-box;
    margin-right: 0
}

.first-v {
    background-image: url(../img/IMG_2288.jpg);
    height: 16vh;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    margin-bottom: 15px;
}
.menu {
	background-color: #87cefa;
}
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: #000000;
}
nav a:hover {
    background-color: #6495ed;
	color: var(--white-color);
}
nav a {
    padding: 2rem 1rem;
	display: block;
}

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

#navi {
    display: block !important;
}
}

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

.first-v {
        background-image: url(../img/IMG_2289.jpg);
        height: 15vh;
        background-repeat: no-repeat;
        background-size: cover;
        width: 100%;
        margin-bottom: 30px;
}

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: 10vw;
}

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

/*テーブル*/
/*table caption*/
.ta1 caption {
	border: 1px solid #999;	/*枠線の幅、線種、色*/
	border-bottom: none;	/*下線消す*/
	text-align: left;		/*左寄せ*/
	background: #eee;		/*背景*/
	font-weight: bold;		/*太字*/
	padding: 10px;			/*余白*/
}
/*見出し部分*/
.ta1 th.tamidashi {
	width: auto;
	text-align: left;	/*左寄せ*/
	background: #eee;	/*背景*/
}
/*ta1テーブルブロック設定*/
.ta1 {
	table-layout: fixed;
	width: 100%;
	margin: 0 auto 20px;
}
.ta1, .ta1 td, .ta1 th {
	word-break: break-all;
	border: 1px solid #999;	/*枠線の幅、線種、色*/
	padding: 10px;			/*余白*/
}
/*テーブルの左側ボックス*/
.ta1 th {
	text-align: center;	/*センタリング*/
	width: 45%;			/*幅*/
}

.ta2 caption {
	border: 1px solid #999;	/*枠線の幅、線種、色*/
	border-bottom: none;	/*下線消す*/
	text-align: left;		/*左寄せ*/
	background: #eee;		/*背景*/
	font-weight: bold;		/*太字*/
	padding: 10px;			/*余白*/
}
/*見出し部分*/
.ta2 th.tamidashi {
	width: auto;
	text-align: left;	/*左寄せ*/
	background: #eee;	/*背景*/
}
/*ta1テーブルブロック設定*/
.ta2 {
	table-layout: fixed;
	width: 100%;
	margin: 0 auto 20px;
}
.ta2, .ta2 td, .ta2 th {
	word-break: break-all;
	border: 1px solid #999;	/*枠線の幅、線種、色*/
	padding: 10px;			/*余白*/
}
/*テーブルの左側ボックス*/
.ta2 th {
	text-align: center;	/*センタリング*/
	width: 38%;			/*幅*/
}

/*新着情報
-------------------------------------*/
.news h2 {
  padding: 0.5em;/*文字周りの余白*/
  color: #010101;/*文字色*/
  background: #eaf3ff;/*背景色*/
  border-bottom: solid 3px #516ab6;/*下線*/
}
.news li {
    list-style-type: none;
	border-bottom: 1px solid var(--border-color);
	padding: 0.5rem 0;
}


/*大見出し
---------------------------------------------------------------------------*/

/*コンテンツ（見出しバーや文字などが入っているブロック）
---------------------------------------------------------------------------*/
/*コンテンツのh2タグの設定*/
/* #contents h2 { */
  /* padding: 0.5em;/*文字周りの余白*/
  /* color: #010101;/*文字色*/
  /* background: #eaf3ff;/*背景色*/
  /* border-bottom: solid 3px #516ab6;/*下線*/
/* } */

#contents h1 {
	position: relative;
	padding-top: 30px;
	font-size: 40px;
  text-align: center;
	border-bottom: 5px solid rgba(5,62,98,1);
}
#contents h1 {
	position: relative;
	z-index: 2;
}
#contents h1::before {
	content: attr(data-en);
	position: absolute;
	top: 5px;
	left: 50%;
  transform: translateX(-50%);
	color: rgba(5,62,98,0.3);
	font-size: 30px;
	z-index: 1;
  font-style: italic;
}

#contents h2 {
	position: relative;
	padding-top: 50px;
	padding-left: 10px;
  /* background: linear-gradient(transparent 90%, #000099 100%); */
  /* border-top: solid 3px #364e96;/*上線*/
  /* border-bottom: solid 3px #364e96;/*下線*/
	font-size: 35px;
}
#contents h2:after {
  content: "";
  display: block;
  height: 4px;
  background: -webkit-linear-gradient(to right, rgba(5,62,98,1), transparent);
  background: linear-gradient(to right, rgba(5,62,98,1), transparent);
}

#contents h2 span {
	position: relative;
	z-index: 2;
}

#contents h2::before {
	content: attr(data-en);
	position: absolute;
	transform: rotate(-5deg);
	top: 10px;
	left: 0;
	color: rgba(5,62,98,0.3);
	font-size: 40px;
	font-weight: 400;
	font-family: luxus-brut, cursive;
	font-style: italic;
}


/*コンテンツのh3タグの設定*/
#contents h3 {
  position: relative;
  padding: 0.25em 0;
}
h3:after {
  content: "";
  display: block;
  height: 4px;
  background: -webkit-linear-gradient(to right, rgb(230, 90, 90), transparent);
  background: linear-gradient(to right, rgb(230, 90, 90), transparent);
}
/*コンテンツのp(段落)タグ設定*/
#contents p {
	padding: 0px 20px 20px;	/*上、左右、下への余白*/
}
/*他。微調整。*/
#contents p + p {
	margin-top: -5px;
}
#contents h2 + p,
#contents h3 + p {
	margin-top: -10px;
}
#contents section + section {
	margin-top: 30px;
}

/*フッター
-------------------------------------*/
footer {
    background-color: #87cefa;
    padding: 1rem 0;
	color: var(--base-color);
}
footer h5 {
  position: relative;
  padding: 0.25em 0;
}
footer h5:after {
  content: "";
  display: block;
  height: 4px;
  background: -webkit-linear-gradient(to right, var(--base-color), transparent);
  background: linear-gradient(to right, var(--base-color), transparent);
}
footer h6 {
  position: relative;
  display: inline-block;
  padding: 0 55px;
}

h6:before, h6:after {
  content: '';
  position: absolute;
  top: 50%;
  display: inline-block;
  width: 45px;
  height: 2px;
  border-top: solid 1px black;
  border-bottom: solid 1px black;
}

h6:before {
  left:0;
}
h6:after {
  right: 0;
}

footer a {
    color: #0000cd;
    display:inline
}
footer a:hover {
    color: #ffffff;
}

/*アコーディオン*/

.accordion {
    max-width: 700px;
    margin-bottom: 7px;
}

.accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1em 2em;
    border: 2px solid #2589d0;
    border-radius: 5px;
    color: #2589d0;
    font-weight: 600;
    cursor: pointer;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    transform: translateY(-25%) rotate(45deg);
    width: 7px;
    height: 7px;
    border-bottom: 3px solid #2589d0;
    border-right: 3px solid #2589d0;
    content: '';
    transition: transform .3s;
}

.accordion[open] summary::after {
    transform: rotate(225deg);
}

.accordion p {
    position: relative;
    transform: translateY(-10px);
    opacity: 0;
    margin-top: 20px;
    padding: .8em 1.2em;
    border: 2px solid #2589d0;
    border-radius: 5px;
    background-color: #fff;
    color: #333333;
    transition: transform .5s, opacity .5s;
}

.accordion[open] p {
    transform: none;
    opacity: 1;
}

.accordion p::before,
.accordion p::after {
    position: absolute;
    top: -15px;
    left: 1.2em;
    width: 30px;
    height: 15px;
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
    content: '';
}

.accordion p::before {
    background-color: #2589d0;
}

.accordion p::after {
    top: -12px;
    background-color: #fff;
}

/*コピーライト
-------------------------------------*/
.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: #a9a9a9;
    color: var(--white-color);
    width: 50px;
    padding: 10px 5px;
    text-align: center;
}
#pagetop a:hover {
    background: #a9a9a9;
}
/*パンくずリスト
-----------------------------------*/
.breadcrumb {
    margin: 0 0 1em 0;
    padding: 0;
}
.breadcrumb li {
    list-style-type: none;
}
.breadcrumb li a {
    display: inline-block;
    color: var(--link-color);
}
