/*--------------------------------------------------------------
	Property Page Styles
--------------------------------------------------------------*/

/* Property Page FV Section */
.property_page .fv {
  margin-top: 0;
}
@media screen and (min-width: 811px) {
  .property_page .fv {
    margin-top: 86px;
  }
}
@media screen and (max-width: 810px) {
  .property_page .fv {
    margin-top: 47px;
  }
}
.property_page .fv_slide {
  overflow: visible;
}

/* Property Page Slick Slider */
.property-slider {
  position: relative;
  width: 100%;
  overflow: visible;
}
.property-slider .slide-item {
  position: relative;
  padding: 0 10px;
  height: 100%;
  transition: opacity 0.3s ease;
  background: transparent;
  opacity: 1;
}
.property-slider .slide-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: transparent;
}
@media screen and (min-width: 811px) {
  .property-slider .slick-track,
  .property-slider .slick-list {
    height: auto;
  }
  .property-slider .slide-item {
    height: auto;
  }
  .property-slider .slide-item img {
    height: auto;
    max-height: 600px;
    object-fit: contain;
  }
  .property-slider .slide-item.slick-center img {
    max-height: 600px;
  }
}
@media screen and (max-width: 810px) {
  .property-slider .slick-track,
  .property-slider .slick-list {
    height: auto;
  }
  .property-slider .slide-item {
    height: auto;
  }
  .property-slider .slide-item img {
    height: auto;
    max-height: 400px;
    object-fit: contain;
  }
}

/* Slick arrows customization */
.property-slider .slick-prev,
.property-slider .slick-next {
  z-index: 102;
  width: 40px;
  height: 40px;
}
.property-slider .slick-prev {
  left: 20px;
}
.property-slider .slick-next {
  right: 20px;
}
.property-slider .slick-prev:before,
.property-slider .slick-next:before {
  font-size: 40px;
  color: white;
  opacity: 0.8;
}
@media screen and (max-width: 810px) {
  .property-slider .slick-prev,
  .property-slider .slick-next {
    width: 30px;
    height: 30px;
  }
  .property-slider .slick-prev {
    left: 10px;
  }
  .property-slider .slick-next {
    right: 10px;
  }
  .property-slider .slick-prev:before,
  .property-slider .slick-next:before {
    font-size: 30px;
  }
}
.property-slider .slick-prev:hover:before,
.property-slider .slick-next:hover:before {
  opacity: 1;
}

/* Slick dots customization */
.property-slider .slick-dots {
  bottom: 20px;
  z-index: 102;
}
.property-slider .slick-dots li button:before {
  font-size: 12px;
  color: white;
  opacity: 0.5;
}
.property-slider .slick-dots li.slick-active button:before {
  opacity: 1;
  color: white;
}

/* Property Slider Thumbnail Navigation */
.property-slider-nav {
  margin: 20px auto 0;
  max-width: 1240px;
  padding: 0 40px;
  box-sizing: border-box;
  text-align: center;
  width: 100%;
}
.property-slider-nav .slick-list {
  margin: 0 auto;
  padding: 0 !important;
  overflow: visible;
  display: inline-block;
  width: auto !important;
}
.property-slider-nav .slick-track {
  margin: 0 auto;
  display: flex;
  align-items: center;
  transform: translate3d(0px, 0px, 0px) !important;
  width: auto !important;
}
.property-slider-nav .slick-slide {
  padding: 0 2px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
}
.property-slider-nav .slick-slide:first-child {
  padding-left: 0;
}
.property-slider-nav .slick-slide:last-child {
  padding-right: 0;
}
.property-slider-nav .slide-thumb {
  padding: 5px 2px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
  display: inline-block;
  width: auto;
}
.property-slider-nav .slide-thumb:hover {
  opacity: 1;
}
.property-slider-nav .slide-thumb.slick-current {
  opacity: 1;
  border: 2px solid #000;
}
.property-slider-nav .slide-thumb img {
  width: 120px;
  height: 80px;
  display: block;
  object-fit: cover;
}
@media screen and (max-width: 810px) {
  .property-slider-nav {
    padding: 0 16px;
    margin: 15px auto 0;
  }
  .property-slider-nav .slide-thumb {
    padding: 3px 1px;
  }
  .property-slider-nav .slide-thumb.slick-current {
    border-width: 2px;
  }
  .property-slider-nav .slide-thumb img {
    width: 80px;
    height: 60px;
  }
}

