/* ==========================================================================
   Casinofrontier design tokens + base components  (v2.0, 2026-11-05)
   --------------------------------------------------------------------------
   Source of truth: Design/DESIGN.md. Every value here is named there.

   Install (Dima):
   1. Add as swell_child/css/cf-tokens.css and enqueue it AFTER polish.css,
      ranking-cards.css and cf-native.css so the tokens win without !important.
   2. In SWELL カスタマイザー set: メインカラー #C81E74, リンクカラー #0F6BC2,
      見出しカラー #16161A. Section 1b below mirrors these until that is done.
   3. Then replace hard-coded hex values in the other child-theme files with
      these variables (mapping table: DESIGN.md → "Migration").

   Rules: no new hex values outside :root. No !important. No `transition: all`.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
	/* Brand: Frontier Pink */
	--cf-pink:        #FA4EAB; /* logo pink. Bars, rules, icons, tints. Never behind white text. */
	--cf-pink-deep:   #C81E74; /* primary button fill, pink text, rank/score numerals (5.4:1 on white) */
	--cf-pink-press:  #A8165F; /* primary hover/active */
	--cf-pink-line:   #F5B3D5; /* outline-button border, featured-card border */
	--cf-pink-tint:   #FFF0F7; /* ad notice, featured card wash, secondary hover */

	/* Neutrals */
	--cf-frame:       #323232; /* header, footer */
	--cf-frame-deep:  #262626; /* notice strip inside the frame */
	--cf-ink:         #16161A; /* headings, table header fill */
	--cf-text:        #333333; /* body copy */
	--cf-muted:       #6B6B6B; /* meta, captions, helper text (≥4.5:1 on bg) */
	--cf-bg:          #FAF9FA; /* page */
	--cf-surface:     #FFFFFF; /* cards, H2 plate, tables */
	--cf-sunken:      #F4F2F3; /* inset panels: bonus grid, TOC, zebra rows */
	--cf-line:        #E5E5E5; /* every border and divider */
	--cf-on-fill:     #FFFFFF; /* text and icons on pink fills and on the frame */

	/* Semantic */
	--cf-link:        #0F6BC2; /* inline links (5.1:1 on bg) */
	--cf-red:         #E20000; /* warnings and negatives only */
	--cf-red-tint:    #FFF1F1; /* warning callout fill */
	--cf-red-line:    #F6C9C9; /* warning callout border */
	--cf-star:        #FAC225; /* rating stars only */

	/* Type */
	--cf-font: "游ゴシック体", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	/* Heading scale = multiples of SWELL's article font size (--swl-fz--content,
	   16px), so every heading follows that setting. Not plain rem: SWELL sets
	   the root to 3.6vw on phones (13.5px at 375px), which would push H3 below
	   body text. At 16px: H1 22-30, H2 20-26, H3 18-20, H4 17, H5 16, H6 15. */
	--cf-fz:       var(--swl-fz--content, 16px);
	--cf-fs-h1:    clamp(calc(var(--cf-fz) * 1.375), calc(var(--cf-fz) * 1.2 + 1.6vw), calc(var(--cf-fz) * 1.875));
	--cf-fs-h2:    clamp(calc(var(--cf-fz) * 1.25), calc(var(--cf-fz) * 1.05 + 1.1vw), calc(var(--cf-fz) * 1.625));
	--cf-fs-h3:    clamp(calc(var(--cf-fz) * 1.125), calc(var(--cf-fz) + .5vw), calc(var(--cf-fz) * 1.25));
	--cf-fs-h4:    calc(var(--cf-fz) * 1.0625);
	--cf-fs-h5:    var(--cf-fz);
	--cf-fs-h6:    calc(var(--cf-fz) * .9375);
	--cf-fs-body:  16px;
	--cf-fs-small: 14px;
	--cf-fs-label: 13px;
	--cf-fs-micro: 12px; /* floor: nothing smaller ships */
	--cf-fs-score: 24px;

	/* Space (4/8 grid) */
	--cf-space-1: 4px;
	--cf-space-2: 8px;
	--cf-space-3: 12px;
	--cf-space-4: 16px;
	--cf-space-5: 24px;
	--cf-space-6: 32px;
	--cf-space-7: 48px;
	--cf-space-8: 64px;

	/* Radius */
	--cf-radius-xs:   4px;   /* badges, tags, table wrap */
	--cf-radius-md:   10px;  /* buttons, inputs, H2 plate, inset panels */
	--cf-radius-lg:   14px;  /* cards, callouts */
	--cf-radius-pill: 999px; /* tabs, sidebar auth buttons */

	/* Elevation */
	--cf-shadow-1:   0 1px 2px rgba(22, 22, 26, .06), 0 6px 16px -10px rgba(22, 22, 26, .18);
	--cf-shadow-2:   0 2px 6px rgba(22, 22, 26, .08), 0 16px 32px -16px rgba(22, 22, 26, .30);
	--cf-shadow-cta: 0 8px 18px -10px rgba(200, 30, 116, .60);

	/* Motion */
	--cf-ease:     cubic-bezier(.22, 1, .36, 1);
	--cf-dur-fast: 150ms;
	--cf-dur:      220ms;

	/* Focus */
	--cf-focus: 2px solid var(--cf-pink-deep);
}

