/* CSS スタイル */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #e9f5fc;
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center;
    height: auto; 
    margin: 0;
    padding: 20px;
    box-sizing: border-box;

}

.affiliate-banner {
    text-align: center;
    margin-bottom: 10px; 
}

.affiliate-banner img {
    max-width: 100%; 
    height: auto;
    border-radius: 5px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.calendar {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 90vw; 
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    overflow: hidden; 
}

.date-column, .weekday-column {
    width: 1%;
    padding: 4px;
    text-align: center;
    white-space: nowrap;
}



.calendar:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* ヘッダー */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.month-year {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
}

button {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1.5vw;
}

button:hover {
    background-color: #357ABD;
}


table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #e0e0e0;
    padding: 4px;
    text-align: center;
    font-size: 1.2em;
}

td {
    background-color: #f8f9fb;
}

td:hover {
    background-color: #e4f0f9;
}

thead th {
    background-color: #d0eafc;
    color: #333;
}


.sunday {
    color: #e74c3c;
}

.saturday {
    color: #3498db;
}

.birthday, .commemoration {
    width: auto;
    white-space: normal; 
}


.glitter-text {
    color: #f39c12;
    font-weight: bold;
    background: linear-gradient(90deg, #f39c12, #f1c40f, #f39c12);
    background-size: 200% 200%;
    animation: glitter 3s infinite;
    -webkit-background-clip: text;
    color: transparent;
}

tr {
    background-color: initial !important;
}

tr.highlight {
    background-color: lightyellow !important;
}


@keyframes glitter {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


.popup {
    display: flex;
    align-items: center; 
    padding: 8px; 
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    max-width: 300px;
}

.popup-icon {
    width: 24px; 
    height: 24px;
    margin-right: 8px; 
}


@media (max-width: 600px) {
    th, td {
        font-size: 3vw;
    }
}
    button {
        padding: 4px 8px;
        font-size: 0.9em;
    }

    th, td {
        padding: 6px;
        font-size: 0.8em;
    }
}

@media (max-width: 600px) {
    th, td {
        font-size: 2.5vw; 
    }
    button {
        font-size: 3.5vw;
    }
    .popup-icon {
        width: 8vw;
    }
}

.calendar-container {
    overflow-y: auto;
    max-height: 70vh; 
}




    .popup-title {
        font-size: 10px;
        font-weight: bold;
        background: linear-gradient(to right, #FF7E5F, #FEB47B); 
        -webkit-background-clip: text;
        color: transparent;
    }


@media (max-width: 600px) {
    #bannerGrid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 400px) {
    #bannerGrid {
        grid-template-columns: 1fr; 
    }
}

        #bannerGrid {
            display: grid;
            grid-template-columns: repeat(3, 1fr); 
            gap: 10px; 
            max-width: 720px; 
            margin: 20px auto; 
        }

        .banner {
            text-align: center;
            border: 1px solid #ccc;
            border-radius: 8px;
            overflow: hidden;
            background-color: #fff;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }


#bannerGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px; 
    width: 100%; 
    max-width: 600px; 
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box; 
}

.banner {
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.banner img {
    width: 100%;
    height: auto; 
}



