/* animation.css: アニメーション専用CSS */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
}
.fade-in.delay-1 {
    animation-delay: 0.3s;
}
.fade-in.delay-2 {
    animation-delay: 0.6s;
}
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.9s cubic-bezier(.23,1.02,.32,1) forwards;
}
.slide-up.delay-1 {
    animation-delay: 0.4s;
}
.slide-up.delay-2 {
    animation-delay: 0.7s;
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.skill-card, .card, button, a.button {
    transition: transform 0.18s cubic-bezier(.23,1.02,.32,1), box-shadow 0.18s;
}
.skill-card:hover, .card:hover, button:hover, a.button:hover {
    transform: scale(1.045);
    box-shadow: 0 8px 32px rgba(80,34,0,0.13);
    z-index: 1;
}

/* ===== 追加アニメーション ===== */
/* ズームイン */
.zoom-in {
    opacity: 0;
    transform: scale(0.92);
    animation: zoomIn 0.7s cubic-bezier(.23,1.02,.32,1) forwards;
}
.zoom-in.delay-1 { animation-delay: 0.3s; }
.zoom-in.delay-2 { animation-delay: 0.6s; }
@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* フェードイン（左右・下） */
.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    animation: fadeInLeft 0.9s cubic-bezier(.23,1.02,.32,1) forwards;
}
.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    animation: fadeInRight 0.9s cubic-bezier(.23,1.02,.32,1) forwards;
}
.fade-in-bottom {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInBottom 0.9s cubic-bezier(.23,1.02,.32,1) forwards;
}
@keyframes fadeInLeft {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInBottom {
    to { opacity: 1; transform: translateY(0); }
}
/* セクションやカードのグラデ浮き上がり */
.card.modern-hover:hover, .skill-card.modern-hover:hover {
    box-shadow: 0 12px 36px 0 rgba(80,34,0,0.18), 0 1.5px 8px 0 #C09933;
    border-color: #C09933;
    background: linear-gradient(120deg, #fff 80%, #f9f6ec 100%);
    transition: box-shadow 0.25s, border-color 0.25s, background 0.25s;
}
/* ボタンのリップル風エフェクト */
.button-ripple {
    position: relative;
    overflow: hidden;
}
.button-ripple:active::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 0; height: 0;
    background: rgba(192,153,51,0.18);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.5s linear;
    pointer-events: none;
}
@keyframes ripple {
    to {
        width: 200%; height: 200%; opacity: 0;
    }
}
