@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@900&display=swap&text=市区町村人口ランキングラボ');

/*****************************************
Theme Name: BunnyPress child
Template: bnp
Author: Yossy's web service
Author URI: https://yws.tokyo/
Version: 1.0.5
******************************************/

html {
  scroll-behavior: smooth;
}

.bnp_header_wrap{
	border:none;
}
.sitename a{
	font-size:18px;
	color:#333!important;
	font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 900;
}

:root {
	--yws-border: #e1e1e1;
	--yws-border-soft: #e5e7eb;
	--yws-text: #333;
	--yws-text-soft: #555;
	--yws-text-light: #666;
	--yws-bg: #fff;
	--yws-bg-soft: #f8fafc;
	--yws-bg-head: #f5f7fb;
	--yws-radius-sm: 8px;
	--yws-radius-md: 12px;
	--yws-radius-lg: 14px;
	--yws-shadow-popup: 0 12px 24px rgba(0, 0, 0, 0.12);
}

@media (min-width: 1400px) {
    main #main {
		max-width: 1600px;
		margin: 0 auto;
    }
	main .inbody {
	    padding:15px 15px 0;
		justify-content: end;
	}
}

#sidebar{
	position: sticky;
	top:50px;
	flex-shrink: 0;
}



/* 共通 */
.yws-description {
	margin: -15px 0 15px;
	line-height:1.8;
}
.yws-description strong{
	font-size:1.2em;
}
.yws-description-change {
	margin-top: 0;
	color: var(--yws-text-soft);
}
p strong{
	background: linear-gradient(transparent 60%, #fde1e5 60%);
	font-size:1.2em;
}
.yws-lead {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 1.9;
}

.yws-section-box,
.yws-rate-card,
.yws-overview-chart-box,
.yws-ranking-card {
	border: 1px solid var(--yws-border);
	border-radius: var(--yws-radius-sm);
	background: var(--yws-bg);
}

.yws-note-box{
	padding: 16px 20px;
	border: 1px solid var(--yws-border-soft);
	border-radius: var(--yws-radius-md);
	background: var(--yws-bg-soft);
}

.yws-grid-2,
.yws-gap-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.yws-grid-3,
.yws-rate-grid,
.yws-ranking-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.yws-card-title,
.yws-rate-label,
.yws-ranking-card-title {
	margin: 0 0 10px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--yws-text);
}

.yws-rate-judge,
.yws-ranking-card-comment {
	font-size: 13px;
	color: var(--yws-text-light);
}
.yws-notice{
	font-size:13px;
}
/* rate */
.yws-rate-grid {
	margin: 0 0 24px;
	gap: 12px;
}

.yws-rate-card,.yws-ranking-card{
	position: relative;
	padding: 16px;
}

.is-young {
	background: #f6fbf2;
	border-color: #d8e8c8;
}

.is-working {
	background:#f8f9ff;
	border-color: #cfe0f8;
}

.is-old {
	background: #fffaf0;
	border-color: #f0d6c7;
}

.is-index {
	background: #f8f8f8;
	border-color: #dddddd;
}
.is-men .yws-ranking-card-title{
	color: #77f;
}
.is-women .yws-ranking-card-title{
	color: #f66;
}
.yws-rate-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 8px;
}

.yws-rate-label,.yws-ranking-card-title{
	font-size: 15px;
	padding: 0;
	background: none;
	box-shadow: none;
}

