/* ===============================
   共通：ボタン / テキスト調整
================================ */
.register {
    font-size: 2.5rem;
}

.card-header {
    font-size: 3rem;
    font-weight: bold;
}

.btn-register {
    font-size: 1.5rem;
    color: #fff;
    background-color: rgb(64, 149, 235);
    padding: 1rem 2rem;
    border: none;
    transition: background-color 0.2s ease;
}

.btn-register:hover,
.btn-register:active,
.btn-register:focus {
    color: #fff !important;
    background-color: rgb(40, 120, 210) !important;
    outline: none;
}

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

/* ===============================
   PC：学生登録ページ（横並びフォーム）
================================ */
.student-form-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-form-row .form-label {
    margin-bottom: 0;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.student-register-form .error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: .25rem;
    text-align: left;
    width: 100%;
    align-self: flex-start;
}


/* ===============================
   PC：学生登録ページのベース
================================ */
.student-register-form {
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 1.8rem;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
}

.student-form-group,
.student-form-row {
    margin-bottom: 1.3rem;
}

.student-register-form .form-control {
    border-radius: 0.6rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid #d4d7e2;
}

.student-register-form .form-control:focus {
    border-color: #4b8df0;
    box-shadow: 0 0 0 0.12rem rgba(75, 141, 240, 0.25);
}

.student-form-actions {
    margin-top: 1.8rem !important;
}


.form-check-input {
  border: 2px solid #333;
}
.form-check-input:checked {
  background-color: #0d6efd; /* Bootstrapの青 */
  border-color: #0d6efd;
}

/* ===============================
   背景・タイトル
================================ */
.student-register-hero {
    padding: 4rem 0 4.5rem;
    background: #f5f7fb;
}

.student-register-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #222;
}

.student-register-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.2rem;
}

.student-register-link {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
}

.student-register-link:hover {
    text-decoration: underline;
}

/* ===============================
   📱 スマホ（576px 以下）
================================ */
@media (max-width: 576px) {

    /* ヒーローセクションの余白調整 */
    .student-register-hero {
        padding-top: 1.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* タイトル・説明 */
    .student-register-title {
        margin-top: 0 !important;
        margin-bottom: 0.5rem !important;
        font-size: 1.4rem;
    }

    .student-register-text {
        margin-top: 0.3rem !important;
    }

    /* フォーム本体 */
    .student-register-form {
        padding: 1.2rem 1rem;
        border-radius: 0.65rem;
    }

    /* ラベル左寄せ */
    .student-form-row .form-label,
    .form-label {
        text-align: left !important;
        margin-bottom: 0.2rem;
        font-size: 0.85rem;
    }

    /* 横並び → 縦並び */
    .student-form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        margin-bottom: 0.8rem;
    }

    /* 入力欄の最適化 */
    .student-register-form .form-control {
        padding: 0.55rem 0.7rem;
        font-size: 0.9rem;
    }

    /* ボタン周り */
    .student-form-actions {
        margin-top: 1rem !important;
    }
}

/* ===============================
   📱 タブレット（768px 以下）
================================ */
@media (max-width: 768px) {
    .student-form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-form-row .col-lg-3,
    .student-form-row .col-lg-9 {
        width: 100%;
    }
}

/* ===============================
   Thanks（登録完了）ページ
================================ */
.student-thanks-hero {
    padding: 3rem 0 4rem;
    background: #f5f7fb;
}

.student-thanks-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2.3rem 2.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    margin-top: 1rem;
}

.thanks-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 2px solid #4dbf7a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.thanks-icon span {
    font-size: 1.6rem;
    color: #4dbf7a;
}

.student-thanks-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #222;
}

.student-thanks-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
}

.student-thanks-note {
    margin-top: 0.75rem;
}

/* 📱 スマホ調整 */
@media (max-width: 576px) {
    .student-thanks-hero {
        padding: 2.5rem 0 3rem;
    }

    .student-thanks-card {
        padding: 2rem 1.5rem;
        margin: 0 0.75rem;
    }

    .student-thanks-title {
        font-size: 1.5rem;
    }

    .student-thanks-text {
        font-size: 0.9rem;
    }

    .thanks-icon {
        width: 2.6rem;
        height: 2.6rem;
        margin-bottom: 0.7rem;
    }

    .thanks-icon span {
        font-size: 1.4rem;
    }
}

