/* タブレット用 */
@media screen and (max-width: 1024px) {

    /* 共通CSS */
    .wrapper {
        width: 80%;
    }
}

/* スマホ用 */
@media screen and (max-width: 660px) {

    /* 共通CSS */
    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 25px;
    }

    h4 {
        font-size: 14px;
    }

    a,
    p,
    th,
    td {
        font-size: 13px;
    }

    .wrapper {
        width: 90%;
    }

    /* top-img */
    .top-img {
        height: 350px;
    }

    .top-text {
        transform: translate(-50%, -40%);
    }

    /* news */
    .news-list {
        width: 100%;
    }

    /* about */
    .about-table th,
    td {
        width: 100%;
        display: block;
    }

    /* confirm.php */
    form {
        width: auto;
    }

    /* breadcrumb */
    .breadcrumbs li,
    .breadcrumbs li a {
        font-size: 10px;
    }

    .breadcrumbs ul li::before {
        padding: 0 5px 0 0;
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        content: "\f105";
        font-size: 10px;
        color: #3e3e3b;
    }

    /* login.html */
    .login,
    .register {
        width: 100%;
    }

    .login-form,
    .regi-form {
        width: 90%;
        margin: 0 auto;
    }

    /* rsv_time.php */
    .flex-container {
        flex-direction: column;
        /* 縦方向にレイアウトを変更 */
        align-items: center;
        /* コンテンツを中央に揃える */
    }

    .flex-container img {
        margin-right: 0;
        /* マージンをリセット */
        margin-bottom: 20px;
        /* 画像とテキストの間にスペースを追加 */
        max-width: 100%;
        /* 画像の幅を親要素に合わせる */
    }

    .flex-container .text {
        max-width: 100%;
        /* テキストの幅を親要素に合わせる */
        text-align: center;
        /* テキストを中央揃え */
    }

    .table-scroll {
        overflow: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .cal th,
    .cal td {
        font-size: 12px;
        padding: 3px;
    }

    .rsv-stime {
        width: 30px;
    }

    .parebtn {
        padding: 5px;
    }

    .form-label {
        width: auto;
    }
    .form-inline{
        display: block;
    }
    /* index.php slider */
    .slick-prev, .slick-next {
        width: 25px;
        height: 25px;
    }
    .slider .slick-slide {
        padding: 10px;
    }
    .flex {
        grid-template-columns: repeat(2, 1fr);
    }
    /* space 説明箇所 */
    .block-container {
        display: block!important;
    }
    .second-block{
        margin-bottom: 2rem;
    }
}
/* スマホ用の調整 */
@media (max-width: 767px) {
    .swiper-wrapper {
        height: 300px;
        /* スマホの画面サイズでの高さ */
    }
    #page-link li a {
        font-size: .7rem!important; /* スマホ用のフォントサイズを指定 */
        padding: 0 1rem!important; /* スマホ用のパディングを指定 */
    }
}

/* タブレット以上の調整 */
@media (min-width: 768px) and (max-width: 1023px){
    .swiper-wrapper {
        height: 500px;
        /* タブレット以上の画面サイズでの高さ */
    }
}
/* デスクトップ以上の整 */
@media (min-width: 1024px) {
    .swiper-wrapper {
        height: 500px;
        /* デスクトップ以上の画面サイズでの高さ */
    }
    /* footer */
    .lg-flex {
        display: flex;
    }
}
@media (max-width: 832px) {

    /* header */
    /* PC用メニューを非表示 */
    .pc-menu {
        display: none;
    }

    /* スマホ用メニュー表示 */
    .sp-menu {
        margin: 0 auto;
        width: 90%;
        position: absolute;
        top: 60px;
        width: 100%;
        background: rgba(76, 88, 111, .8);
        left: 0;
    }
    .sp-menu ul li {
        margin: 0 auto;
        text-align: center;
    }

    /* メニューボタン */
    .toggle {
        display: block;
        width: 35px;
        height: 30px;
        position: relative;
        top: 18px;
        z-index: 2;
        float: right;
        margin-right: 2rem;
    }

    .toggle:hover {
        cursor: pointer;
    }

    .toggle span {
        display: block;
        height: 3px;
        background: lightcoral;
        position: absolute;
        width: 100%;
        left: 0;
        -webkit-transition: 0.5s ease-in-out;
        -moz-transition: 0.5s ease-in-out;
        transition: 0.5s ease-in-out;
    }

    .toggle span:nth-child(1) {
        top: 0px;
    }

    .toggle span:nth-child(2) {
        top: 12px;
    }

    .toggle span:nth-child(3) {
        top: 24px;
    }

    header{
        box-shadow:none;
        background-color: transparent;
    }
}

@media (min-width: 768px) {
    .md-flex {
            display: flex;
        }
    
        .md-justify-between {
            justify-content: space-between;
        }
    
        .grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }