/* =================================================================
                        about / セクション全体
===================================================================*/

.about-us {
    position: relative; /* 背景色用の ::before を重ねるため相対位置 */
    width: 100%;
    height: auto;
    padding: 140px 0 140px; /* 上部余白 */
}

.about-us__inner {
    width: 100%;
    max-width: 1197px; /* 最大幅で中央寄せ */
    margin: 0 auto;
    padding: 0 80px 0 40px; /* 横の余白 */
}

.about-us__catch {
    width: 51%;
    min-width: 620px;
}

.about-us__catch h2 {
    font-size: var(--font-size-title-xxl);
    font-weight: 700;
    line-height: 1.75;
    color: var(--text-color-blue);
    padding-bottom: 60px;
}

.about-us__description {
    width: 51%;
    min-width: 640px;
    margin-left: auto;
    margin-bottom: 1rem;
    font-size: var(--font-size-body-lg);
    font-weight: 500;
}

.about-us__text {
    font-size: var(--font-size-body-lg);
    font-weight: 500;
    line-height: 2;
    padding-bottom: 1.33333em;
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {
    .about-us {
        padding: 80px 24px 60px;
    }

    .about-us__inner {
        width: 100%;
        margin: 0 auto;
        padding: initial; /* 横の余白解除 */
    }

    .about-us__catch {
        width: 100%;
        min-width: initial;
    }

    .about-us__catch h2 {
        padding-bottom: 20px;
    }

    .about-us__description {
        width: 100%;
        min-width: initial;
    }
}


/* =================================================================
                        features / ライゼンの特長
===================================================================*/

.features {
    width: 100%;
    background-color: var(--bg-color-light-gray);
}

.features__inner {    
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 60px;
}

.features__label {
    font-size: 14px;
    font-weight: bold;
    color: #004b87;
    margin-bottom: 10px;
}

.features__item {
    margin-bottom: 80px;
}

.features__item:last-child {
    margin-bottom: 0;
}

.feature {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6.7%;
}

.feature--reverse {
    flex-direction: row-reverse;
}

.feature__text {
    flex: 1;
}

.features__number {
    display: inline-block;
    padding: 0.2em 0.45em;
    margin-bottom: 0.5em;
    font-size: var(--font-size-body-md);
    font-weight: 700;
    border: 1px solid var(--text-color-black);
    border-radius: 8px;
    background-color: var(--text-color-white);
}

.feature__title {
    font-size: var(--font-size-title-xl);
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-color-blue);
    margin-bottom: 0.8em;
    padding-bottom: 0.533333em;
    border-bottom: 2px solid rgba(72, 72, 72, 0.4);
}

.feature__description {
    font-size: var(--font-size-body-md);
    font-weight: 500;
    line-height: 1.75;
    color: var(--text-color-gray);
    padding-bottom: 1em;
}

.feature__image {
    flex: 1;
}

.feature__image img,
.feature__chart {
    max-width: 100%;
    height: auto;
}

.feature__chart {
    width: 100%;
    margin: 50px auto 0;
    padding: 0 13.24%;
    text-align: center;
}

.feature__table {
    margin-bottom: 20px;
}

