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

main {
    line-height: 1.9;
    font-weight: var(--wght-regular);
}



/* h3見出し -------- */
.top__title3 {
    font-size: clamp(16px, 2.5vw, 24px);
    margin-bottom: 2em;
    font-weight: var(--wght-black);
    line-height: var(--lineHeight-160);
    text-align: center;
    position: relative;
}

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

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

/* FV
-----------------------------------------*/
.fv {
    background-color: #a9d4ff;
    margin: 0;
    padding-top: calc(clamp(32px, 4vw, 64px) + var(--height-header));
    position: relative;
    padding-top: var(--height-header);
}

.fv__copy {
    color: var(--color-main);
    font-size: clamp(24px, 3vw, 56px);
    font-weight: bold;
    line-height: 1.4;
    /*  テキストの両端を揃えるためにjustifyを使用 */
    text-align: justify;
    position: absolute;
    bottom: 1vw;
    left: 50%;
    translate: -50% 0%;
    z-index: 10;

    span:first-child {
        letter-spacing: 0.04em;
    }
}

.fv__imgs {
    position: relative;
    overflow: hidden;
    margin-right: auto;
    margin-left: auto;
    height: 47vw;
    width: 150%;
    translate: -50% 0;
    left: 50%;
}

.fv__bg {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
    right: 0;
    transform: scale(0.85) !important;
}

.fv__cloud {
    position: absolute;
    top: 1vw;
    width: 100%;
    animation: fv-cloud 1000s linear 0s infinite forwards;
    z-index: 2;
    right: 0;
}

.fv__past-back {
    position: absolute;
    top: 0;
    animation: fv-past-back 1200s linear 0s infinite forwards;
    z-index: 20;
    width: 100%;
    height: auto;
}

.fv__now-back {
    position: absolute;
    top: 0;
    width: 100%;
    animation: fv-now-back 1200s linear 0s infinite forwards;
    right: 0;
    z-index: 10;
}

.fv__future-back {
    position: absolute;
    top: 0;
    width: 100%;
    animation: fv-future-back 800s linear 0s infinite forwards;
    z-index: 3;
    right: 0;
}

.fv__past-man {
    position: absolute;
    top: 0;
    animation: fv-past-man 400s linear 0s infinite forwards;
    z-index: 21;
    width: 100%;
    height: auto;
}

.fv__now-man {
    position: absolute;
    top: 0;
    width: 100%;
    animation: fv-now-man 400s linear 0s infinite forwards;
    right: 0;
    z-index: 11;
}

.fv__future-man {
    position: absolute;
    top: 0;
    width: 100%;
    animation: fv-future-man 400s linear 0s infinite forwards;
    z-index: 4;
    right: 0;
}

.fv__bridge-past {
    aspect-ratio: 61 / 150;
    position: absolute;
    width: 3%;
    height: auto;
    z-index: 19;
    margin-left: calc(50% - 14vw);
    bottom: 13vw;
}

.fv__bridge-future {
    aspect-ratio: 61 / 150;
    position: absolute;
    width: 2.7%;
    height: auto;
    z-index: 5;
    margin-left: calc(50% + 20vw);
    bottom: 19vw;
}

.fv__drone {
    position: absolute;
    bottom: 38vw;
    width: 2.2%;
    aspect-ratio: 59 / 47;
    animation: fv-drone 4s ease-in-out infinite;
    z-index: 122;
    left: 0;
    transform: translateX(-50%);
    margin-left: calc(50% - 30vw);
}

/* ふわふわ浮遊 */
@keyframes fv-drone {
    0% {
        transform: translate(-50%, 0px) rotate(-4deg);
    }

    25% {
        transform: translate(-50%, -6px) rotate(2deg);
    }

    50% {
        transform: translate(-50%, 0px) rotate(4deg);
    }

    75% {
        transform: translate(-50%, 6px) rotate(-2deg);
    }

    100% {
        transform: translate(-50%, 0px) rotate(-4deg);
    }
}

.fv__sun {
    position: absolute;
    top: 5%;
    left: 0;
    margin-left: calc(50% + 20vw);
    width: 3%;
    aspect-ratio: 71/79;
    animation: fv-sun 160s linear infinite;
    z-index: 0;
}