/* 1b. SWELL bridge: until the Customizer is updated */
:root {
	--color_main: var(--cf-pink-deep);
	--color_link: var(--cf-link);
	--color_htag: var(--cf-ink);
	--color_text: var(--cf-text);
	--color_bg: var(--cf-bg);
	--color_main_thin: var(--cf-pink-tint);
	--color_header_bg: var(--cf-frame);
	--color_footer_bg: var(--cf-frame);
	--color_deep04: var(--cf-pink-deep); /* was #F09F4D: white labels on it were 2.1:1 */
	--swl-fz--content: 16px;             /* was 4vw: 15.6px on a 390px phone */
}
/* Block editor: SWELL prints its own :root palette after this file there, so
   the override is repeated on the editor wrapper to match the front end. */
.editor-styles-wrapper {
	--color_deep04: var(--cf-pink-deep);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
body {
	color: var(--cf-text);
	background: var(--cf-bg);
	font-family: var(--cf-font);
	text-rendering: optimizeLegibility;
}

::selection { background: var(--cf-pink-tint); color: var(--cf-ink); }

.post_content { font-size: var(--cf-fs-body); line-height: 1.8; word-break: auto-phrase; }
.post_content p { margin-bottom: 1.4em; }

/* Links */
.post_content a:not([class]),
.cf-link {
	color: var(--cf-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
}
.post_content a:not([class]):hover,
.cf-link:hover { opacity: 1; text-decoration-thickness: 2px; } /* polish.css fades links to .75 */
/* Footer widgets are blog parts (.post_content) on the charcoal frame: links stay white */
.l-footer .post_content a:not([class]) { color: var(--cf-on-fill); }
/* Table header cells: links take the cell text colour SWELL picks by contrast
   from the header colour set in the table settings (white on dark, black on light).
   thead always has a coloured background, so links simply inherit there.
   .editor-styles-wrapper: same rules in the block editor (no .post_content there). */
:is(.post_content, .editor-styles-wrapper) thead :is(th, td) a:not([class]) { color: inherit; }
:is(.post_content, .editor-styles-wrapper) tbody th a:not([class]),
:is(.post_content, .editor-styles-wrapper) .td_to_th_ tbody tr > :first-child:not(.-no1) a:not([class]) {
	color: var(--tbody-th-color--txt, var(--cf-link));
}
/* Inline text colour (SWELL toolbar "Text colour" / core highlight) inside a link:
   the coloured span draws its own underline, which covers the link's blue one.
   Both lines must sit at the same offset, so the editor gets the front-end link underline. */
.editor-styles-wrapper a:not([class]) {
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
}
:is(.post_content, .editor-styles-wrapper) a:not([class]) :is(.swl-inline-color, .has-inline-color) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
}
:is(.post_content, .editor-styles-wrapper) a:not([class]):hover :is(.swl-inline-color, .has-inline-color) { text-decoration-thickness: 2px; }

/* Focus: one ring, everywhere */
a:focus-visible,
button:focus-visible,
[role="tab"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: var(--cf-focus);
	outline-offset: 2px;
}
.l-header :focus-visible,
.l-footer :focus-visible,
.cf-btn--primary:focus-visible { outline-color: #FFFFFF; box-shadow: 0 0 0 4px var(--cf-pink-deep); }

/* Numbers in data line up */
table, .cf-score, .cf-rank-no { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   3. Headings: H1 > H2 > H3 > H4, always
   -------------------------------------------------------------------------- */
.c-postTitle__ttl,
.c-pageTitle__inner,
.cf-h1 {
	color: var(--cf-ink);
	font-size: var(--cf-fs-h1);
	font-weight: 700;
	line-height: 1.4;
	text-wrap: balance;
}

/* Headings are matched with `.wp-block-heading` so they meet SWELL's own
   selectors head-on. Requires: polish.css sections 4a–4c deleted, and SWELL
   カスタマイザー 見出しデザイン set to 装飾なし (see the migration brief).
   Bars are drawn as background layers, not ::before/::after, so they never
   collide with SWELL's heading pseudo-elements. */

/* The Frontier Bar: the one place a colored side bar appears.
   Each heading rule also targets .editor-styles-wrapper so the block editor
   shows the same headings as the site (no .post_content wrapper there). */
.post_content h2.wp-block-heading,
.post_content h2,
.editor-styles-wrapper .is-root-container h2.wp-block-heading,
.cf-h2 {
	margin: var(--cf-space-8) 0 var(--cf-space-5);
	padding: 18px 22px 18px 26px;
	border: 0;
	border-radius: var(--cf-radius-md);
	background:
		linear-gradient(var(--cf-pink), var(--cf-pink)) left 12px / 6px calc(100% - 24px) no-repeat,
		var(--cf-surface);
	box-shadow: var(--cf-shadow-1);
	color: var(--cf-ink);
	font-size: var(--cf-fs-h2);
	font-weight: 700;
	line-height: 1.45;
	text-wrap: balance;
}

/* H3: short pink rule underneath (the incumbent forum-heading motif) */
.post_content h3.wp-block-heading,
.post_content h3,
.editor-styles-wrapper .is-root-container h3.wp-block-heading,
.cf-h3 {
	margin: var(--cf-space-7) 0 var(--cf-space-4);
	padding: 0 0 12px;
	border: 0;
	border-radius: 0;
	background: linear-gradient(var(--cf-pink), var(--cf-pink)) left bottom / 32px 3px no-repeat;
	color: var(--cf-ink);
	font-size: var(--cf-fs-h3);
	font-weight: 700;
	line-height: 1.5;
	text-wrap: balance;
}

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

.post_content h4.wp-block-heading,
.post_content h4,
.editor-styles-wrapper .is-root-container h4.wp-block-heading,
.cf-h4 {
	margin: var(--cf-space-6) 0 var(--cf-space-3);
	color: var(--cf-ink);
	font-size: var(--cf-fs-h4);
	font-weight: 700;
	line-height: 1.5;
}

/* H5/H6 are not used in articles today; defined so they stay in the scale. */
.post_content h5.wp-block-heading,
.post_content h5,
.editor-styles-wrapper .is-root-container h5.wp-block-heading,
.post_content h6.wp-block-heading,
.post_content h6,
.editor-styles-wrapper .is-root-container h6.wp-block-heading {
	margin: var(--cf-space-5) 0 var(--cf-space-3);
	color: var(--cf-ink);
	font-size: var(--cf-fs-h5);
	font-weight: 700;
	line-height: 1.5;
}
.post_content h6.wp-block-heading,
.post_content h6,
.editor-styles-wrapper .is-root-container h6.wp-block-heading { font-size: var(--cf-fs-h6); }

/* Old articles wrap whole headings in <strong>: let the heading style win. */
.post_content :is(h1, h2, h3, h4, h5, h6) :is(strong, b),
.editor-styles-wrapper .is-root-container .wp-block-heading :is(strong, b) {
	font-weight: inherit;
	color: inherit;
}

.post_content h2 + h3,
.editor-styles-wrapper .is-root-container h2.wp-block-heading + h3.wp-block-heading { margin-top: var(--cf-space-5); }
/* The margins above reset the editor's auto side margins that centre blocks. */
.editor-styles-wrapper .is-root-container :is(h2, h3, h4, h5, h6).wp-block-heading { margin-right: auto; margin-left: auto; }

/* --------------------------------------------------------------------------
   4. Buttons: one primary voice, one quiet secondary
   -------------------------------------------------------------------------- */
.cf-btns { display: flex; flex-direction: column; gap: var(--cf-space-3); }

.cf-btn {
	display: flex;
	gap: var(--cf-space-2);
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: var(--cf-radius-md);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	text-wrap: balance;
	word-break: auto-phrase;
	cursor: pointer;
	transition:
		background-color var(--cf-dur-fast) var(--cf-ease),
		border-color var(--cf-dur-fast) var(--cf-ease),
		box-shadow var(--cf-dur) var(--cf-ease),
		transform var(--cf-dur) var(--cf-ease);
}

/* 公式サイトへ / 今すぐプレイ / ボーナスを受け取る */
.cf-btn--primary {
	background: var(--cf-pink-deep);
	box-shadow: var(--cf-shadow-cta);
	color: #FFFFFF;
}
.cf-btn--primary::after {
	flex: none;
	width: 7px;
	height: 7px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	content: "";
	transform: rotate(45deg);
	transition: transform var(--cf-dur) var(--cf-ease);
}
.cf-btn--primary:hover { background: var(--cf-pink-press); color: #FFFFFF; transform: translateY(-1px); }
.cf-btn--primary:hover::after { transform: translateX(3px) rotate(45deg); }
.cf-btn--primary:active { transform: translateY(0); box-shadow: none; }

/* 〇〇の詳細レビュー */
.cf-btn--secondary {
	border-color: var(--cf-pink-line);
	background: var(--cf-surface);
	color: var(--cf-pink-deep);
	font-weight: 600;
}
.cf-btn--secondary:hover { border-color: var(--cf-pink-deep); background: var(--cf-pink-tint); color: var(--cf-pink-deep); }

/* Sidebar / header auth (ログイン・登録) */
.cf-btn--pill {
	min-height: 44px;
	padding: 8px 24px;
	border-color: var(--cf-pink-deep);
	border-radius: var(--cf-radius-pill);
	background: var(--cf-surface);
	color: var(--cf-pink-deep);
	font-size: var(--cf-fs-small);
}
.cf-btn--pill:hover { background: var(--cf-pink-tint); }

@media (min-width: 600px) {
	.cf-btns--row { flex-direction: row; }
	.cf-btns--row > .cf-btn { flex: 1 1 0; }
}

/* --------------------------------------------------------------------------
   5. Tables
   -------------------------------------------------------------------------- */
.cf-table-scroll {
	overflow-x: auto;
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius-xs);
	-webkit-overflow-scrolling: touch;
}
.cf-table-scroll > table { min-width: 520px; margin: 0; border: 0; }

/* The .editor-styles-wrapper .wp-block-table selectors repeat the same look in
   the block editor: there is no .post_content wrapper there, and SWELL's
   editor style paints thead th with --color_main (pink) instead. */
.post_content table,
.editor-styles-wrapper .wp-block-table table,
.cf-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.6;
}
.post_content th,
.post_content thead th, /* SWELL main.css: .post_content thead th = --color_main */
.post_content thead td,
.post_content .td_to_th_ tbody tr > :first-child,
.editor-styles-wrapper .wp-block-table th,
.editor-styles-wrapper .wp-block-table thead th,
.editor-styles-wrapper .wp-block-table thead td,
.editor-styles-wrapper .wp-block-table.td_to_th_ tbody tr > :first-child,
.cf-table th {
	background: var(--cf-ink);
	color: #FFFFFF;
	font-weight: 700;
	text-align: left;
}
.post_content td,
.cf-table td { background: var(--cf-surface); color: var(--cf-text); }
.post_content tbody tr:nth-child(even) td,
.cf-table tbody tr:nth-child(even) td { background: var(--cf-sunken); }
.post_content th,
.post_content td,
.editor-styles-wrapper .wp-block-table th,
.editor-styles-wrapper .wp-block-table td,
.cf-table th,
.cf-table td { padding: 10px 12px; border: 1px solid var(--cf-line); vertical-align: top; }

/* --------------------------------------------------------------------------
   6. Callouts: tinted field + icon, no side bars
   -------------------------------------------------------------------------- */
.cf-callout {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: var(--cf-space-3);
	align-items: start;
	margin: var(--cf-space-5) 0;
	padding: var(--cf-space-4);
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius-lg);
	background: var(--cf-surface);
	color: var(--cf-text);
	font-size: 15px;
	line-height: 1.75;
}
.cf-callout > svg { width: 24px; height: 24px; }
.cf-callout p { margin: 0; }
.cf-callout strong { color: var(--cf-ink); }

.cf-callout--warn { border-color: var(--cf-red-line); background: var(--cf-red-tint); }
.cf-callout--warn > svg { color: var(--cf-red); }
.cf-callout--warn strong { color: var(--cf-red); }

.cf-callout--note { border-color: var(--cf-pink-line); background: var(--cf-pink-tint); }
.cf-callout--note > svg { color: var(--cf-pink-deep); }

/* Titled box (SWELL cap_box col1) */
.cap_box[data-colset="col1"] { --capbox-color: var(--cf-pink-deep); --capbox-color--bg: var(--cf-surface); }
.cf-capbox { overflow: hidden; border: 1px solid var(--cf-pink-line); border-radius: var(--cf-radius-lg); background: var(--cf-surface); }
.cf-capbox__ttl { padding: 10px 16px; background: var(--cf-pink-deep); color: #FFFFFF; font-size: 15px; font-weight: 700; }
.cf-capbox__body { padding: var(--cf-space-4); font-size: 15px; line-height: 1.75; }
.cf-capbox__body ul { margin: 0; padding-left: 1.2em; }

/* --------------------------------------------------------------------------
   7. Ranking card: one card for home, /casino-ranking/ and in-article toplists
   -------------------------------------------------------------------------- */
.cf-rankcard {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: var(--cf-space-3) var(--cf-space-4);
	padding: var(--cf-space-4);
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius-lg);
	background: var(--cf-surface);
	box-shadow: var(--cf-shadow-1);
}
.cf-rankcard + .cf-rankcard { margin-top: var(--cf-space-4); }
.cf-rankcard--top { border: 2px solid var(--cf-pink); box-shadow: var(--cf-shadow-2); }

.cf-rankcard__head {
	display: flex;
	grid-column: 1 / -1;
	gap: var(--cf-space-2);
	align-items: baseline;
	padding-bottom: var(--cf-space-3);
	border-bottom: 1px solid var(--cf-line);
	color: var(--cf-ink);
	font-size: var(--cf-fs-small);
	font-weight: 700;
}
.cf-rankcard__head svg { align-self: center; width: 18px; height: 18px; color: var(--cf-pink); }
.cf-rank-no { color: var(--cf-pink-deep); font-size: 22px; font-weight: 700; line-height: 1; }

.cf-rankcard__logo {
	overflow: hidden;
	width: 72px;
	height: 72px;
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius-md);
	background: var(--cf-ink);
}
.cf-rankcard__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

