/* =====================================================
   KKLMS Public Styles
   ===================================================== */

/* リセット */
.kklms-container *, .kklms-container *::before, .kklms-container *::after {
    box-sizing: border-box;
}

.kklms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    color: #333;
    line-height: 1.7;
}

.kklms-container--narrow {
    max-width: 500px;
}

/* =====================================================
   カード
   ===================================================== */
.kklms-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.kklms-card-title {
    font-size: 1.5em;
    margin: 0 0 8px;
    color: #1a202c;
}

.kklms-card-desc {
    color: #718096;
    margin: 0 0 24px;
}

/* =====================================================
   アラート
   ===================================================== */
.kklms-alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.kklms-alert--success {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #276749;
}

.kklms-alert--error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
}

.kklms-alert--warning {
    background: #fffaf0;
    border: 1px solid #feebc8;
    color: #c05621;
}

.kklms-alert--info {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    color: #2b6cb0;
}

.kklms-alert a {
    color: inherit;
    font-weight: 600;
}

/* =====================================================
   フォーム
   ===================================================== */
.kklms-form-section-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #2d3748;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.kklms-form-section-title:first-of-type {
    margin-top: 0;
}

.kklms-form-group {
    margin-bottom: 18px;
}

.kklms-form-row {
    display: flex;
    gap: 16px;
}

.kklms-form-row--half .kklms-form-group {
    flex: 1;
}

.kklms-label {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.kklms-required {
    color: #e53e3e;
}

.kklms-input,
.kklms-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
}

.kklms-input:focus,
.kklms-textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.kklms-input--short {
    max-width: 200px;
}

.kklms-hint {
    font-size: 0.85em;
    color: #a0aec0;
    margin-top: -15px;
}
.kklms-hint.dl {
    color: #f00;
    margin-top: 10px;
}
.kklms-form-submit {
    margin-top: 28px;
}

.kklms-form-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    color: #718096;
    font-size: 0.9em;
}

.kklms-form-footer a {
    color: #4299e1;
    text-decoration: none;
    font-weight: 600;
}

.kklms-form-footer a:hover {
    text-decoration: underline;
}

/* WP Login Form override */
.kklms-container .login-username label,
.kklms-container .login-password label {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.kklms-container .login-username input,
.kklms-container .login-password input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1em;
    margin-bottom: 16px;
}

.kklms-container .login-submit input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #4299e1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.kklms-container .login-submit input[type="submit"]:hover {
    background: #3182ce;
}

/* =====================================================
   ボタン
   ===================================================== */
.kklms-btn {
    display: inline-block;
    padding: 10px 22px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}

.kklms-btn--primary {
    background: #4299e1;
    color: #fff;
    border-color: #4299e1;
}

.kklms-btn--primary:hover {
    background: #3182ce;
    border-color: #3182ce;
    color: #fff;
}

.kklms-btn--outline {
    background: transparent;
    color: #4299e1;
    border-color: #4299e1;
}

.kklms-btn--outline:hover {
    background: #ebf8ff;
    color: #3182ce;
}

.kklms-btn--large {
    padding: 14px 32px;
    font-size: 1.1em;
}

.kklms-btn--small {
    padding: 5px 14px;
    font-size: 0.85em;
    border-radius: 6px;
}

.kklms-btn--text {
    background: none;
    border: none;
    padding: 4px 8px;
    font-size: 0.85em;
}

.kklms-btn--danger {
    color: #e53e3e;
}

.kklms-btn--danger:hover {
    color: #c53030;
    text-decoration: underline;
}

.kklms-btn--disabled {
    opacity: .5;
    pointer-events: none;
}
.topCaution {
    border: solid 1px #f00;
    padding: 20px;
    text-align: center;
}
.topCaution .kklms-btn {
    font-size: 1.5rem;
}
.topCaution .kklms-hint {
    color: #f00;
    font-size: 1.2rem;
}
/* =====================================================
   ダッシュボード
   ===================================================== */
.kklms-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.kklms-dashboard-title {
    font-size: 1.6em;
    margin: 0;
}

