/* ========================================
   第一土木 企業情報ページ
======================================== */


/* ========================================
   社長メッセージ
======================================== */

.renewal-message--text-only {
    display: block;
}

.renewal-message__catch {
    position: relative;
    min-height: 0;
    margin-bottom: 42px;
    padding: 34px 38px 38px;
    overflow: hidden;
    color: #fff;
    border: 0;
    border-left: 5px solid #15b467;
    background:
        linear-gradient(
            135deg,
            #0c1811 0%,
            #050b08 100%
        );
}

.renewal-message__catch::after {
    position: absolute;
    right: -55px;
    bottom: -65px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(79, 210, 135, 0.1);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.renewal-message__catch-en {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 0 18px;
    color: #4fd287;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.75;
    letter-spacing: 0.22em;
}

.renewal-message__catch h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: 0.08em;
}

.renewal-message__catch h3 br {
    display: block;
}

.renewal-message__body {
    width: min(100%, 760px);
}

.renewal-message__body p {
    margin: 0;
    color: #414a44;
    font-size: 15px;
    line-height: 2.15;
    letter-spacing: 0.035em;
}

.renewal-message__body p + p {
    margin-top: 24px;
}

.renewal-message__name {
    padding-top: 18px;
    color: #101712 !important;
    font-weight: 700;
    text-align: right;
}


/* ========================================
   会社概要
======================================== */

.renewal-table-wrap {
    overflow-x: auto;
}

.renewal-company-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #dce2de;
}

.renewal-company-table th,
.renewal-company-table td {
    padding: 24px 28px;
    border-bottom: 1px solid #dce2de;
    text-align: left;
    vertical-align: top;
}

.renewal-company-table th {
    width: 210px;
    color: #fff;
    background: #075c33;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.renewal-company-table td {
    color: #3f4943;
    background: #fff;
    font-size: 15px;
    line-height: 1.9;
}

.renewal-office-list {
    display: grid;
    gap: 24px;
}

.renewal-office-list p {
    margin: 0;
}

.renewal-office-list strong {
    color: #087344;
    font-size: 16px;
}


/* ========================================
   資格所有者
======================================== */

.renewal-license-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.renewal-license-card {
    position: relative;
    min-height: 180px;
    padding: 30px 26px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(21, 180, 103, 0.24);
    background:
        linear-gradient(
            145deg,
            #101914 0%,
            #050b08 100%
        );
}

.renewal-license-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #15b467;
    content: "";
}

.renewal-license-card__number {
    margin: 0 0 18px;
    color: #4fd287;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.renewal-license-card__number span {
    margin-left: 5px;
    color: #fff;
    font-size: 18px;
}

.renewal-license-card h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0.04em;
}

.renewal-license-card__note {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}


/* ========================================
   沿革
======================================== */

.renewal-history {
    position: relative;
}

.renewal-history::before {
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 150px;
    width: 1px;
    background:
        linear-gradient(
            to bottom,
            #15b467,
            rgba(21, 180, 103, 0.15)
        );
    content: "";
}

.renewal-history dl {
    margin: 0;
}

.renewal-history__item {
    position: relative;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 60px;
    padding: 25px 0;
    border-bottom: 1px solid #dde3df;
}

.renewal-history__item::before {
    position: absolute;
    top: 33px;
    left: 145px;
    width: 11px;
    height: 11px;
    background: #15b467;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #15b467;
    content: "";
}

.renewal-history__item dt {
    color: #087344;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    text-align: right;
}

.renewal-history__item dd {
    margin: 0;
    color: #414a44;
    font-size: 15px;
    line-height: 1.85;
}


/* ========================================
   拠点一覧・本社
======================================== */

.renewal-head-office {
    display: grid;
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(310px, 0.8fr);
    overflow: hidden;
    background: #08110d;
}

.renewal-head-office__photo {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: #101914;
}

.renewal-head-office__photo::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(2, 8, 5, 0.78) 100%
        );
    content: "";
    pointer-events: none;
}

.renewal-head-office__photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.renewal-head-office:hover .renewal-head-office__photo img {
    transform: scale(1.025);
}