.cf-rankcard .cf-rankcard__name { margin: 0; padding: 0; background: none; color: var(--cf-ink); font-size: 18px; font-weight: 700; line-height: 1.4; }
.cf-rankcard__score { display: flex; gap: var(--cf-space-2); align-items: center; margin-top: var(--cf-space-1); color: var(--cf-muted); font-size: var(--cf-fs-label); }
.cf-stars { color: var(--cf-star); letter-spacing: 1px; }
.cf-score { color: var(--cf-pink-deep); font-size: var(--cf-fs-score); font-weight: 700; line-height: 1; }
.cf-score small { color: var(--cf-muted); font-size: var(--cf-fs-label); font-weight: 500; }

.cf-rankcard__bonus {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	overflow: hidden;
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius-md);
	background: var(--cf-line);
}
.cf-rankcard__bonus div { padding: 10px 12px; background: var(--cf-sunken); }
.cf-rankcard__bonus dt { color: var(--cf-muted); font-size: var(--cf-fs-micro); font-weight: 600; line-height: 1.4; }
.cf-rankcard__bonus dd { margin: 2px 0 0; color: var(--cf-ink); font-size: 15px; font-weight: 700; line-height: 1.4; }

.cf-rankcard__desc { grid-column: 1 / -1; margin: 0; font-size: 15px; line-height: 1.75; }
.cf-rankcard .cf-btns { grid-column: 1 / -1; }

