/*
 * Mangax Top Redesign
 * すべて .mgx-* と body.mgx-top 配下に閉じる。トップページ専用の指定は body.home.mgx-top 配下に置く。
 */

.mgx-top {
	--mgx-blue: #168dd2;
	--mgx-blue-dark: #0e74b1;
	--mgx-ink: #172b45;
	--mgx-sub: #5b6b80;
	--mgx-muted: #94a3b8;
	--mgx-line: #d6e8f5;
	--mgx-line-soft: #e5eef6;
	--mgx-tint: #eaf6ff;
	--mgx-pink: #e5578c;
	--mgx-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	--mgx-header-h: 80px;
}

body.mgx-top {
	margin-top: 0;
}

.mgx-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.mgx-mask {
	display: inline-block;
	flex: none;
	width: 14px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask: var(--mgx-mask) center / contain no-repeat;
	mask: var(--mgx-mask) center / contain no-repeat;
}

/*
 * Cocoon の * { overflow-wrap: anywhere } は翻訳で挿入される <font> にも掛かり、
 * 狭い枠のラベルが単語の途中で折り返す。子孫まで break-word に戻す。
 */
.mgx-nav__link > span:not(.mgx-mask),
.mgx-nav__link > span:not(.mgx-mask) *,
.mgx-hero__body *,
.mgx-shortcuts__label,
.mgx-shortcuts__label *,
.mgx-genres__label,
.mgx-genres__label *,
.mgx-footer__links a,
.mgx-footer__links a * {
	overflow-wrap: break-word;
}

/* 日本語は「・」の後で折り返すと読みにくいため 1 行のまま置き、翻訳時だけ折り返す */
html.translated-ltr .mgx-genres__label,
html.translated-ltr .mgx-footer__links a {
	white-space: normal;
}

.mgx-icon {
	display: block;
	flex: none;
	max-width: none;
}

.mgx-chevron {
	width: 7px;
	height: 12px;
}

/* ---------- ヘッダー ---------- */

.mgx-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #fff;
	border-bottom: 1px solid var(--mgx-line-soft);
	font-family: var(--mgx-font);
	color: var(--mgx-ink);
}

.admin-bar .mgx-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.mgx-header__inner {
	display: flex;
	align-items: center;
	max-width: 1200px;
	height: calc(var(--mgx-header-h) - 1px);
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: content-box;
}

.mgx-header__logo {
	flex: none;
	margin: 0 0 0 30px;
	padding: 0;
	font-size: 0;
	line-height: 0;
}

.mgx-header__logo a {
	display: block;
}

.mgx-header__logo img {
	display: block;
	width: 79px;
	height: 79px;
}

.mgx-logo-text {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--mgx-ink);
}

.mgx-nav {
	align-self: stretch;
	margin-left: clamp(16px, 9.4vw, 135px);
}

.mgx-nav__list {
	display: flex;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	gap: 16px;
}

.mgx-nav__item {
	position: relative;
	display: flex;
	margin: 0;
	padding: 0;
}

.mgx-nav__link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 10px;
	font-size: 15px;
	line-height: 1;
	color: var(--mgx-ink);
	text-decoration: none;
	white-space: nowrap;
}

.mgx-nav__link:hover {
	color: var(--mgx-blue);
}

.mgx-nav__link > span:not(.mgx-mask) {
	white-space: normal;
	word-break: keep-all;
}

.mgx-nav__icon {
	width: 15px;
	height: 15px;
}

/* 星アイコンは Figma の書き出し PNG に余白があるため、ほかのアイコンと見た目の大きさをそろえる */
.mgx-nav__icon--special {
	width: 21px;
	height: 21px;
	margin: -3px;
}

.mgx-nav__item.is-current > .mgx-nav__link {
	font-weight: 700;
	color: var(--mgx-blue);
}

.mgx-nav__item.is-current > .mgx-nav__link::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 3px;
	border-radius: 2px;
	background: var(--mgx-blue);
}

