@charset "UTF-8";
/*
 * 現金ラブ テーマの CSS（この1本だけを読み込む。inc/assets.php）
 *
 * WordPress のブロックの CSS（wp-block-library）は読み込まない。本文は素の HTML なので、
 * 要る分（表・画像・引用など）はここに持つ。
 *
 * 前半（1〜12章）は骨組み：版面・ヘッダー・フッター・パンくず・記事・目次・カード・サイドバー・フォーム・表。
 * 後半（13章から）はこのサイトの決まり：色・部品・旧テーマの本文の受け皿・トップページ。
 * 決まった色と形の理由は docs/オリジナルテーマの計画.md の7章。
 *
 * 目次
 *   1. トークン
 *   2. リセットと基本
 *   3. レイアウト
 *   4. ヘッダ / ナビ
 *   5. フッタ
 *   6. パンくず
 *   7. 記事
 *   8. 目次
 *   9. カード / 一覧
 *  10. サイドバー
 *  11. フォーム / ページャ / 404
 *  12. コアブロック（表・画像・引用など。本文の素の表も、テーマが .wp-block-table で包んでから当てる）
 *  13. このサイトの色
 *  14. ヘッダー・フッター（今のサイトの色）
 *  15. 部品（ボタン・星・囲み・区切り・本文の中のカード）
 *  16. 旧テーマの本文の受け皿
 *  17. トップページ（今の色合い・1列）
 *  18. サイドバーの足し
 *  19. 段3で足した部品（年表・吹き出し・関連記事のリンク・開閉・並び・評価・ランキングの差し込み）
 *  20. 旧テーマの本文の受け皿（続き：余白・文字・見出し・囲み・業者の紹介の形など）
 *  21. ページの型（スマホの固定の案内・カテゴリーの一覧・売買サイトのランキング）
 *  22. お問い合わせフォーム（inc/contact-form.php）
 *  23. サイトマップのページ（inc/sitemap-page.php）
 */

/* ============================================================
   1. トークン
   色とフォントサイズは theme.json 側で定義され、
   --wp--preset--* として供給される。ここでは版面の寸法だけ定義する。
   ============================================================ */
:root {
	--gl-content: 720px;
	--gl-wide: 1100px;
	--gl-gutter: 1.25rem;
	--gl-gap: 1.5rem;
	--gl-radius: 8px;
	--gl-header-h: 56px;
	--gl-brand: var(--wp--preset--color--brand, #1b2a63);
	--gl-brand-dark: var(--wp--preset--color--brand-dark, #10193a);
	--gl-brand-light: var(--wp--preset--color--brand-light, #5a72c4);
	--gl-brand-pale: var(--wp--preset--color--brand-pale, #eef1f9);
	--gl-cta: var(--wp--preset--color--cta, #d81e3a);
	--gl-cta-dark: var(--wp--preset--color--cta-dark, #b0142c);
	--gl-cta-pale: var(--wp--preset--color--cta-pale, #fdecef);
	--gl-callout: #55618f;
	--gl-ink: var(--wp--preset--color--ink, #25283a);
	--gl-muted: var(--wp--preset--color--muted, #666a7a);
	--gl-line: var(--wp--preset--color--line, #e1e2ea);
	--gl-surface: var(--wp--preset--color--surface, #f7f7fb);
}

/* ============================================================
   2. リセットと基本
   ============================================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--gl-ink);
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans",
		"Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.9;
	/* 日本語は行間を広めに取らないと、比較記事のような長文が読み通せない */
	-webkit-text-size-adjust: 100%;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

img {
	vertical-align: middle;
}

a {
	color: var(--gl-brand);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--gl-brand-dark);
}

h1,
h2,
h3,
h4 {
	line-height: 1.45;
	font-weight: 700;
}

figure {
	margin: 0;
}

table {
	border-collapse: collapse;
}

/* キーボード操作時のフォーカスを必ず見えるようにする。
   :focus-visible なのでマウス操作では出ない。 */
:focus-visible {
	outline: 3px solid var(--gl-brand-light);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 0.75em 1.25em;
	background: var(--gl-brand);
	color: #fff;
}

.skip-link:focus {
	left: 0;
}

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

/* ============================================================
   3. レイアウト
   ============================================================ */
.layout {
	display: grid;
	/* 1fr だと、中身のいちばん狭くできる幅（サイドバーの検索の欄など）より列が細くならず、幅 320px の画面で横にはみ出す */
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
	max-width: var(--gl-wide);
	margin: 0 auto;
	padding: 1.5rem var(--gl-gutter) 4rem;
}

.layout__main {
	min-width: 0; /* grid 内で長い表がはみ出すのを防ぐ */
}

@media (min-width: 900px) {
	.layout {
		grid-template-columns: minmax(0, 1fr) 300px;
	}

	.layout--single-column {
		grid-template-columns: minmax(0, 1fr);
		max-width: calc(var(--gl-content) + var(--gl-gutter) * 2);
	}

	.layout--single-column .layout__side {
		display: none;
	}
}

.section-title {
	margin: 0 0 1.25rem;
	font-size: 1.375rem;
	border-left: 5px solid var(--gl-brand);
	padding-left: 0.6em;
}

/* ============================================================
   4. ヘッダ / ナビ
   ============================================================ */
.site-header {
	border-bottom: 1px solid var(--gl-line);
	background: #fff;
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: var(--gl-wide);
	min-height: var(--gl-header-h);
	margin: 0 auto;
	padding: 0.5rem var(--gl-gutter);
}

.site-header__brand {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.site-header__brand a {
	color: var(--gl-brand);
	text-decoration: none;
}

/* 本文の決まりでロゴを押せなくしている10記事（今のサイトと同じ。inc/footer-variant.php が body に印を付ける） */
.gl-logo-static .site-header__brand a {
	pointer-events: none;
}

/* ロゴ。高さを決めて幅は成り行きにする。
   width/height 属性を持つ画像なので、height だけ指定すると
   狭い画面で縦横比が崩れる。width: auto を必ず添える。 */
.site-header__brand--logo {
	display: flex;
	align-items: center;
	line-height: 1;
}

.site-header__brand--logo .custom-logo-link {
	display: block;
	line-height: 1;
}

.site-header__brand--logo img {
	display: block;
	width: auto;
	height: 46px;
	max-width: min(62vw, 260px);
	object-fit: contain;
}

@media (min-width: 900px) {
	.site-header__brand--logo img {
		height: 58px;
		max-width: 330px;
	}
}

/* ハンバーガーボタン。44px はタップ目標の下限で、
   これより小さいと押し間違いが増える。 */
.nav-toggle {
	position: relative;
	z-index: 1002;
	margin-left: auto;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	position: absolute;
	left: 11px;
	width: 22px;
	height: 2px;
	background: var(--gl-ink);
	transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle__bar {
	top: 21px;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
	content: "";
	left: 0;
}

.nav-toggle__bar::before {
	top: -7px;
}

.nav-toggle__bar::after {
	top: 7px;
}

/* 開いている間は×印に変える。何を押せば閉じるのかが
   ボタンを見ただけで分かる状態にしておく。 */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
	top: 0;
	transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
	top: 0;
	transform: rotate(-45deg);
}

/* 背景のオーバーレイ。メニュー外をタップして閉じられるようにする。 */
.nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(43, 43, 43, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s, visibility 0.25s;
}

.nav-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

/* スマホのドロワー。右から出す。
   display: none で切り替えないのは、アニメーションさせるためと、
   閉じた状態でもフォーカス管理の対象として存在させておくため。
   visibility: hidden にしてあるのでキーボード操作では拾われない。 */
.global-nav {
	position: fixed;
	z-index: 1001;
	top: 0;
	right: 0;
	width: min(84vw, 320px);
	height: 100dvh;
	padding: calc(var(--gl-header-h) + 1rem) 1.25rem 2rem;
	background: #fff;
	box-shadow: -4px 0 20px rgba(43, 43, 43, 0.15);
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.25s ease, visibility 0.25s;
}

.global-nav.is-open {
	transform: translateX(0);
	visibility: visible;
}

.global-nav__heading {
	margin: 0 0 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--gl-brand);
	font-size: 0.875rem;
	color: var(--gl-brand);
}

.global-nav__list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.global-nav__list a {
	display: block;
	padding: 0.75em 0.25em;
	color: var(--gl-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--gl-line);
	font-size: 0.9375rem;
}

.global-nav__list a::before {
	content: "›";
	margin-right: 0.5em;
	color: var(--gl-brand);
	font-weight: 700;
}

/* 子メニューは字下げして親との関係を示す */
.global-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 0 1em;
}

.global-nav__list .sub-menu a {
	font-size: 0.875rem;
	color: var(--gl-muted);
}

/* ドロワー内の検索。記事数が80あるので、
   メニューを開いた人が探し物をしている可能性は高い。 */
.global-nav__search {
	margin-bottom: 1.5rem;
}

/* ドロワーの人気記事。サムネイルを省いて順位と題名だけにする。
   ドロワーが縦に長くなるほど、下にあるカテゴリやサイト情報まで
   たどり着かなくなる。 */
.global-nav__popular {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.global-nav__popular-link {
	display: flex;
	align-items: flex-start;
	gap: 0.5em;
	padding: 0.55em 0.25em;
	border-bottom: 1px solid var(--gl-line);
	color: var(--gl-ink);
	font-size: 0.8125rem;
	line-height: 1.5;
	text-decoration: none;
}

/* 順位は記事一覧と同じ丸囲み。サイト内で同じ意味の印を
   同じ形にしておくと、どこで見ても順位だと分かる。 */
.global-nav__popular-rank {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.4rem;
	height: 1.4rem;
	margin-top: 0.05em;
	border: 2px solid var(--gl-brand);
	border-radius: 50%;
	color: var(--gl-brand);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1;
}

.global-nav__popular-link:hover .global-nav__popular-title {
	color: var(--gl-brand);
}

/* 開いている間は背面のページがスクロールしないようにする。
   ドロワーを閉じたら元の位置に戻れないと迷子になる。 */
body.nav-is-open {
	overflow: hidden;
}

@media (min-width: 900px) {
	/*
	 * デスクトップのヘッダーはロゴだけにする。
	 *
	 * 以前は横一列にカテゴリを並べていたが、カテゴリは25件あり、
	 * 上位10件を出しても折り返してヘッダーの高さが安定しなかった。
	 * 記事ページはサイドバーに、それ以外はフッターに同じ導線があるため、
	 * ヘッダーで重ねて持つ必要がない。
	 *
	 * スマホのドロワーはそのまま。狭い画面では行き先がここにしかない。
	 */
	.nav-toggle,
	.nav-overlay,
	.global-nav {
		display: none;
	}
}

/* ============================================================
   5. フッタ
   ============================================================ */
.site-footer {
	margin-top: 3rem;
	border-top: 4px solid var(--gl-brand);
	background: var(--gl-surface);
	color: var(--gl-ink);
}

.site-footer__inner {
	max-width: var(--gl-wide);
	margin: 0 auto;
	padding: 2.5rem var(--gl-gutter) 1.5rem;
}

/* 上段は3カラム。スマホでは積み上がる。 */
.footer-cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-bottom: 2rem;
}

@media (min-width: 700px) {
	.footer-cols {
		grid-template-columns: 1.4fr 1fr 1fr;
		gap: 2.5rem;
	}
}

.footer-col__title {
	margin: 0 0 0.75rem;
	padding-bottom: 0.4em;
	border-bottom: 1px solid var(--gl-line);
	font-size: 0.9375rem;
	color: var(--gl-brand);
}

.footer-brand__name {
	margin: 0 0 0.5rem;
	font-size: 1.0625rem;
	font-weight: 700;
}

/* フッタのロゴ。ヘッダーより一回り小さくする。
   フッタは読み終えたあとの領域で、ここで主張する必要はない。 */
.footer-brand__logo {
	margin: 0 0 0.6rem;
	line-height: 1;
}

.footer-brand__logo a {
	display: inline-block;
	line-height: 1;
}

.footer-brand__logo img {
	display: block;
	width: auto;
	height: 40px;
	max-width: min(60vw, 200px);
	object-fit: contain;
}

.footer-brand__name a {
	color: var(--gl-ink);
	text-decoration: none;
}

.footer-brand__desc {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.8;
	color: var(--gl-muted);
}

.footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
}

.footer-list li {
	margin: 0;
}

.footer-list a {
	display: block;
	padding: 0.4em 0;
	color: var(--gl-ink);
	text-decoration: none;
}

.footer-list a::before {
	content: "›";
	margin-right: 0.5em;
	color: var(--gl-brand-light);
}

.footer-list a:hover {
	color: var(--gl-brand);
	text-decoration: underline;
}

.footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	font-size: 0.8125rem;
}

.footer-nav__list a {
	color: var(--gl-muted);
	text-decoration: none;
}

.footer-nav__list a:hover {
	color: var(--gl-brand);
	text-decoration: underline;
}

.site-footer__bottom {
	padding-top: 1.25rem;
	border-top: 1px solid var(--gl-line);
	text-align: center;
}

.site-footer__copyright {
	margin: 0;
	font-size: 0.75rem;
	color: var(--gl-muted);
}

/* ============================================================
   6. パンくず
   ============================================================ */
/* 折り返さず横スクロールさせる。記事タイトルが長いと2〜3行に
   折り返して、本文が始まる前に無駄な高さを取ってしまうため。
   1行に固定すれば、パンくずが常に同じ高さで収まる。 */
.breadcrumb {
	margin-bottom: 1.25rem;
	font-size: 0.8125rem;
	color: var(--gl-muted);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--gl-line) transparent;
}

/* スクロールバーは細く。パンくずは1行しかないので、
   表と同じ太さだと文字より目立ってしまう。 */
.breadcrumb::-webkit-scrollbar {
	height: 4px;
}

.breadcrumb::-webkit-scrollbar-track {
	background: transparent;
}

.breadcrumb::-webkit-scrollbar-thumb {
	background: var(--gl-line);
	border-radius: 2px;
}

.breadcrumb__list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	width: max-content;
}

/* 各項目は縮めずそのままの幅で並べる。縮めると
   カテゴリ名が潰れて読めなくなる。 */
.breadcrumb__item {
	flex: none;
	white-space: nowrap;
}

.breadcrumb__item + .breadcrumb__item::before {
	content: "›";
	margin-right: 0.5rem;
	color: var(--gl-line);
}

.breadcrumb__item a {
	color: var(--gl-muted);
	text-decoration: none;
}

.breadcrumb__item a:hover {
	text-decoration: underline;
}

/* ============================================================
   7. 記事
   ============================================================ */
.entry__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.8125rem;
	color: var(--gl-muted);
}

/* 更新がある記事の日付。2つをまとめて2行目に落とす。
   flex の折り返しに任せると公開日だけが行頭に回り込み、
   いちばん古い日付がいちばん目立つ位置に来る。 */
.entry__dates {
	display: flex;
	flex-basis: 100%;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.75rem;
}

/* 併記のときだけ公開日を下げる。更新がない記事では公開日が
   唯一の鮮度情報なので、そちらは大きさを変えない。 */
.entry__dates .entry__date--published {
	font-size: 0.75rem;
	opacity: 0.7;
}

/* 広告表記。控えめにしすぎないこと。
   ステルスマーケティング規制で求められるのは「広告だと読者に分かること」
   なので、背景を塗って輪郭をはっきりさせ、日付より先に目に入る濃さにする。
   一方でブランドの赤やCTAのオレンジは使わない。宣伝の一部に見えると
   表示としての中立性が損なわれる。 */
.entry__pr {
	display: inline-flex;
	align-items: center;
	padding: 0.1em 0.55em;
	border-radius: 3px;
	background: var(--gl-muted);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.7;
}

.entry__title {
	margin: 0.5em 0 0.75em;
	font-size: clamp(1.5rem, 5.5vw, 2rem);
}

.entry__thumb {
	margin-bottom: 1.5rem;
}

.entry__thumb img {
	width: 100%;
	border-radius: var(--gl-radius);
}

.cat-label {
	display: inline-block;
	padding: 0.15em 0.7em;
	border-radius: 999px;
	background: var(--gl-brand);
	color: #fff;
	font-size: 0.75rem;
	line-height: 1.7;
	text-decoration: none;
}

.cat-label:hover {
	background: var(--gl-brand-light);
	color: #fff;
}

.entry__content > * {
	margin-block: var(--gl-gap);
}

.entry__content > :first-child {
	margin-top: 0;
}

.entry__content h2 {
	margin-top: 2.5rem;
	padding: 0.5em 0.75em;
	background: var(--gl-brand-pale);
	border-left: 5px solid var(--gl-brand);
	font-size: 1.375rem;
	scroll-margin-top: 1rem;
}

/* h3 も h2 と同じ「左の色付きバー」で示す。下線だと本文の区切りに
   見えて、見出しだと気づきにくかった。
   h2 と取り違えないよう、バーは細く、色は一段明るい赤にして、
   背景は付けない。太さ・濃さ・背景の3点で階層が読み取れる。 */
.entry__content h3 {
	margin-top: 2rem;
	padding-left: 0.6em;
	border-left: 4px solid var(--gl-brand-light);
	font-size: 1.1875rem;
	scroll-margin-top: 1rem;
}

.entry__content h4 {
	margin-top: 1.75rem;
	font-size: 1.0625rem;
	color: var(--gl-brand);
}

/* 関連記事 */
.related {
	margin-top: 3rem;
}

.related__title {
	margin: 0 0 1.25rem;
	font-size: 1.25rem;
	border-left: 5px solid var(--gl-brand);
	padding-left: 0.6em;
}

/* ============================================================
   8. 目次
   ============================================================ */
.toc {
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--gl-line);
	border-radius: var(--gl-radius);
	background: var(--gl-surface);
}

/* 目次を本文中に差し込むようにしたことで、この h2 が
   .entry__content h2（淡赤背景＋左バー）を拾ってしまう。
   目次の見出しは本文の見出しではないので、そちらの装飾は打ち消す。
   .entry__content を付けて詳細度を上げないと上書きできない。 */
.toc__title,
.entry__content .toc__title {
	margin: 0 0 0.75rem;
	padding: 0;
	border: 0;
	background: none;
	font-size: 1.0625rem;
	text-align: center;
	color: var(--gl-brand);
}

.toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: toc;
	font-size: 0.9375rem;
}

.toc__item {
	margin: 0.4em 0;
}

.toc__item--h2 {
	counter-increment: toc;
	font-weight: 700;
}

.toc__item--h2::before {
	content: counter(toc) ".";
	margin-right: 0.4em;
	color: var(--gl-brand);
}

.toc__item--h3 {
	padding-left: 1.5em;
	font-size: 0.875rem;
	font-weight: 400;
}

.toc__item--h3::before {
	content: "-";
	margin-right: 0.4em;
	color: var(--gl-line);
}

/* h4・h5 も拾う（今の目次と同じ）。h3 より一段ずつ下げる */
.toc__item--h4,
.toc__item--h5 {
	padding-left: 3em;
	font-size: 0.8125rem;
	font-weight: 400;
}

.toc__item--h5 {
	padding-left: 4.5em;
}

.toc__item--h4::before,
.toc__item--h5::before {
	content: "・";
	margin-right: 0.2em;
	color: var(--gl-line);
}

.toc__link {
	color: var(--gl-ink);
	text-decoration: none;
}

.toc__link:hover {
	color: var(--gl-brand);
	text-decoration: underline;
}

/* 6件目以降は畳む。display: none にしているのは、単に見えなくするだけだと
   キーボードのタブ移動で「見えないリンク」に飛んでしまうため。 */
.toc.is-collapsed .toc__item--extra {
	display: none;
}

/* 開閉ボタンは控えめに。目次そのものが主役で、これは補助でしかない。
   枠と背景を持つボタンの形にすると、目次の中で一番目立つ要素になって
   しまうため、下線付きの文字リンクとして置く。 */
.toc__toggle {
	display: block;
	margin: 0.5rem auto 0;
	padding: 0.2em 0.4em;
	border: 0;
	background: none;
	color: var(--gl-muted);
	font-size: 0.75rem;
	font-family: inherit;
	font-weight: 400;
	line-height: 1.6;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

.toc__toggle:hover {
	color: var(--gl-brand);
}

/* 開いているか閉じているかを、文言だけでなく記号でも示す */
.toc__toggle::after {
	content: "▼";
	margin-left: 0.35em;
	font-size: 0.7em;
}

.toc__toggle[aria-expanded="true"]::after {
	content: "▲";
}

/* ============================================================
   9. カード / 一覧
   ============================================================ */
.archive-header {
	margin-bottom: 1.75rem;
}

.archive-header__title {
	margin: 0;
	font-size: clamp(1.375rem, 5vw, 1.75rem);
}

.archive-header__desc {
	margin-top: 0.5em;
	color: var(--gl-muted);
	font-size: 0.9375rem;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--gl-gap);
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--gl-line);
	border-radius: var(--gl-radius);
	overflow: hidden;
	background: #fff;
}

.card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.card__link:hover .card__title {
	color: var(--gl-brand);
}

.card__thumb {
	aspect-ratio: 16 / 9;
	background: var(--gl-surface);
}

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

.card__thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--gl-brand-pale), var(--gl-surface));
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 0.875rem 1rem 1rem;
	flex: 1;
}

