/* ================================================

FRONT-PAGE トップページ

================================================ */

/* ------------------------------------------------
共通パーツ
------------------------------------------------ */

/* ········ 見出し ········ */
.top-heading02 {
    font-size: var(--fontSize-3xl);
    letter-spacing: 0.6em;
    line-height: 1;
}

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

.top-message {
    --min-size: 200;
    --max-size: 300;
    padding-top: var(--clamp-size);
    position: relative;
}

.top-message__wrap {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.9vw, 90px);
}

/* ········ title ········ */
.top-message__title {
    font-size: var(--fontSize-3xl);
    line-height: 1;
    position: absolute;
    bottom: 2em;
    z-index: 1;
    left: 5vw;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: calc(80% - 5vw);
}

.top-message__title::after {
    width: 80%;
    height: 1px;
    background-color: currentColor;
    content: "";
    display: block;
}

/* ········ content ········ */
.top-message__content {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: min(70px, 5vw);
    padding: 5vw 5vw 7vw;
    position: absolute;
    top: 7.5em;
    right: 0;
    z-index: 1;
}

/* 背景画像 */
.top-message__content::before {
    content: "";
    background: url(../../img/common/bg_content.jpg) no-repeat center/cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

/* 白い背景オーバーレイ */
.top-message__content::after {
    content: "";
    background: rgba(255, 255, 255, 0.4);
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: -1;
}

.top-message__text {
    --min-size: 13;
    --max-size: 19;
    font-size: var(--clamp-size);
    line-height: 1.25;
    letter-spacing: 0.6em;
}

/* ········ image ········ */
.top-message__img {
    width: 85%;
    height: clamp(510px, 50vw, 730px);
    position: relative;
}

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

.top-message__img::before {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    background: rgba(255, 255, 255, 0.5)
}

/* ········ responsive ········ */
@media (width < 768px) {
    .top-message__wrap {
        flex-direction: column-reverse;
    }

    .top-message__content {
        position: static;
        padding: 0 0 40px;
        gap: 6vw;
    }

    .top-message__content::before,
    .top-message__content::after {
        content: none;
    }

    .top-message__title {
        position: absolute;
        bottom: 1em;
        padding-left: 1em;
    }

    .top-message__title::after {
        width: 100%;
        margin-left: -1em;
    }

    .top-message__img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .top-message__img::before {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* ------------------------------------------------
TOP-SERVICE
------------------------------------------------ */

.top-service {
    --min-size: 200;
    --max-size: 300;
    padding-top: var(--clamp-size);
    padding-bottom: var(--clamp-size);
}

.top-service__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-10xl);
}

/* ········ row ········ */
.top-service__row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: min(90%, 1200px);
    gap: clamp(40px, 5vw, 160px);
}

/* 奇数行は右寄せ */
.top-service__row:nth-child(odd) {
    margin-left: auto;
}

/* 偶数行は左右反転 */
.top-service__row:nth-child(2n) {
    gap: var(--space-3xl);
    flex-direction: row-reverse;
}

/* ········ content ········ */
.top-service__content {
    writing-mode: vertical-rl;
    text-orientation: upright;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6vw;
    border-bottom: 1px solid currentColor;
    padding-bottom: 3.5em;
    padding-block: 1em;
    flex: 2.5;
    justify-content: space-between;
    white-space: nowrap;
}

/* 奇数行のコンテンツは反転 */
.top-service__row:nth-child(odd) .top-service__content {
    flex-direction: column-reverse;
}

.top-service__title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
}

/* 奇数行のタイトルは反転 */
.top-service__row:nth-child(odd) .top-service__title {
    flex-direction: column-reverse;
}

.top-service__copy {
    font-size: var(--fontSize-base);
    letter-spacing: 0.5em;
    margin-top: 2em;
}

.top-service__link {
    font-size: var(--fontSize-xs);
    text-decoration: none;
    writing-mode: vertical-rl;
    text-orientation: upright;
    align-self: flex-end;
    margin-bottom: -3em;
    letter-spacing: 0.5em;
}

.top-service__link-sp {
    display: none;
}

/* ········ image ········ */
.top-service__wrap {
    flex: 7.5;
    display: flex;
    justify-content: flex-end;
}

.top-service__img {
    width: 100%;
    height: auto;
    max-height: 500px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

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

/* ········ responsive ········ */
@media (width < 768px) {
    .top-service__row {
        max-width: 100%;
        align-items: stretch;
    }
}

@media (width < 580px) {
    .top-service__inner {
        gap: 35vh;
    }

    .top-service__row {
        align-items: center;
        width: 100%;
    }

    .top-service__row,
    .top-service__row:nth-child(2n) {
        flex-direction: column;
    }

    .top-service__content {
        border-bottom: none;
    }

    .top-service__row:nth-child(odd) .top-service__title {
    flex-direction: column;
    }

    .top-service__link {
        display: none;
    }

    .top-service__link-sp {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5em;
    }

    .top-service__link-sp::after {
        content: "";
        display: inline-block;
        width: calc(100% + 4em);
        height: 0.5px;
        background-color: currentColor;
        text-align: center;
    }
}



/* ------------------------------------------------
TOP-WORKS
------------------------------------------------ */

.top-works__inner {
    display: flex;
    gap: clamp(16px, 4.2vw, 60px);
    justify-content: center;
    align-items: stretch;
    margin-inline: auto;
}

/* ········ heading ········ */
.top-works h2 {
    flex: 1;
    display: flex;
    gap: 1em;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    --min-size: 14;
    --max-size: 20;
    font-size: var(--clamp-size);
}

.top-works h2 a {
    margin-top: 3em;
}

.top-works h2::after {
    content: "";
    display: block;
    width: 1px;
    height: 80%;
    background: currentColor;
}

/* ········ works list ········ */
.top-works ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
}

.top-works li {
    position: relative;
}

/* ········ works image ········ */
.top-works__thumb {
    aspect-ratio: 400 / 230;
    width: 100%;
    height: auto;
}

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

/* ········ works info ········ */
.top-works__head {
    font-size: var(--fontSize-xs);
    position: absolute;
    bottom: 1em;
    left: 0;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.5em 2em 0.5em 1em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 2em;
    width: min(360px, 80%);
    height: 3.8em;
    line-height: 1.25;
}

.top-works h3 {
    white-space: nowrap;
    word-break: keep-all;
    width: max-content;
}

/* ········ responsive ········ */
@media (width < 768px) {
    .top-works__inner {
        width: 100%;
    }

    .top-works h2::after {
        height: min(400px, 40%);
    }

    .top-works ul {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .top-works__thumb {
        aspect-ratio: 280 / 102;
        margin-bottom: 1em;
    }

    .top-works__head {
        position: static;
        background-color: transparent;
        padding: 0;
        width: 100%;
        height: auto;
    }
}