/* ===================================
   Instagram セクション
   =================================== */

.instagram {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.instagram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.instagram .container {
    position: relative;
    z-index: 2;
}

.instagram .section-title,
.instagram .section-description {
    color: #ffffff;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.instagram-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(131, 58, 180, 0.4);
}

.instagram-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ffffff;
    text-align: center;
    padding: 2rem;
}

.instagram-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.instagram-placeholder p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-caption {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.instagram-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.8rem;
}

.instagram-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.9rem;
}

.instagram-stat i {
    font-size: 1.1rem;
}

.instagram-follow {
    text-align: center;
    margin-top: 3rem;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(131, 58, 180, 0.3);
}

.btn-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(131, 58, 180, 0.5);
}

.btn-instagram i {
    font-size: 1.5rem;
}

/* Instagram埋め込みiframe対応 */
.instagram-embed {
    max-width: 540px;
    margin: 0 auto;
}

.instagram-embed iframe {
    border-radius: 12px;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .instagram-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .instagram {
        padding: 3rem 0;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .instagram-placeholder i {
        font-size: 3rem;
    }
    
    .instagram-placeholder p {
        font-size: 0.85rem;
    }
    
    .btn-instagram {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .instagram-grid {
        grid-template-columns: 1fr;
    }
}
