/* 共起ネットワーク描画エリアのモダンなスタイル */

/* ネットワーク図のコンテナ */
#mynetwork {
    width: 100%;
    height: 70vh; /* 画面の高さの70%を使用 */
    min-height: 500px;
    border: none;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* 柔らかい影 */
    margin-bottom: 24px;
    position: relative;
    overflow: hidden; /* 角丸を効かせるため */
}

/* コントロールパネルエリア */
.controls {
    margin-bottom: 24px;
    padding: 20px 24px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-left: 5px solid #007bff; /* アクセントカラー */
}

.controls label {
    font-weight: 600;
    color: #444;
    white-space: nowrap;
}

/* プルダウンのモダン化 */
.controls select {
    width: auto;
    min-width: 320px;
    max-width: 100%;
    margin-bottom: 0;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 15px;
    color: #333;
    transition: all 0.2s ease;
    cursor: pointer;
    appearance: none; /* デフォルトの矢印を消す（必要なら背景画像で追加するが今回はシンプルに） */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.controls select:hover {
    border-color: #b0b0b0;
    background-color: #fff;
}

.controls select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* ローディングオーバーレイ（グラフ内用） */
#graph-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 24px 40px;
    border-radius: 50px; /* 丸みを帯びた形状 */
    display: none;
    font-weight: 600;
    color: #007bff;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    letter-spacing: 0.05em;
}

/* 注釈エリア */
.notes {
    background-color: #f8fbff; /* 薄い青系に変更 */
    border: none;
    border-left: 5px solid #007bff;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.notes ul li {
    margin-bottom: 6px;
}

.notes strong {
    color: #0056b3;
}

/* レスポンシブ対応 */
@media screen and (max-width: 600px) {
    #mynetwork {
        height: 50vh;
        min-height: 400px;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .controls select {
        width: 100%;
        min-width: 0;
    }
}
