.event-layout{
    margin: 0px auto;
    width: 90%;
}

.calendar-title , .EventList-title{
    font-family: "Arial","メイリオ";
    font-size: 32px;
    color: #555;
    font-weight: normal;
    margin-top: 30px;
}

/* --------------------------------
	イベントカレンダー
-------------------------------- */

/* カレンダーコンテナー */
#calendar-container{
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 4px rgba(0,0,0,0.2);
    padding:10px 10px 0 10px;
    user-select: none;
}

/* カレンダーヘッダー */
#calendar-header{
    padding-bottom: 10px;
    font-weight:600;
    color: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ヘッダーの「〇〇年〇〇月 ∨」の要素 */
.calendar-left {
    display: flex;
    align-items: center;
}

/*「∨」の要素 */
.toggle-icon{
    color: #777;
    margin: 0 0 3px 7px;
    font-size: 1.5rem;
    font-weight: bold;
}

/* ヘッダーの「＜ ＞」の要素 */
.calendar-right {
    display: flex;
    gap: 20px;
    margin-right: 10px;
}

/* 各「＜」「＞」ボタン */
.nav-btn{
    font-size: 1.2rem;
    font-weight: bold;
    padding: 3px;
}

/* カレンダーの曜日・日付の枠 */
#calendar-table th,
#calendar-table td {
    text-align: center;
    font-size: 1.3rem;
    padding: 3px 0;
}

#calendar-table td{
    color: #777;
    height: 36px;
    vertical-align: middle;
}

#calendar-table {
    width: 100%;            /* 親幅いっぱいに広げる */
    table-layout: fixed;    /* 列幅を均等に固定 */
    border-collapse: separate;
    border-spacing: 6px 8px; /* 横 縦 */
}

/* === 曜日行の下線 ===*/
#calendar-table thead {
    display: table-header-group;
    position: relative;
}

#calendar-table thead::after {
    content: "";               
    display: block;
    position: absolute;
    bottom: 0;                  
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ccc;
}

#calendar-table {
    border-collapse: separate;
    border-spacing: 6px 8px; 
}
/* ==================== */

  
/* イベント日の丸背景 */
#calendar-table td .event-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    margin: 0 auto;

    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;

    transition: transform 0.3s ease;
}

#calendar-table td .event-link:hover {
    transform: scale(1.15);
}
  
/* --------------------------------
	イベントカレンダー（月選択エリア）
-------------------------------- */

/* 月選択エリア全体 */
#month-select {
    margin-bottom: 10px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-radius: 14px;
    box-shadow: 0 0 10px rgba(255, 170, 60, 0.6);
}
  
/* 年・月プルダウン */
#month-select select {
    appearance: none;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #ffd8a8;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#month-select select:focus {
    outline: none;
    border-color: #ffb703;
    box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.35);
}
  
/* OKボタン */
#select-ok {
    margin-left: 5px;
    padding: 9px 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffb703, #fb8500);
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
  
#select-ok:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(251, 133, 0, 0.4);
}
  
#select-ok:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(251, 133, 0, 0.3);
}
  

/* --------------------------------
	イベントリスト
-------------------------------- */

.event-item{
    display: flex;
    gap:5px;
    text-align: left;
    height: 70px;
}

.event-date-box{
    padding: 8px 16px 8px 0;
    text-align:center;
    width: 15%;
    border-right: 0.1px solid #999;
}

.event-date-num{
    font-size: 2rem;
    line-height: 2.5rem;
    font-weight: 500;
}

.event-date-week{
    font-size: 1.1rem;
    font-weight: 600;
}

.event-info{
    width: 85%;
    gap:2%;
    display: flex;
    align-items: center;
    margin: 6px;
    padding:3px 6px;
    border-radius: 10px;
    transition:all 0.3s;
}

.event-title{
    width: 78%;
    font-size: 1rem;
    font-weight: bold;
}

.event-time{
    width: 20%;
    font-size: 1rem;
    font-weight: bold;
}

.event-empty{
    font-size: 1.3rem;
    color: #555;
    background: #dddddd;
    line-height: 2.5em;
    padding: 3px 6px;
    border-radius: 10px;
}

