/* ========================================
   第一土木 トップページ・リニューアル
======================================== */

:root {
    --renewal-green: #008a44;
    --renewal-green-dark: #006c36;
    --renewal-green-light: #15b467;
    --renewal-black: #090d0b;
    --renewal-black-soft: #111814;
    --renewal-white: #ffffff;
    --renewal-gray: #f2f4f3;
    --renewal-line: rgba(255, 255, 255, 0.18);
}

body.home {
    margin: 0;
    background: var(--renewal-white);
    color: #121714;
}

body.home *,
body.home *::before,
body.home *::after {
    box-sizing: border-box;
}

body.home img {
    max-width: 100%;
    height: auto;
}

.renewal-container {
    width: min(1280px, calc(100% - 80px));
    margin: 0 auto;
}


/* ========================================
   ヘッダー
======================================== */

.renewal-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 124, 62, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.renewal-header__inner {
    display: flex;
    align-items: stretch;
    width: min(1500px, 100%);
    min-height: 92px;
    margin: 0 auto;
}

.renewal-header__logo {
    display: flex;
    align-items: center;
    width: 270px;
    padding: 18px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.renewal-header__logo img {
    display: block;
    width: 205px;
    height: auto;
    filter: none;
}

.renewal-header__nav {
    flex: 1;
}

.renewal-header__nav ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.renewal-header__nav li {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.renewal-header__nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.renewal-header__nav a:hover {
    color: var(--renewal-green);
    background: #fff;
}

.renewal-header__nav .jp {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.renewal-header__nav .en {
    margin-top: 7px;
    font-size: 12px;
    letter-spacing: 0.18em;
    opacity: 0.78;
}

.renewal-header__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    color: var(--renewal-green);
    background: #fff;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s ease;
}

.renewal-header__contact::before {
    margin-right: 8px;
    font-size: 18px;
    line-height: 1;
    content: "✉";
}

.renewal-header__contact:hover {
    color: #fff;
    background: var(--renewal-green);
}

.renewal-menu-button {
    display: none;
}


/* ========================================
   メインビジュアル
======================================== */

.renewal-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    overflow: hidden;
    background: var(--renewal-black);
}

.renewal-hero__slider,
.renewal-hero__slider .swiper-wrapper,
.renewal-hero__slide {
    width: 100%;
    height: 100%;
}

.renewal-hero__slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--renewal-black);
}

.renewal-hero__slide img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
}

/* 文字を載せる下部だけ、ほんのり暗くして可読性を確保 */
.renewal-hero__slide::after {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 30%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.42) 0%,
        rgba(0, 0, 0, 0.14) 48%,
        rgba(0, 0, 0, 0) 100%
    );
    content: "";
    pointer-events: none;
}

.renewal-hero__caption {
    position: absolute;
    z-index: 3;
    left: clamp(22px, 3vw, 48px);
    bottom: clamp(30px, 4vw, 56px);
    display: inline-flex;
    gap: 14px;
    align-items: flex-start;
    max-width: min(620px, calc(100% - 44px));
    padding: 14px 18px 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.34);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.renewal-hero__caption-num {
    flex: 0 0 auto;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.16em;
}

.renewal-hero__caption-body {
    min-width: 0;
}

.renewal-hero__caption-label {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 10px;
    align-items: baseline;
    margin-bottom: 5px;
}

.renewal-hero__caption-en {
    color: #7be0a9;
    font-size: clamp(9px, 0.78vw, 11px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.14em;
}

.renewal-hero__caption-jp {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(9px, 0.8vw, 11px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

.renewal-hero__caption-text {
    margin: 0;
    color: #fff;
    font-size: clamp(16px, 1.55vw, 23px);
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: 0.07em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
}

.renewal-hero .swiper-pagination {
    bottom: 14px !important;
}

.renewal-hero .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 5px !important;
    background: #fff;
    opacity: 0.5;
}

.renewal-hero .swiper-pagination-bullet-active {
    background: var(--renewal-green-light);
    opacity: 1;
}

/* ========================================
   NEWS・動画
======================================== */

.renewal-information {
    padding: 110px 0;
    background:
        linear-gradient(135deg, #fff 0%, #fff 56%, #f2f6f4 56%);
}

.renewal-information__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
    gap: 90px;
    align-items: start;
}

.renewal-section-heading {
    margin-bottom: 38px;
}

.renewal-section-heading__en {
    margin: 0 0 8px;
    color: var(--renewal-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25em;
}

.renewal-section-heading h2 {
    margin: 0;
    color: var(--renewal-black);
    font-size: 34px;
    line-height: 1.4;
    letter-spacing: 0.08em;
}

.renewal-news__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.renewal-news__card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d7ddda;
    background: #fff;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.renewal-news__card:hover {
    border-color: rgba(0, 138, 68, 0.45);
    box-shadow: 0 16px 34px rgba(5, 20, 12, 0.09);
    transform: translateY(-4px);
}

.renewal-news__card > a {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.renewal-news__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #08110d;
}

.renewal-news__thumbnail {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.renewal-news__card:hover .renewal-news__thumbnail {
    transform: scale(1.05);
}

.renewal-news__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            145deg,
            #101914 0%,
            #050b08 100%
        );
}

.renewal-news__placeholder::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );
    background-size: 28px 28px;
    content: "";
}

