/* page-property.css */
.p-property {
    padding: 2rem 1rem;
}

.p-property__item {
    margin-bottom: 1.5rem;
}

.p-property-search-section {
    padding: 32px 16px;
}

.p-property-search-section__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.p-property-search {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 20px;
    border: 1px solid #ddd;
    background: #fafafa;
}

.p-property-search__field label,
.p-property-search__price legend {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.p-property-search select,
.p-property-search input {
    width: 100%;
    min-height: 40px;
    padding: 8px;
    border: 1px solid #ccc;
    background: #fff;
}

.p-property-search__price {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.p-property-search__price-fields {
    display: flex;
    align-items: center;
    gap: 8px;
}

.p-property-search__submit {
    align-self: end;
    min-height: 40px;
}

.p-property-archive__sidebar {
    max-width: 360px;
    margin-bottom: 28px;
}

.p-property-archive__sidebar .p-property-search {
    grid-template-columns: 1fr;
}

.p-property-archive__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

.p-property-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.p-property-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    height: 100%;
    border: 1px solid #ddd;
    background: #fff;
}

.p-property-card__link {
    display: flex;
    flex: 1;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.p-property-card__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eee;
}

.p-property-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-property-card__no-image {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 180px;
    place-items: center;
    color: #777;
    font-weight: 700;
}

.p-property-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 9px;
    background: #ddc31b;
    color: #222;
    font-size: 12px;
    font-weight: 700;
}

.p-property-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.p-property-card__title {
    min-height: 2.8em;
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.p-property-card__meta {
    margin: auto 0 0;
}

.p-property-card__meta>div {
    display: grid;
    grid-template-columns: 5em 1fr;
    gap: 8px;
    min-height: 28px;
    border-bottom: 1px solid #eee;
}

.p-property-card__meta dt {
    font-weight: 700;
}

.p-property-card__meta dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.p-property-card__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 16px;
}

.p-property-card__favorite-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    margin-top: 0;
    border-color: rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.c-favorite-button--icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
}

.p-property-card__detail-button {
    flex: 1;
    text-align: center;
}

.p-property-archive__pagination {
    margin-top: 40px;
    text-align: center;
}

.p-property-archive__pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.p-property-archive__pagination a,
.p-property-archive__pagination span {
    display: inline-block;
    min-width: 38px;
    padding: 8px 10px;
    border: 1px solid #ddd;
}

.p-property-archive__pagination .current {
    background: #333;
    color: #fff;
}

@media screen and (max-width: 900px) {
    .p-property-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 600px) {
    .p-property-archive__grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 700px) {
    .p-property-search {
        grid-template-columns: 1fr;
    }
}

.p-property-single__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 0 64px;
}

.c-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
    font-size: 14px;
}

.p-property-single__header {
    margin-bottom: 32px;
}

.p-property-single__badge {
    display: inline-block;
    padding: 4px 10px;
    background: #ddc31b;
    color: #222;
    font-size: 13px;
    font-weight: 700;
}

.p-property-single__heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.p-property-single__title {
    margin: 8px 0;
    font-size: 2.2rem;
}

.p-property-single__address {
    margin: 0;
    color: #666;
}

.p-property-single__media-basic,
.p-property-single__details {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    gap: 32px;
    margin-bottom: 56px;
}

.p-property-single__main-image {
    aspect-ratio: 1.3 / 1;
    display: grid;
    place-items: center;
    background: #f1f1f1;
    overflow: hidden;
}

.p-property-single__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-property-single__no-image {
    display: grid;
    place-items: center;
    min-height: 220px;
    background: #eee;
    color: #777;
    font-weight: 700;
}

.p-property-single__thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-top: 10px;
}

.p-property-single__thumbnail {
    flex: 0 0 84px;
    aspect-ratio: 1;
    padding: 0;
    border: 2px solid transparent;
    background: #eee;
    cursor: pointer;
}

.p-property-single__thumbnail.is-active {
    border-color: #ddc31b;
}

.p-property-single__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.p-property-single__basic,
.p-property-single__details-main,
.p-property-single__document {
    padding: 24px;
    border: 1px solid #ddd;
    background: #fff;
}