@media (min-width: 600px) {
	.cf-rankcard { grid-template-columns: 96px 1fr; padding: var(--cf-space-5); }
	.cf-rankcard__logo { width: 96px; height: 96px; }
	.cf-rankcard__bonus { grid-template-columns: repeat(4, 1fr); }
	.cf-rankcard .cf-btns { flex-direction: row; }
	.cf-rankcard .cf-btns > .cf-btn { flex: 1 1 0; }
}

/* --------------------------------------------------------------------------
   8. Frame: notice strip and ad disclosure
   -------------------------------------------------------------------------- */
.cf-notice {
	padding: 8px 16px;
	background: var(--cf-frame-deep);
	color: #EDEDED;
	font-size: var(--cf-fs-micro);
	line-height: 1.6;
	text-align: center;
}
.cf-notice a { color: #FFFFFF; text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 599px) {
	.cf-notice { text-align: left; }
	.cf-notice__more { display: none; } /* phones: one sentence + 利用規約 link */
}

.cf-adnote {
	display: flex;
	gap: var(--cf-space-2);
	align-items: center;
	padding: 10px 14px;
	border-radius: var(--cf-radius-md);
	background: var(--cf-pink-tint);
	color: var(--cf-text);
	font-size: var(--cf-fs-label);
}
.cf-adnote svg { flex: none; width: 18px; height: 18px; color: var(--cf-pink-deep); }

