.case-container { 
    width: 1320px;
    margin: 0 auto; 
    padding: 2em; 
}

/* スマホ対応 */
@media(max-width: 1040px){
    .case-container {
        width: 100%;
        max-width: 1000px;
    }
}
.case-title { font-size: 2em; margin-bottom: 1em; }
.case-section { margin-bottom: 2em; }
.case_text {margin-bottom: 2em;}
.case-example { 
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 3em;
}
.before-image { 
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.after-images { 
    display: flex; 
    gap: 1em; 
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}
.after-image {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}
.case-img { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; cursor: pointer; }
@media (max-width: 767px) {.case-img {height: auto;}}

/* 矢印 */
.arrow {
    display: inline-block;
    width: 30px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* PC：右向き */
@media (min-width: 768px) {
    .arrow {
        background-image: url('/wp-content/themes/arkhe-child/images/casearrow_r.svg');
    }
}

/* スマホ：下向き */
@media (max-width: 767px) {
    .arrow {
        background-image: url('/wp-content/themes/arkhe-child/images/casearrow_r.svg');
    }
}

/* スマホ対応 */
@media(max-width:768px){
    .case-example { flex-direction: column; }
    .before-image { width: 100%; }
    .after-images { flex-direction: column; width: 100%; }
    .arrow { transform: rotate(90deg); margin: 0 auto 0.5em; }
}

/* モーダル */
.img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left:0; top:0; width:100%; height:100%;
    overflow:auto; background-color: rgba(0,0,0,0.8);
}
.img-modal .modal-content {
    margin:auto;
    display:block;
    max-width:90%;
    max-height:90%;
}
.img-modal .close {
    position:absolute; top:20px; right:35px;
    color:white; font-size:40px; font-weight:bold; cursor:pointer;
}
.img-modal .close:hover { color:#ccc; }
.case-label {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-top: 6px;
    font-weight: bold;
}

.after-label-wrapper {
    width: 100%;
    text-align: left;
    margin-bottom: 8px;
}

.case-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.prev-case, .next-case {
    font-weight: bold;
    font-size: 16px;
}

.clbefore{
    font-family: "Roboto", Sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.clafter{
    color: #9cc227;
    font-family: "Roboto", Sans-serif;
    font-size: 20px;
    font-weight: 600;
}
.after-images-wrapper {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ========================================
   Swiper スライダー用スタイル
======================================== */
.swiper {
    width: 100%;
    position: relative;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ナビゲーションボタン */
.swiper-button-prev,
.swiper-button-next {
    color: #9cc227 !important;
    background-color: transparent;
    width: 40px !important;
    height: 40px !important;
    transition: all 0.3s ease;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 28px;
    font-weight: bold;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    opacity: 0.7;
}

/* ページネーション */
.swiper-pagination {
    position: relative !important;
    margin-top: 12px !important;
    bottom: 0 !important;
    display: none;
}

.swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: #ccc !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #9cc227 !important;
    width: 24px !important;
    border-radius: 5px !important;
}

/* スマホでのボタンサイズ調整 */
@media (max-width: 767px) {
    .swiper-button-prev,
    .swiper-button-next {
        width: 32px;
        height: 32px;
    }
    
    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 22px;
    }
}

.case-number::before {
    content: attr(data-num);
    font-size: 1.6rem;
    font-weight: bold;
    color:#9cc227;
}

.case-number[data-num="1"]::before { content: "①"; }
.case-number[data-num="2"]::before { content: "②"; }
.case-number[data-num="3"]::before { content: "③"; }