.p-property-single__definition-list,
.p-property-single__extra-list {
    margin: 0 0 24px;
}

.p-property-single__definition-list>div,
.p-property-single__extra-list>div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.p-property-single__definition-list dt,
.p-property-single__extra-list dt {
    font-weight: 700;
}

.p-property-single__definition-list dd,
.p-property-single__extra-list dd {
    margin: 0;
    text-align: right;
}

.p-property-single__detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.p-property-single__detail-grid>div {
    display: grid;
    grid-template-columns: minmax(100px, .8fr) 1.2fr;
    gap: 12px;
    min-width: 0;
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
}

.p-property-single__detail-grid dt {
    font-weight: 700;
}

.p-property-single__detail-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.p-property-single__features {
    margin-top: 32px;
}

.p-property-single__features h4 {
    margin-bottom: 4px;
}

.p-property-single__features p {
    margin-top: 0;
}

.p-property-single__document img {
    display: block;
    /* width: 100%; */
    /* max-height: 360px; */
    /* object-fit: contain; */
    /* background: #f3f3f3; */
}

.p-property-single__document-preview {
    display: grid;
    gap: 12px;
}

.p-property-single__cta {
    min-height: 160px;
    margin: 56px 0;
}

.p-property-single__related {
    margin-top: 56px;
}

.p-property-single__related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.c-favorite-button {
    padding: 10px 14px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

.c-favorite-button.is-favorite {
    border-color: #ddc31b;
    color: #ddc31b;
}

.c-favorite-button__icon {
    margin-right: 6px;
    font-size: 1.4em;
    vertical-align: middle;
}

.c-modal[aria-hidden="true"] {
    display: none;
}

.c-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, .75);
}

.c-modal__content {
    position: relative;
    max-width: min(1000px, 100%);
    max-height: 90vh;
    padding: 24px;
    background: #fff;
}

.c-modal__content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.c-modal__content iframe {
    width: min(900px, 80vw);
    height: 75vh;
    border: 0;
}

/* A white round button with a black border on the box's top-right corner, so it never covers the picture. */
.c-modal__close {
    position: absolute;
    z-index: 1;
    top: -1.6rem;
    right: -1.6rem;
    display: grid;
    width: 4rem;
    height: 4rem;
    padding: 0 0 0.3rem;
    place-items: center;
    border: 2px solid #000;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0.2rem 0.8rem rgb(0 0 0 / 25%);
    color: #000;
    font-size: 2.6rem;
    line-height: 1;
    cursor: pointer;
}