/* --------------------------------------------------------------------------
   9. Motion safety
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.cf-btn,
	.cf-btn::after { transition: background-color var(--cf-dur-fast) linear, border-color var(--cf-dur-fast) linear; }
	.cf-btn:hover,
	.cf-btn--primary:hover::after { transform: none; }
}

/* --------------------------------------------------------------------------
   10. Theme and plugin buttons on the pill (DEVE-474 Phase 2)
   inc/cf-buttons.php puts cf-btn cf-btn--pill on these links. The selectors
   below only beat the theme / plugin rules they replace.
   -------------------------------------------------------------------------- */

/* Header 会員登録: SWELL button block ([class*="is-style-btn_"] a) */
.w-header .cf-btn--pill {
	gap: 6px;
	padding: 8px 20px;
	border: 1px solid var(--cf-pink-deep);
	border-radius: var(--cf-radius-pill);
	background: var(--cf-surface);
	box-shadow: none;
	color: var(--cf-pink-deep);
	font-size: var(--cf-fs-small);
	white-space: nowrap;
}
.w-header .cf-btn--pill:hover { background: var(--cf-pink-tint); color: var(--cf-pink-deep); }
.w-header .cf-btn--pill .__icon { flex: none; }

/* Sidebar ログイン / 登録: wpForo profile widget (#wpf-widget-profile * sets the color) */
#wpf-widget-profile .cf-btn--pill { flex: 1 1 0; color: var(--cf-pink-deep); }
#wpf-widget-profile .cf-btn--pill svg { flex: none; }

