/* ----------------------------------------

PAGE:岩本不動産についてページ - COMPANY -

---------------------------------------- */

/* ········ 見出し ········ */
.company__heading2 {
    --font-min: 20;
    --font-max: 48;
    font-size: var(--font-size);
    font-weight: var(--wght-medium);
    text-align: center;
    --space-min: 20;
    --space-max: 56;
    margin-bottom: var(--space);
}

.company__heading2::before {
    content: attr(data-en);
    display: block;
    --font-min: 14;
    --font-max: 30;
    font-size: var(--font-size);
    font-family: var(--fontFamily-en);
    font-weight: var(--wght-thin);
    margin-bottom: 0.5em;
}

@media (width < 800px) {
    .company__heading {
        font-weight: var(--wght-bold);
    }
}

/* ----------------------------------------
MESSAGE
---------------------------------------- */

/* コンテンツ全体（左側） */
.message__content {
    flex: 0 1 973px;
    /* 最大973px、縮小可能 */
    min-width: 0;
}

.message__copy {
    --font-min: 24;
    --font-max: 48;
    font-size: var(--font-size);
    font-weight: var(--wght-bold);
    line-height: 1.8;
    margin-bottom: 0.3em;
}

/* テキスト段落 */
.message__text {
    --font-min: 16;
    --font-max: 36;
    font-size: var(--font-size);
    font-weight: var(--wght-medium);
    line-height: 2;
}

/* 画像エリア（右側） */
.message__img {
    flex: 1 1 auto;
    /* 残りのスペースを全部使う */
    min-width: 200px;
    /* 最小幅を確保 */
    background: url(../../img/page/company/img_message.avif) no-repeat center/cover;
}

@media (max-width: 800px) {
    .message__inner {
        flex-direction: column;
    }

    .message__content {
        flex: unset;
    }

    .message__copy {
        line-height: 1.6;
        margin-bottom: 0.25em;
    }

    .message__text {
        line-height: 1.9;
    }

    .message__img {
        display: none;
    }
}

/* ----------------------------------------
VALUE 岩本不動産が大切にしている3つのこと
---------------------------------------- */
.value__inner {
    position: relative;
}

.value__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);
}

.value__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;
    translate: 0 2%;
}

@media (width < 600px) {
    .value__inner::after {
        aspect-ratio: 630/130;
        background: url(../../img/common/illust_dog-sleep-sp.webp) no-repeat left bottom/contain;
        translate: 0 -24%;
    }
}

.message__inner {
    display: flex;
    gap: 1em;
}

.value__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.value__card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    gap: 1.5em;
    background-color: var(--color-bg-sub);
    padding: clamp(20px, 3.26vw, 47px) clamp(9px, 3.125vw, 45px);
    --font-max: 18;
    font-size: var(--font-size);
    font-weight: var(--wght-medium);
}

.value__img {
    width: 100%;
}

.value__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.value__card h3 {
    --font-min: 20;
    --font-max: 36;
    font-size: var(--font-size);
    font-weight: var(--wght-medium);
    line-height: 1;
}

/* 人をつなぐだけ縮小値を大きくする */
.value__card:nth-of-type(3) h3 {
    --font-min: 10;
}

.value__card p {
    --font-min: 16;
    --font-max: 24;
    font-size: var(--font-size);
    line-height: 1.5;
}

@media (width < 1000px) {
    .value__cards {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 600px;
        margin: 0 auto;
    }

    .value__img {
        width: 100%;
        margin-bottom: 18px;
    }

    .value__card {
        gap: 1em;
        font-weight: var(--wght-bold);
        padding: clamp(24px, 3.26vw, 47px) clamp(9px, 3.125vw, 45px) clamp(19px, 3.26vw, 47px)
    }

    /* 人をつなぐだけ縮小値を戻す */
    .value__card:nth-of-type(3) h3 {
        --font-min: 20;
    }
}


/* ----------------------------------------
FEATURES 岩本不動産の特徴
---------------------------------------- */

