/* =================================================================
クロス集計用スタイルシート NRI社会情報システム「シルニアス」
================================================================= */
/* レイアウトCSS */
body { background-color: #f4f7f9; font-family: 'Noto Sans JP', sans-serif; color: #333; margin: 0; overflow: hidden; width: 100%; }
header { background-color: #00196E; color: #fff; padding: 0 20px; height: 60px; display: flex; justify-content: space-between; align-items: center; width: 100%; box-sizing: border-box; }
header h1 { margin: 0; font-size: 1.1rem; }

/* ★下側（container）の余白を完全にゼロにして横100%化 */
.container { padding: 0; height: calc(100vh - 60px); display: flex; flex-direction: column; box-sizing: border-box; width: 100%; max-width: none; }

/* ボタンエリアも横いっぱいに広げる（ボタン自体は少し内側に余白を持たせています） */
.controls { display: flex; gap: 8px; padding: 10px 15px; flex-shrink: 0; width: 100%; box-sizing: border-box; }
.mode-btn { flex: 1; padding: 10px; font-weight: bold; border: 2px solid #00196E; background: #fff; color: #00196E; cursor: pointer; border-radius: 6px; }
.mode-btn.active { background: #00196E; color: #fff; }
.download-btn { background-color: #F5A000; color: #00196E; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-weight: bold; }

/* 文字サイズ（絶対変更なし） */
table.pvtTable { font-size: 12pt!important;}

/* ローディング画面 */
#loading-overlay {
position: absolute; top: 0; left: 0; width: 100%; height: 100%;
background: rgba(255,255,255,0.9); z-index: 1000;
display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* ガイドエリアも横100%に */
.scroll-guide-container { display: flex; align-items: center; justify-content: center; background: #fff; border-top: 1px solid #ddd; border-bottom: none; border-left: none; border-right: none; padding: 8px; gap: 10px; flex-shrink: 0; width: 100%; box-sizing: border-box; }
.scroll-arrow { cursor: pointer; padding: 6px 12px; background: #00196E; color: #fff; border-radius: 4px; font-size: 12px; user-select: none; }

/* ★カード枠を完全に左右撤廃して100%化 */
.content-card { background: #fff; border-top: 1px solid #ddd; border-bottom: none; border-left: none; border-right: none; border-radius: 0; flex-grow: 1; overflow: hidden; display: flex; flex-direction: column; position: relative; width: 100%; }

#pivot-output { width: 100%; height: 100%; overflow: auto; cursor: grab; }
#list-output { width: 100%; height: 100%; display: none; overflow: auto; padding: 10px; box-sizing: border-box;}

/* 文字サイズ（絶対変更なし） */
table.pvtTable tbody tr th, table.pvtTable thead tr th{
font-size: 16px!important;
}

/* モーダル関連 */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); }
.modal-content { background: #fff; margin: 5% auto; padding: 30px; width: 90%; max-width: 420px; border-radius: 12px; text-align: center; }
.form-group { text-align: left; margin-bottom: 12px; }
.form-input { width: 100%; padding: 10px; box-sizing: border-box; border: 1px solid #ddd; border-radius: 4px; margin-top: 5px; }

/* プライバシーリンク */
.privacy-links { font-size: 11px; text-align: left; color: #666; margin-top: 15px; padding-left: 20px; border-top: 1px solid #eee; pt: 10px; }
.privacy-links li { margin-bottom: 5px; }
.privacy-links a { color: #00196E; text-decoration: underline; }

@media screen and (min-width: 769px) {
.pvtRowLabel { min-width: 350px !important; max-width: 500px !important; white-space: normal !important; text-align: left !important; padding: 12px !important; line-height: 1.4 !important; }
.pvtRowLabel + .pvtRowLabel { min-width: 140px !important; max-width: 200px !important; }
.pvtVal { min-width: 70px !important; }
}

@media screen and (max-width: 768px) {
.pvtUi { table-layout: fixed !important; width: 100vw !important; display: table !important; }
.pvtRowLabel { width: 100px !important; white-space: normal !important; font-size: 12px !important; word-break: break-all !important; }
.modal-content { margin: 20% auto; padding: 20px; }
}