/*
 * フロント（SKILL GATE / JOB GATE）共通ベーススタイル
 * 管理画面のbase.cssに相当するフロント版
 */

/*----------------------------------------------------
    ユーティリティクラス
----------------------------------------------------*/

/* clearfix - floatをクリアするヘルパークラス */
.clearfix {
    min-height: 1%;
}

.clearfix:after {
    content: "";
    display: block;
    clear: both;
}

/*----------------------------------------------------
    Modal
----------------------------------------------------*/
/* 全モーダル共通：背景の半透明黒オーバーレイ */
.modal {
    display: none;
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* モーダルボックス：基本スタイル */
.modal .box {
    display: none;
    position: fixed;
    width: 600px;
    height: 242px;
    top: 50%;
    left: 50%;
    margin-left: -300px;
    margin-top: -121px;
    box-shadow: 2px 0 2px rgba(0, 0, 0, 0.3);
}

/* レスポンシブ対応 */
@media only screen and (max-width: 787px) {
    .modal .box {
        width: 98%;
        width: 88%;
        margin-left: 0;
        left: 0;
        margin: auto;
        right: 0;
        top: 0;
        bottom: 0;
    }
}

/* 全モーダル共通：右上の×閉じるボタン */
.modal .box .btnClose a {
    float: right;
    position: relative;
    top: 6px;
    color: #fff;
    font-size: 30px;
    padding: 8px;
    border-radius: 6px 6px 0 0;
    background: #35AFC2;
}

.modal .box .btnClose a i {
    font-size: 100%;
}

.modal .box .btnClose a .fa:before {
    padding: 0;
}

/* 全モーダル共通：モーダル内側のボックス */
.modal .box .boxInside {
    padding: 40px;
    background: #ffffff;
    border: 8px solid #35AFC2;
    border-radius: 5px;
    text-align: center;
}

@media only screen and (max-width: 787px) {
    .modal .box .boxInside {
        padding: 10px;
    }
}

.modal .box .boxInside .alert {
    background: url(../img/common/alert_ico_note.gif) no-repeat scroll 10px 50% #fefdcc;
    border: 1px solid #e2dc58;
}

.modal .box .boxInside p {
    float: none;
    margin-left: 33px;
    line-height: 30px;
    text-align: left;
}

@media only screen and (max-width: 787px) {
    .modal .box .boxInside p {
        line-height: 1.5;
        padding: 10px;
    }
}

.modal .box .boxInside .btnsList {
    padding-top: 50px;
    display: flex;
    justify-content: center;
}

.modal .box .boxInside .btnsList .btn {
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    padding: 0 12px;
    display: inline-block;
    min-width: 10em;
    height: 50px;
    line-height: 50px;
    margin: 0 5px;
    text-align: center;
    border: none;
    font-size: 110%;
    background-color: #eee;
    border: 1px solid #585858;
    color: #585858;
}

.modal .box .boxInside .btnsList .btn:hover {
    opacity: 0.8;
}

.modal .box .boxInside .btnsList .btn.btn-cancel {
    display: block;
    background-color: #fff;
    color: var(--color-main);
    border: solid 1px var(--color-main);
    border-radius: 100rem;
    font-size: var(--pcFontSize16);
    font-weight: bold;
    letter-spacing: var(--pcLetterSpacing40);
    padding: 2.1rem 5.5rem 2.3rem;
    border-radius: 100rem;
    cursor: pointer;
    height: auto;
    line-height: 1;
}

.modal .box .boxInside .btnsList .formBtn {
    margin: 0;
    display: block;
}

.modal .box .boxInside .btnsList .formBtn .btn {
    background-color: #FEB606;
    color: #fff;
    border: 1px solid #FEB606;
}

/* 自分の開講講座：申込ボタン無効（グレーアウト） */
.course-apply-btn.disabled,
.course-apply-btn:disabled,
.course-apply-btn.course-apply-btn-disabled {
    background: #f5f5f5;
    color: #999;
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

/* 講師管理：申請中時のボタン無効（グレーアウト） */
.btn-instructor-disabled {
    background: #f5f5f5;
    color: #999;
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.instructor-applying-text {
    font-weight: bold;
    color: #666;
}

@media only screen and (max-width: 787px) {
    .modal .box .boxInside .btnsList {
        padding-top: 20px;
    }

    .modal .box .boxInside .btnsList .btn.btn-cancel {
        font-size: var(--spFontSize14);
        letter-spacing: var(--spLetterSpacing0);
        padding: 1.4rem 5rem;
    }
}

/*----------------------------------------------------
    テキスト表示：改行・空白保持
----------------------------------------------------*/
/* テキストエリアの改行を保持して表示（確認画面等で使用） */
.confirm-text-prewrap {
    white-space: pre-wrap;
}

/*----------------------------------------------------
    進捗インジケーター
----------------------------------------------------*/
/* 進捗インジケーターコンテナ */
.progress-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

/* 進捗ステップ */
.progress-indicator__step {
    padding: 8px 20px;
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
}

/* 現在のステップ（アクティブ） */
.progress-indicator__step--active {
    background-color: #000;
    color: #fff;
}

/* ステップ間の区切り */
.progress-indicator__separator {
    color: #000;
}

/*----------------------------------------------------
    スカウト設定（マイページ）：選択状態の色分け
----------------------------------------------------*/
.scout-toggle-btn {
    padding: 0.5em 1em;
    margin-right: 0.5em;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    background-color: #f3f4f6;
    color: #374151;
}

.scout-toggle-btn:hover {
    background-color: #e5e7eb;
}

.scout-toggle-btn--yes.is-selected {
    background-color: #2563eb;
    color: #fff;
    border-color: #1d4ed8;
}

.scout-toggle-btn--yes.is-selected:hover {
    background-color: #1d4ed8;
}

.scout-toggle-btn--no.is-selected {
    background-color: #1f2937;
    color: #fff;
    border-color: #111827;
}

.scout-toggle-btn--no.is-selected:hover {
    background-color: #374151;
}