@property --rotate {
    syntax: "<angle>";
    initial-value: 132deg;
    inherits: false;
}

:root {
    --card-height: 400px;
    /* Adjusted height */
    --card-width: 300px;
    /* Adjusted width */
}

/* Services Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    justify-items: center;
}

.service-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 320px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* User Provided Card Styles with Adjustments */
.magic-card {
    background: #1e293b !important;
    border: 2px solid #334155 !important;
    width: var(--card-width);
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
    padding: 30px 25px !important;
    position: relative;
    border-radius: 20px;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    display: flex !important;
    flex-direction: column;
    font-size: 1rem;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.magic-card-content {
    height: 100% !important;
    width: 100% !important;
    background: transparent !important;
    border-radius: 0;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 1;
    position: relative;
}

/* Hover effects - simplified */
.magic-card:hover {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
}

/* Remove sparkle effects */
.magic-card::before,
.magic-card::after {
    display: none !important;
    content: none !important;
}

/* Inner content styling */
.magic-card h3,
.magic-card-content h3 {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.magic-card p,
.magic-card-content p {
    font-size: 1.1rem !important;
    color: #e2e8f0 !important;
    line-height: 1.8 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.magic-card .service-icon {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 20px !important;
    background: #0066cc !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3) !important;

    /* シンプルで確実なflexbox中央配置 */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    /* 余計な要素を排除 */
    padding: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative !important;
}

.magic-card .service-icon i {
    /* アイコンサイズを固定 */
    font-size: 40px !important;
    width: 40px !important;
    height: 40px !important;

    /* 色 */
    color: #ffffff !important;

    /* シンプルな表示 */
    display: block !important;
    line-height: 40px !important;
    text-align: center !important;

    /* 余白削除 */
    margin: 0 !important;
    padding: 0 !important;
}

.magic-card .service-icon i::before {
    /* Font Awesome疑似要素の中央配置 */
    vertical-align: middle !important;
}

/* 個別アイコンの位置調整 */
.magic-card .service-icon .fa-gamepad {
    transform: translate(-4px, 0px) !important;
}

.magic-card .service-icon .fa-laptop-code {
    transform: translate(-4px, 0px) !important;
}

.magic-card .service-icon .fa-robot {
    transform: translate(-4px, 0px) !important;
}

.magic-card .service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    /* Optional rounded corners */
}


/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: #ff9f43;
    background: rgba(255, 255, 255, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}