/* Lower-page shell + content polish (loads after style.css + home-final.css) */
body.loto6fan-site {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--ink, #24272b) !important;
	background: #fff !important;
	background-image: none !important;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif !important;
	font-size: 100% !important;
	line-height: 1.55 !important;
	text-align: left !important;
}

body.loto6fan-site a {
	color: inherit;
	text-decoration: none;
}

body.loto6fan-site a:hover {
	color: #d66a00;
	text-decoration: none;
}

body.loto6fan-site img {
	max-width: 100%;
	height: auto;
}

/* Layout */
body.loto6fan-site #container.site-container {
	width: min(1180px, calc(100% - 40px));
	max-width: 1180px;
	margin: 0 auto;
	padding: 12px 0 48px;
	background: transparent;
	text-align: left;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 28px 40px;
	align-items: start;
}

body.loto6fan-site .pan,
body.loto6fan-site .psshc-breadcrumb-wrap {
	grid-column: 1 / -1;
	margin: 0;
	padding: 10px 2px 6px;
	font-size: 13px;
	color: #646a70;
	line-height: 1.5;
}

body.loto6fan-site .pan ul,
body.loto6fan-site .psshc-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .2em .15em;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.loto6fan-site .pan li,
body.loto6fan-site .psshc-breadcrumb li {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

body.loto6fan-site .psshc-breadcrumb li:not(:last-child)::after {
	content: ">";
	margin: 0 .45em;
	color: #9aa0a6;
	font-weight: 500;
}

body.loto6fan-site .pan a,
body.loto6fan-site .psshc-breadcrumb a {
	color: #40454a;
	font-weight: 600;
	text-decoration: none;
}

body.loto6fan-site .pan a:hover,
body.loto6fan-site .psshc-breadcrumb a:hover {
	color: #d66a00;
}

body.loto6fan-site .psshc-breadcrumb [aria-current="page"] {
	color: #646a70;
	font-weight: 600;
}

body.loto6fan-site #main {
	float: none !important;
	width: auto !important;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 8px 0 24px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	line-height: 1.6;
}

body.loto6fan-site .site-header {
	position: relative;
	z-index: 1;
}

/* 旧 style.css の「a img { opacity:.8 }」がヘッダーロゴまで薄くするのを打ち消す */
body.loto6fan-site .site-header .brand img,
body.loto6fan-site .site-header a img {
	opacity: 1 !important;
	filter: none !important;
}

/* 追従はメニュー帯のみ（ロゴ＋検索は通常スクロール） */
body.loto6fan-site .main-nav {
	position: sticky;
	top: 0;
	z-index: 200;
	background: #22262a;
	border-bottom: 1px solid #55595d;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

/* body.loto6fan-site a { color: inherit } より優先して白字を確保 */
body.loto6fan-site .main-nav a,
body.loto6fan-site .nav-inner a {
	color: #fff !important;
}

body.loto6fan-site .main-nav a:hover,
body.loto6fan-site .nav-inner a:hover {
	color: #f93 !important;
}

body.loto6fan-site .main-nav a[aria-current],
body.loto6fan-site .nav-inner a[aria-current="page"] {
	color: #f93 !important;
}

body.loto6fan-site #side {
	float: none !important;
	position: sticky;
	top: 56px;
	align-self: start;
	width: auto !important;
	margin: 0;
	padding: 4px 0 24px;
	overflow: visible;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: #333;
	line-height: 1.45;
}

body.loto6fan-site.page-template-onecolumn-page-php #container.site-container,
body.loto6fan-site.page-template-onecolumn-page #container.site-container {
	grid-template-columns: minmax(0, 1fr);
}

/* Headings */
body.loto6fan-site #main h2,
body.loto6fan-site #main .searchpage,
body.loto6fan-site #main .page-title,
body.loto6fan-site #midasji {
	clear: both;
	margin: 8px 0 18px;
	padding: 10px 15px;
	border: 2px solid #f93;
	border-left: 2px solid #f93;
	border-bottom: 2px solid #f93;
	background: #fff !important;
	background-image: none !important;
	box-shadow: 5px 5px 0 #f936;
	color: #333;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.35;
}