.yws-rate-value,.yws-ranking-card-rankline{
	font-size: 28px;
	font-weight: 700;
	line-height: 1.3;
}
.yws-ranking-card-rankline{
	font-size: 24px;
	padding-left:35px;
	position:relative;
}
.yws-ranking-card-rankline:before{
	content:"";
	position:absolute;
	left:0;
	top:50%;
	transform:translateY(-50%);
	width:30px;
	height:30px;
	mask:url(https://jinkolab.com/wp-content/uploads/2026/05/torphy.png) left center / 30px 30px no-repeat;
}
.is-rank-1 .yws-ranking-card-rankline,.is-rank-2 .yws-ranking-card-rankline,.is-rank-3 .yws-ranking-card-rankline{
	
	padding-left:45px;
}
.is-rank-1 .yws-ranking-card-rankline:before,.is-rank-2 .yws-ranking-card-rankline:before,.is-rank-3 .yws-ranking-card-rankline:before{
	width:40px;
	height:40px;
	mask:url(https://jinkolab.com/wp-content/uploads/2026/05/torphy.png) left center / 40px 40px no-repeat;
}
.is-rank-1 .yws-ranking-card-rankline:before{
	background-color:#ffd400;
}
.is-rank-2 .yws-ranking-card-rankline:before{
	background-color:#ccc;
}
.is-rank-3 .yws-ranking-card-rankline:before{
	background-color:#e05f00;
}
.is-rank-high .yws-ranking-card-rankline:before{
	background-color:#a3a35b;
}
.is-rank-mid .yws-ranking-card-rankline:before{
	background-color:#997968;
}
.is-rank-low .yws-ranking-card-rankline:before{
	background-color:#666;
}
.yws-ranking-card-rankline span{
	font-size:14px;
	font-weight:normal;
	margin-left:5px;
}
.yws-rate-judge {
	margin: 10px 0 0;
}

/* info */
.yws-info-toggle {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border: 1px solid #bbb;
	border-radius: 50%;
	background: #fff;
	color: #555;
	font-size: 13px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	cursor: pointer;
	padding: 0;
}

.yws-info-popup {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 20;
	width: min(320px, calc(100vw - 40px));
	padding: 14px 16px;
	border: 1px solid #d9d9d9;
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--yws-shadow-popup);
	font-size: 13px;
	line-height: 1.8;
	color: var(--yws-text-soft);
}

.yws-info-popup p {
	margin: 0;
}

/* overview */
.yws-overview-layout {
	display: grid;
	grid-template-columns: minmax(320px, 420px) 1fr;
	gap: 20px;
	align-items: start;
	margin: 30px 0 24px;
}

.yws-overview-chart-box {
	padding: 18px;
}

.yws-pie-wrap {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 18px;
	align-items: center;
}

.yws-pie-chart {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: conic-gradient(
		#8bc34a 0 calc(var(--young) * 1%),
		#6ea8fe calc(var(--young) * 1%) calc((var(--young) + var(--working)) * 1%),
		#f29b77 calc((var(--young) + var(--working)) * 1%) 100%
	);
	flex: 0 0 180px;
}

.yws-pie-legend {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.9;
}

.yws-pie-legend li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	white-space: nowrap;
}

.yws-legend-color {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex: 0 0 12px;
}

