/* page-top.css */

/*-------------------------------------------
FV
-------------------------------------------*/
/* Up to 1200px the FV scales with the viewport (1200 x 801 design). Above 1200px it keeps
   the 1200px size: the photo stays pinned to the right and its white-faded left edge
   blends into the page, while the copy and illustration follow the content column. */
.p-top-fv {
    position: relative;
    height: min(66.75vw, 80.1rem);
    overflow: hidden;
    /* cqw = width of the FV itself (100vw would include the scrollbar). */
    container-type: inline-size;
}

.p-top-fv__visual {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
}

.p-top-fv__visual picture {
    display: block;
    height: 100%;
}

.p-top-fv__image {
    display: block;
    width: auto;
    max-width: none;
    height: 100%;
}

.p-top-fv__content {
    position: absolute;
    inset: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: flex-start;
    pointer-events: none;
}

.p-top-fv__illust {
    position: relative;
    width: min(49.25cqw, 59.1rem);
    margin-top: min(2.65cqw, 3.2rem);
    margin-left: calc(-1 * min((100cqw - 1000px) / 2, 10rem));
}

.p-top-fv__town {
    display: block;
    width: 100%;
    height: auto;
}

.p-top-fv__tagline {
    position: absolute;
    top: 73.1%;
    left: 5.92%;
    width: 27.9%;
    height: auto;
}

/* At 1200px and wider the illustration is fixed at 591px, so the tagline is placed at its
   original size (165 x 49) on whole pixels instead of percentages (27.9% gave 164.88px). */
@container (min-width: 1200px) {
    .p-top-fv__tagline {
        top: 17rem;
        left: 3.5rem;
        width: 16.5rem;
    }
}

@media screen and (max-width: 1000px) {
    .p-top-fv__illust {
        margin-left: calc(-1 * var(--site-content-padding));
    }
}

/* Tablet: the copy does not shrink with the viewport, so let the FV grow with its content
   and keep the illustration clear of the overlapping search box. */
@media screen and (min-width: 769px) and (max-width: 1000px) {
    .p-top-fv {
        height: auto;
        min-height: 66.75vw;
    }

    .p-top-fv__content {
        position: relative;
        padding-bottom: 6rem;
    }
}

.p-top-fv__copy {
    position: relative;
    margin-top: clamp(13rem, 13vw, 16rem);
    color: #162187;
}

.p-top-fv__copy h1 {
    margin: 0;
    font-size: clamp(3.6rem, 4.2vw, 5.2rem);
    font-weight: 400;
    line-height: 1.38;
    letter-spacing: 0.06em;
}

.p-top-fv__copy h1 img {
    display: block;
    max-width: 100%;
    height: auto;
}