.renewal-news__placeholder span,
.renewal-news__placeholder strong {
    position: relative;
    z-index: 1;
}

.renewal-news__placeholder span {
    margin-bottom: 7px;
    color: var(--renewal-green-light);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.17em;
}

.renewal-news__placeholder strong {
    color: #fff;
    font-size: 23px;
    letter-spacing: 0.14em;
}

.renewal-news__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 21px 20px 22px;
}

.renewal-news__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 13px;
}

.renewal-news__meta time {
    color: #778079;
    font-size: 11px;
    letter-spacing: 0.06em;
}

.renewal-news__category {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 9px;
    color: var(--renewal-green-dark);
    background: #e8f5ee;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.renewal-news__title {
    margin: 0;
    color: var(--renewal-black);
    font-size: 17px;
    line-height: 1.6;
    letter-spacing: 0.03em;
}

.renewal-news__excerpt {
    margin: 13px 0 0;
    color: #59645d;
    font-size: 12px;
    line-height: 1.8;
}

.renewal-news__more {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    align-self: flex-end;
    margin-top: auto;
    padding-top: 20px;
    color: var(--renewal-green-dark);
    font-size: 11px;
    font-weight: 700;
}

.renewal-news__more span {
    transition: transform 0.25s ease;
}

.renewal-news__card:hover .renewal-news__more span {
    transform: translateX(5px);
}

.renewal-news__empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 45px 24px;
    border: 1px solid #d7ddda;
    background: #fff;
    color: #68716b;
    text-align: center;
}

.renewal-text-link {
    display: inline-flex;
    gap: 18px;
    align-items: center;
    margin-top: 34px;
    color: var(--renewal-black);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.08em;
}

.renewal-text-link span {
    color: var(--renewal-green);
}

.renewal-movie__frame {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    background: var(--renewal-black);
    box-shadow: 24px 24px 0 var(--renewal-green);
}

.renewal-movie__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.renewal-movie__caption {
    margin: 40px 0 0;
    color: #68716b;
    font-size: 12px;
    letter-spacing: 0.15em;
}


/* ========================================
   タイル
======================================== */

.renewal-links {
    position: relative;
    padding: 70px 0 90px;
    background: #ffffff;
}

.renewal-links::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(0, 138, 68, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 138, 68, 0.045) 1px,
            transparent 1px
        );
    background-size: 48px 48px;
    content: "";
    pointer-events: none;
}

/* タイル部分だけ左右の余白を小さくする */
.renewal-links .renewal-container {
    position: relative;
    z-index: 1;
    width: min(1480px, calc(100% - 32px));
}

.renewal-links__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "company feature"
        "dx recruit";
    gap: 18px;
}

.renewal-tile {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    color: #fff;
    background: #111;
    text-decoration: none;
}

.renewal-tile--company {
    grid-area: company;
}

.renewal-tile--feature {
    grid-area: feature;
}

.renewal-tile--dx {
    grid-area: dx;
}

.renewal-tile--recruit {
    grid-area: recruit;
}

.renewal-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(.2, .7, .2, 1);
}

.renewal-tile__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.42) 0%,
            rgba(0, 0, 0, 0.18) 32%,
            rgba(0, 0, 0, 0.04) 62%,
            rgba(0, 0, 0, 0) 100%
        );
    transition: background 0.35s ease;
}

.renewal-tile::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    content: "";
    pointer-events: none;
}

.renewal-tile__content {
    position: absolute;
    z-index: 2;
    right: 30px;
    bottom: 28px;
    left: 30px;
}

