/* ------------------------------------------------
PAGE: FRONT-PAGE - トップページ -
------------------------------------------------ */

main {
    font-weight: var(--wght-bold);
    line-height: var(--lineHeight-2);
    letter-spacing: var(--letterSpacing-12);
}

/* ボタン -------- */

.top__btn {
    --font-min: 48;
    --font-max: 54;
    margin-top: var(--font-size);

    a {
        font-size: 14px;
        color: var(--color-black);
        margin-inline: auto;
        display: block;
        border: 2px solid var(--color-black);
        background: transparent;
        line-height: var(--lineHeight-125);
        text-align: center;
        padding: 1.5em 2em;
        width: clamp(150px, 28vw, 220px);
        font-weight: var(--wght-bold);
        transition: all 0.3s ease-in-out;
    }
}

/* ホバー機能があるものとポイントデバイスを持つデバイス限定のためスマホやタブレットは適用外 */
@media (hover: hover) and (pointer: fine) {

    .top__btn a:hover {
        color: var(--color-sky);
        border: 2px solid var(--color-sky);
        background: #fff;
        line-height: var(--lineHeight-125);
        transition: all 0.3s ease-in-out;
    }
}

/* スライダー -------- */
.js-recruit-slider {
    width: 100vw;
    margin-inline: calc(50% - 50vw);

    .splide__slide {
        padding: 10px;
        aspect-ratio: 170/130;
    }
}

/* FV
-----------------------------------------*/
.fv {
    width: 100%;
    height: calc(100vh - var(--height-header));
    height: calc(100svh - var(--height-header));
    position: relative;
    max-height: 800px;
    min-height: 600px;
}

@media (width < 768px) {
    .fv {
        height: 80vh;
        height: 80svh;
        /* max-height: 600px; */
    }
}

.fv::before {
    content: '';
    background: url(../../img/page/top/illust_fv.svg) no-repeat center/contain;
    display: block;
    position: absolute;
    bottom: -2px;
    left: 50%;
    translate: -50% 0;
    width: calc(100% + 8px);
    height: auto;
    aspect-ratio: 1442/179;
    z-index: 1;
}

.fv__image {
    width: 100%;
    height: 100%;
    position: relative;

    video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: bottom 40% center;
    }
}

.fv__title,
.fv__btn-wrap {
    position: absolute;
    left: 80px;
    z-index: var(--zindex-front);
    animation: BlurFadeIn 1s ease-out 1s 1 normal both;
}

.fv__title {
    position: absolute;
    top: calc(15.4% + 80px);
    left: 80px;
    translate: 0% -50%;
    opacity: 0;
    filter: blur(2px);
    /* common.cssに記載 */
    font-size: clamp(40px, 4.44vw, 64px);
    font-weight: var(--wght-bold);
    line-height: 1.45 font-feature-settings: "palt";
}

.fv__btn-wrap {
    width: clamp(400px, 37.98vw, 547px);
    position: absolute;
    bottom: 21.2%;
    left: 80px;
    opacity: 0;
    filter: blur(2px);
    /* common.cssに記載 */
    animation: BlurFadeIn 1s ease-out 1.5s 1 normal both;
}


.fv__btn {
    font-size: clamp(20px, 2vw, 24px);
    font-weight: var(--wght-medium);
    color: #fff;
    line-height: 1;
    text-align: center;
    width: 100%;
    display: inline-block;
    background: var(--gradient-reverse);
    border: 4px solid #fff;
    border-radius: 999px;
    padding: 1.5em 2em;
    position: relative;
}

/* 矢印 */
.fv__btn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2em;
    transform: translateY(-50%) rotate(45deg);
    width: 0.75em;
    height: 0.75em;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transition: right 0.3s ease-in-out;
}


@media (hover: hover) and (pointer: fine) {
    .fv__btn:hover {
        filter: brightness(1.2);
        transition: all 0.3s ease-in-out;
    }
}