.p-top-fv__copy p {
    margin: 4.4rem 0 0;
    color: #333;
    font-size: clamp(1.4rem, 1.45vw, 1.7rem);
    line-height: 1.8;
    letter-spacing: 0;
    font-size: 1.6rem;
}

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

    /* Same arrangement as PC, condensed into a taller box: the photo fills the FV,
       the copy and illustration sit on a white fade at the top left. */
    .p-top-fv {
        height: auto;
        min-height: 100vw;
    }

    .p-top-fv__content {
        position: relative;
        z-index: 1;
        padding-bottom: 7rem;
    }

    .p-top-fv__visual {
        inset: 0;
        height: auto;
    }

    /* Tablet (top-fv-photo-tablet) and SP (top-fv-photo-sp) photos are plain photos;
       the white fades are drawn here. */
    .p-top-fv__visual::after {
        position: absolute;
        inset: 0;
        background:
            linear-gradient(to bottom, rgb(255 255 255 / 0%) 72%, #fff 100%),
            linear-gradient(105deg, #fff 0%, rgb(255 255 255 / 90%) 32%, rgb(255 255 255 / 45%) 52%, rgb(255 255 255 / 0%) 72%);
        content: "";
        pointer-events: none;
    }

    .p-top-fv__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 65% 100%;
    }

    .p-top-fv__illust {
        width: min(56cqw, 42rem);
        margin-top: 1.6rem;
    }

    .p-top-fv__copy {
        margin-top: 11.5rem;
    }

    .p-top-fv__copy h1 {
        font-size: 3.2rem;
    }

    .p-top-fv__copy p {
        margin-top: 1.8rem;
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 480px) {
    .p-top-fv {
        min-height: 140vw;
    }

    /* On phones the photo starts lower so Mt. Fuji and the sofa stay clear of the copy. */
    .p-top-fv__visual {
        top: 24%;
    }

    /* White fade from the left, like the faded left edge of the PC photo, plus short fades at the top and bottom edges. */
    .p-top-fv__visual::after {
        background: linear-gradient(to right, #fff 0%, rgb(255 255 254 / 85%) 22%, rgb(254 255 255 / 40%) 48%, rgb(255 255 255 / 0%) 60%), linear-gradient(to bottom, #fff 0%, rgb(255 255 255 / 0%) 14%), linear-gradient(to bottom, rgb(255 255 255 / 0%) 78%, #fff 100%);
    }

    .p-top-fv__image {
        object-position: 62% 100%;
    }

    .p-top-fv__illust {
        width: 64cqw;
        margin-top: 1.2rem;
    }

    .p-top-fv__copy {
        margin-top: 10.5rem;
    }

    .p-top-fv__copy h1 {
        font-size: 2.2rem;
    }

    .p-top-fv__copy p {
        margin-top: 1.4rem;
        font-size: 1.15rem;
        line-height: 1.7;
    }
}

/*-------------------------------------------
New properties
-------------------------------------------*/
.p-top-new-properties {
    padding: 10rem 0 13.5rem;
}

.p-top-new-properties__header {
    margin-bottom: 5.5rem;
    text-align: center;
}

.p-top-new-properties__header h2 {
    margin: 0;
}

.p-top-new-properties__header h2 img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.p-top-new-properties__header h2 span {
    color: #162187;
    font-size: 3.2rem;
    font-weight: 700;
}

.p-top-new-properties__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6rem;
}

.p-top-new-properties__group {
    --new-property-color: #162187;
    min-width: 0;
}

.p-top-new-properties__group--sale {
    --new-property-color: #0f7dd3;
}

.p-top-new-properties__group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.p-top-new-properties__group-header h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
    color: var(--new-property-color);
    font-size: 2.2rem;
    line-height: 1.2;
}

.p-top-new-properties__group-header h3 span {
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: currentColor;
}

