/* =========================
   Company Intro
========================= */

.company-intro {
    padding-block: clamp(56px, 7vw, 96px);
    background-color: var(--color-bg);
}

.company-intro__inner {
    width: 100%;
}

/* -------------------------
   見出し
------------------------- */

.company-intro__title {
    width: calc(100% - 60px);
    max-width: 1200px;
    margin: 0 auto clamp(40px, 5vw, 64px);

    color: #263238;
    font-size: clamp(2.4rem, 3vw, 3.6rem);
    font-weight: 500;
    line-height: 1.5;
}

/* -------------------------
   左右レイアウト
------------------------- */

.company-intro__body {
    --company-side-space: clamp(30px, 6.95vw, 100px);
    --company-gap: clamp(32px, 5vw, 72px);
    --company-column-width:
        min(
            600px,
            calc(
                (
                    100%
                    - var(--company-side-space)
                    - var(--company-gap)
                ) / 2
            )
        );

    display: grid;
    grid-template-columns:
        minmax(0, var(--company-column-width))
        minmax(0, var(--company-column-width));

    justify-content: space-between;
    align-items: stretch;

    width: 100%;
    box-sizing: border-box;
    padding-left: var(--company-side-space);
}

/* -------------------------
   左側
------------------------- */

.company-intro__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.company-intro__text {
    margin: 0;

    color: #263238;
    font-size: 1rem;
    line-height: 2;
}

.company-intro__illustration {
    margin-top: auto;
    padding-top: clamp(24px, 3vw, 40px);
}

.company-intro__illustration img {
    display: block;
    width: 100%;
    height: auto;
}

/* -------------------------
   右側の社屋写真
------------------------- */

.company-intro__image {
    width: 100%;
    min-width: 0;
    overflow: hidden;

    border-radius: 20px 0 0 20px;
}

.company-intro__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   Company Intro / Tablet
========================= */

@media (min-width: 701px) and (max-width: 1210px) {

    .company-intro__title {
        width: calc(100% - 48px);
    }

    .company-intro__body {
        --company-side-space: clamp(24px, 5vw, 56px);
        --company-gap: clamp(28px, 4vw, 48px);

        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);
    }

    .company-intro__text {
        font-size: 1rem;
        line-height: 1.9;
    }

    .company-intro__text br {
        display: none;
    }

    .company-intro__illustration {
        padding-top: 24px;
    }

    .company-intro__image {
        border-radius: 16px 0 0 16px;
    }
}

/* =========================
   Company Intro / Smartphone
========================= */

@media (max-width: 700px) {

    .company-intro {
        padding-block: 48px;
    }

    .company-intro__title {
        width: calc(100% - 40px);
        margin-bottom: 32px;

        font-size: 2rem;
    }

    .company-intro__body {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 32px;

        width: 100%;
        padding-left: 0;
    }

    .company-intro__content {
        width: calc(100% - 40px);
        margin-inline: auto;
    }

    .company-intro__text {
        font-size: 1rem;
        line-height: 1.9;
    }

    .company-intro__text br {
        display: none;
    }

    .company-intro__illustration {
        margin-top: 28px;
        padding-top: 0;
    }

    .company-intro__illustration img {
        width: 100%;
    }

    .company-intro__image {
        width: calc(100% - 40px);
        margin-inline: auto;

        border-radius: 16px;
    }

    .company-intro__image img {
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }
}

/* =========================
   Company Values
========================= */

.company-values {
    padding-block: clamp(56px, 7vw, 96px);
    background-color: #83bbd8;
}

.company-values__inner {
    width: calc(100% - 60px);
    max-width: 1200px;
    margin-inline: auto;
}

/* -------------------------
   見出し
------------------------- */

.company-values__title {
    margin: 0 0 clamp(32px, 4vw, 48px);

    color: #fff;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.4;
}

/* -------------------------
   カード一覧
------------------------- */

.company-values__grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: clamp(28px, 4vw, 40px)
         clamp(28px, 4vw, 40px);
}

.company-values__card {
    display: grid;
    grid-template-columns:
        minmax(100px, 150px)
        minmax(0, 1fr);

    column-gap: clamp(24px, 3vw, 36px);
    align-items: center;

    box-sizing: border-box;
    min-width: 0;
    padding: clamp(24px, 3vw, 36px);

    background-color: #fff;
    border-radius: 20px;
}

/* -------------------------
   アイコン
------------------------- */

.company-values__icon {
    min-width: 0;
}

.company-values__icon img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* -------------------------
   文章
------------------------- */

.company-values__content {
    min-width: 0;
}

