/* PCグローバルメニュー：CATEGORY をドロップダウン化（2026-12-02）
   ・1200px以上のみ適用。SPメニュー（.j-spnav）には影響しない
   ・開閉は header-dropdown.js が .is-expanded を付け外しする */
@media only screen and (min-width: 1200px) {
	.l-header__nav__item.j-accordion {
		position: relative;
	}
	.l-header__nav__item.j-accordion > a {
		display: inline-block;
		padding: 8px 0;
		margin: -8px 0;
		cursor: pointer;
	}
	/* 開閉アイコン（＋／－）を文字色に合わせる（記事ページで白になり見えなかったため） */
	.l-header__nav__item.j-accordion .l-header__nav__accordion::before,
	.l-header__nav__item.j-accordion .l-header__nav__accordion::after,
	body#single .l-header__nav__item.j-accordion .l-header__nav__accordion::before,
	body#single .l-header__nav__item.j-accordion .l-header__nav__accordion::after {
		background-color: currentColor;
	}
	.l-header__nav__item.j-accordion > a:focus-visible {
		outline: 2px solid #3985d1;
		outline-offset: 4px;
		border-radius: 2px;
	}
	.l-header__nav__item.j-accordion > .l-header__nav__children {
		display: block !important;
		position: absolute;
		left: -28px;
		top: calc(100% + 18px);
		z-index: 20;
		box-sizing: border-box;
		width: 520px;
		margin: 0;
		padding: 24px 28px 26px;
		background: #fff;
		border-radius: 12px;
		box-shadow: 0 16px 40px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .06);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
	}
	/* 吹き出しの三角 */
	.l-header__nav__item.j-accordion > .l-header__nav__children::before {
		position: absolute;
		left: 40px;
		top: -7px;
		width: 14px;
		height: 14px;
		background: #fff;
		transform: rotate(45deg);
		border-radius: 2px;
		content: "";
	}
	/* ボタンと吹き出しの間でマウスが外れないようにする透明な橋 */
	.l-header__nav__item.j-accordion > .l-header__nav__children::after {
		position: absolute;
		left: 0;
		right: 0;
		top: -22px;
		height: 22px;
		content: "";
	}
	.l-header__nav__item.j-accordion.is-expanded > .l-header__nav__children {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		transition: opacity .18s ease, transform .18s ease, visibility 0s;
	}
	.l-header__nav__children--column > ul {
		columns: 2;
		column-gap: 8px;
	}
	.l-header__nav__children > ul > li {
		padding: 0;
		break-inside: avoid;
	}
	.l-header__nav__children > ul > li::before {
		display: none;
	}
	.l-header__nav__children > ul > li > a,
	body#single .l-header__nav__children > ul > li > a {
		position: relative;
		padding: 10px 12px 10px 26px;
		border-radius: 8px;
		color: #222;
		transition: background-color .15s;
	}
	.l-header__nav__children > ul > li > a::before {
		position: absolute;
		left: 12px;
		top: 18px;
		width: 6px;
		height: 6px;
		border-radius: 3px;
		background: #3985d1;
		content: "";
	}
	.l-header__nav__children > ul > li > a:hover,
	.l-header__nav__children > ul > li > a:focus-visible {
		background: #eef4fb;
		outline: none;
	}
	.l-header__nav__children > ul > li > a > span[lang="en"] {
		line-height: 1.4;
	}
	.l-header__nav__children > ul > li > a > span[lang="ja"] {
		margin-top: 2px;
		color: #777;
		line-height: 1.4;
	}
	/* 英語名が未設定のカテゴリは、日本語名を見出しの大きさで表示 */
	.l-header__nav__children > ul > li > a > span[lang="en"]:empty {
		display: none;
	}
	.l-header__nav__children > ul > li > a > span[lang="en"]:empty + span[lang="ja"] {
		margin-top: 0;
		color: #222;
		font-size: 15px;
		line-height: 1.5;
	}
}
@media (prefers-reduced-motion: reduce) {
	.l-header__nav__item.j-accordion > .l-header__nav__children {
		transition: none !important;
	}
}

/* ===== ランキング一覧（/ranking/）のカード（2026-12-02 追加） =====
   ・カードが1件の前提だった横並びを、3列で折り返すようにする
   ・一覧用画像（index_image）が未設定のカードに背景色を付け、白い文字を読めるようにする */
@media only screen and (min-width: 781px) {
	.p-ranking-archive__sect__list {
		flex-wrap: wrap;
		justify-content: flex-start;
		column-gap: 4.3478%;
		row-gap: 40px;
	}
	.p-ranking-archive__sect__list > .p-ranking-archive__item {
		flex: 0 0 30.4348%;
		width: 30.4348%;
	}
}
.p-ranking-archive__item__thumb:not(:has(img)) {
	aspect-ratio: 686 / 1280;
	background: linear-gradient(160deg, #4a9ad8 0%, #1f5a96 100%);
}
.p-ranking-archive__item:nth-child(3n+2) .p-ranking-archive__item__thumb:not(:has(img)) {
	background: linear-gradient(160deg, #3fb3a6 0%, #1d6f74 100%);
}
.p-ranking-archive__item:nth-child(3n) .p-ranking-archive__item__thumb:not(:has(img)) {
	background: linear-gradient(160deg, #e08a5a 0%, #b0502e 100%);
}
