/* ===== 研修報告フォーム ===== */
#tr-form-wrap {
    max-width: 860px;
    margin: 0 auto;
    font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    font-size: 15px;
    color: #333;
    padding: 0 16px;
    box-sizing: border-box;
}
.tr-title {
    font-size: 1.4em;
    border-left: 5px solid #2c7be5;
    padding-left: 12px;
    margin-bottom: 24px;
}
.tr-message {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 0.95em;
}
.tr-message.success { background:#d4edda; color:#155724; border:1px solid #c3e6cb; }
.tr-message.error   { background:#f8d7da; color:#721c24; border:1px solid #f5c6cb; }

.tr-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.tr-section-title {
    font-size: 1.05em;
    font-weight: bold;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}
.tr-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}
.tr-label {
    min-width: 180px;
    padding-top: 9px;
    font-weight: 600;
    font-size: 0.9em;
    flex-shrink: 0;
}
.tr-required {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    font-size: 0.72em;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}
.tr-input {
    flex: 1;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 0.95em;
    box-sizing: border-box;
    -webkit-appearance: none;
}
.tr-input:focus { outline:none; border-color:#2c7be5; box-shadow:0 0 0 3px rgba(44,123,229,.15); }
.tr-textarea {
    flex: 1;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 0.95em;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
    -webkit-appearance: none;
}
.tr-textarea:focus { outline:none; border-color:#2c7be5; box-shadow:0 0 0 3px rgba(44,123,229,.15); }

.tr-trainee-block {
    border: 1px solid #adb5bd;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}
.tr-trainee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2c7be5;
    color: #fff;
    padding: 12px 16px;
}
.tr-trainee-label { font-weight: bold; font-size: 0.95em; }
.tr-btn-remove {
    background: rgba(255,255,255,.25);
    color: #fff;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 4px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 0.85em;
    white-space: nowrap;
}
.tr-btn-remove:hover { background: rgba(255,255,255,.4); }
.tr-trainee-body { padding: 16px; }

.tr-group-title {
    font-weight: bold;
    font-size: 0.92em;
    color: #2c7be5;
    border-bottom: 1px dashed #adb5bd;
    padding-bottom: 6px;
    margin: 20px 0 12px;
}
.tr-hint { font-size: .82em; color: #888; font-weight: normal; margin-left: 6px; }

.tr-checklist { display: flex; flex-direction: column; gap: 14px; }
.tr-check-group-label {
    font-weight: bold;
    font-size: 0.85em;
    color: #555;
    margin-bottom: 6px;
    padding-left: 2px;
}
.tr-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.92em;
    line-height: 1.4;
    transition: background .1s;
    -webkit-tap-highlight-color: transparent;
}
.tr-check-item:hover { background: #f0f4ff; }
.tr-check-item:active { background: #ddeeff; }
.tr-check-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #2c7be5;
}

.tr-btn-add {
    display: block;
    width: 100%;
    padding: 14px;
    background: #e9f0fd;
    color: #2c7be5;
    border: 2px dashed #2c7be5;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    transition: background .2s;
    -webkit-tap-highlight-color: transparent;
}
.tr-btn-add:hover { background: #d4e4fb; }

.tr-submit-wrap { text-align: center; margin-top: 28px; padding-bottom: 40px; }
.tr-btn-submit {
    display: inline-block;
    width: 100%;
    max-width: 360px;
    padding: 15px 0;
    background: #2c7be5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: bold;
    cursor: pointer;
    transition: background .2s;
    -webkit-tap-highlight-color: transparent;
}
.tr-btn-submit:hover { background: #1a65cc; }
.tr-btn-submit:disabled { background: #aaa; cursor: not-allowed; }

@media (max-width: 640px) {
    #tr-form-wrap { padding: 0 10px; font-size: 14px; }
    .tr-section { padding: 14px 12px; }
    .tr-row { flex-direction: column; gap: 6px; }
    .tr-label { min-width: auto; padding-top: 0; }
    .tr-input, .tr-textarea { font-size: 16px; }
    .tr-trainee-body { padding: 14px 12px; }
    .tr-check-item { font-size: 0.9em; padding: 9px 8px; }
    .tr-check-item input[type="checkbox"] { width: 22px; height: 22px; }
    .tr-btn-submit { max-width: 100%; }
}
