@charset "UTF-8";

/* =========================================
   Business Section - ソルテックの仕事について
   ========================================= */

.business {
    background-color: var(--c-bg-gray);
    padding-top: 16.7rem;
    padding-bottom: 12.9rem;
    overflow: hidden;
}

/* -----------------------------------------
   Intro Section
   ----------------------------------------- */
.business__intro {
    position: relative;
}

/* 背景装飾文字 */
.business__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: -8rem;
    left: -15.2rem;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

/* Section Title */
.business__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;
}

/* Lead Text */
.business__lead {
    margin-top: 4.1rem;
    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);
    position: relative;
    z-index: 1;
}

/* Main Chart Image */
.business__chart {
    margin-top: 6.7rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.business__chart-img {
    max-width: 81rem;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* -----------------------------------------
   Business Items Container
   親要素(.inner-container)の幅制限を超えて1440px幅に広げる
   ----------------------------------------- */
.business__items {
    margin-top: 6.7rem;
    width: 100vw;                    /* 画面幅いっぱい */
    max-width: var(--w-page);        /* 最大1440px */
    position: relative;
    left: 50%;
    transform: translateX(-50%);     /* 中央寄せ */
}

/* -----------------------------------------
   Business Item Block
   【レイアウト仕様】
   - 写真サイズ: 840px × 500px (84rem × 50rem)
   - テキスト幅: 364px (36.4rem)
   - 写真とテキストの余白: 53px (5.3rem)
   - カード合計幅: 840 + 53 + 364 = 1257px (125.7rem)
   - 奇数段: 写真+テキストが左端にぴったり
   - 偶数段: テキスト+写真が右端にぴったり
   - テキストは写真の高さに対して上下中央
   ----------------------------------------- */
.business-item {
    display: flex;
    align-items: center;             /* 上下中央揃え */
    gap: 5.3rem;                     /* 写真とテキストの余白 53px */
    width: 100%;
    max-width: 125.7rem;             /* 840 + 53 + 364 = 1257px */
    margin-bottom: 6.7rem;
    position: relative;
}

/* 最後の要素のマージンリセット */
.business-item:last-child {
    margin-bottom: 0;
}

/* -----------------------------------------
   奇数段（1,3段目）: 写真+テキストが左端にぴったり
   ----------------------------------------- */
.business-item:nth-child(odd) {
    margin-right: auto;
    margin-left: 0;
}

/* -----------------------------------------
   偶数段（2,4段目）: テキスト+写真が右端にぴったり
   flex-direction: row-reverse で左右反転
   ----------------------------------------- */
.business-item:nth-child(even) {
    flex-direction: row-reverse;
    margin-left: auto;
    margin-right: 0;
}

/* Visual (Slideshow) Container */
.business-item__visual {
    flex: 0 0 84rem;                 /* 幅固定: 840px */
    width: 84rem;
    height: 50rem;                   /* 高さ固定: 500px */
    position: relative;
}

/* Content (Text) Container */
.business-item__content {
    flex: 0 0 36.4rem;               /* 幅固定: 364px */
    width: 36.4rem;
    max-width: 36.4rem;
    padding: 0;
}

/* Item Title */
.business-item__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);
    margin-bottom: 5rem;
}

/* Item Text */
.business-item__text {
    font-family: var(--font-base);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 2.25;
    letter-spacing: 0;
    color: var(--c-text-main);
}

/* -----------------------------------------
   Slideshow Styles
   ----------------------------------------- */
.business-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
}

.business-slider__wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.business-slider__track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.business-slider__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.business-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -----------------------------------------
   Navigation Arrows
   ----------------------------------------- */
.business-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.business-slider__nav:hover {
    opacity: 0.7;
}

.business-slider__nav--prev {
    left: 1.5rem;
}

.business-slider__nav--next {
    right: 1.5rem;
}

.business-slider__nav-icon {
    width: 1.2rem;
    height: 1.2rem;
    border-right: 3px solid #FFFFFF;
    border-bottom: 3px solid #FFFFFF;
}

