/*
 * 旧施設一覧の移植用スタイル。
 * 旧HTMLクラスはデータ移植の互換性のため保持し、必ず rnw-legacy-room-list 配下に限定する。
 */
.rnw-legacy-room-list,
.rnw-legacy-room-list * {
  box-sizing: border-box;
}

.rnw-legacy-room-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rnw-legacy-room-list a {
  text-decoration: none;
}

.rnw-legacy-room-list__mount,
.rnw-legacy-room-list,
.rnw-legacy-room-list__facilities,
.rnw-legacy-room-list .facility {
  width: 100%;
}

.rnw-legacy-room-list__loading {
  margin: 0;
  padding: 32px;
  text-align: center;
}

.rnw-legacy-room-list #fac_nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: min(100%, 700px);
  margin: 0 0 0;
}

.rnw-legacy-room-list #fac_nav li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc((100% - 16px) / 3);
  min-height: 61px;
  padding: 8px 10px;
  border-radius: 4px 4px 0 0;
  color: #00429a;
  background: #eef1f9;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 1.2px;
  text-align: center;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}

.rnw-legacy-room-list #fac_nav li:not(:last-child) {
  margin-right: 8px;
}

.rnw-legacy-room-list #fac_nav li:hover,
.rnw-legacy-room-list #fac_nav li:focus-visible,
.rnw-legacy-room-list #fac_nav li.active {
  color: #fff;
  background: #00429a;
}

.rnw-legacy-room-list #fac_nav li.active {
  cursor: default;
}

.rnw-legacy-room-list .rnw-room-tab-label,
.rnw-legacy-room-list .rnw-room-tab-tail {
  white-space: nowrap;
}

.rnw-legacy-room-list .rnw-room-tab-label {
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.rnw-legacy-room-list .facility {
  display: none;
  padding: 40px;
  background: #fff;
}

.rnw-legacy-room-list .facility.is-active {
  display: block;
}

.rnw-legacy-room-list .area_list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 40px;
}

.rnw-legacy-room-list .area_list li {
  width: calc((100% - 40px) / 6);
}

.rnw-legacy-room-list .area_list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #444;
  background: #fff;
  box-shadow: 0 4px 28px rgb(0 0 0 / 8%);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.rnw-legacy-room-list .area_list li a span {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-right: 22px;
}

.rnw-legacy-room-list .area_list li a span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 14px;
  height: 14px;
  background: url("../img/room-search/rnw-pc-arrow-down.svg") center / contain no-repeat;
  transform: translateY(-50%);
}

.rnw-legacy-room-list .area:not(:last-child) {
  margin-bottom: 56px;
}

.rnw-legacy-room-list .area > h3 {
  margin: 0 0 32px;
  padding: 8px 16px;
  color: #444;
  background: #e7effb;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 1.2px;
}

.rnw-legacy-room-list .city:not(:last-child) {
  margin-bottom: 56px;
}

.rnw-legacy-room-list .city > h4 {
  margin: 0 0 16px;
  color: #444;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 1.2px;
}

.rnw-legacy-room-list .cat {
  position: relative;
  width: calc(100% - 16px);
  margin: 24px 0 16px 16px;
  padding: 4px 8px;
  border: 0 !important;
  color: #444;
  background-image: none !important;
  box-shadow: none !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 1.2px;
  text-decoration: none !important;
}

.rnw-legacy-room-list .cat::before {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  left: -4px !important;
  display: block !important;
  width: 8px !important;
  max-width: 8px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #00429a !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: translateY(-50%) !important;
}

.rnw-legacy-room-list .cat::after {
  content: none !important;
  display: none !important;
}

.rnw-legacy-room-list .bg_cat1 { background-color: #fce9f0; }
.rnw-legacy-room-list .bg_cat2 { background-color: #c0e4f9; }
.rnw-legacy-room-list .bg_cat3 { background-color: #d6d2e9; }
.rnw-legacy-room-list .bg_cat4 { background-color: #fde8c0; }
.rnw-legacy-room-list .bg_cat5 { background-color: #dbe2cd; }
.rnw-legacy-room-list .bg_cat6 { background-color: #e6d4c4; }
.rnw-legacy-room-list .bg_cat7 { background-color: #dbe2cd; }
.rnw-legacy-room-list .bg_cat8 { background-color: #eeeafc; }
.rnw-legacy-room-list .bg_cat9 { background-color: #fde7e7; }
.rnw-legacy-room-list .bg_cat10 { background-color: #e6e6e6; }
.rnw-legacy-room-list .bg_other { background-color: #e7effb; }

.rnw-legacy-room-list .sub_btn_group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 24px;
}

.rnw-legacy-room-list .sub_btn_group > .btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 58px;
  padding: 12px 40px 12px 16px;
  border: 1px solid #00429a;
  border-radius: 4px;
  color: #00429a;
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
}

.rnw-legacy-room-list .sub_btn_group > .btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 14px;
  height: 14px;
  background: url("../img/room-search/rnw-pc-arrow-right.svg") center / contain no-repeat;
  transform: translateY(-50%) rotate(-90deg);
}

/* 検索ページは1023px以下をSPレイアウトとして扱う。 */
@media (max-width: 1023.98px) {
  .rnw-legacy-room-list #fac_nav {
    width: 100%;
  }

  .rnw-legacy-room-list #fac_nav li {
    min-height: 61px;
    padding: 8px 4px;
    font-size: clamp(13px, 1.76vw, 18px);
    line-height: 1.6;
    word-break: keep-all;
  }

  .rnw-legacy-room-list .facility {
    padding: 24px 16px;
  }

  .rnw-legacy-room-list .area_list li {
    width: calc((100% - 16px) / 3);
  }

  .rnw-legacy-room-list .area_list li a {
    min-height: 64px;
    padding: 12px 4px;
    font-size: clamp(13px, 1.76vw, 18px);
    line-height: 1.6;
  }

  .rnw-legacy-room-list .sub_btn_group {
    display: flex;
    padding-right: 0;
    padding-left: 0;
  }

  .rnw-legacy-room-list .cat {
    width: 100%;
    margin-left: 0;
  }

  .rnw-legacy-room-list .sub_btn_group > .btn {
    width: 100%;
    margin-bottom: 8px;
    font-size: 14px;
  }
}
