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

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

img {
    max-width: 100%;
    height: auto;
    /*高さ自動*/
}

a {
    display: block;
    color: var(--white-color);
    text-decoration-line: none;
}

a:hover {
    color: var(--linkhover-color);
}

/*ヘッダー
-------------------------------------*/
header {
    background-color: #b91f3a;
    padding: 1rem 1.5rem 0rem 2rem;
}

.header {
    background-color: transparent;
    padding: 0;
}

@media screen and (min-width: 769px) {
    .container>.row:first-child {
        padding-left: 15px;
    }

    .container>.row:nth-child(2) {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 0;
        width: 80%;
        max-width: 1200px;
        justify-content: flex-end;
    }

    nav ul {
        margin: 0;
    }

    #navi {
        padding-right: 15px;
    }

    nav li a {
        color: var(--white-color);
        padding-bottom: 2rem;
    }
}

.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 {
    padding: 0.5rem;
}

@media screen and (min-width: 769px) {

    #open,
    #close {
        display: none !important;
    }

    #navi {
        display: block !important;
    }
}

@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
    }

    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: 0px;
        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: 0px;
        right: 12px;
    }

    /* スマホ時はメニューを非表示 */
    #navi {
        display: none;
    }
}

.logo_fukushoya {
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    width: 100px;
}


/*メイン画像
-------------------------------------*/
.mainimg img {
    width: 100vw;
    vertical-align: top;
}

/* パソコンで見たときは"pc"のclassがついた画像が表示される */
.pc {
    display: block !important;
}

.sp {
    display: none !important;
}

/* スマートフォンで見たときは"sp"のclassがついた画像が表示される */
@media only screen and (max-width: 768px) {
    .pc {
        display: none !important;
    }

    .sp {
        display: block !important;
    }
}

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

.gray-back {
    background-color: var(--back-color);
    margin: 0%;
    padding: 50px 0;
}

/*キャッチコピー
-------------------------------------*/
.catch {
    color: #fff;
    padding: 30px;
    text-align: center;
    background-color: #b91f3a;
}

.catch h2 {
    padding-bottom: 1rem;
}

.under {
    font-weight: 600;
}

.center {
    text-align: center;
    margin-bottom: 4rem;
}

.menu {
    display: inline-block;
    text-align: center;
    height: 80px;
    line-height: 80px;
    background: #b91f3a;
    color: #fff;
    border-radius: 50px;
    width: 100%;
    font-size: 2.0rem;
    transition: .3s;
    max-width: 1160px;
}

.menu:hover {
    background: #881022;
}

.commitment_text {
        text-align: left;
    }
.commitment02_text {
        text-align: left;
    }

@media only screen and (max-width: 768px) {
    .commitment_text {
        padding-bottom: 30px;
        margin-left: 30px;
        margin-right: 30px;
    }
    .commitment02_text {
        margin-left: 30px;
        margin-right: 30px;
    }
    .menu {
        width: 85%;
    }
}

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    /* 中央寄せの基点 */
}

.news-list .item a {
    display: inline-flex;
    /* 横並び＋中央寄せが効くようにする */
    align-items: center;
    /* 縦位置をそろえる */
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #CCC;
    padding: 20px 40px;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
}

.news-list .item:first-child a {
    border-top: 1px solid #CCC;
}

.news-list .item .date {
    color: #999;
    margin-right: 10px;
    /* 日付とタイトルの間に少し余白 */
    white-space: nowrap;
    /* 日付が改行しないように */
}

.news-list .item .title {
    white-space: nowrap;
}

.news-list .item a:hover .title {
    color: #999;
}

@media screen and (max-width: 768px) {
    .news-list .item a {
        display: block;
    }

    .news-list .item .date,
    .news-list .item .title {
        display: block;
        text-align: center;
    }
}

.flex-wrapper {
    display: flex;
    flex-direction: column;
    /* 初期値: スマホでは縦並び */
    align-items: center;
    /* 地図とリストを中央に寄せる（オプション） */
}

/* 地図のスタイル (既存) */
#map {
    position: relative;
    width: 100%;
    /* スマホでは全幅 */
    padding-bottom: 50%;
    height: 0;
    overflow: hidden;
    flex-wrapper
}

#map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* 情報リストのスタイル */
.info-list {
    width: 100%;
    /* スマホでは全幅 */
    padding-top: 30px;
    text-align: center;
    font-size: 1.5rem;
}

.info-list dt {
    padding-top: 6px;
}

/* ---------------------------------
 * PC向けスタイル (横幅768px以上)
 * ---------------------------------*/

@media screen and (min-width: 768px) {
    .flex-wrapper {
        flex-direction: row;
        /* PCでは横並び */
        justify-content: space-between;
        /* 要素間にスペースを設ける */
        align-items: flex-start;
        /* 要素の上端を揃える */
        max-width: 1200px;
        /* PCでの最大幅を設定（オプション） */
        margin: 0 auto;
        /* 中央寄せ（オプション） */
    }

    #map {
        width: 60%;
        /* PCでは地図を広めに */
        padding-bottom: 30%;
        /* PCでの地図の高さを調整 */
        flex-shrink: 0;
        /* 地図のサイズを固定 */
    }

    .info-list {
        width: 35%;
        /* PCでは情報リストを狭めに */
        padding-top: 0;
        /* PCでは上部のpaddingをリセット */
        text-align: left;
    }
}

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

/*フッター
-------------------------------------*/
footer {
    background-color: #b91f3a;
    padding: 3rem 0;
    margin-top: 50px;
}

footer .footer_sns {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

footer .footer_link {
    width: 40px;
    margin: 0 20px;
    padding: 0;
    text-align: center;
}

--- .sns_line img,
.sns_X img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}


/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: #b91f3a;
}

.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;
    }
}