/* アプリケーション全体のスタイル */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* ボディ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: var(--dark-color);
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 8rem; /* 下部パネルの高さ分のマージン */
}

/* ログイン・登録画面ではpadding-bottomを0に */
body.auth-page {
    padding-bottom: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ログイン・登録画面のメインコンテンツ */
body.auth-page main {
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
}

body.auth-page main .container {
    padding-top: 0.5rem;
}

/* ログイン・登録画面のフッター */
body.auth-page footer {
    padding: 0.5rem 0;
    flex-shrink: 0;
}

/* 認証ページの入力欄を目立たせる */
body.auth-page .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: block;
}

body.auth-page .form-label .text-danger {
    color: var(--danger-color) !important;
    font-weight: 700;
    margin-left: 0.25rem;
}

body.auth-page .form-control,
body.auth-page .form-control-sm {
    border: 2px solid #64748b;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

body.auth-page .form-control:focus,
body.auth-page .form-control-sm:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background-color: #ffffff;
}

body.auth-page .form-control:hover,
body.auth-page .form-control-sm:hover {
    border-color: #475569;
}

body.auth-page .form-control::placeholder,
body.auth-page .form-control-sm::placeholder {
    color: #94a3b8;
    opacity: 0.7;
}

body.auth-page .form-control:focus::placeholder,
body.auth-page .form-control-sm:focus::placeholder {
    opacity: 0.5;
}

/* 必須フィールドの入力欄を強調 */
body.auth-page .form-control:required,
body.auth-page .form-control-sm:required {
    border-color: #94a3b8;
}

body.auth-page .form-control:required:focus,
body.auth-page .form-control-sm:required:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* フォームグループ全体のスタイリング */
body.auth-page .mb-2,
body.auth-page .mb-3 {
    position: relative;
}

body.auth-page .form-text {
    color: #64748b;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    padding-left: 0.25rem;
}

/* 認証ページの登録ボタン */
body.auth-page #register-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background-color: #6c757d;
    border-color: #6c757d;
}

body.auth-page #register-submit-btn:disabled:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: none;
}

/* 認証ページのチェックボックスを目立たせる */
body.auth-page .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    margin-left: 0 !important;
    margin-right: 0.5rem;
    margin-bottom: 0;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    float: none;
    position: relative;
}

body.auth-page .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

body.auth-page .form-check-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

body.auth-page .form-check-input:hover {
    border-color: #2563eb;
    transform: scale(1.05);
}

body.auth-page .form-check-label {
    margin-left: 0.5rem;
    margin-bottom: 0;
    padding-left: 0;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

body.auth-page .form-check {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    margin-top: 0.5rem;
    margin-left: 0 !important;
    margin-right: 0;
    margin-bottom: 0;
    background-color: #f8fafc;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
    min-height: auto;
}

body.auth-page .form-check:hover {
    background-color: #f1f5f9;
    border-color: var(--primary-color);
}

/* 動的スケール適用時もチェックボックスを目立たせる */
body.auth-page .card.auth-scaled .form-check-input {
    width: calc(1.25rem * var(--auth-font-scale));
    height: calc(1.25rem * var(--auth-font-scale));
}

/* 認証ページの動的調整用CSS変数 */
:root {
    --auth-scale: 1;
    --auth-font-scale: 1;
    --auth-padding-scale: 1;
    --auth-margin-scale: 1;
}

/* 動的調整が適用されたカード */
body.auth-page .card.auth-scaled {
    font-size: calc(1rem * var(--auth-font-scale));
}

body.auth-page .card.auth-scaled h1 {
    font-size: calc(1.5rem * var(--auth-font-scale)) !important;
    margin-bottom: calc(0.75rem * var(--auth-margin-scale)) !important;
}

body.auth-page .card.auth-scaled .card-body {
    padding: calc(0.75rem * var(--auth-padding-scale)) !important;
}

body.auth-page .card.auth-scaled .form-label {
    font-size: calc(0.875rem * var(--auth-font-scale));
    margin-bottom: calc(0.25rem * var(--auth-margin-scale));
}

body.auth-page .card.auth-scaled .mb-2 {
    margin-bottom: calc(0.5rem * var(--auth-margin-scale)) !important;
}

body.auth-page .card.auth-scaled .mb-3 {
    margin-bottom: calc(0.75rem * var(--auth-margin-scale)) !important;
}

body.auth-page .card.auth-scaled .mb-4 {
    margin-bottom: calc(1rem * var(--auth-margin-scale)) !important;
}

body.auth-page .card.auth-scaled .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: calc(0.5rem * var(--auth-margin-scale));
}

body.auth-page .card.auth-scaled .form-control,
body.auth-page .card.auth-scaled .form-control-sm {
    border: 2px solid #64748b;
    border-radius: 0.5rem;
    padding: calc(0.5rem * var(--auth-padding-scale)) calc(0.75rem * var(--auth-padding-scale));
    font-size: calc(0.9375rem * var(--auth-font-scale));
    transition: all 0.2s ease;
    background-color: #ffffff;
    margin-bottom: calc(0.25rem * var(--auth-margin-scale));
}

body.auth-page .card.auth-scaled .form-control:focus,
body.auth-page .card.auth-scaled .form-control-sm:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 calc(3px * var(--auth-font-scale)) rgba(59, 130, 246, 0.15);
    background-color: #ffffff;
}

body.auth-page .card.auth-scaled .form-control:hover,
body.auth-page .card.auth-scaled .form-control-sm:hover {
    border-color: #475569;
}

body.auth-page .card.auth-scaled .form-text {
    font-size: calc(0.8125rem * var(--auth-font-scale));
    margin-top: calc(0.375rem * var(--auth-margin-scale));
}

body.auth-page .card.auth-scaled .alert {
    padding: calc(0.5rem * var(--auth-padding-scale));
    margin-bottom: calc(0.5rem * var(--auth-margin-scale));
}

body.auth-page .card.auth-scaled .alert p {
    font-size: calc(0.7rem * var(--auth-font-scale)) !important;
    line-height: 1.3;
}

body.auth-page .card.auth-scaled .form-check {
    margin-top: calc(0.25rem * var(--auth-margin-scale)) !important;
}

body.auth-page .card.auth-scaled .form-check-label {
    font-size: calc(0.7rem * var(--auth-font-scale)) !important;
    line-height: 1.3;
}

body.auth-page .card.auth-scaled .form-text {
    font-size: calc(0.7rem * var(--auth-font-scale)) !important;
    margin-top: calc(0.25rem * var(--auth-margin-scale));
}

body.auth-page .card.auth-scaled hr {
    margin: calc(0.5rem * var(--auth-margin-scale)) 0 !important;
}