@media (width < 800px) {
    .fv::before {
        background: url(../../img/page/top/illust_fv-sp.svg) no-repeat center/contain;
        aspect-ratio: 375/66;
        bottom: -1px;
    }

    .fv::after {
        content: none;
    }

    .fv__title {
        top: calc(10vh + 65px);
        left: 26px;
        font-size: clamp(21px, 9.4vw, 40px);
        line-height: 1.7;
        letter-spacing: 0.02em;
    }

    .fv__btn-wrap {
        bottom: 115px;
        left: 20px;
        width: calc(clamp(100px, calc(100% - 40px), 400px));
    }

    .fv__btn {
        font-size: clamp(16px, 4.75vw, 20px);
    }

    .fv__btn::after {
        right: 2.5em;
    }
}

/* ----------------------------------------
TOP NEWS：トップページお知らせ/ブログ一覧
---------------------------------------- */

.top-news h2 {
    margin-bottom: 0;
}

.top-news__list {
    width: min(100%, 1010px);
    /* 右揃え */

    --font-min: 14;
    --font-max: 24;
    font-size: var(--font-size);
    margin-left: auto;
    --space-min: 12;
    --space-max: 96;
    margin-bottom: var(--space);
    display: flex;
    flex-direction: column;
}

.top-news__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;

    --font-min: 14;
    --font-max: 24;
    font-size: var(--font-size);
    font-weight: var(--wght-bold);
    border-bottom: 1px solid var(--color-base);
    padding-top: 0.8em;
    padding-bottom: 0.8em;
    padding-right: clamp(0px, 6.3vw, 91px);
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

/* 最初の記事のpadding-topを消す */
/* .top-news__list .top-news__item:first-child .top-news__link {
    padding-top: 0;
} */

.top-news__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    line-height: 0.8;
}

.top-news__date {
    --font-min: 16;
    --font-max: 24;
    font-size: var(--font-size);
}

/* 新着記事にNEWのラベルをつける */
.top-news__label {
    color: var(--color-main);
    border: 2px solid var(--color-main);
    padding: 0.2em 1.2em;
    line-height: 0.8;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
    width: 5em;
}

.top-news__label:empty {
    border: none;
    background-color: unset !important;
}

/* 矢印の外側の丸 */
.icon__arrow-circle {
    width: 1em;
    height: 1em;
    border: 1px solid var(--color-base);
    border-radius: 50%;
    position: relative;
}

/* 矢印 */
.icon__arrow-circle::after {
    content: '';
    position: absolute;

    /* 位置調整: 丸の中心に寄せる */
    right: 0.35em;
    top: 50%;

    /* ★★★ 鋭角に見せるための比率変更 ★★★ */
    width: 0.4em;
    /* 長く */
    height: 0.15em;
    /* 短く */

    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;

    /* 回転と中央揃え */
    translate: 0 -50%;
    /* translate: -0.05em -50%; から変更 */
    rotate: 45deg;
    /* ここは45度のまま */
}

.top-news__type {
    padding: 0.1em 1em 0.15em;
    color: var(--color-main);
    border: 2px solid var(--color-main);
    border-radius: 5px;
    text-align: center;
}

.top-news__content {
    display: inline-block;
    text-align: left;
    flex: 1;
}

.top-news__title {
    --font-min: 16;
    --font-max: 24;
    font-size: var(--font-size);
    line-height: 1.6;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* タイトルの後ろにアイコンを配置 */
/* アイコンを囲う円 */
.top-news__title .circle-arrow {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
}

/* HOVER */
@media (hover: hover) and (pointer: fine) {
    .top-news__type:hover {
        background: var(--color-main);
        color: #fff;
        transition: all 0.3s ease-in-out;

    }

    .top-news__item:hover .top-news__date,
    .top-news__item:hover .top-news__title {
        color: #666;
        transition: all 0.3s ease-in-out;
    }

    .top-news__item:hover .top-news__label {
        color: #fff;
        background: var(--color-main);
        transition: all 0.3s ease-in-out;
    }
}


@media (width < 800px) {

    .top-news {
        margin-top: 1.2em;
    }

    .top-news h2 {
        margin-left: 11px;
        margin-bottom: 4px;
    }

    .top-news__link {
        gap: 1.15em;
        padding: 0.5em 11px;
    }

    /* 日付とカスタム投稿の種類（NEWS / BLOG） */
    .top-news__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25em;
    }

    .top-news__date {
        order: 1;
    }

    .top-news__label {
        order: 0;
        padding: 0.5em 1em;
    }

    .top-news__label:empty {
        display: none;
    }

    .top-news__title {
        line-height: 1.7;
    }

    .top-news__item .circle-arrow {
        display: none;
    }

    .top-news__list {
        margin-bottom: 12px;
    }
}

