/* スライドを包むトラックをFlexboxにする */
#event_list .slick-track {
  display: flex !important;
  align-items: stretch; /* これで高さが一番高いものに揃う */
}
/* スライド自体の高さを100%にして、中の画像も調整 */
#event_list .slick-slide {
  height: auto; 
  display: flex !important; /* 中のコンテンツも中央寄せなどしやすくするため */
  flex-direction: column;
  align-items: center;
  background: #FFF;
}
#event_list .slick-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#event_calender{
  position: relative;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 80px;
}
#event_calender table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}
#event_calender .table_info table { border-collapse: collapse; width: 100%; text-align: center; }
#event_calender th,
#event_calender td { border: 1px solid #623737; padding: 8px;background: #FFF;text-align: center;font-family: "Mochiy Pop One", "sans-serif";}
.event_tag{font-family: "Mochiy Pop One", "sans-serif";}
#event_calender th{
  background: #f3f7ea;
}
#event_calender .sunday { color: #d70c19; }
#event_calender .saturday { color: #0068b7; }
#event_calender .holiday,#event_calender .disabled { background: #eee; color: #999; }
#event_calender .today {position: relative;background: #fdd;}

#event_calender .clickable { cursor: pointer; }
#event_calender h3{
  position: relative;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #623737;
  text-align: center;
}
#event_calender .date_ta{
  position: relative;
  background: #fff8c1;
}
#event_calender .date_ta:before{
  content:"";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: solid 1px #e1aaa8;
}
#event_calender th{
  padding: 5px 0;
  font-size: 14px;
  line-height: 14px;
}
#event_calender td {
  border: 1px solid #623737;
  padding: 5px 0 0 0;
  background: #FFF;
  font-size: 12px;
  line-height: 12px;
  width: 14.28%; /* 7等分 */
  vertical-align: top;
  overflow: hidden; /* はみ出し防止 */
}
#event_calender .event_set {
  min-height: 60px; /* カレンダーのセルの最低高さを確保 */
}
#event_calender .event_tag {
  display: block;
  width: calc(100% - 6px);
  box-sizing: border-box; /* paddingを含めて100%にする */
  height: auto;
  min-height: 0; /* td div の継承を打ち消し */
  margin: 5px auto;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
}
#event_calender .event_tag:hover{
  opacity: 0.9;
}
.next_month_ev,.back_month_ev{
  font-size: 14px;
  line-height: 24px;
  position: absolute;
  right: 0;
  bottom: 0;
  cursor: pointer;
  color: #0027ed;
  text-decoration: underline;
  font-family: "Mochiy Pop One", "sans-serif";
}
.table_info_ev:last-child{
  display: none;
}


@media screen and (max-width: 640px){

  #event_calender .event_tag {
    padding: 6px 2px;
    font-size: 8px;
    text-overflow:inherit;
    white-space:normal;
    margin: 10px auto;
    text-align: center;
  }
  #event_calender .event_set {
    min-height: 30px; /* カレンダーのセルの最低高さを確保 */
  }
}