@media screen and (max-width: 900px) {
    .p-property-single__related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {

    .p-property-single__heading-row,
    .p-property-single__media-basic,
    .p-property-single__details {
        display: block;
    }

    .p-property-single__title {
        font-size: 1.8rem;
    }

    .c-favorite-button {
        margin-top: 16px;
    }

    .p-property-single__basic,
    .p-property-single__document {
        margin-top: 24px;
    }

    .p-property-single__detail-grid {
        display: block;
    }

    .p-property-single__detail-grid>div {
        grid-template-columns: 1fr 1fr;
    }

    .p-property-single__related-grid {
        grid-template-columns: 1fr;
    }
}

/* Property detail */
.p-property-single__inner {
    max-width: 100rem;
    padding-top: 2.4rem;
    padding-bottom: 0;
}

@media screen and (max-width: 1000px) {
    .p-property-single__inner {
        padding-left: var(--site-content-padding);
        padding-right: var(--site-content-padding);
    }
}

.p-property-single .c-breadcrumb {
    margin-bottom: 8rem;
    color: #78828e;
    font-size: 1.1rem;
}

.p-property-single__header {
    margin-bottom: 2.5rem;
}

.p-property-single__badge {
    padding: 0.4rem 1rem 0.3rem;
    background: #0c166f;
    color: #fff;
    font-size: 1.4rem;
    border-radius: 5px;
}

.p-property-single__heading-row {
    align-items: flex-end;
}

.p-property-single__title {
    margin: 0.9rem 0 0.5rem;
    color: #111;
    font-size: clamp(2.6rem, 3.2vw, 3.6rem);
}

.p-property-single__address {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #000000;
    font-size: 1.8rem;
}

.p-property-single__address-icon {
    display: block;
    flex: 0 0 auto;
    height: auto;
}

.p-property-single .c-favorite-button {
    margin: 0;
    padding: 1rem 1.2rem;
    border: 1px solid #162187;
    border-radius: 1rem;
    background: #fff;
    color: #162187;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 7px;
    /* Keeps its width when the property name is long, so the label stays on one line. */
    flex: 0 0 auto;
    white-space: nowrap;
}

.p-property-single .c-favorite-button.is-favorite {
    border-color: #f0ce11;
    color: #f0ce11;
    /* "お気に入り登録済み" is one character longer than "お気に入りに追加": slightly tighter type and side space
       so it fits in the same button width (main.js keeps the width). */
    padding-right: 1rem;
    padding-left: 1rem;
}

.p-property-single .c-favorite-button.is-favorite .c-favorite-button__label {
    font-feature-settings: "palt";
    letter-spacing: -0.05em;
}

.p-property-single .c-favorite-button__icon {
    display: inline-grid;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    margin-right: 0.6rem;
    place-items: center;
}

.p-property-single .c-favorite-button__image {
    display: block;
    /* Shown at the image's own size (18 x 16); the icon box centers it.
       If the box is smaller (smartphone), the icon shrinks to fit instead of sticking out. */
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.p-property-single__media-basic {
    grid-template-columns: minmax(0, 1.65fr) minmax(26rem, 0.8fr);
    gap: 3.2rem;
    margin-bottom: 10.5rem;
}

@media screen and (min-width: 769px) {
    .p-property-single__media-basic {
        align-items: stretch;
    }

    .p-property-single__gallery--single {
        display: flex;
    }

    .p-property-single__gallery--single .p-property-single__main-image {
        flex: 1;
        aspect-ratio: auto;
    }
}

.p-property-single__main-image {
    border-radius: 1rem;
}

.p-property-single__thumbnails {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    overflow: visible;
    padding-top: 1rem;
}

.p-property-single__thumbnail {
    width: 100%;
    aspect-ratio: 100 / 77;
    border-width: 1px;
    border-radius: 1rem;
}

.p-property-single__thumbnail.is-active {
    border-color: #d9d9d9;
}

.p-property-single__basic {
    padding: 0.8rem 2.2rem 2.4rem;
    border: 0;
    border-radius: 0.6rem;
    box-shadow: 0 0.3rem 1.2rem rgb(17 38 86 / 12%);
    /* The box is as tall as its own content instead of stretching to the photo's height. */
    align-self: start;
}

.p-property-single__basic>h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.p-property-single__definition-list {
    margin: 0 0 2.4rem;
}

.p-property-single__definition-list>div {
    align-items: baseline;
    padding: 1.6rem 0;
    font-size: 1.6rem;
}

.p-property-single__definition-list dt {
    flex: 0 0 auto;
    white-space: nowrap;
}

.p-property-single__definition-list dd {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Values that wrap start at the same position and are left-aligned; values that fit on one line stay on the right. */
.p-property-single__definition-list dd:not(.p-property-single__price) {
    max-width: calc(100% - 12.8rem);
    text-align: left;
}

.p-property-single__definition-list .p-property-single__price {
    color: #162187;
    line-height: 1;
}

.p-property-single__price-value {
    font-size: 3.6rem;
    font-weight: 700;
}

.p-property-single__price-unit {
    margin-left: 0.2rem;
    color: currentColor;
    font-size: 1.8rem;
    font-weight: 400;
}

.p-property-single__price-period {
    margin-left: 0.5rem;
    color: #000;
    font-size: 1.6rem;
    font-weight: 400;
}

.p-property-single__basic>.c-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 7rem;
    border-radius: 1rem;
    background: #ddc31b;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
}

.p-property-single__basic>.c-button::before {
    content: none;
}

.p-property-single__contact-icon {
    display: block;
    flex: 0 0 auto;
    /* width: 1.7rem; */
    /* height: auto; */
    margin-right: 0.9rem;
}

.p-property-single__details {
    grid-template-columns: minmax(0, 1.75fr) minmax(24rem, 0.9fr);
    gap: 4rem;
    margin-bottom: 0;
}

.p-property-single__document {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.p-property-single__content {
    margin-bottom: 7rem;
}

.p-property-single__content-title {
    margin: 0 0 2.8rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #000;
    color: #000;
    font-size: 2.8rem;
}

.p-property-single__details-main,
.p-property-single__document {
    padding: 0;
    border: 0;
}

.p-property-single__details-main:only-child {
    grid-column: 1 / -1;
}

.p-property-single__details-main:only-child .p-property-single__detail-grid,
.p-property-single__details-main:only-child .p-property-single__features {
    max-width: none;
}

.p-property-single__details-main>h3,
.p-property-single__document>h3 {
    margin: 0 0 0.8rem;
    color: #000000;
    font-size: 1.6rem;
    line-height: 1.5;
}

.p-property-single__detail-grid {
    column-gap: 2.4rem;
    row-gap: 0;
    border-top: 0;
    max-width: 61.8rem;
}

.p-property-single__detail-grid>div {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 0;
    padding: 0;
    border: 1px solid #ddd;
    border-top: 0;
    font-size: 1.2rem;
    /* Same line spacing as "設備・条件等" below. */
    line-height: 1.5;
}

.p-property-single__detail-grid>div:first-child {
    border-top: 1px solid #ddd;
}

@media screen and (min-width: 481px) {
    .p-property-single__detail-grid>div:nth-child(2) {
        border-top: 1px solid #ddd;
    }
}

.p-property-single__detail-grid dt {
    display: flex;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    background: #f4f4f4;
    white-space: nowrap;
}

.p-property-single__detail-grid dd {
    display: flex;
    align-items: flex-start;
    padding: 0.9rem 1rem;
}

.p-property-single__features {
    margin-top: 3.4rem;
    max-width: 61.8rem;
}

.p-property-single__features h3 {
    margin: 0 0 1.2rem;
    font-size: 1.6rem;
}

.p-property-single__features>div {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    border: 1px solid #ddd;
    border-bottom: 0;
}

.p-property-single__features>div:last-child {
    border-bottom: 1px solid #ddd;
}

.p-property-single__features h4,
.p-property-single__features p {
    margin: 0;
    padding: 0.9rem 1rem;
    font-size: 1.2rem;
    line-height: 1.5;
}

.p-property-single__features h4 {
    background: #f4f4f4;
}

.p-property-single__document-preview {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    flex: 1;
    min-height: 0;
    padding: 1.5rem;
    background: #f5f5f5;
}

.p-property-single__document-media {
    display: grid;
    min-height: 0;
    place-items: center;
}

.p-property-single__document-media>img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.p-property-single__document-media--pdf {
    overflow: hidden;
    background: #fff;
}

.p-property-single__document-media--pdf canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.p-property-single__pdf-fallback {
    margin: 0;
    color: #555;
    font-size: 1.3rem;
    text-align: center;
}

.p-property-single__pdf-fallback a {
    color: #162187;
    text-decoration: underline;
}

.c-modal__content--pdf {
    display: flex;
    width: min(100rem, calc(100vw - 4.8rem));
    height: min(90vh, 100rem);
    max-width: none;
    max-height: none;
    padding: 3.2rem 2.4rem 2.4rem;
}

.p-property-single__pdf-pages {
    display: grid;
    flex: 1;
    gap: 2.4rem;
    min-height: 0;
    overflow-y: auto;
    place-items: center;
    scrollbar-width: none;
}

.p-property-single__pdf-pages::-webkit-scrollbar {
    display: none;
}

.p-property-single__pdf-page {
    display: grid;
    width: 100%;
    place-items: center;
}

.p-property-single__pdf-page canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.p-property-single__document .c-button--secondary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75%;
    margin-top: 1.2rem;
    border: 1px solid #162187;
    background: #fff;
    color: #162187;
    margin-inline: auto;
    padding: 7px 0px;
    font-size: 1.2rem;
}

.p-property-single__document-button-icon {
    display: block;
    flex: 0 0 auto;
    /* Shown at the image's own size (12 x 11). */
    width: auto;
    height: auto;
    margin-right: 0.7rem;
}

.p-property-single__inquiry {
    display: grid;
    grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
    align-items: center;
    margin: 13rem 0;
    padding: 4.6rem 6.0rem 4.6rem 4.5rem;
    border: 1px solid #ecdfaa;
    border-radius: 1rem;
    background: #fffcf2;
}

.p-property-single__inquiry h2 {
    position: relative;
    margin: 0 0 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid #ddc31b;
    font-size: 3.1rem;
}

.p-property-single__inquiry h2::after {
    position: absolute;
    right: 0;
    bottom: -0.5rem;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: #ddc31b;
    content: "";
}

.p-property-single__inquiry-copy {
    padding-right: 3rem;
}

.p-property-single__inquiry p {
    margin: 0;
    font-size: 1.4rem;
    line-height: 2;
}

.p-property-single__inquiry ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 3.6rem 0 0;
    padding: 0;
    color: #000000;
    font-size: 1.6rem;
}

.p-property-single__inquiry li {
    display: flex;
    align-items: center;
    padding: 0 1.8rem;
    white-space: nowrap;
}

.p-property-single__inquiry li:first-child {
    padding-left: 0;
}

.p-property-single__inquiry li+li {
    border-left: 1px solid #d9d9d9;
}

.p-property-single__inquiry li img {
    display: block;
    /* width: 1.2rem; */
    /* height: auto; */
    margin-right: 0.6rem;
}

.p-property-single__inquiry-contact-area {
    display: flex;
    min-width: 0;
    padding-left: 5rem;
    border-left: 1px solid #d9d9d9;
}

.p-property-single__inquiry-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 1 26rem;
    width: min(100%, 26rem);
    /* margin: auto; */
    min-height: 21rem;
    border-radius: 0.5rem;
    background: #ddc31b;
    color: #fff;
    font-size: 3.4rem;
    font-weight: 700;
}

