/*
Theme Name: 100tokyo
Theme URI: https://baidu.tokyo/
Author: loveapple
Description: Mobile-first news and analysis theme for 100°東京.
Version: 1.0.0
Text Domain: 100tokyo
Requires at least: 6.0
Requires PHP: 7.3
*/

:root {
	--t100-red: #e1262f;
	--t100-red-dark: #b91f27;
	--t100-ink: #17191c;
	--t100-copy: #353a40;
	--t100-muted: #777e86;
	--t100-line: #e7e9ec;
	--t100-soft: #f6f7f8;
	--t100-paper: #fff;
	--t100-green: #176b58;
	--t100-gold: #8a6819;
	--t100-blue: #235f9c;
	--t100-width: min(1140px, calc(100vw - 24px));
	--t100-feed: 760px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--t100-paper);
	color: var(--t100-copy);
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans CJK JP", "Noto Sans CJK SC", Meiryo, sans-serif;
	font-size: 15px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--t100-red-dark);
}

img,
iframe,
video {
	max-width: 100%;
}

img {
	height: auto;
}

button,
input {
	font: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	background: #fff;
	color: var(--t100-ink);
}

:focus-visible {
	outline: 3px solid rgba(225, 38, 47, 0.35);
	outline-offset: 2px;
}

.t100-header {
	position: sticky;
	top: 0;
	z-index: 40;
	border-bottom: 1px solid var(--t100-line);
	background: rgba(255, 255, 255, 0.98);
}

.t100-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: var(--t100-width);
	min-height: 52px;
	margin-inline: auto;
	gap: 12px;
}

.t100-brand {
	display: flex;
	align-items: baseline;
	min-width: 0;
	gap: 8px;
	line-height: 1;
}

.t100-brand-main {
	flex: 0 0 auto;
	color: var(--t100-red);
	font-size: 21px;
	font-weight: 900;
}

.t100-brand-sub {
	display: none;
	color: var(--t100-muted);
	font-size: 11px;
	font-weight: 600;
}

.t100-search {
	display: flex;
	flex: 1 1 190px;
	max-width: 420px;
	height: 34px;
	overflow: hidden;
	border: 1px solid #dde0e3;
	border-radius: 4px;
	background: var(--t100-soft);
}

.t100-search input {
	min-width: 0;
	width: 100%;
	padding: 0 10px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--t100-ink);
	font-size: 13px;
}

.t100-search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	padding: 0 10px;
	border: 0;
	border-left: 1px solid #dde0e3;
	background: #fff;
	color: var(--t100-red);
	cursor: pointer;
}

.t100-search-label {
	display: none;
}

.t100-topics {
	border-top: 1px solid #f2f3f4;
}

.t100-topics-track {
	display: flex;
	width: var(--t100-width);
	margin-inline: auto;
	overflow-x: auto;
	gap: 22px;
	scrollbar-width: none;
	overscroll-behavior-inline: contain;
}

.t100-topics-track::-webkit-scrollbar {
	display: none;
}

.t100-topics a {
	position: relative;
	flex: 0 0 auto;
	padding: 10px 0 9px;
	color: #42474d;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.t100-topics a.is-active,
.t100-topics a:hover {
	color: var(--t100-red);
}

.t100-topics a.is-active::after {
	position: absolute;
	right: 18%;
	bottom: 0;
	left: 18%;
	height: 3px;
	background: var(--t100-red);
	content: "";
}

.t100-layout,
.t100-article-layout {
	display: grid;
	width: var(--t100-width);
	margin-inline: auto;
	padding: 12px 0 38px;
}

.t100-primary,
.t100-article {
	min-width: 0;
}

.t100-original-section {
	margin-bottom: 16px;
	border-top: 3px solid var(--t100-green);
}

.t100-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	min-height: 54px;
	padding: 10px 0 8px;
	border-bottom: 1px solid var(--t100-line);
}