.renewal-tile__en {
    margin: 0 0 10px;
    color: var(--renewal-green-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.renewal-tile h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(26px, 2vw, 38px);
    line-height: 1.35;
    letter-spacing: 0.05em;
}

.renewal-tile__arrow {
    position: absolute;
    right: 0;
    bottom: 2px;
    font-size: 26px;
    transition: transform 0.25s ease;
}

.renewal-tile:hover img {
    transform: scale(1.06);
}

.renewal-tile:hover .renewal-tile__shade {
    background:
        linear-gradient(
            to top,
            rgba(0, 110, 55, 0.50) 0%,
            rgba(0, 110, 55, 0.18) 38%,
            rgba(0, 0, 0, 0.02) 72%,
            rgba(0, 0, 0, 0) 100%
        );
}

.renewal-tile:hover .renewal-tile__arrow {
    transform: translateX(7px);
}

.renewal-links__contact-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.renewal-links__contact {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    min-height: 58px;
    padding: 14px 26px;
    color: #fff;
    background: var(--renewal-green);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: 0.25s ease;
}

.renewal-links__contact:hover {
    color: var(--renewal-green);
    background: #fff;
}


/* ========================================
   トップページでは既存CTAを非表示
======================================== */

body.home .cta {
    display: none;
}


/* ========================================
   トップページ用 新フッター
   緑ベース
======================================== */

.renewal-footer {
    position: relative;
    color: #ffffff;
    background: #075c33;
}

.renewal-footer a {
    color: #ffffff;
    text-decoration: none;
}

.renewal-footer__top {
    position: relative;
    border-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    background: #0a6f3d;
}

.renewal-footer__top::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.24) 15%,
            #7be0a9 50%,
            rgba(255, 255, 255, 0.24) 85%,
            transparent 100%
        );
    content: "";
}

.renewal-footer__top-inner {
    padding: 38px 0 32px;
}

.renewal-footer__brand {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
}

.renewal-footer__logo img {
    display: block;
    width: 220px;
    height: auto;
}

.renewal-footer__address {
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: 0.04em;
    text-align: right;
}

.renewal-footer__main {
    padding: 60px 0 56px;
    background:
        linear-gradient(
            180deg,
            #075c33 0%,
            #064c2b 100%
        );
}

.renewal-footer__nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 32px;
}

.renewal-footer__group h3 {
    margin: 0 0 7px;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

.renewal-footer__group p {
    margin: 0 0 20px;
    color: #9be8bd;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.renewal-footer__group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.renewal-footer__group li + li {
    margin-top: 11px;
}

.renewal-footer__group a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.8;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.renewal-footer__group a:hover {
    color: #ffffff;
    opacity: 1;
}

.renewal-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    background: #008a44;
}

.renewal-footer__bottom-inner {
    padding: 18px 0;
}

.renewal-footer__copy {
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    letter-spacing: 0.05em;
}


/* ========================================
   タブレット
======================================== */

@media screen and (max-width: 1024px) {

    .renewal-container {
        width: min(calc(100% - 48px), 960px);
    }

    .renewal-header__inner {
        min-height: 78px;
    }

    .renewal-header__logo {
        width: 220px;
        padding: 16px 20px;
    }

    .renewal-header__logo img {
        width: 175px;
    }

    .renewal-header__nav .jp {
        font-size: 14px;
    }

    .renewal-header__nav .en {
        display: none;
    }

    .renewal-header__contact {
        width: 145px;
        font-size: 14px;
    }

    .renewal-information__grid {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .renewal-news__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .renewal-news__title {
        font-size: 16px;
    }

    .renewal-links .renewal-container {
        width: calc(100% - 28px);
    }

    .renewal-links__grid {
        gap: 16px;
    }

    .renewal-tile__content {
        right: 24px;
        bottom: 22px;
        left: 24px;
    }

    .renewal-tile h2 {
        font-size: 27px;
    }

    .renewal-footer__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 28px;
    }

    .renewal-footer__brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .renewal-footer__address {
        font-size: 14px;
        text-align: left;
    }

    .renewal-footer__group h3 {
        font-size: 21px;
    }

    .renewal-footer__group a {
        font-size: 15px;
    }
}


/* ========================================
   スマートフォン
======================================== */