.p-property-single__inquiry-contact>img {
    display: block;
    /* width: 4.8rem; */
    /* height: auto; */
    margin-bottom: 1rem;
}

.p-property-single__inquiry-contact>span {
    display: grid;
    justify-items: center;
    line-height: 1.2;
}

.p-property-single__inquiry-contact small {
    margin-bottom: 0.3rem;
    font-size: 1.4rem;
    font-weight: 400;
}

.p-property-single__discovery {
    margin: 10rem calc(50% - 50vw) 0;
    padding: 7rem 2rem 10rem;
    background: #edf8fe;
}

.p-property-single__discovery-inner {
    box-sizing: border-box;
    max-width: 100rem;
    margin: 0 auto;
    padding: 4.5rem 5rem 7rem;
    background: #fff;
    border-radius: 10px;
}

.p-property-single__related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.p-property-single__related-header h2,
.p-property-single__other-types h2 {
    margin: 0;
    color: #111;
    font-size: 2.8rem;
    line-height: 1.3;
}

.p-property-single__related-header>a,
.p-property-single__other-types>header>a {
    display: inline-flex;
    align-items: center;
    color: #162187;
    font-size: 1.4rem;
    font-weight: 700;
}

.p-property-single__related-header i,
.p-property-single__other-types>header i {
    order: -1;
    margin-right: 0.9rem;
    margin-left: 0;
    transform: rotate(-135deg);
}