.kklms-dashboard-welcome {
    color: #718096;
    margin: 4px 0 0;
}

.kklms-dashboard-actions {
    display: flex;
    gap: 10px;
}

/* タブ */
.kklms-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
    gap: 4px;
}

.kklms-tab {
    padding: 12px 20px;
    text-decoration: none;
    color: #718096;
    font-weight: 600;
    font-size: 0.95em;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
}

.kklms-tab:hover {
    color: #4a5568;
}

.kklms-tab--active {
    color: #4299e1;
    border-bottom-color: #4299e1;
}

/* =====================================================
   講座カード（マイページ）
   ===================================================== */
.kklms-course-heading {
    font-size: 1.2em;
    color: #2d3748;
    margin: 28px 0 14px;
    padding: 8px 14px;
    background: #f7fafc;
    border-left: 4px solid #4299e1;
    border-radius: 0 8px 8px 0;
}

.kklms-lecture-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    transition: box-shadow .2s;
}

.kklms-lecture-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.kklms-lecture-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.kklms-lecture-card-title {
    font-size: 1.1em;
    margin: 0;
    color: #1a202c;
}

.kklms-lecture-card-meta {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    font-size: 0.9em;
    color: #718096;
}

.kklms-lecture-card-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}

/* ステータスバッジ */
.kklms-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
    white-space: nowrap;
}

.kklms-status--enrolled {
    background: #ebf8ff;
    color: #2b6cb0;
}

.kklms-status--completed {
    background: #f0fff4;
    color: #276749;
}

.kklms-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    background: #ebf8ff;
    color: #2b6cb0;
}

/* =====================================================
   進捗ステップ
   ===================================================== */
.kklms-steps {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.kklms-step {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85em;
    color: #a0aec0;
    flex: 1;
    min-width: 140px;
}

.kklms-step--active {
    background: #ebf8ff;
    border-color: #bee3f8;
    color: #2b6cb0;
}

.kklms-step--done {
    background: #f0fff4;
    border-color: #c6f6d5;
    color: #276749;
}

.kklms-step-icon {
    font-size: 1.2em;
}

.kklms-step-label {
    font-weight: 600;
    flex: 1;
}

/* =====================================================
   講座一覧ページ
   ===================================================== */
.kklms-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.kklms-page-title {
    font-size: 1.5em;
    margin: 0;
}

.kklms-course-section {
    margin-bottom: 32px;
}

.kklms-course-desc {
    color: #718096;
    margin: -6px 0 16px 18px;
    font-size: 0.9em;
}

.kklms-lecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.kklms-lecture-grid-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    transition: box-shadow .2s;
}

.kklms-lecture-grid-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.kklms-lecture-grid-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.kklms-lecture-grid-item-header h4 {
    font-size: 1em;
    margin: 0;
    color: #1a202c;
}

.kklms-lecture-grid-item-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    font-size: 0.85em;
    color: #718096;
}

.kklms-lecture-grid-item-excerpt {
    font-size: 0.88em;
    color: #4a5568;
    line-height: 1.6;
    margin: 8px 0 0;
    padding: 0;
}

.kklms-content-description {
    margin-top: 12px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    font-size: 0.95em;
    color: #4a5568;
    line-height: 1.7;
}

.kklms-lecture-grid-item-action {
    margin-top: 14px;
}

/* =====================================================
   講座詳細
   ===================================================== */
.kklms-back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: #4299e1;
    text-decoration: none;
    font-size: 0.9em;
}

.kklms-back-link:hover {
    text-decoration: underline;
}

.kklms-lecture-detail-header {
    margin-bottom: 24px;
}

.kklms-lecture-detail-title {
    font-size: 1.5em;
    margin: 10px 0 0;
    color: #1a202c;
}

.kklms-lecture-detail-info {
    margin-bottom: 20px;
}

.kklms-info-item {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95em;
}

.kklms-info-label {
    font-weight: 600;
    color: #4a5568;
    min-width: 120px;
}

.kklms-lecture-detail-desc {
    margin: 20px 0;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    color: #4a5568;
}

.kklms-lecture-detail-action {
    margin-top: 24px;
    text-align: center;
}

