/*******************************

housing CSS

**********************************/

.page_ttl {
  position: relative;
  margin-bottom: 70px;
}

.tab_list {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 80px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}
.tab_list .tab_list_item {
  width: calc(100% / 3);
}
.tab_list .tab_list_item span {
  text-align: center;
  display: block;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  line-height: 1.3;
}
.tab_list .tab_list_item span::after {
  content: "";
  display: block;
  width: 1px;
  height: 60%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  background-color: #666;
}
.tab_list .tab_list_item:last-of-type span::after {
  display: none;
}

/* @media all and (min-width: 901px) { */
.tab_list {
  display: flex;
  justify-content: space-between;
  max-width: 1000px;
  align-items: center;
  position: -webkit-sticky;
  position: sticky;
  top: 68px;
  z-index: 90;
}

@media all and (-ms-high-contrast: none) {
  .tab_list {
    position: relative;
    top: inherit;
  }
}
.tab_list::before {
  content: "";
  display: block;
  width: 100vw;
  height: 100%;
  margin: auto calc(50% - 50vw);
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 1);
  /* box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1); */
  transition: 0.3s ease-in;
  pointer-events: none;
}
.tab_list.now::before {
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
}
/* } */
@media all and (min-width: 901px) {
  .tab_list .tab_list_item span:hover {
    /* background-color: #efc57c; */
    background-color: #e49a1b;
    color: #fff;

    /* color: #e49a1b; */
  }
}
.tab_list .tab_list_item.active span {
  pointer-events: none;
  /* background: #002c76; */
  background-color: #e49a1b;
  color: #fff;
  /* color: #e49a1b; */
}

@media all and (max-width: 900px) {
  .tab_list {
    flex-wrap: wrap;
    justify-content: center;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    padding-top: 0;
    position: -webkit-sticky;
    position: sticky;
    top: 68px;
    margin-bottom: 60px;
    z-index: 10;
  }
  .tab_list .tab_list_item {
    border-right: 1px solid #fff;
  }
  .tab_list .tab_list_item:last-of-type {
    border-right: none;
  }
  .tab_list .tab_list_item span {
    min-height: 4.3em;
    background: #6e87b1;
    color: #fff;
    line-height: 1.3;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-weight: 600;
    padding-right: 0;
    padding-left: 0;
  }
  .tab_list .tab_list_item span::after {
    display: none;
  }
}
@media all and (max-width: 600px) {
  .page_ttl {
    margin-bottom: 60px;
  }

  .tab_list {
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    padding-top: 0;
    position: -webkit-sticky;
    position: sticky;
    top: 57px;
    margin-bottom: 60px;
    z-index: 10;
  }
  .tab_list .tab_list_item {
    width: calc(100% / 3);
    margin-bottom: 0;
    margin-right: 0;
    border-right: 1px solid #fff;
  }
  /* .tab_list .tab_list_item:last-of-type,
  .tab_list .tab_list_item:nth-last-of-type(2) {
    width: 50%;
    border-top: 1px solid #fff;
  } */
  .tab_list .tab_list_item:nth-of-type(3),
  .tab_list .tab_list_item:last-of-type {
    border-right: none;
  }
  .tab_list .tab_list_item span {
    max-width: 100%;
    border-radius: 0;
    font-size: 1.2rem;
    min-height: 0;
    padding: 1em 0;
  }
}

.housing {
}
.housing .inner {
  max-width: 1000px;
}

.page_content {
  max-width: 1000px;
  width: 90%;
  margin: 0 auto;
}
.tab_content {
  display: none;
}
.tab_content:first-of-type {
  display: block;
}

.slider_area {
  margin-bottom: 60px;
}

.main_slider {
  width: 100%;
  margin: 0 auto 20px;
  position: relative;
}
.main_slider [class*="main_slide"] figure {
  width: 100%;
  position: relative;
  margin: 0 auto;
}
.main_slider [class*="main_slide"] figcaption {
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  z-index: 2;
}
.main_slider .swiper-button-prev {
  right: calc(100% - 50px);
}
.main_slider .swiper-button-next {
  left: calc(100% - 50px);
}

.sub_slider {
  width: 100%;
}

.sub_slider [class*="sub_slide"] {
  opacity: 0.5;
}

.sub_slider [class*="sub_slide"].active {
  border: 4px solid #e49a1b;
  opacity: 1;
}

.cate_info,
.cate_info tbody,
.cate_info tr {
  width: 100%;
}

th {
  padding: 1em 0;
  border-bottom: 1px solid #cfcfcf;
}

td {
  padding: 1em 0;
  border-bottom: 1px solid #cfcfcf;
}
.cate_info tr:first-of-type th,
.cate_info tr:first-of-type td {
  border-top: 1px solid #cfcfcf;
}

.cate_info tr th {
  width: 230px;
}

.cate_info tr td {
  width: calc(100% - 230px);
}

@media all and (max-width: 600px) {
  .cate_info tr th {
    width: 125px;
  }

  .cate_info tr td {
    width: calc(100% - 125px);
  }
}
