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

:root { /* 色変更される場合は、#以降のカラーコードを変更してください IE非対応 */
    --base-color: #000;
    --link-color: #666;
    --linkhover-color: #999;
    --back-color: #f7f7f7;
    --border-color: #fb3;
    --white-color: #fff;
    --main-color: #fb3;
    --main-thin-color: #f0e5d0;
    --accent-color: #85d3ef;
}

img {
	max-width:100%;
	height: auto;/*高さ自動*/
}
a {
    display:block;
    color: var(--link-color);
    text-decoration-line: none;
}
a:hover { 
    color: var(--linkhover-color);
}



/* バナー
-------------------------------------*/
.banner-copy {
    font-weight: bold;
    font-size: 1.5rem;
    color: #333;
}
.banner a {
    display: inline;
}
@media screen and (min-width: 769px) {
    .banner-copy {
        font-size: 2rem;
    }
}


/* 共通（余白等）
-------------------------------------*/
.center {
	text-align: center;
}
.mb1r {
	margin-bottom: 1rem;
}
.mb2r {
	margin-bottom: 2rem;
}
.mb4r {
	margin-bottom: 4rem;
}
.row .col {
    margin-bottom: 2rem;
}
.bold {
    font-weight: bold;
}
.large {
    font-size: 120%;
}



/* ヘッダー
-------------------------------------*/
.header {
	display: flex;
    flex-direction: row;
    padding: 2rem 0 0 0;
}
.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: 769px) {
    /* PC時はMENUボタンを非表示 */
    #open,#close {
        display: none !important;
    }

    #g-navi {
        display: block !important;
    }
}

@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        margin-bottom: 10px !important;
    }
    .header #open,#close  {
        position: absolute;
        top: 20px;
        right: 12px;
    }
    nav ul {
        flex-direction: column;
    }
    nav li a.external {
        background-image: none;
    }
    .header li {
        padding-top: 0;
    }
    /* スマホ時はMENUボタンを表示 */
    #open {
        display: block;
        background: url(../images/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(../images/button2.png);
        background-repeat: no-repeat;
        background-size: contain;
        width: 50px;
        height: 50px;
        border: none;
        position: absolute;
        top: 20px;
        right: 12px;
    }
    /* スマホ時はメニューを非表示 */
    #g-navi {
        display: none;
    }
    .header h1 {
        max-width: 180px;
    }
    header .row .col {
        margin-bottom: 0;
    }
}
    
/*メイン画像
-------------------------------------*/
.mainimg img {
    width: 100vw;
}

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

/*キャッチコピー
-------------------------------------*/
.catch {
    text-align: center;
}
.catch h2 {
    padding-bottom: 1rem;
}
.under {
    border-bottom: 0.4rem solid var(--border-color);
    padding:0 1rem 1rem 1rem;
}


/* 見出し
-------------------------------------*/
h2 {
    font-weight: bold;
}




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

/*フッター
-------------------------------------*/
footer {
    background-color: var(--main-thin-color); 
    padding: 5rem 0;
}
footer h4 {
    border-bottom: 3px solid var(--border-color);
}
#ft-navi {
    font-weight: bold;
    margin-bottom: 4rem;
}
.ex-link {
    font-size: 80%;
}

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

/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: var(--main-color);
    color: var(--base-color);
}

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



/* アコーディオン
-------------------------------- */
.qa {
    margin: 0;
}
.qa__block {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}
.qa__item {
    display: inline-block;
    margin-bottom: 2rem;
}
.qa__head {
    position: relative;
    width: 100%;
    height: auto;
    line-height: 1.5;
    text-align: left;
    background: var(--main-thin-color);
    border-radius: 4px 4px 0 0;
    border-color: #bbb;
    color: black;
    cursor: pointer;
    overflow: hidden;
    margin: 0;
    padding: 20px 30px 20px 20px;
}
@media screen and (min-width:769px) {
    .qa__head {
        padding: 10px 30px 10px 15px;
    }
}
.qa__head:after {
    content: "";
    border-top: 1px solid black;
    border-left: 1px solid black;
    display: inline-block;
    width: 10px;
    height: 10px;
    transform: rotate(-135deg) translateY(9px);
    position: absolute;
    right: 20px;
    top: 50%;
    transition: transform .4s;
}
.qa__body {
    position: relative;
    border-radius: 0 0 4px 4px;
    background: #fff;
    color: black;
    border: transparent;
    padding: 0 20px;
    line-height: 0;
    opacity: 0;
    transition: line-height 0.4s, padding 0.4s, opacity 0.4s;
}
.qa__body p {
    margin-bottom: 0;
}
.qa__body.is-open {
    padding: 20px;
    line-height: 1.5;
    opacity: 1;
    border: 1px solid #bbb;
}
.qa__body.is-open p {
    margin-bottom: 1rem;
}
.qa__body.is-open p:last-child {
    margin-bottom: 0;
}
.qa__head.is-open::after {
    transform: rotate(45deg) translateY(-10px);
}
.qa__item:not(:first-child) {
    margin-top: 0;
}




/* スライド
-------------------------------- */
.swiper-slide .item img {
    width: 100%;
}
.swiper-slide .item {
    position: relative;
}
.swiper-slide .item .text {
    position: absolute;
    --font-size: 3rem;
    --letters: 18;
    --line-height: 2;
    font-size: var(--font-size);
    line-height: var(--line-height);
    top: calc(50% - calc(var(--line-height) * var(--font-size)));
    left: calc(50% - calc(var(--letters) / 2 * var(--font-size)));
    color: #ccc;
    font-weight: bold;
    margin: 0;
}
@media screen and (max-width: 768px) {
    .swiper-slide .item .text {
        --font-size: 2rem;
    }
}

/* スライドに重ねる画像、テキスト（絶対配置）
-------------------------------------*/
.swiper .img-abs {
    position: absolute;
    width: 20%;
    left: 10%;
    bottom: 5%;
    z-index: 10;
}
.swiper .text-abs {
    position: absolute;
    --font-size: 1.5rem;
    --letters: 18;
    --line-height: 2;
    font-size: var(--font-size);
    line-height: var(--line-height);
    top: calc(50% - calc(var(--line-height) * var(--font-size)) - 5%);
    left: calc(50% - calc(var(--letters) / 2 * var(--font-size)));
    text-align: center;
    font-weight: bold;
    color: #fff;
    z-index: 10;
    margin: 0;
}
@media screen and (min-width: 769px) {
    .swiper .text-abs {
        --font-size: 3rem;
    }
}