body.loto6fan-site #main h3 {
	clear: both;
	margin: 22px 0 10px;
	padding: 0 0 8px 12px;
	border-left: 4px solid #f93;
	border-bottom: 1px solid #eceef1;
	background: none !important;
	color: #24272b;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
}

body.loto6fan-site #main h4,
body.loto6fan-site #main .fold,
body.loto6fan-site .psshc-analysis h4 {
	clear: both;
	margin: 16px 0 8px;
	padding: 0 0 6px 12px;
	border-left: 3px solid #f93;
	border-bottom: 0;
	background: none !important;
	background-image: none !important;
	color: #24272b;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

body.loto6fan-site .psshc-analysis {
	margin: 1.5em 0;
	padding: 1em 1.1em;
	border: 1px solid #e4e6ea;
	border-radius: 10px;
	background: #fafbfc;
}

body.loto6fan-site .psshc-analysis h3 {
	margin-top: 0;
}

body.loto6fan-site #main p {
	padding: 4px 0;
	margin: 0 0 10px;
}

body.loto6fan-site .maintopimg {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 4px 0 16px;
	border-radius: 10px;
}

/* Stats hub intro (dates / loto7dates / minidates / numbers) */
body.loto6fan-site .psshc-hub-intro {
	margin: 0 0 22px;
	padding: 0 0 18px;
	border-bottom: 1px solid #e8eaed;
	color: #40454a;
	font-size: 15px;
	line-height: 1.7;
}

body.loto6fan-site .psshc-hub-intro p {
	margin: 0 0 10px;
	padding: 0;
}

body.loto6fan-site .psshc-hub-intro__lead {
	color: #24272b;
	font-weight: 650;
}

body.loto6fan-site .psshc-hub-intro__note {
	color: #646a70;
	font-size: 13px;
}

/*
 * Legacy float "tables" (.waku / .hiduke / .namber etc.):
 * Unify on the SP fluid % model for PC + mobile (border-box + flex wrap).
 */
body.loto6fan-site #main .waku,
body.loto6fan-site #main .wakumini,
body.loto6fan-site #main .kuti,
body.loto6fan-site #main .waku > div,
body.loto6fan-site #main .wakumini > div,
body.loto6fan-site #main .kuti > div,
body.loto6fan-site #main .namber,
body.loto6fan-site #main .honsuujidate4,
body.loto6fan-site #main .honsuujidate5,
body.loto6fan-site #main .kakuritu,
body.loto6fan-site #main .hiduke,
body.loto6fan-site #main .hiduke1,
body.loto6fan-site #main .hiduke34,
body.loto6fan-site #main .hidu,
body.loto6fan-site #main .hidu1,
body.loto6fan-site #main .honsuji,
body.loto6fan-site #main .honsuji1,
body.loto6fan-site #main .honsuji2,
body.loto6fan-site #main .honsujimini,
body.loto6fan-site #main .honsujimini1,
body.loto6fan-site #main .honsujimini2,
body.loto6fan-site #main .honsuji7,
body.loto6fan-site #main .honsuji71,
body.loto6fan-site #main .honsuji72,
body.loto6fan-site #main .honsuji73,
body.loto6fan-site #main .tou,
body.loto6fan-site #main .toun,
body.loto6fan-site #main .how_m,
body.loto6fan-site #main .how_k,
body.loto6fan-site #main .ko,
body.loto6fan-site #main .konu,
body.loto6fan-site #main [class*="honsujidate"] {
	box-sizing: border-box !important;
}

body.loto6fan-site #main .waku,
body.loto6fan-site #main .wakumini {
	width: 100% !important;
	max-width: 100%;
	margin: 0 0 22px;
	padding: 0;
	border: 1px solid #e4e6ea;
	border-radius: 8px;
	background: #fff;
	overflow: visible;
	text-align: center;
	display: flex;
	flex-wrap: wrap;
}

body.loto6fan-site #main .kuti {
	width: 100% !important;
	display: flex;
	flex-wrap: wrap;
	margin: 0;
}

body.loto6fan-site #main .waku > div,
body.loto6fan-site #main .wakumini > div,
body.loto6fan-site #main .kuti > div {
	float: none !important;
	max-width: 100%;
}

body.loto6fan-site #main .waku > .cr,
body.loto6fan-site #main .wakumini > .cr {
	flex: 0 0 100%;
	width: 100% !important;
	height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
}