/* SWELL button blocks in posts, pages and blog parts (step 8).
   SWELL prints its colour sets (.green_ / .blue_ / .red_, from エディター設定)
   as variables; they all become the one pink primary. Mirrors the editor
   settings until those are updated, like section 1b. */
.green_,
.red_,
.blue_ {
	--the-btn-color: var(--cf-pink-deep);
	--the-btn-color2: var(--cf-pink-press);
	--the-solid-shadow: var(--cf-pink-press);
}
#content [class*="is-style-btn_"] {
	--the-btn-radius: var(--cf-radius-md);
	font-size: max(16px, var(--the-fz, 1em)); /* CTA labels never below 16px */
}

/* Blue was 詳細 / レビュー (secondary). It stays secondary unless it links to a casino (/visit/). */
#content .swell-block-button.blue_ .swell-block-button__link:not([href*="/visit/"]) {
	border: 1px solid var(--cf-pink-line);
	background: var(--cf-surface);
	box-shadow: none;
	color: var(--cf-pink-deep);
}
#content .swell-block-button.blue_ .swell-block-button__link:not([href*="/visit/"]):hover {
	border-color: var(--cf-pink-deep);
	background: var(--cf-pink-tint);
	transform: none;
}

/* --------------------------------------------------------------------------
   11. Floating 目次 / ↑ buttons on phones (DEVE-474 Phase 3)
   On the frame color they read as controls, not as part of the article,
   and they sit clear of SWELL's fixed bottom menu (50px).
   -------------------------------------------------------------------------- */