.feature__row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.feature__cell {
    flex: 1;
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {

    .feature {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .features__inner {
        padding: 0 24px;
    }
    .features__item {
        margin-bottom: 40px;
    }

    .feature__image img,
    .feature__chart {
        margin: 0 auto;
        width: 100%;
        max-width: 477px;
        height: auto;
    }

    .feature__chart {
        margin: 30px auto 0;
        padding: 0;
    }

    .feature__table {
        max-width: 447px;
        margin: 0 auto 20px;
        text-align: center;
    }

    .feature__text {
        width: 100%;
        min-width: initial;
    }
}
/* =================================================================
                        Reasons / 選ばれる理由
===================================================================*/

.reasons {
    width: 100%;
}

.reasons__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 60px;
    color: var(--text-color-gray);
}

.reasons__list {
    display: flex;
    flex-direction: column;
    gap: 100px;
    list-style: none;
    padding: 0 0 0 40px;
}

.reasons__item {
    position: relative;
    width: 100%;
    max-width: 860px;
    padding: 40px 60px;
    border: 2px solid var(--text-color-gray);
    background-color: var(--text-color-white);
}

.reasons__item:first-child {
    margin-right: auto;
}

.reasons__item:nth-child(2) {
    margin-left: auto;
}

.reasons__item:nth-child(3) {
    margin-right: auto;
}

.reasons__number {
    position: absolute;
    top: -0.6em;
    left: -0.6em;
    font-size: clamp(7rem, 6.25vw, 9rem);
    font-weight: 700;
    color: #BFBFBF;
    z-index: 0;
}

.reasons__body {
    display: flex;
    align-items: center;
    gap: 50px;
    z-index: 1;
}

.reasons__icon-area {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.reasons__icon {
    width: 70px;
    height: auto;
}

.reasons__text-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.reasons__title {
    margin: 0 0 12px;
    font-size: var(--font-size-title-md);
    font-weight: 700;
    color: var(--text-color-blue);
    line-height: 1.4;
}

.reasons__text {
    font-size: var(--font-size-body-md);
    line-height: 1.8;
    color: var(--text-color);
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {
    .reasons {
        width: 100%;
        max-width: initial;
        margin: 0;
        padding: 80px 24px;
    }

    .reasons__inner {
        padding: 0;
    }

    .reasons__list {
        gap: 60px;
        padding: 0;
    }

    .reasons__body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .reasons__icon {
        width: 43px;
        margin-bottom: 12px;
    }

    .reasons__item {
        padding: 40px 24px;
        border: 1px solid var(--text-color-gray);
        background-color: var(--text-color-white);
    }

    .reasons__number {
        position: absolute;
        top: calc(-1em / 2);
        left: 50%;
        transform: translateX(-50%);
        font-size: 4rem;
        font-weight: 700;
        color: hsl(0, 0%, 75%);
    }

    .reasons__text-area {
        align-items: center;
    }

    .reasons__title {
        font-size: var(--font-size-title-md);
    }

    .reasons__text {
        font-size: var(--font-size-body-md);
        text-align: left;
    }
}

/* =================================================================
                        Flow / ご依頼から納品までの流れ
===================================================================*/

.flow {
    position: relative;
    width: 100%;
}

.flow__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 60px;
}

.flow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 91.66666666vw;
    height: 44.277778vw;
    max-height: 600px;
    background-color: var(--bg-color-light-gray);
    z-index: -9;
}

.flow > .section-title {
    max-width: 1320px;
    margin: 0 auto 40px;
    padding: 0 60px 80px;
}

.flow__list {
    max-width: 1240px;
    display: flex;
    justify-content: flex-end;
    gap: 50px;
}

.flow_item {
    position: relative;
    width: 20.8%;
    max-width: 250px;
    padding: 50px 10px 20px;
    border: 2px solid var(--text-color-gray);
    background-color: var(--text-color-white);
    text-align: center;
}

.flow_item::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -39px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 20px solid #AEAEAE;
}

.flow_item:last-child::after {
    display: none;
}

.flow_item span {
    position: absolute;
    top: -1em;
    left: 50%;
    transform: translateX(-50%);
    padding: 2rem;
    background-color: var(--text-color-white);
    border: 2px solid var(--text-color-gray);
    border-radius: 50%;
    font-size: clamp(2.1rem, 3.19444444vw, 4.6rem);
    font-weight: 700;
    color: var(--text-color-light-gray);
    z-index: 99;
}

.flow_item img {
    margin: auto;
    height: 120px; /* 画像エリアの高さを統一 */
    object-fit: contain;
}

.flow__icon {
    width: 23.6%;
}

.flow__icon--wide {
    width: 42.4%;
}

.flow_tilte {
    font-size: var(--font-size-title-sm);
    font-weight: 700;
    color: var(--text-color-blue);
    line-height: 1.4;
    padding-bottom: 1.2em;
}