.t100-section-heading > div {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.t100-section-heading span,
.t100-list-header > span {
	color: var(--t100-red);
	font-size: 11px;
	font-weight: 900;
}

.t100-original-section .t100-section-heading span {
	color: var(--t100-green);
}

.t100-section-heading h2 {
	margin: 0;
	color: var(--t100-ink);
	font-size: 18px;
	line-height: 1.3;
}

.t100-section-heading > a {
	color: var(--t100-muted);
	font-size: 12px;
}

.t100-section-heading-feed {
	min-height: 48px;
}

.t100-feature-band {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 16px;
	padding: 12px 13px;
	border: 1px solid #e5e0d3;
	border-left: 4px solid var(--t100-gold);
	border-radius: 4px;
	background: #fbfaf7;
	gap: 12px;
}

.t100-feature-label {
	display: block;
	color: var(--t100-gold);
	font-size: 10px;
	font-weight: 900;
}

.t100-feature-band h2 {
	margin: 1px 0;
	color: var(--t100-ink);
	font-size: 17px;
	line-height: 1.35;
}

.t100-feature-band p {
	margin: 0;
	color: var(--t100-muted);
	font-size: 12px;
	line-height: 1.45;
}

.t100-feature-band > a {
	flex: 0 0 auto;
	color: var(--t100-gold);
	font-size: 12px;
	font-weight: 800;
}

.t100-feed {
	border-top: 1px solid var(--t100-line);
}

.t100-feed .t100-section-heading {
	border-bottom: 0;
}

.t100-feed-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 104px;
	min-height: 108px;
	padding: 12px 0;
	border-bottom: 1px solid var(--t100-line);
	gap: 12px;
}

.t100-feed-card-text,
.t100-feed-card-strip {
	grid-template-columns: minmax(0, 1fr);
}

.t100-card-copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.t100-card-kicker {
	display: flex;
	min-height: 18px;
	align-items: center;
	gap: 7px;
	margin-bottom: 4px;
	color: var(--t100-muted);
	font-size: 11px;
	line-height: 1.3;
}

.t100-badge {
	display: inline-flex;
	align-items: center;
	min-height: 18px;
	padding: 1px 5px;
	border: 1px solid currentColor;
	border-radius: 2px;
	font-size: 9px;
	font-weight: 900;
}

.t100-badge-news {
	color: var(--t100-red);
}

.t100-badge-original {
	color: var(--t100-green);
}

.t100-badge-book {
	color: var(--t100-gold);
}

.t100-badge-video {
	color: var(--t100-blue);
}

.t100-card-title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--t100-ink);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.42;
	letter-spacing: 0;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow-wrap: anywhere;
}

.t100-feed-card.is-lead .t100-card-title {
	font-size: 19px;
	line-height: 1.38;
}

.t100-card-excerpt {
	display: -webkit-box;
	margin: 5px 0 0;
	overflow: hidden;
	color: #5c636b;
	font-size: 12px;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.t100-card-meta {
	display: flex;
	align-items: center;
	margin-top: auto;
	padding-top: 6px;
	gap: 10px;
	color: #9a9fa5;
	font-size: 10px;
	line-height: 1.3;
}

.t100-media-thumb,
.t100-media-cell {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 4px;
	background: #eef0f2;
	aspect-ratio: 4 / 3;
}

.t100-media-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.t100-media-strip {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 8px;
	gap: 5px;
}

.t100-media-strip .t100-media-cell {
	aspect-ratio: 16 / 9;
}

.t100-play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	width: 30px;
	height: 30px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	background: rgba(17, 25, 31, 0.68);
	color: #fff;
	font-size: 11px;
	transform: translate(-50%, -50%);
}

.t100-list-header {
	padding: 8px 0 13px;
	border-bottom: 3px solid var(--t100-ink);
}