/* 動画埋め込み */
.kklms-video-embed {
    margin-top: 12px;
}

.kklms-video-embed iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 8px;
}

/* 空ステート */
.kklms-empty {
    text-align: center;
    padding: 48px 20px;
    color: #a0aec0;
}

.kklms-text-muted {
    color: #a0aec0;
    font-size: 0.85em;
}

/* =====================================================
   講座コンテンツページ（Phase 3）
   ===================================================== */
.kklms-content-header {
    margin-bottom: 24px;
}

.kklms-content-title {
    font-size: 1.6em;
    margin: 10px 0 0;
    color: #1a202c;
}

.kklms-content-meta {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    font-size: 0.95em;
    color: #718096;
    flex-wrap: wrap;
}

/* 進捗バー */
.kklms-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.kklms-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    font-weight: 600;
    color: #a0aec0;
    min-width: 80px;
}

.kklms-progress-step--active {
    color: #4299e1;
}

.kklms-progress-step--done {
    color: #38a169;
}

.kklms-progress-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    font-weight: 700;
    font-size: 1em;
}

.kklms-progress-step--active .kklms-progress-icon {
    background: #bee3f8;
    color: #2b6cb0;
}

.kklms-progress-step--done .kklms-progress-icon {
    background: #c6f6d5;
    font-size: 1.2em;
}

.kklms-progress-line {
    width: 60px;
    height: 3px;
    background: #e2e8f0;
    margin: 0 8px;
    margin-bottom: 20px;
}

.kklms-content-section {
    margin-bottom: 28px;
}

.kklms-content-section-title {
    font-size: 1.15em;
    color: #2d3748;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.kklms-content-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
}

.kklms-content-box--muted {
    background: #f7fafc;
    color: #a0aec0;
}

.kklms-content-box--highlight {
    background: #fff5f5;
    border-color: #fc8181;
}

.kklms-content-box--info {
    background: #ebf8ff;
    border-color: #90cdf4;
}

.kklms-content-box--success {
    background: #f0fff4;
    border-color: #9ae6b4;
}

.kklms-content-note {
    font-size: 0.85em;
    color: #a0aec0;
    margin-top: 10px;
}

.kklms-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.kklms-file-icon {
    font-size: 2em;
}

.kklms-file-name {
    font-weight: 600;
    color: #2d3748;
}

.kklms-file-size {
    font-size: 0.85em;
    color: #a0aec0;
}

.kklms-done-tag {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85em;
    color: #38a169;
    font-weight: 600;
}

.kklms-live-badge {
    display: inline-block;
    padding: 4px 14px;
    background: #e53e3e;
    color: #fff;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    margin-bottom: 10px;
    animation: kklms-pulse 1.5s infinite;
}

@keyframes kklms-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.kklms-video-container {
    margin-bottom: 12px;
}

.kklms-video-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 8px;
}

/* タイマーUI */
.kklms-timer-area {
    margin-top: 16px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.kklms-timer-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    color: #4a5568;
    margin-bottom: 10px;
}

.kklms-timer-icon {
    font-size: 1.3em;
}

.kklms-timer-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.kklms-timer-progress-fill {
    height: 100%;
    background: #4299e1;
    border-radius: 4px;
    transition: width 1s linear, background .5s;
}

.kklms-timer-hint {
    font-size: 0.85em;
    color: #718096;
    margin-top: 10px;
}

/* 視聴制御 */
.kklms-watch-control {
    margin-top: 16px;
}

.kklms-watch-complete-area {
    margin-top: 16px;
    padding: 16px;
    background: #f7fafc;
    border: 1px dashed #cbd5e0;
    border-radius: 8px;
    text-align: center;
}

.kklms-watch-complete-area.kklms-complete-ready {
    background: #f0fff4;
    border-color: #38a169;
    border-style: solid;
    animation: kklms-glow 1s ease-in-out 3;
}

@keyframes kklms-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(56,161,105,0); }
    50% { box-shadow: 0 0 12px 4px rgba(56,161,105,0.2); }
}