.flow_desc {
    padding-bottom: 1.14em;
    font-size: var(--font-size-body-md);
    line-height: 1.75;
    text-align: left;
}

.flow__link {
    position: relative;
    font-size: var(--font-size-body-md);
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    color: var(--text-color-blue);
}

.flow__link > a {
    display: inline-block;
    width: 90%;
    padding-right: 1.5em;
    position: relative;
}

.flow__link > a::before {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 3px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--text-color-blue);
    border-right: 2px solid var(--text-color-blue);
    transition: 0.3s;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 99;
}

.flow__link > a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 20px;
    height: 20px;
    background-color: #D9D9D9;
    border-radius: 50%;
    transition: 0.3s;
}


/* ========================= タブレット・レスポンシブ対応（1024px以下） ========================= */
@media (max-width: 1024px) {
    .flow {
        padding: 80px 40px;
    }

    .flow__inner {
        padding: 0;
    }

    .flow__list {
        gap: 30px;
    }

    .flow_item::after {
        top: 50%;
        right: -26px;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-left: 18px solid #AEAEAE;
    }
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {
    .flow {
        padding: 80px 24px 0;
    }

    .flow::before {
        width: 96.8vw;
        height: clamp(600px, 253vw, 952px);
    }

    .flow > .section-title {
        margin: 0 auto;
        padding: 0 0 40px;
    }

    .flow__inner {
        padding: 0;
    }

    .flow_tilte {
        padding-bottom: 0;
    }

    .flow__link {
        position: relative;
        display: inline-block;
    }

    .flow__list {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 70px;
    }

    .flow__link > a {
        display: initial;
        width: initial;
        position: initial;
        padding-right: 1em;
    }

    .flow__link > a::before {
        display: none;
    }

    .flow__link > a::after {
        display: none;
    }

    .flow__link::before {
        content: '';
        position: absolute;
        bottom: 4px;
        right: -1em;
        width: 8px;
        height: 8px;
        border-top: 2px solid var(--text-color-blue);
        border-right: 2px solid var(--text-color-blue);
        transition: 0.3s;
        transform: translate(-50%, -50%) rotate(45deg);
        z-index: 99;
    }

    .flow__link::after {
        content: '';
        position: absolute;
        right: -1.2em;
        bottom: 2px;
        width: 20px;
        height: 20px;
        background-color: #D9D9D9;
        border-radius: 50%;
        transition: 0.3s;
    }

    .flow_item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        max-width: 500px;
        padding: 30px 38px 24px;
        border: 1px solid var(--text-color-gray);
        background-color: var(--text-color-white);
        height: auto;
    }

    .flow_item::after {
        top: initial;
        bottom: -45px;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-left: 18px solid #AEAEAE;
    }

    .flow_item span {
        font-size: 2.1rem;
        padding: 0.5em;
        border: 1px solid var(--text-color-gray);
    }

    .flow_item img {
        height: 40px; /* 画像エリアの高さを統一 */
    }

    .flow__icon--wide {
        width: 60px;
    }
}

/* =================================================================
                        Group company / 関係会社
===================================================================*/

.group-company {
    position: relative;
    width: 100%;
    padding: 0 0 140px;
}

.group-company > .section-title {
    /* max-width: 1320px;
    margin: 0 auto;
    padding: 0 60px 80px; */
}

.group-company__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 60px;
}

.group-company__list {
    max-width: 1000px;
    width: fit-content;
    margin-left: auto;
    padding-right: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 2;
    font-size: var(--font-size-title-s);
}

.group-company_item {
    text-align: left;
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {

    .group-company {
        position: relative;
        width: 100%;
        padding: 80px 0 140px;
    }

    .group-company > .section-title {
        margin: 0 auto;
        padding: 0 24px 40px;
    }

    .group-company__inner {
        margin: 0 auto;
        padding: 0 24px;
    }

    .group-company__list {
        margin-left: initial;
        padding-right: initial;
        font-size: 1.4rem;
    }
}
