/* モーダル内の埋め込みコンテンツ安定化用スタイル */
.embed-content-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 10px 0;
    overflow: hidden;
}

.embed-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 12px 24px;
    border-radius: 30px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.embed-loading span {
    display: inline-block;
    position: relative;
}

/* Twitter埋め込みの安定化 */
.twitter-tweet {
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    transform: translateZ(0); /* ハードウェアアクセラレーション有効化 */
}

/* Instagram埋め込みの安定化 */
.instagram-media {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    transform: translateZ(0); /* ハードウェアアクセラレーション有効化 */
}

/* 埋め込みiframeの安定化 */
.embed-content-wrapper iframe {
    position: relative !important;
    z-index: 1;
    max-width: 100% !important;
    margin: 0 auto !important;
    transform: translateZ(0);
    will-change: transform;
}