.kklms-btn--complete-ready {
    background: #38a169 !important;
    border-color: #38a169 !important;
    color: #fff !important;
    font-size: 1.05em !important;
}

.kklms-btn--complete-ready:hover {
    background: #2f855a !important;
    border-color: #2f855a !important;
}

/* =====================================================
   小テスト（Phase 4）
   ===================================================== */
.kklms-quiz-info {
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.95em;
    color: #4a5568;
}

.kklms-quiz-info p {
    margin: 4px 0;
}

.kklms-quiz-question {
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color .2s;
}

.kklms-quiz-question:hover {
    border-color: #cbd5e0;
}

.kklms-quiz-question-header {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.kklms-quiz-question-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 28px;
    background: #4299e1;
    color: #fff;
    border-radius: 14px;
    font-size: 0.8em;
    font-weight: 700;
    flex-shrink: 0;
}

.kklms-quiz-question-text {
    font-weight: 600;
    color: #2d3748;
    line-height: 1.6;
}

.kklms-quiz-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 52px;
}

.kklms-quiz-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
}

.kklms-quiz-choice:hover {
    border-color: #4299e1;
    background: #f0f7ff;
}

.kklms-quiz-choice input[type="radio"] {
    display: none;
}

.kklms-quiz-choice input[type="radio"]:checked + .kklms-quiz-choice-label {
    background: #4299e1;
    color: #fff;
}

.kklms-quiz-choice input[type="radio"]:checked ~ .kklms-quiz-choice-text {
    font-weight: 600;
    color: #2b6cb0;
}

.kklms-quiz-choice:has(input:checked) {
    border-color: #4299e1;
    background: #ebf8ff;
}

.kklms-quiz-choice-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    font-weight: 700;
    font-size: 0.85em;
    flex-shrink: 0;
    transition: all .2s;
}

.kklms-quiz-choice-text {
    font-size: 0.95em;
    color: #4a5568;
    transition: all .2s;
}

.kklms-quiz-submit-area {
    margin-top: 32px;
    text-align: center;
    padding-top: 24px;
    border-top: 2px solid #e2e8f0;
}

.kklms-quiz-submit-note {
    font-size: 0.9em;
    color: #718096;
    margin-bottom: 16px;
}

/* 結果表示 */
.kklms-quiz-result {
    text-align: center;
    padding: 32px 20px;
}

.kklms-quiz-result-icon {
    font-size: 3em;
    margin-bottom: 12px;
}

.kklms-quiz-result h3 {
    font-size: 1.5em;
    margin: 0 0 8px;
}

.kklms-quiz-result--pass {
    color: #276749;
}

.kklms-quiz-result--fail {
    color: #c53030;
}

.kklms-quiz-score {
    font-size: 1.2em;
    font-weight: 700;
    margin: 8px 0 16px;
}

/* 回答詳細 */
.kklms-quiz-review-item {
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid;
}

.kklms-quiz-review--correct {
    background: #f0fff4;
    border-left-color: #38a169;
}

.kklms-quiz-review--wrong {
    background: #fff5f5;
    border-left-color: #e53e3e;
}

.kklms-quiz-review-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.kklms-quiz-review-answer {
    margin-left: 28px;
    font-size: 0.9em;
    color: #4a5568;
}

/* =====================================================
   レスポンシブ
   ===================================================== */
@media screen and (max-width: 600px) {
    .kklms-container {
        padding: 12px;
    }

    .kklms-card {
        padding: 20px;
    }

    .kklms-form-row {
        flex-direction: column;
        gap: 0;
    }

    .kklms-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .kklms-dashboard-actions {
        width: 100%;
        flex-direction: column;
    }

    .kklms-dashboard-actions .kklms-btn {
        width: 100%;
        text-align: center;
    }

    .kklms-steps {
        flex-direction: column;
    }

    .kklms-lecture-grid {
        grid-template-columns: 1fr;
    }

    .kklms-lecture-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .kklms-progress-bar {
        padding: 14px;
    }

    .kklms-progress-line {
        width: 30px;
    }

    .kklms-progress-step {
        min-width: 60px;
        font-size: 0.75em;
    }

    .kklms-file-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .kklms-quiz-choices {
        margin-left: 0;
    }

    .kklms-quiz-question-header {
        flex-direction: column;
    }
}

