@charset "utf-8";

@media screen and (max-width:990px) {
    #header {
        height: 8%;
    }

    #service header {
        width: 100%;
    }

    #service .serviceInfo {
        width: 80%;
        left: 10%;
        padding: 80px 20px 30px 20px;
    }

    #service .serviceInfo li {
        width: 40%;
    }

}

@media screen and (max-width:768px) {
    body {
        font-size: 0.8rem;
    }

    #service {
        padding: 200px 0 0 0;
    }

    .faq-bg,
    .faq-bg::after {
        height: 35vh;
    }

    #contact .form-list dt {
        margin: 0 0 10px 0;
    }

    #contact .form-list dt,
    #contact .form-list dd {
        width: 80%;
        margin: 0 auto;
    }

    #NewsContainer {
        width: 90vw;
        margin: 0 auto;
        padding: 40px;


    }

    .news {
        padding: 20px;
        background: #fff;
    }

    .news li {
        border-bottom: 1px dashed #ccc;
    }

    .news li:last-child {
        border-bottom: none;
    }

    .news span {
        display: block;
        padding-bottom: 10px;
    }
}


@media screen and (max-width:550px) {
    .topText {
        color: #fff;
    }

    .sliderTop .sliderImg,
    .sliderBottom .sliderImg {
        width: 100%;
        height: 40vh;
        /* 上下でちょうど半分ずつ */
        background-repeat: no-repeat;
        background-size: auto 200%;
    }

    .sliderBottom .sliderImg {
        background-position: center bottom;

    }

    /* 原点を揃える：上段＝上基準、下段＝下基準 */
    .sliderTop .sliderImg {
        background-position: center top;

    }

    .accordion {
        width: 80%;
    }

    #service .service-area {
        width: 90%;
        left: 5%;
    }

    #faq {
        margin: 0 0 100px 0;
    }

    #faq h2 {
        margin: 0;
    }

    .faq-bg {
        margin: 0 0 100px 25%;
    }

    .faq-bg,
    .faq-bg::after {
        height: 20vh;
    }

    #contact h2 {
        margin: 0 0 50px 0;
    }

    /*  NewsContainer*/


    #NewsContainer {
        width: 95vw;
        margin: 0 auto;
        padding: 20px;


    }

    .news {
        padding: 20px;

    }


    .news li {
        border-bottom: 1px dashed #ccc;
        display: block;
        background: #fff;
        padding: 15px;
        border-left: 15px solid #bdd4e8;
        line-height: 1.4;
        font-size: 18px;
    }

    .news li:last-child {
        border-bottom: none;
    }

    .news span {
       font-size: 16px;
        padding-bottom: 5px;
    }

    /* basicinfo */
    #basicinfo {
        background: #fff;
        padding-bottom: 30px;
        width: 100%;
        margin: 0 auto;
        display: block;

    }

    /*タイムライン全体の設定*/
    .maininfoArea {
        width: 80%;
        padding: 0 20px;
    }

    .maininfoArea dl {
        margin: 0 0 20px 3em;
    }

    .maininfoArea dt {
        font-size: 40px;
    }

    .maininfoArea dd {
        font-size: 16px;
    }

    .maininfoArea li:last-of-type {
        padding: 0;
    }

    /*絶対配置で線を設定*/
    .borderLine {
        left: 0.6em;
    }

    /*タイムラインの見出し横の丸の位置と形状*/
    .maininfoArea li::before {
        content: '';
        position: absolute;
        top: 30px;
        left: 0;
        width: 20px;
        height: 20px;
        background: #666;
        border-radius: 50%;
    }

    .maininfoArea li::after {
        content: '';
        position: absolute;
        bottom: -50px;
        left: 0;
        width: 20px;
        height: 20px;
        background: #666;
        border-radius: 50%;
    }

    /* =========================
   タブ本体
   ========================= */

    .tabArea {
        width: 100%;
        margin: 100px auto;
    }

    /* タブ見出し（料金表 / 今月の予約表） */
    .tab {
        display: flex;
        justify-content: space-between;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    /* タブ内のアイコン画像 */
    .tab li a img {
        width: 20%;
        margin-right: 5px;
        vertical-align: middle;
    }

    /* liに.activeが付いたとき（JSで制御） */
    .tab li.active a {
        transition: all 0.8s ease-out 0ms;
    }

    /*== 下線が伸びて背景に変わる　*/

    .tabBtn {
        /*線の基点とするためrelativeを指定*/
        position: relative;
        /*ボタンの形状*/
        color: #5c5c5c;
        padding: 10px;
        display: inline-block;
        text-decoration: none;
        outline: none;
        font-size: 16px;
    }

    /*テキストの設定*/
    .tabBtn span {
        /*テキストを前面に出すためz-indexの値を高く設定*/
        position: relative;
        z-index: 2;
    }

    .tabBtn:hover span {
        color: #121212;
    }

    /*線の設定*/
    .tabBtn::after {
        content: '';
        /*絶対配置で線の位置を決める*/
        position: absolute;
        z-index: 1;
        bottom: 0;
        left: 0;
        /*線の形状*/
        background: var(--main);
        width: 100%;
        height: 3px;
        /*アニメーションの指定*/
        transition: all 0.3s ease-in-out;
    }

    /*線が伸びて背景に*/
    .tabBtn:hover::after {
        height: 100%;
        border-radius: 20px 20px 0 0;
    }

    /* aタグ共通ボタンスタイル */

    .taxTableTh {
        font-size: 1em;

    }

    .taxTableTh tr th {
        padding: 10px 5px;
        text-align: center;

    }

    .taxTableTbTr2clear {
        display: none;
    }

    #using .usingInfo li {
        flex-basis: 45%;
    }

    #formWrap {
        width: 80%;
    }

    #footer small {
        color: #fff;
        font-size: 10px;
        letter-spacing: -0.05em;

    }

    .footerLogo img {
        max-width: 65%;
        margin-top: 50px;
    }

    #wrapper {
        height: 20vh;

    }

}

@media screen and (max-width:400px) {
    #service .service-area {
        width: 100%;
        left: 0;
        font-size: 0.9rem;
    }

}