@charset "UTF-8";

/* ==========================================
   VISUSEC Maintenance Page Styles
   ※ base_style.css の読み込みを前提としています
   ========================================== */

/* --------------------------------------------------
   サブページ用ヘッダー (Hero Sectionの簡易版)
   -------------------------------------------------- */
.sub-page-header {
    background: linear-gradient(135deg, var(--primary-blue, #0056b3) 0%, var(--accent-cyan, #00a8cc) 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

.sub-header-content h1 {
    font-family: var(--font-en, sans-serif);
    font-size: 2em;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sub-header-content p {
    font-family: var(--font-jp, sans-serif);
    margin: 10px 0 0;
    opacity: 0.9;
    font-size: 0.9em;
}

/* 導入文 */
.maintenance-intro {
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 0.95em;
}

/* --------------------------------------------------
   メンテナンスカード
   (app-cardのデザインルールを継承しつつ独自拡張)
   -------------------------------------------------- */
.maintenance-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.maintenance-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* baseのカードと合わせる */
    border: 1px solid #eee;
    padding: 30px;
    margin-bottom: 30px;
    border-top: 5px solid var(--primary-blue, #0056b3); /* デフォルト：予定（青） */
    transition: transform 0.3s, box-shadow 0.3s;
}

.maintenance-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* 状況：作業中（赤） */
.maintenance-card.active {
    border-top-color: #dc3545;
}

/* 状況：完了（グレー） */
.maintenance-card.finished {
    border-top-color: #6c757d;
    background-color: #fafafa;
}

/* カード内ヘッダー */
.m-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
}

.m-title {
    font-size: 1.3rem;
    margin: 0;
    color: var(--text-dark, #333);
    font-weight: bold;
}

/* ステータスバッジ */
.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    background: var(--primary-blue, #0056b3); /* 予定 */
    white-space: nowrap;
}

.maintenance-card.active .status-badge {
    background: #dc3545; /* 作業中 */
    animation: pulse 2s infinite;
}

.maintenance-card.finished .status-badge {
    background: #6c757d; /* 完了 */
}

/* テーブルスタイル */
.m-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.m-table th, .m-table td {
    padding: 15px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.m-table th {
    width: 20%;
    color: #666;
    font-weight: bold;
    background-color: rgba(0,0,0,0.02);
    white-space: nowrap;
    border-radius: 4px;
}

.m-table td {
    color: #333;
    line-height: 1.7;
}

/* 最後の行の下線は消す */
.m-table tr:last-child th,
.m-table tr:last-child td {
    border-bottom: none;
}

/* メッセージエリア（作業中の注意書きなど） */
.m-message {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

/* --------------------------------------------------
   レスポンシブ対応
   -------------------------------------------------- */
@media (max-width: 600px) {
    .sub-page-header {
        padding: 30px 20px;
    }
    
    .m-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .status-badge {
        align-self: flex-start;
    }

    .m-table th, .m-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .m-table th {
        background: transparent;
        padding-bottom: 5px;
        color: var(--primary-blue);
        border-bottom: none;
        margin-top: 15px;
        padding-left: 0;
    }
    
    .m-table tr:first-child th {
        margin-top: 0;
    }
    
    .m-table td {
        padding-top: 0;
        padding-left: 0;
        border-bottom: 1px solid #eee;
    }
}