/* Meta row: 20 + 30 + 20 + 30 */
body.loto6fan-site #main .hiduke,
body.loto6fan-site #main .hiduke34 {
	flex: 0 0 20%;
	width: 20% !important;
	max-width: 20%;
	padding: 0 !important;
}

body.loto6fan-site #main .hiduke1 {
	flex: 0 0 30%;
	width: 30% !important;
	max-width: 30%;
	padding: 0 !important;
}

body.loto6fan-site #main .hidu {
	flex: 0 0 100%;
	width: 100% !important;
	max-width: 100%;
}

body.loto6fan-site #main .hidu1 {
	flex: 0 0 80%;
	width: 80% !important;
	max-width: 80%;
	min-width: 0;
	padding: 0 !important;
	font-size: clamp(28px, 7vw, 56px) !important;
}

/* Prize: 30 + 35 + 35 / ko spans 70 */
body.loto6fan-site #main .tou,
body.loto6fan-site #main .toun {
	flex: 0 0 30%;
	width: 30% !important;
	max-width: 30%;
	padding: 0 !important;
}

body.loto6fan-site #main .how_k,
body.loto6fan-site #main .how_m {
	flex: 0 0 35%;
	width: 35% !important;
	max-width: 35%;
	padding: 0 10px 0 0 !important;
}

body.loto6fan-site #main .ko,
body.loto6fan-site #main .konu {
	flex: 0 0 70%;
	width: 70% !important;
	max-width: 70%;
	padding: 0 12px 0 0 !important;
}

/* Frequency: 12 + 26 + 31 + 31 */
body.loto6fan-site #main .namber {
	flex: 0 0 12%;
	width: 12% !important;
	max-width: 12%;
}

body.loto6fan-site #main .honsuujidate4 {
	flex: 0 0 26%;
	width: 26% !important;
	max-width: 26%;
}

body.loto6fan-site #main .honsuujidate5,
body.loto6fan-site #main .kakuritu {
	flex: 0 0 31%;
	width: 31% !important;
	max-width: 31%;
}

/* Loto6: 本数字ラベル + 6球で1行、ボーナスは次行 */
body.loto6fan-site #main .honsuji1 {
	flex: 0 0 16%;
	width: 16% !important;
	max-width: 16%;
	padding: 0 !important;
}

body.loto6fan-site #main .honsuji {
	flex: 1 1 0;
	width: auto !important;
	min-width: 0;
	max-width: 14%;
	padding: 0 !important;
}

body.loto6fan-site #main .honsuji2 {
	flex: 1 1 auto;
	width: auto !important;
	min-width: 0;
	max-width: none;
	height: auto !important;
	line-height: 1.25 !important;
	padding: 8px 6px !important;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* MiniLoto: ラベル + 5球 / ボーナス次行 */
body.loto6fan-site #main .honsujimini1 {
	flex: 0 0 18%;
	width: 18% !important;
	max-width: 18%;
	padding: 0 !important;
}

body.loto6fan-site #main .honsujimini {
	flex: 1 1 0;
	width: auto !important;
	min-width: 0;
	max-width: 16.5%;
	padding: 0 !important;
}

body.loto6fan-site #main .honsujimini2 {
	flex: 1 1 auto;
	width: auto !important;
	min-width: 0;
	height: auto !important;
	line-height: 1.25 !important;
	padding: 8px 6px !important;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Loto7: ラベル + 7球 / ボーナス次行 */
body.loto6fan-site #main .honsuji71 {
	flex: 0 0 12%;
	width: 12% !important;
	max-width: 12%;
	padding: 0 !important;
}

body.loto6fan-site #main .honsuji7 {
	flex: 1 1 0;
	width: auto !important;
	min-width: 0;
	max-width: 12.5%;
	padding: 0 !important;
}

body.loto6fan-site #main .honsuji72 {
	flex: 0 0 14%;
	width: 14% !important;
	max-width: 14%;
	height: auto !important;
	line-height: 1.25 !important;
	padding: 8px 4px !important;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.loto6fan-site #main .honsuji73 {
	flex: 1 1 0;
	width: auto !important;
	min-width: 0;
	max-width: 43%;
	padding: 0 !important;
}

/* Sets / list cells: scale with container */
body.loto6fan-site #main [class*="honsujidate"] {
	float: none !important;
	flex: 1 1 auto;
	min-width: 0;
	width: auto !important;
	max-width: 100%;
}

