/* ============================================
   配色組み合わせ 完全チートシート - スタイルシート
   ============================================ */

/* リセット & ベーススタイル */
.color-cheatsheet-container * {
    box-sizing: border-box;
}

:root {
    /* カラーパレット */
    --primary-color: #FF6B6B;
    --primary-dark: #E74C3C;
    --primary-light: #FFB3BA;
    --secondary-color: #4ECDC4;
    --accent-color: #FFD93D;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --bg-color: #FFF8F5;
    --card-bg: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --border-color: #E8E8E8;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* WordPress記事本文用: コンテナクラスでスコープを限定 */
.color-cheatsheet-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #FFF8F5 0%, #FFF0E6 100%);
    border-radius: 25px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: fadeIn 0.6s ease-in;
}

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

/* ヘッダー */
.color-cheatsheet-container header {
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 50%, #FFD93D 100%);
    color: white;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.color-cheatsheet-container header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 40px 40px;
    animation: movePattern 30s linear infinite;
}

@keyframes movePattern {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

.color-cheatsheet-container header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    animation: slideDown 0.8s ease-out;
    font-weight: 700;
}

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

.color-cheatsheet-container .subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* 目次 */
.color-cheatsheet-container .toc {
    background: var(--card-bg);
    padding: 35px 40px;
    border-bottom: 4px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.color-cheatsheet-container .toc h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
}

.color-cheatsheet-container .toc ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.color-cheatsheet-container .toc li {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.color-cheatsheet-container .toc li:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.color-cheatsheet-container .toc a {
    display: block;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.color-cheatsheet-container .toc a:hover {
    color: #f0f0f0;
}

/* セクション */
.color-cheatsheet-container .section {
    padding: 50px 40px;
    animation: fadeInUp 0.8s ease-out;
}

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

.color-cheatsheet-container .section h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 4px solid var(--primary-color);
    position: relative;
    font-weight: 700;
}

.color-cheatsheet-container .section h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 150px;
    height: 4px;
    background: var(--secondary-color);
    animation: expandWidth 1s ease-out;
    border-radius: 2px;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 150px;
    }
}

/* プロパティカード */
.color-cheatsheet-container .prop-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.color-cheatsheet-container .prop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.4s ease;
}

.color-cheatsheet-container .prop-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.color-cheatsheet-container .prop-card:hover::before {
    width: 100%;
    opacity: 0.08;
}

.color-cheatsheet-container .prop-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.color-cheatsheet-container .description {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 30px;
    line-height: 2;
    position: relative;
    z-index: 1;
}

/* 色の属性 */
.color-attributes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.attribute-box {
    background: #F8F9FA;
    border-radius: 15px;
    padding: 25px;
    border: 2px dashed var(--border-color);
    transition: all 0.3s ease;
}

.attribute-box:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.attribute-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

.attribute-box p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.color-swatch {
    display: inline-block;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin: 5px;
    text-align: center;
    line-height: 80px;
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.color-swatch:hover {
    transform: scale(1.1) rotate(5deg);
}

.lightness-demo, .saturation-demo {
    margin-top: 15px;
}

.lightness-bar, .saturation-bar {
    height: 40px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}

.lightness-labels, .saturation-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 色相環 */
.color-wheel-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.color-wheel-visual {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        hsl(0, 100%, 50%),
        hsl(30, 100%, 50%),
        hsl(60, 100%, 50%),
        hsl(90, 100%, 50%),
        hsl(120, 100%, 50%),
        hsl(150, 100%, 50%),
        hsl(180, 100%, 50%),
        hsl(210, 100%, 50%),
        hsl(240, 100%, 50%),
        hsl(270, 100%, 50%),
        hsl(300, 100%, 50%),
        hsl(330, 100%, 50%),
        hsl(360, 100%, 50%)
    );
    box-shadow: var(--shadow-lg);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.wheel-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 50%, 50% 0%, 91.6% 25%, 91.6% 25%);
    transform-origin: center;
}