.t100-list-header h1 {
	margin: 2px 0 0;
	color: var(--t100-ink);
	font-size: 23px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.t100-list-description {
	margin-top: 6px;
	color: var(--t100-muted);
	font-size: 13px;
}

.t100-list-description p {
	margin: 0;
}

.t100-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding: 20px 0 4px;
	gap: 5px;
}

.t100-pagination .page-numbers,
.t100-pagination > a,
.t100-pagination > span {
	display: inline-flex;
	min-width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	padding: 0 9px;
	border: 1px solid var(--t100-line);
	border-radius: 3px;
	background: #fff;
	font-size: 12px;
}

.t100-pagination .current {
	border-color: var(--t100-red);
	background: var(--t100-red);
	color: #fff;
}

.t100-empty {
	padding: 28px 0;
	color: var(--t100-muted);
	text-align: center;
}

.t100-sidebar {
	display: none;
}

.t100-side-section {
	border-top: 3px solid var(--t100-ink);
}

.t100-side-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 9px 0 7px;
	border-bottom: 1px solid var(--t100-line);
}

.t100-side-heading span {
	color: var(--t100-ink);
	font-size: 15px;
	font-weight: 900;
}

.t100-side-heading small {
	color: var(--t100-muted);
	font-size: 9px;
	font-weight: 800;
}

.t100-ranking {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ranking;
}

.t100-ranking li {
	position: relative;
	min-height: 38px;
	padding: 9px 0 8px 24px;
	border-bottom: 1px solid var(--t100-line);
	counter-increment: ranking;
}

.t100-ranking li::before {
	position: absolute;
	top: 9px;
	left: 1px;
	color: var(--t100-red);
	font-size: 13px;
	font-weight: 900;
	content: counter(ranking);
}

