@charset "utf-8";

/* テーブルデザイン */
table th,
table td {
    padding: 10px 25px;
    border-bottom: 2px solid #c9c2bc;
}

table th {
    text-align: center;
    font-weight: normal;
    padding: 1rem;
}

table td {
    text-align: left;
    padding: 1rem 0;
}

.main-table {
    text-align: center;
    display: table;
    border-collapse: collapse;
    margin: 0 auto 30px;
}

.table-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.info {
    width: 100%;
    max-width: 544px;
    margin: auto;
    padding: 0 1.5rem;
    border-spacing: 0;
}

/* ヘッダーの臨時ニュース */
#header_news {
    position: absolute;
    left: 50%;
    top: 15rem;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    text-align: center;
    background-color: hsla(119, 89%, 63%, 0.59);
    padding: 1.5%;
    border-radius: 3rem;
}

/* メイン写真 */
main img {
    border-radius: 20px;
    width: 50%;
    display: block;
    margin: 0 auto;
}

/* 地図データ */
#map {
    text-align: center;
    width: 100%;
    height: auto;
}

/* パンフレットPDF */
.pamphelet {
    width: 80%;
    height: auto;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.pamphelet iframe {
    width: 100%;
    height: 135vh;
    border: 0;
}

/* お知らせリスト */
.news-info li {
    list-style-type: disc;
    display: list-item;
    padding-left: 20px;
    margin-left: 20px;
}

/*端を内側に設定*/
.inside {
    margin: 0 5%;
}

/* フルページカルーセル */
.slider {
    position: relative;
    z-index: 10;
    width: 60%;
    height: auto;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 10px;
    box-sizing: border-box;
    padding-bottom: 20px;
}

.slide {
    scroll-snap-align: start;
    flex: 0 0 100%;
    flex-basis: 100%;
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-right: 0;
    overflow: hidden;
}

.slide-content {
    display: flex;
    width: 100%;
    padding: 0;
}

.slide-image {
    flex: 1;
    width: 30%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.slide-text {
    flex: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-text h4 {
    margin: 0 0 10px;
    font-size: 1.8rem;
}

.slide-text p {
    margin: 0;
    line-height: 1.5;
    font-size: 1rem;
}

.slides>div {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: auto;
    height: auto;
    min-height: 320px;
    border-radius: 10px;
    background: #eee;
    transform-origin: center center;
    transform: scale(1);
    transition: transform 0.5s;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* スクロールバーのスタイル */
.slides::-webkit-scrollbar {
    width: 10px;
}

.slides::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.slides::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* ページトップボタンの作成 */
.page_top {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 10px;
}

.page_top a {
    padding-top: 4px;
    border-top: 4px solid #0c7309;
}

.page_top a:before {
    content: "↑";
}

.page_top a:link,
.page_top a:visited {
    color: #0c7309;
}

.page_top a:hover {
    border-color: #de90f6;
    color: #de90f6;
}

.pc_hid {
    display: none;
}

.mobile_hid {
    display: block;
}

/* パソコン・タブレットの設定 */
@media (min-width: 750px) {

    /* トップページ二段カラム */
    .flag {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
    }

    .harf_column1 {
        flex: 1;
        box-sizing: border-box;
    }

    .harf_column1 {
        max-width: 48%;
    }

    .side-menu li {
        border-bottom: 1px solid #c9c2bc;
    }

    .side-menu a {
        color: #432;
        display: block;
        padding: 1rem;
    }

    .side-menu a:hover {
        color: #0bd;
    }

    /*アクセス2段組み*/
    /* 初期スタイル（モバイル向け、1列レイアウト） */
    .info-container {
        display: block;
    }



}

@media (min-width: 800px) {
    .info-container {
        display: flex;
        gap: 20px;
        /* 列間の間隔を設定 */
    }

    .harf_column2 {
        flex: 1;
        box-sizing: border-box;
    }

    .harf_column2 {
        max-width: 48%;
    }

    .flag-tablet {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
    }

    .main-table,
    .table-section {
        width: 50%;
        /* 各列の幅を50%に設定 */
    }

    /* 必要に応じて、テーブルとテキストのスタイルを調整 */
    .main-table {
        margin: 0;
        /* 余白の調整 */
    }

    .table-section p {
        margin-top: 0;
    }
}