@layer property {
  .detail-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .detail-page-header {
    display: grid;
    grid-template-areas:
      "badge contact"
      "name contact"
      "information contact";
    grid-template-columns: 1fr max-content;
    grid-template-rows: max-content 1fr;
    gap: 1rem;
  }

  @media (max-width: 768px) {
    .detail-page-header {
      grid-template-areas:
        "badge"
        "name"
        "information"
        "contact";
      grid-template-columns: 1fr;
      /* grid-template-rows: max-content max-content 0; */
      gap: 0.5rem;
    }
  }

  .detail-page-header .badge {
    grid-area: badge;
    margin-right: 0;
    padding: 2px 5px;
    border-radius: 2px;
    border: 1px solid #d3d3d3;
    width: max-content;
    font-size: 0.7rem;
  }
  .detail-page-header .name {
    grid-area: name;
    font-size: 1.5rem;
    font-weight: bold;
  }
  .detail-page-header .name span {
    padding-top: 0.5rem;
  }

  @media (max-width: 768px) {
    .detail-page-header .name {
      font-size: 1rem;
    }
  }

  .detail-page-header .information {
    grid-area: information;
  }

  .detail-page-header .information .price-value {
    color: #e32828;
  }
  .detail-page-header .information .price-management-fee,
  .detail-page-header .information .price-management-fee .price-value {
    color: #000;
  }
  .detail-page-header .information .labeled-value .price-value {
    color: #000;
  }

  .detail-page-header .contact {
    grid-area: contact;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  @media (max-width: 768px) {
    .detail-page-header .contact {
      display: none;
    }
  }
  .detail-page-header .contact .center,
  .detail-page-header .contact .stack-center {
    width: 100%;
  }
  .detail-page-header .contact .contact-text {
    font-size: 0.875rem;
    font-weight: bold;
  }
  .detail-page-header .contact .inquiry-button,
  .detail-page-header .contact .tel-button {
    width: 100%;
    max-width: 310px;
    height: 50px;
    padding: 0.5em 2em;
    margin-block: 0;
    border: 2px solid var(--main-color);
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    border-radius: 9999px;
    text-decoration: none;
    cursor: pointer;
  }
  .detail-page-header .contact .inquiry-button {
    background: var(--main-color);
    color: var(--text-contrast-color);
  }
  .detail-page-header .contact .tel-button {
    color: var(--main-color);
    background-color: var(--text-contrast-color);
  }
  .detail-page-header .contact .tel-button:hover,
  .detail-page-header .contact .inquiry-button:hover {
    opacity: 0.7;
  }

  .detail-page-header .contact .contact-tel {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
  }

  .detail-page-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /*******************************************************************************
    ブロックタイトル
  *******************************************************************************/
  .property-detail-block .block-title {
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  .property-detail-block .block-title::before {
    content: "";
    display: inline-block;
    vertical-align: sub;
    width: 4px;
    height: 18px;
    background: #730707;
    border-radius: 2px;
    margin-right: 4px;
  }

  /*******************************************************************************
    property-video
  *******************************************************************************/
  .property-video {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
  }

  /*******************************************************************************
    備考
  *******************************************************************************/
  .property-memo {
    padding: 1rem;
    background: #f0f0f0;
    font-size: 0.875rem;
  }

  /*******************************************************************************
    設備・特徴
  *******************************************************************************/
  .property-equipments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .property-equipment {
    display: inline-flex;
    align-items: center;
    padding: 0 1rem; /* Figma: 0 20px */
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid #d3d3d3;
    border-radius: 0.25rem;
  }

  /*******************************************************************************
    モーダル
  *******************************************************************************/
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
  }

  .modal.show {
    display: block;
  }

  .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
  }

  .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
  }

  .modal-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
    color: #333;
  }

  .modal-close {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: background-color 0.2s;
  }

  .modal-close:hover {
    background: #f0f0f0;
  }

  .modal-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: #666;
    margin: 1px 0;
    transform-origin: center;
    translate: -50% -50%;
  }

  .modal-close span:first-child {
    transform: rotate(45deg);
  }

  .modal-close span:last-child {
    transform: rotate(-45deg);
  }

  .modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
  }

  /* フォームスタイル */
  .modal .form {
    margin: 0;
  }

  .modal .form .title {
    font-size: 1rem;
    font-weight: bold;
    padding: 1rem 0 0.5rem 0;
    border-bottom: none;
    background: none;
    position: relative;
  }

  .modal .form .title.required::after {
    content: "必須";
    position: absolute;
    top: 1rem;
    right: 0;
    background: #dc3545;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: normal;
  }

  .modal .form .description {
    padding: 0.5rem 0 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1rem;
  }

  .modal .form .description:last-child {
    border-bottom: none;
  }

  .modal .form .block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .modal .form .block:last-child {
    margin-bottom: 0;
  }

  .modal .form .block label {
    font-weight: bold;
    font-size: 0.875rem;
    color: #333;
  }

  .modal .form .name-inputs {
    display: flex;
    gap: 0.5rem;
  }

  .modal .form .name-inputs input {
    flex: 1;
  }

  .modal .form .date-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }

  .modal .form .date-inputs select {
    flex: 1;
  }

  /* 送信ボタン */
  .modal .submit {
    margin-top: 2rem;
    text-align: center;
  }

  .modal .submit-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    min-width: 200px;
  }

  .modal .submit-button:hover:not(:disabled) {
    background: #0056b3;
  }

  .modal .submit-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
  }

  /* 個人情報セクション */
  .modal .privacy {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
  }

  .modal .privacy h4 {
    font-size: 1rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    color: #333;
  }

  .modal .privacy ul {
    margin: 0;
    padding-left: 1.5rem;
  }

  .modal .privacy li {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
  }

  .modal .privacy a {
    color: #007bff;
    text-decoration: none;
  }

  .modal .privacy a:hover {
    text-decoration: underline;
  }

  /* レスポンシブ対応 */
  @media (max-width: 768px) {
    .modal-content {
      width: 95%;
      max-height: 90vh;
    }

    .modal-header {
      padding: 0.75rem 1rem;
    }

    .modal-body {
      padding: 1rem;
    }

    .modal .form .name-inputs {
      flex-direction: column;
    }

    .modal .form .date-inputs {
      flex-direction: column;
    }

    .modal .form .date-inputs select {
      flex: none;
    }

    .modal .submit-button {
      width: 100%;
      min-width: auto;
    }
  }

  /*******************************************************************************
    property-table
  *******************************************************************************/

  .property-table {
    display: grid;
    grid-template-columns: max-content 1fr;
  }

  .property-table > .table-header {
    font-size: 0.875rem;
    padding-block: 0.75em;
    padding-inline: 0.75em 0;
    border-bottom: 1px solid #d3d3d3;
    color: #555;
  }

  .property-table > .table-body {
    font-size: 0.875rem;
    padding: 0.75em;
    border-bottom: 1px solid #d3d3d3;
  }
  .property-table > .table-body a {
    color: var(--link-color);
  }
  .property-table > .table-body a:hover {
    color: var(--main-color);
    text-decoration: none;
  }
  @media (max-width: 768px) {
    .property-table {
      grid-template-columns: 1fr;
    }
    .property-table > .table-header {
      padding-inline: 0;
      padding-bottom: 0.25em;
      border-bottom: none;
    }
    .property-table > .table-body {
      padding-inline: 0;
      padding-top: 0.25em;
    }
  }

  /*******************************************************************************
    周辺環境
  *******************************************************************************/
  .property-surroundings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
  }

  .property-surrounding {
    background: #ffffff;
    border: 1px solid #ebe8e4; /* Figma */
    border-radius: 2px; /* Figma */
    box-shadow: 0 3px 0 0 rgba(235, 232, 228, 1); /* Figma */
    padding: 10px 12px;
    min-height: 87px; /* Figma参考値 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0px;
  }

  .property-surrounding h3 {
    margin: 0 0 6px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    padding-left: 30px; /* アイコン分の左余白 */
  }

  .property-surrounding h3::before {
    content: "";
    /* background-image: url('../image/ico_surroundings_on.png'); */
    background-image: url("/app/plugins/wp-rengodb/assets/img/ico_building.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    left: 0;
    top: 6px;
    width: 22px;
    height: 22px;
    text-align: center;
  }

  .property-surrounding h3 .fs-xs {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    font-size: 11.0625px; /* Figma */
    line-height: 1.52em; /* Figma */
    color: #000000; /* Figma */
  }

  .property-surrounding h3 .fs-sm.bold {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700; /* Figma */
    font-size: 12px; /* Figma */
    line-height: 1.4; /* Figma相当 */
    color: #000000; /* Figma */
    display: block;
  }

  .property-surrounding .property-surrounding-content {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 30px;
  }

  @media (max-width: 768px) {
    .property-surroundings {
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
  }

  @media (max-width: 480px) {
    .property-surroundings {
      grid-template-columns: 1fr;
      gap: 8px;
    }
  }

  /*******************************************************************************
   * 画像
   *******************************************************************************/
  .property-image {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .property-image.has-multiple {
    display: grid;
    align-items: start;
    grid-template-columns: 50% 1fr; /* 左: メイン画像 右: サムネイル列 */
    column-gap: 1.5rem; /* 列間の余白 */
  }

  @media (max-width: 768px) {
    .property-image.has-multiple {
      grid-template-columns: 1fr;
      justify-content: center;
    }
  }

  .property-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 0.25rem;
    overflow: hidden;
    border: 1px solid #d3d3d3;
    box-sizing: border-box;
  }

  /* メイン画像 */
  .property-image-main {
    aspect-ratio: 1 / 1;
  }
  :not(.has-multiple) .property-image-main {
    max-width: 484px;
    margin-inline: auto;
  }

  /* サムネイルリスト */
  @media (min-width: 768px) {
    .property-image .property-images {
      display: grid !important;
      grid-template-columns: repeat(auto-fill, minmax(calc((100% - 1rem) / 5), 1fr));
      gap: 0.25rem;
      align-content: start;
    }
  }

  /* 物件コメント */
  .property-comment {
    font-size: 0.875rem;
    line-height: 1.7;
  }

  @media (max-width: 768px) {
    .property-comment {
      font-size: 0.75rem;
    }
  }

  /*******************************************************************************
    交通情報
  *******************************************************************************/
  .property-traffic {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .property-traffic-item {
    border: 1px solid #ebe8e4;
    border-radius: 2px;
    box-shadow: 0 3px 0 0 rgba(235, 232, 228, 1);
    background: #ffffff;
  }

  .property-price {
    color: var(--price-color);
    font-size: 0.875rem;
  }
  .property-price .price-value .price-unit {
    font-size: 0.875rem;
  }
  .traffic {
    display: inline-block;
  }
  .traffic::after {
    content: "｜";
  }
  .traffic:last-child::after {
    display: none;
  }

  .traffic-link {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
  }

  .traffic-link:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: inherit;
  }

  .traffic-info {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  .traffic-info::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    background: no-repeat 50% 50% / contain;
    background-image: url("/app/plugins/wp-rengodb/assets/img/ico_train.svg");
    vertical-align: middle;
  }

  .traffic-info .traffic-destination {
    font-weight: bold;
    color: #333;
  }

  .traffic-info .traffic-lines {
    color: #666;
    font-weight: normal;
  }

  .traffic-info .traffic-to-destination,
  .traffic-info .traffic-minutes {
    color: #555;
  }

  @media (max-width: 768px) {
    .property-traffic {
      gap: 0.25rem;
    }

    .traffic-link {
      padding: 0.5rem 0.75rem;
    }

    .traffic-info {
      font-size: 0.75rem;
    }
  }

  .property-recommended-businesses {
    margin-block: 0.5rem;
  }
  .property-recommended-business {
    border: 1px solid #d3d3d3;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    vertical-align: top;
  }
  .property-recommended-business::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    background: no-repeat 50% 50% / contain;
  }
  /* 飲食全般（重飲食含む） */
  .property-recommended-business.property-recommended-business-5001::before {
    background-image: url("/app/plugins/wp-rengodb/assets/img/ico_food.svg");
  }
  /* 小売・物販 */
  .property-recommended-business.property-recommended-business-5002::before {
    background-image: url("/app/plugins/wp-rengodb/assets/img/ico_shop.svg");
  }
  /* 美容・健康・介護 */
  .property-recommended-business.property-recommended-business-5004::before {
    background-image: url("/app/plugins/wp-rengodb/assets/img/ico_beauty.svg");
  }
  /* バー・クラブ・スナック */
  .property-recommended-business.property-recommended-business-5005::before {
    background-image: url("/app/plugins/wp-rengodb/assets/img/ico_bar.svg");
  }
  /* 喫茶・カフェ（軽飲食） */
  .property-recommended-business.property-recommended-business-5007::before {
    background-image: url("/app/plugins/wp-rengodb/assets/img/ico_cafe.svg");
  }
  /* 医療 */
  .property-recommended-business.property-recommended-business-5008::before {
    background-image: url("/app/plugins/wp-rengodb/assets/img/ico_health.svg");
  }
  /* 教育・スクール */
  .property-recommended-business.property-recommended-business-5009::before {
    background-image: url("/app/plugins/wp-rengodb/assets/img/ico_education.svg");
  }
  /* アミューズメント */
  .property-recommended-business.property-recommended-business-5010::before {
    background-image: url("/app/plugins/wp-rengodb/assets/img/ico_amusement.svg");
  }
  /* 事務所 */
  .property-recommended-business.property-recommended-business-5020::before {
    background-image: url("/app/plugins/wp-rengodb/assets/img/ico_office.svg");
  }
  /* その他 */
  .property-recommended-business.property-recommended-business-5006::before {
    display: none;
  }

  .property-forbidden-business-title {
    color: #e32828;
  }
  .property-forbidden-businesses {
    margin-block: 0.5rem;
  }
  .property-forbidden-businesses > * {
    display: inline-block;
    font-size: 0.875rem;
  }
  .detail-page-footer {
    display: grid;
    grid-template-areas: "image information contact" "notes notes notes";
    grid-template-columns: 120px 250px 1fr;
    grid-template-rows: max-content 1fr;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
    gap: 2rem 10px;
    border-top: 1px solid #ebe8e4;
  }
  .detail-page-footer .matched-image {
    grid-area: image;
  }
  .detail-page-footer .information {
    grid-area: information;
    border-right: 1px solid #ebe8e4;
    display: flex;
    flex-direction: column;
    padding-right: 0.5rem;
  }
  .detail-page-footer .information .name,
  .detail-page-footer .information .address {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .detail-page-footer .information .price {
    color: #e32828;
  }
  .detail-page-footer .contact {
    grid-area: contact;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
  }
  .contact-tel-message {
    width: 100%;
    text-align: center;
  }
  .contact-tel-message br {
    display: none;
  }

  .detail-page-footer .contact .inquiry-button,
  .detail-page-footer .contact .tel-button {
    max-width: 250px;
    margin: 0;
  }
  .detail-page-footer .contact .inquiry-button {
    width: 100%;
    background: #e32828;
    height: 50px;
  }
  .contact-tel-button {
    max-width: 250px;
    width: 100%;
  }
  .detail-page-footer .contact .tel-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    border-radius: 9999px;
    padding: 0.5em 1em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border: 2px solid #e32828;
    color: #e32828;
    height: 50px;
  }
  .detail-page-header .contact .contact-tel {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
  }
  .detail-page-footer .notes {
    grid-area: notes;
  }
  @media (max-width: 768px) {
    .detail-page-footer {
      display: grid;
      grid-template-columns: 120px minmax(0, 1fr);
      grid-template-rows: auto auto;
      grid-template-areas:
        "image information"
        "contact contact"
        "notes notes";
    }
    .detail-page-footer .information {
      border-right: none;
      padding-right: 0;
    }
  }

  /*******************************************************************************
    外部リンク
  *******************************************************************************/
  .property-related-link-list {
    margin-block: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .property-related-link-list-item-link {
    padding: 0.75rem 1rem;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    font-size: 0.875rem;
    display: flex;
    gap: 0.5rem;
    color: var(--link-color);
  }
  .property-related-link-list-item-link:hover {
    color: var(--main-color);
    text-decoration: none;
  }
  .property-related-link-list-item-link-icon svg {
    width: 1rem;
    height: 1rem;
    color: #000;
    vertical-align: sub;
  }
}
.splide__track--nav > .splide__list > .splide__slide {
  border: 0.2rem solid transparent;
  position: relative;
  border-radius: 0.5rem;
}
.splide__track--nav > .splide__list > .splide__slide.is-active {
  border: 0.2rem solid transparent;
  box-shadow: inset 0 0 0 0.2rem var(--main-color);
}
.splide__track--nav > .splide__list > .splide__slide.is-active::before {
  content: "";
  width: 100%;
  height: 100%;
  border: 0.2rem solid var(--main-color);
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 0.25rem;
  box-sizing: border-box;
}
.splide__slide {
  aspect-ratio: 1 / 1;
}
/* .splide__slide img {
  object-fit: cover;
} */
.property-image-main .splide .splide__slide img {
  object-fit: contain;
}
.property-images-thumbnails .splide__slide img {
  object-fit: cover;
}