.mgx-nav__sub {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	display: none;
	min-width: 240px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--mgx-line);
	border-radius: 0 0 12px 12px;
	box-shadow: 0 8px 24px rgba(23, 43, 69, 0.12);
}

.mgx-nav__item.has-sub:hover > .mgx-nav__sub,
.mgx-nav__item.has-sub:focus-within > .mgx-nav__sub {
	display: block;
}

.mgx-nav__sub a {
	display: block;
	padding: 10px 20px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--mgx-ink);
	text-decoration: none;
}

.mgx-nav__sub a:hover {
	background: var(--mgx-tint);
	color: var(--mgx-blue);
}

.mgx-header__search {
	flex: 0 1 280px;
	min-width: 140px;
	margin-left: auto;
}

.mgx-search {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
}

.mgx-search input.mgx-search__input {
	width: 100%;
	height: 36px;
	margin: 0;
	padding: 0 44px 0 20px;
	font-family: var(--mgx-font);
	font-size: 14px;
	color: var(--mgx-ink);
	background: #fff;
	border: 1.5px solid var(--mgx-line);
	border-radius: 18px;
	box-shadow: none;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.mgx-search input.mgx-search__input::placeholder {
	color: var(--mgx-muted);
	opacity: 1;
}

.mgx-search input.mgx-search__input:focus {
	border-color: var(--mgx-blue);
	outline: none;
}

.mgx-search__submit {
	position: absolute;
	top: 0;
	right: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 100%;
	margin: 0;
	padding: 0;
	color: var(--mgx-blue);
	background: none;
	border: 0;
	cursor: pointer;
}

.mgx-search__icon {
	width: 15px;
	height: 15px;
}

.mgx-header__actions,
.mgx-header__sp-search {
	display: none;
}

/* ---------- ドロワー ---------- */

.mgx-drawer {
	position: fixed;
	inset: 0;
	z-index: 100000;
	font-family: var(--mgx-font);
	color: var(--mgx-ink);
}

.mgx-drawer[hidden] {
	display: none;
}

.mgx-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(23, 43, 69, 0.45);
}

.mgx-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(300px, 86vw);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	box-shadow: -8px 0 24px rgba(23, 43, 69, 0.15);
}

.mgx-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 54px;
	padding: 0 16px 0 20px;
	border-bottom: 1px solid var(--mgx-line-soft);
}

.mgx-drawer__logo img {
	display: block;
	width: 38px;
	height: 38px;
}

.mgx-drawer__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.mgx-drawer__nav {
	padding: 6px 14px 24px;
}

.mgx-drawer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mgx-drawer__list li {
	margin: 0;
	padding: 0 0 1px;
	background: linear-gradient(var(--mgx-line-soft), var(--mgx-line-soft)) 14px 100% / calc(100% - 28px) 1px no-repeat;
}

.mgx-drawer__list li:last-child {
	background: none;
}

.mgx-drawer__link {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 47px;
	padding: 0 14px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--mgx-ink);
	text-decoration: none;
	border-radius: 8px;
}

.mgx-drawer__link.is-current {
	color: var(--mgx-blue);
	background: var(--mgx-tint);
}

.mgx-drawer__link > span:not(.mgx-mask) {
	flex: 1;
}

.mgx-drawer__icon {
	width: 18px;
	height: 18px;
}

.mgx-drawer__list--main .mgx-drawer__icon {
	color: var(--mgx-blue);
}

.mgx-drawer__icon--special {
	width: 24px;
	height: 24px;
	margin: -3px;
}

.mgx-drawer__link .mgx-chevron {
	color: #4a5a70;
}

.mgx-drawer__list--site {
	margin-top: 8px;
}

.mgx-drawer__list--site .mgx-drawer__link {
	min-height: 42px;
	font-size: 15px;
	gap: 12px;
}

.mgx-drawer__heading {
	margin: 22px 0 12px 8px;
	padding: 0 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	line-height: 19px;
	border-left: 4px solid var(--mgx-blue);
}

.mgx-drawer__search {
	margin: 16px 8px 0;
	padding-top: 14px;
	border-top: 1px solid var(--mgx-line-soft);
}

