@charset "UTF-8";

/* ==================================================
   Sub Page Common (Hero & Breadcrumb) 
================================================== */
.page-hero {
    position: relative;
    height: 300px;
    padding-top: 90px;
}

.page-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}

.page-hero__inner {
    height: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.page-title {
    font-size: 36px;
    color: var(--text-main);
    letter-spacing: 0.1em;
}

/* 交互に使用する薄いグレー背景 */
.bg-light {
    background-color: #f9f9f9; 
}

/* ==================================================
   Business Page: ページ内リンク（5つの事業ナビ）
================================================== */
.business-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.business-nav__item {
    background-color: var(--green);
    color: #fff;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background-color 0.3s;
}

.business-nav__item:hover {
    background-color: #007a52;
}

.business-nav__item .jp {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.business-nav__item .en {
    font-size: 24px;
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.arrow-down-white {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

/* ==================================================
   Business Page: 各事業セクション
================================================== */
.business-content {
    width: 100%;
}

.business-intro {
    padding-top: 40px;
    padding-bottom: 50px;
}

/* 背景を全幅に広げ、上下にしっかり余白を取る */
.business-section {
    width: 100%;
    padding: 80px 0;
    scroll-margin-top: 90px;
    background-color: #fff;
}

/* 交互に入るグレー背景 */
.business-section.bg-light {
    background-color: #f5f5f5; 
}

/* 画像とテキストを中央（1000px）に寄せるインナー枠 */
.business-section__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

/* 左右反転クラス（2, 4番目） */
.business-section--reverse .business-section__inner {
    flex-direction: row-reverse;
}

/* 画像エリア */
.business-section__img {
    width: 50%;
    flex-shrink: 0;
    padding-top: 15px;
}

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

/* テキストエリア */
.business-section__text {
    width: 50%;
}

/* タイトルの装飾 */
.title-wrap {
    position: relative;
    margin-bottom: 30px;
    display: block;
    text-align: center;
}

.bg-text {
    display: block;
    font-size: 80px;
    color: #e8e8e8;
    font-family: 'Times New Roman', Times, serif;
    font-weight: normal;
    line-height: 1;
}

.jp-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    margin: 0;
    color: var(--green);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.business-section .sub-title {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}
.business-section .sub-title::after {
    content: "";
    position: absolute; 
    bottom: 0; 
    right: 0;
    width: calc(100% + 60px); 
    height: 0; 
    border-bottom: 1px solid var(--blue);
    background-color: transparent;
}

.business-section--reverse .sub-title::after { 
    left: 0; 
    right: auto; 
}

.desc {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* ==================================================
   Business Page: ボトムメッセージ
================================================== */
.bottom-message-area {
    background-color: #f5f5f5;
    padding: 100px 20px;
}

.business-message {
    background-color: #fff;
    max-width: 900px;
    margin: 0 auto;
    padding: 70px 40px;
    text-align: center;
}

.business-message p {
    color: var(--blue);
    font-size: 20px;
    font-weight: 700;
    line-height: 2.5; 
    margin: 0;
}

/* 青い下線のスタイル */
.underline-text {
    border-bottom: 1px solid var(--blue);
    padding-bottom: 4px;
}

/* ==================================================
   769 〜 1024px
================================================== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .business-nav {
        gap: 2%;
    }
    .business-nav__item {
        padding: 28px 6px;
    }
    .business-section__inner {
        max-width: 96%;
        gap: 28px;
    }
    .business-section .sub-title::after {
        width: calc(100% + 28px);
    }
    .business-section__img {
        width: 44%;
    }
    .business-section__text {
        width: calc(100% - 44% - 28px);
    }
}

/* ==================================================
   スマホ用レスポンシブ設定
================================================== */
@media screen and (max-width: 768px) {
    .page-hero {
        height: 250px;
        padding-top: 70px;
    }
    
    .page-title {
        font-size: 28px;
    }

    /* 事業紹介ナビ SP対応 */
    .business-nav {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .business-nav__item:last-child {
        grid-column: auto;
    }
    .business-nav__item {
        padding: 15px 10px;
    }
    .business-nav__item .jp {
        font-size: 20px;
    }
    .business-nav__item .en {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    /* セクションの縦並び化 */
    .business-section {
        padding: 50px 0;
    }
    
    .business-intro {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .business-section__inner {
        flex-direction: column;
        gap: 12px;
        position: relative;
        padding-top: 80px;
    }
    
    .business-section--reverse .business-section__inner {
        flex-direction: column;
    }
    
    .business-section__img,
    .business-section__text {
        width: 100%;
        padding-top: 0;
    }
    
    .business-section__text .title-wrap {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    .bg-text {
        font-size: 50px;
    }
    
    .jp-title {
        font-size: 20px;
    }
    
    .business-section .sub-title {
        margin-bottom: 12px;
        padding-bottom: 12px;
        font-size: 18px;
    }
    .business-section .sub-title::after {
        width: 100%;
    }

    #logistics .business-section__inner:last-child {
        padding-top: 0;
    }
    
    .bottom-message-area {
        padding: 60px 4%;
    }
    
    .business-message {
        padding: 40px 12px;
        text-align: center; /* ▼ スマホ時も中央寄せに修正 ▼ */
    }

    .business-message p {
        font-size: 14px; 
        line-height: 2.2;
    }
}