* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    font-family: "Noto Serif JP", serif;
    overflow-x: hidden;
    background: linear-gradient(to bottom, #ffffff, #e3f3ff, #d4ecff);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.breadcrumb {

    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    margin: 0 6px;
    color: #999;
}



/* ヒーロー画像（余白ゼロが重要） */
.business-hero {
    position: relative;
    margin: 0;
    padding: 0;
    /* 画像下の謎の隙間対策 */
}

/* 画像を完全フル幅＋高さ調整 */
.business-hero img {
    filter: brightness(60%);
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    /* これ超重要（隙間消える） */
}

/* テキスト重ね */
.business-hero-text {
    position: absolute;
    top: 48%;
    left: 7%;
    color: white;
    font-size: 2rem;

    padding: 10px 20px;
    border-radius: 5px;
}

.three-column {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* ←ここが重要 */
    padding: 40px 0;
    /* ←左右の余白を消す */
    width: 100%;

}

/* 左右画像 */
.side-img {
    max-width: 100%;
    width: 400px;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 20px;
}

/* 中央 */
.center-text {
    max-width: 700px;
    text-align: center;
    flex: 1;
    /* ←中央を広げる */
    padding: 0 20px;
    /* 中央だけ少し余白 */
}

/* タイトル */
.center-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.center-text h3 {
    color: #009fff;
}

/* 説明文 */
.pipe-intro {
    line-height: 1.8;
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.bsns {
    display: flex;
    flex-wrap: wrap;
}

.bsns-title {
    text-align: center;
    height: 60px;
}

.bsns-title h2 {
    padding: 20px;
}

/* 各セクション */
.business-section {
    flex: 1;

}

.business-section .content {
    display: flex;
    align-items: center;
    /* 縦中央揃え */
    gap: 20px;
    margin: 30px 20px;
    background-color: #fff;
    border-radius: 10px;
    min-width: 250px
}

/* 画像 */
.business-section img {
    width: 100%;
    max-width: 450px;
    height: 350px;
    display: block;
    line-height: 1.8;
    border-radius: 0 10px 10px 0;
}

.text {
    margin: 0px 15px;
}

.business-section3 {
    width: 100%;
    margin: 70px 0;
    text-align: center;
}

/* 戻る */
.back-link {
    margin: 40px;
}

.business-section2 h2::after,
.business-section1 h2::after {
    content: "";
    display: block;
    width: 40px;
    /* ←線の長さ */
    height: 2px;
    /* ←線の太さ */
    background: #006eff;
    /* ←色（サイトに合わせて変更OK） */
    margin-top: 10px;
    /* ←文字と線の間隔 */
}


.nmm {
    color: #006eff;
    font-size: 30px;
}

.main-title {
    text-align: center;
}

.unit {
    justify-items: center;
    margin-top: 40px;
}

.unit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.unit-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    object-fit: cover;
}


.diagonal-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 50px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    overflow: hidden;
    border: 1px solid #333;
    margin-top: 20px;
    border-radius: 6px;
}

/* 左下から */
.diagonal-button::before {
    content: "";
    position: absolute;
    inset: -150%;
    background: #477bff;
    transform: translate(-10%, 80%) rotate(45deg);
    transition: transform .6s cubic-bezier(.77, 0, .18, 1);
}

/* 右上から */
.diagonal-button::after {
    content: "";
    position: absolute;
    inset: -150%;
    background: #477bff;
    transform: translate(10%, -80%) rotate(45deg);
    transition: transform .6s cubic-bezier(.77, 0, .18, 1);
}

.diagonal-button span {
    position: relative;
    z-index: 1;
}

/* ホバー */
.diagonal-button:hover::before {
    transform: translate(0, 0) rotate(45deg);
}

.diagonal-button:hover::after {
    transform: translate(0, 0) rotate(45deg);
}

.any {
    font-size: 18px;
    display: inline-block;
    transition: transform 2s ease;
}

@media screen and (max-width: 1500px) {
    .side-img {
        width: 300px;
        height: 350px;
    }
}

@media screen and (max-width: 1100px) {

    .side-img,
    .business-section img {
        display: none;
    }


}


@media screen and (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }



    body h2 {
        font-size: 16px;

    }

    .business-hero img {
        height: 200px;
    }

    .business-hero-text h2 {
        font-size: 18px;
        top: 48%;
        left: 7%;
    }

    .text p {
        font-size: 13px;
    }

    /*     .side-img,
    .business-section img {
        display: block;
    }
 */
    .three-column {
        flex-direction: column;
        padding: 20px 10px;
        gap: 20px;
    }

    /* 左右画像 → 横並び維持したいならそのままでもOK */
    .side-img {
        width: 90%;
        height: 150px;
        margin: 0;
    }

    /* 中央テキスト */
    .center-text {
        padding: 0 10px;
    }

    .center-text h2 {
        font-size: 16px;
    }

    .center-text h3 {
        font-size: 15px;
    }

    .pipe-intro {
        font-size: 12px;
    }

    /* =========================
   事業紹介（横→縦）
========================= */
    .business-section .content {
        flex-direction: column;
        text-align: center;
        margin: 10px 20px;
    }

    .bsns-title {
        height: 40px;
    }

    .business-section img {
        width: 100%;
        height: 150px;
        border-radius: 0 0 10px 10px;
    }

    /* =========================
   ユニット（4列→2列）
========================= */
    .unit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .unit-grid img {
        height: 120px;
    }

    .unit h3 {
        font-size: 16px;
    }

}