body.auth-page .card.auth-scaled .btn {
    padding: calc(0.375rem * var(--auth-padding-scale)) calc(0.75rem * var(--auth-padding-scale));
    font-size: calc(0.875rem * var(--auth-font-scale));
}

body.auth-page .card.auth-scaled .mt-1 {
    margin-top: calc(0.125rem * var(--auth-margin-scale)) !important;
}

body.auth-page .card.auth-scaled .mt-2 {
    margin-top: calc(0.25rem * var(--auth-margin-scale)) !important;
}

body.auth-page .card.auth-scaled .mt-3 {
    margin-top: calc(0.375rem * var(--auth-margin-scale)) !important;
}

/* スマホ用の調整 */
@media (max-width: 768px) {
    body.auth-page main {
        padding: 0.25rem 0;
    }
    
    body.auth-page main .container {
        padding-top: 0.25rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    body.auth-page footer {
        padding: 0.25rem 0;
        font-size: 0.75rem;
    }
    
    body.auth-page .card {
        margin-bottom: 0;
    }
    
    body.auth-page .card-body {
        padding: 0.75rem !important;
    }
    
    body.auth-page h1 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    body.auth-page .form-label {
        font-size: 0.875rem;
        font-weight: 600;
        margin-bottom: 0.375rem;
    }
    
    body.auth-page .mb-2 {
        margin-bottom: 0.375rem !important;
    }
    
    body.auth-page .mb-3 {
        margin-bottom: 0.5rem !important;
    }
    
    body.auth-page .mb-4 {
        margin-bottom: 0.75rem !important;
    }
    
    body.auth-page .form-control,
    body.auth-page .form-control-sm {
        border-width: 2px;
        padding: 0.5rem 0.625rem;
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    body.auth-page .form-control:focus,
    body.auth-page .form-control-sm:focus {
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
    }
    
    body.auth-page .alert {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    body.auth-page .alert p {
        font-size: 0.7rem !important;
        line-height: 1.3;
    }
    
    body.auth-page .form-check {
        margin-top: 0.25rem !important;
        padding: 0.375rem 0.375rem 0.375rem 0.5rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    body.auth-page .form-check-input {
        width: 1.1rem !important;
        height: 1.1rem !important;
        margin-left: 0 !important;
        margin-right: 0.375rem !important;
    }
    
    body.auth-page .form-check-label {
        font-size: 0.7rem !important;
        line-height: 1.3;
        margin-left: 0 !important;
    }
    
    body.auth-page .form-text {
        font-size: 0.7rem !important;
        margin-top: 0.25rem;
    }
    
    body.auth-page hr {
        margin: 0.5rem 0 !important;
    }
    
    body.auth-page .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    body.auth-page .mt-1 {
        margin-top: 0.125rem !important;
    }
    
    body.auth-page .mt-2 {
        margin-top: 0.25rem !important;
    }
    
    body.auth-page .mt-3 {
        margin-top: 0.375rem !important;
    }
}

/* ヘッダー */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark-color);
    transition: opacity 0.2s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: #374151;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.1);
}

.nav-link.text-dark {
    color: #1f2937 !important;
}

.nav-link.text-dark:hover {
    color: var(--primary-color) !important;
    background-color: rgba(59, 130, 246, 0.1);
}

/* ユーザー名のスタイル */
.user-name {
    display: inline-block;
    vertical-align: middle;
}

/* 長いユーザー名（12カウント以上）のみ省略表示 */
.user-name-long {
    max-width: 6em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ナビゲーションバー内のログイン/ログアウトボタン（通常時） */
.nav-auth-btn {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.2;
    min-width: 4.5rem;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border-radius: 0.25rem;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nav-auth-btn-login {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.nav-auth-btn-login:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    color: #fff;
}

.nav-auth-btn-logout {
    background-color: transparent;
    border-color: #dc3545;
    color: #dc3545;
}

.nav-auth-btn-logout:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* メインコンテンツ */
main {
    flex: 1;
    padding: 2rem 0;
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
}

/* フッター */
footer {
    background-color: white;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 0;
}

.btn-link {
    color: var(--light-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.btn-link:hover {
    color: var(--light-color);
    text-decoration: underline;
}

/* アクション選択画面 */
.action-select-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* 目次セクション */
.category-index {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.index-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.index-links a {
    text-decoration: none;
    transition: all 0.2s ease;
}

.index-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* カテゴリ見出し */
.category-section {
    margin-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.category-title {
    color: var(--primary-color);
    font-weight: 600;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
    width: 80vw;
    max-width: 800px;
    text-align: center;
}

.action-buttons-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.action-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-button:hover {
    transform: scale(1.05);
}

.action-button.selected {
    position: relative;
    box-shadow: 0 0 0 3px var(--success-color);
}

.action-button.selected::after {
    content: '選択完了';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 5rem;
    height: 1.5rem;
    background-color: var(--success-color);
    border-radius: 1rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.action-button.selected::after:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
}

.action-content {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding-top: 36px; /* 解除/選択完了バッジの重なり回避 */
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .action-content {
        padding-top: 48px; /* PCはバッジ領域を広めに確保 */
    }
}

.action-video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    order: 2;
}

.action-text {
    position: static;
    background: linear-gradient(90deg, #0f172a 0%, #1f2937 100%);
    color: #f8fafc;
    padding: 8px 12px;
    text-align: left;
    text-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.01em;
    order: 1;
}

.action-text h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.action-text p {
    margin: 2px 0 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* 筋肉イラストのスタイル */
.muscle-illustration {
    width: 200px;
    height: 200px;
    margin-bottom: 1rem;
    position: relative;
}

.muscle-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 各動作に対応する筋肉のハイライト */
[data-action="shoulder-flexion"] .muscle-illustration::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

[data-action="shoulder-extension"] .muscle-illustration::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

[data-action="shoulder-abduction"] .muscle-illustration::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

[data-action="shoulder-adduction"] .muscle-illustration::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

.action-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.action-description {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.selected-actions-container,
.result-container {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    margin-top: clamp(3rem, 8vw, 5rem);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: visible;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    scroll-margin-top: 80px;
}

.result-header i {
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: #3b82f6;
}

.result-header span {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 0.05em;
}

/* 分析結果タブ（ファイルフォルダ風） */
.result-tabs {
    border-bottom: none;
    margin-bottom: 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    padding: 0 0.5rem;
}

.result-tabs .nav-item {
    flex: 1 1 0;
    min-width: 0;
}

.result-tabs .nav-link {
    border: 2px solid #9ca3af;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 0.75rem 0.5rem;
    font-size: clamp(0.8rem, 3vw, 1rem);
    font-weight: 600;
    color: #6b7280;
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    transition: all 0.25s ease;
    text-align: center;
    white-space: nowrap;
    width: 100%;
    position: relative;
    margin-bottom: -2px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.result-tabs .nav-link:hover:not(.active) {
    color: #3b82f6;
    background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
    transform: translateY(-2px);
    box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.08);
}

.result-tabs .nav-link.active {
    color: #1f2937;
    border-color: #d1d5db;
    border-bottom: 2px solid #fff;
    background: #fff;
    z-index: 3;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.result-tab-content {
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 0 0 12px 12px;
    padding: 1.5rem 1rem;
    position: relative;
    z-index: 1;
    margin-top: -2px;
}

.result-tab-content .tab-pane {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.selected-actions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.selected-action-item {
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    max-width: 200px;
    margin: 0;
    position: relative;
}

.selected-action-item:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
}

/* チェックボックス - 左上 */
.selected-action-checkbox {
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.selected-action-checkbox .form-check-input {
    margin: 0;
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

/* 緑矢印ボタン - 中央 */
.selected-action-jump {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.selected-action-jump:hover {
    background-color: var(--dark-color);
}

/* ゴミ箱ボタン - 右上 */
.selected-action-delete {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--danger-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.selected-action-delete:hover {
    background-color: var(--dark-color);
}

.selected-action-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.selected-action-video {
    width: 100%;
    max-width: 100px;
    border-radius: 0.5rem;
}

.selected-action-text {
    text-align: center;
}

.selected-action-text p {
    margin: 0;
    font-size: 0.875rem;
    color: white;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* カテゴリごとの結果セクション */
.result-category {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.result-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.result-category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.result-item {
    background: var(--light-color);
    color: var(--dark-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
}

.action-table-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.action-table-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: center;
}

.action-table {
    width: 100%;
    margin-top: 1rem;
    font-size: 0.9rem;
    table-layout: fixed;
}

.action-table th {
    background-color: var(--light-color);
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.action-table td {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    vertical-align: middle;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.action-category-cell {
    font-weight: 600;
    text-align: center;
    background-color: var(--light-color);
    vertical-align: middle;
}

.action-name-cell {
    font-weight: 500;
    text-align: center;
    background-color: var(--light-color);
    font-size: 0.85rem;
}

.muscle-cell {
    text-align: left;
    font-size: 0.85rem;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .action-table {
        font-size: 0.75rem;
    }
    
    .action-table th,
    .action-table td {
        padding: 0.4rem;
        font-size: 0.7rem;
    }
    
    .action-name-cell {
        font-size: 0.65rem;
    }
    
    .muscle-cell {
        font-size: 0.65rem;
    }
}

/* より小さな画面対応 */
@media (max-width: 480px) {
    .action-table {
        font-size: 0.7rem;
    }
    
    .action-table th,
    .action-table td {
        padding: 0.3rem;
        font-size: 0.65rem;
    }
    
    .action-name-cell {
        font-size: 0.6rem;
    }
    
    .muscle-cell {
        font-size: 0.6rem;
    }
}

.video-container {
    margin: 2rem 0;
    text-align: center;
}

#actionVideo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.confirm-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(0.4rem, 2vw, 1rem);
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.confirm-container.fixed {
    position: fixed;
    left: 50%;
    bottom: 7rem;
    transform: translateX(-50%);
    width: min(50vw, 520px);
    z-index: 1099;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    padding: 0.75rem 1rem;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

#selectedActionsHeading.fixed {
    position: fixed;
    top: 6rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    z-index: 1098;
    margin: 0;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.confirm-container .btn {
    white-space: nowrap;
    font-size: clamp(0.7rem, 2.4vw, 1rem);
    padding: clamp(0.45rem, 1.8vw, 0.75rem) clamp(0.6rem, 2.8vw, 1.5rem);
}

.confirm-action-ball {
    width: clamp(6.5rem, 26vw, 11rem);
    min-width: clamp(6.5rem, 26vw, 11rem);
    max-width: 11rem;
    padding: clamp(0.45rem, 1.8vw, 0.75rem) clamp(0.5rem, 2vw, 1rem);
    border: none;
    border-radius: 2rem;
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: #fff;
    font-weight: 700;
    font-size: clamp(0.7rem, 2.2vw, 0.9rem);
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.confirm-action-ball:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
}

.confirm-action-ball:active {
    transform: translateY(0);
}

.confirm-action-ball:focus {
    outline: none;
}

.confirm-action-ball:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* 結果表示への矢印インジケーター */
.result-arrow-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: clamp(2rem, 5vw, 3rem) 0;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

.result-arrow-indicator i {
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: #3b82f6;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
}

/* 確定ボタンを正円・緑系に */
#confirmButton {
    width: clamp(3.5rem, 12vw, 5rem);
    height: clamp(3.5rem, 12vw, 5rem);
    min-width: clamp(3.5rem, 12vw, 5rem);
    min-height: clamp(3.5rem, 12vw, 5rem);
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-weight: 700;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#confirmButton:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

#confirmButton:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    border: none;
}

.btn-secondary:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
/* 768px以下では、vw単位を使用して端末幅に応じて自動縮小 */
@media (max-width: 768px) {
    .navbar .container {
        padding-left: 1vw;
        padding-right: 1vw;
        max-width: 100vw;
    }
    
    .navbar-brand {
        font-size: 3.5vw;
        max-width: calc(100vw - 10vw);
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .navbar-brand img {
        height: 7vw;
        margin-right: 0.5vw;
        flex-shrink: 0;
    }
    
    .navbar-brand .fw-bold {
        font-size: 4.5vw;
        flex-shrink: 0;
    }
    
    .navbar-brand .nav-link {
        padding: 0.5vw 1vw;
        font-size: 3.5vw;
        min-width: 0;
        flex-shrink: 1;
    }
    
    /* clamp()はモダンCSS関数。IDEの波線はリンターの警告であり、
       Chrome/Firefox/Safari/Edgeなどモダンブラウザでは正常に動作する */
    .user-name-long {
        max-width: clamp(3em, 18vw, 8em);
    }
    
    .navbar-toggler {
        flex-shrink: 0;
        margin-left: 1vw;
        padding: 0.5vw 1vw;
    }
    
    /* ナビゲーションバー内のログイン/ログアウトボタン */
    .nav-auth-btn {
        padding: 0.5vw 1.5vw;
        font-size: 2.5vw;
        line-height: 1.2;
        min-width: 10vw;
        border-radius: 0.5vw;
    }
    
    .nav-link {
        padding: 0.5rem;
    }
    
    main {
        padding: 1rem 0;
    }
    
    .action-select-container {
        padding: 1rem;
    }
    
    .action-buttons-container {
        grid-template-columns: 1fr;
    }
    
    .action-button {
        padding: 1.5rem;
    }
    
    .action-icon {
        font-size: 1.5rem;
    }
    
    .action-name {
        font-size: 1rem;
    }
    
    .selected-actions-container{
        padding: 1.5rem;
    }

    .result-container {
        padding: 1.5rem;
        margin-top: 2rem;
    }
}

/* 動画コンテナのスタイル */
.action-video-container {
    margin: 20px auto;
    max-width: 800px;
    width: 100%;
}

.action-video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#actionVideoContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.muscle-item {
    background-color: #fff;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.muscle-item h3 {
    margin-top: 0;
    color: #333;
}

.muscle-item p {
    margin-bottom: 0;
    color: #666;
}

.selected-action-video {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 1rem;
    margin-bottom: 10px;
}

/* スクロールボタンコンテナ */
.scroll-buttons-container {
    position: fixed;
    right: 1rem;
    bottom: 9rem;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;  /* 上下間隔を詰める */
    z-index: 1000;
}

/* 上下ボタン間の間隔を広げる */
.back-to-top {
    margin-bottom: 0;
}

.back-to-bottom {
    margin-top: 0;
}

/* 共通のボタンスタイル */
.scroll-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

/* ボタンの種類別スタイル */
.category-jump-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.back-to-top,
.back-to-bottom {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

/* 表示制御 */
.scroll-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* ホバーエフェクト */
.scroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ツールチップ */
.scroll-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.875rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.scroll-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* アイコン */
.scroll-btn i.bi {
    font-size: 1.25rem;
    color: white !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 日常生活動作選択ボタンのアイコン */
.scroll-btn.category-jump-btn.daily-actions i.bi-person-walking {
    font-size: 1.25rem;
    color: white !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.seni-panel {
    position: fixed;
    left: 50%;
    bottom: 0.6rem;
    transform: translateX(-50%);
    width: 95vw;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1100;
    background: rgba(15, 23, 42, 0.85);
    padding: 0.5rem 0.7rem;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.seni-panel-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: nowrap; /* 折り返し禁止 */
    width: 100%;
    min-width: 0;
}

.seni-btn {
    border: none;
    border-radius: 12px;
    padding: 0.4rem 0.5rem;
    font-weight: 700;
    font-size: 0.7rem;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 端末サイズに応じたフォントサイズ調整 */
@media (min-width: 480px) {
    .seni-btn {
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .seni-btn {
        font-size: 0.85rem;
        padding: 0.45rem 0.6rem;
    }
}

@media (min-width: 1024px) {
    .seni-btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.7rem;
    }
}

.seni-btn.secondary {
    background: linear-gradient(135deg, #0ea5e9, #0f766e);
}

/* オレンジ色の目次ボタンスタイル */
.seni-btn.toc-orange {
    background: linear-gradient(135deg, #fb923c, #f97316);
}

/* シェアボタンのブランドカラー */
.seni-btn.share-x {
    background: #000000; /* X/Twitter の黒 */
}

.seni-btn.share-line {
    background: #06C755; /* LINE のグリーン */
}

.seni-btn.share-copy {
    background: #6b7280; /* グレー系 */
}

.seni-btn.share-more {
    background: linear-gradient(135deg, #0ea5e9, #0f766e);
}

.seni-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.seni-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.seni-share-more {
    position: relative;
}

.seni-share-dropdown {
    position: absolute;
    bottom: calc(100% + 0.35rem);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    padding: 0.45rem;
    padding-top: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    display: none;
    gap: 0.4rem;
    flex-direction: column;
    min-width: 160px;
    max-width: calc(100vw - 2rem);
    z-index: 1200;
    box-sizing: border-box;
}

/* スマホで右側オーバーフローを防ぐ */
@media (max-width: 768px) {
    .seni-share-dropdown {
        left: auto;
        right: 0;
        transform: none;
        max-width: calc(100vw - 1rem);
    }
}

.seni-share-dropdown.open {
    display: flex;
}

.seni-share-dropdown a,
.seni-share-dropdown button {
    border: none;
    border-radius: 10px;
    padding: 0.45rem 0.65rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.seni-share-dropdown a[href*="facebook"] {
    background: #1877F2; /* Facebook のブルー */
}

.seni-share-dropdown a[href*="mailto"] {
    background: #6b7280; /* メール用グレー */
}

.seni-share-dropdown-close {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease;
    z-index: 1201;
}

.seni-share-dropdown-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.seni-share-dropdown-close:active {
    background: rgba(255, 255, 255, 0.4);
}
/* 目次モーダル */
.toc-launcher {
    display: none; /* 下部バーに統合 */
}

.toc-toggle-btn {
    position: static;
    font-size: 1.0rem;
    width: 3.5rem !important;
    height: 3.5rem !important;
    min-width: 3.5rem !important;
    max-width: 3.5rem !important;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 !important;
    border: none;
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 0 0 auto !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.toc-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.toc-toggle-btn i {
    font-size: 1.25rem;
}

.toc-toggle-btn span {
    display: none;
}

/* 右上固定の目次ボタン */
.toc-toggle-btn-top-right {
    position: fixed;
    top: 8rem;
    right: 4rem;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    max-width: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    border: none;
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1000;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
}

.toc-toggle-btn-top-right:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.toc-toggle-btn-top-right i {
    display: none;
}

.toc-toggle-btn-top-right span {
    display: inline;
}

/* ハンバーガーメニューと重ならないように調整（モバイル） */
@media (max-width: 991px) {
    .toc-toggle-btn-top-right {
        top: 5.5rem;
        right: 1rem;
    }
}

/* 下部ボタンバー（目次・選択完了） */
.bottom-buttons-bar {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    z-index: 1100;
    background: rgba(15, 23, 42, 0.7);
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.bottom-buttons-bar .scroll-btn {
    opacity: 1;
    visibility: visible;
}

.toc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    z-index: 1250;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.toc-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.toc-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 95vw;
    height: 100vh;
    background: #0f172a; /* 黒系背景 */
    color: #e5e7eb;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.3);
    transform: translateX(103%);
    transition: transform 0.12s cubic-bezier(0.17, 0.67, 0.52, 1);
    z-index: 1300;
    display: flex;
    flex-direction: column;
}

.toc-modal.open {
    transform: translateX(0);
}

.toc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toc-modal-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
    overflow: hidden; /* モーダル内スクロールを抑制 */
    --toc-scale: 1;
}

/* 選択案内モーダル（必要サイズ・中央） */
.selection-hint-trigger-wrap {
    margin-top: 0.75rem;
    text-align: center;
}

.selection-hint-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    background: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 50%;
    color: #eab308;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.selection-hint-trigger:hover,
.selection-hint-trigger:focus {
    background: #fef08a;
    color: #ca8a04;
    border-color: #eab308;
    outline: none;
}

.selection-hint-trigger:focus-visible {
    outline: 2px solid #eab308;
    outline-offset: 2px;
}

.selection-hint-icon {
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
}

.selection-hint-trigger .selection-hint-icon {
    font-size: 0.9rem;
}

.selection-hint-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.selection-hint-overlay[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.selection-hint-open {
    overflow: hidden;
}

.selection-hint-modal {
    background: #fff;
    color: #0f172a;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    max-width: 420px;
    width: min(90%, 420px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 0;
    position: relative;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.selection-hint-overlay[data-open="true"] .selection-hint-modal {
    opacity: 1;
    transform: scale(1);
}

.selection-hint-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem 2.5rem 1rem 1.5rem;
    min-height: 3rem;
}

.selection-hint-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    color: #111827;
    text-align: center;
}

.selection-hint-title .selection-hint-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1rem;
    color: #eab308;
    background: #fef9c3;
    border-radius: 50%;
    border: 2px solid #fde047;
}

.selection-hint-close {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: #6b7280;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
}

.selection-hint-close:hover {
    color: #111827;
}

.selection-hint-close:focus {
    outline: none;
}

.selection-hint-close:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    border-radius: 4px;
}

.selection-hint-body {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #1f2937;
}

.selection-hint-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.5rem;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e5e7eb;
}

.selection-hint-action-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.selection-hint-action-ball span {
    line-height: 1;
}

.selection-hint-action-ball:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
}

.selection-hint-action-ball:active {
    transform: translateY(0);
}

.selection-hint-action-ball:focus {
    outline: none;
}

.selection-hint-action-ball:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

.selection-hint-cancel-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.selection-hint-cancel-btn:hover {
    background: #5a6268;
}

.selection-hint-cancel-btn:focus {
    outline: none;
}

.selection-hint-cancel-btn:focus-visible {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
}

/* スコア説明モーダル */
.score-hint-trigger {
    position: absolute;
    bottom: -1.9rem;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.6rem, 2vw, 0.9rem);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    color: #3b82f6;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    z-index: 100;
}

.score-hint-trigger:hover,
.score-hint-trigger:focus {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
    color: #2563eb;
    transform: translateY(-1px);
    outline: none;
}

.score-hint-trigger:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.score-hint-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.score-hint-overlay[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.score-hint-open {
    overflow: hidden;
}

.score-hint-modal {
    background: #fff;
    color: #0f172a;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    max-width: 420px;
    width: min(90%, 420px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 0;
    position: relative;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.score-hint-overlay[data-open="true"] .score-hint-modal {
    opacity: 1;
    transform: scale(1);
}

.score-hint-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem 2.5rem 1rem 1.5rem;
    min-height: 3rem;
}

.score-hint-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    color: #111827;
    text-align: center;
}

.score-hint-close {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: #6b7280;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
}

.score-hint-close:hover {
    color: #111827;
}

.score-hint-close:focus {
    outline: none;
}

.score-hint-close:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    border-radius: 4px;
}

.score-hint-body {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #1f2937;
}

.score-hint-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.5rem;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e5e7eb;
}

.score-hint-cancel-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.score-hint-cancel-btn:hover {
    background: #5a6268;
}

.score-hint-cancel-btn:focus {
    outline: none;
}

.score-hint-cancel-btn:focus-visible {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
}

.toc-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: calc(1rem * var(--toc-scale, 1));
}

.toc-section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #e5e7eb;
    font-size: calc(1rem * var(--toc-scale, 1));
}

.toc-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: calc(0.5rem * var(--toc-scale, 1));
}

.toc-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: calc(0.55rem * var(--toc-scale, 1)) calc(0.75rem * var(--toc-scale, 1));
    border-radius: 10px;
    border: 1px solid var(--toc-border, #e5e7eb);
    background: var(--toc-bg, #f8fafc);
    color: var(--toc-text, #0f172a);
    font-weight: 600;
    font-size: calc(0.95rem * var(--toc-scale, 1));
    text-decoration: none;
    transition: all 0.15s ease;
}

.toc-link:hover {
    background: var(--toc-hover, #e0e7ff);
    border-color: var(--toc-border, #c7d2fe);
}

.toc-link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #93c5fd;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.toc-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}

.toc-close-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.toc-close-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.toc-close-btn i {
    font-size: 1rem;
}

body.toc-open {
    overflow: hidden;
}

.neniri {
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.action-direction-selector {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.action-direction-selector label {
    margin-right: 15px;
    cursor: pointer;
}

.action-direction-selector input[type="checkbox"] {
    margin-right: 5px;
}

.muscles-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.muscles-container h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.1em;
}

.muscle-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.muscle-list .result-item {
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    font-size: 0.9em;
}

.muscle-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.muscle-count-badge {
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: clamp(18px, 5vw, 24px);
    height: clamp(18px, 5vw, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.7em, 2vw, 1em);
    font-weight: bold;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.nerve-count-badge {
    background-color: #15803d;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
    padding: 0;
    line-height: 1;
}

.nerve-table {
    width: 100%;
    margin-bottom: 0;
}

.nerve-root-cell {
    width: 40%;
    vertical-align: middle;
}

.nerve-name-cell {
    width: 30%;
    vertical-align: middle;
}

.nerve-all-cell {
    width: 30%;
    vertical-align: middle;
}

.nerve-item {
    display: block;
    margin-bottom: 5px;
}

.nerve-item:last-child {
    margin-bottom: 0;
}

.nerve-root-badge {
    background-color: #15803d;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65em;
    font-weight: bold;
    padding: 0;
    line-height: 1;
    margin-left: 5px;
}

.nerve-all-badge {
    background-color: #ea580c;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65em;
    font-weight: bold;
    padding: 0;
    line-height: 1;
    margin-left: 5px;
}

.nerve-name-badge {
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65em;
    font-weight: bold;
    padding: 0;
    line-height: 1;
    margin-left: 5px;
}

.duplicate-count-badge {
    background-color: #9333ea;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65em;
    font-weight: bold;
    padding: 0;
    line-height: 1;
    margin-left: 5px;
}

.muscle-divider {
    margin: 20px 0;
    border: none;
    border-top: 2px solid #cbd5e1;
    width: 100%;
    display: block;
    opacity: 0.8;
}

.irregular-muscles-section {
    margin: 20px 0;
    padding: 0 10px;
}

.irregular-muscles-title {
    color: #ef4444;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
}

.irregular-muscles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.result-item.irregular {
    background-color: #fef2f2;
    border-color: #fecaca;
    margin: 0;
}

.result-item.is-lock-muscle,
.result-item.lock-muscle {
    background-color: #fff7ed;
    border-color: #fed7aa;
}

.muscle-note {
    color: #ef4444;
    font-size: 0.9em;
    margin-right: 8px;
}

.muscle-action {
    color: #3b82f6;
    font-weight: 500;
}

.symptom-checkboxes {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    width: 100%;
}

.checkbox-item {
    margin: 8px 0;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkbox-item:nth-child(2) {
    background-color: #e8f5e9;  /* 縮む方 - 薄い緑 */
}

.checkbox-item:nth-child(3) {
    background-color: #fff3e0;  /* 伸びる方 - 薄いオレンジ */
}

.checkbox-item:nth-child(4) {
    background-color: #e3f2fd;  /* 両方 - 薄い青 */
}

.checkbox-item:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkbox-item label {
    margin-left: 5px;
    font-size: 0.9em;
    color: #4b5563;
    width: 100%;
    text-align: left;
    cursor: pointer;
    padding: 4px 0;
    user-select: none;
}

.symptom-checkbox {
    cursor: pointer;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    pointer-events: none;
}

/* チェックボックスがチェックされた時のラベルのスタイル */
.checkbox-item input[type="checkbox"]:checked + label {
    color: #28a745;
    font-weight: bold;
}

/* チェックボックスがチェックされた時の項目の背景色 */
.checkbox-item:nth-child(2) input[type="checkbox"]:checked {
    background-color: #c8e6c9;  /* 縮む方 - 濃い緑 */
}

.checkbox-item:nth-child(3) input[type="checkbox"]:checked {
    background-color: #ffe0b2;  /* 伸びる方 - 濃いオレンジ */
}

.checkbox-item:nth-child(4) input[type="checkbox"]:checked {
    background-color: #bbdefb;  /* 両方 - 濃い青 */
}

.action-button.selected-pending {
    border: 4px solid #dc3545;
    position: relative;
}

.action-button.selected-completed {
    border: 4px solid #28a745;
    position: relative;
}

.action-cancel-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #dc3545;
    color: #ffffff;
    padding: 6px 24px;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
    user-select: none;
}

.action-cancel-badge:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.checkbox-message {
    color: #dc3545;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.action-button.selected-completed::after {
    content: '選択完了';
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #28a745;
    color: white;
    padding: 6px 24px;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

#currentSelectionHeading {
    margin-top: -85px;
    padding-top: 85px;
}

.action-button.selected-completed::after:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.selected-action-options {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    justify-content: center;
}

.selected-action-options label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 0.9em;
    color: white;
}

.selected-action-options input[type="radio"] {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #ef4444;
    border: 2px solid white;
    background-color: rgba(255, 255, 255, 0.2);
}

.selected-action-options input[type="radio"]:checked {
    background-color: #ef4444;
    border-color: white;
}

.selected-action-options input[type="radio"]:checked + span {
    font-weight: bold;
    color: #ef4444;
}

/* 痛み動作テーブルのスタイル */
.custom-table {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.custom-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    padding: 12px 16px;
}

.custom-table tbody tr {
    transition: all 0.2s ease;
}

.custom-table tbody tr:hover {
    background-color: #f8f9fa;
}

.custom-table td {
    padding: 12px 16px;
    vertical-align: middle;
}

.operation-cell {
    background: #f8f9fa;
}

.dousa-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

.custom-checkbox {
    width: 1.2em;
    height: 1.2em;
    border: 2px solid #6c757d;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.custom-checkbox:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.delete-btn {
    font-size: 0.75rem;
    padding: 0.1rem 0.3rem;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    background-color: #dc3545;
    color: white;
}

.section-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.section-title i {
    color: #0d6efd;
}

/* 著作権表示のスタイル */
.copyright-notice {
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.copyright-notice h6 {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.copyright-notice p {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.copyright-notice strong {
    color: #1f2937;
    font-weight: 600;
}

.copyright-notice .small {
    font-size: 0.875rem;
}

.copyright-notice .text-muted {
    color: #6b7280;
}

/* 動作選択のコツページのスタイル */
.action-tips-container {
    max-width: 900px;
}

.tips-section {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color, #007bff);
    margin-bottom: 1.5rem;
}

.tips-section h2 {
    color: var(--primary-color, #007bff);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color, #007bff);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.example-box {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.example-box h4,
.example-box h5,
.example-box h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.card-header {
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.list-group-numbered {
    counter-reset: list-counter;
}

.list-group-numbered > li {
    counter-increment: list-counter;
    padding-left: 2.5rem;
    position: relative;
}

.list-group-numbered > li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 1rem;
    font-weight: bold;
    color: var(--primary-color, #007bff);
}

/* 結果セクションの背景色 */
.result-section-muscle {
    background-color: #f0f8ff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    position: relative;
}

.result-section-muscle h2 {
    position: relative;
    margin-bottom: 1rem;
}

/* ロック筋セクション */
.lock-muscles-section {
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0 1.5rem 0;
}

.lock-muscles-title {
    color: #dc2626;
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lock-muscles-title::before {
    content: '⚠️';
}

.lock-muscles-list {
    display: flex;
    flex-direction: column;
}

/* ロック筋アイテム（筋肉名 + 説明のセット） */
.lock-muscle-item {
    padding: 0.75rem 0;
}

/* 筋肉名行 */
.lock-muscle-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #fecaca;
    min-height: 3.5rem; /* 2行分の固定高さ */
    transition: all 0.2s ease;
}

.lock-muscle-row:hover {
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    transform: translateY(-1px);
}

.lock-muscle-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

/* ロック筋画像 */
.lock-muscle-img-container {
    flex-shrink: 0;
}

.lock-muscle-img {
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #fecaca;
    max-width: 15vw;
    max-height: 15vw;
}

/* 赤い点滅バッジ */
.lock-blink-badge {
    width: clamp(1.5rem, 5vw, 2rem);
    height: clamp(1.5rem, 5vw, 2rem);
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: lockBlink 1s ease-in-out infinite;
}

.lock-blink-badge i {
    color: #fff;
    font-size: clamp(0.75rem, 2.5vw, 1rem);
}

@keyframes lockBlink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

/* ロック筋名 */
.lock-muscle-name {
    font-weight: 600;
    color: #dc2626;
    font-size: clamp(0.85rem, 3vw, 1rem);
    display: flex;
    flex-direction: column;
}

.lock-name-main {
    display: block;
}

.lock-name-sub {
    display: block;
    text-align: right;
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
}

.lock-count-badge {
    background: #dc2626;
    color: #fff;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    margin-left: 0.25rem;
    flex-shrink: 0;
}

/* ロック筋エビデンス（説明） */
.lock-muscle-item .lock-evidence-text {
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    color: #6b7280;
    margin: 0.5rem 0 0 0;
    padding-left: calc(clamp(1.5rem, 5vw, 2rem) + 0.75rem + 0.75rem);
    line-height: 1.5;
}

/* ロック筋の区切り線 */
.lock-muscle-divider {
    border: none;
    border-top: 1px dashed #fecaca;
    margin: 0;
}

/* 順位筋のロック筋マーキング */
.result-top-item.is-lock-muscle {
    background: linear-gradient(135deg, #fef2f2 0%, #ffe4e6 100%) !important;
    border-color: #f87171 !important;
}

.result-top-item.is-lock-muscle.rank-1 {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%) !important;
}

/* TOP3筋肉表示 */
.result-list-top3 {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.result-top-item {
    background: #fff;
    padding: clamp(0.5rem, 1.5vw, 1rem);
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    width: 100%;
    overflow: hidden;
    transition: all 0.2s ease;
}

.result-top-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.result-top-item.rank-1 {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
}

.result-top-item.rank-2 {
    border-color: #d1d5db;
}

.result-top-item.rank-3 {
    border-color: #cd7f32;
}

.result-rank-badge {
    width: clamp(2rem, 7vw, 3rem);
    height: clamp(2rem, 7vw, 3rem);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(1rem, 3.5vw, 1.5rem);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.result-rank-badge.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.result-rank-badge.rank-2 {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
}

.result-rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #b87333);
}

.result-rank-badge.rank-other {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.result-muscle-info {
    display: flex;
    flex-direction: column;
    gap: clamp(0.15rem, 0.5vw, 0.4rem);
    min-width: 0;
    overflow: hidden;
}

.result-muscle-name {
    font-size: clamp(0.75rem, 2.5vw, 1rem);
    font-weight: 600;
    color: #111827;
    min-height: 2em;
    line-height: 1.2;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-muscle-name-second {
    text-align: left;
}

.result-muscle-score {
    font-size: clamp(0.6rem, 2vw, 0.8rem);
    color: #6b7280;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: nowrap;
}

/* 筋肉画像エリアの自動調整 */
.result-top-item > div[style*="display: flex"],
.result-top-item > div[style*="display:flex"] {
    margin-right: 0 !important;
    gap: clamp(2px, 1vw, 8px) !important;
    flex-wrap: nowrap;
    overflow: hidden;
    justify-content: center;
}

.result-top-item img {
    width: clamp(28px, 10vw, 50px) !important;
    height: clamp(28px, 10vw, 50px) !important;
    flex-shrink: 0;
}

.accordion-muscle-rest {
    margin-top: 0.75rem;
    width: 100%;
}

/* 筋肉アコーディオン - 日常生活動作と同じスタイル */
.accordion-muscle-rest .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #fff;
}

.accordion-muscle-rest .accordion-button {
    background: #f8fafc;
    color: #1e293b;
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    min-height: 56px; /* タップしやすいサイズ */
}

.accordion-muscle-rest .accordion-button:not(.collapsed) {
    background: #e2e8f0;
    color: #1e293b;
    box-shadow: none;
}

/* タップ時のフィードバック */
.accordion-muscle-rest .accordion-button:active {
    background: #cbd5e1;
}

.accordion-muscle-rest .accordion-button:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

/* 矢印アイコン - 明確に見える青色 */
.accordion-muscle-rest .accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233b82f6'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.accordion-muscle-rest .accordion-body {
    padding: 1rem;
    background: #fff;
}

.accordion-muscle-rest .accordion-body .result-list {
    margin-top: 0;
}

@media (min-width: 768px) {
    /* PC向け - モダンデザイン */
    .accordion-muscle-rest .accordion-item {
        border: none;
        border-radius: 16px;
        margin-bottom: 1rem;
        background: #fff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        overflow: hidden;
        transition: box-shadow 0.3s ease, transform 0.2s ease;
    }

    .accordion-muscle-rest .accordion-item:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

    .accordion-muscle-rest .accordion-header {
        margin: 0;
    }

    .accordion-muscle-rest .accordion-button {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        border: none;
        border-radius: 16px;
        padding: 1.25rem 1.5rem;
        font-weight: 600;
        font-size: 1rem;
        gap: 0.75rem;
        transition: all 0.3s ease;
    }

    .accordion-muscle-rest .accordion-button:not(.collapsed) {
        background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
        color: #fff;
        box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
        border-radius: 16px 16px 0 0;
    }

    .accordion-muscle-rest .accordion-button:hover {
        background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    }

    .accordion-muscle-rest .accordion-button:focus {
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
        outline: none;
    }

    .accordion-muscle-rest .accordion-button::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
        width: 1.25rem;
        height: 1.25rem;
        transition: transform 0.3s ease;
    }

    .accordion-muscle-rest .accordion-button:not(.collapsed)::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
        transform: rotate(-180deg);
    }

    .accordion-muscle-rest .accordion-collapse {
        background: #fafbfc;
    }

    .accordion-muscle-rest .accordion-body {
        padding: 1.5rem;
        border-top: 1px solid rgba(102, 126, 234, 0.1);
    }
}

.result-section-nerve {
    background-color: #f5f5dc;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.result-section-table {
    background-color: #f3e5f5;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.result-section-stretch {
    background-color: #f0fff0;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

/* 日常生活動作アコーディオン - スマホ優先デザイン */
.itami-dousa-container .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #fff;
}

.itami-dousa-container .accordion-button {
    background: #f8fafc;
    color: #1e293b;
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    min-height: 56px; /* タップしやすいサイズ */
}

.itami-dousa-container .accordion-button:not(.collapsed) {
    background: #e2e8f0;
    color: #1e293b;
    box-shadow: none;
}

/* タップ時のフィードバック */
.itami-dousa-container .accordion-button:active {
    background: #cbd5e1;
}

.itami-dousa-container .accordion-button:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

/* 矢印アイコン - 明確に見える青色 */
.itami-dousa-container .accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233b82f6'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.itami-dousa-container .accordion-button .category-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    width: auto;
    max-width: none;
    box-shadow: none;
}

.itami-dousa-container .accordion-body {
    padding: 1rem;
    background: #fff;
}

/* 日常生活動作カテゴリ - ジャンプ時のスクロールマージン */
.itami-dousa-container .accordion-item[id^="daily-category-"] {
    scroll-margin-top: 95px;
}

@media (min-width: 768px) {
    .itami-dousa-container .accordion-item[id^="daily-category-"] {
        scroll-margin-top: 100px;
    }
}

/* 日常生活動作アコーディオン - モダンデザイン */
.itami-dousa-container .accordion-item {
    border: none;
    border-radius: 16px;
    margin-bottom: 1rem;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.itami-dousa-container .accordion-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.itami-dousa-container .accordion-header {
    margin: 0;
}

.itami-dousa-container .accordion-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.itami-dousa-container .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    color: #fff;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    border-radius: 16px 16px 0 0;
}

.itami-dousa-container .accordion-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.itami-dousa-container .accordion-button:focus {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
    outline: none;
}

.itami-dousa-container .accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.itami-dousa-container .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    transform: rotate(-180deg);
}

.itami-dousa-container .accordion-button .category-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    width: auto;
    max-width: none;
}

.itami-dousa-container .accordion-collapse {
    background: #fafbfc;
}

.itami-dousa-container .accordion-body {
    padding: 1.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.itami-dousa-container .accordion-body .table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.itami-dousa-container .accordion-body .table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

/* 日常生活動作 - 選択完了ボタン */
.itami-dousa-complete-btn {
    background-color: #28a745;
    color: white;
    padding: 0.5vw 1.5vw;
    border-radius: 3px;
    font-size: clamp(0.5rem, 2vw, 0.7rem);
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-top: 0.25rem;
    display: inline-block;
    white-space: nowrap;
}

.itami-dousa-complete-btn:active {
    background-color: #1e7e34;
}

@media (min-width: 768px) {
    .itami-dousa-complete-btn {
        padding: 3px 10px;
        font-size: 0.65rem;
    }
}

/* 日常生活動作 - 上矢印緑ボタン（元のチェックボックスへジャンプ） */
.itami-jump-btn {
    background-color: var(--success-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.itami-jump-btn:active {
    background-color: #1e7e34;
}

/* 日常生活動作行 - ジャンプ時のスクロールマージン */
tr[id^="itami-dousa-row-"] {
    scroll-margin-top: 95px;
}

@media (min-width: 768px) {
    tr[id^="itami-dousa-row-"] {
        scroll-margin-top: 100px;
    }
}

/* スマホでの筋肉表示の調整 */
@media (max-width: 768px) {
    /* コンテナのpaddingを最小限に */
    .container {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
    
    .result-container {
        padding: 0.25rem !important;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        width: calc(100vw - 0.5rem);
        max-width: calc(100vw - 0.5rem);
    }
    
    .result-tab-content {
        padding: 0.25rem !important;
    }
    
    .result-section-muscle {
        padding: 0.25rem !important;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        width: calc(100% + 0.5rem);
    }
    
    .lock-muscles-section {
        padding: 0.25rem !important;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        width: calc(100% + 0.5rem);
    }
    
    .result-list-top3 {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .result-top-item {
        grid-template-columns: auto auto 1fr;
        gap: clamp(0.3rem, 1vw, 0.5rem);
        padding: clamp(0.4rem, 1vw, 0.6rem);
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    
    .result-top-item img {
        width: clamp(25px, 8vw, 35px) !important;
        height: clamp(25px, 8vw, 35px) !important;
    }
    
    .result-rank-badge {
        width: clamp(1.8rem, 6vw, 2.5rem);
        height: clamp(1.8rem, 6vw, 2.5rem);
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }
    
    .result-muscle-name {
        font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    }
    
    .result-muscle-score {
        font-size: clamp(0.7rem, 2vw, 0.8rem);
    }
    
    .muscle-count-badge {
        font-size: clamp(0.65rem, 1.8vw, 0.75rem);
        padding: 0.1rem 0.3rem;
    }
    
    .lock-muscle-row {
        gap: clamp(0.3rem, 1vw, 0.5rem);
        padding: 0.4rem 0.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .lock-muscles-list {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .lock-blink-badge {
        width: clamp(1.3rem, 4vw, 1.8rem);
        height: clamp(1.3rem, 4vw, 1.8rem);
    }
    
    .lock-blink-badge i {
        font-size: clamp(0.65rem, 2vw, 0.85rem);
    }
    
    .lock-muscle-img {
        max-width: 12vw !important;
        max-height: 12vw !important;
    }
    
    .lock-muscle-name {
        font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    }
    
    .lock-count-badge {
        font-size: clamp(0.65rem, 1.8vw, 0.75rem);
        padding: 0.1rem 0.3rem;
    }
}

/* ========================================
   donokinについてモーダル
   ======================================== */

/* トリガーボタン */
.about-donokin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.about-donokin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.about-donokin-btn:active {
    transform: translateY(0);
}

.about-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1rem;
}

.about-btn-text {
    flex: 1;
}

.about-btn-arrow {
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.about-donokin-btn:hover .about-btn-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* モーダルオーバーレイ */
.about-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: aboutModalFadeIn 0.3s ease;
}

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

/* モーダルコンテンツ */
.about-modal-content {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    max-width: 420px;
    width: 100%;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: aboutModalSlideUp 0.4s ease;
    overflow: hidden;
}

@keyframes aboutModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 閉じるボタン */
.about-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.about-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: rotate(90deg);
}

/* モーダルロゴ */
.about-modal-logo {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 800;
    color: #667eea;
    text-align: center;
    margin: 1.5rem 0;
    letter-spacing: 0.08em;
    text-decoration: underline;
    text-decoration-color: #a5b4fc;
    text-underline-offset: 0.15em;
}

/* モーダルボディ */
.about-modal-body {
    text-align: center;
}

.about-modal-lead {
    font-size: clamp(1rem, 3vw, 1.125rem);
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.25rem;
}

.highlight-text {
    background: linear-gradient(transparent 60%, rgba(102, 126, 234, 0.3) 60%);
    font-weight: 600;
}

.highlight-danger {
    color: #dc2626;
    font-weight: 700;
}

.highlight-accent {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.highlight-success {
    color: #059669;
    font-weight: 600;
}

.about-modal-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    margin: 1.25rem auto;
}

.about-modal-sub {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-modal-free {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 600;
    color: #059669;
    margin-bottom: 1.5rem;
}

.about-modal-close-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    color: #64748b;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.about-modal-close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* スマホ対応 */
@media (max-width: 480px) {
    .about-modal-content {
        padding: 2rem 1.25rem 1.5rem;
        border-radius: 20px;
    }
    
    .about-modal-icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.5rem;
    }
    
    .about-donokin-btn {
        padding: 0.75rem 1.25rem;
        gap: 0.5rem;
    }
    
    .about-btn-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.9rem;
    }
} 