.mgx-drawer__search input.mgx-search__input {
	height: 42px;
	padding: 0 16px 0 44px;
	font-size: 15px;
	border-color: #b9d6ec;
	border-radius: 21px;
}

.mgx-drawer__search .mgx-search__submit {
	right: auto;
	left: 6px;
	color: var(--mgx-ink);
}

.mgx-drawer-open {
	overflow: hidden;
}

/* ---------- ジャンルボタン（サイドバー・ドロワー共通） ---------- */

.mgx-genres {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--mgx-font);
}

.mgx-genres li {
	margin: 0;
	padding: 0;
}

.mgx-genres__link {
	display: flex;
	align-items: center;
	height: 100%;
	min-height: 48px;
	padding: 4px 8px 4px 14px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--mgx-ink);
	text-decoration: none;
	background: #fff;
	border: 1.5px solid var(--mgx-line);
	border-radius: 10px;
	box-sizing: border-box;
	transition: border-color 0.15s, background-color 0.15s;
}

.mgx-genres__link:hover {
	color: var(--mgx-ink);
	background: var(--mgx-tint);
	border-color: var(--mgx-blue);
}

.mgx-genres__icon {
	width: 24px;
	height: 24px;
}

.mgx-genres__label {
	flex: 1;
	text-align: center;
	white-space: nowrap;
	hyphens: auto;
}

.mgx-genres__link.is-long .mgx-genres__label {
	font-size: 12px;
	letter-spacing: -0.02em;
}

.mgx-genres--drawer {
	gap: 8px;
	margin: 0 8px;
}

.mgx-genres--drawer .mgx-genres__link {
	min-height: 40px;
	padding: 4px 6px 4px 10px;
	gap: 8px;
	font-size: 13px;
	border-radius: 8px;
}

.mgx-genres--drawer .mgx-genres__icon {
	width: 18px;
	height: 18px;
}

.mgx-genres--drawer .mgx-genres__label {
	text-align: left;
	white-space: normal;
}

.mgx-genres--drawer .is-long .mgx-genres__label {
	font-size: 12px;
}

/* ---------- フッター ---------- */

.mgx-top #footer {
	margin-top: 64px;
	padding: 0;
	background: var(--mgx-blue);
}

.mgx-top #footer-in {
	width: auto;
	max-width: none;
	padding: 0;
}

.mgx-footer {
	font-family: var(--mgx-font);
	color: #fff;
}

.mgx-footer a {
	color: #fff;
	text-decoration: none;
}

.mgx-footer a:hover {
	text-decoration: underline;
}

.mgx-footer__main {
	display: flex;
	max-width: 1200px;
	margin: 0 auto;
	padding: 27px 16px 50px;
	box-sizing: content-box;
}

.mgx-footer__brand {
	flex: 0 0 300px;
	padding-right: 48px;
	box-sizing: border-box;
	text-align: center;
}

.mgx-footer__logo {
	display: inline-block;
}

.mgx-footer__logo img {
	display: block;
	width: 79px;
	height: 79px;
}

.mgx-footer__summary {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 22.4px;
	text-align: left;
}

.mgx-footer__summary span {
	display: block;
}

.mgx-footer__nav {
	display: flex;
	flex: 1;
	justify-content: space-between;
	gap: 0 32px;
	padding: 24px 0 0 40px;
	border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.mgx-footer__title {
	margin: 0 0 30px;
	font-size: 16px;
	font-weight: 700;
	line-height: 19px;
}

.mgx-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
	column-gap: 24px;
}

.mgx-footer__links li {
	display: block;
	margin: 0 0 17px;
	padding: 0;
	line-height: 17px;
	break-inside: avoid;
}

.mgx-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	line-height: 17px;
	white-space: nowrap;
}

.mgx-footer__links .mgx-chevron {
	width: 5px;
	height: 9px;
}

.mgx-footer__col--contents .mgx-footer__links,
.mgx-footer__col--genres .mgx-footer__links {
	column-count: 2;
}

