.skill-bar {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--color-sub), var(--color-primary));
    transition: width 1.2s cubic-bezier(.4,2,.6,1);
}
@media (max-width: 700px) {
    .work-title {
        font-size: 1.2rem;
    }
    .work-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
/* カード・制作物・スキルカード用CSS */
.card {
    background: #fff;
    border: none;
    border-radius: 24px;
    padding: 2.2rem 1.5rem 1.7rem 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(80,34,0,0.13), 0 1.5px 6px 0 rgba(80,34,0,0.07);
    margin-bottom: 2.5rem;
    transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 420px;
    /* 新しい背景装飾 */
    background: linear-gradient(135deg, #fff 60%, var(--color-sub2) 100%);
}
.card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, var(--color-sub) 0%, var(--color-primary) 100%);
    opacity: 0.08;
    border-radius: 50%;
    z-index: 0;
}
/* 追加: モダンな背景のための装飾円を複数追加 */
.card::after {
    content: '';
    position: absolute;
    left: -50px;
    bottom: -50px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, var(--color-primary) 0%, transparent 70%);
    opacity: 0.07;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
.card .card-bg-deco {
    position: absolute;
    left: 50%;
    top: 60%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--color-sub) 0%, transparent 80%);
    opacity: 0.06;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 0;
    pointer-events: none;
}
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.work-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 16px rgba(80,34,0,0.10);
    border: 2px solid #f5f7fa;
    background: #f9f6ec;
    z-index: 1;
}
.work-title {
    font-size: 1.7rem;
    margin-bottom: 0.7rem;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 1;
}
.work-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-sub), var(--color-primary));
    color: #fff;
    padding: 0.32rem 0.85rem;
    border-radius: 16px;
    font-size: 0.95rem;
    margin-right: 0.6rem;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(80,34,0,0.07);
    margin-bottom: 0.3rem;
}
.work-links {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.8rem;
    z-index: 1;
}
.work-btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-primary), var(--color-sub));
    color: #fff;
    padding: 0.45rem 1.05rem;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.2px;
    box-shadow: 0 1px 4px rgba(80,34,0,0.08);
    border: none;
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
    cursor: pointer;
    outline: none;
    min-width: 110px;
    text-align: center;
}
.work-btn:hover {
    background: linear-gradient(90deg, var(--color-sub), var(--color-primary));
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 2px 8px rgba(80,34,0,0.13);
}
.card p, .card h3 {
    z-index: 1;
}
.work-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.7rem;
    width: 100%;
}
.work-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    flex-wrap: wrap;
}
.work-label {
    min-width: 3.2em;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--color-primary);
    background: #f9f6ec;
    border-radius: 8px;
    padding: 0.18em 0.8em 0.18em 0.7em;
    margin-right: 0.3em;
    margin-bottom: 0.1em;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}
.work-meta-content {
    font-size: 1.01rem;
    color: #333;
    line-height: 1.7;
    word-break: break-word;
    white-space: pre-line;
    flex: 1 1 0;
}
@media (max-width: 900px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
    .card {
        min-height: 0;
    }
    .work-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem 0;
    }
    .work-btn {
        width: 100%;
        min-width: 0;
        font-size: 0.98rem;
        padding: 0.5rem 0.7rem;
    }
}
@media (max-width: 700px) {
    .work-title {
        font-size: 1.2rem;
    }
    .work-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.93rem;
    }
    .card {
        padding: 1.2rem 0.7rem 1.1rem 0.7rem;
    }
    .work-thumb {
        border-radius: 10px;
    }
    .work-meta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }
    .work-label {
        margin-bottom: 0.1em;
    }
}