body.loto6fan-site #main .hiduke,
body.loto6fan-site #main .hiduke34,
body.loto6fan-site #main .honsuji1,
body.loto6fan-site #main .honsuji2,
body.loto6fan-site #main .honsujimini1,
body.loto6fan-site #main .honsujimini2,
body.loto6fan-site #main .honsuji71,
body.loto6fan-site #main .honsuji72,
body.loto6fan-site #main .tou,
body.loto6fan-site #main .toun,
body.loto6fan-site #main .namber {
	background-color: #f3f4f6;
}

body.loto6fan-site #main .honsuji,
body.loto6fan-site #main .honsujimini,
body.loto6fan-site #main .honsuji7,
body.loto6fan-site #main .honsuji73 {
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

/* Real HTML tables */
body.loto6fan-site #main table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	margin: 0 0 18px;
	font-size: 14px;
	box-sizing: border-box;
}

body.loto6fan-site #main table th,
body.loto6fan-site #main table td {
	border: 1px solid #e4e6ea;
	padding: 6px 8px;
	box-sizing: border-box;
	vertical-align: middle;
}

body.loto6fan-site #main table th {
	background: #f3f4f6;
	font-weight: 700;
}

/* Numbers detail (shortcode) */
body.loto6fan-site #main .psshc-numbers-table {
	width: 100%;
	max-width: 100%;
	margin: 0 0 22px;
	border: 1px solid #e4e6ea;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	border-collapse: separate;
	border-spacing: 0;
}

body.loto6fan-site #main .psshc-numbers-table caption {
	caption-side: top;
	padding: 12px 14px;
	background: #e8eaed;
	color: #24272b;
	font-size: 17px;
	font-weight: 800;
	text-align: center;
	border-bottom: 1px solid #e4e6ea;
}

body.loto6fan-site #main .psshc-numbers-table th,
body.loto6fan-site #main .psshc-numbers-table td {
	border: 0;
	border-bottom: 1px solid #e4e6ea;
	border-right: 1px solid #e4e6ea;
	padding: 11px 14px;
	vertical-align: middle;
}

body.loto6fan-site #main .psshc-numbers-table tr > *:last-child {
	border-right: 0;
}

body.loto6fan-site #main .psshc-numbers-table tr:last-child > * {
	border-bottom: 0;
}

body.loto6fan-site #main .psshc-numbers-table th {
	width: 28%;
	background: #f3f4f6;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	color: #444;
}

body.loto6fan-site #main .psshc-numbers-table td {
	text-align: center;
	font-weight: 600;
}

body.loto6fan-site #main .psshc-numbers-table__num {
	font-size: clamp(28px, 6vw, 48px);
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.2;
	padding-top: 16px;
	padding-bottom: 16px;
}

body.loto6fan-site #main .psshc-numbers-table__prize {
	text-align: right;
	font-variant-numeric: tabular-nums;
	padding-right: 18px;
}

body.loto6fan-site #main .psshc-freq-table {
	width: 100% !important;
	max-width: 100%;
	margin: 0 0 22px;
}

body.loto6fan-site #main .psshc-freq-tr {
	display: flex;
	flex-wrap: nowrap;
	flex: 0 0 100%;
	width: 100%;
}

body.loto6fan-site #main .psshc-freq-tr > div {
	float: none !important;
	box-sizing: border-box !important;
}

body.loto6fan-site #main .psshc-draw-summary {
	line-height: 1.75;
}

body.loto6fan-site #main .psshc-draw-summary p {
	margin: 0 0 1em;
}

body.loto6fan-site #main .psshc-draw-summary p:last-child {
	margin-bottom: 0;
}

body.loto6fan-site #main .psshc-draw-links {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin: 0 0 22px;
}

body.loto6fan-site #main .psshc-draw-links .psshc-hub-card {
	margin: 0;
}

body.loto6fan-site #main ul,
body.loto6fan-site #main ol {
	margin: 0 0 14px;
	padding-left: 1.25em;
}

body.loto6fan-site #main .prsp1 {
	margin: 12px 0;
	text-align: center;
}

body.loto6fan-site #main .kuti {
	overflow: visible;
}