.mgx-footer__bottom {
	background: var(--mgx-blue-dark);
}

.mgx-footer__bottom p {
	margin: 0;
	padding: 20px 16px;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

.mgx-footer__sep {
	margin: 0 14px;
	opacity: 0.6;
}

/* ---------- 全ページ: 本文とサイドバーの枠 ---------- */

/* Cocoon の 1256px 枠と 1255px 以下の % 幅を、ヘッダーと同じ 1200px 枠に置き換える。
   1023px 以下は Cocoon の縦積みのまま。 */
@media screen and (min-width: 1024px) {
	body.mgx-top #content-in {
		flex-wrap: nowrap;
		gap: 32px;
		width: auto;
		max-width: 1200px;
		margin: 0 auto;
		padding: 0 16px;
		box-sizing: content-box;
	}

	body.mgx-top #main {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		margin: 0;
	}

	body.mgx-top #sidebar {
		margin: 0;
	}
}

/* ---------- トップページ: レイアウト ---------- */

body.home.mgx-top #content {
	margin-top: 41px;
}

body.home.mgx-top #content-in {
	gap: 32px;
	width: auto;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: content-box;
}

body.home.mgx-top #main {
	flex: 1 1 820px;
	min-width: 0;
	padding: 0;
	background: none;
	border: 0;
}

body.mgx-top #sidebar {
	flex: 0 0 348px;
	width: 348px;
	padding: 0;
	background: none;
	border: 0;
	font-family: var(--mgx-font);
}

body.home.mgx-top #list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
}

/* ---------- トップページ: ヒーロー・ショートカット ---------- */

.mgx-intro {
	max-width: 1200px;
	margin: 24px auto 0;
	padding: 0 16px;
	box-sizing: content-box;
	font-family: var(--mgx-font);
	color: var(--mgx-ink);
}

.mgx-hero {
	position: relative;
	display: flex;
	min-height: 300px;
	overflow: hidden;
	background: var(--mgx-tint);
	border-radius: 20px;
}

.mgx-hero__body {
	position: relative;
	z-index: 1;
	flex: none;
	max-width: 58%;
	padding: 50px 0 32px 56px;
	box-sizing: border-box;
}

.mgx-hero__title {
	margin: 0;
	font-size: clamp(36px, 3.6vw, 52px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.mgx-hero__lead {
	margin: 22px 0 0;
	font-size: 18px;
	line-height: 28.8px;
}

.mgx-hero__lead span {
	display: block;
}

.mgx-hero__cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 232px;
	max-width: 100%;
	min-height: 52px;
	margin-top: 22px;
	padding: 6px 42px 6px 24px;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	background: var(--mgx-blue);
	border-radius: 26px;
	box-sizing: border-box;
}

.mgx-hero__cta:hover {
	color: #fff;
	background: var(--mgx-blue-dark);
}

.mgx-hero__cta .mgx-chevron {
	position: absolute;
	right: 24px;
}

.mgx-hero__visual {
	position: relative;
	flex: 0 1 620px;
	min-width: 0;
	margin-left: auto;
}

.mgx-hero__visual::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	width: 120px;
	background: linear-gradient(90deg, var(--mgx-tint), rgba(234, 246, 255, 0));
}

.mgx-hero__visual img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

.mgx-shortcuts {
	margin-top: 32px;
}

.mgx-shortcuts__list {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mgx-shortcuts__list li {
	margin: 0;
	padding: 0;
}

.mgx-shortcuts__link {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	min-height: 81.5px;
	padding: 8px 18px 8px 19px;
	color: var(--mgx-ink);
	text-decoration: none;
	background: #fff;
	border: 1.5px solid var(--mgx-line);
	border-radius: 12px;
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.mgx-shortcuts__link:hover {
	color: var(--mgx-ink);
	border-color: var(--mgx-blue);
}

.mgx-shortcuts__icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--mgx-tint);
	border-radius: 10px;
}

.mgx-shortcuts__icon .mgx-icon {
	width: 26px;
	height: 26px;
	object-fit: contain;
}