@keyframes fv-sun {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



/* HEIWA KENSETSU */
.fv__name {
    --font-min: 13;
    --font-max: 50;
    font-size: var(--font-size);
    font-weight: 900;
    color: var(--color-main);
    letter-spacing: -0.15em;
    position: relative;
    bottom: 0;
    left: 50%;
    translate: -50% -5%;
    width: max-content;
    position: absolute;
}

.fv__name-char {
    display: inline-block;
    opacity: 0;
}

.js-observe.is-active .fv__name-char {
    animation: fadeUp 0.6s ease-out forwards;
}



/* ５個目のspanの右に半角スペース */
.fv__name-char:nth-child(5)::after {
    content: " ";
    display: inline-block;
    width: 0.5em;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (width < 768px) {

    .fv {
        padding-top: calc(var(--height-header) + 20px);
    }

    .fv__copy {
        bottom: calc(-1 * clamp(50px, 8vw, 100px));
        font-size: clamp(27px, 6vw, 38px);
        width: 9.5em;
    }

    .fv__imgs {
        width: 280%;
        translate: -50%;
        transform: scale(1);
        left: 50%;
        height: 90vw;
    }

    .fv__bridge-future {
        margin-left: calc(50% + 24vw);
        bottom: 48vw;
    }

    .fv__bridge-past {
        margin-left: calc(50% - 20vw);
        bottom: 32vw;
        width: 3.2%;
    }

    .fv__drone {
        bottom: 80vw;
        margin-left: calc(50% - 38vw);
    }

    .fv__sun {
        margin-left: calc(50% + 30vw);
    }

    .fv__name {
        --font-min: 22;
        translate: -50% 20%;
    }
}

/* Animations */
@keyframes fv-cloud {
    0% {
        transform: scale(1) rotate(360deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes fv-past-back {
    0% {
        transform: scale(0.7) rotate(0deg);
    }

    100% {
        transform: scale(0.7) rotate(360deg);
    }
}

@keyframes fv-now-back {
    0% {
        transform: scale(0.79) rotate(360deg);
    }

    100% {
        transform: scale(0.79) rotate(0deg);
    }
}

@keyframes fv-future-back {
    0% {
        transform: scale(0.975) rotate(0deg);
    }

    100% {
        transform: scale(0.975) rotate(360deg);
    }
}

@keyframes fv-past-man {
    0% {
        transform: scale(0.65) rotate(0deg);
    }

    100% {
        transform: scale(0.65) rotate(360deg);
    }
}

@keyframes fv-now-man {
    0% {
        transform: scale(0.73) rotate(360deg);
    }

    100% {
        transform: scale(0.73) rotate(0deg);
    }
}

@keyframes fv-future-man {
    0% {
        transform: scale(0.86) rotate(0deg);
    }

    100% {
        transform: scale(0.86) rotate(360deg);
    }
}

/* ------------------------------------------------
TOP ABOUT
------------------------------------------------ */
.top-about {
    background-color: #fff;
    padding-inline: 0;
}

.top-about__inner {
    display: flex;
    flex-direction: column;
}

.top-about__item {
    display: flex;
    align-items: center;
    position: relative;
}

.top-about__item--reverse {
    flex-direction: row-reverse;
}

/* 1番目以外を上に上げる */
.top-about__item:not(:first-child) {
    margin-top: calc(-1 * clamp(40px, 11vw, 154px));
}

.top-about__img-wrap {
    width: clamp(600px, 48vw, 800px);
    margin-left: -40px;

}

.top-about__img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.top-about__content {
    width: max-content;
    background-color: #ffffffcf;
    padding: clamp(24px, 4.4vw, 64px);
    position: absolute;
    left: 43%;
    z-index: 10;
}

/* reverseの設定 */
.top-about__item--reverse .top-about__img-wrap {
    margin-left: auto;
    margin-right: -40px;
}

.top-about__item--reverse .top-about__content {
    right: 43%;
    left: unset;
}

.top-about__list {
    padding-left: 0;
    list-style: none;
}

.top-about__list li {
    --font-min: 14;
    --font-max: 18;
    font-size: var(--font-size);
    line-height: 1.8;
    margin-bottom: 0.5em;
}

.top-about__title {
    --font-min: 24;
    --font-max: 40;
    font-size: var(--font-size);
    font-weight: var(--wght-bold);
    color: var(--color-main);
    margin-bottom: 0.5em;
    line-height: 1.4;
}

.top-about__text {
    --font-min: 14;
    --font-max: 18;
    font-size: var(--font-size);
    margin-bottom: 1.5em;
}

.topabout__btn {
    margin-top: 1.5em;
    max-width: 400px;
}

/* レスポンシブ対応 */

@media (width < 1000px) {

    .top-about__item,
    .top-about__item--reverse {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    /* 1番目以外の重なりをリセット */
    .top-about__item:not(:first-child) {
        margin-top: 5vw;
    }

    .top-about__img-wrap {
        width: clamp(380px, 80%, 720px);
    }

    .top-about__content {
        position: relative;
        left: unset;
        right: unset;
        z-index: 1;
        width: auto;
        max-width: 500px;
        margin-inline: 5%;
        margin-bottom: -20vw;
        /* 画像に重なる量 */
        padding: clamp(20px, 4vw, 40px);
    }

    /* 奇数：テキスト右寄せ、画像左寄せ */
    .top-about__item:nth-child(odd) .top-about__content {
        align-self: flex-end;
    }

    .top-about__item:nth-child(odd) .top-about__img-wrap {
        align-self: flex-start;
    }

    /* 偶数：テキスト左寄せ、画像右寄せ */
    .top-about__item:nth-child(even) .top-about__content {
        align-self: flex-start;
    }

    .top-about__item:nth-child(even) .top-about__img-wrap {
        align-self: flex-end;
    }

    .top-about__item--reverse .top-about__content {
        right: unset;
        left: unset;
    }
}

@media (width < 768px) {
    .top-about {
        padding-top: clamp(60px, 16vw, 100px);
    }

}



/* ----------------------------------------
TOP NEWS：トップページお知らせ/ブログ一覧
---------------------------------------- */
.top-news__inner {
    padding: var(--space-7xl) clamp(24px, 8.5vw, 120px) var(--space-5xl);
    background: var(--color-bg-sub);
    border-radius: 40px;
}

.top-news__list {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-2xl)
}

.top-news__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25em 1.5em;
    --font-min: 15;
    --font-max: 17;
    font-size: var(--font-size);
    font-weight: var(--wght-medium);
    border-bottom: 1px solid #cbcbcb;
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

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

.top-news__date {
    padding: 1.5em 1em 1.5em var(--space-5xl);
    position: relative;
}

.top-news__date::after {
    content: "";
    display: inline-block;
    width: 100%;
    height: 2px;
    border-bottom: 2px solid var(--color-sub);
    position: absolute;
    bottom: 0;
    left: 0;
    translate: 0 75%;
}

/* 新着記事にNEWのラベルをつける */
.top-news__label {
    color: #fff;
    border: 2px solid #258bcb;
    padding: 0.25em;
    background-color: #258bcb;
    /* 余白削除 */
    text-box-edge: cap alphabetic;
    text-box-trim: trim-both;
    border-radius: 999px;
    text-align: center;
    display: inline-block;
    width: 3.5em;
}

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

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

.top-news__title {
    flex: 1;
}

/* 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__title {
        text-decoration: underline;
        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 < 768px) {
    .top-news__link {
        flex-direction: column;
        align-items: flex-start;
        padding: 1em 0 0.75em;
    }

    .top-news__date {
        padding: 0;
    }

    /* 疑似要素なし */
    .top-news__date::after {
        display: none;
    }
}


/* ----------------------------------------
TOP WORKS：施工事例スライダー
---------------------------------------- */
.top-works {
    padding-block: var(--space-7xl);
    background-color: var(--color-bg-sub);
}

.top-works__inner {
    margin-inline: auto;
}

.top-works .title2 {
    margin-bottom: var(--space-5xl);
}

.top-works__slider {
    margin-bottom: var(--space-2xl);
    margin-inline: calc(50% - 50vw);
}

.top-works__card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.top-works__img {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 0.75em;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.top-works__img img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    border-radius: 16px;

    object-fit: cover;
    transition: transform 0.3s ease;
}

.top-works__label {
    --font-min: 12;
    --font-max: 13;
    font-size: var(--font-size);
    font-weight: var(--wght-bold);
    color: #fff;
    padding: 0.3em 1em;
    line-height: 1.4;
    background-color: var(--color-main);
    border-radius: 999px;
}

.top-works__title {
    --font-min: 16;
    --font-max: 22;
    font-size: var(--font-size);
    font-weight: var(--wght-bold);
    line-height: 1.6;
}

/* tag */
.top-works__tags {
    margin-top: 0.5em;

}

/* Splideのページネーション調整 */
.top-works__slider .splide__pagination {
    margin-top: var(--space-lg);
    position: relative;
    bottom: auto;
}

.top-works__slider .splide__pagination__page {
    background: #cbcbcb;
    width: 10px;
    height: 10px;
}

.top-works__slider .splide__pagination__page.is-active {
    background: var(--color-main);
    transform: scale(1);
}

/* ホバー */
@media (hover: hover) and (pointer: fine) {
    .top-works__card:hover .top-works__img {

        img {
            transform: scale(1.05);
        }
    }

    .top-works__card:hover {
        opacity: 0.85;
    }
}

/* ------------------------------------------------
TOP INFO：採用情報・会社概要
------------------------------------------------ */
.top-info {
    padding-block: var(--space-7xl);
}

.top-info__inner {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.top-info__card {
    position: relative;
    display: flex;
    gap: 5%;
}

.top-info__card--recruit {
    flex-direction: row-reverse;
}

.top-info__content {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    padding-right: 5%;
}

/* recruitは左側 */
.top-info__card--recruit .top-info__content {
    padding-right: 0;
    padding-left: 5%;
}

.top-info .title2 {
    --font-min: 26;
    --font-max: 36;
    font-size: var(--font-size);
    font-weight: var(--wght-bold);
    color: var(--color-main);
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1em;
}

/* アイコンを疑似要素で表示 */
.top-info .title2::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* 各カードごとにアイコンを変える */
.top-info__card--community .title2::before {
    background-image: url(../../img/common/icon_local.svg);
}

.top-info__card--recruit .title2::before {
    background-image: url(../../img/common/icon_recruit.svg);
}

.top-info__card--company .title2::before {
    background-image: url(../../img/common/icon_company.svg);
}

.top-info__text {
    --font-min: 14;
    --font-max: 17;
    font-size: var(--font-size);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.top-info__text p {
    margin-bottom: 0.5em;
}

.top-info__btn-wrap {
    margin-bottom: var(--space-xl);
}

.top-info__img {
    position: relative;
    margin-top: auto;
    width: 100%;
    height: clamp(300px, 40vw, 500px);
    border-radius: 0 clamp(16px, 3vw, 30px) clamp(16px, 3vw, 30px) 0;
    overflow: hidden;
    margin-bottom: clamp(20px, 4vw, 40px);
}

/* recruit画像の角丸を反転 */
.top-info__card--recruit .top-info__img {
    border-radius: clamp(16px, 3vw, 30px) 0 0 clamp(16px, 3vw, 30px);
}

.top-info__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: top 25% left 50%;
}

.top-info__en {
    --font-min: 20;
    --font-max: 80;
    font-size: var(--font-size);
    font-weight: var(--wght-bold);
    color: #d0e9f5;
    line-height: 1.05;
    letter-spacing: 0.04em;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.top-about__item {
    margin-bottom: 100px;
}

/* タブレット対応 */
@media (width < 1000px) {
    .top-info__container {
        grid-template-columns: 1fr;
        gap: clamp(30px, 5vw, 60px);
    }

    .top-info__card {
        min-height: auto;
        padding-bottom: clamp(30px, 5vw, 50px);
    }

    .top-info__image {
        height: clamp(280px, 50vw, 400px);
    }

    .top-about__item {
        margin-bottom: 100px;
    }
}

/* スマホ対応 */
@media (width < 768px) {

    .top-info {
        padding-inline: var(--padding-container);
    }

    .top-info__card {
        flex-direction: column;
        align-items: center;
    }


    .top-info__content {
        padding: 0;
        width: 100%;
    }

    /* recruit */
    .top-info__card--recruit .top-info__content {
        padding: 0;
    }

    .top-info__text {
        margin-bottom: var(--space-xl);
    }

    .top-info__btn-wrap {
        text-align: center;
    }

    .top-info__img {
        width: 105%;
        height: 240px;
        margin-bottom: 0;
        margin-left: calc(50% - 50vw);
        margin-right: auto;
        border-radius: 0 clamp(16px, 3vw, 30px) clamp(16px, 3vw, 30px) 0;
    }

    .top-info__card--recruit .top-info__img {
        border-radius: clamp(16px, 3vw, 30px) 0 0 clamp(16px, 3vw, 30px);
        margin-right: calc(50% - 50vw);
        margin-left: auto;

    }

    .top-info__en {
        --font-min: 40;
        --font-max: 160;
        font-size: var(--font-size);
        text-align: right;
        margin-inline: calc(49% - 50vw);
    }

    /* recruitは左寄せ */
    .top-info__card--recruit .top-info__en {
        text-align: left;
    }

    .top-about__item {
        margin-bottom: 10%;
    }


}

/*20261003 EIJSON EDITED*/
.fv__copy span b {
    background: linear-gradient(transparent 70%, yellow 70%);
    display: inline-block;
    padding-left: 7px;
}

.top-about__title b {
    background: linear-gradient(transparent 70%, yellow 90%);
    display: inline-block;
    padding-right: 5px;
    padding-left: 5px;
}