/* ==================================================================
 * /analysis/ 社内向けアクセス解析ページ（page-analysis.php 専用、2026-10-04）
 * SWELL本体CSSは読み込まない独立ページ。ブランド：ネイビー#004183／コーラル#C63031
 * ================================================================== */

:root {
	--an-navy: #004183;
	--an-coral: #C63031;
	--an-ink: #1f2a37;
	--an-sub: #5b6675;
	--an-line: #dfe4ea;
	--an-bg: #f4f6f9;
	--an-card: #ffffff;
	--an-up: #1a7f4b;
	--an-down: #b42318;
}

*, *::before, *::after { box-sizing: border-box; }

body.an {
	margin: 0;
	background: var(--an-bg);
	color: var(--an-ink);
	font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-text-size-adjust: 100%;
}

.an a { color: var(--an-navy); }

/* ---------- ヘッダー ---------- */
.an-head {
	background: var(--an-navy);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 10;
}
.an-head-in {
	max-width: 1120px;
	margin: 0 auto;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.an-brand { margin: 0; font-size: 12px; letter-spacing: .08em; opacity: .8; }
.an-head h1 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.4; }

.an-tabs { display: flex; background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px; }
.an-tabs a {
	color: #fff;
	text-decoration: none;
	padding: 8px 18px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	white-space: nowrap;
}
.an-tabs a.is-on { background: #fff; color: var(--an-navy); }

/* ---------- 本体 ---------- */
.an-wrap { max-width: 1120px; margin: 0 auto; padding: 20px 16px 48px; }

.an-meta { margin: 0 0 16px; font-size: 15px; }
.an-meta strong { font-size: 18px; }
.an-meta-sub { display: block; font-size: 13px; color: var(--an-sub); }

.an-note, .an-alert {
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
}
.an-note { background: #fff8e6; border: 1px solid #f1d68a; }
.an-alert { background: #fdecec; border: 1px solid #f2b8b5; }
.an-alert ul { margin: 6px 0; padding-left: 1.2em; }

.an-sec {
	background: var(--an-card);
	border: 1px solid var(--an-line);
	border-radius: 12px;
	padding: 20px;
	margin: 0 0 20px;
}
.an-sec h2 {
	margin: 0 0 14px;
	font-size: 19px;
	color: var(--an-navy);
	line-height: 1.5;
}
.an-sec h2 small {
	display: inline-block;
	font-size: 13px;
	font-weight: 500;
	color: var(--an-sub);
	margin-left: 6px;
}

.an-empty { color: var(--an-sub); margin: 0; }
.an-small { font-size: 13px; color: var(--an-sub); margin: 10px 0 0; }
.an-dim { color: #b6bec8; }

/* ---------- まとめカード ---------- */
.an-cards {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}
.an-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }

.an-card {
	border: 1px solid var(--an-line);
	border-radius: 10px;
	padding: 14px;
	background: #fff;
}
.an-card-key { border: 2px solid var(--an-coral); }
.an-card-t { margin: 0; font-size: 14px; font-weight: 700; color: var(--an-sub); }
.an-card-v {
	margin: 2px 0 4px;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}
.an-card-v span { font-size: 15px; margin-left: 3px; font-weight: 500; }
.an-card-v-s { font-size: 28px; }
.an-card-key .an-card-v { color: var(--an-coral); }
.an-card-d { margin: 8px 0 0; font-size: 12px; color: var(--an-sub); line-height: 1.6; }

.an-chg { display: inline-block; font-size: 13px; font-weight: 700; }
.an-chg-up { color: var(--an-up); }
.an-chg-down { color: var(--an-down); }
.an-chg-flat, .an-chg-na { color: var(--an-sub); font-weight: 500; }

/* ---------- グラフ ---------- */
.an-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.an-fig { margin: 0; }
.an-fig figcaption { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.an-chart { width: 100%; height: auto; display: block; }
.an-grid { stroke: #e9edf1; stroke-width: 1; }
.an-axis { font-size: 11px; fill: #7a8594; font-family: inherit; }
.an-bar-partial { opacity: .4; }
.an-bar:hover { opacity: .75; }
.an-mark { stroke: #e0a100; stroke-width: 1.5; stroke-dasharray: 4 3; }
.an-mark-t { font-size: 11px; fill: #a37400; font-weight: 700; font-family: inherit; }

/* ---------- 行動 ---------- */
.an-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.an-act { border: 1px solid var(--an-line); border-radius: 10px; padding: 12px 14px; }
.an-act-t { margin: 0; font-size: 14px; font-weight: 700; color: var(--an-sub); }
.an-act-v { margin: 0; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.an-act-v span { font-size: 14px; margin-left: 2px; font-weight: 500; }

/* ---------- 表 ---------- */
.an-tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.an-tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.an-tbl th {
	text-align: left;
	font-size: 13px;
	color: var(--an-sub);
	font-weight: 700;
	border-bottom: 2px solid var(--an-line);
	padding: 8px 10px;
	white-space: nowrap;
}
.an-tbl td { border-bottom: 1px solid var(--an-line); padding: 10px; vertical-align: top; }
.an-tbl tbody tr:hover { background: #f8fafc; }
.an-tbl .an-r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.an-tbl .an-n { width: 3em; text-align: center; color: var(--an-sub); }
.an-tbl a { text-decoration: none; font-weight: 700; }
.an-tbl a:hover { text-decoration: underline; }
.an-path { display: block; font-size: 12px; color: #8a95a3; word-break: break-all; }

/* ---------- 横棒 ---------- */
.an-hbars { list-style: none; margin: 0; padding: 0; }
.an-hbars li {
	display: grid;
	grid-template-columns: minmax(0, 15em) minmax(0, 1fr) 7.5em;
	align-items: center;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px solid #eef1f4;
	font-size: 15px;
}
.an-hb-bar { background: #eef2f7; border-radius: 4px; height: 14px; overflow: hidden; }
.an-hb-bar i { display: block; height: 100%; background: var(--an-navy); border-radius: 4px; }
.an-hb-bar i.an-coral { background: var(--an-coral); }
.an-hb-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-hb-v small { color: var(--an-sub); font-weight: 500; }

/* ---------- もっと詳しく ---------- */
.an-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.an-btn {
	display: block;
	border: 1px solid var(--an-navy);
	border-radius: 10px;
	padding: 14px 16px;
	text-decoration: none;
}
.an-btn:hover { background: #f0f5fb; }
.an-btn strong { display: block; font-size: 16px; }
.an-btn span { display: block; font-size: 13px; color: var(--an-sub); }

.an-foot { font-size: 12px; color: var(--an-sub); padding: 4px 4px 0; }
.an-foot p { margin: 0 0 6px; }

/* ---------- パスワード画面 ---------- */
body.an-lock { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 16px; }
.an-lockbox {
	background: #fff;
	border: 1px solid var(--an-line);
	border-radius: 12px;
	padding: 28px 24px;
	width: 100%;
	max-width: 420px;
}
.an-lockbox .an-brand { color: var(--an-sub); }
.an-lockbox h1 { margin: 2px 0 10px; font-size: 22px; color: var(--an-navy); }
.an-lockbox p { font-size: 14px; }
.an-lockbox form p { margin: 10px 0; }
.an-lockbox label { display: block; font-size: 14px; }
.an-lockbox input[type="password"] {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 12px;
	font-size: 16px;
	border: 1px solid #c4ccd6;
	border-radius: 8px;
}
.an-lockbox input[type="submit"] {
	width: 100%;
	padding: 12px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: var(--an-navy);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	font-family: inherit;
}

/* ---------- スマホ ---------- */
@media (max-width: 960px) {
	.an-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.an-card-key { grid-column: 1 / -1; }
	.an-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.an-charts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.an-head h1 { font-size: 17px; }
	.an-tabs { width: 100%; }
	.an-tabs a { flex: 1; text-align: center; padding: 8px 6px; }
	.an-sec { padding: 16px 14px; }
	.an-card-v { font-size: 28px; }
	.an-cards-2, .an-links { grid-template-columns: 1fr; }
	.an-hbars li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
	.an-hb-bar { grid-column: 1 / -1; grid-row: 2; }
	.an-tbl { font-size: 14px; }
	.an-tbl th, .an-tbl td { padding: 8px 6px; }
	.an-hide-sp { display: none; }
	.an-axis, .an-mark-t { font-size: 20px; }
}
.an-lockbox form > p:first-child { display: none; }