.mgx-shortcuts__label {
	flex: 1;
	hyphens: auto;
	font-size: 15px;
	font-weight: 700;
	line-height: 24px;
}

.mgx-shortcuts__label span {
	display: block;
}

.mgx-shortcuts__link .mgx-chevron {
	color: var(--mgx-blue);
}

/* ---------- トップページ: 記事一覧 ---------- */

.mgx-section-title {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: -3px 0 26px;
	padding: 0 0 11px 0;
	font-family: var(--mgx-font);
	font-size: 24px;
	font-weight: 700;
	line-height: 29px;
	color: var(--mgx-ink);
	background: none;
	border: 0;
	border-bottom: 2px solid var(--mgx-blue);
	scroll-margin-top: calc(var(--mgx-header-h) + 16px);
}

.mgx-section-title::before,
.mgx-section-title::after {
	content: none;
}

.mgx-section-title .mgx-icon {
	margin-left: -4px;
}

.mgx-card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 24px;
	padding: 14.5px 64px 14.5px 14.5px;
	font-family: var(--mgx-font);
	color: var(--mgx-ink);
	text-decoration: none;
	background: #fff;
	border: 1.5px solid var(--mgx-line);
	border-radius: 12px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.mgx-card:hover {
	color: var(--mgx-ink);
	border-color: var(--mgx-blue);
	box-shadow: 0 4px 16px rgba(22, 141, 210, 0.12);
}

.mgx-card__thumb {
	flex: none;
	width: 240px;
	height: 144px;
	margin: 0;
	overflow: hidden;
	border-radius: 8px;
	background: var(--mgx-tint);
}

.mgx-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mgx-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	padding-top: 2px;
}

.mgx-card__body > * {
	max-width: 100%;
}

.mgx-pill {
	display: inline-block;
	padding: 0 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	color: #fff;
	background: var(--mgx-blue);
	border-radius: 11px;
}

.mgx-pill--pink {
	background: var(--mgx-pink);
}

.mgx-card__title {
	display: -webkit-box;
	margin: 8px 0 0;
	padding: 0;
	overflow: hidden;
	font-size: 17px;
	font-weight: 700;
	line-height: 27.2px;
	color: var(--mgx-ink);
	background: none;
	border: 0;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.mgx-card__snippet {
	display: -webkit-box;
	margin: 2px 0 0;
	overflow: hidden;
	font-size: 13px;
	line-height: 20.8px;
	color: var(--mgx-sub);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.mgx-card__date {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 2px 0 0 2px;
	font-size: 12px;
	line-height: 14px;
	color: var(--mgx-muted);
}

.mgx-card__go {
	position: absolute;
	top: 50%;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	color: var(--mgx-blue);
	background: var(--mgx-tint);
	border-radius: 50%;
}

body.home.mgx-top .pagination {
	display: flex;
	justify-content: center;
	gap: 12px;
	width: 100%;
	margin: 32px 0 0;
	font-family: var(--mgx-font);
}

body.home.mgx-top .pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 40px;
	height: 40px;
	margin: 0;
	padding: 0 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	color: var(--mgx-ink);
	background: #fff;
	border: 1.5px solid var(--mgx-line);
	border-radius: 8px;
	box-sizing: border-box;
}

body.home.mgx-top .pagination .page-numbers.current {
	color: #fff;
	background: var(--mgx-blue);
	border-color: var(--mgx-blue);
}

body.home.mgx-top .pagination .page-numbers.dots {
	font-weight: 400;
	color: var(--mgx-sub);
	background: none;
	border: 0;
}

body.home.mgx-top .pagination a.page-numbers:hover {
	color: var(--mgx-blue);
	border-color: var(--mgx-blue);
}

/* ---------- サイドバー（全ページ共通） ---------- */

.mgx-box {
	margin: 0 0 24px;
	overflow: hidden;
	color: var(--mgx-ink);
	background: #fff;
	border: 1.5px solid var(--mgx-line);
	border-radius: 12px;
	scroll-margin-top: calc(var(--mgx-header-h) + 16px);
}

.mgx-lang {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
	padding: 12px 20px;
	color: var(--mgx-ink);
	background: #fff;
	border: 1.5px solid var(--mgx-line);
	border-radius: 12px;
}

.mgx-lang__label {
	flex: none;
	font-size: 14px;
	font-weight: 700;
}

.mgx-lang .gtranslate_wrapper {
	flex: 1 1 auto;
	min-width: 0;
}

.mgx-lang select.gt_selector {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	font: inherit;
	font-size: 14px;
	color: var(--mgx-ink);
	background-color: #fff;
	border: 1px solid var(--mgx-line);
	border-radius: 8px;
}

.mgx-box > h3.mgx-box__title {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	margin: 0;
	padding: 8px 20px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	color: var(--mgx-ink);
	background: var(--mgx-tint);
	border: 0;
	border-radius: 0;
}

.mgx-box > h3.mgx-box__title::before,
.mgx-box > h3.mgx-box__title::after {
	content: none;
}

.mgx-box--ranking > h3.mgx-box__title {
	padding-left: 14px;
}

.mgx-ranking {
	margin: 0;
	padding: 4px 18px 13px;
	list-style: none;
}

.mgx-ranking li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--mgx-line);
}