.t100-ranking a,
.t100-side-book-link {
	display: -webkit-box;
	overflow: hidden;
	color: var(--t100-ink);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.t100-feature-band-side {
	display: block;
	margin: 0;
}

.t100-feature-band-side > a {
	display: inline-block;
	margin-top: 8px;
}

.t100-side-book-link {
	padding: 12px 0;
	color: var(--t100-gold);
}

.t100-article-layout {
	gap: 30px;
}

.t100-article-header {
	padding: 10px 0 18px;
	border-bottom: 1px solid var(--t100-line);
}

.t100-article-header h1 {
	margin: 8px 0 11px;
	color: var(--t100-ink);
	font-size: 28px;
	font-weight: 900;
	line-height: 1.34;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.t100-article-meta {
	display: flex;
	gap: 12px;
	color: var(--t100-muted);
	font-size: 12px;
}

.t100-article-lead {
	margin: 16px 0 0;
	padding: 12px 0 12px 13px;
	border-left: 3px solid var(--t100-red);
	color: #4b5157;
	font-size: 15px;
	line-height: 1.75;
}

.t100-source {
	margin: 20px 0;
	padding: 14px;
	border: 1px solid var(--t100-line);
	border-left: 4px solid var(--t100-green);
	border-radius: 4px;
}

.t100-source > span {
	color: var(--t100-green);
	font-size: 10px;
	font-weight: 900;
}

.t100-source h2 {
	margin: 3px 0 6px;
	color: var(--t100-ink);
	font-size: 17px;
	line-height: 1.45;
}

.t100-source p {
	margin: 5px 0;
	font-size: 13px;
}

.t100-source .t100-source-name {
	color: var(--t100-muted);
	font-size: 11px;
}

.t100-source a {
	display: inline-block;
	margin-top: 6px;
	color: var(--t100-green);
	font-size: 12px;
	font-weight: 800;
}

.t100-article-body {
	padding-top: 10px;
	color: #25292d;
	font-size: 16px;
	line-height: 1.9;
	overflow-wrap: anywhere;
}

.t100-article-body p {
	margin: 1.2em 0;
}

.t100-article-body h2,
.t100-article-body h3 {
	margin: 1.7em 0 0.6em;
	color: var(--t100-ink);
	line-height: 1.45;
}

.t100-article-body h2 {
	padding-left: 10px;
	border-left: 4px solid var(--t100-red);
	font-size: 22px;
}

.t100-article-body h3 {
	font-size: 18px;
}

.t100-article-body a {
	color: var(--t100-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.t100-article-body img {
	display: block;
	margin: 1.4em auto;
	border-radius: 4px;
}

.t100-article-body iframe,
.t100-article-body video {
	display: block;
	width: 100%;
	margin: 1.4em auto;
	border: 0;
	aspect-ratio: 16 / 9;
}

.t100-article-footer {
	padding: 15px 0;
	border-bottom: 1px solid var(--t100-line);
}

.t100-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.t100-tags a {
	padding: 3px 7px;
	border: 1px solid var(--t100-line);
	border-radius: 3px;
	color: var(--t100-muted);
	font-size: 11px;
}

.t100-related {
	margin-top: 18px;
}

.t100-footer {
	border-top: 1px solid var(--t100-line);
	background: var(--t100-soft);
}

.t100-footer-inner {
	display: flex;
	width: var(--t100-width);
	min-height: 72px;
	align-items: center;
	margin-inline: auto;
	gap: 12px;
	color: var(--t100-muted);
	font-size: 11px;
}

.t100-footer-inner strong {
	color: var(--t100-red);
	font-size: 15px;
}

@media (max-width: 359px) {
	:root {
		--t100-width: calc(100vw - 16px);
	}

	.t100-brand-main {
		font-size: 19px;
	}

	.t100-search {
		flex-basis: 120px;
	}

	.t100-feed-card {
		grid-template-columns: minmax(0, 1fr) 88px;
		gap: 9px;
	}

	.t100-feed-card-text,
	.t100-feed-card-strip {
		grid-template-columns: minmax(0, 1fr);
	}

	.t100-card-title {
		font-size: 15px;
	}

	.t100-feature-band {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (min-width: 600px) {
	:root {
		--t100-width: min(1140px, calc(100vw - 40px));
	}

	.t100-brand-sub,
	.t100-search-label {
		display: inline;
	}

	.t100-search button {
		gap: 4px;
	}

	.t100-layout,
	.t100-article-layout {
		padding-top: 20px;
	}

	.t100-feed-card {
		grid-template-columns: minmax(0, 1fr) 176px;
		min-height: 142px;
		padding: 16px 0;
		gap: 18px;
	}

	.t100-feed-card-text,
	.t100-feed-card-strip,
	.t100-feed-card.is-compact {
		grid-template-columns: minmax(0, 1fr);
	}

	.t100-feed-card.is-compact.t100-feed-card-thumb {
		grid-template-columns: minmax(0, 1fr) 140px;
	}

	.t100-card-title {
		font-size: 20px;
	}

	.t100-feed-card.is-lead .t100-card-title {
		font-size: 23px;
	}

	.t100-card-excerpt {
		font-size: 13px;
	}

	.t100-card-meta {
		font-size: 11px;
	}

	.t100-article-header h1 {
		font-size: 36px;
	}

	.t100-article-body {
		font-size: 17px;
	}
}

@media (min-width: 1024px) {
	.t100-layout {
		grid-template-columns: minmax(0, var(--t100-feed)) 310px;
		justify-content: space-between;
		gap: 54px;
	}

	.t100-article-layout {
		grid-template-columns: minmax(0, var(--t100-feed)) 310px;
		justify-content: space-between;
		gap: 54px;
	}

	.t100-sidebar {
		position: sticky;
		top: 108px;
		display: grid;
		align-self: start;
		gap: 22px;
	}

	.t100-section-heading-feed {
		border-top: 3px solid var(--t100-ink);
	}
}

@media (min-width: 1280px) {
	.t100-header-row {
		min-height: 58px;
	}

	.t100-brand-main {
		font-size: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