.features__inner {
    position: relative;
}

.features__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(18px, 4.5vw, 54px);
}

.features__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;
    translate: 0 -30%;
}

@media (width < 600px) {
    .features.container {
        padding-top: 20vw;
    }

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

.features__inner ul {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.features__item {
    display: flex;
    /* 幅が広がった時に右の空間調整のため最大値を調整 */
    gap: clamp(9px, 2.5vw, 100px);
    background-color: var(--color-bg-sub);
    padding: clamp(20px, 1.73vw, 25px) clamp(9px, 2.22vw, 100px);
}

.features__img {
    width: clamp(180px, 16.6vw, 400px);
    aspect-ratio: 1;
}

.features__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.features__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.features__title {
    --font-min: 20;
    --font-max: 36;
    font-size: var(--font-size);
    font-weight: var(--wght-medium);
    line-height: 1.5;
}

.features__text {
    --font-min: 16;
    --font-max: 24;
    font-size: var(--font-size);
    font-weight: var(--wght-medium);
    line-height: 1.46;
}

@media (width < 1000px) {
    .features__inner ul {
        grid-template-columns: 1fr;
        gap: 2em;
        max-width: 600px;
        margin: 0 auto;
    }

    .features__item {
        flex-direction: column;
        padding: 0;
        background: unset;
        ;
    }

    .features__content {
        gap: 0.8em;
    }

    .features__img {
        width: 100%;
        height: 100%;
        aspect-ratio: 335 / 200;
    }

    .features__item-title {
        font-weight: var(--wght-bold);
    }

    .features__item-text {
        font-weight: var(--wght-regular);
    }
}


/* ----------------------------------------
OVERVIEW 会社概要
---------------------------------------- */
.overview__inner {
    position: relative;
}

.overview__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: 30;
    --space-max: 48;
    margin-bottom: var(--space);

}

.overview__inner::after {
    content: "";
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1312/137;
    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 < 600px) {
    .overview{
        padding-top: 20vw;
    }

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

.overview .company__heading2 {
    content: "";
    display: block;
    --space-min: 13;
    --space-max: 98;
    padding-bottom: var(--space);
    margin-bottom: 0;
    border-bottom: 2px solid var(--color-base);

}

.overview__item {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: clamp(20px, 12vw, 300px);
    border-bottom: 1px solid #E5E5E5;
    height: 120px;
    padding-inline: clamp(30px, 3.47vw, 50px);
}

.overview__item:first-of-type {
    border-top: 1px solid #E5E5E5;
}

.overview__item dt {
    --font-min: 16;
    --font-max: 20;
    font-size: var(--font-size);
    font-weight: var(--wght-light);
    line-height: 1.5;
    width: 5em;
    text-align-last: justify;
}

/* faxは文字間を伸ばす */
.overview__item--fax dt {
    letter-spacing: 1.5em;
}

/* emailは文字間を伸ばす */
.overview__item--email dt {
    letter-spacing: 0.37em;
}

.overview__item dd {
    --font-min: 16;
    --font-max: 24;
    font-size: var(--font-size);
    font-weight: var(--wght-regular);
    line-height: 1.25;
    letter-spacing: 0.13em;
}

.overview__item dd a:hover {
    opacity: 0.7;
}

@media (width < 800px) {
    .overview__item {
        grid-template-columns: 1fr;
        gap: 0.6em;
        padding: 1.2em 0;
        height: unset;
        padding: 14px 10px;
    }

    .overview__item dt {
        font-weight: var(--wght-regular);
        line-height: 1.438;
        width: 100%;
        text-align-last: left;
    }

    /* faxは文字間を伸ばす */
    .overview__item--fax dt {
        letter-spacing: unset;
    }

    /* emailは文字間を伸ばす */
    .overview__item--email dt {
        letter-spacing: unset;
    }

    .overview__item dd {
        font-weight: var(--wght-bold);
        line-height: 1.4;
    }
}