.mgx-ranking li:last-child {
	border-bottom: 0;
}

.mgx-ranking__link {
	display: flex;
	align-items: center;
	gap: 13px;
	min-height: 79px;
	color: var(--mgx-ink);
	text-decoration: none;
}

.mgx-ranking__link:hover {
	color: var(--mgx-blue);
}

.mgx-ranking__rank {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: var(--mgx-blue);
	border-radius: 50%;
}

.mgx-ranking__rank--1 {
	background: #e8a800;
}

.mgx-ranking__rank--2 {
	background: #9aa8b8;
}

.mgx-ranking__rank--3 {
	background: #c7834a;
}

.mgx-ranking__thumb {
	flex: none;
	width: 80px;
	height: 56px;
	overflow: hidden;
	background: var(--mgx-tint);
	border-radius: 6px;
}

.mgx-ranking__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mgx-ranking__title {
	display: -webkit-box;
	flex: 1;
	overflow: hidden;
	font-size: 13px;
	font-weight: 700;
	line-height: 20.8px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.mgx-ranking__link .mgx-chevron {
	color: var(--mgx-ink);
}

.mgx-box--genres > h3.mgx-box__title {
	gap: 7px;
	padding-left: 16px;
}

.mgx-box--genres .mgx-genres {
	padding: 16px 18px 18px;
}

.mgx-admin {
	padding: 20px 24px 22px;
	text-align: center;
}

.mgx-admin__avatar img {
	display: block;
	width: 88px;
	height: 88px;
	margin: 0 auto;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--mgx-blue);
}

.mgx-admin__name {
	margin: 14px 0 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 22px;
}

.mgx-admin__name a {
	color: var(--mgx-ink);
	text-decoration: none;
}

.mgx-admin__role {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 14px;
	color: var(--mgx-blue);
}

.mgx-admin__text {
	margin-top: 16px;
	font-size: 13px;
	line-height: 20.8px;
	text-align: left;
}

.mgx-admin__text p {
	margin: 0;
}

.mgx-admin__sns {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.mgx-admin__sns li {
	margin: 0;
}

.mgx-admin__sns-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	font-size: 14px;
	line-height: 1;
	color: #fff;
	text-decoration: none;
	border-radius: 50%;
}

.mgx-admin__sns-link:hover {
	color: #fff;
	opacity: 0.85;
}

.mgx-admin__sns-link--youtube {
	background: #e62117;
}

.mgx-admin__sns-link--tiktok {
	background: #111;
}

/* ---------- タブレット ---------- */

