@media screen and (min-width: 769px){
    .custom-container {
        margin-top: 100px;
        margin-bottom: 100px;
    }
}

@media screen and (max-width: 768px){
    .custom-container {
        margin-top: 100px;
        margin-bottom: 100px;
    }
}

 .title-with-border {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.table-wrapper {
    max-height: 500px;
    overflow: auto;
  }

.w100 {
    width: 100px;
    max-width: 100px;
}

.membercard2 {
    box-shadow: 5px 5px 5px #bbbbbb;
    border: 1px solid #bbbbbb;
    border-radius: 10px;
    padding: 20px;
    width: 320px;
    display: inline-block;
    text-align: left;
    margin-top: 20px;
}

.membercard2 h4 {
    margin: 10px;
    text-align: center;
}

.membercard2 table {
    margin-top: 20px;
    border: none;
}

.membercard2 table th {
    width: 15%;
    vertical-align: top;
}

.membercard2 table td.text {
    width: 65%;
    vertical-align: top;
}

.membercard2 table td.img {
    width: 20%;
    text-align: center;
}

.membercard2 table td.img img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 100%;
}

.member-cards-box {
    margin: 20px 0 10px 0;
}

.member-cards-box.print {
    margin: 0 0;
}


.member-cards-box .member-card {
    /* margin: 10px 0; */
    text-align: center;
    transform-origin: 0 0;
}

.member-cards-box .member-card {
}

.member-card {
    position: relative;
    border-radius: 8px;
    /* background: linear-gradient(45deg, #000066, #000022); */
    border: 1px solid #000;
    display: inline-block;
    width: 300px; /* デフォルトの横幅 */
    height: 424px;
    font-size: 16px;
    transition: transform 0.3s ease; /* スケールアップをスムーズに */
}

.member-cards-box.print .member-card {
    border-radius: 0;
}

.member-card .face {
    position: absolute;
    left: 15px;
    top: 15px;
    width: 120px;
    height: 160px;
    object-fit: cover;
}

.member-card .logo {
    position: absolute;
    right: 24px;
    top: 15px;
    width: 105px;
    height: 105px;
    object-fit: cover;
    border-radius: 1px;
}

.member-card .instructor-text {
    position: absolute;
    right: 24px;
    top: 128px;
    width: 105px;
    padding: 5px 0;
    color: #ffffff;
    border-radius: 1px;
    font-weight: bold;
    font-style: italic;
    font-size: 16px;
    text-align: center;
}

.member-card .text-back {
    background-color: #ffffff;
    color: #000000;
    text-align: left;
    padding: 5px 10px;
    height: 18px;
    line-height: 20px;
}

.member-card .text-back.left {
    clip-path: polygon(5% 0%, 100% 0%, 100% 100%, 5% 100%, 0% 50%);
    border-bottom: 1px solid #000000;
}

.member-card .text-back.right {
    clip-path: polygon(0% 0%, 95% 0%, 100% 50%, 95% 100%, 0% 100%);
    width: 130px;
}

.member-card .text-back2 {
    background-color: #000000;
    text-align: left;
    padding: 6px 10px;
    height: 16px;
}

.member-card .label {
    color: #ffffff;
    text-align: left;
    font-size: 12px;
}

.member-card.white .under-label {
    color: #000000;
}

.member-card.white .text-back.right {
    background-color: #000000;
    color: #ffffff;
}

.member-card.black .text-back2 {
    border-bottom: 1px solid #ffffff;
}

.member-card.black .text-back2.first {
}


.member-card .value {
    text-align: left;
    font-size: 12px;
}

.member-card .name-label {
    position: absolute;
    left: 15px;
    top: 185px;
    width: 95px;
}

.member-card .name-value {
    position: absolute;
    left: 120px;
    right: 0;
    top: 184px;
    border-top: 1px solid #000;
}

.member-card .academy-label {
    position: absolute;
    left: 15px;
    top: 215px;
    width: 95px;
}

.member-card .academy-value {
    position: absolute;
    left: 120px;
    right: 0;
    top: 215px;
}

.member-card .color-label {
    position: absolute;
    left: 15px;
    top: 245px;
    width: 95px;
}

.member-card .color-value {
    position: absolute;
    left: 120px;
    right: 0;
    top: 245px;
}

.member-card .birthday-label {
    position: absolute;
    left: 24px;
    right: 170px;
    top: 280px;
}

.member-card .birthday-value {
    position: absolute;
    left: 0;
    right: 170px;
    top: 295px;
    padding: 2px 0 3px 25px;
}

