/* --- 全体のレイアウト設定 --- */
#security-test-container {
    max-width: 650px;
    margin: 30px auto;
    padding: 30px 20px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #333;
    min-height: 400px; /* 高さを確保 */
}

/* --- 追加：氏名入力画面のデザイン --- */
#sg-name-screen {
    text-align: center;
    padding: 40px 20px;
}

.sg-intro-box h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 3px solid #3498db;
    display: inline-block;
    padding-bottom: 10px;
}

#sg-user-name-input {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
    box-sizing: border-box;
}

.sg-btn-primary {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sg-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.6);
}

/* --- 以下、既存のスタイル（プログレスバーなど） --- */
#progress-bar-container {
    width: 100%;
    height: 12px;
    background-color: #e9ecef;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    width: 0%;
    transition: width 0.5s;
}

#progress-text {
    display: block;
    text-align: right;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 30px;
    font-weight: bold;
}

.q-text {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 35px;
    text-align: center;
    font-weight: 600;
}

.memo-box {
    background: #f0f7ff;
    border: 2px solid #3498db;
    padding: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
    border-radius: 12px;
    margin-bottom: 20px;
    white-space: pre-wrap; /* 改行を反映 */
}

/* ボタン群 */
.options {
    display: grid;
    gap: 15px;
}

.opt-btn {
    display: block;
    width: 100%;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #3498db;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 #2980b9;
}

.opt-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #1c5982;
}

.opt-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1c5982;
}

/* スマホ対応 */
@media (max-width: 480px) {
    #security-test-container { padding: 20px 15px; margin: 10px; }
    .q-text { font-size: 1.1rem; }
    .opt-btn { padding: 15px; font-size: 1rem; }
}