  :root{
    --font-size-base: 1.7rem
  }
  *{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
  }
  /* 全体のスクロールバー幅 */
  ::-webkit-scrollbar {
    width: 8px;
  }

  /* スクロールバーのトラック（背景） */
  ::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
  }

  /* スクロールバーのつまみ */
  ::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
    transition: background 0.3s;
  }

  /* ホバー時に色を濃くする */
  ::-webkit-scrollbar-thumb:hover {
    background: #555;
  }



  .header-ad{
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    position: relative;
    background: #00507e;;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
  }
  .header-ad .hed-link{
    color: #fff;
  }

  /* メニューボタン */
    .mem-menu-btn-box .mem-menu-btn{
      background: none;
      border: none;
      cursor: pointer;
    }
    .mem-menu-btn-box .mem-menu-btn{
      color: #fff;
      font-size: var(--font-size-base);
    }
    
    /* メニュー */
    .mem-menu{
        width: 320px;
        height: 100vh;
        position: absolute;
        background: #00507e;
        left: -320px;
        padding-top: 30px;
        transition: 0.3s ease-out;
        z-index: 9998;
        display: flex;
        flex-direction: column;
        gap: 30px;
        box-shadow: 2px 1px 7px #333;
        top: 80px;
        position: fixed;

    }
    .mem-menu a{
      text-decoration: none;
    }
    .mem-menu-container {
        background: #fff;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 90%;
        margin-bottom: 0;
        border-radius: 30px 30px 0 0;
        justify-content: normal;
        padding: 30px 0 100px;
        overflow-y: scroll;
        overflow-x: hidden;
    }
    .user-inf-box {
        display: flex;
        justify-content: space-between;
        padding: 0 30px;
    }
    .user-inf-box i{
      color: #fff;
    }
    .user-name{
      display: flex;
      gap: 10px;
      align-items: center;
    }
    .user-name i{
      font-size: 25px;
    }
    .logout-box a{
      transition: 0.3s;
    }
    .logout-box a:hover{
      color: red;
    }
    .mem-menu-container>a,.mem-menu-container>button,#cnfContents>a{
      color: #000;
      font-size: var(--font-size-base);
      padding: 30px;
      border-top: 1px solid #eaeaea;
      transition: 0.3s;
      display: flex;
      gap: 10px;
      align-items: center;
    }
    .mem-menu-container>button{
      background: transparent;
      border: none;
      border-top: 1px solid #eaeaea;
      cursor: pointer;
    }
    .mem-menu-container>button span:first-child{
      display: flex;
      align-items: center;
      gap: 10px;
    }
    #cnfContents>a{
      padding: 10px 30px;
    }
    .mem-menu-container>a:hover,.mem-menu-container>button:hover{
      background: #eaeaea;
    }
    .user-inf-box span{
      color: #fff;
      font-size: var(--font-size-base);
    }
    .month-navigation{
      margin: 0 auto;
      display: flex;
      justify-content: center;
      gap: 10px;
      padding-bottom: 30px;
    }
    .month-navigation a,.month-navigation span{
      font-size: var(--font-size-base);
      color: #00507e;
      font-weight: 700;
    }
    .memMenuIsOpen{
        left: 0;
        top: 80px;
    }

    /* MEM_AD */
    .mem-main{
      background: #eaeaea;
      transition: 0.3s;
      margin: 0;
      margin-top: 80px;
      width: auto;
    }
    .mem-main .pankuzu{
      background: transparent;
      padding: 10px 0;
      margin: 0;
      color: #000;
    }
    .mem-main span{
      color: #000;
    }
    .memMainOpen{
      margin-left: 320px;
    }
    .page-hed{
      background: #fff;
      border-bottom: 1px solid #cecece;
      padding: 30px;
      width: 100%;
    }
    .page-hed .base-h2{
      color: #000;
    }
    .mem-ad{
      padding: 30px;
    }
    .mem-ad-container{
      padding: 0 30px 30px 30px;
      background: #fff;
    }
    .mem-ad-hed-p{
      color: #00507e;
      padding: 10px 30px;
    }
    .mem-ad .table-wrapper{
      border: none;
      padding: 10px 0;
    }
    .mem-ad .bordered-table th{
      background: #eaeaea;
    }
    .mem-ad .bordered-table th,.mem-ad .bordered-table td {
      border: none;
    border-right: 1px solid #333;
    padding: 8px;
    }
    .mem-ad .schedule-entry{
      border-top: 1px solid #333;
    }
    .mem-ad .bordered-table tr:nth-child(2n){
      background: #eaeaea;
    }
    .mem-ad .bordered-table th:last-child,.mem-ad .bordered-table td:last-child {
      border-right: none;
    }
    .mem-ad .table-wrapper input[type="date"], .table-wrapper input[type="time"], .table-wrapper input[type="text"], .table-wrapper select{
      border: #000 1px solid;
      color: #000;
      font-weight: 500;
    }
    .add-remove-box {
        position: relative;
        display: flex;
        justify-content: center;
    }
    .plus-btn{
      position: absolute;
      bottom: -21px;
      left: 50%;
      transform: translateX(-50%);
      background: #fff;
    }
    .add-remove-box button {
    background: #fff;
    border: 1px solid #333;
    border-radius: 50rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mem-delete-box{
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.right-arrow{
  transition: 0.3s ease-out;
}
.right-arrow-rotate{
  transform: rotate(90deg);
}
.cmf-btn-box{
  display: flex;
  justify-content: space-between;
}


/* スケジュール */
.mem-sch .mem-ad-container{
  padding: 30px;
}

/* 出欠フォーム */
.mem-ad .custom-form{
  background: #fff;
  padding: 30px;
}
/* 出欠確認 */
.mem-cmf .event-day{
  max-width: none;
  scroll-margin-top: 120px;
  border: none;
  border-bottom: 1px solid #00507e;
}
.events-days{
  background: #f3f3f3;
  transition: 0.3s ease-out;
}
.events-days:hover{
  background: #eaeaea;
}
.mem-cmf-box {
    margin: 50px 0;
}
table.styled-table th:nth-child(1), table.styled-table th:nth-child(2) {
    width: 160px;
}


@media(max-width:678px){
  .header-ad {
    justify-content: left;
}
.mem-ad {
    padding: 30px 10px;
}
.mem-sch .mem-ad-container{
  padding: 30px 10px;
}
.mem-ad .custom-form{
  padding: 30px 10px;
}
.mem-ad .event-day{
  padding: 10px 0;
  font-size: 1.7rem;
}
.mem-ad .event-block {
    margin: 30px 0;
}
.mem-ad .event-block>div {
    flex-direction: row;
    justify-content: left;
    padding: 10px 0;
    padding-left: 13px;
    gap: 20px;
}
.event-radio-box>div{
  gap: 10px;
}
.mem-ad .reason-txt{
  width: 90%;
}
.mem-menu-container{
  padding-bottom: 150px;
}
.mem-ad .custom-form {
    padding: 30px 10px;
}
.nav-link-bg span{
  color: #fff !important;
}
.mem-main .footer-nav{
  display: none;
}
}