.member-card .number-label {
    position: absolute;
    left: 24px;
    right: 170px;
    top: 325px;
}

.member-card .number-value {
    position: absolute;
    left: 0;
    right: 170px;
    top: 340px;
    padding: 2px 0 3px 25px;
}

.member-card .join-label {
    position: absolute;
    left: 24px;
    right: 170px;
    top: 370px;
}

.member-card .join-value {
    position: absolute;
    left: 0;
    right: 170px;
    top: 385px;
    padding: 2px 0 3px 25px;
}

.member-card .qr-box {
    position: absolute;
    right: 15px;
    top: 283px;
    width: 110px;
    height: 135px;
    background-color: #ffffff;
    border-radius: 4px;
    color: #000000;
}

.member-card .qr-box .qr {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 100px;
    height: 100px;
}

.member-card .qr-box .text {
    position: absolute;
    left: 0;
    right: 0;
    top: 105px;
    width: 100%;
    font-style: oblique;
    font-weight: bold;
    text-align: center;
}

.member-card .qr-box .text img {
    width: 80px;
}


.qr__reader {
    margin-top: 25px;
}

.qr__reader-img {
    width: 30%;
    box-shadow: 5px 5px 5px #bbbbbb;
    border-radius: 50%;
    position: fixed;
    right: 20px;
    bottom: 50px;
}

.square {
    display: block;
    width: 30px;
    height: 30px;
    background-color: rgb(255, 48, 48);
}

.reader {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: var(--background-color);
    padding: 10% 10%;
    box-sizing: border-box;
}

.reader-video {
    background-color: #000;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.reticle {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 40px;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: 1;
}

.reticle-box {
    margin-top: -40px;
    width: 70vw;
    height: 70vw;
    border: 4px solid #fff;
    /* -webkit-animation: 0.8s linear 0s infinite alternate move_reticle; */
    /* animation: 0.8s linear 0s infinite alternate move_reticle; */
}

.managementcard {
    background-color: var(--background-color);
    margin: 30px auto 0 auto;
    padding: 10px;
}

.managementcard__head {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.managementcard__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    /* margin-top: 30px; */
}

.managementcard__month {
    display: block;
    width: 100%;
    color: var(--color);
    font-size: 20px;
    padding: 10px;
}

.stamp__pending {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #656565;
    margin: 10px;
}

.stamp__time {
    position: relative;
    background-color: #9e9e9e;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin: 10px;
    font-size: 0.7rem;
    color: #fff;
}

.stamp__time span {
    position: absolute;
    left: 2%;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 35px;
    text-align: center;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.unsupported {
    display: none;
    flex-direction: column;
    position: fixed;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: #000;
    color: #fff;
    z-index: 999;
}

.unsupported.is-show {
    display: flex;
}

.unsupported-title {
    font-weight: bold;
    font-size: 2em;
}

.imgchange-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

#calendar {
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 0;
}

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

    #calendar {
        width: 100vw;
        margin-left: -20px;
        margin-right: -20px;
    }

    .fc-toolbar-chunk button,
    .fc-toolbar-chunk .fc-icon
    {
        font-size: 14px !important;
    }

    .fc-toolbar-chunk .fc-toolbar-title {
        font-size: 14px !important;
    }
}

.fc-button-primary {
    background-color: var(--background-color) !important;
    color: var(--color) !important;
    border: none !important;
}

.fc-button-primary.fc-button-active {
    background-color: var(--color) !important;
    color: var(--background-color) !important;
    border: 1px solid var(--background-color) !important;
}

.fc-day-today {
    background: #FFF !important;
}

.fc-day-today .fc-daygrid-day-number {
    background-color: var(--background-color) !important;
    color: var(--color) !important;
    border-radius: 50%;
    min-width: 28px;
    min-height: 28px;
}

.today-number-circle {
  background-color: var(--background-color);
  color: var(--color);
  border-radius: 50%;
  display: inline-block;
  width: 26px;
  height: 26px;
  line-height: 26px;
  margin-top: -10px;
  text-align: center;
  font-weight: bold;
}

.fc-header-toolbar .btn {
  font-size: 14px;
  padding: 10px;
}

.fc-toolbar-title {
  font-size: 16px !important;
}

.fc-listMonth-button {
    padding-left: 13px !important;
    padding-right: 13px !important;
}

.custom-bg-event {
  background-color: rgba(55,136,216,0.5) !important;
}

