/* ========================================
   第一土木 下層ページ共通
======================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 170px;
}

.renewal-page {
    overflow: visible;
    color: #151a17;
    background: #fff;
}


/* ========================================
   ページタイトル
======================================== */

.renewal-page-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 430px;
    padding: 170px 0 70px;
    overflow: hidden;
    color: #fff;
    background-color: #050b08;
    background-position: center;
    background-size: cover;
}

.renewal-page-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(2, 9, 6, 0.9) 0%,
            rgba(2, 9, 6, 0.58) 48%,
            rgba(2, 9, 6, 0.25) 100%
        );
}

.renewal-page-hero__inner {
    position: relative;
    z-index: 1;
}

.renewal-page-hero__en {
    margin: 0 0 14px;
    color: #4fd287;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.25em;
}

.renewal-page-hero__title {
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.25;
    letter-spacing: 0.08em;
}


/* ========================================
   パンくず
======================================== */

.renewal-breadcrumb {
    border-bottom: 1px solid #dfe4e1;
    background: #fff;
}

.renewal-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-height: 64px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.renewal-breadcrumb__item {
    color: #7b847e;
    font-size: 12px;
}

.renewal-breadcrumb__item:not(:last-child)::after {
    margin-left: 8px;
    color: #aeb5b1;
    content: "/";
}

.renewal-breadcrumb__item a {
    color: #445049;
    text-decoration: none;
}

.renewal-breadcrumb__item a:hover {
    color: #008a44;
}


/* ========================================
   下層ページ全体レイアウト
======================================== */

.renewal-page__layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 900px);
    gap: 50px;
    align-items: start;
    justify-content: center;
    padding-top: 90px;
    padding-bottom: 120px;
    overflow: visible;
}

.renewal-page__sidebar {
    position: relative;
    align-self: stretch;
    min-width: 0;
    overflow: visible;
}

.renewal-page__content {
    width: 100%;
    max-width: 900px;
    min-width: 0;
    overflow: visible;
}


/* ========================================
   PAGE MENU
======================================== */

.renewal-subnav {
    position: sticky;
    z-index: 20;
    top: 120px;
    align-self: start;
    width: 100%;
    overflow: hidden;
    border: 1px solid #d8e4dc;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(5, 77, 41, 0.08);
}

.renewal-subnav__heading {
    margin: 0;
    padding: 24px 26px;
    color: #008a44;
    border-bottom: 1px solid #d8e4dc;
    background: #eef7f2;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.16em;
}

.renewal-subnav__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.renewal-subnav__item + .renewal-subnav__item {
    border-top: 1px solid #e2e9e4;
}

.renewal-subnav__item a {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 20px 26px;
    color: #17231c;
    background: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        padding-left 0.25s ease;
}

.renewal-subnav__item a:hover,
.renewal-subnav__item a:focus {
    color: #ffffff;
    background: #008a44;
    padding-left: 30px;
}

.renewal-subnav__arrow {
    flex-shrink: 0;
    color: #008a44;
    font-size: 18px;
    font-weight: 700;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.renewal-subnav__item a:hover .renewal-subnav__arrow,
.renewal-subnav__item a:focus .renewal-subnav__arrow {
    color: #ffffff;
    transform: translateX(4px);
}


/* ========================================
   共通セクション
======================================== */

.renewal-content-section {
    scroll-margin-top: 170px;
}

.renewal-content-section + .renewal-content-section {
    margin-top: 120px;
}

.renewal-section-title {
    margin-bottom: 46px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dce2de;
}

.renewal-section-title__en {
    margin: 0 0 8px;
    color: #008a44;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.renewal-section-title h2 {
    margin: 0;
    color: #0a100c;
    font-size: 34px;
    line-height: 1.4;
    letter-spacing: 0.08em;
}


/* ========================================
   タブレット
======================================== */

@media screen and (max-width: 1024px) {

    html {
        scroll-padding-top: 130px;
    }

    .renewal-page__layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 38px;
    }

    .renewal-subnav {
        top: 100px;
    }

    .renewal-content-section {
        scroll-margin-top: 130px;
    }
}


/* ========================================
   スマートフォン
======================================== */

@media screen and (max-width: 767px) {

    html {
        scroll-padding-top: 90px;
    }

    .renewal-page-hero {
        min-height: 330px;
        padding: 130px 0 48px;
    }

    .renewal-page-hero__title {
        font-size: 38px;
    }

    .renewal-breadcrumb__list {
        min-height: 54px;
    }

    .renewal-page__layout {
        display: block;
        padding-top: 50px;
        padding-bottom: 80px;
    }

    .renewal-page__sidebar {
        margin-bottom: 60px;
    }

    .renewal-subnav {
        position: static;
    }

    .renewal-subnav__heading {
        padding: 20px 22px;
        font-size: 14px;
    }

    .renewal-subnav__item a {
        min-height: 62px;
        padding: 18px 22px;
        font-size: 16px;
    }

    .renewal-content-section {
        scroll-margin-top: 90px;
    }

    .renewal-content-section + .renewal-content-section {
        margin-top: 80px;
    }

    .renewal-section-title {
        margin-bottom: 32px;
    }

    .renewal-section-title h2 {
        font-size: 28px;
    }
}