/* RICOH360 Viewer */
.ricoh360-viewer {
  width: 100%;
  margin: 40px 0;
  position: relative;
  padding-bottom: 40%; /* Reduced height for PC */
  height: 0;
  overflow: hidden;
}
.ricoh360-viewer iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
@media screen and (max-width: 810px) {
  .ricoh360-viewer {
    margin: 20px 0;
    padding-bottom: 75%; /* 4:3 aspect ratio for mobile */
  }
}
.property_cont .container {font-family: "Noto Sans JP", sans-serif !important;}
.property_cont .container h2 {
  text-align: left;
  font-weight: 600;
  font-size: 35px;
  margin:0px;
  padding: 0px;
  margin-top:-20px;
  font-family: "Noto Sans JP", sans-serif;
}
.property_cont .container h2 span {
  font-size: 16px;
}
.property_header {
  background-color: #e0e0e0;
  width: 100%;
}
.property_header .container {
  padding: 40px 40px;
}
.property_header_content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}
.property_header .property_info {
  flex-wrap: wrap;
}
.property_header .property_title {
  width: 70%;
  text-align: left;
  box-sizing: border-box;
}
.property_header .property_info {
  width: 30%;
  box-sizing: border-box;
  margin: 0px;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 4px;
  text-align: center;
}
.property_header .property_info p {
  text-align: center;
  margin: 0px;
  padding: 0px;
  line-height: 1.6;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 14px;
}
.property_header .property_info p.rent {
  font-size: 24px;
  font-weight: 600;
}
.property_header .property_info p.area {
  font-size: 18px;
}
.property_header .property_info p span {
  font-weight: 600;
  margin-right: 5px;
}

/* Property Detail Content Wrapper */
.property_detail_wrapper {
  margin-top: 0;
}

.property_detail_content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  margin-top: 0;
  padding-top: 0;
}
.property_detail {
  flex: 1;
  width: 70%;
  margin-top: 0;
  padding-top: 0;
}
.property_detail_text {
  width: 60%;
  margin-top: 0;
  padding-top: 0;
}

/* Contact Bar and Specs Wrapper */
.contact_specs_wrapper {
  width: 30%;
  position: relative;
  flex-shrink: 0;
}
.contact_specs_wrapper.sticky {
  position: fixed;
  top: 100px;
  z-index: 999;
  background:none;
  padding: 20px;
  margin: 0;
}
/* sticky時のcontact_buttonsのデザイン変更はここ */
.contact_specs_wrapper.sticky .contact_buttons {
  height:auto;
  background-color: #f0f0f0;


  /* ここにsticky時のcontact_buttonsのスタイルを追加してください */
}
.contact_specs_wrapper .contact_bar {
  flex: 1;
  order: 2;
  padding: 0;
}
.contact_specs_wrapper .property_detail_specs {
  flex: 1;
  margin: 0;
  padding: 0;
  order: 1;
}

/* Contact Bar */
.contact_bar {
  padding: 15px 0;
  margin: 0;
  width: 100%;
  transition: all 0.3s ease;
}
.contact_bar.sticky {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 200px;
  margin: 0;
  left: auto;
  bottom: auto;
}
.contact_bar.sticky .contact_bar_content {
  flex-direction: column;
  gap: 15px;
}
.contact_bar.sticky .contact_info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}
.contact_bar.sticky .contact_buttons {
  flex-direction: column;
  width: 100%;
  height:auto;
}
.contact_bar.sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  margin: 0;
  background: #fff;
  padding: 20px 0;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  top: auto;
  transform: none;
}
.contact_bar.sticky-bottom .contact_bar_content {
  justify-content: center;
}
/* stickyバーが表示される時、bodyにpadding-bottomを追加するためのクラス */
body.has-sticky-bar {
  padding-bottom: 120px;
}
@media screen and (max-width: 810px) {
  body.has-sticky-bar {
    padding-bottom: 70px;
  }
}
.contact_bar_content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.contact_info {
  display: none;
}
.contact_bar.sticky .contact_info {
  display: flex;
  gap: 20px;
  align-items: center;
}
.contact_info p {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333;
}
.contact_info .contact_price {
  font-size: 20px;
  font-weight: 600;
  color: #000;
}
.contact_info .contact_area {
  font-size: 14px;
  color: #666;
}
.contact_buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 4px;
}
.contact_buttons p {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}
.contact_buttons p a{font-size: 25px; font-weight: 400; font-style: italic; text-decoration: none; text-align: center;}

.contact_buttons p img{width:20px; vertical-align: middle;margin-top:-5px; margin-right: 5px;}
.contact_btn {
  padding: 10px 20px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}
.contact_btn_call {
  background: #4CAF50;
  color: #fff;
}
.contact_btn_call:hover {
  background: #45a049;
}
.contact_btn_email {
  background: #2196F3;
  color: #fff;
}
.contact_btn_email:hover {
  background: #0b7dda;
}
.contact_btn_inquiry {
  background: #000;
  color: #fff;
}
.contact_btn_inquiry:hover {
  background: #333;
}

/* Property Detail */
.property_detail {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 0 0 30px 0;
  padding: 0 0 20px 0;
  
}
.property_detail_text {
  width: 60%;
  max-width: none;
}
.property_detail_text p {
  margin: 0 0 15px 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  line-height: 1.8;
}
.property_detail_text p:last-child {
  margin-bottom: 0;
}
/* Wrapper for property_detail_specs and contact_buttons */
.property_specs_contact_wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.property_detail_specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 10px 0 0 0;
  padding: 0;
  width: 60%;
  flex-shrink: 0;
}