/* ----------------------------------------
TOP RENT LIST：トップページ賃貸物件を探すパーツ
---------------------------------------- */
.rent-list__inner {
    position: relative;
}

.home .rent-list__inner::before {
    content: "";
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 316/34;
    background: url("../../img/common/illust_roof.svg") no-repeat left bottom/contain;
    margin-bottom: clamp(24px, 4.5vw, 60px);
}

.home .rent-list__inner::after {
    content: "";
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 82 / 11;
    background: url(../../img/common/illust_dog-back.webp) no-repeat left bottom / contain;
    position: absolute;
    top: 0;
    translate: 0 -20%;
}

@media (width < 800px) {

    .home .rent-list__inner::before {
        width: calc(100% - 22px);
        margin-inline: auto;
        margin-bottom: clamp(8px, 2.1vw, 60px);
    }

    .home .rent-list__inner::after {
        width: calc(100% - 22px);
        left: 11px;
    }
}

@media (width < 600px) {
    .home .rent-list {
        padding-top: 13vw;
    }

    .home .rent-list__inner::after {
        aspect-ratio: 636/152;
        background: url(../../img/common/illust_dog-back-sp.webp) no-repeat left bottom / contain;
        translate: 0 -48%;
    }
}


/* 他はparts-rent-list.cssに */

/* ----------------------------------------
TOP RENT SEARCHの次のPOTAL
---------------------------------------- */
.rent-search+.top-portal .top-portal__inner {
    position: relative;
}

.rent-search+.top-portal .top-portal__inner::before {
    content: "";
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 316/34;
    background: url("../../img/common/illust_roof.svg") no-repeat left bottom/contain;
    margin-bottom: clamp(24px, 4.5vw, 54px);
}

.rent-search+.top-portal .top-portal__inner::after {
    content: "";
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1312/201;
    background: url(../../img/common/illust_dog-sit.webp) no-repeat left bottom/contain;
    position: absolute;
    top: 0;
    left: 0;
    translate: 0 -34%;
}

@media (width < 800px) {

    .rent-search+.top-portal .top-portal__inner::before {
        margin-bottom: clamp(12px, 3.2vw, 60px);
    }
}

@media (width < 600px) {

    .rent-search+.top-portal {
        padding-top: 15vw;
    }

    .rent-search+.top-portal .top-portal__inner::after {

        aspect-ratio: 636/194;
        background: url(../../img/common/illust_dog-sit-sp.webp) no-repeat left bottom/contain;
        translate: 0 -64%;
    }
}

/* ----------------------------------------
TOP BLOG LIST：トップページブログの一覧
---------------------------------------- */
.top-blog__inner {
    position: relative;
}

.top-blog__inner::before {
    content: "";
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 316/34;
    background: url("../../img/common/illust_roof.svg") no-repeat left bottom/contain;
    --space-min: 10;
    --space-max: 71;
    margin-bottom: clamp(55px, 9vw, 71px);
}

.top-blog__inner::after {
    content: "";
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2400/251;
    background: url("../../img/common/illust_dog-sleep.webp") no-repeat left bottom/contain;
    position: absolute;
    top: 0;
}

.top-blog .more-wrap {
    margin-right: clamp(0px, 9.5vw, 140px);
}

@media (width < 800px) {

    /* 屋根イラストの幅調整 */
    .top-blog__inner::before {
        width: calc(100% - 22px);
        margin-inline: auto;
        margin-bottom: clamp(8px, 2.1vw, 60px);
    }

    /* 犬イラストの幅と位置調整 */
    .top-blog__inner::after {
        width: calc(100% - 22px);
        left: 11px;
    }

    .top-blog__content h2 {
        margin-bottom: 4px;
        margin-inline: 11px;
    }

    .top-blog .more-wrap {
        margin-right: 11px;
    }
}

@media (width < 600px) {
    section#top-blog {
        padding-top: 15vw;
    }

    .top-blog__content h2 {
        margin-top: 5vw;
    }

    .top-blog__inner::after {
        aspect-ratio: 636/152;
        background: url(../../img/common/illust_dog-sleep-sp.webp) no-repeat left bottom / contain;
        translate: 0 -32%;
    }
}