/* =====================================================
   修了証カード（Phase 5）
   ===================================================== */
.kklms-cert-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kklms-cert-card {
    padding: 20px;
}

.kklms-cert-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.kklms-cert-icon {
    font-size: 2.2em;
}

.kklms-cert-number {
    font-size: 1.05em;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    font-family: monospace;
}

.kklms-cert-lectures {
    margin-bottom: 14px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
}

.kklms-cert-lectures-label {
    font-size: 0.85em;
    color: #718096;
    margin: 0 0 6px;
}

.kklms-cert-lectures ul {
    margin: 0;
    padding: 0 0 0 18px;
    font-size: 0.9em;
    color: #4a5568;
}

.kklms-cert-lectures li {
    padding: 2px 0;
}

.kklms-cert-actions {
    display: flex;
    gap: 10px;
}

/* =====================================================
   フォーム追加要素（チェック・ラジオ・必須マーク）
   ===================================================== */
.kklms-required {
    color: #e53e3e;
    font-weight: 700;
}

.kklms-checkbox-group,
.kklms-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 4px;
}

.kklms-checkbox-label,
.kklms-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.95em;
    color: #4a5568;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all .15s;
}

.kklms-checkbox-label:hover,
.kklms-radio-label:hover {
    background: #ebf8ff;
    border-color: #90cdf4;
}

.kklms-checkbox-label:has(input:checked),
.kklms-radio-label:has(input:checked) {
    background: #ebf8ff;
    border-color: #4299e1;
    color: #2b6cb0;
    font-weight: 600;
}

.kklms-hint-list {
    margin: 6px 0 0;
    padding: 0 0 0 20px;
    font-size: 0.85em;
    color: #718096;
}

.kklms-hint-list li {
    padding: 2px 0;
}

/* =====================================================
   プロフィール確認テーブル
   ===================================================== */
.kklms-profile-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95em;
}

.kklms-profile-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.kklms-profile-table tr:last-child {
    border-bottom: none;
}

.kklms-profile-table th {
    width: 38%;
    padding: 12px 16px;
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.kklms-profile-table td {
    padding: 12px 16px;
    color: #1a202c;
    vertical-align: top;
    word-break: break-all;
}

@media (max-width: 480px) {
    .kklms-profile-table,
    .kklms-profile-table tbody,
    .kklms-profile-table tr,
    .kklms-profile-table th,
    .kklms-profile-table td {
        display: block;
        width: 100%;
    }
    .kklms-profile-table th {
        padding-bottom: 4px;
        background: none;
        color: #718096;
        font-size: .85em;
        border-bottom: none;
    }
    .kklms-profile-table td {
        padding-top: 0;
        padding-bottom: 12px;
        font-weight: 600;
    }
}

/* =====================================================
   ご利用の流れ（フローガイド）
   ===================================================== */
.kklms-flow-guide {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.kklms-flow-title {
    font-size: 1em;
    font-weight: 700;
    color: #2b6cb0;
    margin: 0 0 16px;
}

.kklms-flow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.kklms-flow-item {
    background: #fff;
    border: 1px solid #bee3f8;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.kklms-flow-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #3182ce;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95em;
    margin-top: 2px;
}

.kklms-flow-body {
    flex: 1;
    min-width: 0;
}

.kklms-flow-body strong {
    display: block;
    font-size: .95em;
    color: #1a202c;
    margin-bottom: 4px;
}

.kklms-flow-body p {
    margin: 0 0 4px;
    font-size: .85em;
    color: #4a5568;
    line-height: 1.5;
}

.kklms-flow-body p:last-child {
    margin-bottom: 0;
}

.kklms-flow-body a {
    color: #3182ce;
    font-weight: 600;
}

.kklms-flow-note {
    color: #718096 !important;
    font-size: .8em !important;
}

@media (max-width: 600px) {
    .kklms-flow-grid {
        grid-template-columns: 1fr;
    }
}