.renewal-head-office__photo-label {
    position: absolute;
    z-index: 2;
    right: 32px;
    bottom: 28px;
    left: 32px;
    color: #fff;
}

.renewal-head-office__photo-label span {
    display: block;
    margin-bottom: 8px;
    color: #4fd287;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.renewal-head-office__photo-label strong {
    display: block;
    color: #fff;
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: 0.05em;
}

.renewal-head-office__detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px 40px;
    color: #fff;
}

.renewal-head-office__en {
    margin: 0 0 10px;
    color: #4fd287;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.renewal-head-office__detail h3 {
    margin: 0 0 27px;
    color: #fff;
    font-size: 31px;
    line-height: 1.4;
    letter-spacing: 0.07em;
}

.renewal-head-office__address p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.9;
}

.renewal-head-office__address p + p {
    margin-top: 17px;
}

.renewal-head-office__map-link {
    display: inline-flex;
    gap: 22px;
    align-items: center;
    align-self: flex-start;
    margin-top: 28px;
    padding: 13px 18px;
    color: #fff;
    border: 1px solid rgba(79, 210, 135, 0.5);
    background: rgba(0, 138, 68, 0.12);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.renewal-head-office__map-link span {
    transition: transform 0.25s ease;
}

.renewal-head-office__map-link:hover {
    color: #fff;
    border-color: #15b467;
    background: #008a44;
}

.renewal-head-office__map-link:hover span {
    transform: translateX(5px);
}


/* ========================================
   Googleマップ
======================================== */

.renewal-head-office-map {
    position: relative;
    width: 100%;
    height: 480px;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid #dce2de;
    background: #e8ece9;
}

.renewal-head-office-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: 0;
}


/* ========================================
   支店一覧
======================================== */

.renewal-location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.renewal-location-card {
    padding: 32px 28px;
    border-top: 3px solid #087344;
    background: #f1f5f2;
}

.renewal-location-card__en {
    margin: 0 0 8px;
    color: #087344;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.renewal-location-card h3 {
    margin: 0 0 20px;
    color: #0b130e;
    font-size: 23px;
}

.renewal-location-card p {
    margin: 0;
    color: #46504a;
    font-size: 14px;
    line-height: 1.85;
}

.renewal-location-card p + p {
    margin-top: 16px;
}


/* ========================================
   グループ会社
======================================== */

.renewal-group-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.renewal-group-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce2de;
    background: #fff;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.renewal-group-card:hover {
    border-color: rgba(0, 138, 68, 0.5);
    box-shadow: 0 18px 34px rgba(5, 20, 12, 0.09);
    transform: translateY(-5px);
}

.renewal-group-card__image {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #08110d;
}

.renewal-group-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.renewal-group-card:hover .renewal-group-card__image img {
    transform: scale(1.04);
}

.renewal-group-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 30px 26px;
}

.renewal-group-card__head {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #dde3df;
}

.renewal-group-card__en {
    margin: 0 0 7px;
    color: #087344;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.renewal-group-card h3 {
    margin: 0;
    color: #08110d;
    font-size: 20px;
    line-height: 1.5;
}

.renewal-group-card__body > p {
    margin: 0;
    color: #4a534e;
    font-size: 14px;
    line-height: 1.9;
}

.renewal-group-card__contact {
    margin-top: auto !important;
    padding-top: 24px;
    color: #087344 !important;
    font-weight: 700;
}

.renewal-group-card__link {
    display: inline-flex;
    gap: 22px;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 24px;
    color: #087344;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.renewal-group-card__link span {
    transition: transform 0.25s ease;
}

.renewal-group-card__link:hover span {
    transform: translateX(5px);
}


/* ========================================
   タブレット
======================================== */