/* ベースカラー: #50b879 (HSL: 143, 44%, 52%) */
.event_color0  { background-color: #9E0000; color: #fff; } /* Cancel */
.event_color1  { background-color: #50b879; color: #fff; } /* Base Green */
.event_color2  { background-color: #50b8b1; color: #fff; }
.event_color3  { background-color: #5097b8; color: #fff; }
.event_color4  { background-color: #5067b8; color: #fff; }
.event_color5  { background-color: #6d50b8; color: #fff; }
.event_color6  { background-color: #9d50b8; color: #fff; }
.event_color7  { background-color: #b850a6; color: #fff; }
.event_color8  { background-color: #b85076; color: #fff; }
.event_color9  { background-color: #b85650; color: #fff; }
.event_color10 { background-color: #b88650; color: #fff; }
.event_color11 { background-color: #b3b850; color: #fff; }
.event_color12 { background-color: #83b850; color: #fff; }
.event_color13 { background-color: #53b850; color: #fff; }
.event_color14 { background-color: #50b86a; color: #fff; }
.event_color15 { background-color: #49a392; color: #fff; }
.event_color16 { background-color: #4986a3; color: #fff; }
.event_color17 { background-color: #6c49a3; color: #fff; }
.event_color18 { background-color: #a34981; color: #fff; }
.event_color19 { background-color: #a36149; color: #fff; }
.event_color20 { background-color: #8da349; color: #fff; }
/* 共通スタイル: 文字の読みやすさと角丸 */
[class^="event_color"] {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    border-left: 3px solid rgba(0,0,0,0.2); /* 少し立体感を出す */
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.event_feed{
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top:0;
  z-index: 900;
  background: rgba(255,255,255,0.95);
  overflow: scroll;
  display: none;
}
.event_feex_details{
  position: relative;
  max-width: 520px;
  margin: 80px auto 60px;
}
.event_feed h3{
  font-size: 30px;
  line-height: 40px;
  border-left: 5px solid #50b879;
  padding:5px 0 5px 15px;
  margin-bottom: 10px;
}
.event_feed .event_limit{
  font-size: 14px;
  line-height: 14px;
  margin-bottom: 20px;
  background: #50b879;
  border-radius: 30px;
  padding: 5px 10px;
  display: inline-block;
  color: #FFF;
}
.event_feex_details img{
  display: block;
  margin: 0 auto;
}
.event_description{
  font-size: 18px;
  line-height: 32px;
  margin-bottom: 20px;
}
.event_feed_close{
    position:absolute;
    right:0;
    top:-80px;
    width:60px;
    height:60px;
    background:#50b879;
    cursor:pointer;
    transition:0.3s
}
.event_feed_close:hover{
    opacity:.8
}
.event_feed_close:before{
    position:absolute;
    right:10px;
    top:30px;
    content:"";
    display:block;
    width:40px;
    height:1px;
    background:#fff;
    transform-origin:center center;
    transform:rotate(45deg)
}
.event_feed_close:after{
    position:absolute;
    right:10px;
    top:30px;
    content:"";
    display:block;
    width:40px;
    height:1px;
    background:#fff;
    transform-origin:center center;
    transform:rotate(-45deg)
}



.event_list_w{
  padding: 40px 0 0px;
}
#event_list{
  margin: 0 auto 0;
  max-width: 1920px;
}
#event_list li{
  list-style: none;
  margin: 0 14px;
  cursor: pointer;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
#event_list .slick-list{
  overflow: visible;
}
.custom-dots-container ul{
  display: flex;
  justify-content: center;
  padding-bottom: 0;
}
.custom-dots-container li{
  width: 8px;
  height: 8px;
  border-radius: 100%;
  background: #666;
  display: block;
  max-width: 100px !important;
  margin: 0 10px;
}
.custom-dots-container .slick-active{
  background: #50b879;
}

.custom-dots-container li button{
  display: none;
}
.slick-ui{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}
.slick-ui .btn-next {
  position: relative;
  overflow: hidden;
  width: 30px;
  height: 30px;
  margin-left: 10px;
  font-size: 0;
  background: rgba(255, 255, 255, .8);
  border-radius: 100%;
  box-shadow: 0 0 5px rgb(0 0 0 / 10%);
  border: none;
}
.slick-ui .btn-next:before {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f054";
  display: block;
  font-size: 18px;
  color: #50b879;
}
.slick-ui .btn-prev {
  position: relative;
  overflow: hidden;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  font-size: 0;
  background: rgba(255, 255, 255, .8);
  border-radius: 100%;
  box-shadow: 0 0 5px rgb(0 0 0 / 10%);
  z-index: 1;
  border: none;
}
.slick-ui .btn-prev:before {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f053";
    display: block;
    font-size: 18px;
    color: #50b879;
}



@media screen and (max-width: 640px){
  .slick-ui{
    margin-top: 15px;
  }
  #event_calender{
    margin-top: 0;
  }
  .event_feed_close{
    position:fixed;
    top:0;
  }
  .event_feex_details{
    max-width: 100%;
    margin: 60px 20px;
  }
  .event_feed h3 {
    font-size: 26px;
    line-height: 32px;
  }
  .event_description{
    font-size: 16px;
    line-height: 28px;
  }
  .event_info .center{
    text-align: justify;
  }
  .event_info .center br{
    display: none;
  }
  #event_list li{
    list-style: none;
    margin: 0 6px;
    cursor: pointer;
  }
  #event_list{
    margin: 0 14px;
  }
  .event_list_w {
    padding: 40px 0 40px;
  }
  #event_calender h3{
    font-size: 24px;
  }
}