.fc .fc-daygrid-body .fc-daygrid-day {
    border-style: solid;
    border-width: 1px;
    border-color: #dddddd;
}

/* 週のヘッダー */
.fc .fc-col-header-cell {
    border-style: solid;
    border-width: 1px; /* お好みのボーダーの厚さに設定 */
    border-color: #dddddd;
}

tbody .fc-day-sat {
    background-color: #b3e5fc;
}

tbody .fc-day-sun {
    background-color: #ffcdd2;
}

.fc-day:has(.custom-holiday-event) {
    background-color: #ffcdd2;
}

.fc-event-title-container {
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis; /* 長いテキストは省略 */
    white-space: nowrap; /* テキストの折り返しを防止 */
}

.fc-event-time {
    flex-shrink: 0; /* サイズが変わらないように固定 */
    margin-right: 5px; /* 時間とタイトルの間隔 */
    line-height: 17px;
}

.fc-event-title {
    flex: 1; /* タイトルが残りのスペースを埋める */
    padding-left: 5px; /* 時間とのスペースを確保 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 17px;
}

.fc-list-event {
    cursor: pointer;
}

.fc-list-day-side-text {
  float: left !important;
  margin-left: 10px;
}

.fc-list-day.fc-day-today .fc-list-day-cushion {
  padding-left: 40px;
}

.fc-list-day.fc-day-today .fc-list-day-cushion::before {
  content: '';
  color: var(--background-color);
  position: absolute;
  width: 18px;
  height: 18px;
  background-color: var(--background-color);
  border-radius: 50%;
  left: 14px;
  top: 10px;
}

.calendar-note {
    font-size: 14px;
    margin: 0;
    padding: 0;
    text-align: left;
    margin-bottom: 20px;
}

.lesson__list-controller {
    margin: 10px 0;
    padding: 10px 0;
    background-color: var(--background-color);
    height: 40px;
    position: relative;
  }
  
  .lesson__list-controller .prev {
    margin: auto;
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    border: none;
    border-radius: 5px;
    width: 30px;
    height: 30px;
    font-size: 16px;
    background-color: var(--color);
    color: var(--background-color);
  }
  
  .lesson__list-controller .today {
    margin: auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border: none;
    border-radius: 5px;
    width: 50px;
    height: 30px;
    font-size: 16px;
    background-color: var(--color);
    color: var(--background-color);
  }
  
  .lesson__list-controller .next {
    margin: auto;
    position: absolute;
    right: 30px;
    top: 0;
    bottom: 0;
    border-radius: 5px;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 16px;
    background-color: var(--color);
    color: var(--background-color);
  }

  .lesson__list-ym {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
  }
  
  .lesson__list-calendar-box {
    margin-bottom: 30px;
  }
  
  .lesson__list-calendar-box table {
    width: 100%;
    border-spacing: 0px;
    position: relative;
  }
  
  .lesson__list-calendar-box table th, .lesson__list-calendar-box table td {
    height: 30px;
    width: 30px;
    max-width: 30px;
    text-align: center;
    font-size: 16px;
    border: 1px solid var(--background-color);
  }

  .lesson__list-calendar-box table th {
    background-color: var(--background-color);
    color: var(--color);
    /* 縦スクロール時に固定する */
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    /* tbody内のセルより手前に表示する */
    z-index: 1;
  }
  
  .lesson__list-calendar-box table td.time {
    background-color: var(--background-color);
    color: var(--color);
    font-size: 14px;
    text-align: center;
  }
  
  .lesson__list-calendar-box table td.unenable {
    background-color: #ddd;
  }
  
  .lesson__list-calendar-box table td.enable {
    color: #DC143C;
  }
  
  .lesson__list-calendar-box table td form {
    display: inline;
  }

  .lesson__list button {
    border: none;
    background: none;
  }

  .lesson__list button.active {
      background-color: var(--background-color);
      color: var(--color);
  }

  .lesson__list td:has(> button.active) {
    background-color: var(--background-color);
    color: var(--color);
  }

  .lesson__list .is_today {
      background-color: var(--color);
      color: var(--background-color);
  }


  .top-message {
    font-size: 18px;
    text-align: center;
    line-height: 35px;
    color: var(--color);
    background-color: var(--background-color);
    padding: 5px 5px;
    border-radius: 4px;
  }

  .top-message span {
    font-size: 18px;
    padding: 5px 5px;
    margin: 0 5px;
    border-radius: 4px;
    font-weight: bold;
    color: var(--background-color);
    background-color: var(--color);
  }