@media screen and (max-width: 1024px) {

    .renewal-message__body {
        width: 100%;
    }

    .renewal-license-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .renewal-head-office {
        grid-template-columns: 1fr;
    }

    .renewal-head-office__photo,
    .renewal-head-office__photo img {
        min-height: 390px;
    }

    .renewal-head-office-map {
        height: 420px;
    }

    .renewal-head-office-map iframe {
        min-height: 420px;
    }

    .renewal-location-grid {
        grid-template-columns: 1fr;
    }

    .renewal-group-grid {
        grid-template-columns: 1fr;
    }

    .renewal-group-card {
        display: grid;
        grid-template-columns:
            minmax(260px, 0.9fr)
            minmax(0, 1.1fr);
    }

    .renewal-group-card__image {
        height: 100%;
        aspect-ratio: auto;
    }
}


/* ========================================
   スマートフォン
======================================== */

@media screen and (max-width: 767px) {

    .renewal-message__catch {
        margin-bottom: 30px;
        padding: 27px 23px 30px;
        border-left-width: 4px;
    }

    .renewal-message__catch-en {
        margin-bottom: 14px;
        font-size: 10px;
        line-height: 1.7;
        letter-spacing: 0.17em;
    }

    .renewal-message__catch h3 {
        font-size: 24px;
        line-height: 1.7;
        letter-spacing: 0.05em;
    }

    .renewal-message__body p {
        font-size: 14px;
        line-height: 2;
    }

    .renewal-message__name {
        text-align: left;
    }

    .renewal-company-table th,
    .renewal-company-table td {
        display: block;
        width: 100%;
    }

    .renewal-company-table th {
        padding: 14px 18px;
        border-bottom: 0;
    }

    .renewal-company-table td {
        padding: 18px;
    }

    .renewal-license-grid {
        grid-template-columns: 1fr;
    }

    .renewal-license-card {
        min-height: 150px;
    }

    .renewal-history::before {
        left: 7px;
    }

    .renewal-history__item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 22px 0 22px 30px;
    }

    .renewal-history__item::before {
        top: 29px;
        left: 2px;
    }

    .renewal-history__item dt {
        text-align: left;
    }

    .renewal-head-office__photo,
    .renewal-head-office__photo img {
        min-height: 270px;
    }

    .renewal-head-office__photo-label {
        right: 20px;
        bottom: 20px;
        left: 20px;
    }

    .renewal-head-office__photo-label strong {
        font-size: 17px;
    }

    .renewal-head-office__detail {
        padding: 32px 24px;
    }

    .renewal-head-office__detail h3 {
        font-size: 27px;
    }

    .renewal-head-office__map-link {
        width: 100%;
        justify-content: space-between;
    }

    .renewal-head-office-map {
        height: 330px;
        margin-top: 14px;
    }

    .renewal-head-office-map iframe {
        min-height: 330px;
    }

    .renewal-location-card {
        padding: 28px 24px;
    }

    .renewal-group-card {
        display: block;
    }

    .renewal-group-card__image {
        aspect-ratio: 16 / 10;
    }

    .renewal-group-card__body {
        padding: 27px 23px;
    }
}

/* ========================================
   企業情報 スマートフォン画像最適化
======================================== */

@media screen and (max-width: 767px) {

    .renewal-head-office__photo {
        width: 100%;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .renewal-head-office__photo img {
        width: 100%;
        height: 100% !important;
        min-height: 0;
        object-fit: cover;
        object-position: center center;
    }

    .renewal-head-office__photo-label {
        right: 18px;
        bottom: 17px;
        left: 18px;
    }

    .renewal-head-office-map,
    .renewal-head-office-map iframe {
        height: 300px;
        min-height: 300px;
    }

    .renewal-group-grid {
        gap: 18px;
    }

    .renewal-group-card {
        display: flex;
        width: 100%;
        flex-direction: column;
    }

    .renewal-group-card__image {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
        overflow: hidden;
    }

    .renewal-group-card__image img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100% !important;
        max-width: none;
        object-fit: cover;
        object-position: center;
    }

    .renewal-group-card:nth-child(1)
    .renewal-group-card__image img {
        object-position: center 48%;
    }

    .renewal-group-card:nth-child(2)
    .renewal-group-card__image img {
        object-position: center;
    }

    .renewal-group-card:nth-child(3)
    .renewal-group-card__image img {
        object-position: center 45%;
    }

    .renewal-group-card__body {
        width: 100%;
        min-height: 0;
        padding: 24px 21px 25px;
    }

    .renewal-group-card__head {
        margin-bottom: 17px;
        padding-bottom: 15px;
    }

    .renewal-group-card h3 {
        font-size: 18px;
        overflow-wrap: anywhere;
    }

    .renewal-group-card__body > p {
        font-size: 13px;
    }

    .renewal-group-card__contact,
    .renewal-group-card__link {
        margin-top: 20px !important;
        padding-top: 0;
    }
}