@media screen and (max-width: 767px) {

    .renewal-container {
        width: calc(100% - 36px);
    }

    .renewal-header__inner {
        min-height: 68px;
    }

    .renewal-header__logo {
        width: auto;
        padding: 13px 16px;
        border-right: 0;
    }

    .renewal-header__logo img {
        width: 155px;
    }

    .renewal-header__nav,
    .renewal-header__contact {
        display: none;
    }

    .renewal-menu-button {
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: center;
        justify-content: center;
        width: 68px;
        margin-left: auto;
        padding: 0;
        border: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.22);
        background: transparent;
    }

    .renewal-menu-button span {
        display: block;
        width: 25px;
        height: 1px;
        background: #fff;
    }

    .renewal-hero {
        width: 100%;
        aspect-ratio: 1448 / 1086;
        max-height: calc(100svh - 68px);
    }

    .renewal-hero__caption {
        left: 14px;
        bottom: 28px;
        gap: 10px;
        max-width: calc(100% - 28px);
        padding: 10px 12px 11px;
        border-radius: 8px;
    }

    .renewal-hero__caption-num {
        margin-top: 2px;
        font-size: 8px;
    }

    .renewal-hero__caption-label {
        gap: 4px 8px;
        margin-bottom: 4px;
    }

    .renewal-hero__caption-en {
        font-size: 8px;
        letter-spacing: 0.10em;
    }

    .renewal-hero__caption-jp {
        font-size: 9px;
        line-height: 1.35;
    }

    .renewal-hero__caption-text {
        font-size: 14px;
        line-height: 1.35;
        letter-spacing: 0.05em;
    }

    .renewal-information {
        padding: 76px 0;
    }

    .renewal-information__grid {
        gap: 70px;
    }

    .renewal-section-heading h2 {
        font-size: 27px;
    }

    .renewal-news__list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .renewal-news__card > a {
        display: grid;
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .renewal-news__image {
        height: 100%;
        min-height: 190px;
        aspect-ratio: auto;
    }

    .renewal-news__body {
        padding: 18px 17px 19px;
    }

    .renewal-news__title {
        font-size: 16px;
    }

    .renewal-news__excerpt {
        font-size: 11px;
    }

    .renewal-news__more {
        padding-top: 15px;
    }

    .renewal-movie__frame {
        box-shadow: 10px 10px 0 var(--renewal-green);
    }

    .renewal-links {
        padding: 58px 0 70px;
    }

    .renewal-links .renewal-container {
        width: calc(100% - 24px);
    }

    .renewal-links__grid {
        display: block;
    }

    .renewal-tile {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        margin-bottom: 14px;
        aspect-ratio: 16 / 9;
    }

    .renewal-tile__content {
        right: 22px;
        bottom: 22px;
        left: 22px;
    }

    .renewal-tile__en {
        font-size: 10px;
    }

    .renewal-tile h2 {
        font-size: 27px;
    }

    .renewal-tile__arrow {
        font-size: 23px;
    }

    .renewal-links__contact-wrap {
        justify-content: stretch;
    }

    .renewal-links__contact {
        width: 100%;
        font-size: 14px;
    }

    .renewal-footer__top-inner {
        padding: 30px 0 26px;
    }

    .renewal-footer__logo img {
        width: 190px;
    }

    .renewal-footer__address {
        font-size: 13px;
        line-height: 1.8;
    }

    .renewal-footer__main {
        padding: 46px 0 40px;
    }

    .renewal-footer__nav {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .renewal-footer__group h3 {
        font-size: 21px;
    }

    .renewal-footer__group p {
        margin-bottom: 15px;
        font-size: 11px;
    }

    .renewal-footer__group a {
        font-size: 15px;
    }

    .renewal-footer__bottom-inner {
        padding: 16px 12px;
    }

    .renewal-footer__copy {
        font-size: 11px;
        line-height: 1.7;
    }
}

/* ========================================
   トップページ スマートフォン画像最適化
======================================== */

@media screen and (max-width: 767px) {

    .renewal-hero {
        width: 100%;
        aspect-ratio: 1448 / 1086;
        max-height: calc(100svh - 68px);
        min-height: 0;
    }

    .renewal-hero__slide img {
        width: 100%;
        height: 100% !important;
        object-fit: contain;
        object-position: center center;
    }

    .renewal-news__card > a {
        grid-template-columns: minmax(118px, 36%) minmax(0, 1fr);
    }

    .renewal-news__image {
        min-height: 205px;
    }

    .renewal-news__thumbnail {
        width: 100%;
        height: 100% !important;
        object-fit: cover;
        object-position: center;
    }

    .renewal-movie__frame {
        width: calc(100% - 10px);
        margin-right: 10px;
    }

    .renewal-tile {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .renewal-tile img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100% !important;
        object-fit: cover;
        object-position: center;
    }

    .renewal-tile--company img,
    .renewal-tile--feature img,
    .renewal-tile--dx img,
    .renewal-tile--recruit img {
        object-position: center center;
    }
}

/* ========================================
   最新YouTube動画
======================================== */

.renewal-movie__frame--latest-youtube {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%;
    background: var(--renewal-black);
    box-shadow: 24px 24px 0 var(--renewal-green);
}

.renewal-movie__frame--latest-youtube iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media screen and (max-width: 767px) {

    .renewal-movie__frame--latest-youtube {
        width: calc(100% - 10px);
        margin-right: 10px;
        box-shadow: 10px 10px 0 var(--renewal-green);
    }
}

/* ========================================
   タイル内テキストバランス調整
======================================== */

/* 英字見出し全体を少し引き締める */
.renewal-tile__en {
    line-height: 1.35;
    letter-spacing: 0.12em;
}

/* BIM/CIM・建設DXだけ長いため個別調整 */
.renewal-tile--dx .renewal-tile__en {
    max-width: 100%;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* 日本語見出しとの間隔も少し詰める */
.renewal-tile--dx .renewal-tile__content {
    right: 26px;
    left: 26px;
}

.renewal-tile--dx h2 {
    font-size: clamp(24px, 1.8vw, 34px);
    letter-spacing: 0.03em;
}

/* タブレット */
@media screen and (max-width: 1024px) {

    .renewal-tile--dx .renewal-tile__en {
        font-size: 9px;
        letter-spacing: 0.06em;
    }

    .renewal-tile--dx h2 {
        font-size: 24px;
    }
}

/* スマートフォン */
@media screen and (max-width: 767px) {

    .renewal-tile--dx .renewal-tile__content {
        right: 20px;
        left: 20px;
    }

    .renewal-tile--dx .renewal-tile__en {
        font-size: 8px;
        line-height: 1.35;
        letter-spacing: 0.05em;
        white-space: normal;
    }

    .renewal-tile--dx h2 {
        font-size: 25px;
        line-height: 1.35;
    }
}

/* ========================================
   フッター英字見出し 1行表示調整
======================================== */

@media screen and (min-width: 1025px) {

    .renewal-footer__nav {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr)
            minmax(250px, 1.35fr)
            minmax(0, 1fr)
            minmax(0, 1fr);
        gap: 32px;
    }

    .renewal-footer__group p {
        white-space: nowrap;
    }

    .renewal-footer__group:nth-child(3) p {
        font-size: 11px;
        letter-spacing: 0.10em;
    }
}

/* ========================================
   NEWSカード 4件・2列×2段
======================================== */

.renewal-information__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(400px, 0.88fr);
    gap: 72px;
}

