@charset "utf-8";

/* --- 下層ページ共通設定 --- */
.lower-page {
    padding-top: 80px;
}

.page-header {
    background-color: #f8f8f8;
    padding: 60px 0;
    margin-bottom: 60px;
    text-align: center;
}

.page-header h2 {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* --- OEM 導入文（重なり解消のための修正） --- */
.oem-intro {
    text-align: center;
    margin-bottom: 60px; /* 下との余白を確保 */
    position: relative;
    z-index: 1;
}

.lead-text {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* --- 製造フローのデザイン --- */
.oem-flow {
    max-width: 900px;
    margin: 0 auto 100px;
    padding-top: 20px; /* ナンバーがはみ出る分の余白 */
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

/* 画像とナンバリングエリア */
.flow-visual {
    position: relative;
    flex: 0 0 200px;
}

.flow-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #eee;
}

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

/* ナンバリング（重なり順と位置を微調整） */
.flow-num {
    position: absolute;
    top: -5px; /* 少し下げて重なりを自然に */
    left: -5px;
    background-color: #162d50;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    z-index: 5;
}

.flow-content {
    flex: 1;
}

.flow-content h3 {
    font-size: 20px;
    color: #162d50;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.flow-content h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #162d50;
}

/* --- お問い合わせバナー（崩れ修正版） --- */
.contact-banner {
    background-color: #f1f3f5;
    padding: 60px 40px;
    text-align: center;
    border-radius: 4px;
    margin: 40px auto 100px; /* 上下の余白を適切に確保 */
    max-width: 900px;        /* フローの幅と合わせる */
    clear: both;             /* 回り込みなどの干渉を防ぐ */
}

.contact-banner p {
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 500;
    color: #162d50;
    line-height: 1.6;
}

.btn-contact {
    display: inline-block;
    background-color: #162d50;
    color: #fff !important;
    padding: 15px 60px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    border-radius: 2px;
}

.btn-contact:hover {
    opacity: 0.8;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- レスポンシブ（スマホ版） --- */
@media screen and (max-width: 768px) {
    .oem-intro { margin-bottom: 40px; }

    .flow-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-bottom: 60px;
    }

    .flow-visual {
        flex: none;
        margin: 0 auto 10px; /* 下に少し余白 */
    }

    .flow-img {
        width: 160px;
        height: 160px;
    }

    .flow-num {
        width: 40px;
        height: 40px;
        font-size: 14px;
        top: 0;
        left: 0;
    }

    .flow-content h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-banner {
        padding: 40px 20px;
        margin-bottom: 60px;
        width: 95%; /* 画面端に少し余白を作る */
    }

    .contact-banner p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .btn-contact {
        padding: 12px 40px;
        width: 100%;       /* スマホではボタンを押しやすく */
        max-width: 280px;  /* 広がりすぎ防止 */
    }
}