/* 画像エリアのスタイル */
.figure-center {
    margin: 20px auto;
    text-align: center;
    max-width: 100%;
    /* 画面幅を超えないように制限 */
}

/* 画像のラッパー要素用のスタイル - 高さを内容に合わせる */
.image-wrapper {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    line-height: 0;
    /* 画像下の余白を削除 */
    font-size: 0;
    /* インライン要素の余白を削除 */
    /* 高さは内容（画像）に自動的に合わせる */
}

.bb-member-detail__order {
    width: 75%;
    margin: 0 auto
}

.bb-member-detail__order pre {
    font-size: 1.6rem;
    overflow: auto;
    margin-bottom: 10px;
    padding: 20px;
    white-space: pre;
    border: 1px solid #1c1b1a;
    background-color: #f0f0f0
}

.bb-member-detail__order .summary {
    font-size: 1.4rem
}

.main-image {
    width: auto;
    max-width: 100%;
    height: auto;
    /* 高さは自動調整 */
    display: block;
    transform-origin: center center;
    vertical-align: top;
    /* 画像下の余白を削除 */
}

.caption {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    /* キャプションが画像に隠れないよう明示的に設定 */
    position: relative;
    z-index: 1;
    display: block;
    /* 確実に表示されるように */
    padding: 0 10px;
    /* モバイルでの読みやすさ向上 */
    line-height: normal;
    /* 通常の行間に戻す */
}

/* モバイル向けの設定 */
@media (max-width: 767px) {
    .figure-center {
        width: 100% !important;
        /* モバイルでは幅を100%に */
        padding: 0 10px;
        /* 左右に適度な余白 */
        box-sizing: border-box;
    }

    .bb-member-detail__order {
        width: 100%;
        margin: 0 auto
    }

    .bb-member-detail__order pre {
        font-size: 1.6rem;
        overflow: auto;
        margin-bottom: 10px;
        padding: 20px;
        white-space: pre;
        border: 1px solid #1c1b1a;
        background-color: #f0f0f0
    }

    .bb-member-detail__order .summary {
        font-size: 1.4rem
    }
}