/* 技術スタックページのスタイル */

/* ヒーローセクション */
.tech-hero {
    background: linear-gradient(135deg, #1a1f36 0%, #2d3561 100%);
    color: #fff;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.tech-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: rotate(45deg);
    opacity: 0.5;
}

.tech-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.tech-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.tech-hero-subtitle {
    font-size: 1.5rem;
    color: #a8b2d1;
    margin-bottom: 1.5rem;
}

.tech-hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e6ed;
    max-width: 800px;
    margin: 0 auto;
}

/* メインセクション */
.tech-main {
    padding: 80px 0;
    background: #f8f9fa;
}

/* イントロセクション */
.tech-intro {
    text-align: center;
    margin-bottom: 80px;
}

.tech-intro-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 1.5rem;
}

.tech-intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5a6c7d;
    max-width: 800px;
    margin: 0 auto;
}

/* 技術グリッド */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.tech-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.tech-card:hover::before {
    transform: scaleX(1);
}

.tech-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tech-card-icon svg {
    width: 30px;
    height: 30px;
    color: #fff;
}

.tech-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 10px;
}

.tech-card-description {
    font-size: 0.95rem;
    color: #5a6c7d;
    margin-bottom: 25px;
}

/* 技術アイテム */
.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-item {
    background: #f3f4f6;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.tech-item-primary {
    background: linear-gradient(135deg, #e0e7ff 0%, #f0e7ff 100%);
    border: 1px solid #c7d2fe;
}

.tech-item:hover {
    transform: scale(1.05);
}

.tech-item-name {
    font-weight: 600;
    color: #1a1f36;
}

.tech-item-detail {
    font-size: 0.8rem;
    color: #64748b;
    background: rgba(255,255,255,0.6);
    padding: 2px 8px;
    border-radius: 10px;
}

/* 技術特徴セクション */
.tech-features {
    margin-bottom: 80px;
}

.tech-features-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 50px;
}

.tech-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .tech-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tech-features-grid {
        grid-template-columns: 1fr;
    }
}

.tech-feature {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tech-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tech-feature-icon {
    width: 80px;
    height: 80px;
    background: #f0f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tech-feature-icon svg {
    width: 40px;
    height: 40px;
    color: #3b82f6;
}

.tech-feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 15px;
}

.tech-feature-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5a6c7d;
}

/* CTAセクション */
.tech-cta {
    background: linear-gradient(135deg, #1a1f36 0%, #2d3561 100%);
    color: #fff;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tech-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(20px, 20px);
    }
}

.tech-cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.tech-cta-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #e0e6ed;
    position: relative;
    z-index: 1;
}

.tech-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .tech-hero {
        padding: 80px 0 60px;
    }
    
    .tech-hero-title {
        font-size: 2.5rem;
    }
    
    .tech-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-card {
        padding: 30px;
    }
    
    .tech-features-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tech-cta-buttons .btn {
        width: 200px;
    }
}