
/* ベーススタイル */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: black;
    color: #1e293b;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 1em 1em;
    border-radius: 12px;
    /*box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);*/
    box-sizing: border-box;
}
.containerm{
    margin: 0 auto;
    background-color: white;
}

.containerf{
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

}
h1 {
    font-size: 1.5rem;
    /*margin-bottom: 1rem;*/
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    color: #0f172a;
}


.description {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

/* レイアウト */
.grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    min-width: 0;
}

/* グラフエリア */
.chart-wrapper {
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 12px;
    min-width: 0;
    overflow: hidden;          
    width: 100%;
    box-sizing: border-box;  
}

.chart-container {
    position: relative;
    height: 65vh;
    width: 100%;
    display: block; min-width: 0;
}

.button-group {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

button {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.1s;
}

#selectAll { background-color: #dbeafe; color: #1d4ed8; }
#selectAll:hover { background-color: #bfdbfe; }
#deselectAll { background-color: #fee2e2; color: #b91c1c; }
#deselectAll:hover { background-color: #fecaca; }
/* 素材リスト - 下部に横並びで配置 */
.list-wrapper {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    background-color: #f8fafc;
}

.list-title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 12px;
    color: #334155;
}

#materialList {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.1s;
    min-width: fit-content;
}/*
.material-item {
    display: flex;       
    align-items: center;
    cursor: pointer;    
    padding: 6px 12px;
    border-radius: 6px;

    transition: background 0.1s ease;
}*/
.material-item:hover { background-color: #f1f5f9; }

.material-item input {
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin: 0;
}

.material-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.material-name { font-weight: 500; white-space: nowrap; }
.material-tag {
    font-size: 10px;
    background-color: #f1f5f9;
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid #cbd5e1;
    color: #64748b;
}

/* 下部メモ */
.footer-note {
    margin-top: 32px;
    padding: 16px;
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1e40af;
}
.footer-note ul { margin: 8px 0 0 20px; padding: 0; }
#copyright{color: white;text-align: center;}

.table-style { border-collapse: collapse; width: auto; text-align: center;max-width: 500px;}
.table-style th, .table-style td { border: 1px solid #333; word-break: break-all;  }
.table-style th{background-color: antiquewhite; }

/* ナビゲーションコンテナ */
.weapon-nav {
    display: flex;
    flex-wrap: wrap;      
    gap: 8px 8px;         
    padding: 8px;    
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box; 
    background-color: #ddd;
    border-bottom: 1px solid #e2e8f0;
}

/* ナビゲーション内のリンク */
.weapon-nav a {
    display: inline-block;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* ホバー時の挙動 */
.weapon-nav a:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

/* 現在のページ強調用（任意） */
.weapon-nav a.active {
    color: #2563eb;
    background-color: #eff6ff;
}

.black{
    text-align: center;
}

.xpostdiv{text-align: right;}
.xpostbtn{background: #000; color: white; border: none; padding: 3px 14px; border-radius: 9999px; font-weight: bold; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; line-height: 1;}