.card__title {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.card__date {
	margin-top: auto;
	font-size: 0.75rem;
	color: var(--gl-muted);
}

/* カテゴリラベルはカード全体のリンクの上に重ねる。
   リンクの入れ子は不正なHTMLになるため、position で外に出している。 */
.card > .cat-label {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
}

/* ============================================================
   10. サイドバー
   ============================================================ */
/* 長い記事では、読み進めるうちにサイドバーが画面外へ消えてしまう。
   追従させることで、読み終わりに近いところでも回遊先が目に入る。
   高さが画面より大きい場合に備えて overflow は付けない
   （付けると内部に二重スクロールが生まれて操作しづらくなる）。 */
@media (min-width: 900px) {
	.side-sticky {
		position: sticky;
		top: 1.25rem;
	}
}

/* ウィジェットはカードとして扱う。境界がはっきりしないと、
   どこまでが1つのまとまりなのかが読み取れない。 */
.widget {
	padding: 1.125rem 1.25rem 1.25rem;
	border: 1px solid var(--gl-line);
	border-radius: var(--gl-radius);
	background: #fff;
}

.widget + .widget {
	margin-top: 1.25rem;
}

.widget__title {
	position: relative;
	margin: 0 0 1rem;
	padding-left: 0.75rem;
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
}

/* 見出し左の赤いバー。記事本文の h2 と同じ語彙にして、
   サイト全体で「赤い縦棒＝見出し」と読めるようにする。 */
.widget__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	bottom: 0.15em;
	width: 4px;
	border-radius: 2px;
	background: var(--gl-brand);
}

.widget--search {
	background: var(--gl-brand-pale);
	border-color: var(--gl-brand-light);
}

/* --- 新着記事 --- */
.side-posts {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: side-rank;
}

.side-posts__item + .side-posts__item {
	margin-top: 0.875rem;
	padding-top: 0.875rem;
	border-top: 1px dashed var(--gl-line);
}

.side-posts__link {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 0.75rem;
	align-items: start;
	color: inherit;
	text-decoration: none;
}

/* サムネイルは正方形。横長より縦の情報量が減るぶん、
   同じ高さでタイトルを2〜3行見せられる。 */
.side-posts__thumb {
	position: relative;
	display: block;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: var(--gl-surface);
}

.side-posts__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.side-posts__thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--gl-brand-pale), var(--gl-cta-pale));
}

/* 順位バッジ。人気記事にだけ付ける。アクセス順で並んでいる一覧なので
   数字に意味がある。新着記事は日付を出しており、そちらに番号を振っても
   「1位」が何を指すのか読者に伝わらない。 */
.side-posts__rank {
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 0.3em;
	border-radius: 0 0 6px 0;
	background: var(--gl-brand);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1;
}

.side-posts__item:nth-child(1) .side-posts__rank,
.side-posts__item:nth-child(2) .side-posts__rank,
.side-posts__item:nth-child(3) .side-posts__rank {
	background: var(--gl-cta);
}

.side-posts__body {
	display: block;
	min-width: 0;
}

.side-posts__title {
	display: block;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.55;
}

.side-posts__meta {
	display: flex;
	align-items: center;
	gap: 0.4em;
	margin-top: 0.3em;
}

.side-posts__date {
	display: block;
	font-size: 0.6875rem;
	color: var(--gl-muted);
}

/* New ラベル。公開から日が浅い記事にだけ付く（判定は inc/template.php）。
   日付より先に目に入るよう、色を持たせて左に置く。 */