.p-property-single__related-header>a,
.p-property-single__other-types>header>a {
    color: #000;
    padding-top: 12px;
}

.p-property-single__related-header i,
.p-property-single__other-types>header i {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    border: solid #0c166f;
    border-width: 0 2px 2px 0;
    transform: rotate(135deg);
}

.p-property-single__other-types>div a i {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    margin-left: 0.7rem;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
}

.p-property-single__related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
}

.p-property-single__related-grid .p-property-card {
    overflow: hidden;
    border-color: #e5e5e5;
    border-radius: 1rem;
    box-shadow: 0 0.2rem 0.5rem rgb(0 0 0 / 7%);
}

.p-property-single__related-grid .p-property-card__image-wrap {
    aspect-ratio: 14 / 9;
}

.p-property-single__related-grid .p-property-card__badge {
    top: 1.4rem;
    left: 1.4rem;
    padding: 0.4rem 1.1rem;
    background: #162187;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.2;
    border-radius: 0.5rem;
}

.p-property-single__related-grid .p-property-card__favorite-button {
    top: 1rem;
    right: 1rem;
    width: 3.5rem;
    height: 3.5rem;
    min-height: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
}

.p-property-single__related-grid .p-property-card__body {
    padding: 1.4rem 1.6rem 0.8rem;
}

