﻿
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #f4f7f9;
    margin: 0;
    padding: 0;
}

header, footer {
    background-color: #2C3e50;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
}

header img,h2 {
    display: inline-block;
}
header nav {
    display: block;
}

nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

main {
    padding: 30px 20px;
}

.gallery {
    display: -ms-flexbox; /* 古いブラウザ用*/
    -ms-flex-wrap: wrap;
    -ms-justify-content: center;


    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.table-container {
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border: 1px solid #ddd;
}

    .table-container:hover {
        transform: scale(1.05);
    }




td, th {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}


h2 {
    font-size: 24px;
    margin: 20px 0;
}

.keyword-box {
    width: 400px;
    margin-right: 10px;
}

@media screen and (max-width: 600px) {
    .keyword-box {
        width: 200px;
    }
    header, footer {
        padding: 10px;
        font-size: 16px;
    }
    nav a {
        font-size: 12px;
        margin: 0 8px;
    }
    h2 {
        font-size: 18px;
        margin: 10px 0;
    }

    #popup {
        width : 100%;
        height: 100%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        padding: 10px;
    }
}



.table-wrapper {
    max-width: 450px;
    margin: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}


.table-wrapper:hover {
    transform: scale(1.05);
}

table {
    width: 100%;
    border-collapse: collapse;
}

td, th {
    padding: 4px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 13px;
}
.highlight td {
    background-color: #ffeaea;
    color: #c00;
    font-weight: bold;
}
.price-column {
    color: #0077cc;
    font-weight: bold;
}
.popup-active .price-row {
    display: none;
}
.popup-active .enddatel-row {
    display: none;
}
.popup-active .enddate-row {
    display: none;
}
img {
    width: 100%;
    height: auto;
}

.main-image {
    max-width: 200px;
}
.qr-image { max-width: 130px;}

tr.title-row td {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    background-color: #f0f0f0;
}



.card { width: 260px; background: #fffaf5; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.15); margin: auto; transition: transform 0.2s;text-align: center;}


.card:hover {
    transform: scale(1.02);
}
.card img.thumbnail { width: 100%; height: auto; max-height: 180px; object-fit: cover; }


.info {
    padding: 12px;
    text-align: left;
    background-color: #fffaf5;
}
.title { font-size: 16px; font-weight: bold; margin-bottom: 6px; }
.meta { font-size: 13px; color: #555; margin-bottom: 8px; }

.content-cnoTitle {
    font-size: 13px;
    color: black;
    background-image: url('../img/contensno_back.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    justify-content: center;
    display: flex;
    border: none;
}

.content-date {
    font-size: 13px;
    text-align: center;
    color: #555;
    margin-top: 4px;
    margin-bottom: 8px;
}
.content-number {
    font-size: 17px;
    font-weight: bold;
    color: black;
    background-image: url('../img/contensno_back.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    justify-content: center;
    display: flex;
    border: none;
}
.content-title {
    width: 100%;
    height: 40px;
    padding: 10px 0;
    background-image: url('../img/title_back.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: column; /* 縦並びに変更 */
    align-items: center; /* 横方向の中央揃え */
    border: none;
}
.content-title-textOne {
    max-width: 90%;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
    word-break: break-word;
}
.content-title-text {
    max-width: 90%;
    color: white;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}
.price { font-size: 14px; color: #0077cc; margin-bottom: 4px; }
.end-date { font-size: 12px; color: #999; margin-top: 8px; }
.qrtext {
    width: 100%;
    height: 20px;
    padding: 13px 0;
    background-image: url('../img/title_backu.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    vertical-align: middle;
    justify-content: center;
    border: none;
}
.qrtext-text {
    max-width: 90%;
    color: white;
    font-size;
    12px;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}
.dd-text {
    max-width: 90%;
    color: white;
    font-size:12px;
    text-align: center;
    padding:0 10px;
}

.custom-dropdown {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size : 16px;
    background-color : #fff;
    

}


#modal { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); }

#modal-content { position: relative; background: #fff; margin: 10% auto; padding: 20px; border-radius: 12px; width: 90%; max-width: 400px; text-align: center; }

#modal-contenttext {
    font-size: 13px;
    text-align: center;
    color: #555;
    margin-top: 4px;
    margin-bottom: 8px;
}
#modal-content .close {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 20px;
    background: #eee;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: black;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}


#modal img {
    max-width: 80%;
    margin: 10px 0;
}
#modal .close { position: absolute; right: 20px; top: 10px; font-size: 24px; color: #555; }



.twocol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

@media (max-width: 600px) {
    .twocol {
        grid-template-columns: 1fr;
    }
}




.search-btn {
    margin-top: 3px
}

/* ポップアップ用 */
#popup {
    display: none;
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 1000;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-sizing: border-box;
}

#popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
}

#popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
}

/* ページング全体を中央に配置 */

.paging {
    text-align: center;
    margin: 20px 0;
    font-family: "Segoe UI", sans-serif;
}

    .paging .page-prev,
    .paging .page-next {
        display: inline-block;
        vertical-align: top;
    }

    .paging .page-links {
        display: inline-flex;
        flex-wrap: wrap; /* 数字は折り返し可 */
        justify-content: center;
        max-width: 70%;
        margin: 0 8px;
        gap: 6px;
    }

    .paging .paging-link {
        display: inline-block;
        padding: 6px 12px;
        font-size: 18px; /* PC用の標準サイズ */
        color: #333;
        text-decoration: none;
        border-radius: 6px;
        background: #f8f8f8;
        border: 1px solid #ddd;
        transition: all 0.2s ease;
    }

        .paging .paging-link:hover {
            background: #2b7cff;
            color: #fff;
            transform: translateY(-2px);
        }

        .paging .paging-link.current {
            background: #2b7cff;
            color: #fff;
            font-weight: bold;
        }

    .paging .total-info {
        margin-top: 10px;
        font-size: 16px;
        color: #555;
    }

/* ▼ スマホ画面用（768px以下の幅のとき） */
@media screen and (max-width: 768px) {
    .paging .paging-link {
        padding: 4px 8px; /* ボタンを小さめに */
        font-size: 14px; /* 文字も小さめに */
    }

    .paging .total-info {
        font-size: 14px; /* 件数表示も少し小さく */
    }
}

/* ▼ さらに小さい画面（480px以下） */
@media screen and (max-width: 480px) {
    .paging .paging-link {
        padding: 3px 6px;
        font-size: 12px;
    }

    .paging .total-info {
        font-size: 12px;
    }
}

        /* ホバー効果 */
        /*.paging .paging-link:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 18px rgba(0,0,0,0.12);
            background: linear-gradient(180deg, #ffffff, #f2f6ff);*/ /* ほのかな色味 */
        /*}*/

        /* 現在のページ（強調） */
        /*.paging .paging-link.current {
            background: linear-gradient(180deg, #2b7cff, #155bd6);
            color: #fff;
            font-weight: 700;
            box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
            border: 1px solid rgba(10, 60, 150, 0.6);
            transform: translateY(-2px);
        }*/

    /* 前へ / 次へ ボタン風 */
    /*.paging .paging-nav {
        padding: 6px 10px;
        font-size: 16px;
    }*/

/* 小さい画面では少し小さくする */
/*@media (max-width: 480px) {
    .paging .paging-link {
        font-size: 16px;
        padding: 6px 9px;
        margin: 0 4px;
    }
}*/

