.p-front-search {
    padding-block: var(--section-space);
    background-color: var(--color-surface-light);
}

.p-front-search__inner {
    width: min(100.0%, var(--content-width));
    margin-inline: auto;
    padding-inline: var(--inline-gutter);
}

.p-front-search__header {
    text-align: center;
    margin-bottom: 48.0px;
}

.p-front-search__title {
    font-size: 28.0px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
    padding-bottom: 16.0px;
}

.p-front-search__title::after {
    content: "";
    position: absolute;
    bottom: 0.0;
    left: 50.0%;
    transform: translateX(-50.0%);
    width: 60.0px;
    height: 4.0px;
    background-color: var(--color-main);
    border-radius: 2.0px;
}

.p-front-search__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20.0px;
}

.p-front-search__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20.0px;
    padding: 40.0px 20.0px;
    background-color: var(--color-base);
    border-radius: 12.0px;
    text-decoration: none;
    color: var(--color-text-main);
    box-shadow: 0.0 4.0px 12.0px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (any-hover: hover) {
    .p-front-search__item:hover {
        transform: translateY(-4.0px);
        box-shadow: 0.0 12.0px 24.0px rgba(0, 0, 0, 0.10);
        opacity: 1.0;
    }
}

.p-front-search__icon {
    position: relative;
    width: 64.0px;
    height: 64.0px;
    border-radius: 50.0%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 新築：オレンジ・家の形 */
.p-front-search__icon--new {
    background-color: #ff9348;
}

.p-front-search__icon--new::before {
    content: "";
    width: 24.0px;
    height: 20.0px;
    background-color: #ffffff;
    clip-path: polygon(50.0% 0.0%, 100.0% 40.0%, 100.0% 100.0%, 0.0% 100.0%, 0.0% 40.0%);
}

/* 中古：ブルー・家の形（少し濃いめ） */
.p-front-search__icon--used {
    background-color: #4a90e2;
}

.p-front-search__icon--used::before {
    content: "";
    width: 24.0px;
    height: 20.0px;
    background-color: #ffffff;
    clip-path: polygon(50.0% 0.0%, 100.0% 40.0%, 100.0% 100.0%, 0.0% 100.0%, 0.0% 40.0%);
}

/* マンション：グリーン・ビルの形 */
.p-front-search__icon--mansion {
    background-color: #50b774;
}

.p-front-search__icon--mansion::before {
    content: "";
    width: 20.0px;
    height: 28.0px;
    background-color: #ffffff;
    border-radius: 2.0px;
}

/* 土地：イエロー・フラットな形 */
.p-front-search__icon--land {
    background-color: #f5a623;
}

.p-front-search__icon--land::before {
    content: "";
    width: 30.0px;
    height: 12.0px;
    background-color: #ffffff;
    border-radius: 2.0px;
}

.p-front-search__label {
    font-size: 18.0px;
    font-weight: 700;
    line-height: 1.0;
}

@media screen and (max-width: 960.0px) {
    .p-front-search__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480.0px) {
    .p-front-search__grid {
        gap: 12.0px;
    }

    .p-front-search__item {
        padding: 30.0px 10.0px;
    }

    .p-front-search__label {
        font-size: 15.0px;
    }
}