.side-posts__new {
	flex: none;
	padding: 0.05em 0.45em;
	border-radius: 3px;
	background: var(--gl-cta);
	color: #fff;
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.7;
	text-transform: uppercase;
}

.side-posts__link:hover .side-posts__title {
	color: var(--gl-brand);
}

.side-posts__link:hover .side-posts__thumb img {
	transform: scale(1.06);
}

/* --- カテゴリ --- */
.side-cats {
	list-style: none;
	margin: 0;
	padding: 0;
}

.side-cats__item + .side-cats__item {
	margin-top: 0.375rem;
}

.side-cats__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.55em 0.75em;
	border: 1px solid var(--gl-line);
	border-radius: 6px;
	background: var(--gl-surface);
	color: var(--gl-ink);
	font-size: 0.8125rem;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
}

.side-cats__link:hover {
	border-color: var(--gl-brand-light);
	background: var(--gl-brand-pale);
	color: var(--gl-brand);
}

.side-cats__name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 件数バッジ。カテゴリを選ぶ前に規模が分かると、
   1件しかないカテゴリを開いて落胆する、が減る。 */
.side-cats__count {
	flex: none;
	min-width: 1.75em;
	padding: 0.1em 0.45em;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--gl-line);
	color: var(--gl-muted);
	font-size: 0.6875rem;
	font-weight: 700;
	text-align: center;
	line-height: 1.6;
}

.side-cats__link:hover .side-cats__count {
	border-color: var(--gl-brand-light);
	color: var(--gl-brand);
}

/* --- タグ --- */
/* カテゴリのような縦一列ではなくピル状に並べる。タグは件数が少なく
   名前も短いので、1行1件だと余白ばかりの間延びした見た目になる。 */
.side-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.side-tags__item {
	margin: 0;
}

.side-tags__link {
	display: inline-block;
	padding: 0.3em 0.85em;
	border: 1px solid var(--gl-line);
	border-radius: 999px;
	background: var(--gl-surface);
	color: var(--gl-muted);
	font-size: 0.75rem;
	line-height: 1.7;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.side-tags__link::before {
	content: "#";
	margin-right: 0.2em;
	color: var(--gl-brand-light);
}

.side-tags__link:hover {
	border-color: var(--gl-brand-light);
	background: var(--gl-brand-pale);
	color: var(--gl-brand);
}

/* 404 とドロワーで使う、素朴なカテゴリ一覧 */
.cat-list,
.cat-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
}

.cat-list li {
	border-bottom: 1px solid var(--gl-line);
}

.cat-list ul {
	padding-left: 1em;
}

.cat-list a {
	display: inline-block;
	padding: 0.5em 0;
	color: var(--gl-ink);
	text-decoration: none;
}

.cat-list a:hover {
	color: var(--gl-brand);
}

/* ============================================================
   11. フォーム / ページャ / 404
   ============================================================ */
.search-form {
	display: flex;
	gap: 0.5rem;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	padding: 0.55em 0.75em;
	border: 1px solid var(--gl-line);
	border-radius: 4px;
	font-size: 16px; /* iOS で入力時に拡大されるのを防ぐ */
	font-family: inherit;
}

.search-form__submit {
	padding: 0.55em 1.1em;
	border: 0;
	border-radius: 4px;
	background: var(--gl-brand);
	color: #fff;
	font-size: 0.875rem;
	font-family: inherit;
	cursor: pointer;
}

.search-form__submit:hover {
	background: var(--gl-brand-light);
}

.wp-block-query-pagination,
.navigation.pagination {
	margin-top: 2.5rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.page-numbers {
	display: inline-block;
	min-width: 2.5em;
	padding: 0.4em 0.6em;
	border: 1px solid var(--gl-line);
	border-radius: 4px;
	text-align: center;
	text-decoration: none;
	color: var(--gl-ink);
}

.page-numbers.current {
	background: var(--gl-brand);
	border-color: var(--gl-brand);
	color: #fff;
}

.page-numbers:hover:not(.current) {
	border-color: var(--gl-brand);
	color: var(--gl-brand);
}

.notfound,
.no-results {
	padding: 2rem 0;
}

.notfound__title {
	margin: 0 0 0.75em;
	font-size: 1.5rem;
}

.notfound__subtitle {
	margin: 2rem 0 0.75rem;
	font-size: 1.125rem;
}

.no-results__text {
	margin-bottom: 1.5rem;
}

/* ============================================================
   12. コアブロック
   wp-block-library を読み込まないため、ここが実質のブロックCSS。
   ============================================================ */

/* 配置 */
.alignleft {
	float: left;
	margin: 0 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 1.5rem;
}

.aligncenter {
	margin-inline: auto;
	text-align: center;
}

.entry__content .alignwide {
	max-width: min(var(--gl-wide), 100%);
}

.entry__content .alignfull {
	max-width: none;
}

/* レイアウト（global-styles が出す定義のフォールバック） */
.is-layout-flow > * {
	margin-block-start: var(--gl-gap);
}

.is-layout-constrained > * {
	margin-block-start: var(--gl-gap);
}

.is-layout-flex {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gl-gap);
	align-items: center;
}

/* 段落・リスト・見出し */
.wp-block-paragraph {
	margin: var(--gl-gap) 0;
}

/*
 * クラスの付かない段落にも同じ余白を与える。
 *
 * wp-block-paragraph はブロックエディタが描画時に付けるもので、
 * クラシックエディタや REST から素の HTML で書いた記事には付かない。
 * そのままだとブラウザ既定の 1em になり、記事によって行間が変わる。
 *
 * 直下だけを対象にする。`.entry__content p` と書くと、引用や口コミなど
 * 部品の中の段落まで上書きしてしまう（クラス1つの指定より強いため）。
 */
.entry__content > p {
	margin: var(--gl-gap) 0;
}

.wp-block-list {
	padding-left: 1.5em;
}

.wp-block-list li {
	margin: 0.35em 0;
}

.wp-block-list li::marker {
	color: var(--gl-brand);
}

/* グループ */
.wp-block-group.has-background {
	padding: 1.25rem;
	border-radius: var(--gl-radius);
}

/* 表 — このサイトで最も重要なブロック（42記事で使用）。
   比較表は列が多く、スマホでは必ず横に溢れるため、
   ブロック単位で横スクロールさせる。

   横スクロールできることが見た目で分からないと、読者は右側の列
   （手数料や注意点など、比較の要になる情報）に一生たどり着かない。
   気づかせる仕掛けを2つ重ねている:

   1. 常に見えるスクロールバー（下記）
   2. 表の「外側の上」に置く案内（assets/js/main.js が付与）
      — 実際に溢れている表にだけ出す

   案内を表の中に重ねると、その裏の数値（換金率や手数料）が読めなくなる。
   比較表は数値を読ませるためのものなので、案内が情報を隠しては本末転倒。
   だから表の外に出している。 */
.wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}

/* スクロールバーは常に見えるようにするが、控えめに。
   macOS や iOS は既定で操作中しか出さないため、静止状態では
   手がかりがゼロになる。かといって色を付けると表の数値より
   目立ってしまうので、細いグレーにとどめる。 */
.wp-block-table::-webkit-scrollbar {
	height: 6px;
}

.wp-block-table::-webkit-scrollbar-track {
	background: transparent;
}

.wp-block-table::-webkit-scrollbar-thumb {
	background: rgba(43, 43, 43, 0.18);
	border-radius: 3px;
}

.wp-block-table {
	scrollbar-width: thin;
	scrollbar-color: rgba(43, 43, 43, 0.18) transparent;
}

/* 表を包む器。案内はこの中で、表の「前（上）」に置く。
   表の中に重ねないので、どのセルも隠さない。 */
.table-scroll-wrap {
	margin: var(--gl-gap) 0;
}

.table-scroll-wrap .wp-block-table {
	margin: 0;
}

/*
 * 横スクロールの案内。
 *
 * 既定は非表示で、JS が「実際に溢れている」と判定した器にだけ
 * .is-scrollable が付いて表示される。溢れていない表には出ない。
 * 画面幅が変われば溢れ具合も変わるので、リサイズのたびに付け外しする。
 */
/*
 * 案内は控えめに。あくまで補助で、本文や表の数値より目立ってはいけない。
 * 幅いっぱいに広げず内容ぶんの幅にとどめる。
 * 置くのは右端。スクロールして見に行く方向と、隠れている列がある側が
 * どちらも右なので、視線の動きと一致する。
 * 色も本文より弱い補助テキスト色にして、視線を奪わないようにする。
 * 気づかせる役割はスクロールバー（常時表示）と分担している。
 */
.table-scroll-hint {
	display: none;
	align-items: center;
	gap: 0.3em;
	width: fit-content;
	margin: 0 0 0.35rem auto;
	padding: 0;
	color: var(--gl-muted);
	font-size: 0.6875rem;
	font-weight: 400;
	line-height: 1.7;
}

/* inline-flex ではなく flex にする。inline-flex は行内要素なので
   margin-left: auto が効かず、右寄せにできない。 */
.table-scroll-wrap.is-scrollable .table-scroll-hint {
	display: flex;
}

/* 矢印で「横に動く」ことを示す。文字だけだと
   縦スクロールと取り違えられることがある。
   矢印だけを小さく往復させて、動かせることを伝える。
   振れ幅を 3px、周期を 1.6 秒と控えめにしているのは、
   本文を読んでいる最中に視界の端でちらつかせないため。 */
.table-scroll-hint::after {
	content: "→";
	animation: gl-nudge 1.6s ease-in-out infinite;
}

@keyframes gl-nudge {
	0%,
	100% {
		transform: translateX(0);
	}

	50% {
		transform: translateX(3px);
	}
}

/*
 * 罫線は border-collapse: collapse ではなく separate で引く。
 * collapse だと罫線がセルではなく表全体のものになるため、
 * 次項の「左端列の固定」をしたときに、固定した列の罫線だけが
 * 一緒に流れていってしまう。セルごとに引けば固定列にも付いてくる。
 */
.wp-block-table table {
	width: 100%;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.875rem;
	line-height: 1.6;
}

/*
 * 最小幅は表全体ではなくセルに掛ける。
 *
 * 表に min-width を掛けると、2列しかない表でも一律にその幅まで
 * 広がってしまい、スマホでは列数に関係なく全部が横スクロールになる。
 * セルに掛ければ「列が多い表だけが溢れる」という自然な挙動になる。
 *
 * 最小幅そのものが必要なのは、日本語がどこでも改行できるためで、
 * 指定しないとブラウザが1文字幅まで列を潰してしまい、
 * 縦に細長い読めない表になる。
 */
.wp-block-table th,
.wp-block-table td {
	min-width: 5em;
	padding: 0.6em 0.75em;
	border-right: 1px solid var(--gl-line);
	border-bottom: 1px solid var(--gl-line);
	text-align: left;
	vertical-align: middle;
	background: #fff;
}

/* 最初の行と最初の列にだけ、外周ぶんの罫線を足す */
.wp-block-table thead tr:first-child > *,
.wp-block-table tbody:first-child tr:first-child > *,
.wp-block-table table > tr:first-child > * {
	border-top: 1px solid var(--gl-line);
}

.wp-block-table tr > :first-child {
	border-left: 1px solid var(--gl-line);
}

.wp-block-table th {
	background: var(--gl-brand-pale);
	font-weight: 700;
	white-space: nowrap;
}

/* 行ごとの色違い（シマシマ）は表として並んでいるときだけ意味がある。
   カード表示ではカードが1枚ずつ独立しているので、1枚おきに背景が
   変わると「種類の違う何か」に見えてしまう。
   :not() で外しているのは、この指定のほうが is-ranking 側の
   打ち消しより詳細度が高く、そのままだと勝ってしまうため。 */
.wp-block-table:not(.is-ranking) tbody tr:nth-child(even) > * {
	background: var(--gl-surface);
}

.wp-block-table:not(.is-ranking) tbody tr:nth-child(even) th {
	background: var(--gl-brand-pale);
}

.wp-block-table.has-fixed-layout table {
	table-layout: fixed;
}

/*
 * 左端の列を固定する。
 *
 * 比較表を横にスクロールすると業者名が画面外へ消え、いま見ている数値が
 * どの業者のものか分からなくなる。行の見出しは比較表の要なので、
 * そこだけはスクロールしても残す。
 *
 * 固定するセルは背景が不透明でなければならない。透けると下を流れる
 * 別の列の文字が重なって、どちらも読めなくなる。
 * 上の各ルールで背景色を明示しているのはそのため。
 */
