/* 設定コンテナのベーススタイル */
#setting_container {
    position: fixed;
    left: 50%;
    top: 2%;
    width: 85%;
    height: 97%;
    max-height: 98%;
    transform: translate(-50%, 0%);
    z-index: 99;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 8px;
    background-color: rgb(251, 252, 255);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: none;
}

#setting_container.active {
    display: block;
}

/* ボディ */
.setting-body {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#settingFrame {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #fff;
    border-radius: 8px;
}

/* ローディング */
.setting-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
}

.loading-text {
    margin-top: 15px;
    color: #6c757d;
    font-size: 0.9rem;
}

/* エラー表示 */
.setting-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.error-content {
    text-align: center;
}

.error-content i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.error-text {
    color: #6c757d;
    margin-bottom: 10px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    #setting_container {
        width: 95%;
        top: 1%;
        height: 98%;
    }

    .setting-header {
        padding: 10px 15px;
    }

    .setting-header h2 {
        font-size: 1.1rem;
    }

    .setting-footer {
        padding: 8px 15px;
    }
}

/* タブレット対応 */
@media (min-width: 769px) and (max-width: 1024px) {
    #setting_container {
        width: 90%;
    }
}

/* 大画面対応 */
@media (min-width: 1400px) {
    #setting_container {
        width: 90%;
    }
}