@media screen and (max-width: 1100px) {
	.mgx-header__logo {
		margin-left: 0;
	}

	.mgx-nav__list {
		gap: 0;
	}

	.mgx-shortcuts__link {
		flex-direction: column;
		justify-content: flex-start;
		gap: 2px;
		min-height: 100px;
		padding: 14px 4px 2px;
		text-align: center;
	}

	.mgx-shortcuts__label {
		flex: none;
		font-size: 13px;
		line-height: 19.2px;
	}

	.mgx-shortcuts__link .mgx-chevron {
		display: none;
	}
}

/* フッターの 3 列は 1228px 未満で横にはみ出すため、ヘッダーより早く折り返す */
@media screen and (max-width: 1240px) {
	.mgx-footer__brand {
		flex-basis: 240px;
		padding-right: 24px;
	}

	.mgx-footer__nav {
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 8px 40px;
		padding-left: 24px;
	}
}

@media screen and (max-width: 1023px) {
	body.mgx-top #sidebar {
		width: auto;
	}
}

/* ---------- SP ---------- */

@media screen and (max-width: 960px) {
	.mgx-top {
		--mgx-header-h: 102px;
	}

	.mgx-header__inner {
		display: grid;
		grid-template-columns: auto 1fr auto;
		grid-template-areas:
			"logo . actions"
			"nav nav nav";
		height: auto;
		padding: 0;
	}

	.mgx-header__logo {
		grid-area: logo;
		margin-left: 26px;
	}

	.mgx-header__logo img {
		width: 55px;
		height: 55px;
	}

	.mgx-header__search {
		display: none;
	}

	.mgx-header__actions {
		display: flex;
		grid-area: actions;
		align-items: center;
		height: 55px;
		padding-right: 10px;
	}

	.mgx-header__btn {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 44px;
		margin: 0;
		padding: 0;
		color: var(--mgx-ink);
		background: none;
		border: 0;
		cursor: pointer;
	}

	.mgx-header__btn .mgx-mask {
		width: 19px;
		height: 19px;
	}

	.mgx-nav {
		grid-area: nav;
		margin: 0;
		overflow-x: auto;
		border-top: 1px solid var(--mgx-line-soft);
		scrollbar-width: none;
	}

	.mgx-nav::-webkit-scrollbar {
		display: none;
	}

	.mgx-nav__list {
		gap: 4px;
		height: 45px;
		padding: 0 6px;
	}

	.mgx-nav__link {
		gap: 7px;
		padding: 0 12px 0 12px;
		font-size: 13px;
	}

	.mgx-nav__link > span:not(.mgx-mask) {
		white-space: nowrap;
	}

	.mgx-nav__icon {
		width: 13px;
		height: 13px;
	}

	.mgx-nav__icon--special {
		width: 19px;
		height: 19px;
	}

	.mgx-nav__sub {
		display: none !important;
	}

	.mgx-header__sp-search:not([hidden]) {
		display: block;
		padding: 10px 16px;
		border-top: 1px solid var(--mgx-line-soft);
	}

	.mgx-header__sp-search input.mgx-search__input {
		height: 40px;
		border-radius: 20px;
	}
}