.event-info:hover {
    transform: translateY(-5px);
    box-shadow: 4px 6px 6px rgba(0,0,0,0.2);
}

/* --------------------------------
	ポップアップ
-------------------------------- */

#popup-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    padding: 20px;
    max-width: 480px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    animation: modal-bounce 0.4s ease-out;
}

/* 弾むアニメーション */
@keyframes modal-bounce {
    0% {
      transform: scale(0.8);
      opacity: 0;
    }
    60% {
      transform: scale(1.05);
      opacity: 1;
    }
    80% {
      transform: scale(0.98);
    }
    100% {
      transform: scale(1);
    }
}

#popup-box img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0px 0px 9px rgba(0,0,0,0.2);
}

.popup-action {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.popup-btn {
    display: inline-block;
    padding: 10px 18px;
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* 影を追加 */
    border-radius: 999px; /* 角丸を強め */
    text-align: center;
    margin: 0 auto; /* 横中央 */
}

.popup-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* ホバー時に影を強く */
}

.popup-compass { background: #ff7f50; }
.popup-report  { background: #1e90ff; }

/* --------------------------------
	タブレット向けスタイル
-------------------------------- */

@media screen and (min-width: 768px) and (max-width: 1024px) {

    .event-layout{
        display: flex;
        width: 100%;
        gap: 5%;
    }

    #event-calendar{
        width: 45%;
    }

    #event-list{
        width: 50%;
    }

    .calendar-title , .EventList-title{
        font-size: 34px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    /* --------------------------------
        イベントカレンダー
    -------------------------------- */

    /* イベント日の丸背景 */
    #calendar-table td .event-link {
        width: 34px;
        height: 34px;
    }

    /* --------------------------------
        イベントリスト
    -------------------------------- */

    .event-title{
        width: 78%;
        font-size: 1.1rem;
    }

    .event-time{
        width: 12%;
        font-size: 1.1rem;
    }

    .event-empty{
        font-size: 1.4rem;
        padding: 5px 8px;
    }

}

/* --------------------------------
	PC向けスタイル
-------------------------------- */
@media screen and (min-width: 1024px) {

    .event-layout{
        display: flex;
        width: 100%;
        gap: 10%;
    }

    #event-calendar{
        width: 30%;
    }

    #event-list{
        width: 60%;
    }

    .calendar-title , .EventList-title{
        font-size: 55px;
        margin-top: 50px;
        margin-bottom: 15px;
    }

    /* --------------------------------
        イベントカレンダー
    -------------------------------- */

    /* カレンダーコンテナー */
    #calendar-container{
        padding:20px 20px 10px 20px;
    }

    /* カレンダーヘッダー */
    #calendar-header{
        padding-bottom: 16px;
    }

    /* ヘッダーの「〇〇年〇〇月 ∨」の要素 */
    .calendar-left {
        margin-left: 20px;
        font-size: 1.7rem;
    }

    /*「∨」の要素 */
    .toggle-icon{
        font-size: 1.7rem;
    }

    /* ヘッダーの「＜ ＞」の要素 */
    .calendar-right {
        margin-right: 20px;
    }

    /* 各「＜」「＞」ボタン */
    .nav-btn{
        font-size: 1.3rem;
    }

    
    /* イベント日の丸背景 */
    #calendar-table td .event-link {
        width: 35px;
        height: 35px;
    }
    
    /* --------------------------------
        イベントリスト
    -------------------------------- */

    .event-item{
        gap:10px;
        height: 80px;
    }

    .event-date-box{
        padding: 15px 0;
        width: 10%;

    }

    .event-date-num{
        font-size: 2.5rem;
        line-height: 3rem;
    }

    .event-date-week{
        font-size: 1.2rem;
    }

    .event-info{
        width: 85%;
        gap:5%;
        margin: 10px;
        padding:6px 12px;
    }

    .event-title{
        width: 85%;
        font-size: 1.3rem;
    }

    .event-time{
        width: 10%;
        font-size: 1.3rem;
    }

    .event-empty{
        font-size: 1.7rem;
        padding: 6px 12px;
    }

}