/**
 * 宿曜占星盤 v2 スタイルシート
 *
 * @package Shukuyo_Senseiban_V2
 * @since 2.0.0
 */

/* コンテナ */
.shukuyo-senseiban-v2-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Canvas */
.shukuyo-canvas-v2 {
    display: block;
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 0 auto;
    touch-action: none; /* タッチ操作の制御 */
    cursor: grab;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shukuyo-canvas-v2:active {
    cursor: grabbing;
}

/* 説明テキスト */
.shukuyo-description-v2 {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.shukuyo-description-v2 h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.shukuyo-description-v2 h4 {
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 16px;
    color: #444;
}

.shukuyo-description-v2 h5 {
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

.shukuyo-description-v2 p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.shukuyo-description-v2 ul {
    margin: 8px 0;
    padding-left: 20px;
}

.shukuyo-description-v2 li {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* 関係性凡例 */
.shukuyo-legend-v2 {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.shukuyo-legend-v2 h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.shukuyo-legend-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.shukuyo-legend-item-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.shukuyo-legend-color-v2 {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .shukuyo-senseiban-v2-container {
        padding: 10px;
    }

    .shukuyo-canvas-v2 {
        max-width: 100%;
    }

    .shukuyo-description-v2,
    .shukuyo-legend-v2 {
        font-size: 13px;
    }

    .shukuyo-legend-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .shukuyo-legend-grid-v2 {
        grid-template-columns: 1fr;
    }
}

/* アクセシビリティ */
.shukuyo-canvas-v2:focus {
    outline: 3px solid #4CAF50;
    outline-offset: 2px;
}

/* ローディング状態 */
.shukuyo-loading-v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    font-size: 16px;
    color: #666;
}

/* エラー状態 */
.shukuyo-error-v2 {
    padding: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    text-align: center;
}
