
/* =========================
全体
========================= */

body{
    margin: 0 auto;
    background: #efefef;

    font-family:
        "Century Gothic",
        "游ゴシック",
        "Noto Serif JP",
        "Hiragino Mincho Pro",
        "ヒラギノ明朝 Pro W3",
        "MS PMincho",
        serif;

    color: #333;

    max-width: 900px;

}

h2 {
    font-size: 18px;
    padding: 0.25em 0.5em;
    margin-top: 20px;
    color: #494949;
    border-left: solid 5px #7db4e6;
    letter-spacing: 0.05em;
}


.calendar {
    width: 90%;
    max-width: 850px;
    margin: 60px auto;
    padding: 50px;
    background: #fff;
    border-radius: 20px;
    }


    .aoiro{
        color: blue;
    }
    .akairo{
        color:red;
    }
    
    .day.sunday {
        color:red;
    }

    .day.saturday{
        color:blue;
    }

    .day.holiday {
        color:red;
    }
    
    /* =========================
    選択エリア
    ========================= */
    
    .select-section {
    margin-bottom: 50px;
    }
    filter-buttons
    .select-section h2 {
    margin-bottom: 20px;
    }
    
    
    /* =========================
    カレンダーヘッダー
    ========================= */
    
    .calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    }
    
    .calendar-header h1 {
    margin: 0;
    font-size: 28px;
    }
    
    .month-button {
    padding: 10px 20px;
    border-radius: 8px;
    background: #eee;
    cursor: pointer;
    }
    
    
    /* =========================
    曜日
    ========================= */
    
    .weekdays,
    .days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    }
    
    .weekdays div {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    }
    
    
    /* =========================
    日付
    ========================= */
    
    .day {
    min-height: 70px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    }
    
    .day.empty {
    cursor: default;
    background: #fafafa;
    }
    
    .day.has-event {
    font-weight: bold;
    color:#555;
    }
    
    .day.has-event::after {
    content: "";
    width: 15px;
    height: 2px;
    background:#999;
    position: absolute;
    bottom: 15px;
    }
    
    .day.selected {
    background: #999;
    color: #fff;
    }
    
    
    /* =========================
    絞り込みボタン
    ========================= */
    
    .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    }
    
    .filter-button {
    padding: 12px 24px;
    border: 1px solid #ccc;
    border-radius: 30px;
    background: #fff;
    cursor: pointer;
    }
    
    .filter-button:hover {
    background: #f5f5f5;
    }
    
    .filter-button.active {
    background: #444;
    color: #fff;
    border-color: #444;
    }
    
    
    /* =========================
    メッセージ
    ========================= */
    
    .select-message {
    color: #777;
    margin: 0;
    }
    
    
    /* =========================
    イベントカード
    ========================= */
    
    .event-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    }
    
    .event-card {
    border: 1px solid #ddd;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    }
    
    .event-place {
    padding: 15px 20px 5px;
    font-weight: bold;
    }

    .event-place span{
    background-color: #0C2044;
    color:#fff;
    padding: 3px 15px;
    }
    
    .event-image img {
    width: 100%;
    display: block;
    }
    
    .event-schedule {
    padding: 15px 20px 0;
    color: #777;
    }
    
    .event-title {
    padding: 0 20px;
    }
    
    .form {
    padding: 0 20px 20px;
    text-align: center;
    letter-spacing: 0.05em;
    }
    

    .form a:hover {
        background:linear-gradient(to bottom right,#215F9A,#00BC98) #0573a1;
        color:#fff;
    }
    
    
    .form a{
        font-size: 14px;
        font-weight: bold;
        color:#215F9A;
        padding: 0.4em 1em;
        border-radius: 20px;
        border: 1px solid #215F9A;
        width:100%;
    
    }

    
    /* =========================
    スマホ
    ========================= */
    
    @media screen and (max-width: 600px) {
    
    .calendar {
    width: 90%;
    padding: 20px;
    margin: 20px auto;
    }
    
    .calendar-header h1 {
    font-size: 20px;
    }
    
    .month-button {
    padding: 8px 12px;
    }
    
    .day {
    min-height: 50px;
    }
    
    .event-list {
    grid-template-columns: 1fr;
    }
    
    }
    

    /*画像拡大モーダル*/
    .image-modal{
        display: none;
        position: fixed;
        inset: 0;
        z-index: 9999;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

    /*表示状態*/
    .image-modal.is-open {
        display: flex;
    }

    /*背景*/
    .modal-background{
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
    }

    /*画像と閉じるボタン*/
    .modal-content{
        position: relative;
        z-index: 2;
    }

    /*拡大画像*/
    .modal-content img{
        display: block;
        max-width: 90vw;
        max-height: 85vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    /*閉じるボタン*/
    .modal-close{
        position: absolute;
        top: -18px;
        right: -18px;
        z-index: 3;
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 50%;
        background: #fff;
        color: #333;
        font-size: 30px;
        line-height: 1;
        cursor:pointer;
    }

    /*カード内の画像をクリックすることを示す*/
    .event-image img{
        cursor: zoom-in;
    }

    /*動作確認用：モーダルを強制的に表示*/
    .imageModel.is-open{
        display: flex !important;
        /*position: fixed !important;
        inset:0 !important;
        z-index: 999999 !important;
        background: rgba(0, 0, 0, 0.8) !important;
        justify-content: center !important;
        align-items: center !important;*/
    }

    .imageModal.is-open .model-content{
        position: relative !important;
        z-index: 1000000 !important;
        background: white !important;
        padding: 20px !important;
    }

    .imageModal.is-open img{
        display: block !important;
        max-width: 85vW !important;
        max-height: 80vh !important;
    }