body.loto6fan-site .gaiyo_loto6,
body.loto6fan-site .gaiyo_loto7,
body.loto6fan-site .gaiyo_miniloto,
body.loto6fan-site .gaiyo_numbers,
body.loto6fan-site .gaiyo {
	width: 100% !important;
	max-width: 100%;
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 1px solid #e4e6ea;
	border-radius: 10px;
	background: #fafbfc;
	box-sizing: border-box;
}

body.loto6fan-site .menu1 {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.loto6fan-site .menu1 li {
	background: none !important;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #eceef1;
}

body.loto6fan-site .menu1 li:last-child {
	border-bottom: 0;
}

body.loto6fan-site .menu1 li a {
	display: block;
	padding: 9px 4px;
	font-weight: 650;
}

body.loto6fan-site .psshc-analysis,
body.loto6fan-site .psshc-random-tool {
	border-color: #e4e6ea !important;
	border-radius: 10px;
	background: #fafbfc !important;
}

body.loto6fan-site .psshc-freq-bar-fill {
	background: linear-gradient(90deg, #ffb05a, #f93) !important;
}

body.loto6fan-site .psshc-freq-heat-leg span {
	background: linear-gradient(90deg, #fff3e6, #f93) !important;
}

body.loto6fan-site .psshc-random-tool button {
	border: 1px solid #3a3f43;
	border-radius: 8px;
	background: linear-gradient(180deg, #4a5158 0%, #32383e 45%, #23282d 100%);
	color: #fff;
	font-weight: 700;
}

/* Sidebar */
body.loto6fan-site #side .side-block {
	margin: 0 0 20px;
	padding: 0;
	border: 0;
}

body.loto6fan-site #side .side-block:last-of-type {
	margin-bottom: 0;
}

body.loto6fan-site #side h2 {
	display: flex;
	align-items: center;
	margin: 0 0 10px;
	padding: 10px 12px;
	min-height: 40px;
	border: 0;
	border-radius: 6px;
	background: #fff3e6 !important;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.3;
	color: #24272b;
	text-transform: none;
}

body.loto6fan-site #side h3 {
	margin: 10px 0 6px;
	padding: 0;
	background: none !important;
	font-size: 13px;
	font-weight: 700;
	color: #646a70;
}

body.loto6fan-site #side .side-nav,
body.loto6fan-site #side .menu3,
body.loto6fan-site #side .menu2,
body.loto6fan-site #side .menu33,
body.loto6fan-site #side .side_list {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.loto6fan-site #side .side-nav li,
body.loto6fan-site #side .menu3 li,
body.loto6fan-site #side .menu2 li,
body.loto6fan-site #side .side_list li {
	background: none !important;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 14px;
}

body.loto6fan-site #side .side-nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 0 9px 8px;
	border-bottom: 1px solid #f0f1f3;
	color: #24272b !important;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.35;
}

body.loto6fan-site #side .side-nav li:last-child a {
	border-bottom: 0;
}

body.loto6fan-site #side .side-nav a b {
	color: #f93;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

body.loto6fan-site #side .side-nav a:hover,
body.loto6fan-site #side .side-latest a:hover,
body.loto6fan-site #side .side-more a:hover {
	color: #d66a00 !important;
}

body.loto6fan-site #side .side-latest {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.loto6fan-site #side .side-latest a {
	display: block;
	padding: 8px 10px;
	border: 1px solid #e8eaed;
	border-radius: 8px;
	background: #fafbfc;
	color: #24272b !important;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

body.loto6fan-site #side .side-latest a:hover {
	border-color: #f93;
	background: #fff8f0;
}

body.loto6fan-site #side .side-more {
	margin: 12px 0 0;
	text-align: right;
	font-size: 13px;
	font-weight: 700;
}

body.loto6fan-site #side .side-more a {
	color: #d66a00 !important;
}

body.loto6fan-site #side .cr {
	display: none;
}

