/**
 * Reset
 */
a {
  text-decoration: none;
  color: inherit;
  transition: opacity .3s;
}
a:hover {
  opacity: 0.8;
}
p {
  color: inherit;
}

/**
 * 物件一覧ページ
 */
#property-search-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 16px;
}

#property-search-form .field-label {
  margin-bottom: unset;
}

#property-search-form .choices__inner {
  padding: 3px 3px 2px;
  min-height: unset;
}

#property-search-form .choices__list--multiple .choices__item {
  padding: 2px 6px;
  margin-bottom: 0;

}

#property-search-form .choices__input.choices__input--cloned {
  margin-bottom: unset;
  width: 0;
}

#property-search-form .choices__list--multiple .choices__item--selectable {
  border-color: #fa6e06;
  background-color: #fa6e06;
}

#property-search-form .choices__list--multiple .choices__item--selectable .choices__button {
  border-left-color: white;
}

#property-search-form .div-block-3 .choices {
  flex-shrink: 0;
  width: 600px;
}

#property-search-form .w-select,
#property-search-form .field-label-copy {
  margin-bottom: unset;
}

.properties-pagination {
  gap: 16px;
}

.result_box .w-layout-cell img {
  aspect-ratio: 233 / 175;
  object-fit: cover;
}

@media screen and (max-width: 991px) {
    #property-search-form .div-block-3 .choices {
        width: 65vw;
    }
}

@media screen and (max-width: 767px) {
    #property-search-form .div-block-3 .choices {
        width: 100%;
    }
}

/**
 * 物件詳細ページ
 */
/* FVスライド */
#main-slider .splide__slide img {
  aspect-ratio: 676 / 437;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Splide メインスライダー用のカスタムスタイル */
#main-slider .splide__slide {
    /* opacity: 0.6; */
}

#main-slider .splide__slide.is-active {
    opacity: 1;
}

#main-slider .splide__image {
  background-color: #dcdbdc;
}

#main-slider .splide__slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* サムネイル用のカスタムスタイル */
#thumbnail-slider .splide__inner {
  padding-inline: calc((100% - 140px * 5 - 10px * 4) / 2);
}

#thumbnail-slider .splide__slide {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

#thumbnail-slider .splide__slide.is-active,
#thumbnail-slider .splide__slide:hover {
    opacity: 1;
}

#thumbnail-slider .s_inner {
    width: 100%;
    /* height: 60px; */
    overflow: hidden;
}

#thumbnail-slider .splide__slide {
  max-width: 140px;
}

#thumbnail-slider .s_inner img {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#thumbnail-slider .splide__track--nav>.splide__list>.splide__slide {
  border: none;
}
#thumbnail-slider .splide__track--nav>.splide__list>.splide__slide.is-active {
  border: none;
  position: relative;
}
#thumbnail-slider .splide__track--nav>.splide__list>.splide__slide.is-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#thumbnail-slider .splide__slide.is-active {
  position: relative;
}
#thumbnail-slider .splide__slide.is-active::before {
    content: "";
    position: absolute;
    box-sizing: border-box;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background で枠を作成 */
    border: 10px solid #fa6e06; /* アクティブなサムネイルの枠線 */
    z-index: 2;
}

.details_container {
  column-gap: 40px;
}
.details_txt_box {
  min-width: 50%;
  width: unset;
}
.details_box02 {
  width: 100%;
}
/* 間取り図サムネイル用のスタイル */
.details_madori {
  flex-shrink: 0;
}

.floorplan-thumbnail {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, border-color 0.3s;
    border: 10px solid transparent;
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.floorplan-thumbnail.active,
.floorplan-thumbnail:hover {
    opacity: 1;
    border-color: #fa6e06;
}

.main-floorplan-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 794px;
    height: auto;
}

/* 拡大表示ボタン */
.lightbox-trigger {
    margin-top: 20px;
}

/* ライトボックス用のスタイル */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    opacity: 0;
    transition: opacity .3s;
}
.lightbox-modal.active {
    transition: opacity .3s;
    opacity: 1;
}

.lightbox-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-trigger {
    cursor: pointer;
    transition: opacity 0.3s;
}

.lightbox-trigger:hover {
    opacity: 0.8;
}

/* レスポンシブ対応 */
.s_inner {
  height: unset;
}

@media (max-width: 920px) {
  #thumbnail-slider .splide__inner {
    padding-inline: calc((100% - 140px * 4 - 10px * 3) / 2);
  }
}

@media (max-width: 768px) {
    .body {
      padding-bottom: calc(70 / 500 * 100vw);
    }

    .details_container {
        row-gap: 32px;
    }

    .slide {
      padding-inline: 16px;
    }

    #thumbnail-slider .s_inner {
        aspect-ratio: 1 / 1;
        width: 100%;
        height: auto;
    }

    #thumbnail-slider .splide__slide {
      max-width: 120px;
    }

    #thumbnail-slider .splide__inner {
      padding-inline: calc((100% - 120px * 3 - 10px * 2) / 2);
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: 20px;
        font-size: 24px;
    }
}