.yws-legend-color.is-young { background: #8bc34a; }
.yws-legend-color.is-working { background: #6ea8fe; }
.yws-legend-color.is-old { background: #f29b77; }

.yws-overview-box {
	margin: 0;
	padding: 20px;
	border: 2px dashed #ccc;
	position: relative;
	border-radius: var(--yws-radius-sm);
	background: var(--yws-bg);
	min-height: 140px;
}

.yws-overview-box h3 {
	position: absolute;
	top: -12px;
	left: 20px;
	margin: 0;
	padding: 0 0.5em;
	background-color: #fff;
	font-size: 16px;
	font-weight: bold;
	box-shadow: none;
}

/* table */
.yws-city-table,
.yws-compare-table {
	width: 100%;
	margin: 0 0 20px;
	border-collapse: collapse;
	font-size: 15px;
	table-layout: fixed;
}

.yws-city-table thead th,
.yws-compare-table thead th {
	padding: 12px;
	background: var(--yws-bg-head);
	border: 1px solid #d9e0ea;
	text-align: center;
}

.yws-city-table tbody th,
.yws-compare-table tbody th {
	padding: 12px;
	background: #fafafa;
	border: 1px solid var(--yws-border);
	text-align: left;
	white-space: nowrap;
}

.yws-city-table tbody td,
.yws-compare-table tbody td {
	padding: 12px;
	border: 1px solid var(--yws-border);
	text-align: right;
	background: var(--yws-bg);
	white-space:nowrap;
}

.yws-city-table .is-male {
	background: #eef6ff;
}

.yws-city-table .is-female {
	background: #fff1f5;
}

/* gap */
.yws-gap-grid {
	margin: 24px 0 28px;
	gap: 24px;
}

.yws-gap-card h3 {
	margin: 0 0 12px;
}

.yws-gap-list,
.yws-gap-list li,
.yws-city-index-nav-list,
.yws-city-index-list,
.bnp_indexlist,
.yws-ranking-list{
	list-style: none !important;
}

.yws-gap-list {
	margin: 15px 0 0;
	padding: 0 !important;
}

.yws-gap-list li{
	padding: 15px 10px 15px 0;
	border-top: 1px solid #aac1e0;
	position:relative;
}

.yws-gap-grid-single .yws-gap-list{
	margin: 0 0 28px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap:0 24px;
}

.yws-gap-list li:first-child,.yws-gap-grid-single .yws-gap-list li:nth-child(2){
	border-top: 0;
}
.yws-population-comparison .yws-gap-card h3,.yws-similar-cities .yws-gap-card h3{
    background:#e7eb9f;
}
.yws-population-comparison .yws-gap-card:nth-child(2n) h3,.yws-similar-cities .yws-gap-card:nth-child(2n) h3{
    background: #bbe8e9;
}
.yws-gap-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.yws-similar-cities .yws-gap-row {
	padding-left:20px;
}
.yws-gap-label {
	margin: 0;
	padding: 0;
	font-size: 16px;
}

.yws-gap-value {
	font-size: 24px;
	flex: 0 0 auto;
	font-weight: 700;
}

.yws-gap-item.is-plus .yws-gap-value,.yws_population_change.is-plus{ color: #c96a14; }
.yws-gap-item.is-minus .yws-gap-value,.yws_population_change.is-minus{ color: #2f6fc4; }
.yws-gap-item.is-even .yws-gap-value { color: #666; }

.yws-gap-meta {
	font-size: 13px;
	color: #777;
}

.yws-gap-chart-section h3 {
	margin: 0 0 14px;
	font-size: 17px;
}

.yws-similar-cities .yws-gap-list{
	counter-reset: number; 
}
.yws-similar-cities .yws-gap-list li::before {
	content: counter(number) ". "; 
  counter-increment: number;
	position:absolute;
	top:13px;
	left:0;
	font-size:18px;
	color:#000;
}

/* chart */
.yws-chart-box{
	padding:15px;
}
.yws-chart-box canvas {
	width: 100% !important;
	height: 360px !important;
}

/* diff toggle */
.yws-th-with-toggle {
	white-space: nowrap;
}

.yws-table-diff-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 25px;
	height: 25px;
	margin-right: 6px;
	border: 1px solid #cfd8e3;
	border-radius: 999px;
	background: #fff;
	color: #64748b;
	font-size: 14px;
	line-height: 1;
	font-weight: 700;
	cursor: pointer;
	vertical-align: middle;
	transition: all .2s ease;
}

.yws-table-diff-toggle:hover {
	background: #f8fafc;
	border-color: #b9c7d8;
	color: #334155;
}

.yws-table-diff-toggle[aria-expanded="true"] {
	background: #eef5ff;
	border-color: #bfd4f3;
	color: #2f6fc4;
}

.yws-th-label,
.yws-table-main-value {
	display: inline-block;
	vertical-align: middle;
}

.yws-table-diff-badge {
	display: none;
	margin-left: 8px;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 11px;
	line-height: 1.4;
	font-weight: 700;
	vertical-align: middle;
	white-space: nowrap;
}

.yws-compare-table-wrap[data-diff-visible="true"] .yws-table-diff-badge {
	display: inline-block;
}

.yws-table-diff-badge.is-plus {
	color: #c96a14;
	background: #fff1e8;
}

.yws-table-diff-badge.is-minus {
	color: #2f6fc4;
	background: #eef5ff;
}

.yws-table-diff-badge.is-even {
	color: #666;
	background: #f1f1f1;
}

/* 一覧 */
.yws-city-index-nav-list {
	list-style: none;
	margin: 0 0 30px;
	padding: 0!important;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.yws-city-index-nav-item {
	margin: 0;
	padding: 0;
}

.yws-city-index-nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 54px;
	padding:5px 12px 7px;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	color: inherit;
	text-decoration: none!important;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
	
}

.yws-city-index-nav-link:hover,
.yws-city-index-nav-link:focus {
	border-color: #93c5fd;
	background: #eff6ff;
	color: inherit;
	text-decoration: none;
}



.yws-city-index-group {
	scroll-margin-top: 24px;
}

.yws-city-index-group-title {
	margin:35px 0 15px;
	background:none;
	box-shadow:none;
	padding:0 0 5px 10px;
	border-left:10px solid rgba(93,146,211,.4);
	border-radius:0;
}

.yws-city-index-list {
	padding: 0!important;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}


.yws-city-index-link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	min-height: 72px;
	padding: 12px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	color: inherit;
	text-decoration: none!important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.yws-pref-ranking-button,
.yws-city-index-link,
.yws-related-links_link{
	position: relative;
	padding-right: 32px!important;
}

.yws-pref-ranking-button::after,
.yws-city-index-link::after,.yws-related-links_link:after {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 0;
	height: 0;
	transform: translateY(-50%);
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 7px solid #99ccff;
}
.yws-city-index-link:hover,
.yws-city-index-link:focus {
	border-color: #93c5fd;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	transform: translateY(-1px);
	text-decoration: none;
}

.yws-city-index-link.is-disabled {
	cursor: default;
}

.yws-city-index-name {
	font-weight: 700;
	line-height: 1.5;
}

.yws-city-index-yomi {
	font-size: 13px;
	line-height: 1.5;
	color: #6b7280;
}

@media (max-width: 1023px) {
	.yws-city-index-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
.yws-pref-ranking-button, .yws-city-index-link,.yws-related-links_link{
    padding-right: 22px!important;
}
 .yws-city-index-link::after,.yws-related-links_link:after{
	 right: 8px;
}
}


/* ranking */

.yws-ranking-block + .yws-ranking-block {
	margin-top:18px;
}

.yws-ranking-subblock + .yws-ranking-subblock {
	margin-top: 18px;
}

.yws-ranking-grid-total {
	grid-template-columns: 1fr;
}
.yws-ranking-tabs{
	border-top:2px solid #ccc;
	position:relative;
	margin-top:60px;
}
.yws-ranking-tabs > .yws-subsection-title {
	position:absolute;
	top:-46px;
	left:200px;
	padding:0;
	margin:0;
	box-shadow:none;
}
.yws-ranking-tabs > .yws-subsection-title > label{
	display:block;
	color: #fff;
	background:#ccc;
	border: 2px solid #ccc;
	border-bottom:none;
	padding: 10px 15px;
	border-radius:7px 7px 0 0;
	font-weight: 700;
	font-size:20px;
	cursor:pointer;
	transition:.3s
}
.yws-ranking-tabs > .yws-subsection-title > label:hover{
	color:inherit;
}
.yws-ranking-tabs > #yws-ranking-tab-national +h3{
	left:15px;
}
.yws-ranking-tab-panel-national h4:after{
	background:#9feaeb;
}
.yws-ranking-tab-panel-pref h4:after{
	background:#e7eb9f;
}
.yws-ranking-tabs > input[type="radio"],.yws-ranking-tab-panels .yws-ranking-tab-panel ,.yws-gap-label:after,.yws-ranking-card-title:after{
	display: none;
}

#yws-ranking-tab-pref:checked ~ .yws-subsection-title label[for="yws-ranking-tab-pref"],
#yws-ranking-tab-national:checked ~ .yws-subsection-title label[for="yws-ranking-tab-national"]{
	color: #333;
	background: #fff;
	cursor:unset;
}

#yws-ranking-tab-pref:checked ~ .yws-ranking-tab-panels .yws-ranking-tab-panel-pref {
	display: block;
}

#yws-ranking-tab-national:checked ~ .yws-ranking-tab-panels .yws-ranking-tab-panel-national {
	display: block;
}

.yws-similar-distance,.yws-similar-diff{
	color:#c00;
	font-weight:bold;
}
.yws-population-pref-ranking .yws-gap-value{
	font-size:inherit;
}
.yws-pref-ranking-button {
	display:flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width:320px;
	margin:5px auto 15px;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius:99px;
	background: #f8fafc;
	color: #0f172a;
	text-decoration: none!important;
	font-weight: 700;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.yws-pref-ranking-button:hover,
.yws-pref-ranking-button:focus {
	background: #eff6ff;
	border-color: #93c5fd;
	transform: translateY(-1px);
	text-decoration: none;
}



/* pref-ranking */
.yws-ranking-lead{
	margin:0 0 1.2em;
	line-height:1.9;
	color:#444;
}
.yws-ranking-note{
	font-size:.85em;
	margin:0 0 20px;
	line-height:1.5;
}
.yws-ranking-list{
	margin:0;
	padding:0!important;
}

.yws-ranking-item{
	padding:1.5em 0;
	border-bottom:1px solid #e7e7e7;
}
.yws-ranking-item:last-child {
    border: none;
}
.yws-ranking-main{
	display:flex;
	flex-wrap:wrap;
	align-items:baseline;
	gap:.6em 1em;
	font-size:1.2em;
}

.yws-ranking-rank{
	font-weight:700;
	color:#333;
}

.yws-ranking-name{
	font-size:1.15em;
	font-weight:700;
}
.yws-ranking-population{
	font-size:13px;
	color:#7a7a7a;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
}
.yws-ranking-value{
	margin-left:auto;
	font-weight:700;
}
.yws-pop-bar-wrap{
	margin:15px 0 0;
	width:100%;
}
.yws-pop-bar{
	display:flex;
	width:100%;
	height:40px;
	border-radius:4px;
	overflow:hidden;
}
.yws-pop-seg{
	display:flex;
	align-items:center;
	justify-content:center;
	min-width:0;
	overflow:hidden;
	position:relative;
}
.yws-pop-seg + .yws-pop-seg{
	box-shadow:inset 1px 0 0 rgba(255,255,255,0.6);
	opacity:.5;
}
.yws-pop-young{
	background:#8bc34a;
	color:#fff;
}
.yws-pop-working{
	background:#6ea8fe;
	color:#fff;
}
.yws-pop-old{
	background:#f29b77;
	color:#fff;
}
.yws-pop-unknown{
	background:#d9d9d9;
	color:#fff;
}
.yws-pop-seg-label{
	padding:0 6px;
	font-size:12px;
	font-weight:700;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
}
.yws-related-links_item.is-summary{
  grid-column: 1 / -1;
}
.yws-related-links{
	display: grid;
  grid-template-columns: 1fr 1fr; 
	gap:15px;
	margin:0 0 30px;
}

.yws-related-links_link{
	display:grid;
	grid-template-columns:40px minmax(0,1fr);
	align-items:center;
	column-gap:14px;
	padding:16px 18px;
	border:1px solid #e6eaf0;
	border-radius:14px;
	box-shadow:0 1px 2px rgba(0,0,0,.03);
	text-decoration:none!important;
	transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
	height:100%;
}

.yws-related-links_link:hover{
	transform:translateY(-2px);
	box-shadow:0 8px 20px rgba(0,0,0,.08);
	border-color:#d7deea;
}

.yws-related-links_link:focus-visible{
	outline:2px solid #6ea8fe;
	outline-offset:2px;
}

.yws-related-links_item.is-summary .yws-related-links_link{
	background:#fbfdff;
}

.yws-related-links_item.is-ranking .yws-related-links_link{
	background:#fffdfa;
}

.yws-related-links_icon{
	display:flex;
	align-items:center;
	justify-content:center;
	width:40px;
	height:40px;
	border-radius:12px;
	flex:0 0 40px;
}

.yws-related-links_item.is-summary .yws-related-links_icon{
	color:#6c8fb8;
	background:#eef5fc;
}

.yws-related-links_item.is-ranking .yws-related-links_icon{
	color:#b18657;
	background:#fdf1e4;
}

.yws-related-links_item.is-age-band .yws-related-links_link{
	background:#f8fbf4;
}

.yws-related-links_item.is-age-band .yws-related-links_link:hover{
	border-color:#d5e2c4;
}

.yws-related-links_item.is-age-band .yws-related-links_icon{
	color:#7a9438;
	background:#edf3e2;
}

.yws-related-links_item.is-demographic .yws-related-links_link{
	background:#f3faf8;
}

.yws-related-links_item.is-demographic .yws-related-links_link:hover{
	border-color:#b8dfd4;
}

.yws-related-links_item.is-demographic .yws-related-links_icon{
	color:#3d8f7a;
	background:#e3f4ef;
}

.yws-related-links_item.is-age-band .yws-related-links_title-label::before{
	content:' ';
	white-space:pre;
}

.yws-related-links_icon svg{
	display:block;
	width:22px;
	height:22px;
}

.yws-related-links_body{
	display:grid;
	grid-template-rows:auto auto;
	min-width:0;
}

.yws-related-links_title{
	margin:0 0 4px;
	color:#1f2937;
	font-size:1.1em;
	font-weight:700;
}

.yws-related-links_desc{
	display:block;
	color:#5b6472;
	font-size:.9em;
}
.yws-index-bar-wrap{
	margin-top:10px;
}

.yws-index-bar-head{
	margin:0 0 8px;
	font-size:12px;
	color:#666;
	line-height:1.6;
}

.yws-index-bar-group{
	display:grid;
	gap:8px;
	margin:15px 0 0;
}

.yws-index-row{
	display:grid;
	grid-template-columns:72px minmax(0,1fr);
	align-items:center;
	gap:10px;
}

.yws-index-label{
	font-size:12px;
	font-weight:700;
	color:#555;
	line-height:1.4;
}

.yws-index-bar{
	position:relative;
	height:28px;
	border-radius:999px;
	background:#eef3f8;
	overflow:hidden;
}

.yws-index-fill{
	display:flex;
	align-items:center;
	justify-content:flex-end;
	height:100%;
	min-width:36px;
	padding:0 10px;
	border-radius:999px;
	overflow:hidden;
	white-space:nowrap;
}

.yws-index-fill-label{
	font-size:12px;
	font-weight:700;
	line-height:1;
}

.yws-index-working-base{
	background:#6ea8fe;
	color:#fff;
}

.yws-index-young{
	background:#8bc34a;
	color:#fff;
}

.yws-index-old{
	background:#f29b77;
	color:#fff;
}

.yws-total-bar-wrap{
	margin:15px 0 0;
}

.yws-total-bar{
	position:relative;
	height:34px;
	border-radius:999px;
	background:#edf2f7;
	overflow:hidden;
}

.yws-total-bar-fill{
	display:flex;
	align-items:center;
	min-width:0;
	height:100%;
	padding:0 10px;
	border-radius:999px;
	background:linear-gradient(90deg,#5b8def 0%,#7aa8ff 100%);
	color:#fff;
	font-size:12px;
	font-weight:700;
	line-height:1;
	white-space:nowrap;
	overflow:hidden;
}

.yws-total-bar.yws-total-bar-split{
	display:flex;
}

.yws-total-bar.yws-total-bar-split .yws-total-bar-fill{
	justify-content:center;
	padding:0 8px;
	border-radius:0;
}

.yws-total-bar.yws-total-bar-split .yws-total-bar-fill:first-child{
	border-radius:999px 0 0 999px;
}

.yws-total-bar.yws-total-bar-split .yws-total-bar-fill:last-child{
	border-radius:0 999px 999px 0;
}

.yws-total-bar-fill-male{
	background:linear-gradient(90deg,#5b8def 0%,#7aa8ff 100%);
	color:#fff;
}

.yws-total-bar-fill-female{
	background:linear-gradient(90deg,#f3a6cc 0%,#efaccf 100%);
	color:#fff;
}


.yws-total-bar-label{
	display:block;
	min-width:0;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
}

.yws-top5,.yws-low5{
    color: #c30;
    font-size: 1.1em;
    font-weight: bold;
}
.yws-low5{
    color: #03c
}
.bnp_bc_cover{
	position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid #ddd;
}
.bnp_bc {
    line-height: 1.3em;
    font-size: .85em;
}
@media (max-width: 640px){
	.yws-total-bar{
		height:30px;
	}
	.yws-total-bar-fill{
		font-size:11px;
		padding:0 8px;
	}
	.yws-ranking-population{
		display:none;
	}
	.yws-related-links{
	display: grid;
  grid-template-columns:1fr; 
	gap:15px;
}
	.yws-related-links_link{
		grid-template-columns:34px minmax(0,1fr);
		column-gap:12px;
		padding:14px 14px;
		border-radius:12px;
	}

	.yws-related-links_icon{
		width:34px;
		height:34px;
		flex-basis:34px;
	}

	.yws-related-links_icon svg{
		width:19px;
		height:19px;
	}

	.yws-related-links_item.is-age-band .yws-related-links_title-lead,
	.yws-related-links_item.is-age-band .yws-related-links_title-label{
		display:block;
	}

	.yws-related-links_item.is-age-band .yws-related-links_title-label::before{
		content:none;
	}

	.yws-ranking-main{
		font-size:1em;
    gap:.6em;
	}

}



/* responsive */
@media (max-width: 991px) {
	.yws-rate-grid,
	.yws-ranking-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yws-overview-layout,
	.yws-gap-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.yws-rate-grid,
	.yws-ranking-grid,
	.yws-grid-2,
	.yws-grid-3 {
		grid-template-columns: 1fr;
	}

	.yws-info-popup {
		left: 0;
		right: auto;
		width: calc(100vw - 56px);
	}
	.yws-pie-wrap {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.yws-pie-legend {
		width: 100%;
	}

}

@media (max-width: 480px) {
	.yws-city-table,
	.yws-compare-table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}
}

@media (min-width:961px){
.header_navi {
    display: flex;
    align-items: center;
}
.site-last-updated {
    flex-shrink: 0;
    width: 15em;
    line-height: 1;
    background: #eee;
    padding: 10px 1em;
    border-radius: 10px;
    color: #000;
	margin-left: 10px;
}
.headermenublock ul.navi li a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: .4em;
	padding: 15px 10px;
}

.headermenublock ul.navi li a::before {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 6px solid currentColor;
	opacity: .45;
	flex: 0 0 auto;
}
}

@media (max-width:960px){
p.site-last-updated {
    padding: 15px;
    text-align: right;
}
}