/* TOP-RECOMMEND
-----------------------------------------*/
.top-recommend {
    padding-inline: 0;
}

.top-recommend__slider {
    padding: 58px 0;
    background: var(--gradient);
    margin-inline: calc(50% - 50vw);
}

.top-recommend h2 {
    margin-bottom: 20px;
}

.splide__track {
    padding-top: 4px;
}

.splide__arrow:hover {
    background: #fff;
}

.splide__arrow svg {
    fill: #333;
}

.splide__slide {
    height: auto;
}

.top-card {
    container-type: inline-size;
    font-weight: var(--wght-bold);
    min-width: 280px;
    max-width: 400px;
    margin-inline: auto;
    padding-bottom: clamp(70px,26cqi,100px);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background: #fff;
    border: 1px solid var(--color-base);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.top-card:hover {
    transform: translateY(-4px);
}

.top-card__content {
    flex: 1;
}

.top-card__content>* {
    padding: 0 16px;
    margin-inline: auto;
}

.top-card__head {
    display: flex;
    justify-content: flex-start;
    gap: 0.5em;
    align-items: center;
    background-color: var(--color-base);
    color: #fff;
    padding: 1em 2em 0.8em 2.1em;
    margin-bottom: 20px;
}

.top-card__label {
    background: var(--color-main);
    color: white;
    padding: 0.5em 0.75em;
    border-radius: 999px;
    font-size: clamp(12px, 5.3cqi, 20px);  /* 元: 5.2cqi → 367px基準: 20÷367×100 = 5.45 */
    font-weight: var(--wght-black);
    line-height: 1;
}

.top-card__comment {
    font-size: clamp(13px, 5.45cqi, 20px);  /* 元: 5.2cqi → 367px基準: 20÷367×100 = 5.45 */
    font-weight: var(--wght-regular);
}

.top-card__img {
    max-width: 230px;
    width: clamp(230px, 80%, 400px);
    aspect-ratio: 231 / 174;
    overflow: hidden;
    margin-bottom: 14px;
    padding: 0;
    border-radius: 10px;
}

.top-card__img img {
    border-radius: 10px;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.top-card:hover .top-card__img img {
    transform: scale(1.05);
}

.top-card__price {
    font-size: clamp(20px, 9.81cqi, 36px);  /* 元: 9.89cqi → 367px基準: 36÷367×100 = 9.81 */
    color: #333;
    line-height: 1;
    margin-bottom: 4px;
    text-align: center;
}

.top-card__price span {
    font-size: clamp(14px, 5.45cqi, 20px);  /* 元: 5.49cqi → 367px基準: 20÷367×100 = 5.45 */
}

.top-card__area {
    font-size: clamp(12px, 6.54cqi, 24px);  /* 元: 6.59cqi → 367px基準: 24÷367×100 = 6.54 */
    color: #666;
    text-align: center;
}

.top-card__location {
    font-size: clamp(12px, 5.45cqi, 20px);  /* 元: 5.49cqi → 367px基準: 20÷367×100 = 5.45 */
    font-weight: var(--wght-regular);
    color: #666;
    text-align: center;
    line-height: 1;
}

.top-card__location::after {
    content: "";
    display: block;
    width: calc(100% - 16px);
    height: 1px;
    background: #7F7F7F;
    margin: 20px auto 6px;
}

.top-card__text {
    font-size: clamp(14px, 4.36cqi, 16px);  /* 元: 4.4cqi → 367px基準: 16÷367×100 = 4.36 */
    line-height: 1.75;
    text-align: center;
}

.top-card__btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    z-index: 2;
}

.top-card__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 2.18cqi, 8px);  /* 元: 2.2cqi → 367px基準: 8÷367×100 = 2.18 */
    background: var(--color-main);
    border: 2px solid var(--color-main);
    color: #fff;
    text-align: center;
    padding: 1.7em 1em;
    border-radius: 8px;
    text-decoration: none;
    font-size: clamp(11px, 3.81cqi, 14px);  /* 元: 3.85cqi → 367px基準: 14÷367×100 = 3.81 */
    transition: all 0.3s;
}

.top-card__link::before {
    content: '';
    display: inline-block;
    width: clamp(12px, 4.36cqi, 16px);  /* 元: 4.4cqi → 367px基準: 16÷367×100 = 4.36 */
    height: clamp(12px, 4.36cqi, 16px);  /* 元: 4.4cqi → 367px基準: 16÷367×100 = 4.36 */
    background: url('../../img/common/icon_mail2.svg') no-repeat center/contain;
}


@media (hover: hover) and (pointer: fine) {
.top-card__link:hover {
    background: #fff;
    border: 2px solid var(--color-main);
    transition: all 0.3s ease-in-out;
    color: var(--color-main);
}
.top-card__link:hover::before {
    background: url('../../img/common/icon_mail.svg') no-repeat center/contain;
    transition: all 0.3s ease-in-out;
}
}

/* スライダーの矢印 */
.splide__arrow {
    display: none;
}

@media (width < 800px) {
    .top-recommend h2 {
        margin-left: 31px;
        margin-bottom: 8px;
    }

    .top-recommend__slider {
        padding: 26px 0;
    }

    .top-recommend {
        --space-min: 13;
        --space-max: 80;
        margin-top: var(--space);
    }
}

@media (width < 600px) {
    .splide__arrows {
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
        position: relative;
        height: 100%;
        pointer-events: none;
        position: absolute;
        top: calc(50% + 40px);
        left: 50%;
        translate: -50% -50%;
        z-index: 10;        
    }

    .splide__arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        background-color: #fff;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 2px solid #333;
        z-index: 10;
        pointer-events: auto;
    }

    .splide__arrow--prev {
        left: 16px;
    }

    .splide__arrow--next {
        right: 16px;
    }

    .splide__arrow svg {
        fill: #333;
        height: 1em;
        width: 1em;
    }
}