.company-values__card-title {
    margin: 0 0 16px;

    color: #263238;
    font-size: clamp(1.5rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.4;
}

.company-values__text {
    margin: 0;

    color: #263238;
    font-size: 1rem;
    line-height: 1.9;
}

/* =========================
   Company Values / Tablet
========================= */

@media (min-width: 701px) and (max-width: 1210px) {

    .company-values__inner {
        width: calc(100% - 48px);
    }

    .company-values__grid {
        gap: 28px;
    }

    .company-values__card {
        grid-template-columns:
            minmax(88px, 120px)
            minmax(0, 1fr);

        column-gap: 24px;
        padding: 24px;
    }

    .company-values__card-title {
        font-size: clamp(1.6rem, 2.3vw, 2rem);
    }

    .company-values__text {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* =========================
   Company Values / Smartphone
========================= */

@media (max-width: 700px) {

    .company-values {
        padding-block: 48px;
    }

    .company-values__inner {
        width: calc(100% - 40px);
    }

    .company-values__title {
        margin-bottom: 28px;
        font-size: 2.4rem;
    }

    .company-values__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .company-values__card {
        display: block;
        padding: 20px;
        border-radius: 16px;
    }

    .company-values__icon {
        display: none;
    }

    .company-values__card-title {
        margin-bottom: 10px;
        font-size: 1.7rem;
    }

    .company-values__text {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* =========================
   Company Profile
========================= */

.company-profile {
    padding-block: clamp(64px, 8vw, 112px);
    background-color: var(--color-bg);
}

.company-profile__inner {
    width: calc(100% - 60px);
    max-width: 1180px;
    margin-inline: auto;
}

/* -------------------------
   共通見出し
------------------------- */

.company-profile__title {
    margin: 0 0 20px;

    color: #263238;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.4;
}

/* -------------------------
   会社概要
------------------------- */

.company-profile__list {
    margin: 0;
}

.company-profile__row {
    display: grid;
    grid-template-columns:
        180px
        minmax(0, 1fr);

    border-top: 1px dashed #83bbd8;
}

.company-profile__row:last-child {
    border-bottom: 1px dashed #83bbd8;
}

.company-profile__row dt,
.company-profile__row dd {
    box-sizing: border-box;
    margin: 0;
    padding-block: 16px;

    color: #263238;
    font-size: 1.5rem;
    line-height: 1.8;
}

.company-profile__row dt {
    padding-right: 24px;
    font-weight: 500;
}

.company-profile__row dd {
    min-width: 0;
}

.company-profile__row a {
    color: inherit;
    text-decoration: none;
}

.company-profile__row a:hover {
    text-decoration: underline;
}

.company-profile__detail-list {
    display: grid;
    row-gap: 4px;

    margin: 0;
    padding: 0;
    list-style: none;
}

/* -------------------------
   沿革
------------------------- */

.company-history {
    margin-top: clamp(64px, 8vw, 104px);
}

.company-history__list {
    margin: 0;
}

.company-history__row {
    display: grid;
    grid-template-columns:
        180px
        minmax(0, 1fr);

    border-top: 1px dashed #83bbd8;
}

.company-history__row:last-child {
    border-bottom: 1px dashed #83bbd8;
}

.company-history__row dt,
.company-history__row dd {
    margin: 0;
    padding-block: 16px;

    color: #263238;
    font-size: 1.5rem;
    line-height: 1.8;
}

.company-history__row dt {
    padding-right: 24px;
    font-weight: 500;
}

/* =========================
   Company Profile / Tablet
========================= */

@media (min-width: 701px) and (max-width: 1210px) {

    .company-profile__inner {
        width: calc(100% - 48px);
    }

    .company-profile__row,
    .company-history__row {
        grid-template-columns:
            150px
            minmax(0, 1fr);
    }

    .company-profile__row dt,
    .company-profile__row dd,
    .company-history__row dt,
    .company-history__row dd {
        font-size: 1.4rem;
    }
}

/* =========================
   Company Profile / Smartphone
========================= */

@media (max-width: 700px) {

    .company-profile {
        padding-block: 48px;
    }

    .company-profile__inner {
        width: calc(100% - 40px);
    }

    .company-profile__title {
        margin-bottom: 16px;
        font-size: 2.4rem;
    }

    .company-profile__row,
    .company-history__row {
        grid-template-columns: 1fr;
    }

    .company-profile__row dt,
    .company-history__row dt {
        padding: 14px 0 4px;

        color: var(--color-primary);
        font-size: 1.3rem;
        font-weight: 700;
    }

    .company-profile__row dd,
    .company-history__row dd {
        padding: 0 0 14px;
        font-size: 1.3rem;
        line-height: 1.8;
    }

    .company-history {
        margin-top: 56px;
    }
}