@charset "utf-8";

table {
  border-spacing: 40px 17px;
}

.tab_contents {
  margin: 0;
}

.tab_contents.active {
  flex-direction: column;
}

/* 新規登録ボタン */
.bkn_register {
  margin: 0 0 1rem;
}

.bkn_register button {
  background-color: #094;
  border: 2px solid transparent;
  color: #fff;
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0 4rem 0 auto;
  padding: 0.2rem 0.8rem;
}

.bkn_register button:hover {
  background-color: #fff;
  border-color: #094;
  color: #094;
}

.info_btn,
.info_btn_box,
.info_btn_box div {
  align-items: center;
  display: flex;
  justify-content: center;
}

/* 物件一覧 */
.property_contents {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  min-height: 17rem;
  justify-content: center;
  position: relative;
  width: 100%;
}

.property_contents:nth-child(odd) {
  background-color: #eeeeee;
}

.property_contents>* {
  flex: 1;
}

.info_img {
  align-items: center;
  display: flex;
  justify-content: center;
  height: 18rem;
  position: relative;
}

.info_img form,
.info_img button {
  height: 100%;
  width: 100%;
}

.info_img form {
  position: absolute;
  height: 100%;
  width: 100%;
}

.info_view_img {
  position: relative;
  width: 25%;
}


.info_img a:hover {
  opacity: 0.7;
}

.info {
  align-items: center;
  display: flex;
  padding: 0 0.1rem;
  width: 35%;
}

.info table {
  margin: 3%;
}

.info_btn {
  width: 9%;
}

.info_btn_box {
  flex-direction: column;
  gap: 1rem;
}

.info_btn_box div {
  height: 50%;
  width: 100%;
}

/* 成約済みボタン */
.status_btn {
  background-color: #fff;
  border: 2px solid #fa2323;
  color: #fa2323;
  font-weight: bold;
  padding: 0.3rem 0.7rem;
}

.available:hover {
  background-color: #E3E3E3;
}

.sold {
  border-color: #999999;
  color: #999999;
}

.sold:hover {
  background-color: #E3E3E3;
}

/* 編集ボタン */
.edit_btn {
  background-color: #0AC817;
  border: 2px solid transparent;
  color: #fff;
  font-size: 1.1rem;
  padding: 0.6rem 1.6rem;
}

.edit_btn:hover {
  background-color: #fff;
  border-color: #0AC817;
  color: #0AC817;
  font-size: 1.1rem
}

/* iPad Air 4 (横向き)
@media screen and (min-width: 820px) and (max-width: 1180px) and (orientation: landscape) {
  table {
    border-spacing: 40px 10px;
  }

  .bkn_register button {
    font-size: 1rem;
  }

  .info {
    font-size: 0.87rem;
  }

  .info_btn button,
  .info_btn a {
    font-size: 0.7rem;
  }
} */

/* iPad Mini (横向き)
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  table {
    border-spacing: 40px 14px;
  }

  .bkn_register button {
    font-size: 1rem;
  }

  .info {
    font-size: 0.75rem;
  }

  .info_btn button,
  .info_btn a {
    font-size: 0.7rem;
    padding: 0.3rem 0.4rem;
  }

  .info_btn a {
    padding: 0.6rem 1.3rem;
  }
} */

@media screen and (min-width: 1600px) {
  .tab_contents.active {
    margin: 0 auto;
    width: 90%;
  }

  .bkn_register button {
    font-size: 1.3rem;
    margin: 0 8rem 0 auto;
    padding: 0.4rem 1rem;
  }
}



@media screen and (min-width: 20px) and (max-width: 1200px) {

  .tab_contents {
    background-color: #eeeeee;
    font-size: 1.2rem;
    padding: 4rem 0
  }

  .property_contents:nth-child(odd) {
    background-color: white;
  }

  .property_contents {
    background-color: white;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .5);
    flex-wrap: wrap;
    justify-content: space-between;
    margin: auto;
    margin-bottom: 3rem;
    padding: 1rem;
    width: 80%;
  }

  .property_contents>* {
    flex: none;
  }

  table {
    border-spacing: 0.2rem;
  }

  .info_img {
    max-height: 30rem;
    width: 100%;
  }

  .info_img img {
    height: 100%;
    object-fit: contain;
  }

  .info {
    padding: 0 0.3rem;
    width: 50%;
  }

  .info table {
    margin: 0;
  }

  .info th {
    background-color: #eeeeee;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
    border-bottom-left-radius: 2px;
  }

}

@media screen and (min-width: 20px) and (max-width: 549px) {

  .property_contents>* {
    flex: none;
  }

  .info_img {
    width: 100%;
  }

  .info {
    width: 100%;
  }

  .info th {
    width: 21rem;
  }

  .info td {
    width: 20rem;
  }

}