/* 色の関係性 */
.color-relationship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.relationship-item {
    background: #F8F9FA;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.relationship-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.relationship-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.relationship-item p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.color-palette {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.palette-color {
    flex: 1;
    height: 60px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.palette-color:hover {
    transform: scale(1.1) translateY(-5px);
}

/* 60-30-10の法則 */
.rule-60-30-10 {
    margin: 40px 0;
}

.rule-visual {
    display: flex;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.rule-base {
    flex: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
}

.rule-sub {
    flex: 0.3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
}

.rule-accent {
    flex: 0.1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
}

.rule-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.rule-example {
    background: #F8F9FA;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid var(--border-color);
}

.rule-example h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.example-palette {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.example-color {
    flex: 1;
    height: 80px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.example-color:hover {
    transform: scale(1.05);
}

/* トーン配色 */
.tone-palettes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tone-palette {
    background: #F8F9FA;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.tone-palette:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.tone-palette h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.tone-colors {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.tone-color {
    flex: 1;
    height: 70px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.tone-color:hover {
    transform: scale(1.1) translateY(-5px);
}

.tone-palette p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ベースカラー別配色 */
.base-color-palettes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.base-palette {
    background: #F8F9FA;
    border-radius: 20px;
    padding: 30px;
    border: 3px solid var(--border-color);
    transition: all 0.4s ease;
}

.base-palette:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.base-palette h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
}

.palette-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.showcase-color {
    height: 100px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.showcase-color:hover {
    transform: scale(1.1) rotate(5deg);
}

.base-palette p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

/* 用途別配色パターン */
.usage-patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.usage-pattern {
    background: #F8F9FA;
    border-radius: 20px;
    padding: 30px;
    border: 3px solid var(--border-color);
    transition: all 0.4s ease;
}

.usage-pattern:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.usage-pattern h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

.pattern-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.preview-block {
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.preview-block:hover {
    transform: scale(1.05);
}

.usage-pattern p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.color-codes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-codes span {
    background: var(--text-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* 季節別配色 */
.seasonal-palettes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.seasonal-palette {
    background: #F8F9FA;
    border-radius: 20px;
    padding: 30px;
    border: 3px solid var(--border-color);
    transition: all 0.4s ease;
}

.seasonal-palette:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.seasonal-palette h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

.seasonal-colors {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.seasonal-color {
    flex: 1;
    min-width: 80px;
    height: 80px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.seasonal-color:hover {
    transform: scale(1.15) rotate(5deg);
}

.seasonal-palette p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 定番配色パターン */
.classic-patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.classic-pattern {
    background: #F8F9FA;
    border-radius: 20px;
    padding: 30px;
    border: 3px solid var(--border-color);
    transition: all 0.4s ease;
}

.classic-pattern:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.classic-pattern h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
}

.pattern-visual {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.visual-color {
    flex: 1;
    height: 100px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.visual-color:hover {
    transform: scale(1.1) rotate(5deg);
}

.classic-pattern p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 奇抜な配色パターン */
.bold-patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.bold-pattern {
    background: #F8F9FA;
    border-radius: 20px;
    padding: 30px;
    border: 3px solid var(--border-color);
    transition: all 0.4s ease;
}

.bold-pattern:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.bold-pattern h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

.bold-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.bold-color {
    height: 100px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.bold-color:hover {
    transform: scale(1.1) rotate(5deg);
}

.gradient-visual {
    height: 150px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.gradient-visual:hover {
    transform: scale(1.05);
}

.bold-pattern p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* グラデーション配色 */
.gradient-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.gradient-item {
    background: #F8F9FA;
    border-radius: 20px;
    padding: 30px;
    border: 3px solid var(--border-color);
    transition: all 0.4s ease;
}

.gradient-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gradient-preview {
    height: 180px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    font-weight: 700;
    font-size: 1.2rem;
}

.gradient-preview:hover {
    transform: scale(1.05);
}

.gradient-item p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.gradient-codes {
    display: flex;
    gap: 10px;
}

.gradient-codes span {
    background: var(--text-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* アクセシビリティ */
.contrast-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contrast-example {
    background: #F8F9FA;
    border-radius: 20px;
    padding: 30px;
    border: 3px solid var(--border-color);
}

.contrast-example.good {
    border-color: #10B981;
}

.contrast-example.bad {
    border-color: #EF4444;
}

.contrast-example h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
}

.contrast-demo {
    padding: 30px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.contrast-example p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.colorblind-friendly {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.friendly-example {
    background: #F8F9FA;
    border-radius: 20px;
    padding: 30px;
    border: 3px solid var(--border-color);
}

.friendly-example h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
}

.example-visual {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.status-bad, .status-good {
    flex: 1;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.friendly-example p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 実践例 */
.checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.checklist-item {
    background: #F8F9FA;
    border-radius: 15px;
    padding: 25px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
}

.checklist-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.checklist-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.checklist-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.tools-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tool-item {
    background: #F8F9FA;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.tool-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.tool-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

.tool-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* フッター */
.color-cheatsheet-container footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    font-weight: 500;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .color-cheatsheet-container {
        margin: 10px;
        border-radius: 15px;
    }

    .color-cheatsheet-container header h1 {
        font-size: 2rem;
    }

    .color-cheatsheet-container .subtitle {
        font-size: 1rem;
    }

    .color-cheatsheet-container .section {
        padding: 25px 20px;
    }

    .color-cheatsheet-container .section h2 {
        font-size: 2rem;
    }

    .color-cheatsheet-container .prop-card {
        padding: 25px;
    }

    .color-wheel-visual {
        width: 300px;
        height: 300px;
    }

    .color-cheatsheet-container .toc ul {
        flex-direction: column;
    }

    .color-cheatsheet-container .toc li {
        width: 100%;
    }
}

/* スクロールバーのスタイリング */
.color-cheatsheet-container ::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

.color-cheatsheet-container ::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 10px;
}

.color-cheatsheet-container ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    border: 2px solid #F1F5F9;
}

.color-cheatsheet-container ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
}

/* アニメーション強化 */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
    .color-cheatsheet-container *,
    .color-cheatsheet-container *::before,
    .color-cheatsheet-container *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 印刷スタイル */
@media print {
    .color-cheatsheet-container {
        background: white;
        box-shadow: none;
    }

    .color-cheatsheet-container .prop-card,
    .color-cheatsheet-container .usage-pattern {
        break-inside: avoid;
    }
}