.p-top-new-properties__group-header a {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3.2rem;
    padding: 0.4rem 1.6rem;
    border: 1px solid currentColor;
    border-radius: 60px;
    color: var(--new-property-color);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

.p-top-new-properties__group-header a i {
    position: relative;
    width: 1.2rem;
    height: 0.8rem;
}

.p-top-new-properties__group-header a i::before,
.p-top-new-properties__group-header a i::after {
    position: absolute;
    top: 50%;
    content: "";
    border-top: 1px solid currentColor;
}

.p-top-new-properties__group-header a i::before {
    left: 0;
    width: 1.2rem;
}

.p-top-new-properties__group-header a i::after {
    right: 0;
    width: 0.65rem;
    transform: rotate(45deg);
    transform-origin: right center;
}

.p-top-new-properties__viewport {
    overflow: hidden;
}

.p-top-new-properties__track {
    display: flex;
    transition: transform 0.35s ease;
}

.p-top-new-properties__page {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 100%;
    gap: 2rem;
}

.p-top-new-property-card {
    height: 35rem;
    overflow: hidden;
    border: 1px solid #d9dfe7;
    border-radius: 1rem;
    background: #fff;
}

.p-top-new-property-card a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.p-top-new-property-card__image {
    display: grid;
    width: 100%;
    height: 16.2rem;
    place-items: center;
    overflow: hidden;
    background: #f1f1f1;
}

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

.p-top-new-property-card__image span {
    color: #777;
    font-size: 1.2rem;
    font-weight: 700;
}

.p-top-new-property-card__body {
    padding: 1.1rem 1.5rem 1.2rem;
}

.p-top-new-property-card__badge {
    display: inline-block;
    max-width: 100%;
    min-height: 1.6rem;
    padding: 0.6rem 1.2rem 0.3rem;
    overflow: hidden;
    border-radius: 5px;
    background: var(--new-property-color);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.p-top-new-property-card h4 {
    margin: 0.2rem 0 0;
    overflow: hidden;
    color: var(--new-property-color);
    font-size: 1.6rem;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.p-top-new-property-card__meta {
    min-height: 2rem;
    margin: 0.1rem 0 0;
    overflow: hidden;
    color: #555;
    font-size: 1.0rem;
    line-height: 1.6;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.p-top-new-property-card__price {
    display: flex;
    align-items: baseline;
    min-height: 4.5rem;
    margin: 0.2rem 0 0;
    padding: 1rem 0;
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
    color: #a5acb8;
    white-space: nowrap;
}

.p-top-new-property-card__price strong {
    color: var(--new-property-color);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.p-top-new-property-card__price span,
.p-top-new-property-card__price small {
    margin-left: 0.2rem;
    color: #a5acb8;
    font-size: 1.2rem;
    font-weight: 400;
}

.p-top-new-property-card__address {
    display: -webkit-box;
    gap: 0.5rem;
    min-height: 3.4rem;
    margin: 0.8rem 0 0;
    overflow: hidden;
    color: #555;
    font-size: 1.2rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.p-top-new-property-card__map-icon {
    display: inline-block;
    width: auto;
    height: auto;
    margin-right: 0.5rem;
    vertical-align: -0.15em;
}

.p-top-new-properties__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}

.p-top-new-properties__arrow {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border: 0;
    place-items: center;
    background: var(--new-property-color);
    cursor: pointer;
    border-radius: 3px;
}

.p-top-new-properties__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.p-top-new-properties__arrow i {
    width: 0.8rem;
    height: 0.8rem;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.p-top-new-properties__arrow:last-child i {
    transform: rotate(225deg);
}

.p-top-new-properties__dots {
    display: flex;
    gap: 0.8rem;
}

.p-top-new-properties__dots i {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: #d9dfe7;
}

.p-top-new-properties__dots i.is-active {
    background: var(--new-property-color);
}

.p-top-new-properties__empty {
    margin: 0;
    padding: 4rem 0;
    border-top: 1px solid #d9dfe7;
    border-bottom: 1px solid #d9dfe7;
    color: #777;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .p-top-new-properties {
        padding: 7rem 0;
    }

    .p-top-new-properties__columns {
        grid-template-columns: 1fr;
        gap: 5rem;
        max-width: 47rem;
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    .p-top-new-properties {
        padding: 5rem 0;
    }

    .p-top-new-properties__header {
        margin-bottom: 3rem;
    }

    .p-top-new-properties__header h2 span {
        font-size: 2.4rem;
    }

    .p-top-new-properties__group-header h3 {
        font-size: 1.8rem;
    }

    .p-top-new-properties__page {
        gap: 1.2rem;
    }

    .p-top-new-property-card {
        height: 32rem;
    }

    .p-top-new-property-card__image {
        height: 12.8rem;
    }

    .p-top-new-property-card__body {
        padding: 0.8rem;
    }

    .p-top-new-property-card h4 {
        font-size: 1.4rem;
    }

    .p-top-new-property-card__price strong {
        font-size: 1.8rem;
    }
}

/*-------------------------------------------
Property search
-------------------------------------------*/
.p-property-search-section--top {
    position: relative;
    z-index: 2;
    margin-top: -11rem;
    padding-bottom: 2rem;
}

.p-property-search--top {
    display: grid;
    grid-template-columns: 18.5fr 17fr 17fr 17fr 14fr;
    gap: 2.5rem;
    align-items: stretch;
    box-sizing: border-box;
    height: 10rem;
    padding: 2.8rem 4.6rem;
    border-radius: 5rem;
    background: #fff;
    box-shadow: 0 0.6rem 2rem rgba(22, 33, 135, 0.14);
}

.p-property-search--top>* {
    min-width: 0;
}

.p-property-search--top .p-property-search__transaction {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 4.4rem;
    padding: 0;
    border: 1px solid #d9dfe7;
    border-radius: 50rem;
    overflow: hidden;
}

.p-property-search--top .p-property-search__transaction::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    border-radius: 50rem;
    background: #162187;
    content: '';
    transition: transform 0.24s ease;
}

.p-property-search--top .p-property-search__transaction.is-sale::before {
    transform: translateX(100%);
}

.p-property-search--top .p-property-search__transaction-button {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 4.2rem;
    border: 0;
    border-radius: 50rem;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.p-property-search--top .p-property-search__transaction-button.is-active {
    color: #fff;
}

.p-property-search--top .p-property-search__field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.p-property-search--top .p-property-search__field-control {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 4.4rem;
    padding: 0 1rem;
    border: 1px solid #d9dfe7;
    border-radius: 0.5rem;
}

.p-property-search--top .p-property-search__field-control img {
    width: 2rem;
    height: 2rem;
    margin-right: 0.7rem;
    object-fit: contain;
}

.p-property-search--top .p-property-search__field-control::after {
    position: absolute;
    top: calc(50% - 0.3rem);
    right: 10px;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 1px solid #162187;
    border-bottom: 1px solid #162187;
    content: '';
    pointer-events: none;
    transform: rotate(45deg);
}

.p-property-search--top select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.p-property-search--top .p-property-search__select-button {
    width: 100%;
    min-width: 0;
    padding: 0 1.6rem 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #222;
    text-align: left;
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
}

.p-property-search--top .p-property-search__select-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: -1px;
    z-index: 5;
    width: calc(100% + 2px);
    max-height: 24rem;
    margin: 0;
    padding: 0.5rem 0;
    overflow-y: auto;
    border: 1px solid #d9dfe7;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 0.6rem 1.6rem rgba(22, 33, 135, 0.12);
    list-style: none;
}

.p-property-search--top .p-property-search__select-menu li {
    padding: 1rem 1.4rem;
    color: #222;
    font-size: 1.4rem;
    line-height: 1.4;
    cursor: pointer;
}

.p-property-search--top .p-property-search__select-menu li[aria-selected="true"] {
    background: #edf8fe;
    color: #162187;
}

@media (hover: hover) {
    .p-property-search--top .p-property-search__select-menu li:hover {
        background: #edf8fe;
        color: #162187;
    }
}

.p-property-search--top .p-property-search__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: 4.4rem;
    margin: 0;
    border: 0;
    border-radius: 50rem;
    background: #ddc31b;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

@media (hover: hover) {
    .p-property-search--top .p-property-search__submit:hover {
        background: #ddc31b;
    }
}

.p-property-search--top .p-property-search__submit img {
    width: 2rem;
    height: 2rem;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

/*-------------------------------------------
Property guide
-------------------------------------------*/
.p-top-property-guide {
    --property-guide-bg-image: none;
    padding: 11.5rem 0 10rem;
    background-color: #edf8fe;
    background-image: var(--property-guide-bg-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

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

.p-top-property-guide__title {
    margin: 0;
    display: flex;
    justify-content: center;
}

.p-top-property-guide__title img {
    width: auto;
    max-width: 100%;
    height: auto;
}

/* This text is shown only until the heading image is supplied. */
.p-top-property-guide__title span {
    display: inline-block;
    color: #162187;
    font-size: 3.2rem;
    line-height: 1.2;
}

.p-top-property-guide__groups {
    display: grid;
    grid-template-columns: minmax(0, 68rem) minmax(0, 30rem);
    gap: 2rem;
}

.p-top-property-guide__group {
    padding: 3.3rem 2.4rem 5rem;
    border-radius: 10px;
    background-color: #fff;
}

.p-top-property-guide__group-title {
    position: relative;
    margin: 0;
    padding-bottom: 0.9rem;
    font-size: 2.6rem;
    line-height: 1.4;
    text-align: center;
}

.p-top-property-guide__group-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 3.3rem;
    height: 0.2rem;
    content: "";
    margin-inline: auto;
}

.p-top-property-guide__group--rental .p-top-property-guide__group-title {
    color: #162187;
}

.p-top-property-guide__group--rental .p-top-property-guide__group-title::after {
    background-color: #162187;
}

.p-top-property-guide__group--sale .p-top-property-guide__group-title {
    color: #0f7dd3;
}

.p-top-property-guide__group--sale .p-top-property-guide__group-title::after {
    background-color: #0f7dd3;
}

.p-top-property-guide__category-list {
    display: grid;
    margin-top: 4.0rem;
}

.p-top-property-guide__group--rental .p-top-property-guide__category-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.p-top-property-guide__group--sale .p-top-property-guide__category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.p-top-property-guide__category {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
    color: #222;
    text-align: center;
}

.p-top-property-guide__category+.p-top-property-guide__category {
    border-left: 1px solid #dddddd;
}

.p-top-property-guide__icon {
    display: grid;
    width: 7.8rem;
    height: 7.8rem;
    place-items: center;
    border-radius: 50%;
    background-color: #edf8fe;
}

.p-top-property-guide__icon img {
    object-fit: contain;
}

.p-top-property-guide__english {
    display: block;
    margin-top: 1.4rem;
    color: #777;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.p-top-property-guide__label {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
}

/*-------------------------------------------
About
-------------------------------------------*/
.p-top-about {
    padding: 18.5rem 0;
}

.p-top-about__inner {
    display: grid;
    grid-template-columns: 45rem 63.7rem;
    align-items: start;
    gap: 4rem;
}

.p-top-about__content {
    min-width: 0;
}

/* The transform creates the intentional left overhang without removing this element from normal flow. */
.p-top-about__eyebrow {
    margin: 0;
    transform: translateX(-3rem);
}

.p-top-about__eyebrow img {
    width: auto;
    max-width: 100%;
    height: auto;
}

.p-top-about__eyebrow span {
    display: inline-block;
    color: #c9dce9;
    font-size: 3.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
}

.p-top-about__heading {
    margin: 2.2rem 0 0;
}

.p-top-about__heading img {
    width: auto;
    max-width: 100%;
    height: auto;
}

.p-top-about__heading span {
    color: #000;
    font-size: 2.8rem;
    line-height: 1.6;
}

.p-top-about__text {
    margin-top: 3.2rem;
    color: #000;
    font-size: 1.6rem;
    line-height: 1.75;
    width: 90%;
}

.p-top-about__text p {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.75;
}


.p-top-about__media {
    display: grid;
    width: 63.7rem;
    aspect-ratio: 637 / 405;
    overflow: hidden;
    place-items: center;
    transform: translateX(-5rem);
}

.p-top-about__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-top-about__media span {
    color: #7690a2;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/*-------------------------------------------
Banner
-------------------------------------------*/
.p-top-banner {
    padding: 0 0 3.5rem;
}

.p-top-banner__link,
.p-top-banner__link picture,
.p-top-banner__link img {
    display: block;
    width: 100%;
    height: auto;
}

/*-------------------------------------------
News
-------------------------------------------*/
.p-top-news {
    padding: 9rem 0 10rem;
}

.p-top-news__header {
    margin-bottom: 6rem;
    display: flex;
    justify-content: center;
}

.p-top-news__title {
    margin: 0;
}

.p-top-news__title img {
    max-width: 100%;
    height: auto;
}

/* This text is shown only until the heading image is supplied. */
.p-top-news__title span {
    display: inline-block;
    color: #162187;
    font-size: 3.2rem;
    line-height: 1.2;
}

.p-top-news__content {
    display: grid;
    grid-template-columns: minmax(0, 71rem) minmax(0, 26rem);
    justify-content: space-between;
    gap: 3rem;
}

.p-top-news__content.is-full-width {
    display: block;
}

.p-top-news__list {
    border-top: 1px dashed #dddddd;
}

.p-top-news__item {
    border-bottom: 1px dashed #dddddd;
}

.p-top-news__item a {
    display: flex;
    gap: 2.4rem;
    padding: 2.3rem 0;
    color: #222;
    font-size: 1.4rem;
    line-height: 1;
}

.p-top-news__item time {
    flex: 0 0 8.2rem;
    font-weight: 700;
}

.p-top-news__item span {
    min-width: 0;
    font-weight: 500;
}

.p-top-news__empty {
    margin: 0;
    padding: 2rem 0;
    border-bottom: 1px dashed #dddddd;
    color: #555;
    font-size: 1.4rem;
}

.p-top-news__feature {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dddddd;
    border-radius: 10px;
}

.p-top-news__feature-image {
    position: relative;
    display: grid;
    aspect-ratio: 26 / 15;
    overflow: hidden;
    place-items: center;
    background-color: #e7e9ef;
}

.p-top-news__feature-date {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background-color: #162187;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
}

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

.p-top-news__feature-image span {
    color: #687080;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.p-top-news__feature-title {
    margin: 1.4rem 1.7rem 0;
    color: #162187;
    font-size: 1.4rem;
    line-height: 1.4;
}

.p-top-news__feature-title a {
    display: -webkit-box;
    overflow: hidden;
    color: inherit;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.p-top-news__feature-text {
    display: -webkit-box;
    margin: 0.8rem 1.6rem 0;
    overflow: hidden;
    color: #444;
    font-size: 1.2rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.p-top-news__feature-link {
    margin: 1.5rem 1.6rem 1.9rem;
    font-size: 1.0rem;
    padding: 0.9rem 2.5rem 0.9rem 1.5rem;
    min-width: 9rem;
    min-height: 2.6rem;
    line-height: 1;
}

s .p-top-news__archive-link {
    margin: 5rem 0 0;
    text-align: center;
}

p.p-top-news__archive-link {
    margin-top: 2.2rem;
    display: flex;
    justify-content: center;
}

p.p-top-news__archive-link .c-arrow-button {
    min-width: 19rem;
    min-height: 4.6rem;
    font-size: 1.4rem;
}

article.p-top-news__feature .c-arrow-button::before,
article.p-top-news__feature .c-arrow-button::after {
    position: absolute;
    right: 1.0rem;
    content: "";
}

/* The 5-column search box is too narrow below 1000px, so the 2-column layout starts here. */
@media screen and (max-width: 1000px) {
    .p-property-search-section--top {
        margin-top: -3.6rem;
        padding-bottom: 6rem;
    }

    .p-property-search--top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
        gap: 1.2rem;
        padding: 1.6rem;
        border-radius: 2rem;
    }

    .p-property-search--top .p-property-search__submit {
        min-height: 4.4rem;
        margin: 0;
    }
}

@media screen and (max-width: 768px) {
    .p-top-property-guide {
        padding: 6rem 0;
    }

    .p-top-property-guide__header {
        margin-bottom: 2.8rem;
    }

    .p-top-property-guide__title span {
        font-size: 2.6rem;
    }

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

    .p-top-about {
        padding: 8rem 0;
    }

    .p-top-about__inner {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .p-top-about__eyebrow {
        transform: translateX(-2rem);
    }

    .p-top-about__media {
        width: 100%;
        transform: none;
    }

    .p-top-about__text {
        width: 100%;
    }

    .p-top-about__eyebrow {
        transform: translateX(0rem);
    }

    .p-top-about__heading img {
        max-width: 70%;
    }

    .p-top-banner {
        padding-bottom: 8rem;
    }

    .p-top-news {
        padding: 6rem 0;
    }

    .p-top-news__header {
        margin-bottom: 2.8rem;
    }

    .p-top-news__title span {
        font-size: 2.6rem;
    }

    .p-top-news__content {
        grid-template-columns: 1fr;
    }

    /* Tablet and smartphone: the picked-up article spans the width and comes before the list. */
    .p-top-news__feature {
        max-width: 100%;
        order: -1;
    }

    .p-top-news__feature-image {
        aspect-ratio: 2 / 1;
    }

    .p-top-news__item a {
        gap: 1.6rem;
    }
}

@media screen and (max-width: 480px) {
    .p-property-search-section--top {
        margin-top: -2.4rem;
        padding-bottom: 4.5rem;
    }

    .p-property-search--top {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.2rem;
        border-radius: 1.6rem;
    }

    .p-property-search--top .p-property-search__field {
        min-height: 4.4rem;
        padding: 0;
    }

    .p-property-search--top .p-property-search__submit {
        min-height: 5.0rem;
        margin: 0;
        font-size: 1.5rem;
    }

    .p-top-property-guide {
        padding: 4.5rem 0;
    }

    .p-top-property-guide__title span {
        font-size: 2.2rem;
    }

    .p-top-property-guide__group {
        padding: 2.4rem 1.4rem;
    }

    .p-top-property-guide__group-title {
        font-size: 1.6rem;
    }

    .p-top-property-guide__group--rental .p-top-property-guide__category-list,
    .p-top-property-guide__group--sale .p-top-property-guide__category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 2.2rem;
    }

    .p-top-property-guide__category {
        padding: 1.2rem 0.6rem;
    }

    .p-top-property-guide__category+.p-top-property-guide__category {
        border-left: 0;
    }

    .p-top-property-guide__category:nth-child(2n) {
        border-left: 1px solid #dddddd;
    }

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

    .p-top-property-guide__group--rental .p-top-property-guide__category:nth-child(5) {
        grid-column: 1 / -1;
    }

    .p-top-property-guide__icon {
        width: 6.4rem;
        height: 6.4rem;
    }

    .p-top-property-guide__english {
        margin-top: 1rem;
        font-size: 0.9rem;
    }

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

    .p-top-about {
        padding: 5.5rem 0;
    }

    .p-top-about__inner {
        gap: 3.2rem;
    }

    .p-top-about__eyebrow {
        transform: none;
    }

    .p-top-about__eyebrow span {
        font-size: 2.8rem;
    }

    .p-top-about__heading {
        margin-top: 2.4rem;
    }

    .p-top-about__heading span {
        font-size: 2rem;
    }

    .p-top-about__text {
        margin-top: 2.4rem;
        font-size: 1.4rem;
        line-height: 2;
    }

    .p-top-about__text p+p {
        margin-top: 2rem;
    }

    .p-top-about__heading img {
        max-width: 95%;
    }

    .p-top-banner {
        padding-bottom: 5.5rem;
    }

    .p-top-news {
        padding: 4.5rem 0;
    }

    .p-top-news__title span {
        font-size: 2.2rem;
    }

    .p-top-news__item a {
        gap: 1.2rem;
        padding: 1.8rem 0;
        font-size: 1.3rem;
    }

    .p-top-news__item time {
        flex-basis: 7.4rem;
    }

    .p-top-about__eyebrow img {
        max-width: 35%;
    }

    .p-top-news__feature {
        max-width: 100%;
    }
}