﻿
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: 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;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
}

.info-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.photo img {
    width: 100px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.description {
    font-size: 16px;
    color: #333;
    max-width: 240px;
    text-align: left;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.link-button {
    background-color: #2C3e50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    width: 250px;
}

    .link-button:hover {
        background-color: #005A99;
    }

.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.main-button {
    background-color: #2C3e50;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    width: 80%;
    max-width: 280px;
}

    .main-button:hover {
        background-color: #005f99;
    }

.sub-link {
    font-size: 14px;
    color: #007ACC;
    padding-top: 20px;
    text-decoration: underline;
}

/* ラベル */
.info-label {
    background-color: #0078d4;
    color: #fff;
    font-size: 0.8em;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: inline-block;
    letter-spacing: 1px;
}

/* 各お知らせカード */
.info-item {
    display: flex;
    flex-wrap: wrap; /* 幅狭い時に改行 */
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #f5f7fa, #e4ebf0);
    border-left: 5px solid #0078d4;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* タイトル */
.info-title {
    flex-grow: 1;
    font-size: 0.95em;
    min-width: 150px;
}

/* NEW アイコン */
.info-new {
    color: #d9534f;
    font-size: 0.65em;
    font-weight: bold;
    margin-left: 8px;
}

/* 日付 */
.info-date {
    color: #666;
    font-size: 0.8em;
    margin-left: 10px;
    white-space: nowrap;
}

/* スマホ対応 */
@media screen and (max-width: 480px) {
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 10px;
    }

    .info-new {
        margin-left: 0;
        margin-bottom: 4px;
    }

    .info-date {
        margin-left: 0;
    }
}