.wp-block-table tr > :first-child {
	position: sticky;
	left: 0;
	z-index: 2;
	width: 20%;
	/* 列数の多い表では 20% を指定してもブラウザが他の列に幅を配り、
	   業者名が最小幅まで潰れる。行の見出しとして読める下限を確保する。 */
	min-width: 6em;
	/* 幅を詰めた列で長い業者名が1行に収まらないので折り返しを許す */
	white-space: normal;
	/* 固定列と流れる部分の境目。影がないと、
	   スクロール中に列同士が地続きに見えて読み間違える。 */
	box-shadow: 3px 0 5px -2px rgba(43, 43, 43, 0.13);
}

/* 見出し行の左端は、見出しの背景と固定列の両方を兼ねる。
   他のセルより手前に置かないと、スクロール時に重なり順が崩れる。 */
.wp-block-table thead tr > :first-child {
	z-index: 3;
}

.wp-block-table figcaption {
	margin-top: 0.5em;
	font-size: 0.8125rem;
	color: var(--gl-muted);
	text-align: center;
}

/* 画像 */
.wp-block-image {
	margin: var(--gl-gap) 0;
}

.wp-block-image img {
	height: auto;
	border-radius: 4px;
}

.wp-block-image.is-style-rounded img {
	border-radius: 50%;
}

.wp-block-image figcaption {
	margin-top: 0.5em;
	font-size: 0.8125rem;
	color: var(--gl-muted);
	text-align: center;
}

/*
 * 引用。
 *
 * 「左に色付きの縦棒＋背景色」は h2 と h3 の見出しで使っている形なので、
 * 引用に同じ形を使うと見出しと区別がつかない。
 * 引用は縦棒をやめ、全周を囲む枠と引用符で示す。
 * 見出し＝左に棒、引用＝囲み枠、と役割ごとに形を分けておくと、
 * 記事を流し読みしても構造を取り違えない。
 */
.wp-block-quote {
	position: relative;
	margin: var(--gl-gap) 0;
	padding: 1.25rem 1.25rem 1.25rem 2.5rem;
	border: 1px solid var(--gl-line);
	border-radius: var(--gl-radius);
	background: var(--gl-surface);
	color: var(--gl-muted);
	font-size: 0.9375rem;
}

/* 引用符。装飾なので読み上げには乗せない（::before は
   支援技術によって読まれることがあるため、記号は薄い色にとどめ、
   内容の理解に必要な情報は持たせない）。 */
.wp-block-quote::before {
	content: "\201C";
	position: absolute;
	top: 0.08em;
	left: 0.45rem;
	color: var(--gl-line);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.75rem;
	line-height: 1;
}

.wp-block-quote > :first-child {
	margin-top: 0;
}

.wp-block-quote > :last-child {
	margin-bottom: 0;
}

/*
 * 出典表記（引用元：/ 参照元：/ 出典：）とキャプション。
 *
 * 本文と同じ大きさだと、読者が本文の続きだと思って読んでしまう。
 * 補足であることが一目で分かるよう、文字を落として色も弱める。
 * 段落の中に混ざっている出典は inc/content.php が span で印を付ける。
 */
.entry__content cite,
.entry__content .entry-cite,
.entry__content figcaption,
.entry__content .wp-element-caption {
	display: block;
	font-size: 0.75rem;
	line-height: 1.7;
	color: var(--gl-muted);
	font-style: normal;
}

/* 段落の途中から始まる出典は、行を変えて本文と切り離す。
   インラインのままだと本文と地続きに見える。 */
.entry__content .entry-cite {
	margin-top: 0.35em;
}

.entry__content .entry-cite a {
	color: var(--gl-muted);
	text-decoration: underline;
}

.entry__content .entry-cite a:hover {
	color: var(--gl-brand);
}

.wp-block-quote cite {
	margin-top: 0.5em;
}

/* ボタン（CTA） */
.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: var(--gl-gap) 0;
}

.wp-block-buttons.is-content-justification-center {
	justify-content: center;
}

/* 角丸は完全なオーバル。CTAは記事の他の要素（表・囲み枠）が
   すべて角の立った四角なので、丸くすると押せるものだと一目で分かる。 */
.wp-block-button__link {
	position: relative;
	display: inline-block;
	overflow: hidden;
	padding: 0.8em 2em;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--gl-cta);
	color: #fff;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	line-height: 1.5;
	/* 影は色を持たせず中立の黒にする。記事側で
	   色の名前が付いたクラス のように独自の背景色を
	   指定したボタンがあり、オレンジの影だと色がぶつかるため。 */
	box-shadow: 0 2px 6px rgba(43, 43, 43, 0.22);
	transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.wp-block-button__link:hover {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(43, 43, 43, 0.28);
}

.wp-block-button__link:active {
	transform: translateY(0);
	box-shadow: 0 1px 3px rgba(43, 43, 43, 0.22);
}

/*
 * 光沢が横切る演出。ボタンが動くと視線が向くので、記事を流し読み
 * している読者にも CTA の存在が伝わる。
 *
 * 一定間隔で1回だけ走らせているのは、動きっぱなしだと本文を読む
 * 邪魔になり、かえって鬱陶しく感じられるため。
 * 動きに弱い環境では末尾の prefers-reduced-motion で自動的に止まる。
 *
 * 白い光沢なので、背景が塗られている塗りつぶしボタンにだけ掛ける。
 * 枠線だけのボタン（背景が白）では光沢が見えず、意味がない。
 */
.wp-block-button__link::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 45%;
	height: 100%;
	background: linear-gradient(
		100deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.55) 50%,
		rgba(255, 255, 255, 0) 100%
	);
	transform: translateX(-160%) skewX(-18deg);
	animation: gl-shine 3.5s ease-in-out infinite;
	pointer-events: none;
}

@keyframes gl-shine {
	0% {
		transform: translateX(-160%) skewX(-18deg);
	}

	/* 30% で通り抜けたあとは画面外で待機し、次の周回まで間を空ける */
	30%,
	100% {
		transform: translateX(340%) skewX(-18deg);
	}
}

.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button__link.is-style-outline {
	background: transparent;
	border-color: currentColor;
	color: var(--gl-brand);
	box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--gl-brand-pale);
	color: var(--gl-brand);
	box-shadow: none;
}

/* 枠線だけのボタンは背景が白なので、白い光沢は見えない。
   走らせても何も起きないうえ描画コストだけ掛かるので止める。 */
.wp-block-button.is-style-outline .wp-block-button__link::after,
.wp-block-button__link.is-style-outline::after {
	content: none;
}

/* ギャラリー（2記事で使用） */
.wp-block-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: var(--gl-gap) 0;
	list-style: none;
	padding: 0;
}

.wp-block-gallery .wp-block-image {
	flex: 1 1 200px;
	margin: 0;
}

.wp-block-gallery .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 区切り */
.wp-block-separator {
	margin: 2rem auto;
	border: 0;
	border-top: 1px solid var(--gl-line);
}

/* 埋め込み */
.wp-block-embed__wrapper {
	position: relative;
}

.wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
}

.wp-block-embed.wp-has-aspect-ratio iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}


/* ============================================================
   13. このサイトの色
   ============================================================ */
:root {
	/* 記事ページの本文：ロゴの紺（#10193a）と金（#ca9a0c）。申込ボタンだけ赤。
	   白地に対する濃さ：紺 #1b2a63 は 12.6:1、リンクの青 #1d4fbf は 6.6:1、
	   ボタンの赤 #d81e3a は白抜き文字で 4.9:1。 */
	--gl-brand: #1b2a63;
	--gl-brand-dark: #10193a;
	--gl-brand-light: #5a72c4;
	--gl-brand-pale: #eef1f9;
	--gl-cta: #d81e3a;
	--gl-cta-dark: #b0142c;
	--gl-cta-pale: #fdecef;
	--gl-callout: #55618f;
	--gl-ink: #25283a;
	--gl-muted: #666a7a;
	--gl-line: #e1e2ea;
	--gl-surface: #f7f7fb;
	--gl-link: #1d4fbf;
	--gl-link-dark: #143a8f;
	--gl-gold: #a8780a;
	--gl-gold-light: #e2c35a;
	--gl-gold-pale: #fbf6e3;
	--gl-star: #e9a900;

	/* 今のサイトから引き継ぐ色（ヘッダー・フッター・トップページ）。
	   今の本番の画面から読み取った値で、変えていない。 */
	--gl-now-crimson: #c01933;
	--gl-now-cream: #fef5e0;
	--gl-now-footer: #e0e4eb;
	--gl-now-teal: #72c5b9;
	--gl-now-teal-dark: #5cb3a6;
	--gl-now-gold: #f8b62b;
	--gl-now-gold-dark: #e5a318;
	--gl-now-orange: #ffb36b;
	--gl-now-star: #ffb500;
	--gl-now-link: #4f96f6;
	--gl-now-rule: #e0e0e0;
}

a {
	color: var(--gl-link);
}

a:hover {
	color: var(--gl-link-dark);
}

/* ============================================================
   14. ヘッダー・フッター（全ページ共通：今のサイトの色）
   ============================================================ */
.site-header {
	border: 0;
	background: var(--gl-now-cream);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.18);
}

/* えんじの帯。サイトのひとこと紹介を載せる */
.site-header__tagline {
	margin: 0;
	background: var(--gl-now-crimson);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.5;
}

.site-header__tagline span {
	display: block;
	max-width: var(--gl-wide);
	margin: 0 auto;
	padding: 3px var(--gl-gutter);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-header__brand--logo img {
	height: 50px;
}

@media (min-width: 900px) {
	/* パソコンでは、今と同じくロゴを真ん中に置く */
	.site-header__inner {
		justify-content: center;
		min-height: 88px;
	}

	.site-header__brand--logo img {
		height: 70px;
		max-width: 400px;
	}
}

.site-footer {
	border-top: 4px solid var(--gl-now-crimson);
	background: var(--gl-now-footer);
}

/* いちばん下のサイト情報のメニューと著作権の帯は、今と同じクリーム色を画面の幅いっぱいに敷く
   （帯は幅を決めた入れ物の中にあるので、影を左右へ広げて塗り、はみ出しは clip-path で切る） */
.site-footer__inner {
	padding-bottom: 0;
}

.site-footer__bottom {
	padding: 1.25rem 0 1.5rem;
	border-top: 0;
	background: var(--gl-now-cream);
	box-shadow: 0 0 0 100vmax var(--gl-now-cream);
	clip-path: inset(0 -100vmax);
}

/* ============================================================
   15. 部品
   ============================================================ */

/* --- 申込ボタン（旧テーマの [btn] を受ける） --- */
.gl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35em;
	min-height: 46px;
	padding: 0.6em 1.5em;
	border-radius: 999px;
	background: var(--gl-cta);
	box-shadow: 0 3px 0 var(--gl-cta-dark);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}

