/* E-Learning Drip Content統合スタイル */

/* プログレスバー関連 */
.course01-progress-container {
    margin: 0;
    padding: 15px;
    background-color: #e7e7e7;
    border-radius: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.course01-progress-label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #495057;
}

.course01-progress-bar {
    height: 12px;
    background-color: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.course01-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #cc0000);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.course01-progress-stats {
    text-align: right;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
}

/* 完了ボタン関連 */
.course01-completion-status {
    margin: 25px 0;
    position: relative;
    display: flex;
    align-items: center;
}

#course01-mark-complete,
.course01-completion-button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #ff0000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
}

#course01-mark-complete:hover,
.course01-completion-button:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#course01-mark-complete:disabled,
.course01-completion-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.course01-loading {
    position: relative;
    pointer-events: none;
}

.course01-loading:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    right: 10px;
    margin-top: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    animation: course01-spin 0.8s linear infinite;
}

@keyframes course01-spin {
    to {
        transform: rotate(360deg);
    }
}

.course01-completion-button.completed {
    background-color: #cc0000;
    cursor: default;
}

.course01-completion-icon {
    display: none !important;
}

.course01-completion-message {
    margin-left: 15px;
    font-weight: bold;
    color: #28a745;
}

/* 感想送信ステータスメッセージ */
.course01-feedback-status {
    margin-top: 15px;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 4px solid #ff0000;
    transition: all 0.3s ease;
}

.course01-feedback-status span {
    display: flex;
    align-items: center;
}

.course01-feedback-status span[style*="color: #4CAF50"] {
    color: #28a745 !important;
    border-color: #28a745;
}

.course01-feedback-status span[style*="color: #ff6b6b"] {
    color: #dc3545 !important;
    border-color: #dc3545;
}

.course01-feedback-status span[style*="color: #ff9800"] {
    color: #fd7e14 !important;
    border-color: #fd7e14;
}

/* 次に進むボタン */
.course01-next-lesson {
    margin: 15px 0;
    text-align: center;
}

.course01-continue-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #28a745;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-weight: bold;
}

.course01-continue-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
}

/* アクセス拒否メッセージ */
.course01-access-denied-message {
    padding: 15px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    margin-bottom: 20px;
}

/* コンテンツ一覧 */
.course01-progress-details {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.course01-progress-details h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
}

.course01-progress-details ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.course01-progress-details li {
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.course01-progress-details li:hover {
    background-color: #f1f3f5;
}

.course01-progress-details li.completed {
    background-color: #e8f5e9;
}

.course01-progress-details li.locked {
    opacity: 0.7;
}

.course01-progress-details .status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: 10px;
}

.course01-progress-details li.completed .status-icon {
    background-color: #28a745;
    color: white;
}

.lock-icon {
    font-style: normal;
    margin-left: 5px;
    opacity: 0.8;
}

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.fadeOut {
    animation: fadeOut 0.5s ease forwards;
}

/* 基本レイアウト */
#footer {
    max-width: 960px;
    margin: auto;
}

.wrap {
    max-width: 960px;
}

.copyright {
    margin-top: 8px;
    margin: 0 20px 0 0;
}

/*-------------------
TOPページダッシュボードスタイル
-------------------*/

.course01-dashboard {
    max-width: 860px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.course01_dashboard-wrapper {
    margin: 0 3%;
}

/* 進捗セクション - 統合版 */
.progress-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px 20px;
    margin-bottom: 30px;
    gap: 20px;
}

