body, html {
    font-family: Arial, sans-serif;
	height: 100%;
	margin: 0;
}

#wrapper {
	display: flex;
	flex-direction: column;
	 min-height: 100vh;
}

#container {
	width: 100%;
	flex: 1;
	max-width: 1200px;
}




input#month-picker{
    border-radius: 5px;
    padding: 5px;
}

input#month-picker:focus{
    background-color: #FFF9C2;
}
  
.calendar-view-switch {
	width: 100%;
	text-align: right;
	padding-right: 20px;
    margin: 20px;
}

.button-flex {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px; /* 各ボタンとセレクトボックス間の隙間 */
    margin-bottom: 10px;
    flex-wrap: wrap;
  }
  
  button {
    background: #0080c0;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 13px;
  }
  
  button:hover {
    background: #006090; /* ホバー時の背景色 */
  }

  .jump {
    display: flex;
    gap: 5px;
  }

   .custom-select {
    width: 80px;
    position: relative;
    height: 30px;
    background: #f3f3f3;
    border: 1px solid #ccc;
    cursor: pointer;
  }

  .month-box {
    width: 60px;
  }

  .custom-button {
    width: 120px;
    position: relative;
    height: 30px;
    cursor: pointer;
  }
  
  .custom-select select {
    appearance: none;
    outline: none;
    border: none;
    width: 100%;
    height: 100%;
    padding: 5px;
    font-size: 13px;
    background: transparent;
  }
  
  .custom-select::before {
    content: "▼";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }
  
  
  
#switch-to-normal, #switch-to-vertical {
    display: inline-block;
	padding: 5px 15px;
	background: #0080c0;
	color: white;
	border-radius: 5px;
	cursor: pointer;
	margin: 5px;
	border: solid 1px #fff;
}


button#prev-month, button#next-month{
    display: inline-block;
	padding: 3px 15px;
	background: #008080;
	color: white;
	border-radius: 5px;
	cursor: pointer;
	margin: 5px;
	border: solid 1px #fff;
}

.forword {
	display: flex;
	justify-content: space-between;
}


#current-year {
    font-size: 24px;
    font-family: "number";

}

#current-month {
    font-family: "number";
    font-size: 42px;
    font-style: italic;
}


@media screen and (max-width: 400px) {
    button#prev-month, button#next-month{
        font-size: 11px;
    } 
    #current-year {
        font-size: 20px;
    }
    
    #current-month {
        font-size: 36px;
    }
}

#calendar-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

#calendar {
    width: 100%;
    border-collapse: collapse;
	margin-top: 15px;
}

#calendar th,
#calendar td {
    border: 1px solid #999;
    padding: 0.5rem;
	width: 14%;
	font-size: 12px;
	line-height: 1.2em;
}

.sunday {
	background: #ffc8c8;}
}

.saturday {
	background: #c8fffb;
}

#calendar td a{
	text-decoration: none;
	color: #0051a2;
}

#calendar th {
    background-color: #f3f3f3;
    font-weight: bold;
}

#calendar .sunday {
    background-color: #ffe0e0;
}

#calendar .saturday {
    background-color: #e0f0ff;
}

#calendar .holiday {
    background-color: #ffd700;
	text-align: center;
}

#calendar .empty {
    background-color: #f3f3f3;
}

#calendar .date {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
	text-align: center;
}

#calendar .holiday-name {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
}

#calendar .events {
    font-size: 0.8rem;
}

.other-month {
	color: #acacac;
	}

.vertical #calendar th {
    display: none;
}

.vertical #calendar-body tr, .vertical #calendar, .vertical #calendar-body td {
	width: 100%;
}

.vertical tr td {
    display: flex;
    flex-direction: column;
    flex-direction: row;
	width: 100%;
	padding: 0;
}

.vertical tr td div.date,
.vertical tr td div.d-o-w {
    order: -1;
}



.vertical tr td .date,
.vertical tr td .d-o-w {
    order: -1;
    min-width: 40px;
    display: inline-block;
    text-align: right;
    padding-right: 5px;
	height: 100%;
    text-align: center;
}

.vertical tr td .event-wrap {
    flex-grow: 1;
}
.event-wrap {
    width: calc((90% - 100px) / 2);
    margin-right: 5%;
  }
  .event-wrap-horizontal {
    width: 100%;
    margin-left: 0;
  }
  

.vertical .date,
.vertical .d-o-w,
.vertical .event_1,
.vertical .event_2,
.vertical .event_3 {
    display: inline-block;
}
.event_1 {
	font-size: 11px;
}



.vertical .event-wrap {
    display: flex;
    flex-direction: row;
}

.vertical-view {
    position: relative;
}

.calendar .date.vertical-view::after,
.calendar .d-o-w.vertical-view::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px; /* $B%\!<%@!<$N0LCV$rD4@0$9$k$?$a$NCM(B */
    bottom: 0;
    width: 1px; /* $B%\!<%@!<$NB@$5(B */
    background-color: #000; /* $B%\!<%@!<$N?'(B */
}

.calendar .d-o-w.vertical-view::after {
    bottom: auto; /* $B%\!<%@!<$N2<C<$r85$KLa$9(B */
}