.gl-btn::after {
	content: "";
	flex: none;
	width: 0.45em;
	height: 0.45em;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

.gl-btn:hover {
	background: var(--gl-cta-dark);
	color: #fff;
}

.gl-btn:active {
	box-shadow: none;
	transform: translateY(3px);
}

/* 表の中に並ぶ小さなボタン */
.gl-btn--small {
	min-height: 34px;
	padding: 0.3em 0.9em;
	border: 1.5px solid var(--gl-brand);
	background: #fff;
	box-shadow: none;
	color: var(--gl-brand);
	font-size: 0.8125rem;
	white-space: nowrap;
}

.gl-btn--small:hover {
	background: var(--gl-brand);
	color: #fff;
}

.gl-btn--small:active {
	transform: none;
}

/* --- おすすめ度の星（旧テーマの [value] を受ける） --- */
.gl-rate {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.15em 0.45em;
	color: var(--gl-muted);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.gl-stars {
	--gl-rate: 0;
	display: inline-block;
	width: 5em;
	height: 1em;
	background: linear-gradient(90deg, var(--gl-star) calc(var(--gl-rate) / 5 * 100%), #d5d7e0 0);
	font-size: 1rem;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.6l2.6 5.3 5.8.8-4.2 4.1 1 5.8-5.2-2.8-5.2 2.8 1-5.8L1.6 7.7l5.8-.8z'/%3E%3C/svg%3E") 0 0 / 1em 1em repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.6l2.6 5.3 5.8.8-4.2 4.1 1 5.8-5.2-2.8-5.2 2.8 1-5.8L1.6 7.7l5.8-.8z'/%3E%3C/svg%3E") 0 0 / 1em 1em repeat-x;
}

.gl-rate__num {
	color: var(--gl-gold);
	font-size: 1rem;
	font-weight: 800;
}

/* --- 区切り線（旧テーマの [tensen] を受ける） --- */
.gl-sep {
	height: 0;
	margin: 2.5rem 0;
	border: 0;
	border-top: 1px dashed #c9cbd8;
}

/* --- 案内の囲み（旧テーマの [list] を受ける） --- */
.gl-note {
	margin-top: 1.5rem;
	padding: 1rem 1.125rem;
	border: 1px solid var(--gl-gold-light);
	border-left: 5px solid var(--gl-gold-light);
	border-radius: var(--gl-radius);
	background: var(--gl-gold-pale);
	font-size: 0.9375rem;
}

.gl-note > :first-child {
	margin-top: 0;
}

.gl-note > :last-child {
	margin-bottom: 0;
}

/* --- 囲み（旧テーマの [box] を受ける） --- */
.gl-box {
	position: relative;
	margin-top: 1.75rem;
	padding: 1.125rem 1.125rem 1rem;
	border: 1px solid var(--gl-line);
	border-radius: var(--gl-radius);
	background: var(--gl-surface);
}

.gl-box--titled {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border: 2px solid var(--gl-brand);
	background: #fff;
}

.gl-box__title {
	position: absolute;
	top: -0.95em;
	left: 0.875rem;
	margin: 0;
	padding: 0.15em 1em;
	border-radius: 999px;
	background: var(--gl-brand);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.6;
}

.gl-box > :not(.gl-box__title):first-child,
.gl-box__title + * {
	margin-top: 0;
}

.gl-box > :last-child {
	margin-bottom: 0;
}

/* --- メモ（旧テーマの [memo]）と注意（旧テーマの [alert]） --- */
.gl-memo,
.gl-alert {
	margin-top: 1.75rem;
	padding: 1rem 1.125rem;
	border-radius: var(--gl-radius);
}

.gl-memo {
	border-left: 5px solid var(--gl-brand-light);
	background: var(--gl-brand-pale);
}

.gl-alert {
	border-left: 5px solid var(--gl-cta);
	background: var(--gl-cta-pale);
}

.gl-memo__title,
.gl-alert__title {
	display: flex;
	align-items: center;
	gap: 0.45em;
	margin: 0 0 0.4rem;
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.5;
}

.gl-memo__title {
	color: var(--gl-brand);
}

.gl-alert__title {
	color: var(--gl-cta-dark);
}

.gl-memo__title::before,
.gl-alert__title::before {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 1.5em;
	height: 1.5em;
	border-radius: 50%;
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1;
}

.gl-memo__title::before {
	content: "i";
	background: var(--gl-brand-light);
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
}

.gl-alert__title::before {
	content: "!";
	background: var(--gl-cta);
}

.gl-memo > :last-child,
.gl-alert > :last-child {
	margin-bottom: 0;
}

.gl-memo__title + *,
.gl-alert__title + * {
	margin-top: 0;
}

/* --- 本文の中に並べる記事カード（旧テーマの [card2]・[catpost] を受ける） ---
   本文の見出しの決まり（左の線）がカードの題に掛からないようにする */
.entry__content .card-grid {
	margin-top: 1.25rem;
}

.entry__content .card__title {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 0.9375rem;
}

/* ============================================================
   16. 旧テーマの本文の受け皿（今の本文に書かれているクラス）
   395ページの本文は書き換えない。本文に直に書かれたクラスの名前を、
   ここで見た目に結び付ける。
   ============================================================ */

/* --- 文字の飾り --- */
.entry__content .bold {
	font-weight: 700;
}

.entry__content .red {
	color: var(--gl-cta);
}

.entry__content .underyellow {
	background: linear-gradient(transparent 62%, #ffe88a 62%);
}

.entry__content .fs085em {
	font-size: 0.85em;
}

.entry__content .left {
	text-align: left;
}

/* 確認の印が付いた一文 */
.entry__content .check__icon {
	position: relative;
	margin-top: 1.5rem;
	padding-left: 1.75em;
	color: var(--gl-brand);
	font-weight: 700;
}

.entry__content .check__icon::before {
	content: "";
	position: absolute;
	top: 0.42em;
	left: 0;
	width: 1.2em;
	height: 1.2em;
	border-radius: 50%;
	background: var(--gl-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* --- 本文の素の要素（ブロックではない書き方） --- */
.entry__content > img,
.entry__content > p > img:only-child {
	display: block;
	margin-right: auto;
	margin-left: auto;
	border-radius: var(--gl-radius);
}

.entry__content ul:not([class]),
.entry__content ol:not([class]) {
	padding-left: 1.5em;
}

.entry__content ul:not([class]) > li,
.entry__content ol:not([class]) > li {
	margin: 0.3em 0;
}

.entry__content ul:not([class]) > li::marker {
	color: var(--gl-brand-light);
}

.entry__content ol:not([class]) > li::marker {
	color: var(--gl-brand);
	font-weight: 700;
}

.entry__content td ul:not([class]) {
	margin: 0;
}

.entry__content blockquote {
	margin: 1.5rem 0 0;
	padding: 1rem 1.125rem;
	border-left: 4px solid #c9cbd8;
	border-radius: 0 var(--gl-radius) var(--gl-radius) 0;
	background: var(--gl-surface);
	color: #474a5c;
	font-size: 0.9375rem;
}

.entry__content blockquote .hosoku {
	display: block;
	height: 0.5em;
}

/* --- パソコン用・スマホ用の出し分け --- */
.entry__content .sp {
	display: none;
}

@media (max-width: 599px) {
	.entry__content .pc {
		display: none;
	}

	.entry__content div.sp {
		display: block;
	}

	.entry__content br.sp {
		display: inline;
	}
}

/* --- 人気ランキング（3社）。枠・影・題の色は今のまま --- */
.entry__content .top_rank {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	margin-top: 3.5rem;
}

.entry__content .top_rank_box {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 1.75rem 0.875rem 1.125rem;
	border: 1px solid #ccc;
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 5px 0 #efefef;
}

.entry__content .top_rank_box .up,
.entry__content .top_rank_box .crown {
	margin: 0;
}

.entry__content .top_rank_box .crown {
	position: relative;
}

.entry__content .top_rank_box .crown img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	border-radius: 4px;
	object-fit: cover;
}

/* 順位の王冠。枠の上の辺にまたがせる */
.entry__content .top_rank_box .crown img.absolute {
	position: absolute;
	top: -3.9rem;
	left: 50%;
	z-index: 1;
	width: 90px;
	aspect-ratio: auto;
	border-radius: 0;
	object-fit: contain;
	transform: translateX(-50%);
}

.entry__content .top_rank_box .down {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	padding: 0.875rem 0 0;
	text-align: center;
}

.entry__content .top_rank_box .down h3 {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--gl-now-orange);
	font-size: 1.0625rem;
	line-height: 1.5;
}

.entry__content .top_rank_box .down p {
	margin: 0;
}

.entry__content .top_rank_box .down .gl-btn {
	width: 80%;
	margin-top: auto;
}

@media (max-width: 599px) {
	.entry__content .top_rank {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.entry__content .top_rank_box .down h3 {
		font-size: 1rem;
	}
}

/* --- 12社の比べる表。金の見出し・金色の数字は今のまま --- */
.entry__content .wp-block-table table.set10 {
	border: 2px solid var(--gl-now-rule);
}

.entry__content .wp-block-table table.set10 tr > th,
.entry__content .wp-block-table table.set10 tr > td {
	border: 0;
	border-right: 2px solid var(--gl-now-rule);
	border-bottom: 2px solid var(--gl-now-rule);
	background: #fff;
	color: var(--gl-ink);
	font-weight: 400;
	text-align: center;
	vertical-align: middle;
}

.entry__content .wp-block-table table.set10 tr > th.goldbox {
	padding: 0.625rem 0.25rem;
	background: var(--gl-now-gold);
	color: #252525;
	font-size: 0.8125rem;
	line-height: 1.4;
}

.entry__content .logobtn10 img {
	display: block;
	width: auto;
	max-width: 150px;
	max-height: 48px;
	margin: 0.25rem auto 0.5rem;
	object-fit: contain;
}

.entry__content .logobtn10 br {
	display: none;
}

.entry__content .goldtext,
.entry__content .goldtext_pct,
.entry__content .pinktext,
.entry__content .bluetext {
	font-size: 1.5625rem;
	font-weight: 400;
	font-feature-settings: "tnum";
	line-height: 1.2;
}

.entry__content .goldtext,
.entry__content .goldtext_pct {
	background: linear-gradient(-45deg, #f7de05, #da8e00, #edac06, #f7de05, #ecb802, #daaf08, #b67b03, #da8e00, #edac06, #f7de05, #ecb802, #edac06);
	-webkit-background-clip: text;
	background-clip: text;
	color: #da8e00;
	-webkit-text-fill-color: transparent;
}

.entry__content .goldtext_pct {
	font-size: 1.4375rem;
}

.entry__content .pinktext {
	color: #f4c7db;
}

.entry__content .bluetext {
	color: #ccebff;
}

.entry__content .sub {
	margin-left: 0.15em;
	color: #252525;
	font-size: 0.625rem;
}

.entry__content .point10 {
	font-size: 0.8125rem;
	line-height: 1.6;
}

.entry__content #lebel {
	max-width: 760px;
	margin: 0 auto;
}

.entry__content #lebel .wp-block-table table {
	border: 2px solid var(--gl-now-rule);
}

.entry__content #lebel .wp-block-table tr > td {
	padding: 0.25rem 1rem;
	border: 0;
	border-right: 2px solid var(--gl-now-rule);
	border-bottom: 2px solid var(--gl-now-rule);
	background: #fff;
	font-size: 0.75rem;
	font-weight: 400;
	text-align: center;
	vertical-align: middle;
}

/* ============================================================
   17. トップページ（今の色合い・1列）
   ============================================================ */

/* サイドバーなしの1列。幅は一覧と同じ */
@media (min-width: 900px) {
	.layout.gl-layout--front {
		grid-template-columns: minmax(0, 1fr);
	}
}

.gl-hero__inner {
	max-width: var(--gl-wide);
	margin: 0 auto;
	padding: 1.25rem var(--gl-gutter) 0;
}

.gl-hero__img {
	display: block;
	width: 100%;
	height: auto;
}

.gl-front a {
	color: var(--gl-now-link);
}

.gl-front a:hover {
	color: #2f7ae0;
}

.gl-front .red {
	color: #ee7b7b;
}

/* 見出し：真ん中寄せで、下に緑の短い線 */
.gl-front > h2 {
	position: relative;
	margin: 3.25rem 0 2.75rem;
	padding: 0;
	border: 0;
	background: none;
	font-size: 1.25rem;
	text-align: center;
}

.gl-front > h2:first-child {
	margin-top: 1rem;
}

.gl-front > h2::before {
	content: none;
}

.gl-front > h2::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -15px;
	left: 0;
	width: 60px;
	height: 5px;
	margin: 0 auto;
	border-radius: 2px;
	background: var(--gl-now-teal);
}

/* ボタン：緑（ランキング）と金（表の中）。角は小さく、影は薄く */
.gl-front .gl-btn {
	min-height: 44px;
	border-radius: 3px;
	background: var(--gl-now-teal);
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2), 0 2px 3px -2px rgba(0, 0, 0, 0.15);
	color: #fff; /* 上の「リンクは青」の決まりより強くする */
}

.gl-front .gl-btn::after {
	content: none;
}

.gl-front .gl-btn:hover {
	background: var(--gl-now-teal-dark);
	color: #fff;
}

.gl-front .gl-btn:active {
	box-shadow: none;
	transform: translateY(2px);
}

.gl-front .gl-btn--gold,
.gl-front .gl-btn--small {
	border: 0;
	background: var(--gl-now-gold);
	color: #fff;
}

.gl-front .gl-btn--gold:hover,
.gl-front .gl-btn--small:hover {
	background: var(--gl-now-gold-dark);
	color: #fff;
}

.gl-front .gl-btn--small {
	width: 88%;
	min-height: 32px;
	padding: 0.5em 0.25em;
	font-size: 0.75rem;
	font-weight: 400;
}

/* 星：今の黄色。点数は括弧つきの灰色 */
.gl-front .gl-rate {
	color: var(--gl-ink);
	font-weight: 700;
}

.gl-front .gl-stars {
	--gl-star: var(--gl-now-star);
}

.gl-front .gl-rate__num {
	color: #b5b5b5;
	font-size: 0.8125rem;
	font-weight: 400;
}

.gl-front .gl-rate__num::before {
	content: "(";
}

.gl-front .gl-rate__num::after {
	content: ")";
}

/* 案内の囲み：クリーム色の地に影 */
.gl-front .gl-note {
	padding: 0.85em 1em;
	border: 0;
	border-radius: 0;
	background: #fffaef;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
	font-size: 0.85em;
}

/* 区切り：灰色の点線 */
.gl-front .gl-sep {
	margin: 2.7rem 0;
	border-top: 2px dotted #dadada;
}

/* 記事カード：白地に影。題は灰色、日付は薄い灰色 */
.gl-front .card {
	border: 0;
	border-radius: 3px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

.gl-front .card__title {
	color: #555;
}

.gl-front .card__date {
	color: #b5b5b5;
}

.gl-front .cat-label {
	background: var(--gl-now-teal);
	color: #fff;
}

/* ============================================================
   18. サイドバーの足し
   ============================================================ */
.side-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.side-links li + li {
	border-top: 1px dashed var(--gl-line);
}

.side-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.6rem 0.125rem;
	color: var(--gl-ink);
	font-size: 0.875rem;
	line-height: 1.5;
	text-decoration: none;
}

.side-links a::after {
	content: "";
	flex: none;
	width: 0.4em;
	height: 0.4em;
	border-top: 2px solid #b3b6c6;
	border-right: 2px solid #b3b6c6;
	transform: rotate(45deg);
}

.side-links a:hover {
	color: var(--gl-link);
}

/* --- ボタンを包む段落（[btn]。旧テーマと同じく、横並びの印 yoko が無いときは段落で包む） --- */
.gl-btn-p {
	margin: 1.5rem 0 0;
	text-align: center;
}

.wp-block-table td .gl-btn-p,
.wp-block-table th .gl-btn-p {
	margin: 0.25rem 0 0;
}

.entry__content .top_rank_box .down .gl-btn-p {
	width: 100%;
	margin: auto 0 0;
}

/* --- 案内の囲みの題（[list title=""]） --- */
.gl-note__title {
	margin: 0 0 0.4rem;
	color: var(--gl-gold);
	font-weight: 800;
}

/* ============================================================
   19. 段3で足した部品
   ショートコードの形は inc/compat-more.php。色は記事の紺と金。
   ============================================================ */

/* --- 手順の年表（[timeline][tl]） --- */
.gl-tl {
	margin-top: 1.75rem;
	padding-left: 0.25rem;
}

.gl-tl__item {
	position: relative;
	padding: 0 0 1.5rem 1.75rem;
	border-left: 3px solid var(--gl-brand-pale);
}

.gl-tl__item:last-child {
	padding-bottom: 0.25rem;
	border-left-color: transparent;
}

.gl-tl__item::before {
	content: "";
	position: absolute;
	top: 0.2rem;
	left: -0.6rem;
	width: 1.05rem;
	height: 1.05rem;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--gl-brand);
	box-shadow: 0 0 0 2px var(--gl-brand-pale);
}