.renewal-news__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.renewal-news__image {
    aspect-ratio: 16 / 9;
}

.renewal-news__body {
    min-height: 118px;
    padding: 18px 18px 20px;
}

.renewal-news__meta {
    margin-bottom: 10px;
}

.renewal-news__title {
    font-size: 16px;
    line-height: 1.55;
}

@media screen and (max-width: 1024px) {

    .renewal-information__grid {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .renewal-news__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {

    .renewal-news__list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .renewal-news__card > a {
        display: grid;
        grid-template-columns: minmax(118px, 36%) minmax(0, 1fr);
    }

    .renewal-news__image {
        min-height: 150px;
        aspect-ratio: auto;
    }

    .renewal-news__body {
        min-height: 0;
        padding: 17px 16px 18px;
    }

    .renewal-news__title {
        font-size: 15px;
        line-height: 1.5;
    }
}

/* ========================================
   YouTube 4本ローテーション
   再生中は自動切替停止・クロスフェード
======================================== */

.renewal-movie {
    min-width: 0;
}

.renewal-movie-rotator {
    width: 100%;
}

.renewal-movie-rotator__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 2px solid var(--renewal-green);
    background: #08110d;
}

.renewal-movie-rotator__slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}

.renewal-movie-rotator__slide.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.renewal-movie__frame--rotator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #08110d;
    box-shadow: none;
}

.renewal-movie__frame--rotator iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.renewal-movie-rotator__pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.renewal-movie-rotator__dot {
    width: 13px;
    height: 13px;
    padding: 0;
    border: 2px solid var(--renewal-green);
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
}

.renewal-movie-rotator__dot.is-active {
    background: var(--renewal-green);
}

.renewal-movie__caption {
    margin-top: 20px;
    text-align: center;
}