.p-property-single__related-grid .p-property-card__title {
    min-height: 0;
    margin: 0;
    overflow: hidden;
    color: #162187;
    font-size: 1.6rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p-property-single__related-grid .p-property-card__summary {
    min-height: 0;
    margin: 0.2rem 0 1.1rem;
    color: #5e5e5e;
    font-size: 1.1rem;
}

.p-property-single__related-grid .p-property-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin: 0;
    padding: 1.1rem 0;
    border-top: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
    color: #162187;
}

.p-property-single__related-grid .p-property-card__price strong {
    font-size: 2.4rem;
    line-height: 1;
}

.p-property-single__related-grid .p-property-card__price span {
    font-size: 1.2rem;
    color: #162187;
    font-weight: 700;
}

.p-property-single__related-grid .p-property-card__price small {
    color: #79818d;
    font-size: 1.1rem;
}

.p-property-single__related-grid .p-property-card__address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    min-height: 3.2rem;
    margin: 1.1rem 0 0;
    color: #5e5e5e;
    font-size: 1.1rem;
    line-height: 1.2;
}

.p-property-single__related-grid .p-property-card__location-icon {
    flex: 0 0 auto;
    /* Shown at the image's own size (8 x 12). */
    width: auto;
    height: auto;
}

.p-property-single__related-grid .p-property-card__footer {
    padding: 0 1.6rem 1.8rem;
}

.p-property-single__related-grid .p-property-card__detail-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    border-radius: 999px;
    background: #eaf3fa;
    color: #000000;
    font-size: 1.2rem;
}

.p-property-single__related-grid .p-property-card__favorite-button {
    display: none;
}

.p-property-single__related-grid .p-property-card__detail-button i {
    position: relative;
    width: 1.2rem;
    height: 0.8rem;
    margin-left: 0.7rem;
}

.p-property-single__related-grid .p-property-card__detail-button i::before,
.p-property-single__related-grid .p-property-card__detail-button i::after {
    position: absolute;
    top: 50%;
    border-top: 1px solid currentColor;
    content: "";
}

.p-property-single__related-grid .p-property-card__detail-button i::before {
    left: 0;
    width: 1.2rem;
}

.p-property-single__related-grid .p-property-card__detail-button i::after {
    right: 0;
    width: 0.6rem;
    transform: rotate(45deg);
    transform-origin: right center;
}

.p-property-single__related-empty {
    margin: 0;
    color: #687587;
}

.p-property-single__other-types {
    margin-top: 7rem;
}

/* No space above when there are no related properties and this block comes first. */
.p-property-single__other-types:first-child {
    margin-top: 0;
}

.p-property-single__other-types>header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.3rem;
}

.p-property-single__other-types>div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.p-property-single__other-types>div a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 12.5rem;
    border: 1px solid #e0e5eb;
    border-radius: 1rem;
    color: #000;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 0.2rem 0.5rem rgb(0 0 0 / 6%);
}

.p-property-single__other-types a img {
    margin-bottom: 1rem;
    object-fit: contain;
}

.p-property-single__other-types a span {
    display: inline-flex;
    align-items: center;
}

.p-property-single__other-types>div a i {
    margin-left: 1rem;
    border-width: 2px;
    border-color: #0c166f;
}