.gl-tl__label {
	margin: 0;
	color: var(--gl-gold);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.5;
}

.gl-tl__title {
	margin: 0.1rem 0 0;
	color: var(--gl-brand);
	font-weight: 700;
	line-height: 1.6;
}

.gl-tl__main {
	margin-top: 0.5rem;
}

.gl-tl__main > :first-child {
	margin-top: 0;
}

/* --- 中央寄せ（[center]） --- */
.gl-center,
.entry__content .center,
.entry__content .bcenter,
.entry__content .tcenter {
	text-align: center;
}

/* --- 吹き出し（[say]） --- */
.gl-say {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
	margin-top: 1.75rem;
}

/*
 * 右の吹き出しは、HTML の並びが「本文 → 顔」（inc/compat-more.php）なので、そのまま並べれば顔が右に来る。
 * ここで並びを逆にすると、顔が左・三角が右の外へ出て、狭い画面で横にはみ出す。
 */

.gl-say__face {
	flex: none;
	width: 72px;
	margin: 0;
	text-align: center;
}

.gl-say__face img {
	display: block;
	width: 72px;
	height: 72px;
	border: 2px solid var(--gl-line);
	border-radius: 50%;
	background: #fff;
	object-fit: cover;
}

.gl-say__name {
	display: block;
	margin-top: 0.25rem;
	color: var(--gl-muted);
	font-size: 0.6875rem;
	line-height: 1.3;
}

.gl-say__body {
	position: relative;
	flex: 1;
	min-width: 0;
	padding: 0.875rem 1rem;
	border: 1px solid var(--gl-line);
	border-radius: 12px;
	background: var(--gl-surface);
}

.gl-say__body::before {
	content: "";
	position: absolute;
	top: 1.25rem;
	left: -7px;
	width: 12px;
	height: 12px;
	border-bottom: 1px solid var(--gl-line);
	border-left: 1px solid var(--gl-line);
	background: var(--gl-surface);
	transform: rotate(45deg);
}

.gl-say--right .gl-say__body::before {
	right: -7px;
	left: auto;
	transform: rotate(-135deg);
}

.gl-say__body > :first-child {
	margin-top: 0;
}

.gl-say__body > :last-child {
	margin-bottom: 0;
}

/* --- 記事への横長のリンク（[kanren]） --- */
.gl-linkto {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	margin-top: 1.5rem;
	padding: 0.625rem;
	border: 1px solid var(--gl-line);
	border-radius: var(--gl-radius);
	background: #fff;
	box-shadow: 0 6px 16px -14px rgba(16, 25, 58, 0.6);
	color: var(--gl-ink);
	text-decoration: none;
	transition: border-color 0.15s;
}

.gl-linkto:hover {
	border-color: var(--gl-brand-light);
	color: var(--gl-ink);
}

.gl-linkto__thumb {
	flex: none;
	width: 96px;
}

.gl-linkto__thumb img,
.gl-linkto__noimg {
	display: block;
	width: 96px;
	height: 72px;
	border-radius: 4px;
	background: var(--gl-surface);
	object-fit: cover;
}

.gl-linkto__body {
	min-width: 0;
}

.gl-linkto__label {
	display: inline-block;
	padding: 0 0.6em;
	border-radius: 999px;
	background: var(--gl-brand);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.7;
}

.gl-linkto__title {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.55;
}

/* --- 開閉の囲み（[open]・[custom_acc] と、本文に直書きの .ac） --- */
.gl-acc,
.entry__content .ac {
	margin-top: 1.5rem;
	border: 1px solid var(--gl-line);
	border-radius: var(--gl-radius);
	background: #fff;
}

.gl-acc__title,
.entry__content .ac-ttl {
	position: relative;
	display: block;
	padding: 0.875rem 3rem 0.875rem 1rem;
	border-radius: var(--gl-radius);
	background: var(--gl-brand-pale);
	color: var(--gl-brand);
	font-weight: 700;
	line-height: 1.6;
	cursor: pointer;
	list-style: none;
}

.gl-acc__title::-webkit-details-marker {
	display: none;
}

.gl-acc__title::before,
.gl-acc__title::after,
.entry__content .ac-ttl::before,
.entry__content .ac-ttl::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 1.1rem;
	width: 14px;
	height: 2px;
	margin-top: -1px;
	background: var(--gl-brand);
	transition: transform 0.2s;
}

.gl-acc__title::after,
.entry__content .ac-ttl::after {
	transform: rotate(90deg);
}

.gl-acc[open] > .gl-acc__title,
.entry__content .ac-ttl.active {
	border-radius: var(--gl-radius) var(--gl-radius) 0 0;
}

.gl-acc[open] > .gl-acc__title::after,
.entry__content .ac-ttl.active::after {
	transform: rotate(0deg);
}

.gl-acc__body,
.entry__content .ac-item {
	padding: 1rem 1.125rem;
}

.gl-acc__body > :first-child,
.entry__content .ac-item > :first-child,
.entry__content .ac-content > :first-child {
	margin-top: 0;
}

.gl-acc__body > :last-child,
.entry__content .ac-item > :last-child {
	margin-bottom: 0;
}

/* --- 2列・3列の並び（[yoko2]・[yoko3]・[cell]） --- */
.gl-cols {
	display: grid;
	gap: 1rem;
	margin-top: 1.5rem;
}

.gl-cols--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gl-cols--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gl-cols__cell > :first-child {
	margin-top: 0;
}

.gl-cols__cell .card-grid {
	grid-template-columns: 1fr;
	margin-top: 0;
}

@media (max-width: 599px) {
	.gl-cols--2,
	.gl-cols--3 {
		grid-template-columns: 1fr;
	}
}

/* --- 評価の囲み（[rate]） --- */
.gl-ratebox {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-top: 1.5rem;
	padding: 1rem 1.125rem;
	border: 1px solid var(--gl-gold-light);
	border-radius: var(--gl-radius);
	background: var(--gl-gold-pale);
}

.gl-ratebox__title {
	margin: 0 0 0.25rem;
	color: var(--gl-gold);
	font-weight: 800;
}

.gl-ratebox .gl-rate {
	justify-content: space-between;
}

/* --- 題の無い注意・補足の囲み（[boxWord]） --- */
.gl-notitle > :first-child {
	margin-top: 0;
}

/* --- 案内の囲み（ランキングの差し込みの「おすすめ業者を徹底解説」） --- */
.gl-box--banner {
	border-color: var(--gl-cta);
}

.gl-box--banner > .gl-box__title {
	background: var(--gl-cta);
}

.gl-box__body {
	font-size: 0.9375rem;
}

.gl-box__body img {
	display: block;
	margin: 0.25rem auto 1rem;
	border-radius: 4px;
}

/* --- ランキングの差し込み：用語集のカテゴリー・五十音の並び（.glossary_waku .items .rt3） --- */
.entry__content .glossary_waku {
	margin-top: 2rem;
}

.entry__content .glossary_waku > h2:first-child {
	margin-top: 0;
}

.entry__content ul.items {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.entry__content ul.items > li {
	flex: 0 0 calc((100% - 1rem) / 3);
	margin: 0;
}

.entry__content ul.items > li::marker {
	content: none;
}

.entry__content ul.items > li > a {
	display: block;
	padding: 0.45rem 0.75rem;
	border: 1px solid var(--gl-line);
	border-radius: 6px;
	background: #fff;
	color: var(--gl-brand);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
}

.entry__content ul.items > li > a:hover {
	border-color: var(--gl-brand-light);
	background: var(--gl-brand-pale);
}

@media (max-width: 599px) {
	.entry__content ul.items > li {
		flex-basis: calc((100% - 0.5rem) / 2);
	}
}

/* --- ランキングの差し込み：カテゴリー・業者の一覧（.widget-menu） --- */
.entry__content .widget-menu__title {
	margin: 0;
	padding: 0.6rem 1rem;
	border-radius: var(--gl-radius) var(--gl-radius) 0 0;
	background: var(--gl-brand);
	color: #fff;
	font-weight: 700;
	line-height: 1.5;
}

.entry__content ul.widget-menu {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--gl-line);
	border-top: 0;
	border-radius: 0 0 var(--gl-radius) var(--gl-radius);
	background: var(--gl-line);
	list-style: none;
	overflow: hidden;
}

.entry__content ul.widget-menu > li {
	margin: 0;
	background: #fff;
}

.entry__content ul.widget-menu > li::marker {
	content: none;
}

.entry__content ul.widget-menu > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 0.7rem 0.5rem;
	color: var(--gl-ink);
	font-size: 0.8125rem;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
}

.entry__content ul.widget-menu > li > a:hover {
	background: var(--gl-brand-pale);
	color: var(--gl-brand);
}

.entry__content ul.widget-menu br.sp {
	display: none;
}

@media (max-width: 599px) {
	.entry__content ul.widget-menu br.sp {
		display: inline;
	}
}

/* ============================================================
   20. 旧テーマの本文の受け皿（続き）
   今の本文に直に書かれたクラス。意味は今のサイトと同じにし、色と形はこのテーマに合わせる。
   ============================================================ */

