@charset "UTF-8";

/* =========================================
   Company Section - 将来の展望
   ========================================= */

.company {
    background-color: var(--c-bg-pink);
    padding-top: 18.1rem;
    padding-bottom: 11.7rem;
    position: relative;
    overflow: hidden;
}

.company__inner {
    max-width: var(--w-content);
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
    position: relative;
}

/* Background decorative text */
.company__bg-text {
    font-family: var(--font-decorative);
    font-size: 16.4rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    color: var(--c-bg-pink-text);
    position: absolute;
    top: 7.5rem;
    /* ▼ PC修正: 画面端ではなく中央基準に変更 */
    left: 55%;
    /* 1440px幅のときの「left: -30px」相当の位置に調整 (720px - 750px = -30px) */
    margin-left: -70rem;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

/* Section title */
.company__title {
    font-family: var(--font-base);
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.1em;
    color: var(--c-text-main);
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* Lead text */
.company__lead {
    font-family: var(--font-base);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.1em;
    color: var(--c-text-main);
    margin-top: 3rem;
    margin-bottom: 4.6rem;
    position: relative;
    z-index: 1;
}

/* Card grid */
.company__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
    position: relative;
    z-index: 1;
}

/* Card */
.company__card {
    background-color: var(--c-primary);
    border-radius: 1rem;
    padding: 5.3rem 5.8rem 5rem;
    color: var(--c-text-white);
    display: flex;
    flex-direction: column;
    min-height: 42.8rem;
    
    /* ▼ 囲い内のコンテンツを上下左右中央位置に配置 */
    justify-content: center; /* 上下中央揃え */
    /* 左右中央は子要素のalign-itemsやtext-alignで制御されています */
}

/* Card header (icon + title centered) */
.company__card-header {
    display: flex;
    flex-direction: column;
    align-items: center; /* 左右中央揃え */
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Card icon */
.company__card-icon {
    width: 6.5rem;
    height: 6.5rem;
    margin-bottom: 2.5rem;
    flex-shrink: 0;
}

.company__card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Card title */
.company__card-title {
    font-family: var(--font-base);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.1em;
    color: var(--c-text-white);
    margin: 0;
}

/* Card body text */
.company__card-text {
    font-family: var(--font-base);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.1em;
    color: var(--c-text-white);
    text-align: left; /* 本文は左揃え（読みやすさのため） */
    margin: 0;
}


/* =========================================
   SP Styles (max-width: 768px)
   ========================================= */
@media (max-width: 76.8rem) {
    .company {
        padding-top: 7.2rem;
        padding-bottom: 4.9rem;
    }

    .company__inner {
        padding: 0 1.5rem;
    }

    /* Background decorative text - SP */
    .company__bg-text {
        font-size: 8rem;
        top: 1.5rem;
        left: -1rem;
        /* ▼ SP修正: PC用のマージンをリセット */
        margin-left: 0;
    }

    /* Section title - SP */
    .company__title {
        font-size: 2.2rem;
        margin-bottom: 2.1rem;
    }

    /* Lead text - SP */
    .company__lead {
        font-size: 1.4rem;
        font-weight: 500;
        line-height: 1.6;
        letter-spacing: 0;
        margin-bottom: 2.5rem;
    }

    /* Card grid - SP (1 column) */
    .company__grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    /* Card - SP */
    .company__card {
        padding: 2.5rem 1.9rem 3rem;
        min-height: auto;
    }

    /* Card header - SP (horizontal layout) */
    .company__card-header {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        text-align: left;
        margin-bottom: 2.9rem;
    }

    /* Card icon - SP */
    .company__card-icon {
        width: 3rem;
        height: 3rem;
        margin-bottom: 0;
    }

    /* Card title - SP */
    .company__card-title {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }

    /* Card body text - SP */
    .company__card-text {
        font-size: 1.4rem;
        line-height: 1.6;
        letter-spacing: 0;
    }
}

/* =========================================
   Tablet Adjustments (819px - 1024px)
   ========================================= */
@media screen and (min-width: 819px) and (max-width: 1024px) {
	.company {
       padding-top: 10rem;
       padding-bottom: 7rem;
	   padding-left:1rem;
	   padding-right:1rem;
    }
	
.company__bg-text {
    top: 4rem;
}
	
    .company__title {
        font-size: 4.8rem !important;
    }

    /* 背景Companyの文字サイズのみをPC表示用（大きいサイズ）に揃える */
    .company__bg-text {
        font-size: 16.4rem !important;
    }
}