.intro {
    max-width: 1100px;
    margin: 140px auto 60px auto; /* 上の余白を増やす（例: 140px） */
    padding: 0 20px;
    text-align: center;
}
.intro h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.intro p {
    color: #ccc;
    font-size: 1rem;
}    
.contents {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    width: 90%;
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
    perspective: 1000px;
}
.card {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    transform-style: preserve-3d;
    opacity: 0;
    transform: rotateX(90deg);
    animation: flipIn 1s ease forwards;
}
@keyframes flipIn {
    to {
        opacity: 1;
        transform: rotateX(0);
    }
}
.card:hover {
    transform: translateY(-10px); 
    border-color: #2a2a2a; 
    box-shadow: 0 6px 20px rgba(0,188,212,0.7);
}     
.card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    backface-visibility: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
