/* モダンなダイアグラム */
.modern-diagram {
    position: relative;
    width: 450px;
    height: 450px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 中央の要素 */
.diagram-center-container {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.diagram-center {
    width: 130px;
    height: 130px;
    background: #1e88e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.diagram-center:before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 50px;
    height: 50px;
    background-color: #f57c00;
    border-radius: 50%;
    opacity: 0.7;
}

.diagram-center:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 35px;
    height: 35px;
    background-color: #f57c00;
    border-radius: 50%;
    opacity: 0.5;
}

.diagram-center-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.diagram-center-content p {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.diagram-subtitle {
    display: block;
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 400;
    margin-top: 3px;
}

/* 3つの力の要素 */
.diagram-items {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.diagram-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
}

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

.diagram-icon {
    width: 70px;
    height: 70px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    color: #1e88e5;
    font-size: 28px;
    position: relative;
    overflow: hidden;
    z-index: 3;
}

.diagram-icon:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(30, 136, 229, 0.1) 0%, transparent 70%);
}

.diagram-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    background-color: white;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 要素の配置 */
.item1 {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.item2 {
    bottom: 80px;
    left: 40px;
}

.item3 {
    bottom: 80px;
    right: 40px;
}

.item1:hover {
    transform: translateX(-50%) scale(1.1);
}

.item3:hover {
    transform: scale(1.1);
}

/* 接続線のスタイル */
.diagram-connections {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.diagram-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.connection-path {
    fill: none;
    stroke-width: 2.5px;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s forwards;
    opacity: 0.7;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.path1 {
    animation-delay: 0.2s;
}

.path2 {
    animation-delay: 0.4s;
}

.path3 {
    animation-delay: 0.6s;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .modern-diagram {
        width: 100%;
        height: 420px;
        margin: 30px auto;
    }
    
    .diagram-center {
        width: 110px;
        height: 110px;
    }
    
    .diagram-center-content p {
        font-size: 1.2rem;
    }
    
    .diagram-subtitle {
        font-size: 0.85rem;
    }
    
    .diagram-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .diagram-text {
        font-size: 0.9rem;
        padding: 4px 12px;
    }
    
    .item1 {
        top: 15px;
        left: 50%;
    }
    
    .item2 {
        bottom: 100px;
        left: 20px;
    }
    
    .item3 {
        bottom: 100px;
        right: 20px;
    }
}