/* ========================================
   企業情報ページ 配色・改行調整
   白＋緑ベース
======================================== */

/* 社長メッセージ */
.renewal-message__catch {
    color: var(--renewal-text, #17231c);
    border: 1px solid #d8e4dc;
    border-left: 5px solid #008a44;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #eef7f2 100%
        );
    box-shadow: 0 14px 34px rgba(5, 77, 41, 0.08);
}

.renewal-message__catch::after {
    border-color: rgba(0, 138, 68, 0.12);
}

.renewal-message__catch-en {
    color: #008a44;
    overflow-wrap: normal;
    word-break: keep-all;
}

.renewal-message__catch h3 {
    max-width: 760px;
    color: #17231c;
    overflow-wrap: normal;
    word-break: keep-all;
}

.renewal-message__catch h3 br {
    display: none;
}

.renewal-message__body p {
    color: #414a44;
    overflow-wrap: break-word;
    word-break: normal;
}


/* 資格所有者 */
.renewal-license-card {
    color: #17231c;
    border: 1px solid #d8e4dc;
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #eef7f2 100%
        );
    box-shadow: 0 10px 24px rgba(5, 77, 41, 0.06);
}

.renewal-license-card__number {
    color: #008a44;
}

.renewal-license-card__number span {
    color: #075c33;
}

.renewal-license-card h3 {
    color: #17231c;
}

.renewal-license-card__note {
    color: #68766d;
}


/* 本社 */
.renewal-head-office {
    border: 1px solid #d8e4dc;
    background: #ffffff;
}

.renewal-head-office__photo {
    background: #eef3ef;
}

.renewal-head-office__detail {
    color: #17231c;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #eef7f2 100%
        );
}

.renewal-head-office__en {
    color: #008a44;
}

.renewal-head-office__detail h3 {
    color: #17231c;
}

.renewal-head-office__address p {
    color: #4f5d54;
}

.renewal-head-office__map-link {
    color: #075c33;
    border-color: rgba(0, 138, 68, 0.45);
    background: rgba(0, 138, 68, 0.07);
}

.renewal-head-office__map-link:hover {
    color: #fff;
    border-color: #008a44;
    background: #008a44;
}


/* 会社概要・沿革・支店 */
.renewal-company-table th {
    color: #fff;
    background: #075c33;
}

.renewal-company-table td {
    color: #3f4943;
    background: #fff;
}

.renewal-location-card {
    border: 1px solid #d8e4dc;
    border-top: 4px solid #008a44;
    background: #f5faf7;
}

.renewal-history__item dd,
.renewal-location-card p,
.renewal-group-card__body > p {
    overflow-wrap: break-word;
    word-break: normal;
}


/* グループ会社 */
.renewal-group-card {
    border-color: #d8e4dc;
    background: #fff;
}

.renewal-group-card__image {
    background: #eef3ef;
}

.renewal-group-card h3 {
    color: #17231c;
}


/* 不自然な単語途中の折返しを抑制 */
.renewal-section-title h2,
.renewal-license-card h3,
.renewal-location-card h3,
.renewal-group-card h3,
.renewal-head-office__detail h3 {
    overflow-wrap: normal;
    word-break: keep-all;
}


/* スマートフォン */
@media screen and (max-width: 767px) {

    .renewal-message__catch-en {
        letter-spacing: 0.1em;
    }

    .renewal-message__catch h3 {
        font-size: 23px;
        line-height: 1.65;
        word-break: normal;
    }

    .renewal-message__body p {
        line-height: 1.95;
    }

    .renewal-company-table td,
    .renewal-location-card p,
    .renewal-group-card__body > p {
        overflow-wrap: anywhere;
    }
}