@media screen and (max-width: 767px) {

    .renewal-movie-rotator__stage {
        border-width: 1px;
    }

    .renewal-movie-rotator__pagination {
        margin-top: 13px;
    }

    .renewal-movie-rotator__dot {
        width: 11px;
        height: 11px;
    }

    .renewal-movie__caption {
        margin-top: 16px;
    }
}

/* ========================================
   YouTube スライダーの○ 中央固定
   現行表示は旧Swiper版の
   .renewal-movie-slider__pagination を使用しているため
   こちらも明示的に中央配置
======================================== */

#renewal-movie-slider {
    position: relative;
}

/* 旧Swiper版 */
#renewal-movie-slider .renewal-movie-slider__pagination,
#renewal-movie-slider .swiper-pagination {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    min-height: 16px !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 12px auto 0 !important;
    padding: 0 !important;
    text-align: center !important;
    transform: none !important;
}

/* Swiper側がbulletに付けるmarginも消す */
#renewal-movie-slider
.renewal-movie-slider__pagination
.swiper-pagination-bullet,
#renewal-movie-slider
.swiper-pagination
.swiper-pagination-bullet {
    position: static !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

/* 新ローテーター版も念のため中央固定 */
.renewal-movie-rotator__pagination {
    display: flex !important;
    width: 100% !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 16px auto 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

@media screen and (max-width: 767px) {

    #renewal-movie-slider .renewal-movie-slider__pagination,
    #renewal-movie-slider .swiper-pagination {
        margin-top: 10px !important;
    }

    .renewal-movie-rotator__pagination {
        margin-top: 13px !important;
    }
}

/* ========================================
   TOP 新着情報カテゴリー 色分け
   新着情報一覧ページと同じ配色
======================================== */

.renewal-news__category {
    --top-news-category-color: #087344;
    --top-news-category-bg: #e8f5ee;

    color: var(--top-news-category-color) !important;
    border: 1px solid color-mix(
        in srgb,
        var(--top-news-category-color) 22%,
        transparent
    );
    background: var(--top-news-category-bg) !important;
}

.renewal-news__category--dx {
    --top-news-category-color: #176da8;
    --top-news-category-bg: #eaf5fc;
}

.renewal-news__category--company {
    --top-news-category-color: #087344;
    --top-news-category-bg: #e8f5ee;
}

.renewal-news__category--award {
    --top-news-category-color: #9a6b00;
    --top-news-category-bg: #fff5d9;
}

.renewal-news__category--recruit {
    --top-news-category-color: #b85718;
    --top-news-category-bg: #fff0e5;
}

.renewal-news__category--training {
    --top-news-category-color: #7353a6;
    --top-news-category-bg: #f2edfb;
}

.renewal-news__category--default {
    --top-news-category-color: #5e6b63;
    --top-news-category-bg: #f2f4f3;
}

/* ========================================
   TOP HERO 最終調整
   ・1画面内で画像全体を表示
   ・キャプションを左上へ移動
======================================== */

/*
 * ヘッダーが fixed のため、
 * HERO自体を1画面高にして上部にヘッダー分の余白を確保。
 * これでスクロールせず、画像全体を確認できる。
 */
.renewal-hero {
    width: 100%;
    height: 100svh;
    min-height: 0;
    max-height: none;
    padding-top: 92px;
    aspect-ratio: auto;
    background: var(--renewal-black);
}

.renewal-hero__slider,
.renewal-hero__slider .swiper-wrapper,
.renewal-hero__slide {
    width: 100%;
    height: 100%;
}

.renewal-hero__slide {
    background: var(--renewal-black);
}

/*
 * 画像を切り取らず、必ず全体表示。
 * 元画像の縦横比と画面比率が違う場合は
 * 左右または上下に余白が出る。
 */
.renewal-hero__slide img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/*
 * 文字が左上へ移るため、
 * 既存の「下からの黒グラデーション」を
 * 「上からのグラデーション」へ変更。
 */
.renewal-hero__slide::after {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    height: 34%;
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.48) 0%,
            rgba(0, 0, 0, 0.20) 45%,
            rgba(0, 0, 0, 0) 100%
        );
}

/*
 * 左下 → 左上
 */
.renewal-hero__caption {
    top: clamp(24px, 3vw, 42px);
    bottom: auto;
    left: clamp(22px, 3vw, 48px);
}

/* タブレット */
@media screen and (max-width: 1024px) {

    .renewal-hero {
        height: 100svh;
        min-height: 0;
        max-height: none;
        padding-top: 78px;
        aspect-ratio: auto;
    }

    .renewal-hero__caption {
        top: 24px;
        bottom: auto;
    }
}

