@charset "utf-8";

/* ==========================================================================
   下層共通設定
   ========================================================================== */
.lower-page .page-header {
    background-color: #162d50;
    padding: 80px 0;
    text-align: center;
    color: #fff;
    margin-top: 80px;
}

.lower-page .page-header .en {
    display: block;
    font-size: 14px;
    letter-spacing: 0.3em;
    margin-bottom: 10px;
}

.lower-page .page-header h2 {
    font-size: 28px;
    font-weight: 500;
}

/* ==========================================================================
   工程セクション（.process-item）の構造
   ========================================================================== */
.process-list {
    padding: 100px 0;
}

/* 
 * 親要素に flex-wrap: wrap を指定することで、
 * 子要素のアコーディオンを「画像＋テキスト」の下へ回り込ませ、全幅にします。
 */
.process-list .process-item {
    display: flex !important;
    flex-wrap: wrap !important; 
    align-items: flex-start;
    gap: 0 60px; /* 横の間隔 */
    margin-bottom: 120px;
    width: 100% !important;
}

/* 画像とテキストを交互に並べる設定 */
.process-list .process-item.reverse {
    flex-direction: row-reverse;
}

/* メイン画像・スライダーエリア */
.process-img {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.process-img .bx-wrapper {
    height: 300px !important;
    border: none !important;
    box-shadow: none !important;
    background: #f0f0f0 !important;
    margin-bottom: 0 !important;
}

.process-img img {
    width: 100%;
    height: 300px !important;
    object-fit: cover;
    display: block;
}

/* スライダー内のキャプション */
.process-slide-text {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(22, 45, 80, 0.9);
    color: #fff;
    font-size: 13px;
    padding: 8px 15px !important;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: 1s ease;
}

.process-img li[aria-hidden="false"] .process-slide-text {
    opacity: 1;
    transform: translateY(0);
}

/* 右側：メイン説明テキストエリア */
.process-desc {
    flex: 1;
}

.desc-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.desc-header .num {
    background-color: #162d50;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 4px 12px;
}

.desc-header h3 {
    font-size: 24px;
    color: #333;
}

.process-desc p {
    font-size: 15px;
    line-height: 2.0;
    color: #444;
    text-align: justify;
}

/* ==========================================================================
   アコーディオン本体（赤い枠の幅＝100%）
   ========================================================================== */
.process-list .oem-accordion {
    flex: 0 0 100% !important; /* 横並びから外れて下の行に全幅（100%）で配置 */
    width: 100% !important;
    margin-top: 40px;
    border: 1px solid #162d50;
    box-sizing: border-box;
    clear: both;
}

/* 画像が右（reverse）の時もアコーディオンを一番下に強制 */
.process-list .process-item.reverse .oem-accordion {
    order: 3;
}

/* ボタン：端から端までいっぱい */
.accordion-trigger {
    width: 100% !important;
    padding: 20px 25px;
    background-color: #fff;
    color: #162d50;
    border: none;
    display: flex !important;
    justify-content: space-between; /* テキスト左、アイコン右 */
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s;
}

.accordion-trigger:hover {
    background-color: #f8f9fa;
}

/* アイコン (+/-) */
.accordion-trigger .icon {
    position: relative;
    width: 14px;
    height: 14px;
}

.accordion-trigger .icon::before,
.accordion-trigger .icon::after {
    content: "";
    position: absolute;
    background-color: #162d50;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.3s;
}

.accordion-trigger .icon::before { width: 100%; height: 2px; }
.accordion-trigger .icon::after { width: 2px; height: 100%; }

.accordion-trigger.is-active .icon::after {
    opacity: 0;
}

/* ==========================================================================
   【重要】アコーディオン内部：1行2コンテンツの設定
   ========================================================================== */
.accordion-content {
    display: none;
    padding: 0 25px 30px;
    background-color: #fff;
}

.inner-process {
    border-top: 1px dashed #ccc;
    padding-top: 25px;
    display: flex !important; 
    flex-wrap: wrap !important; /* 折り返しを許可 */
    gap: 20px; /* ステップ間の隙間 */
}

.step {
    /* PC版：1行に2つ並べる計算（100% - 隙間20px / 2） */
    width: calc(50% - 10px) !important; 
    background: #fdfdfd;
    border: 1px solid #eee;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.step-img {
    width: 100%;
    height: 320px;
}

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

.step-txt {
    padding: 15px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.step-num {
    background: #162d50;
    color: #fff;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border-radius: 2px;
}

.step-txt h4 {
    font-size: 15px;
    margin: 0;
    color: #162d50;
}

.step-txt p {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #444;
}

/* アコーディオン内スライダーのラッパー */
.step-img .bx-wrapper {
    height: 320px !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

/* ページャー（ドット）の色を調整したい場合 */
.step-img .bx-pager.bx-default-pager a {
    background: #ccc;
}
.step-img .bx-pager.bx-default-pager a.active {
    background: #162d50;
}

/* ==========================================================================
   レスポンシブ（スマホ設定）
   ========================================================================== */
@media screen and (max-width: 900px) {
    .process-item, .process-item.reverse {
        flex-direction: column !important;
        gap: 30px;
    }

    .process-img, .process-desc {
        width: 100% !important;
        flex: none !important;
    }

    /* スマホではアコーディオン内を1カラムに */
    .step {
        width: 100% !important;
    }
   .step-img {
        width: 100%;
        height: 200px;
    }
    .accordion-trigger {
        padding: 15px 20px;
        font-size: 14px;
    }
}