@media screen and (max-width: 560px) {
    #thumbnail-slider .splide__slide {
      max-width: 100px;
    }

    #thumbnail-slider .splide__inner {
      padding-inline: calc((100% - 100px * 3 - 10px * 2) / 2);
    }
}

@media screen and (max-width: 479px) {
  .body {
    line-height: calc(28 / 16);
  }
    #thumbnail-slider .splide__slide {
      max-width: 80px;
    }

    #thumbnail-slider .splide__inner {
      padding-inline: calc((100% - 80px * 3 - 10px * 2) / 2);
    }
}

/**
 * お知らせ一覧
 */
.archive_box li::marker {
  content: "";
}
.archive_box li {
  display: flex;
}

.news-pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.news-pagination a {
  color: #fa6e06;
  text-decoration: none;
}

.newstop_btn {
  padding: unset;
  /* padding: 20px 60px; */
}
.newstop_btn a {
  display: block;
  width: 100%;
  padding: 20px 60px;
  justify-content: center;
}
.whatsnew_box .ttl a {
  display: inline-block;
  transition: opacity .3s;
}
.whatsnew_box .ttl a:hover {
  opacity: 0.8;
  color: inherit;
}

/**
 * お問い合わせ
 */
/*デフォルトのサンクスメッセージを非表示*/
.wpcf7-response-output{
    display: none;
}
.contact-form {
    padding: 40px 0;
}
.contact-form .form-container {
  max-width: 1080px;
  padding-inline: 40px;
}

.step-container {
    margin-bottom: 40px;
}

.step-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.step-box ul {
  padding: 0;
}
.step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 50px;
    border-radius: 25px;
    background-color: #e9ecef;
    color: #6c757d;
    font-weight: bold;
}

.step.active {
    background-color: #ffd700;
    color: #333;
}

.step-arrow {
    color: #6c757d;
    font-size: 18px;
}

.form-container {
    background-color: white;
}

.form-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.Form-Item {
    border-bottom: 1px solid #e9ecef;
}

.Form-Item th {
    padding: 20px 15px;
    background-color: #f8f9fa;
    text-align: left;
    vertical-align: top;
    width: 200px;
    font-weight: normal;
}

.Form-Item td {
    padding: 20px 15px;
}

.required-badge {
    background-color: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.privacy-agreement {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

.privacy-link {
    color: #ff6b35;
    text-decoration: underline;
    transition: all 0.3s;
}

.privacy-link:hover {
    opacity: 0.8;
}

.checkbox-wrapper {
    margin-top: 15px;
}

.button-wrapper {
    text-align: center;
    margin-top: 30px;
}

.btn-primary {
    background-color: #ff6b35;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover:not(:disabled) {
    background-color: #e55a2b;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 20px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.confirm-table th {
    padding: 15px;
    background-color: #f8f9fa;
    text-align: left;
    width: 200px;
    border-bottom: 1px solid #e9ecef;
}

.confirm-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.confirm-buttons {
    text-align: center;
}

.confirm-title {
    font-size: 20px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

@media (max-width: 768px) {
    .step-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .form-container {
        padding: 20px;
    }
    
    .Form-Item th {
        width: 100%;
        display: block;
        padding-bottom: 10px;
    }
    
    .Form-Item td {
        display: block;
        padding-top: 0;
    }
    
    .confirm-table th {
        width: 100%;
        display: block;
        padding-bottom: 10px;
    }
    
    .confirm-table td {
        display: block;
        padding-top: 0;
    }
    
    .confirm-buttons {
        flex-direction: column;
    }
    
    .btn-secondary {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/**
 * フッター
 */
.text-block-3, .text-block-3-copy a {
  transition: opacity .3s;
}
.text-block-3:hover, .text-block-3-copy a:hover {
  color: #fff;
  opacity: 0.8;
}

/**
 * 共通
 */
.u-sp {
  display: none;
}
@media screen and (max-width: 767px) {
  .u-sp {
    display: inline;
  }
}

.u-md {
  display: none;
}
@media screen and (max-width: 991px) {
  .u-md {
    display: inline;
  }
}

/* フッターナビ */
.fixed-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  gap: 0;
  align-items: center;
  background-color: #fff;
}

.fixed-banner > * {
  width: 50%;
}

.fixed-banner source,
.fixed-banner img {
  aspect-ratio: 251 / 70;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (min-width: 768px) {
  .fixed-banner {
    right: 20px;
    bottom: 28px;
    left: unset;
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.37);
    width: fit-content;
    gap: 6px;
  }

  .fixed-banner source,
  .fixed-banner img {
    aspect-ratio: 93 / 78;
    width: 93px;
    height: 78px;
  }
}