/* --- 余白 --- */
.entry__content .ptb10 { padding-top: 10px; padding-bottom: 10px; }
.entry__content .ptb20 { padding-top: 20px; padding-bottom: 20px; }
.entry__content .ptb4020 { padding-top: 40px; padding-bottom: 20px; }
.entry__content .ptb010 { padding-right: 10px; padding-left: 10px; }
.entry__content .p020 { padding-right: 20px; padding-left: 20px; }
.entry__content .pt5 { padding-top: 5px; }
.entry__content .m300 { margin-top: 30px; margin-bottom: 30px; }
.entry__content .m4030 { margin-top: 40px; margin-bottom: 30px; }
.entry__content .m40000 { margin-top: 40px; }
.entry__content .m00100 { margin-bottom: 10px; }
.entry__content .mtb00200 { margin-bottom: 20px; }
.entry__content .mtb20 { margin-top: 20px; margin-bottom: 20px; }
.entry__content .mb30 { margin-bottom: 30px; }
.entry__content p.m_none,
.entry__content .m_none { margin: 0; }

/* --- 文字 --- */
.entry__content .strong { font-weight: 700; }
.entry__content .f80pct { font-size: 80%; }
.entry__content .sText { font-size: 0.8em; }
.entry__content .ls-5 { letter-spacing: 5px; }
.entry__content .ls-10 { letter-spacing: -3px; }
.entry__content .pink { color: #d6578e; }
.entry__content .underorange { background: linear-gradient(transparent 62%, #fbd39a 62%); }
.entry__content .yellow_undermark { background: linear-gradient(transparent 62%, #ffe88a 62%); }
.entry__content .tapeset_black { color: #555; font-size: 1.125rem; }

/* チェックの印（本文の <i class="fa fa-check">）。アイコンの文字（Font Awesome）は読み込まないので、ほかの印は出さない */
.entry__content i.fa,
.entry__content i.fas,
.entry__content i.fab {
	display: none;
}

.entry__content i.fa.fa-check {
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 0.25em;
	background: var(--gl-brand);
	vertical-align: -0.1em;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4L16 6' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4L16 6' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- 手順の並びの中の画像（番号付きの並びの各項目に「文 → 画像」と書いた形。22ページ・257か所） ---
   今のサイトと同じく、画像は文の次の行に出し、上を少しあける。
   決まりが無いと、文が短い項目で画像が文の横に並んでしまう。 */
.entry__content ol img {
	display: block;
	margin-top: 10px;
}

/* --- 出し分け・並び --- */
.entry__content .sp-only { display: none; }
@media (max-width: 599px) {
	.entry__content .sp-only { display: block; }
}
.entry__content .oh { overflow: hidden; }
.entry__content .wrap { width: 100%; margin-right: auto; margin-left: auto; }
.entry__content .flexset { display: flex; flex-wrap: wrap; }
.entry__content .table__wrapper { width: 100%; overflow-x: auto; }
.entry__content .table__container .ul__kaitori {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.entry__content ol.no_border { border: 0; }
.entry__content ul.giftset { margin: 0; padding: 0 1em 0 2em; }

/* --- 見出しの形（本文の h2・h3・p に付いたクラス） --- */

/* 見出しのような段落（p.hh）。h2.hh・h2.hh32 などは、このテーマのふつうの見出しで出す */
.entry__content p.hh {
	margin: 2.5em 0 1em;
	color: var(--gl-brand);
	font-size: 1.1em;
	font-weight: 700;
}

/* チェックの印つきの見出し（.hh30） */
.entry__content .hh30 {
	position: relative;
	padding-left: 1.6em;
}

.entry__content .hh30::before {
	content: "";
	position: absolute;
	top: 0.3em;
	left: 0;
	width: 1.15em;
	height: 1.15em;
	border-radius: 50%;
	background: var(--gl-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* よくある質問の Q と A（.hh.hhq・.hh.hha） */
.entry__content .hh.hhq,
.entry__content .hh.hha {
	position: relative;
	margin: 1.5rem 0 0;
	padding: 0.35rem 0 0 3rem;
	border: 0;
	background: none;
	font-size: 1.0625rem;
	line-height: 1.6;
}

.entry__content .hh.hhq::before,
.entry__content .hh.hha::before {
	content: "Q";
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	background: var(--gl-brand);
	color: #fff;
	font-size: 1.0625rem;
	font-weight: 800;
}

.entry__content .hh.hha::before {
	content: "A";
	background: var(--gl-cta);
}

/* 下線の見出し（.hh7）・金の見出し（.gold22） */
.entry__content .hh7 {
	padding: 0 0 0.4em;
	border: 0;
	border-bottom: 3px solid var(--gl-brand);
	background: none;
}

.entry__content .gold22 {
	padding: 0.5em 0.75em;
	border: 0;
	border-top: 3px solid var(--gl-gold-light);
	border-bottom: 3px solid var(--gl-gold-light);
	background: var(--gl-gold-pale);
}

/* 真ん中寄せで下に短い線の見出し（.usen。今のトップの見出しと同じ形） */
.entry__content .usen {
	position: relative;
	margin-bottom: 2.75rem;
	padding: 0;
	border: 0;
	background: none;
	text-align: center;
}

.entry__content .usen::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -15px;
	left: 0;
	width: 60px;
	height: 5px;
	margin: 0 auto;
	border-radius: 2px;
	background: var(--gl-now-teal);
}

/* Amazon のアイコンつきの見出し（.amazoncard。トップのアマゾンギフト券の見出し） */
.entry__content .amazoncard::before {
	content: "";
	display: inline-block;
	width: 45px;
	height: 1.4em;
	margin-right: 0.5em;
	background: url("/wp-content/uploads/2019/11/amazon.png") center / contain no-repeat;
	vertical-align: middle;
}

/* --- 囲み（本文に直書きの旧テーマの囲み .sng-box と、ほかのテーマの書き方の囲み） --- */
.entry__content .sng-box,
.entry__content .blank-box,
.entry__content .box-simple {
	position: relative;
	margin-top: 1.75rem;
	padding: 1.125rem 1.125rem 1rem;
	border: 1px solid var(--gl-line);
	border-radius: var(--gl-radius);
	background: var(--gl-surface);
}

.entry__content .sng-box:has(> .box-title),
.entry__content .box-simple:has(> .box-simpleTtl) {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border: 2px solid var(--gl-brand);
	background: #fff;
}

.entry__content .sng-box > .box-title,
.entry__content .box-simple > .box-simpleTtl {
	position: absolute;
	top: -0.95em;
	left: 0.875rem;
	margin: 0;
	padding: 0.15em 1em;
	border-radius: 999px;
	background: var(--gl-brand);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.6;
}

.entry__content .sng-box p {
	margin-top: 0.5em;
}

.entry__content .sng-box > :last-child,
.entry__content .sng-box .box-content > :last-child,
.entry__content .blank-box > :last-child {
	margin-bottom: 0;
}

.entry__content .blank-box.bb-red {
	border-left: 5px solid var(--gl-cta);
	background: var(--gl-cta-pale);
}

.entry__content .blank-box.bb-check,
.entry__content .blank-box.bb-tab {
	border-left: 5px solid var(--gl-brand-light);
	background: var(--gl-brand-pale);
}

/* --- 業者のおすすめ度の帯（.osusume） --- */
.entry__content .osusume {
	align-items: center;
	gap: 1rem;
	margin-top: 1.25rem;
	padding: 0.75rem 1rem;
	border-radius: 15px;
	background: var(--gl-gold-pale);
}

.entry__content .osusume-left {
	flex: 0 0 auto;
	width: auto;
}

.entry__content .osusume-left img {
	display: block;
	width: 80px;
	height: auto;
}

.entry__content .osusume-right,
.entry__content .osusume-right2 {
	flex: 1;
	min-width: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.6;
}

.entry__content .osusume-right .goldtext {
	margin-left: 0.5em;
	font-size: 1.75rem;
}

/* --- 申込ボタン（本文に直書きの .cta_btn05・.shiny_btn01） --- */
.entry__content .cta_btn05,
.entry__content .shiny_btn01 {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	max-width: 100%;
	margin-top: 1rem;
	padding: 0.85em 1.75em;
	border-radius: 999px;
	background: var(--gl-cta);
	box-shadow: 0 3px 0 var(--gl-cta-dark);
	color: #fff;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

.entry__content .cta_btn05:hover,
.entry__content .shiny_btn01:hover {
	background: var(--gl-cta-dark);
	color: #fff;
}

.entry__content .cta_btn05 p {
	margin: 0;
}

.entry__content .cta_btn05 .cta_btn05_copy {
	padding: 0.15em 0.7em;
	border-radius: 999px;
	background: #fff;
	color: var(--gl-cta);
	font-size: 0.8125rem;
}

/* --- 表のタブ（本文に直書きの .tab-buttons・.tab-button・.tab-content。動きは main.js） --- */
.entry__content .tab-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-top: 1.5rem;
}

.entry__content .tab-button {
	padding: 0.6rem 1.1rem;
	border: 0;
	border-radius: 6px 6px 0 0;
	background: var(--gl-brand-pale);
	color: var(--gl-brand);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
}

.entry__content .tab-button.active {
	background: var(--gl-brand);
	color: #fff;
}

.entry__content .tab-content {
	display: none;
}

.entry__content .tab-content.active {
	display: block;
}

/* タブの中身の枠（今のサイトと同じく、白地に細い線。左上の角だけタブにつなげる） */
.entry__content .tab-content-wrapper {
	padding: 1.25rem;
	border: 1px solid var(--gl-line);
	border-radius: 0 var(--gl-radius) var(--gl-radius);
	background: #fff;
}

/* 表の中の小さい文字（.fset。今のサイトと同じく、スマホではさらに小さく） */
.entry__content :is(th, td).fset {
	font-size: 0.9375rem;
}

@media (max-width: 599px) {
	.entry__content :is(th, td).fset {
		font-size: 0.75rem;
	}
}

/* --- 段7（全ページの比べ）で見つけた、今のサイトに見た目の決まりがある本文のクラスと id --- */

/*
 * .sns-btn：今のサイトでは共有ボタンを隠す決まり（.sns-btn{display:none}）が本文の囲みにも当たり、
 * 中の文（「プロが厳選するギフト券買取店」2記事）は画面に出ていない。今と同じく出さない。
 */
.entry__content .sns-btn {
	display: none;
}

/* #tapetag：黄色いテープの見出し（「優良店舗ランキング」2記事）。今のサイトと同じ色と傾き */
.entry__content #tapetag {
	position: relative;
	margin: 2rem 0 1.25rem;
	padding: 0.1em 0.5em;
	background: #f0e800;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	color: #333;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.6;
	text-align: center;
	transform: rotate(-1.5deg) skew(-3deg);
}

@media (max-width: 599px) {
	.entry__content #tapetag {
		font-size: 1.25rem;
	}
}

/* 小さい順位の王冠（.absolutemini・幅 50px。2記事）。業者の画像の上の辺にまたがせる */
.entry__content .top_rank_box .crown img.absolutemini {
	position: absolute;
	top: -1.75rem;
	left: 50%;
	z-index: 1;
	width: 50px;
	aspect-ratio: auto;
	border-radius: 0;
	object-fit: contain;
	transform: translateX(-50%);
}

.entry__content .top_rank_box .crown:has(> img.absolutemini) {
	margin-top: 1.25rem;
}

/* 業者の一覧の表の行の高さ（#companypage・#lebel の .height0。今のサイトと同じ高さ） */
.entry__content :is(#companypage, #lebel) table .height0 {
	height: 50px;
	font-size: 0.75rem;
}

/* --- そのほか --- */
.entry__content .image-horizontal-scroll {
	display: flex;
	gap: 1rem;
	padding-bottom: 0.5rem;
	overflow-x: auto;
}

.entry__content .glossary {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}

/* ============================================================
   21. ページの型
   型ごとの切り替えは inc/footer-variant.php。
   ============================================================ */

/* --- スマホの画面の下の固定の案内（今のサイトと同じく、幅 767px 以下だけ） --- */
.gl-sp-banner {
	display: none;
}

@media (max-width: 767px) {
	.gl-sp-banner {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 900;
		display: block;
		padding: 1.5% 1.5% calc(2% + env(safe-area-inset-bottom, 0px));
		background: rgba(0, 0, 0, 0.5);
		text-align: center;
	}

	.gl-sp-banner a {
		display: block;
	}

	.gl-sp-banner img {
		display: block;
		width: 100%;
		max-width: 650px;
		height: auto;
		margin: 0 auto;
	}

	/* 本文とフッターの終わりが案内に隠れないように、下を案内の高さぶんあける */
	body.has-sp-banner {
		padding-bottom: calc(34vw + env(safe-area-inset-bottom, 0px));
	}
}

/* --- カテゴリーの一覧：子のカテゴリーの並びと、説明2 --- */
.archive-header__children {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.archive-header__desc > :first-child,
.archive-extra > :first-child {
	margin-top: 0;
}

.archive-extra {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 2px dotted #dadada;
}

/* --- トップと同じ見た目の型の PR の札（売買サイトのランキング） --- */
.gl-front > .entry__meta {
	margin: 0 0 1rem;
}

/* --- 売買サイトのランキング：3サイトの見出しは h2（トップの人気ランキングは h3） --- */
.entry__content .top_rank_box .down h2 {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--gl-now-orange);
	font-size: 1.0625rem;
	line-height: 1.5;
	text-align: center;
}

.entry__content .top_rank_box .down h2::before,
.entry__content .top_rank_box .down h2::after {
	content: none;
}

.entry__content .top_rank_box .down h2 span {
	display: block;
	margin-top: 0.25rem;
	color: var(--gl-ink);
	font-size: 0.8125rem;
	font-weight: 400;
}

/* --- おすすめ業者の比べのページ（/osusume4sen/）：業者のカードを真ん中に縦に並べる（今のサイトと同じ並び） --- */
.entry__content .top_rank4sen {
	margin-top: 3.5rem;
}

.entry__content .wrap4sen {
	max-width: 600px;
	margin-right: auto;
	margin-left: auto;
}

.entry__content .top_rank_box4sen {
	position: relative;
	margin: 0 auto 3.75rem;
	padding: 1.75rem 0.875rem 1.25rem;
	border: 1px solid #ccc;
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 5px 0 #efefef;
	text-align: center;
}

.entry__content .top_rank_box4sen .up,
.entry__content .top_rank_box4sen .crown {
	position: relative;
	margin: 0;
}

/* 順位の王冠。カードの上の辺にまたがせる */
.entry__content .top_rank_box4sen .crown img.absolute {
	position: absolute;
	top: -3.9rem;
	left: 50%;
	z-index: 1;
	width: 90px;
	transform: translateX(-50%);
}

.entry__content .top_rank_box4sen .crown img:not(.absolute) {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
	padding: 0;
}

.entry__content .top_rank_box4sen .down h3 {
	margin: 1rem 0 0;
	padding: 0;
	border: 0;
	color: var(--gl-now-orange);
	font-size: 1.0625rem;
	line-height: 1.5;
}

.entry__content .top_rank_box4sen #osusume .wp-block-table {
	margin-top: 1rem;
}

.entry__content .top_rank_box4sen table.giftken th {
	background: var(--gl-surface);
	color: var(--gl-muted);
	font-size: 0.8125rem;
	font-weight: 400;
	text-align: center;
}

.entry__content .top_rank_box4sen table.giftken td {
	background: #fff;
	font-size: 0.875rem;
	text-align: left;
}

.entry__content .top_rank_box4sen .gl-btn {
	width: 80%;
}

/* ランキングのカード（.top_rank_box・.top_rank_box4sen）には、本文で .oh（はみ出しを隠す）が付いている。
   このテーマは王冠をカードの上の辺にまたがせるので、カードだけははみ出しを見せる */
.entry__content .top_rank_box.oh,
.entry__content .top_rank_box4sen.oh {
	overflow: visible;
}

/* ============================================================
   22. お問い合わせフォーム（gl-contact。inc/contact-form.php）
   JS（assets/js/contact.js）は入力中の確かめだけ。無くても使える（人の確認〈Turnstile〉を使うときは要る）。
   誤りの文は欄の見出しのすぐ下に出し、aria-describedby で欄と結ぶ
   （読み上げで欄に入ったときに誤りが読まれる。目でも見出しと欄の間にあるので見落としにくい）。
   色：ふだんの印（必須・選んだ欄・送信のボタン）はこのサイトの紺（--gl-brand）。誤りだけ赤（--gl-cta-dark。白に対して 7.0:1、
   薄い赤 --gl-cta-pale の上で 6.2:1）にして、誤りがひと目で分かるようにする。
   入力欄の枠は --gl-muted（白に対して 5.4:1）。--gl-line（1.3:1）だと欄の形が見えない
   （入力欄の枠は 3:1 以上が要る）。文字は 16px（iOS で入力のたびに拡大されないように）。
   ============================================================ */
.gl-contact {
	margin: var(--gl-gap) 0;
}

.gl-contact__lead {
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
}

.gl-contact__form {
	position: relative;
	display: grid;
	gap: 1.5rem;
}

.gl-contact__field {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.gl-contact__label {
	display: block;
	margin: 0 0 0.4rem;
	padding: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.6;
}

/* 必須の印。色だけに頼らず「必須」の文字で伝える */
.gl-contact__req {
	display: inline-block;
	margin-left: 0.5em;
	padding: 0.1em 0.5em;
	border-radius: 3px;
	background: var(--gl-brand);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.5;
	vertical-align: 0.1em;
}

/* 誤りのまとめのリンク（#gl-cf-message など）で欄へ移ったとき、欄の上にある見出し・説明・誤りの文が画面の外に出ないように、
   欄を上の端から離して止める（スマホで、見出し＋2行の説明＋2行の誤りの文が入る高さ） */
.gl-contact__input,
.gl-contact__textarea,
.gl-contact__choice input,
.gl-contact__check input {
	scroll-margin-top: 9rem;
}

/* 同意の欄は、上にポリシーの文もある */
.gl-contact__check input {
	scroll-margin-top: 10rem;
}

.gl-contact__hint {
	margin: 0 0 0.4rem;
	color: var(--gl-muted);
	font-size: 0.8125rem;
	line-height: 1.7;
}

.gl-contact__input,
.gl-contact__textarea {
	display: block;
	width: 100%;
	padding: 0.6em 0.75em;
	border: 1px solid var(--gl-muted);
	border-radius: 4px;
	background: #fff;
	color: var(--gl-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.6;
}

.gl-contact__textarea {
	min-height: 12em;
	resize: vertical;
}

.gl-contact__input:focus,
.gl-contact__textarea:focus {
	border-color: var(--gl-brand);
}

/* 誤りの欄は枠を赤く太く見せる。border-width を変えると欄の大きさが変わるので、内側の影で足す */
.gl-contact__field--error .gl-contact__input,
.gl-contact__field--error .gl-contact__textarea {
	border-color: var(--gl-cta-dark);
	box-shadow: inset 0 0 0 1px var(--gl-cta-dark);
}

.gl-contact__error {
	margin: 0 0 0.4rem;
	padding-left: 0.6em;
	border-left: 3px solid var(--gl-cta-dark);
	color: var(--gl-cta-dark);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.6;
}

/* contact.js が前もって置く、空の誤りの文の場所（aria-live。文が入ったときだけ見せる） */
.gl-contact__error:empty {
	display: none;
}

/* 人の確認（Turnstile）。確認の枠（data-size="flexible"：幅いっぱい・高さ 65px）が出るまでの場所を空けておく（読み込みでガタつかないように） */
.gl-contact__turnstile {
	scroll-margin-top: 6rem;
}

.gl-contact__turnstile:focus {
	outline: none;
}

/* 枠の幅：flexible は 300px より狭くならない。フォームが 300px 未満の画面では、api.js の前の短い JavaScript
   （inc/contact-form.php の gl_contact_turnstile_size_script）が data-size="compact"（幅 150px・高さ 140px）に替える。
   それでも収まらないとき（その JavaScript が動かなかったときなど）は、ページ全体を横に広げず、この中だけ横に動かせるようにする
   （overflow: hidden で切ると、右側の Cloudflare の表示とプライバシーのリンクが隠れるので使わない） */
.gl-contact__turnstile .cf-turnstile {
	max-width: 100%;
	min-height: 65px;
	overflow-x: auto;
}

.gl-contact__turnstile .cf-turnstile[data-size="compact"] {
	min-height: 140px;
}

/* JavaScript が無いときの案内（人の確認を使うときだけ出る。送れないので、誤りと同じ赤で目立たせる） */
.gl-contact__noscript {
	margin: 0 0 1.25rem;
	padding: 0.75rem 1rem;
	border: 2px solid var(--gl-cta-dark);
	border-radius: var(--gl-radius);
	background: var(--gl-cta-pale);
	font-size: 0.9375rem;
	font-weight: 700;
}

.gl-contact__choices {
	display: grid;
	gap: 0.5rem;
}

.gl-contact__choice,
.gl-contact__check {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
	margin: 0;
	padding: 0.6em 0.8em;
	border: 1px solid var(--gl-muted);
	border-radius: 4px;
	background: #fff;
	line-height: 1.6;
	cursor: pointer;
}

.gl-contact__choice input,
.gl-contact__check input {
	flex: none;
	width: 1.15em;
	height: 1.15em;
	margin: 0.25em 0 0;
	accent-color: var(--gl-brand);
}

.gl-contact__choice:has(input:checked),
.gl-contact__check:has(input:checked) {
	border-color: var(--gl-brand);
	background: var(--gl-brand-pale);
}

.gl-contact__field--error .gl-contact__choice,
.gl-contact__field--error .gl-contact__check {
	border-color: var(--gl-cta-dark);
}

/* 3つの種類は、幅があれば横に並べる（スマホでは縦に積む） */
@media (min-width: 600px) {
	.gl-contact__choices {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.gl-contact__policy {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
}

.gl-contact__actions {
	text-align: center;
}

/* 送信の色はこのサイトの紺（白い文字で 12.6:1）。赤（--gl-cta）は記事の申し込みボタンと誤りの印だけに使う */
.gl-contact__submit {
	display: inline-block;
	min-width: min(100%, 16em);
	padding: 0.8em 2em;
	border: 0;
	border-radius: 999px;
	background: var(--gl-brand);
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
	cursor: pointer;
}

.gl-contact__submit:hover {
	background: var(--gl-brand-dark);
}

.gl-contact__note {
	margin: 0;
	color: var(--gl-muted);
	font-size: 0.8125rem;
	text-align: center;
}

/* 誤りのまとめ（フォームの上）。欄へのリンクで、直す場所へ移れる。
   送信のあとは住所の #gl-contact-result でここ（tabindex="-1"）へフォーカスが移る。枠があるので、フォーカスの線は出さない */
.gl-contact__summary {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 2px solid var(--gl-cta-dark);
	border-radius: var(--gl-radius);
	background: var(--gl-cta-pale);
	scroll-margin-top: 1rem;
}

.gl-contact__summary:focus,
.gl-contact__done:focus {
	outline: none;
}

.gl-contact__summary-title {
	margin: 0 0 0.5rem;
	color: var(--gl-cta-dark);
	font-weight: 700;
}

.gl-contact__summary-list {
	margin: 0;
	padding-left: 1.25em;
}

.gl-contact__summary-list a {
	color: var(--gl-cta-dark);
}

/* 受け付けたときの文。緑（#007660。白に対して 5.6:1）を左の枠にだけ使う（送れたことを、誤りの赤と見分けられるように） */
.gl-contact__done {
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--gl-line);
	border-left: 4px solid #007660;
	border-radius: var(--gl-radius);
	background: var(--gl-surface);
	scroll-margin-top: 1rem;
}

.gl-contact__done > p {
	margin: 0 0 0.75em;
}

.gl-contact__done > p:last-child {
	margin-bottom: 0;
}

.gl-contact__done-title {
	font-size: 1.125rem;
	font-weight: 700;
}

/* 囮の欄（gl_cf_hp）。人には見えず、Tab でも止まらない（inc/contact-form.php で tabindex="-1" と aria-hidden） */
.gl-contact__trap {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ============================================================
   23. サイトマップのページ（inc/sitemap-page.php の [wp_sitemap_page]）
   固定ページは親子の形（wp_list_pages の ul.children）、記事はカテゴリーの見出しの下に並べる。
   本文の素の ul の決まり（ul:not([class])）は当たらないので、ここで印と字下げを決める。
   ============================================================ */
.gl-sitemap__list,
.gl-sitemap__list .children {
	margin: 0.5em 0 1.5em;
	padding-left: 1.4em;
	list-style: disc;
}

.gl-sitemap__list .children {
	margin: 0.3em 0;
	list-style: circle;
}

.gl-sitemap__list li {
	margin: 0.3em 0;
	line-height: 1.6;
}

.gl-sitemap__category {
	margin: 1.75em 0 0.25em;
	font-size: 1rem;
}
