#header {
  box-shadow: 0 0 20px 2px rgba(0, 0, 0, 0.1);
}

#main_contents {
  background-color: #111828;
  width: 100%;
  padding: 0;
}


#main_col {
  padding: 100px 0 150px;
  width: 100%;
  margin: 0;
  font-family: YuGothic, "游ゴシック", "Noto Sans JP", Hiragino Sans, "ヒラギノ角ゴシック", Hiragino Kaku Gothic ProN, "ヒラギノ角ゴ ProN", Roboto, "Droid Sans", Meiryo, "メイリオ", Verdana, sans-serif;
}

@media (max-width: 767px) {
  #main_col {
    width: 90%;
    margin: 0 auto;
    padding: 60px 0 50px;
  }
}

#article {
  background: none;
  border: none;
}

.availability-section {
  color: #fff;
  width: 950px;
  margin: 0 auto;
}

/* スマホ対応：1週間分（7日分）だけ見えるように調整 */
@media (max-width: 767px) {
  .availability-section {
    width: 100% !important;
  }
}

.main-title {
  text-align: center;
  font-size: 50px;
  margin-bottom: 65px;
  padding-bottom: 60px;
  border-bottom: 1px solid #4b5563;
  font-family: Arial, "Hiragino Sans", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, "メイリオ", Meiryo, sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
}

@media (max-width: 767px) {
  .main-title {
    font-size: 30px;
    margin-bottom: 40px;
    padding-bottom: 50px;
  }
}

.main-title span {
  display: block;
  font-size: 18px;
  width: fit-content;
  margin: 10px auto 0;
  font-family: YuGothic, "游ゴシック", "Noto Sans JP", Hiragino Sans, "ヒラギノ角ゴシック", Hiragino Kaku Gothic ProN, "ヒラギノ角ゴ ProN", Roboto, "Droid Sans", Meiryo, "メイリオ", Verdana, sans-serif;
}

/* ナビゲーション */
.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto 25px;
}

.nav-btn {
  background: #111828;
  color: #fff;
  border: 1px solid #4b5563;
  padding: 10px 19px;
  max-width: 100px;
  cursor: pointer;
  font-size: 15px;
  border-radius: 5px;
  font-weight: bold;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .nav-btn {
    padding: 7px 10px;
    font-size: 13px;
  }
}

.nav-btn:hover {
  color: #fff !important;
  opacity: 0.8;
  transition: 0.3s ease;
}

.current-month {
    font-weight: bold;
    position: relative;
    font-size: 22px;
    text-align: center;
    margin: 0 auto;
    position: absolute;
    right: 0;
    left: 0;
    z-index: 0;
}

@media (max-width: 767px) {
  .current-month {
    font-size: 20px;
  }
}

.current-month span {
  margin-left: 5px;
}

.current-month span:first-child {
  margin-right: 5px;
}

/* 凡例 */
.legend {
  text-align: center;
  font-size: 16px;
  margin-bottom: 25px;
}

.legend span {
  margin: 0 10px;
  width: 50px;
  display: unset;
}

.legend .ok {
  color: #52b788;
  margin: 0 3px 0 0;
}

.legend .full {
  position: relative;
}

.legend .full .close-btn {
  margin-right: 15px;
}

.legend .full .close-btn::before, .legend .full .close-btn::after {
  width: 18px;
}

/* テーブル本体 */
.calendar-scroll-container {
  overflow-x: auto;
  width: 950px;
  border-radius: 5px;
  border: 1px solid #2d3d4d;
}

@media (max-width: 767px) {
  .calendar-scroll-container {
    width: 100%;
  }
}



/* テーブルラッパー - 4/19まで表示 */
.calendar-table-wrapper {
  display: block;
  width: max-content;
  min-width: 100%;
  overflow: visible;
}

.availability-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
}

@media (max-width: 767px) {
  .availability-table {
    min-width: 100%;
  }
}



.availability-table thead {
  font-size: 12px;
}

.availability-table thead th {
  background: #1f2937;

}

.availability-table thead th:first-child {
  background: #1f2937 !important;

}

.availability-table thead th:first-child,
.availability-table tbody td:first-child {
  position: sticky;
  position: -webkit-sticky;
  left: 0;
  z-index: 10;
  background-color: #111828;
}

.availability-table th,
.availability-table td {
  border-bottom: 1px solid #4b5563;
  padding: 14px 0;
  text-align: center;
  height: 50px;
  vertical-align: middle;
  min-width: 106px;
  width: 106px;
  font-weight: normal;
  position: relative;
}

@media (max-width: 767px) {

  .availability-table th,
  .availability-table td {
    width: 11.7vw;
    min-width: 11.7vw;
    padding: 6px 0;
  }
}



.availability-table td:not(:first-child), .availability-table th:not(:first-child) {
  border-left: 1px solid #4b5563;
}

.availability-table th span {
  display: block;
  margin-top: 10px;
}