@media screen and (max-width: 834px) {
	body.home.mgx-top #content {
		margin-top: 26px;
	}

	body.home.mgx-top #footer {
		margin-top: 106px;
	}

	body.home.mgx-top #content-in {
		display: block;
		padding: 0 16px;
	}

	body.home.mgx-top #main {
		width: auto;
		margin: 0;
	}

	body.mgx-top #sidebar {
		margin: 32px 16px 0;
	}

	body.home.mgx-top #sidebar {
		margin-inline: 0;
	}

	body.home.mgx-top #list {
		gap: 12px;
	}

	.mgx-intro {
		margin-top: 16px;
	}

	.mgx-hero {
		flex-direction: column;
		height: auto;
		border-radius: 16px;
	}

	.mgx-hero__body {
		max-width: none;
		padding: 20px 20px 0;
	}

	.mgx-hero__title {
		font-size: 28px;
		line-height: 34px;
		letter-spacing: 0.01em;
	}

	.mgx-hero__lead {
		margin-top: 12px;
		font-size: 14px;
		line-height: 22.4px;
	}

	.mgx-hero__cta {
		display: flex;
		width: 100%;
		min-height: 48px;
		margin-top: 16px;
		padding-inline: 42px;
		font-size: 15px;
		border-radius: 24px;
	}

	.mgx-hero__visual {
		flex: none;
		height: 150px;
		margin: 14px 0 0;
	}

	.mgx-hero__visual::before {
		right: 0;
		bottom: auto;
		width: auto;
		height: 50px;
		background: linear-gradient(180deg, var(--mgx-tint), rgba(234, 246, 255, 0));
	}

	.mgx-shortcuts {
		margin: 20px -16px 0;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.mgx-shortcuts::-webkit-scrollbar {
		display: none;
	}

	.mgx-shortcuts__list {
		display: flex;
		gap: 10px;
		width: max-content;
		padding: 0 16px;
	}

	.mgx-shortcuts__link {
		flex-direction: column;
		justify-content: flex-start;
		gap: 2px;
		width: 112px;
		min-height: 100px;
		padding: 14px 4px 2px;
		text-align: center;
	}

	.mgx-shortcuts__label {
		flex: none;
		font-size: 12px;
		line-height: 19.2px;
	}

	.mgx-shortcuts__link .mgx-chevron {
		display: none;
	}

	.mgx-section-title {
		gap: 2px;
		margin: 0 0 16px;
		padding-bottom: 4px;
		font-size: 20px;
		line-height: 24px;
	}

	.mgx-section-title .mgx-icon {
		margin-left: -6px;
	}

	.mgx-card {
		align-items: center;
		gap: 12px;
		padding: 9.5px 12px;
		min-height: 124px;
		border-radius: 12px;
	}

	.mgx-card__thumb {
		width: 124px;
		height: 84px;
	}

	.mgx-card__body {
		padding-top: 0;
	}

	.mgx-pill {
		padding: 0 8px;
		font-size: 11px;
		line-height: 18px;
		border-radius: 9px;
	}

	.mgx-card__title {
		margin-top: 6px;
		font-size: 13.5px;
		line-height: 21.6px;
		-webkit-line-clamp: 3;
	}

	.mgx-card__snippet,
	.mgx-card__go {
		display: none;
	}

	.mgx-card__date {
		margin-top: 0;
	}

	body.home.mgx-top .pagination {
		gap: 8px;
		margin-top: 20px;
	}

	.mgx-box,
	.mgx-lang {
		margin-bottom: 14px;
	}

	.mgx-ranking {
		padding: 0 12px 6px;
	}

	.mgx-ranking__link {
		min-height: 72px;
		gap: 10px;
	}

	.mgx-ranking__thumb {
		width: 76px;
		height: 50px;
	}

	.mgx-box--genres .mgx-genres {
		padding: 16px 18px 18px;
	}

	.mgx-footer__main {
		display: block;
		padding: 24px 16px 20px;
	}

	.mgx-footer__brand {
		padding: 0 0 80px;
		text-align: center;
	}

	.mgx-footer__logo img {
		width: 50px;
		height: 50px;
	}

	.mgx-footer__summary {
		margin-top: 8px;
		font-size: 13px;
		line-height: 22px;
		text-align: center;
	}

	.mgx-footer__nav {
		display: flex;
		flex-direction: column;
		gap: 28px;
		padding: 30px 4px 0;
		border-top: 1px solid rgba(255, 255, 255, 0.3);
		border-left: 0;
	}

	.mgx-footer__col--site {
		order: 1;
	}

	.mgx-footer__col--genres {
		order: 2;
	}

	.mgx-footer__title {
		margin-bottom: 30px;
	}

	.mgx-footer__links {
		column-gap: 12px;
	}

	.mgx-footer__col--site .mgx-footer__links {
		column-count: 2;
	}
	.mgx-footer__links a {
		white-space: normal;
	}

	.mgx-footer__bottom p {
		padding: 16px;
		font-size: 12px;
		line-height: 22px;
	}

	.mgx-footer__bottom span {
		display: block;
	}

	.mgx-footer__bottom .mgx-footer__sep {
		display: none;
	}
}