/* Hub card links — match top lottery-links (black base) */
body.loto6fan-site .psshc-hub-card {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 12px;
	padding: 16px 18px;
	border: 1px solid #3a3f43;
	border-radius: 8px;
	background: linear-gradient(180deg, #4a5158 0%, #343a40 50%, #292d31 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
	color: #fff !important;
	text-decoration: none !important;
	transition: background 0.15s ease, transform 0.15s ease;
}

body.loto6fan-site .psshc-hub-card:hover {
	background: linear-gradient(180deg, #5a626a 0%, #3c434a 50%, #2f3439 100%);
	color: #fff !important;
	transform: translateY(-1px);
}

body.loto6fan-site .psshc-hub-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	flex: 1;
}

body.loto6fan-site .psshc-hub-card__title {
	font-size: 16px;
	font-weight: 800;
	line-height: 1.35;
	color: #fff;
}

body.loto6fan-site .psshc-hub-card__desc {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.78);
}

body.loto6fan-site .psshc-hub-card__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: auto;
	height: auto;
	border-radius: 0;
	background: transparent;
	color: #f93;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
}

body.loto6fan-site .psshc-hub-card--compact {
	padding: 12px 14px;
	margin: 0;
}

body.loto6fan-site .psshc-hub-card--compact .psshc-hub-card__title {
	font-size: 14px;
}

body.loto6fan-site .psshc-related-stats {
	margin: 28px 0 8px;
	padding-top: 8px;
}

body.loto6fan-site .psshc-related-stats h3 {
	margin: 0 0 12px !important;
	padding: 0 0 0 12px !important;
	border-left: 4px solid #f93 !important;
	border-bottom: 0 !important;
	background: none !important;
}

body.loto6fan-site .psshc-related-stats__grid,
body.loto6fan-site .psshc-child-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* beginner 等: 旧 #kategori の 600px 固定がコンテナ幅を潰していた */
body.loto6fan-site #main #kategori,
body.loto6fan-site #main .kategori {
	float: none !important;
	width: 100% !important;
	max-width: 100%;
	box-sizing: border-box;
	padding-left: 0;
	padding-right: 0;
	margin-left: 0;
	margin-right: 0;
	background: transparent;
}

/* ul 既定の左パディング＋カード margin が余白・間隔を広げていた */
body.loto6fan-site #main .kategori ul,
body.loto6fan-site #main #kategori ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.loto6fan-site #main .kategori li,
body.loto6fan-site #main #kategori li {
	margin: 0;
	padding: 0;
	background: none !important;
	list-style: none;
}

body.loto6fan-site #main .psshc-child-cards .psshc-hub-card,
body.loto6fan-site #main .psshc-related-stats__grid .psshc-hub-card {
	width: 100%;
	max-width: 100%;
	margin: 0;
	box-sizing: border-box;
}

body.loto6fan-site #main .button a {
	width: auto;
	max-width: 100%;
	box-sizing: border-box;
	margin-left: 0;
	margin-right: 0;
}

body.loto6fan-site .psshc-related-stats .psshc-note {
	margin: 14px 0 0;
	color: #646a70;
	font-size: 13px;
}

/* Legacy looptxt fallback if filter misses */
body.loto6fan-site #main .looptxt {
	margin: 0 0 8px;
	border: 0;
	text-align: left;
	letter-spacing: 0;
}