/* スマートフォン */
@media screen and (max-width: 767px) {

    .renewal-hero {
        width: 100%;
        height: 100svh;
        min-height: 0;
        max-height: none;
        padding-top: 68px;
        aspect-ratio: auto;
    }

    .renewal-hero__slide img {
        width: 100%;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

    .renewal-hero__slide::after {
        top: 0;
        bottom: auto;
        height: 38%;
    }

    .renewal-hero__caption {
        top: 16px;
        bottom: auto;
        left: 14px;
        max-width: calc(100% - 28px);
    }
}

/* ========================================
   TOP HERO 黒余白改善版
   ・画像全体は切らない（contain）
   ・fixedヘッダー分は padding ではなく margin で逃がす
   ・余白は黒ではなく明るいニュートラル背景
   ・左上キャプションは維持
======================================== */

/*
 * 重要：
 * 画像全体を表示（contain）しながら、
 * 画面比率と画像比率が違う場合の余白を完全にゼロにすることはできません。
 * そのため余白自体を黒から明るい背景へ変更し、
 * 「黒帯」に見えない構成にします。
 */

.renewal-hero {
    width: 100% !important;
    height: calc(100svh - 92px) !important;
    min-height: 0 !important;
    max-height: none !important;

    margin-top: 92px !important;
    padding-top: 0 !important;

    aspect-ratio: auto !important;

    overflow: hidden !important;

    background:
        linear-gradient(
            135deg,
            #f7f9f8 0%,
            #eef3f0 100%
        ) !important;
}

.renewal-hero__slider,
.renewal-hero__slider .swiper-wrapper,
.renewal-hero__slide {
    width: 100% !important;
    height: 100% !important;
}

.renewal-hero__slide {
    position: relative !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background:
        linear-gradient(
            135deg,
            #f7f9f8 0%,
            #eef3f0 100%
        ) !important;
}

/*
 * 画像は絶対に切らない。
 */
.renewal-hero__slide img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
    object-position: center center !important;

    background: transparent !important;
}

/*
 * キャプション自身に黒背景があるため、
 * 画面上部を大きく暗くするグラデーションは不要。
 */
.renewal-hero__slide::after {
    display: none !important;
}

/*
 * 左上配置を維持。
 */
.renewal-hero__caption {
    top: clamp(18px, 2.2vw, 32px) !important;
    right: auto !important;
    bottom: auto !important;
    left: clamp(18px, 3vw, 40px) !important;

    max-width: min(620px, calc(100% - 36px)) !important;
}

/*
 * ページャーが明るい余白上に来ても見えるようにする。
 */
.renewal-hero .swiper-pagination-bullet {
    background: rgba(0, 70, 38, 0.42) !important;
    opacity: 1 !important;
}

.renewal-hero .swiper-pagination-bullet-active {
    background: var(--renewal-green) !important;
}


/* ========================================
   TABLET
======================================== */

@media screen and (max-width: 1024px) {

    .renewal-hero {
        height: calc(100svh - 78px) !important;

        margin-top: 78px !important;
        padding-top: 0 !important;
    }

    .renewal-hero__caption {
        top: 18px !important;
    }
}


/* ========================================
   SMARTPHONE
======================================== */

@media screen and (max-width: 767px) {

    /*
     * これまで
     * height:100svh + padding-top:68px
     * だったため、黒い領域が大きく見えていました。
     *
     * ヘッダー68pxを画面高から引き、
     * HERO本体だけを残します。
     */
    .renewal-hero {
        width: 100% !important;

        height: calc(100svh - 68px) !important;
        min-height: 0 !important;
        max-height: none !important;

        margin-top: 68px !important;
        padding-top: 0 !important;

        aspect-ratio: auto !important;

        background:
            linear-gradient(
                180deg,
                #f7f9f8 0%,
                #edf2ef 100%
            ) !important;
    }

    .renewal-hero__slider,
    .renewal-hero__slider .swiper-wrapper,
    .renewal-hero__slide {
        width: 100% !important;
        height: 100% !important;
    }

    .renewal-hero__slide {
        background:
            linear-gradient(
                180deg,
                #f7f9f8 0%,
                #edf2ef 100%
            ) !important;
    }

    .renewal-hero__slide img {
        width: 100% !important;
        height: 100% !important;

        object-fit: contain !important;
        object-position: center center !important;
    }

    .renewal-hero__caption {
        top: 12px !important;
        right: 14px !important;
        bottom: auto !important;
        left: 14px !important;

        max-width: fit-content !important;
    }

    .renewal-hero .swiper-pagination {
        bottom: 10px !important;
    }
}