.property_contact_buttons_wrapper {
  width: 40%;
  flex-shrink: 0;
}
.property_contact_buttons_wrapper.sticky {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 999;
  background: #fff;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.property_detail_specs p {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}
.property_detail_specs p span {
  font-weight: 400;
  margin-left: 8px;
}
.property_detail_specs p img {
  width: 28px;
  height: auto;
  margin: 0 5px;
  flex-shrink: 0;
  align-self: center;
}
/* bed, bath, garage, floor, age以外のアイコンをテキストの上下中央に */
.property_detail_specs p:not(.bed):not(.bath):not(.garage):not(.floor):not(.age) img {
  align-self: center;
}
@media screen and (max-width: 810px) {
  .property_header .container {
    padding: 30px 16px;
  }
  .property_header_content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .property_header .property_title {
    width: 100%;
  }
  .property_header .property_info {
    width: 100%;
    padding: 15px;
  }
  .property_header .property_info p.rent {
    font-size: 20px;
  }
  .property_header .property_info p.area {
    font-size: 16px;
  }
  .property_detail {
    gap: 20px;
    margin: 20px 0;
    padding: 15px 0;
  }
  .property_detail_text {
    width: 100%;
    max-width: 100%;
  }
  .property_detail_text p {
    font-size: 13px;
    line-height: 1.7;
  }
  .property_specs_contact_wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .property_detail_specs {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 15px 0;
    width: 100%;
  }
  .property_contact_buttons_wrapper {
    width: 100%;
  }
  .property_contact_buttons_wrapper.sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    z-index: 999;
    background: #fff;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }
  .property_detail_specs p {
    font-size: 16px;
  }
  .property_detail_specs p img {
    width: 24px;
  }
  .property_detail_content {
    flex-direction: column;
  }
  .property_detail {
    width: 100%;
  }
  .contact_specs_wrapper {
    width: 100%;
  }
  .contact_specs_wrapper.sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    padding: 0;
    margin: 0;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  .contact_specs_wrapper.sticky .contact_bar {
    width: 100%;
  }
  .contact_specs_wrapper.sticky .contact_bar_content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0;
  }
  .contact_specs_wrapper.sticky .contact_info {
    display: none;
  }
  .contact_specs_wrapper.sticky .contact_buttons {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 0;
    padding: 0;
  }
  .contact_specs_wrapper.sticky .contact_buttons p.tel {
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    margin: 0;
    background: #f0f0f0;
    border-right: 1px solid #ddd;
    font-size: 0;
    line-height: 0;
  }
  .contact_specs_wrapper.sticky .contact_buttons p.tel img,
  .contact_specs_wrapper.sticky .contact_buttons p.tel image {
    width: 30px;
    height: 30px;
    margin: 0;
    display: block;
  }
  .contact_specs_wrapper.sticky .contact_buttons p.tel a,
  .contact_specs_wrapper.sticky .contact_buttons p.tel br {
    display: none;
  }
  .contact_specs_wrapper.sticky .contact_btn {
    flex: 1;
    width: auto;
    padding: 15px 5px;
    font-size: 11px;
    border-radius: 0;
    white-space: nowrap;
  }
  .contact_specs_wrapper.sticky .contact_btn_call,
  .contact_specs_wrapper.sticky .contact_btn_email {
    display: none;
  }
  .contact_specs_wrapper.sticky .contact_btn_inquiry {
    flex: 1;
    width: 80%;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    position: relative;
  }
  .contact_specs_wrapper.sticky .contact_btn_inquiry {
    color: transparent;
  }
  .contact_specs_wrapper.sticky .contact_btn_inquiry::after {
    content: 'CONTACT';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
  }
  .contact_bar_content {
    flex-direction: column;
    gap: 15px;
  }
  .contact_buttons {
    width: 100%;
  }
  .contact_buttons p {
    font-size: 11px;
    padding: 8px;
  }
  .contact_buttons p a {
    font-size: 18px;
  }
  .contact_btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 13px;
  }
  .property_cont .container h2 {
    font-size: 24px;
    margin-top: 0;
  }
  .property_cont .container h2 span {
    font-size: 14px;
  }
}

@media screen and (max-width: 810px) {
  .contact_bar.sticky {
    display: none;
  }
  .contact_bar.sticky-bottom {
    display: block;
  }
}

/* RICOH360 Viewer in container */
.property_cont .ricoh360-viewer {
  margin: 60px 0;
}
@media screen and (max-width: 810px) {
  .property_cont .ricoh360-viewer {
    margin: 40px 0;
  }
}

/* Bottom buttons */
.property_cont .bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 60px 0 40px 0;
}
@media screen and (max-width: 810px) {
  .property_cont .bottom {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 40px 0 30px 0;
  }
  .property_cont .bottom .btn {
    width: 100%;
    max-width: 300px;
  }
}
