@charset "UTF-8";
/**
 * 会員登録フォーム 共通CSS
 * /register, /register_one 等で共通利用
 */

/* ============================================
   セクション見出し
============================================ */
.section__heading {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-left: 12px;
    border-left: 4px solid #e33c0b;
}
.section__heading--sub {
    font-size: 14px;
    color: #666;
    font-weight: bold;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #ccc;
}

/* ============================================
   ボタングリッド（卒年・学校区分等）
============================================ */
.btn-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}
.btn-grid .btn-option {
    padding: 15px 20px;
    border: 2px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-size: 16px;
}
.btn-grid .btn-option:hover {
    border-color: #e33c0b;
    background: #fff5f3;
}
.btn-grid .btn-option.selected {
    border-color: #e33c0b;
    background: #e33c0b;
    color: #fff;
}

/* 卒年ボタン */
.btn-grid.graduation-year .btn-option {
    flex: 1;
    min-width: 100px;
}

/* 学校区分ボタン（2カラム + 大学全幅） */
.btn-grid.school-type {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.btn-grid.school-type .btn-option {
    flex: 1 1 calc(50% - 5px);
    min-width: calc(50% - 5px);
}
.btn-grid.school-type .btn-option--primary {
    flex: 1 1 100%;
}

/* ============================================
   50音グリッド
============================================ */
.gojuon-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 20px auto;
    max-width: 600px;
}
.gojuon-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gojuon-row {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    justify-content: center;
}
.gojuon-btn {
    width: 60px;
    height: 50px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}
.gojuon-btn:hover {
    border-color: #e33c0b;
    background: #fff5f3;
}
.gojuon-btn.selected {
    border-color: #e33c0b;
    background: #e33c0b;
    color: #fff;
}
.gojuon-btn.empty {
    visibility: hidden;
}

/* ============================================
   選択リスト（大学・学部・学科）
============================================ */
.selection-list-wrap {
    margin: 15px 0;
    border: 1px solid #ddd;
}

/* 検索ボックス */
.search-box {
    padding: 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}
.search-box .search-box__input {
    width: 100%;
    padding: 10px 12px 10px 42px;
    border: 1px solid #ddd;
    font-size: 14px;
    box-sizing: border-box;
    height: auto;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 14px center no-repeat;
}
.search-box .search-box__input:focus {
    border-color: #e33c0b;
    outline: none;
}
.search-box .search-box__input::placeholder {
    color: #aaa;
}

.selection-list-wrap .selection-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 0;
    border: none;
}
.selection-list {
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
}
.selection-list .list-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-bottom: 1px solid #eee;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    transition: all 0.3s;
}
.selection-list .list-item::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 12px;
    box-sizing: border-box;
    transition: all 0.3s;
}
.selection-list .list-item:last-child {
    border-bottom: none;
}
.selection-list .list-item:hover {
    background: #fff5f3;
}
.selection-list .list-item:hover::before {
    border-color: #e33c0b;
}
.selection-list .list-item.selected {
    background: #e33c0b;
    color: #fff;
}
.selection-list .list-item.selected::before {
    border-color: #fff;
    background: #fff;
    box-shadow: inset 0 0 0 3px #e33c0b;
}
.selection-list .loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* ============================================
   「該当なし」ボタン
============================================ */
.btn-none {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-top: 1px dashed #ccc;
    background: #fafafa;
    color: #e33c0b;
    font-weight: bold;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-none:hover {
    background: #fff5f3;
}
.btn-none.selected {
    background: #e33c0b;
    color: #fff;
}

/* ============================================
   手入力フォーム
============================================ */
.manual-input-form {
    display: none;
    margin-top: 15px;
}
.manual-input-form.show {
    display: block;
}
.manual-input-form input[type="text"]:focus {
    border-color: #e33c0b;
    outline: none;
}
.manual-input-form .error {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 10px;
    color: #fff;
    font-size: 1.3rem;
    background-color: #E3002D;
}

/* ============================================
   ローディング
============================================ */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* ============================================
   レスポンシブ
============================================ */
@media (max-width: 768px) {
    .btn-grid.graduation-year .btn-option {
        width: calc(50% - 10px);
        flex: none;
    }
    .btn-grid.school-type {
        flex-wrap: wrap;
    }
    .btn-grid.school-type .btn-option {
        flex: 1 1 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
    .btn-grid.school-type .btn-option--primary {
        flex: 1 1 100%;
    }
    .gojuon-container {
        gap: 10px;
    }
    .gojuon-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .section__heading {
        font-size: 15px;
        padding-left: 10px;
    }
}