@media (max-width: 959px) {
	.c-fixBtn {
		border-color: var(--cf-frame);
		border-radius: var(--cf-radius-md);
		background: var(--cf-frame);
		box-shadow: var(--cf-shadow-2);
		color: var(--cf-on-fill);
	}

	#fix_bottom_menu + .p-fixBtnWrap {
		right: var(--cf-space-3);
		bottom: calc(50px + var(--cf-space-4) + env(safe-area-inset-bottom));
	}
}

/* --------------------------------------------------------------------------
   12. Footer link lists in columns (DEVE-474 Phase 3)
   The footer widgets are blog parts with long link lists (41 casinos,
   26 providers), one per line in a third of the width. From 960px the
   widget row becomes a 5-track grid: a box with a long list takes two
   tracks and flows its list into two columns.
   -------------------------------------------------------------------------- */
@media (min-width: 960px) {
	.w-footer.-col3 {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 0 var(--cf-space-6);
	}

	.w-footer.-col3 > .w-footer__box {
		width: auto;
		padding: 0;
	}

	.w-footer.-col3 > .w-footer__box:has(li:nth-child(12)) {
		grid-column: span 2;
	}

	.w-footer__box:has(li:nth-child(12)) ul {
		columns: 2;
		column-gap: var(--cf-space-6);
	}

	.w-footer__box:has(li:nth-child(12)) li {
		break-inside: avoid;
	}
}

/* --------------------------------------------------------------------------
   13. Spinner: one loading indicator for the whole site
   Infinite scroll and slot list (cf-native) and the toplist filter buttons.
   -------------------------------------------------------------------------- */
.cf-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid var(--cf-line);
	border-top-color: var(--cf-text);
	border-radius: 50%;
	animation: cf-spin .8s linear infinite;
}

@keyframes cf-spin {
	to { transform: rotate(360deg); }
}