/* 円グラフ */
.progress-circle {
    position: relative;
    flex-shrink: 0;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-fill {
    transition: stroke-dashoffset 0.8s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-text .percentage {
    display: block;
    font-size: 40px;
    font-weight: bold;
    color: #000;
    line-height: 1;
}

.progress-text .label {
    display: block;
    font-size: 18px;
    color: #6b7280;
    margin-top: 2px;
}

/* 2カラムレイアウト用 */
.progress-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-column-left {
    flex-shrink: 0;
    max-width: 140px;
}

.progress-column-left .progress-circle {
    position: relative;
}

.progress-column-left .progress-ring {
    transform: rotate(-90deg);
}

.progress-column-left .progress-ring-fill {
    transition: stroke-dashoffset 0.8s ease-in-out;
}

.progress-column-left .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-column-left .progress-text .percentage {
    display: block;
    font-size: 40px;
    font-weight: bold;
    color: #000;
    line-height: 1;
}

.progress-column-left .progress-text .label {
    display: block;
    font-size: 18px;
    color: #6b7280;
    margin-top: 2px;
}

/* 中央カラム：完了カテゴリ数 - 非表示設定 */
.progress-column-center {
    display: none;
}

/* 右カラム：学習ボタン */
.progress-column-right {
    flex-shrink: 0;
    max-width: 200px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.progress-column-right .continue-button {
    display: inline-block;
    background: #22c55e;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    width: 100%;
}

.progress-column-right .continue-button:hover {
    background: #16a34a;
    color: white;
    text-decoration: none;
}

.progress-column-right .completion-message {
    color: #22c55e;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    line-height: 1.4;
}

/* 完了数の詳細スタイル */
.completion-count {
    margin-bottom: 20px;
}

.count-label {
    display: block;
    font-size: 16px;
    color: #374151;
    margin-bottom: 8px;
}

.count-number {
    font-size: 32px;
    font-weight: bold;
    color: #1f2937;
    line-height: 1;
}

.count-number small {
    font-size: 23px;
    color: #6b7280;
}

/* クリック可能な完了数のスタイル */
.count-number.clickable {
    color: #ff0000;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 8px 12px;
    margin: -8px -12px;
    display: inline-block;
}

.count-number.clickable:hover {
    color: #cc0000;
    background-color: #fef2f2;
    text-decoration: none;
    transform: translateY(-1px);
}

.count-number.clickable:active {
    transform: translateY(0);
}

.count-number.clickable small {
    color: inherit;
}

/*-------------------
動的カリキュラム一覧スタイル
-------------------*/

.curriculum-section-dynamic {
    max-width: 860px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin: 30px auto;
}

.curriculum-section-dynamic h3 {
    background: #f9fafb;
    padding: 20px;
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

/* 進捗サマリー */
.curriculum-progress-summary {
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.curriculum-progress-percentage,
.curriculum-progress-count {
    font-size: 16px;
    font-weight: bold;
    color: #ff0000;
}

.curriculum-progress-bar {
    flex: 1;
    min-width: 150px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.curriculum-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #cc0000);
    width: 0%;
    transition: width 0.8s ease;
}

/* カリキュラム一覧 */
.curriculum-list-dynamic {
    padding: 0;
}

.curriculum-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    gap: 16px;
}

.curriculum-item:last-child {
    border-bottom: none;
}

.curriculum-item:hover {
    background: #f9fafb;
}

/* カリキュラム項目の要素 */
.item-number {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    min-width: 50px;
    flex-shrink: 0;
}

.item-title {
    flex: 1;
    color: #1f2937;
    font-weight: 500;
    font-size: 15px;
}

.item-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.item-title-link:hover {
    color: #ff0000;
    text-decoration: underline;
}

.item-title-link.disabled {
    color: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
}

.item-status {
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}

/* ステータス別スタイル */
/*.curriculum-item.completed {
    background: #f0fdf4;
}*/

.curriculum-item.completed .item-title {
    color: #16a34a;
}

.curriculum-item.completed .item-status,
.status-completed {
    background: #dcfce7;
    color: #16a34a;
}

.curriculum-item.accessible .item-status,
.status-accessible {
    background: #fef3c7;
    color: #d97706;
}

.curriculum-item.locked {
    opacity: 0.6;
}

.curriculum-item.locked .item-status,
.status-locked {
    background: #f3f4f6;
    color: #6b7280;
}

/* 動的更新アニメーション */
.curriculum-item.updating {
    background: #fef3c7;
    transform: scale(1.02);
}

/* クリック可能な項目のスタイル */
.course01-curriculum-list .curriculum-item.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.course01-curriculum-list .curriculum-item.clickable:hover {
    background-color: #fef2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.curriculum-item.clickable:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.course01-curriculum-list .curriculum-item.completed.clickable:hover {
    background-color: #f0fdf4;
}

.course01-curriculum-list .curriculum-item.accessible.clickable:hover {
    background-color: #fffbeb;
}

.course01-curriculum-list .curriculum-item.locked {
    cursor: default;
    opacity: 0.6;
}

.course01-curriculum-list .curriculum-item.locked:hover {
    background-color: inherit;
    transform: none;
    box-shadow: none;
}

.curriculum-item .item-title {
    transition: color 0.3s ease;
    user-select: none;
}

.course01-curriculum-list .curriculum-item.clickable .item-title {
    color: #1e40af;
}

.course01-curriculum-list .curriculum-item.clickable .item-title:hover {
    color: #cc0000;
}

.course01-curriculum-list .curriculum-item.locked .item-title {
    color: #9ca3af;
}

.curriculum-item .item-number,
.curriculum-item .item-status {
    user-select: none;
}

/*-------------------
ブックマーク機能スタイル
-------------------*/

/* ブックマークボタン */
.course01-bookmark-container {
    margin: 0;
    text-align: end;
}

.course01-bookmark-button {
    display: inline-flex;
    align-items: center;
    justify-content: end;
    background: transparent;
    color: #f2d405;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0;
}

.course01-bookmark-button:hover {
    background-color: rgba(255, 222, 0, 0.1);
    transform: scale(1.1);
}

.course01-bookmark-button:active {
    transform: scale(0.95);
}

.course01-bookmark-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ブックマーク済み状態 - グレー */
.course01-bookmark-button.bookmarked {
    color: #6c757d;
}

.course01-bookmark-button.bookmarked:hover {
    background-color: rgba(108, 117, 125, 0.1);
}

/* アイコンのスタイル */
.course01-bookmark-button .bookmark-icon {
    width: 42px;
    height: 42px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.course01-bookmark-button:hover .bookmark-icon {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* ブックマークメッセージ */
.course01-bookmark-message {
    display: block;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

/* ブックマークサマリー（TOPページ用） */
.course01-bookmark-summary {
    margin: 0!important;
    padding: 15px;
    text-align: center;
}

.course01-bookmark-summary-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.course01-bookmark-summary-button:hover {
    background-color: #cc0000;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.course01-bookmark-summary-button .bookmark-count {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* ログイン関連メッセージ */
.course01-bookmark-login-required,
.course01-bookmark-summary-login {
    padding: 12px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
    text-align: center;
    margin: 15px 0;
}

.course01-bookmark-summary-error {
    padding: 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    font-size: 14px;
    text-align: center;
    margin: 15px 0;
}

/* ブックマーク一覧ページのスタイル */
.course01-bookmark-list-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.course01-bookmark-list-header {
    margin-bottom: 20px;
    text-align: center;
}

.course01-bookmark-list-header h2 {
    margin-bottom: 10px;
    color: #1f2937;
}

.bookmark-count-info {
    color: #6b7280;
    font-size: 14px;
}

/* ソートコントロール */
.course01-bookmark-sort-controls {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.sort-label {
    margin-right: 10px;
    font-weight: 500;
    color: #374151;
}

.sort-btn {
    margin: 0 5px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.sort-btn:hover {
    background: #f3f4f6;
}

.sort-btn.active {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
}

/* ブックマーク項目 */
.course01-bookmark-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.course01-bookmark-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.course01-bookmark-item:last-child {
    border-bottom: none;
}

.course01-bookmark-item:hover {
    background: #f9fafb;
}

.bookmark-content {
    flex: 1;
}

.bookmark-title {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.bookmark-title a {
    color: #ff0000;
    text-decoration: none;
    font-weight: 500;
}

.bookmark-title a:hover {
    text-decoration: underline;
}

.bookmark-date {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.bookmark-actions {
    margin-left: 20px;
}

.bookmark-delete-btn {
    padding: 6px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.bookmark-delete-btn:hover {
    background: #c82333;
}

.bookmark-delete-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* 空の状態 */
.course01-bookmark-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6b7280;
}

.course01-bookmark-list-login {
    text-align: center;
    padding: 40px 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
}

/* メッセージ表示 */
.bookmark-message {
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

.bookmark-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.bookmark-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*-------------------
アコーディオン式カリキュラム一覧
-------------------*/

/* アコーディオン全体 */
.curriculum-accordion {
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* アコーディオンセクション */
.accordion-section {
    border-bottom: 1px solid #e5e7eb;
}

.accordion-section:last-child {
    border-bottom: none;
}

/* アコーディオンヘッダー - 統合版 */
.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    border-left: 4px solid #6c757d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.accordion-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-left-color: #495057;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
}

/* 開いている状態のスタイル */
.accordion-header.active {
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
    border-left: 4px solid #6c757d;
    border-bottom-color: #6c757d;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.15);
}

.accordion-header.active:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

/* 章情報の配置 */
.chapter-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
}

.chapter-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* 開いている状態の章タイトル */
.accordion-header.active .chapter-title {
    color: #212529;
    font-weight: 800;
}

/* 進捗表示のスタイル */
.chapter-progress {
    font-size: 13px;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 10px;
    border-radius: 14px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    align-self: flex-start;
}

/* 進捗状況による色分け */
.accordion-header.completed {
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
    border-left: 4px solid #6c757d;
}

.accordion-header.completed .chapter-title {
    color: #495057;
}

.accordion-header.completed:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.accordion-header.completed .chapter-progress {
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
    color: #495057;
    border-color: #6c757d;
}

.accordion-header.in-progress .chapter-progress {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    border-color: #adb5bd;
}

.accordion-header.locked {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    border-left: 4px solid #d1d5db;
    opacity: 0.4;
}

.accordion-header.locked .chapter-title {
    color: #6b7280;
}

.accordion-header.locked:hover {
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
    opacity: 0.5;
    transform: none;
}

.accordion-header.locked .chapter-progress {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6b7280;
    border-color: #d1d5db;
}

/* トグルアイコン */
.toggle-icon {
    font-size: 16px;
    color: #4b5563;
    font-weight: bold;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 開いている状態のアイコン */
.accordion-header.active .toggle-icon {
    transform: rotate(90deg);
    color: #495057;
    background: rgba(255, 255, 255, 0.9);
    border-color: #495057;
}

/* アコーディオンコンテンツ */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.accordion-content.active {
    max-height: 600px;
}

/* アコーディオン内のカリキュラム項目 */
.accordion-content .curriculum-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    gap: 16px;
    position: relative;
}

.accordion-content .curriculum-item:last-child {
    border-bottom: none;
}

.accordion-content .curriculum-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.accordion-content .curriculum-item.clickable {
    cursor: pointer;
}

.accordion-content .curriculum-item.clickable:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(8px);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.1);
}

/* 項目要素 */
.accordion-content .item-number {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    min-width: 45px;
    flex-shrink: 0;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 12px;
    text-align: center;
}

.accordion-content .item-title {
    flex: 1;
    color: #1f2937;
    font-weight: 600;
    font-size: 15px;
}

.accordion-content .item-status {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
    border: 1px solid transparent;
}

/* ステータス別スタイル */
.accordion-content .curriculum-item.completed .item-title {
    color: #1f2937;
}

.accordion-content .curriculum-item.completed .item-status {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
    border-color: #10b981;
}

.accordion-content .curriculum-item.accessible .item-status {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    color: #92400e;
    border-color: #f59e0b;
}

.accordion-content .curriculum-item.locked {
    opacity: 0.3;
}

.accordion-content .curriculum-item.locked .item-status {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
    border-color: #d1d5db;
}

/*-------------------
小型継続ボタンスタイル
-------------------*/

.course01-continue-small-container {
    margin: 0;
    text-align: center;
}

.course01-continue-small-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    background-color: #22c55e;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.course01-continue-small-button:hover {
    background-color: #16a34a;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.course01-continue-small-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 最終調整 */
h3 {
    margin-bottom: 0 !important;
}

/* レスポンシブ対応 */
@media (min-width: 769px) {
    .progress-section {
        gap: 180px !important;
    }
}

@media (max-width: 768px) {
    .progress-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .progress-column-left,
    .progress-column-center,
    .progress-column-right {
        max-width: 100%;
        width: 100%;
    }

    .progress-column-center .completion-count {
        padding: 0;
        margin: 10px 0;
    }

    .progress-column-right .continue-button {
        max-width: 300px;
    }

    .accordion-header {
        padding: 16px 20px;
    }

    .chapter-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .chapter-title {
        font-size: 16px;
    }

    .chapter-progress {
        font-size: 12px;
    }

    .toggle-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .accordion-content .curriculum-item {
        padding: 12px 20px;
        flex-wrap: wrap;
    }

    .curriculum-progress-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .progress-item {
        justify-content: space-between;
    }

    .curriculum-progress-bar {
        width: 100%;
        min-width: auto;
    }

    .curriculum-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .item-number {
        min-width: auto;
    }

    .item-status {
        margin-left: auto;
    }

    .curriculum-item.clickable:hover {
        transform: none;
    }

    #course01-mark-complete,
    .course01-completion-button,
    .course01-continue-button {
        width: 100%;
        padding: 12px 15px;
        font-size: 15px;
    }

    .course01-completion-status {
        flex-direction: column;
        align-items: flex-start;
    }

    .course01-completion-message {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }

    .course01-feedback-status {
        width: 100%;
        box-sizing: border-box;
    }

    .course01-bookmark-button {
        width: 40%;
        padding: 12px;
        font-size: 16px;
    }

    .course01-bookmark-summary-button {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }

    .course01-bookmark-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .bookmark-actions {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }

    .bookmark-delete-btn {
        width: 100%;
    }

    .course01-continue-small-button {
        padding: 5px 10px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .progress-section {
        padding: 15px;
    }

    .progress-column-left .progress-text .percentage {
        font-size: 40px;
    }

    .progress-column-center .count-number {
        font-size: 28px;
    }

    .progress-column-right .continue-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .accordion-header {
        padding: 14px 16px;
    }

    .chapter-title {
        font-size: 15px;
    }

    .toggle-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .accordion-content .curriculum-item {
        padding: 10px 16px;
    }

    .curriculum-item {
        padding: 12px 15px;
    }

    .item-title {
        font-size: 14px;
    }

    .item-number {
        font-size: 12px;
    }

    .accordion-content .item-title {
        font-size: 12px;
    }
}