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

img {
	max-width:100%;
	height: auto;/*高さ自動*/
}
a {
    display:block;
    color: #1a0dab;
    text-decoration-line: none;
}
a:hover { 
    color: #1a0dab;
}

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

.green-back {
    background-color: #C4CB71;
}

.header-box {
	margin-left: auto;
	margin-top: 8px;
}
.contact-button {
	padding: 1rem;
	border: 2px solid var(--base-color);
}
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style: none;
	margin: 1rem 0 0 0;
}
nav li {
	flex: 1 0 auto;
}
nav li a {
    text-decoration: none;
    text-align: center;
    width: 100%;
}
nav a:hover {
    background-color: var(--back-color);   
}
nav a {
    padding: 0.5rem;
}

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

#navi {
    display: block !important;
}
}

@media screen and (max-width: 768px){
.header {
	flex-direction: column;
    margin-bottom: 10px;
}
.header #open,#close  {
    position: absolute;
    top: 20px;
    right: 12px;
}
nav ul {
	flex-direction: column;
}
.header li {
	padding-top: 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: 100%;
}

/*メインコンテンツ
-------------------------------------*/
/*main {
    margin: 60px 0 0 0;
}*/
section {
	margin: 6rem 0;
	/*padding: 3rem 0;*/
}
.gray-back {
	background-color: var(--back-color);
}
.ltgreen-back {
    background-color: #E5E5CF;
}

@media screen and (min-width: 768px){
.sp-only {
    display: none;
}
}

/*h1
-------------------------------------*/
h1 {
    font-size: 20px;
    /*font-weight: bold;*/
    color: #fff;
    text-align: right;
}

h2 {
    background-color: #C4CB71;
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    padding: 20px;
}


/*h3
-------------------------------------*/
h3 {
    text-align: left;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
}

/*通常テキスト
-------------------------------------*/
.text {
    text-align: left;
    font-size: 18px;
    line-height: 27px;
    margin-bottom: 30px;
}

.text-right
    {
    text-align: right;
    font-size: 18px;
    line-height: 27px;
    margin-bottom: 30px;
    }

/*キャッチコピー
-------------------------------------*/
.catch {
    text-align: center;
}
.catch .midashi {
    font-size:32px;
    font-weight: bold;
    line-height: 1.4em;
}
/*.under {
    border-bottom: 0.4rem solid var(--base-color);
    padding:0 1rem 1rem 1rem;
}*/
.center {
	text-align: center;
	margin-bottom: 4rem;
}

/*申し込みの流れ
-------------------------------------*/
.flow.row {
	margin-bottom: 3rem;
}

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

/*お問い合わせ
-------------------------------------*/
.contact-box {
	border: 1px solid var(--border-color);
	text-align: center;
	padding: 2rem 0;

}
.tabletitle {
	margin: 4rem 0;
    border: solid 1px #fff;
    background: #C4CB71;
    color: #fff;
    font-weight: bold;
    text-align: center;
    font-size: 24px;
}

table {
	width: 100%;
    margin-bottom: 2em;
}

td {
    border: solid 1px #fff;
    background: #E5E6CF;
}

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

/*ページトップへ戻るボタン
-------------------------------------*/
#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);
}

/* 幅768px以下の表示
-------------------------------------*/
@media screen and (max-width: 768px){
	
/*ヘッダー
-------------------------------------*/
.header-box {
	display: none;
}	
/*お問い合わせ
-------------------------------------*/
.table th {
	width: 100%;
	display: block;
}	
.table td {
	display: block;
}
.pc-only {
    display: none;
}
}