.sat {
  color: #48cae4;
}

.sun {
  color: #e76f51;
}

/* ステータス記号 */
.status-ok a {
  color: #4ade80;
  text-decoration: none;
  font-size: 25px;
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  vertical-align: middle;
  margin: 0 auto;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .status-ok a {
    font-size: 21px;
    top: 0;
  }
}

.status-ok a:hover {
  opacity: 0.8;
  transition: 0.3s ease;
}

/* ラベルの装飾 */
.site-label {
  text-decoration: underline;
  line-height: 1.4;
  width: 140px !important;
  min-width: 140px !important;
  text-align: left !important;
  padding: 0 30px !important;
  position: sticky;
  left: 0;
  z-index: 5;
  background: #111828;
}

@media (max-width: 767px) {
  .site-label {
    width: 27vw !important;
    min-width: 27vw !important;
    padding: 0 8px !important;
    font-size: 12px;
  }
}


.site-label a {
  color: #fff;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  display: flex;
  align-items: center;
  text-decoration: underline;
  width: inherit;
}

.site-label a:hover {
  opacity: 0.8;
  transition: 0.3s ease;
}

.calendar-note {
  font-size: 16px;
  margin-top: 40px;
}

@media (max-width: 767px) {
  .calendar-note {
    font-size: 14px;
    margin-top: 20px;
    line-height: normal;
  }
}

.close-btn {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  display: block;
  margin: 0 auto;
}

.close-btn::before,
.close-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 1px;
  background: #f87171;
}

@media (max-width: 767px) {

  .close-btn::before,
  .close-btn::after {
    width: 21px;
  }
}

.close-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}


/* Chrome / Safari / Edge 用 */
.calendar-scroll-container::-webkit-scrollbar {
  /* スクロールバーを細く */
  scrollbar-width: thin;
}

.calendar-scroll-container::-webkit-scrollbar-thumb {
  background-color: #4a5568;
  /* スクロールバー 色 変更 */
  border-radius: 10px;
}

.calendar-scroll-container::-webkit-scrollbar-track {
  background: #1f2937;
  border-left: 1px solid #4b5563;
  border-right: 1px solid #4b5563;
  border-bottom: 1px solid #4b5563;
  border-radius: 0 0 5px 5px;
}

.today {
  background: rgba(234, 179, 8, 0.2) !important;
}

.past {
  background-color: rgba(102, 102, 102, 0.29) !important;
  color: #93979c;
}

.past.sat {
  color: #466d9d;
}

.past.sun {
  color: #c76768;
}

/* 
.availability-table .col-hover {
  background: rgba(234, 179, 8, 0.3);
} */

#footer_bottom {
  background: #fff;
}

/*////////////////////////// APIエラー時//////////////////////////// */
/* .error_contents {
  background: none !important;
} */

/* .error_contents .main-title {
  color: #000;
  border-bottom: 1px solid #ddd;
} */

.error_contents .flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 90px 30px;
  margin-top: 80px;
}

@media (max-width: 767px) {
  .error_contents .flex-container {
    gap: 40px 30px;
    margin-top: -10px;
  }
}

.error_contents .flex-container li {
  width: calc(34.3% - 30px);
}

@media (max-width: 767px) {
  .error_contents .flex-container li {
    width: 100%;
  }
}

.error_contents .flex-container li img {
  width: 100%;
}

.error_contents .flex-container li p.room-name {
  /* color: #000; */
  margin: 30px 0;
  font-weight: bold;
  font-size: 18px;
}

@media (max-width: 767px) {
  .error_contents .flex-container li p.room-name {
    margin: 20px 0;
    font-size: 15px;
  }
}

.error_contents .flex-container li p.btn {
  width: 100%;
}

.error_contents .flex-container li p.btn a {
  /* background: #663d00; */
  background: #374151;
  color: #fff;
  display: block;
  padding: 10px;
  text-align: center;
  height: 50px;
  line-height: 50px;
  font-size: 16px;
  border-radius: 5px;
}

@media (max-width: 767px) {
  .error_contents .flex-container li p.btn a {
    padding: 0;
    font-size: 14px;
    border-radius: 4px;
  }
}

.error_contents .flex-container li p.btn a:hover {
  /* background: #b78300; */
  opacity: 0.8;
  transition: 0.3s ease;

}

.before-sale {
  background-image: linear-gradient(to left top, transparent calc(50% - 0.5px), #4b5563 50%, #4b5563 calc(50% + 0.5px), transparent calc(50% + 1px)) !important
}

.sale {
  width: 14px !important;
  height: 14px;
  top: 2px;
  display: inline-block !important;
  border: 1px solid #646d79;
  position: relative;
  margin: 0 6px 0 0 !important;
}



.sale::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -3.5px;
  width: 20px;
  height: 1px;
  background: #646d79;
  transform: rotate(-45deg);
  transform-origin: center;
}