@media screen and (max-width: 768px) {
    .p-property-single .c-breadcrumb {
        margin-bottom: 12rem;
    }

    .p-property-single__media-basic,
    .p-property-single__details {
        grid-template-columns: 1fr;
        margin-bottom: 5rem;
    }

    .p-property-single__content {
        margin-bottom: 5rem;
    }

    .p-property-single__content .p-property-single__details {
        margin-bottom: 0;
    }

    .p-property-single__basic,
    .p-property-single__document {
        margin-top: 0;
    }

    .p-property-single__inquiry {
        grid-template-columns: 1fr;
        margin: 6rem 0;
        padding: 3rem;
    }

    .p-property-single__inquiry-contact-area {
        margin-top: 3rem;
        padding-top: 3rem;
        padding-left: 0;
        border-top: 1px solid #d9d9d9;
        border-left: 0;
    }

    .p-property-single__inquiry-contact {
        min-height: 7rem;
    }

    .p-property-single__discovery {
        margin-top: 7rem;
        padding-top: 5rem;
        padding-bottom: 12rem;
    }

    .p-property-single__discovery-inner {
        padding: 3.5rem;
    }

    .p-property-single__related-header h2,
    .p-property-single__other-types h2 {
        font-size: 2.6rem;
    }

    .p-property-single__other-types>div {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media screen and (max-width: 480px) {
    .p-property-single__heading-row {
        display: block;
    }

    .p-property-single .c-favorite-button {
        margin-top: 1.6rem;
    }

    .p-property-single__title {
        font-size: 2.4rem;
        font-feature-settings: "palt";
    }

    .p-property-single__price-value {
        font-size: 3rem;
    }

    .p-property-single__detail-grid {
        display: block;
    }

    .p-property-single__thumbnails {
        gap: 0.6rem;
    }

    .p-property-single__detail-grid>div,
    .p-property-single__features>div {
        grid-template-columns: 10rem minmax(0, 1fr);
    }

    .p-property-single__inquiry {
        padding: 2.0rem;
    }

    .p-property-single__inquiry ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }

    .p-property-single__inquiry li {
        padding: 0.8rem 1rem;
    }

    .p-property-single__inquiry li:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .p-property-single__inquiry li:nth-child(n+3) {
        border-top: 1px solid #d9d9d9;
    }

    .p-property-single__discovery-inner {
        padding: 2rem;
    }

    .p-property-single__related-header,
    .p-property-single__other-types>header {
        align-items: flex-start;
        gap: 1.2rem;
    }

    .p-property-single__related-header h2,
    .p-property-single__other-types h2 {
        font-size: 2.2rem;
    }

    .p-property-single__related-header>a,
    .p-property-single__other-types>header>a {
        padding-top: 0.4rem;
        font-size: 1.1rem;
        white-space: nowrap;
    }

    .p-property-single__related-grid,
    .p-property-single__other-types>div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/*-------------------------------------------
Tablet / SP adjustments
-------------------------------------------*/
@media screen and (min-width: 769px) and (max-width: 1000px) {
    .p-property-single__basic>.c-button {
        min-height: 5.6rem;
        font-size: 1.8rem;
    }

    .p-property-single__contact-icon {
        width: 2.6rem;
        height: auto;
    }
}

@media screen and (min-width: 769px) and (max-width: 1000px) {
    .p-property-single__inquiry {
        grid-template-columns: 1fr;
        margin: 6rem 0;
        padding: 3rem;
    }

    .p-property-single__inquiry-contact-area {
        margin-top: 3rem;
        padding-top: 3rem;
        padding-left: 0;
        border-top: 1px solid #d9d9d9;
        border-left: 0;
    }
}

@media screen and (max-width: 1000px) {
    .p-property-single__inquiry-contact-area {
        justify-content: center;
    }

    .p-property-single__inquiry-contact {
        flex: 1 1 auto;
        width: 100%;
        min-height: 0;
        padding: 2.4rem 2rem;
    }
}

@media screen and (max-width: 768px) {

    .p-property-single__detail-grid,
    .p-property-single__features {
        max-width: none;
    }
}

@media screen and (max-width: 767px) {
    .p-property-single__basic {
        margin-top: 3rem;
    }

    .p-property-single__document {
        margin-top: 4rem;
    }
}

@media screen and (min-width: 481px) and (max-width: 700px) {
    .p-property-single__inquiry ul {
        display: grid;
        grid-template-columns: repeat(2, max-content);
        gap: 0;
    }

    .p-property-single__inquiry li {
        padding: 0.8rem 1.8rem;
    }

    .p-property-single__inquiry li:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }
}

@media screen and (max-width: 620px) {
    .p-property-single__related-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 600px) {
    .p-property-single__other-types>div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 480px) {
    .p-property-single .c-breadcrumb {
        margin-bottom: 10rem;
    }

    .p-property-single__discovery {
        padding-bottom: 10rem;
    }

    .p-property-single__thumbnails {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .p-property-single__thumbnail {
        min-width: 0;
        min-height: 0;
        overflow: hidden;
    }

    .p-property-single__inquiry ul {
        justify-content: center;
        width: auto;
        margin-right: 0rem;
        font-size: 1.5rem;
    }

    .p-property-single__inquiry li {
        padding: 0.8rem 1.2rem;
    }

    .p-property-single__inquiry li+li {
        border-left: 0;
    }

    .p-property-single__inquiry li:nth-child(n+3) {
        border-top: 0;
    }

    /* The check icon keeps its own size (23 x 23) on smartphones too. */
    .p-property-single__inquiry li img {
        margin-right: 0.5rem;
    }

    .p-property-single__inquiry h2 {
        font-size: 2.2rem;
    }

    .p-property-single__inquiry-copy {
        padding-right: 0px;
    }

    .p-property-single__inquiry ul {
        margin: 1.6rem 0 0;
    }

    .p-property-single__inquiry-contact {
        padding: 2.0rem 2rem;
    }

    .p-property-single__address {
        font-size: 1.3rem;
    }

    .p-property-single__detail-grid>div,
    .p-property-single__features h4,
    .p-property-single__features p {
        font-size: 1.2rem;
    }

    .p-property-single__basic {
        padding: 0.8rem 2rem 2.4rem;
    }

}

/*-------------------------------------------
SP image slider
-------------------------------------------*/
.p-property-single__slider {
    display: none;
}

@media screen and (max-width: 480px) {

    .p-property-single__gallery--slider .p-property-single__main-image,
    .p-property-single__gallery--slider .p-property-single__thumbnails {
        display: none;
    }

    .p-property-single__slider {
        position: relative;
        display: block;
    }

    .p-property-single__slider-track {
        display: flex;
        overflow-x: auto;
        border-radius: 1rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .p-property-single__slider-track::-webkit-scrollbar {
        display: none;
    }

    .p-property-single__slide {
        flex: 0 0 100%;
        aspect-ratio: 1.3 / 1;
        background: #f1f1f1;
        scroll-snap-align: start;
    }

    .p-property-single__slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .p-property-single__slider-arrow {
        position: absolute;
        top: 50%;
        display: grid;
        width: 3.2rem;
        height: 3.2rem;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgb(255 255 255 / 85%);
        box-shadow: 0 0.1rem 0.4rem rgb(0 0 0 / 20%);
        place-items: center;
        transform: translateY(-50%);
        cursor: pointer;
    }

    .p-property-single__slider-arrow[hidden] {
        display: none;
    }

    .p-property-single__slider-arrow::before {
        width: 0.8rem;
        height: 0.8rem;
        border-top: 2px solid #0c166f;
        border-right: 2px solid #0c166f;
        content: "";
    }

    .p-property-single__slider-arrow--prev {
        left: 0.8rem;
    }

    .p-property-single__slider-arrow--prev::before {
        margin-left: 0.3rem;
        transform: rotate(-135deg);
    }

    .p-property-single__slider-arrow--next {
        right: 0.8rem;
    }

    .p-property-single__slider-arrow--next::before {
        margin-right: 0.3rem;
        transform: rotate(45deg);
    }

    .p-property-single__slider-count {
        position: absolute;
        right: 1rem;
        bottom: 1rem;
        margin: 0;
        padding: 0.3rem 1rem;
        border-radius: 999px;
        background: rgb(0 0 0 / 55%);
        color: #fff;
        font-size: 1.2rem;
        line-height: 1.5;
    }

    .p-property-single__badge {
        font-size: 1.2rem;
    }

    .p-property-single__definition-list>div {
        font-size: 1.5rem;
    }
}