/* クリック可能な技術アイテム */
.tech-item {
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.tech-item:hover {
    background: rgba(52, 152, 219, 0.15);
    transform: translateX(5px);
}

/* 技術詳細モーダル */
.tech-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tech-modal-content {
    background: var(--white);
    max-width: min(900px, 90vw);
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    animation: slideIn 0.3s;
    box-sizing: border-box;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tech-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: var(--dark-gray);
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
}

.tech-modal-close:hover {
    color: var(--ocean-blue);
}

#tech-modal-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--deep-blue);
    text-align: center;
}

.tech-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* 画像エリア */
.tech-modal-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tech-main-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border: 4px solid var(--ocean-blue);
    background: #f5f5f5;
}

.tech-sub-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.tech-sub-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border: 3px solid var(--emerald-green);
    cursor: pointer;
    transition: all 0.3s;
}

.tech-sub-image:hover {
    transform: scale(1.05);
    border-color: var(--ocean-blue);
    box-shadow: 0 4px 8px var(--shadow);
}

.image-note {
    font-size: 12px;
    color: var(--dark-gray);
    text-align: center;
    margin: 0;
}

/* 説明エリア */
.tech-modal-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#tech-modal-desc {
    font-size: 16px;
    line-height: 2;
    color: var(--dark-gray);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .tech-modal-body {
        grid-template-columns: 1fr;
    }

    .tech-main-image {
        height: 200px;
    }

    #tech-modal-title {
        font-size: 18px;
    }
}