.business-slider__nav--prev .business-slider__nav-icon {
    transform: rotate(135deg);
    margin-left: 0.4rem;
}

.business-slider__nav--next .business-slider__nav-icon {
    transform: rotate(-45deg);
    margin-right: 0.4rem;
}

/* -----------------------------------------
   Pagination Dots
   ----------------------------------------- */
.business-slider__pagination {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 1rem;
    z-index: 10;
}

.business-slider__dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.business-slider__dot.is-active {
    background-color: #FFFFFF;
}

.business-slider__dot:hover {
    background-color: #FFFFFF;
}

/* -----------------------------------------
   SP Responsive Styles (max-width: 768px)
   ----------------------------------------- */
@media (max-width: 768px) {
    .business {
        padding-top: 5.3rem;
        padding-bottom: 5rem;
    }

    .business__bg-text {
        font-size: 8rem;
        top: -2rem;
        left: -1.5rem;
    }

    .business__title {
        font-size: 2.3rem;
    }

    .business__lead {
        margin-top: 2.3rem;
        font-size: 1.4rem;
        line-height: 1.7;
        letter-spacing: 0;
    }

    .business__chart {
        margin-top: 3.4rem;
    }

    .business__items {
        margin-top: 2.2rem;
        max-width: 100%;
        width: 100%;
        left: 0;
        transform: none;
        padding: 0;
    }

    /* -----------------------------------------
       Business Item Block - SP版
       縦積みに変更
       ----------------------------------------- */
    .business-item {
        flex-direction: column !important;
        gap: 0;
        margin-bottom: 4.5rem;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Visual Container - Full width */
    .business-item__visual {
        flex: none;
        width: 100vw;
        height: auto;
        max-width: none;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        aspect-ratio: 800 / 475;
    }

    /* Content Container */
    .business-item__content {
        flex: none;
        width: 100%;
        max-width: none;
        padding: 0 1.5rem;
    }

    /* Item Title */
    .business-item__title {
        font-size: 2.3rem;
        margin-top: 2.2rem;
        margin-bottom: 1.7rem;
    }

    /* Item Text */
    .business-item__text {
        font-size: 1.4rem;
        line-height: 1.7;
    }

    .business-slider__wrapper {
        height: 100%;
    }

    .business-slider__nav {
        width: 3.5rem;
        height: 3.5rem;
    }

    .business-slider__nav--prev {
        left: 1rem;
    }

    .business-slider__nav--next {
        right: 1rem;
    }

    .business-slider__nav-icon {
        width: 1rem;
        height: 1rem;
        border-right: 2px solid #FFFFFF;
        border-bottom: 2px solid #FFFFFF;
    }

    .business-slider__pagination {
        bottom: 1.2rem;
        gap: 0.8rem;
    }

    .business-slider__dot {
        width: 0.8rem;
        height: 0.8rem;
    }
}


/* =========================================
   Tablet Adjustments (819px - 1024px)
   ========================================= */
@media screen and (min-width: 819px) and (max-width: 1264px) {
    /* 1. 背景の "Business" 文字を右にずらす */
    .business__bg-text {
        /* 元の -15.2rem より数値を大きく（0に近づける）して右へ移動 */
        left: -5rem !important; 
    }

    /* 2. 写真の下のテキストが消える問題の解消（縦積みに変更） */
    .business-item {
        flex-direction: column !important; /* 縦並び（写真が上、テキストが下）にする */
        gap: 3rem !important;              /* 写真とテキストの間の余白 */
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 84rem !important;       /* 全体の幅を写真の最大幅に合わせる */
    }

    /* 画像エリアが画面からはみ出さないように自動縮小させる */
    .business-item__visual {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 840 / 500 !important; /* 写真の縦横比を維持 */
    }

    /* 押し出されて消えていたテキストエリアの幅を100%にして表示させる */
    .business-item__content {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 2rem !important; /* スマホのように左右に少し余白を持たせる */
    }
}