body.loto6fan-site #main .looptxt a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 0;
	height: auto;
	width: auto;
	padding: 14px 16px;
	border: 1px solid #3a3f43;
	border-radius: 8px;
	background: linear-gradient(180deg, #4a5158 0%, #343a40 50%, #292d31 100%) !important;
	background-image: linear-gradient(180deg, #4a5158 0%, #343a40 50%, #292d31 100%) !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 800;
	line-height: 1.4;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.loto6fan-site #main .looptxt a:hover {
	background: linear-gradient(180deg, #5a626a 0%, #3c434a 50%, #2f3439 100%) !important;
	background-image: linear-gradient(180deg, #5a626a 0%, #3c434a 50%, #2f3439 100%) !important;
	color: #fff !important;
	font-size: 16px !important;
}

body.loto6fan-site #main .gaiyo1 {
	margin: 0 0 16px;
	padding: 0 4px 4px;
	background: transparent;
	color: #646a70;
	font-size: 13px;
}

/* Footer */
body.loto6fan-site .site-footer {
	margin-top: 0;
}

body.loto6fan-site .footer-guide {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	padding: 0 0 16px;
	margin: 0 0 14px;
	border-bottom: 1px solid #3a3f43;
	font-size: 13px;
}

body.loto6fan-site .footer-guide a {
	color: #d7d9db;
	font-weight: 700;
}

body.loto6fan-site .footer-guide a:hover {
	color: #f93;
}

body.loto6fan-site .footer-hub {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	padding: 14px 0 4px;
	margin-top: 10px;
	border-top: 1px solid #3a3f43;
	font-size: 12px;
}

body.loto6fan-site .footer-hub a {
	color: #d7d9db;
	font-weight: 600;
}

body.loto6fan-site .footer-hub a:hover {
	color: #f93;
}

/* Utility leftovers from legacy chrome */
body.loto6fan-site #setumei,
body.loto6fan-site #header,
body.loto6fan-site #topmenu,
body.loto6fan-site #topsearch,
body.loto6fan-site #topads,
body.loto6fan-site #footer,
body.loto6fan-site .pagetop,
body.loto6fan-site .ftli {
	display: none !important;
}

body.loto6fan-site .cr hr {
	display: none;
}

/* Responsive */
@media (max-width: 980px) {
	body.loto6fan-site #container.site-container {
		width: calc(100% - 32px);
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	body.loto6fan-site #main {
		padding: 18px 0 22px;
	}

	body.loto6fan-site #side {
		position: static;
		top: auto;
		order: 3;
	}

	body.loto6fan-site #main h2,
	body.loto6fan-site #main .searchpage,
	body.loto6fan-site #main .page-title,
	body.loto6fan-site #midasji {
		font-size: 19px;
	}

	body.loto6fan-site #main .waku,
	body.loto6fan-site #main .wakumini,
	body.loto6fan-site #main .psshc-freq-table {
		width: 100% !important;
	}

	body.loto6fan-site #main .hiduke,
	body.loto6fan-site #main .hiduke34,
	body.loto6fan-site #main .honsuji1,
	body.loto6fan-site #main .honsuji2,
	body.loto6fan-site #main .honsujimini1,
	body.loto6fan-site #main .honsujimini2,
	body.loto6fan-site #main .honsuji71,
	body.loto6fan-site #main .honsuji72,
	body.loto6fan-site #main .tou,
	body.loto6fan-site #main .toun {
		font-size: 70%;
	}
}

@media (max-width: 720px) {
	body.loto6fan-site #container.site-container {
		width: calc(100% - 32px);
		padding-top: 12px;
	}

	body.loto6fan-site #main {
		padding: 14px 0 22px;
	}

	body.loto6fan-site .main-nav .nav-inner {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	body.loto6fan-site .main-nav .nav-inner a {
		flex: 0 0 auto;
		min-width: 4.6em;
		padding: 12px 10px;
		font-size: 13px;
	}

	body.loto6fan-site #main .psshc-hub-card {
		padding: 16px 16px;
		gap: 12px;
		min-height: 64px;
	}

	body.loto6fan-site #main .psshc-hub-card__title {
		font-size: 15px;
	}

	body.loto6fan-site #main .psshc-hub-card__desc {
		font-size: 12px;
		line-height: 1.45;
	}

	body.loto6fan-site #main .psshc-draw-summary {
		padding: 16px 14px;
		font-size: 15px;
		line-height: 1.7;
	}

	body.loto6fan-site #main .psshc-draw-summary p {
		margin: 0 0 0.85em;
	}

	body.loto6fan-site #side .side-nav a,
	body.loto6fan-site #side .side-latest a {
		min-height: 44px;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	body.loto6fan-site .site-footer {
		padding: 20px 0 28px;
	}

	body.loto6fan-site .footer-guide {
		display: flex;
		flex-direction: column;
		gap: 0;
		padding: 0;
		margin: 0 0 18px;
		border-bottom: 0;
	}

	body.loto6fan-site .footer-guide a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		min-height: 48px;
		padding: 12px 2px;
		border-bottom: 1px solid #3a3f43;
		font-size: 15px;
		font-weight: 700;
		line-height: 1.35;
	}

	body.loto6fan-site .footer-guide a::after {
		content: "›";
		flex: none;
		color: #f93;
		font-size: 22px;
		font-weight: 700;
		line-height: 1;
	}

	body.loto6fan-site .footer-inner {
		display: block;
		padding-top: 4px;
		font-size: 12px;
		color: #b7bbbf;
	}

	body.loto6fan-site .footer-hub {
		gap: 8px 12px;
	}
}