/* ========================================
   TOP HERO 2000×1000 最終版
   ・画像比率 2:1 に表示枠を完全一致
   ・黒帯 / 明るい余白なし
   ・トリミングなし
   ・画面横幅いっぱい
   ・キャプション左上
======================================== */

/*
 * 2000×1000 = 2:1
 * HERO自体を2:1にすることで、
 * containによる余白もcoverによる切り取りも発生させない。
 */
.renewal-hero {
    position: relative !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin-top: 92px !important;
    padding: 0 !important;

    aspect-ratio: 2 / 1 !important;

    overflow: hidden !important;

    background: transparent !important;
}

.renewal-hero__slider,
.renewal-hero__slider .swiper-wrapper,
.renewal-hero__slide {
    width: 100% !important;
    height: 100% !important;
}

.renewal-hero__slide {
    position: relative !important;

    display: block !important;

    overflow: hidden !important;

    background: transparent !important;
}

/*
 * HEROと画像が同じ2:1なので、
 * 画像は100%表示され、基本的に切れない。
 */
.renewal-hero__slide img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center center !important;

    background: transparent !important;
}

/*
 * 余白対策で入れていた背景・グラデーションは完全に消す。
 */
.renewal-hero__slide::after {
    display: none !important;
}

/*
 * 左上キャプション
 */
.renewal-hero__caption {
    top: clamp(18px, 2vw, 32px) !important;
    right: auto !important;
    bottom: auto !important;
    left: clamp(18px, 3vw, 40px) !important;

    max-width: min(620px, calc(100% - 36px)) !important;
}

/*
 * 画像上にページャーが来るので白系へ戻す。
 */
.renewal-hero .swiper-pagination {
    bottom: 12px !important;
}

.renewal-hero .swiper-pagination-bullet {
    background: #ffffff !important;
    opacity: 0.55 !important;
}

.renewal-hero .swiper-pagination-bullet-active {
    background: var(--renewal-green-light) !important;
    opacity: 1 !important;
}


/* ========================================
   TABLET
======================================== */

@media screen and (max-width: 1024px) {

    .renewal-hero {
        width: 100% !important;
        height: auto !important;

        margin-top: 78px !important;
        padding: 0 !important;

        aspect-ratio: 2 / 1 !important;
    }

    .renewal-hero__caption {
        top: 16px !important;
        left: 18px !important;
    }
}


/* ========================================
   SMARTPHONE
   2000×1000を切らずに横幅いっぱい表示
======================================== */

@media screen and (max-width: 767px) {

    .renewal-hero {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin-top: 68px !important;
        padding: 0 !important;

        aspect-ratio: 2 / 1 !important;

        background: transparent !important;
    }

    .renewal-hero__slider,
    .renewal-hero__slider .swiper-wrapper,
    .renewal-hero__slide {
        width: 100% !important;
        height: 100% !important;
    }

    .renewal-hero__slide {
        background: transparent !important;
    }

    .renewal-hero__slide img {
        width: 100% !important;
        height: 100% !important;

        object-fit: cover !important;
        object-position: center center !important;
    }

    /*
     * スマホは画像高が低くなるので
     * キャプションをコンパクトにする。
     */
    .renewal-hero__caption {
        top: 8px !important;
        right: auto !important;
        bottom: auto !important;
        left: 10px !important;

        gap: 7px !important;

        max-width: calc(100% - 20px) !important;

        padding: 7px 9px 8px !important;

        border-radius: 7px !important;

        background: rgba(0, 0, 0, 0.42) !important;
    }

    .renewal-hero__caption-num {
        margin-top: 1px !important;
        font-size: 7px !important;
    }

    .renewal-hero__caption-label {
        gap: 3px 6px !important;
        margin-bottom: 2px !important;
    }

    .renewal-hero__caption-en {
        font-size: 7px !important;
    }

    .renewal-hero__caption-jp {
        font-size: 8px !important;
    }

    .renewal-hero__caption-text {
        font-size: 12px !important;
        line-height: 1.25 !important;
    }

    .renewal-hero .swiper-pagination {
        bottom: 5px !important;
    }

    .renewal-hero .swiper-pagination-bullet {
        width: 6px !important;
        height: 6px !important;
    }
}

