/* ========================================
   職業体験予約システム - フロントエンドスタイル
   ======================================== */

.jeb-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem;
    font-family: 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-size: 1.125rem; /* ベース18px相当 */
}

/* イベント情報 */
.jeb-event-info {
    background: #f0f7ff;
    border-left: 4px solid #2c7be5;
    border-radius: 4px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
}
.jeb-event-info h2 { margin: 0 0 0.5rem; font-size: 1.75rem; }
.jeb-event-date, .jeb-event-time { margin: 0.3rem 0; font-size: 1.1rem; }

/* セクション */
.jeb-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.jeb-section__title {
    margin: 0 0 1.2rem;
    font-size: 1.4rem;
    color: #1a1a2e;
    border-bottom: 2px solid #2c7be5;
    padding-bottom: 0.6rem;
}

/* フォームフィールド */
.jeb-field { margin-bottom: 1.4rem; }
.jeb-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.jeb-field input,
.jeb-field select {
    width: 100%;
    max-width: 460px;
    padding: 0.85rem 1.1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.1rem;
    box-sizing: border-box;
}
.jeb-required {
    display: inline-block;
    background: #e53e3e;
    color: #fff;
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: normal;
    vertical-align: middle;
}

/* 注記 */
.jeb-note {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

/* グリッド */
.jeb-grid {
    display: grid;
    grid-template-columns: 160px repeat(5, 1fr);
    gap: 3px;
    font-size: 1rem;
    overflow-x: auto;
}
.jeb-grid__header {
    background: #2c7be5;
    color: #fff;
    text-align: center;
    padding: 0.7rem 0.4rem;
    font-weight: bold;
    font-size: 0.95rem;
    line-height: 1.5;
}
.jeb-grid__header.jeb-grid__cell--job {
    background: #f5f5f5;
    color: #333;
}
.jeb-grid__header--break {
    background: #a0aec0;
}
.jeb-grid__cell {
    padding: 0.7rem 0.4rem;
    text-align: center;
    background: #fafafa;
    border: 1px solid #e8e8e8;
}
.jeb-grid__cell--job {
    text-align: left;
    font-weight: bold;
    font-size: 1rem;
    background: #f5f5f5;
    padding: 0.7rem 0.8rem;
}
.jeb-capacity {
    display: block;
    font-size: 0.85rem;
    color: #777;
    font-weight: normal;
    margin-top: 3px;
}
.jeb-grid__cell--break {
    background: #e8ecf0;
    color: #a0aec0;
}

/* セル状態 */
.jeb-grid__cell--slot { cursor: pointer; transition: all 0.15s; }
.jeb-grid__cell--slot:hover:not(.is-full) { background: #ebf4ff; }
.jeb-grid__cell--slot.is-full { background: #fff0f0; cursor: not-allowed; }
.jeb-grid__cell--slot.is-few  { background: #fffbeb; }
.jeb-grid__cell--slot.is-ok   { background: #f0fff4; }
.jeb-grid__cell--slot.is-selected {
    background: #2c7be5 !important;
    color: #fff;
    font-weight: bold;
}

/* ステータスラベル */
.jeb-status { display: block; font-size: 0.9rem; }

/* 状態アイコン */
.jeb-icon {
    display: block;
    font-size: 1.3rem;
    line-height: 1;
    margin-bottom: 3px;
    font-weight: bold;
}
.is-full  .jeb-icon { color: #c53030; }
.is-few   .jeb-icon { color: #b7791f; }
.is-ok    .jeb-icon { color: #276749; }

/* 選択サマリー */
#jeb-selected-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
#jeb-selected-list li {
    padding: 0.75rem 1rem;
    border-left: 3px solid #2c7be5;
    margin-bottom: 0.5rem;
    background: #f0f7ff;
    border-radius: 0 4px 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
}
#jeb-selected-list li .jeb-remove {
    color: #e53e3e;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px 10px;
    border: 1px solid #e53e3e;
    border-radius: 3px;
    white-space: nowrap;
    margin-left: 1rem;
}

/* 送信ボタン */
.jeb-submit-wrap { text-align: center; padding: 1.5rem 0; }
.jeb-btn-submit {
    background: #2c7be5;
    color: #fff;
    border: none;
    padding: 1.1rem 4rem;
    font-size: 1.3rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
    min-width: 240px;
}
.jeb-btn-submit:hover { background: #1a5fba; }
.jeb-btn-submit:disabled { background: #a0aec0; cursor: not-allowed; }

/* エラー */
.jeb-error {
    background: #fff0f0;
    border: 1px solid #e53e3e;
    border-radius: 6px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    color: #c53030;
    font-size: 1.05rem;
}

/* 完了画面 */
.jeb-complete {
    text-align: center;
    padding: 3rem 1rem;
    background: #f0fff4;
    border: 1px solid #68d391;
    border-radius: 8px;
}
.jeb-complete__icon { font-size: 3.5rem; margin-bottom: 1rem; }
.jeb-complete h3 { font-size: 1.8rem; color: #276749; }
.jeb-complete__no { font-size: 1.2rem; margin-top: 1rem; }

/* お知らせ */
.jeb-notice {
    padding: 1.2rem;
    background: #fffbeb;
    border: 1px solid #f6e05e;
    border-radius: 6px;
    text-align: center;
    font-size: 1.1rem;
}

/* レスポンシブ：タブレット */
@media (max-width: 768px) {
    .jeb-wrap { font-size: 1rem; padding: 1rem; }
    .jeb-grid {
        font-size: 0.88rem;
        grid-template-columns: 120px repeat(5, 1fr);
    }
    .jeb-grid__cell { padding: 0.5rem 0.25rem; }
    .jeb-grid__cell--job { font-size: 0.9rem; padding: 0.5rem 0.4rem; }
    .jeb-grid__header { font-size: 0.85rem; padding: 0.55rem 0.2rem; }
    .jeb-icon { font-size: 1.1rem; }
    .jeb-status { font-size: 0.82rem; }
    .jeb-section__title { font-size: 1.25rem; }
    .jeb-field label { font-size: 1rem; }
    .jeb-field input, .jeb-field select { font-size: 1rem; max-width: 100%; }
    .jeb-btn-submit { font-size: 1.2rem; padding: 1rem 2rem; width: 100%; min-width: unset; }
}

/* レスポンシブ：スマホ */
@media (max-width: 480px) {
    .jeb-grid {
        font-size: 0.78rem;
        grid-template-columns: 90px repeat(5, 1fr);
    }
    .jeb-grid__cell--job { font-size: 0.78rem; }
    .jeb-capacity { font-size: 0.7rem; }
    .jeb-icon { font-size: 1rem; }
    .jeb-status { font-size: 0.72rem; }
    .jeb-section { padding: 1.2rem; }
}

/* ── インラインバリデーション ── */
.jeb-field.has-error input,
.jeb-field.has-error select {
    border-color: #e53e3e;
    background: #fff8f8;
}
.jeb-field-error {
    color: #c53030;
    font-size: 0.9rem;
    margin: 0.3rem 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.jeb-field-error::before {
    content: '⚠';
    font-size: 0.95rem;
}
.jeb-field-error--selection {
    margin-top: 0.8rem;
}
