/*
 * БФГКБ site layer — visual identity of globalkyokushin.com (next/app/globals.css, 2026-11-26):
 * paper/ink/red tokens, PT Serif headings + PT Sans text (self-hosted, Latin + Cyrillic),
 * dark header/footer bands with the red 3px rule, kanji mask, 14px cards, 2px buttons.
 * Every rule is scoped to .bf-site or bf- classes so Divi's own CSS stays untouched elsewhere.
 */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/pt-sans-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/pt-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/pt-sans-cyrillic-400-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/pt-sans-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/pt-sans-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/pt-sans-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/pt-serif-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/pt-serif-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/pt-serif-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/pt-serif-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ------------------------------------------------------------------ tokens */
:root {
	--bf-paper: #f6f3ed;
	--bf-ink: #1b1917;
	--bf-muted: #5f5850;
	--bf-line: #ddd6cb;
	--bf-wash: #ece6db;
	--bf-card: #fffdf9;
	--bf-red: #da251c;
	--bf-red-dark: #b01d15;
	--bf-link: #b01d15;
	--bf-night: #121110;
	--bf-night-deep: #0a0909;
	--bf-on-night: #f1ede6;
	--bf-night-muted: #b1a99e;
	--bf-night-line: #34302b;
	--bf-night-red: #ff6a5f;
	--bf-serif: "PT Serif", "Noto Serif", "Palatino Linotype", Georgia, "Times New Roman", serif;
	--bf-sans: "PT Sans", "Noto Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--bf-band: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
	--bf-radius: 14px;
}

/* ------------------------------------------------------------------ base (overrides Divi's) */
html:has(body.bf-site) { font-size: 112.5%; scroll-padding-top: 9rem; }
body.bf-site {
	background: var(--bf-paper);
	color: var(--bf-ink);
	font-family: var(--bf-sans);
	font-size: 1rem;
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}
.bf-site #page-container { padding-top: 0 !important; overflow: visible !important; background: var(--bf-paper); }
.bf-site #et-boxed-page, .bf-site #et-main-area { overflow: visible !important; }
.bf-site #main-header, .bf-site #top-header, .bf-site #main-footer { display: none !important; }
.bf-site #main-content { background: var(--bf-paper); }
.bf-site #main-content .container:before { display: none; }
.bf-site :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--bf-serif);
	font-weight: 700;
	line-height: 1.25;
	color: inherit;
	padding-bottom: 0;
	margin: 0 0 .6em;
	letter-spacing: -0.005em;
}
.bf-site p { padding-bottom: 0; margin: 0 0 1em; }
.bf-site a { color: var(--bf-link); }
.bf-site a:hover { color: var(--bf-red); }
.bf-site :focus-visible { outline: 3px solid var(--bf-red); outline-offset: 3px; }
.bf-site img { max-width: 100%; height: auto; }
.bf-ico { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.15em; }

.bf-wrap { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: 1rem; box-sizing: border-box; }
.bf-wrap--text { max-width: 50rem; }
@media (min-width: 40rem) { .bf-wrap { padding-inline: 1.5rem; } }

.bf-skip { position: absolute; left: -999px; top: .5rem; z-index: 2000; background: #fff; color: var(--bf-ink); padding: .5rem 1rem; }
.bf-skip:focus { left: .5rem; }

/* Divi builder sections that hold our markup: no padding, full width. */
.bf-site .et_pb_section.bf-sec { padding: 0 !important; background: transparent; }
.bf-site .bf-sec > .et_pb_row { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
.bf-site .bf-sec .et_pb_column { margin: 0 !important; width: 100% !important; }
.bf-site .bf-sec .et_pb_module { margin: 0 !important; }
.bf-site .bf-sec :is(.et_pb_text_inner, .et_pb_code_inner) { font-size: 1rem; line-height: 1.6; color: inherit; }
.bf-site .bf-sec .et_pb_text { color: inherit; }

/* ------------------------------------------------------------------ type helpers */
.bf-kicker { font: 700 .85rem/1.3 var(--bf-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bf-red); margin: 0 0 .7rem; }
.bf-kicker a { color: inherit; text-decoration: none; }
.bf-rule { display: block; width: 3.5rem; height: 3px; background: var(--bf-red); margin: 1rem 0 1.4rem; }
.bf-lead { font-size: 1.15rem; line-height: 1.55; color: var(--bf-muted); max-width: 42rem; }

/* ------------------------------------------------------------------ buttons */
.bf-site .bf-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 0; }
.bf-site .bf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .55rem 1.4rem; border: 2px solid currentColor; border-radius: 2px;
	font: 700 1rem/1.4 var(--bf-sans); letter-spacing: .03em; text-decoration: none;
	transition: background-color .15s, color .15s, border-color .15s;
}
.bf-site .bf-btn small { font-weight: 400; opacity: .8; }
.bf-site .bf-btn--red { background: var(--bf-red); border-color: var(--bf-red); color: #fff; }
.bf-site .bf-btn--red:hover { background: var(--bf-red-dark); border-color: var(--bf-red-dark); color: #fff; }
.bf-site .bf-btn--ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .8); color: #fff; }
.bf-site .bf-btn--ghost:hover { background: #fff; color: var(--bf-ink); }
.bf-site .bf-btn--line { background: transparent; border-color: var(--bf-ink); color: var(--bf-ink); }
.bf-site .bf-btn--line:hover { background: var(--bf-ink); color: #fff; }

/* ------------------------------------------------------------------ header */
.bf-header { position: sticky; top: 0; z-index: 1000; background: var(--bf-night); color: var(--bf-on-night); }
.admin-bar .bf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bf-header { top: 0; } }
.bf-header__top { display: flex; align-items: center; gap: 1rem; padding-block: .65rem; }
.bf-site .bf-brand { display: flex; align-items: center; gap: .8rem; color: var(--bf-on-night); text-decoration: none; min-width: 0; }
.bf-brand__emblem { width: 56px; height: 56px; flex: none; }
.bf-brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.bf-brand__pre { font: 700 .68rem/1.3 var(--bf-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--bf-night-muted); }
.bf-brand__name { font: 700 1.12rem/1.15 var(--bf-serif); text-transform: uppercase; letter-spacing: .02em; }
.bf-brand__short { font: 700 .68rem/1.5 var(--bf-sans); letter-spacing: .32em; color: var(--bf-night-red); }
.bf-site .bf-header__gkb {
	margin-left: auto; display: inline-flex; align-items: center; gap: .45rem;
	padding: .35rem .85rem; border: 1px solid var(--bf-night-line); border-radius: 999px;
	color: var(--bf-on-night); font-size: .8rem; text-decoration: none; white-space: nowrap;
}
.bf-site .bf-header__gkb:hover { border-color: var(--bf-night-red); color: #fff; }
.bf-burger { display: none; }
.bf-nav { border-top: 1px solid var(--bf-night-line); }
.bf-nav__list { display: flex; flex-wrap: wrap; gap: .1rem .3rem; list-style: none; margin: 0; padding: .3rem 0; }
.bf-nav__list li { position: relative; list-style: none; }
.bf-site .bf-nav__list a {
	display: block; padding: .5rem .7rem; color: var(--bf-on-night); text-decoration: none;
	font: 700 .78rem/1.3 var(--bf-sans); letter-spacing: .09em; text-transform: uppercase;
	border-bottom: 2px solid transparent;
}
.bf-site .bf-nav__list a:hover { color: #fff; border-bottom-color: var(--bf-night-line); }
.bf-site .bf-nav__list :is(.current-menu-item, .current-menu-ancestor, .current_page_parent) > a { border-bottom-color: var(--bf-night-red); }
.bf-nav__list .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 16rem; margin: 0; padding: .4rem 0; list-style: none;
	background: var(--bf-night-deep); border-top: 2px solid var(--bf-red); box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.bf-nav__list li:hover > .sub-menu, .bf-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bf-site .bf-nav__list .sub-menu a { text-transform: none; letter-spacing: .01em; font-size: .9rem; font-weight: 400; padding: .5rem 1rem; border: 0; }
.bf-site .bf-nav__list .sub-menu a:hover { background: var(--bf-night); }
.bf-nav__list .menu-item-has-children > a::after { content: ""; display: inline-block; width: .38em; height: .38em; margin-left: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); }

@media (max-width: 60rem) {
	.bf-site .bf-header__gkb { display: none; }
	.bf-burger {
		display: inline-flex; align-items: center; gap: .5rem; margin-left: auto;
		background: transparent; color: var(--bf-on-night); border: 1px solid var(--bf-night-line); border-radius: 2px;
		padding: .45rem .7rem; font: 700 .78rem var(--bf-sans); letter-spacing: .09em; text-transform: uppercase; cursor: pointer;
	}
	.bf-burger__bars { display: grid; gap: 4px; width: 18px; }
	.bf-burger__bars span { display: block; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
	.bf-burger[aria-expanded="true"] .bf-burger__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.bf-burger[aria-expanded="true"] .bf-burger__bars span:nth-child(2) { opacity: 0; }
	.bf-burger[aria-expanded="true"] .bf-burger__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
	.bf-nav { display: none; max-height: calc(100svh - 5rem); overflow-y: auto; }
	.bf-header.is-open .bf-nav { display: block; }
	.bf-nav__list { flex-direction: column; padding: .4rem 0 1rem; }
	.bf-site .bf-nav__list a { padding: .75rem .25rem; font-size: .9rem; border-bottom: 1px solid var(--bf-night-line); }
	.bf-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 1rem; min-width: 0; }
	.bf-nav__list .menu-item-has-children > a::after { display: none; }
}
@media (max-width: 30rem) {
	.bf-brand__emblem { width: 44px; height: 44px; }
	.bf-brand__name { font-size: .95rem; }
	.bf-brand__pre, .bf-brand__short { font-size: .6rem; }
	.bf-burger__label { display: none; }
}

/* ------------------------------------------------------------------ home hero */
.bf-hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(30rem, 84svh, 46rem); background: #0f0e0d; color: #fff; overflow: hidden; }
.bf-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.bf-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 9, 9, .92) 0%, rgba(10, 9, 9, .72) 45%, rgba(10, 9, 9, .25) 100%), linear-gradient(0deg, rgba(10, 9, 9, .85) 0%, rgba(10, 9, 9, 0) 55%); }
.bf-hero__in { padding-block: 4rem clamp(3rem, 2rem + 4vw, 5.5rem); }
.bf-hero__emblem { width: 88px; height: 88px; margin-bottom: 1.2rem; }
.bf-hero .bf-kicker { color: var(--bf-night-red); }
.bf-site .bf-hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); line-height: 1.1; letter-spacing: -0.01em; max-width: 15em; margin: 0; color: #fff; }
.bf-hero .bf-rule { background: var(--bf-night-red); }
.bf-hero__lead { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); line-height: 1.55; max-width: 38rem; color: rgba(255, 255, 255, .9); margin: 0; }

/* ------------------------------------------------------------------ page hero (inner pages) */
.bf-phero { background: var(--bf-night); color: var(--bf-on-night); padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.25rem) clamp(2rem, 1.5rem + 2vw, 3rem); position: relative; overflow: hidden; }
.bf-phero::after { content: ""; position: absolute; right: max(1rem, calc((100vw - 74rem) / 2 + 1.5rem)); top: 50%; width: 2.4rem; height: 12rem; transform: translateY(-50%); background: var(--bf-night-line); -webkit-mask: url(img/gkb-kanji.png) center / contain no-repeat; mask: url(img/gkb-kanji.png) center / contain no-repeat; }
.bf-phero .bf-kicker { color: var(--bf-night-red); }
.bf-site .bf-phero h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.15; margin: 0; color: #fff; max-width: 22em; }
.bf-phero .bf-rule { background: var(--bf-night-red); margin-bottom: 1.1rem; }
.bf-phero__lead { font-size: 1.12rem; color: var(--bf-night-muted); max-width: 40rem; margin: 0; }
.bf-phero__meta { display: flex; align-items: center; gap: .5rem; color: var(--bf-night-muted); margin: 0; font-size: .95rem; }
.bf-phero .bf-actions { margin-top: 1.4rem; }
@media (max-width: 40rem) { .bf-phero::after { display: none; } }

/* ------------------------------------------------------------------ bands */
.bf-band { padding-block: var(--bf-band); }
.bf-band--wash { background: var(--bf-wash); }
.bf-band--ink { background: var(--bf-night); color: var(--bf-on-night); }
.bf-band--ink .bf-kicker { color: var(--bf-night-red); }
.bf-band--ink .bf-rule { background: var(--bf-night-red); }
.bf-band--ink a:not(.bf-btn) { color: var(--bf-night-red); }
.bf-band--ink .bf-lead, .bf-band--ink .bf-muted { color: var(--bf-night-muted); }
.bf-band--article { padding-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.bf-site .bf-band h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem); margin: 0; }
.bf-bandhead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.6rem; }
.bf-bandhead > div { min-width: 0; }
.bf-bandhead .bf-rule { margin-bottom: 0; }
.bf-bandhead__all { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; }
.bf-muted { color: var(--bf-muted); }

.bf-split { display: grid; gap: 2rem 3.5rem; align-items: center; }
@media (min-width: 56rem) { .bf-split { grid-template-columns: 1.05fr .95fr; } .bf-split--flip > :first-child { order: 2; } }
.bf-split__media img { width: 100%; border-radius: var(--bf-radius); aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.bf-split__media figcaption { font-size: .85rem; color: var(--bf-muted); margin-top: .6rem; }
.bf-band--ink .bf-split__media figcaption { color: var(--bf-night-muted); }

/* intro text */
.bf-intro { max-width: 46rem; font-size: 1.1rem; }
.bf-intro p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ pillars, levels, facts */
.bf-pillars { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 2rem; }
.bf-pillar { background: var(--bf-card); border: 1px solid var(--bf-line); border-top: 3px solid var(--bf-red); border-radius: 0 0 var(--bf-radius) var(--bf-radius); padding: 1.3rem 1.3rem 1.1rem; }
.bf-site .bf-pillar h3 { font-size: 1.35rem; margin: 0 0 .15rem; }
.bf-pillar__ja { font: 700 .75rem var(--bf-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bf-red); margin: 0 0 .6rem; }
.bf-pillar p:last-child { margin: 0; color: var(--bf-muted); }

.bf-levels { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 2rem; counter-reset: lvl; }
.bf-level { border: 1px solid var(--bf-night-line); border-radius: var(--bf-radius); padding: 1.4rem; background: rgba(255, 255, 255, .03); }
.bf-level__n { font: 700 2.6rem/1 var(--bf-serif); color: var(--bf-night-red); margin: 0 0 .4rem; }
.bf-site .bf-level h3 { font-size: 1.25rem; margin: 0 0 .5rem; color: #fff; }
.bf-level p { color: var(--bf-night-muted); margin: 0; }
.bf-level .bf-level__n { color: var(--bf-night-red); margin: 0 0 .4rem; }

.bf-site .bf-facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); margin: 2rem 0 0; padding: 0; list-style: none; line-height: 1.4; }
.bf-facts li { border-left: 3px solid var(--bf-red); padding: .2rem 0 .2rem 1rem; list-style: none; }
.bf-facts strong { display: block; font: 700 2rem/1.1 var(--bf-serif); }
.bf-facts span { color: var(--bf-muted); font-size: .95rem; }
.bf-band--ink .bf-facts li { border-color: var(--bf-night-red); }
.bf-band--ink .bf-facts span { color: var(--bf-night-muted); }

/* person / representative */
.bf-person { display: grid; gap: 1.5rem 2.5rem; align-items: center; }
@media (min-width: 48rem) { .bf-person { grid-template-columns: auto 1fr; } }
.bf-person__mark { width: 9rem; height: 9rem; border-radius: 50%; display: grid; place-items: center; background: var(--bf-night-deep); border: 1px solid var(--bf-night-line); }
.bf-person__mark span { display: block; width: 2rem; height: 7rem; background: var(--bf-night-red); -webkit-mask: url(img/gkb-kanji.png) center / contain no-repeat; mask: url(img/gkb-kanji.png) center / contain no-repeat; }
.bf-person__role { font-size: 1.05rem; color: var(--bf-night-muted); margin: 0 0 1rem; }

/* ------------------------------------------------------------------ cards (news, documents) */
.bf-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.bf-card { display: flex; flex-direction: column; background: var(--bf-card); border: 1px solid var(--bf-line); border-radius: var(--bf-radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.bf-card:hover { box-shadow: 0 10px 28px rgba(27, 25, 23, .12); transform: translateY(-2px); }
.bf-card__media { display: block; aspect-ratio: 3 / 2; background: var(--bf-wash); overflow: hidden; }
.bf-card__img, .bf-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-card__ph { display: block; width: 100%; height: 100%; background: var(--bf-night) url(img/gkb-emblem-192.png) center / 30% no-repeat; }
.bf-card__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.bf-card__date { font: 700 .78rem var(--bf-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--bf-red); margin: 0; }
.bf-site .bf-card__title { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.bf-site .bf-card__title a { color: var(--bf-ink); text-decoration: none; }
.bf-site .bf-card__title a:hover { color: var(--bf-red); }
.bf-site .bf-card__title a::after { content: ""; position: absolute; inset: 0; }
.bf-card { position: relative; }
.bf-card__text { color: var(--bf-muted); font-size: .95rem; margin: .2rem 0 0; }
.bf-site .bf-card .bf-card__title { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.bf-site :is(.bf-prose, .bf-lines, .bf-panel) a > .bf-ico:last-child { margin-left: .25em; }

.bf-docs { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.bf-doc { position: relative; display: flex; flex-direction: column; gap: .5rem; background: var(--bf-card); border: 1px solid var(--bf-line); border-radius: var(--bf-radius); padding: 1.4rem 1.4rem 1.3rem; }
.bf-doc .bf-ico { width: 2rem; height: 2rem; color: var(--bf-red); }
.bf-site .bf-doc h3 { font-size: 1.25rem; margin: .3rem 0 0; }
.bf-site .bf-doc h3 a { color: var(--bf-ink); text-decoration: none; }
.bf-site .bf-doc h3 a::after { content: ""; position: absolute; inset: 0; }
.bf-site .bf-doc h3 a:hover { color: var(--bf-red); }
.bf-doc p { color: var(--bf-muted); margin: 0; font-size: .95rem; }
.bf-doc .bf-doc__src .bf-ico { width: 1em; height: 1em; color: inherit; }
.bf-doc__src { font: 700 .75rem var(--bf-sans) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--bf-muted); margin-top: auto !important; padding-top: .4rem; }

/* ------------------------------------------------------------------ prose & legal documents */
.bf-prose { font-size: 1.05rem; line-height: 1.7; }
.bf-site .bf-prose h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin: 2.4rem 0 .9rem; }
.bf-site .bf-prose h3 { font-size: 1.3rem; margin: 2rem 0 .7rem; }
.bf-site .bf-prose h4 { font-size: 1.1rem; margin: 1.6rem 0 .6rem; }
.bf-site .bf-prose :is(h2, h3, h4):first-child { margin-top: 0; }
.bf-site .bf-prose :is(ul, ol) { margin: 0 0 1.2em; padding: 0 0 0 1.4em; line-height: 1.6; }
.bf-site .bf-prose li { margin-bottom: .35em; }
.bf-site .bf-prose ul { list-style: disc; }
.bf-site .bf-prose li::marker { color: var(--bf-red); }
.bf-prose blockquote { border-left: 3px solid var(--bf-red); margin: 1.4em 0; padding: .2em 0 .2em 1.2em; font-style: italic; color: var(--bf-muted); }
.bf-prose .sig { font-style: italic; color: var(--bf-muted); }
.bf-prose figure { margin: 1.4em 0; }

.bf-note { background: var(--bf-wash); border-left: 3px solid var(--bf-red); padding: 1rem 1.25rem; margin: 0 0 2rem; font-size: .98rem; }
.bf-note p:last-child { margin: 0; }

.bf-legal { font-size: 1rem; line-height: 1.65; }
.bf-site .bf-legal h2 { font-size: 1.5rem; margin: 2.8rem 0 1rem; padding-top: 1.4rem; border-top: 1px solid var(--bf-line); }
.bf-site .bf-legal h3 { font-size: 1.15rem; margin: 2rem 0 .8rem; letter-spacing: .01em; }
.bf-site .bf-legal h4 { font-size: 1.02rem; margin: 1.6rem 0 .6rem; font-style: italic; }
.bf-legal p { margin: 0 0 .7em; }
.bf-legal .r-art { margin-top: 1.1em; }
.bf-legal .r-art strong:first-child { color: var(--bf-red-dark); }
.bf-legal .r-item { padding-left: 2.2em; text-indent: -1.4em; }
.bf-legal .r-al { padding-left: 0; }

.bf-table { overflow-x: auto; margin: 1.2rem 0 1.6rem; border: 1px solid var(--bf-line); border-radius: 8px; background: var(--bf-card); }
.bf-site .bf-table table { width: 100%; border-collapse: collapse; margin: 0; border: 0; font-size: .92rem; line-height: 1.45; }
.bf-site .bf-table :is(th, td) { padding: .55rem .75rem; border: 0; border-bottom: 1px solid var(--bf-line); text-align: left; vertical-align: top; }
.bf-site .bf-table th { background: var(--bf-wash); font-weight: 700; }
.bf-site .bf-table tr:last-child td { border-bottom: 0; }

.bf-toc { background: var(--bf-card); border: 1px solid var(--bf-line); border-radius: var(--bf-radius); padding: 0; margin: 0 0 2.2rem; }
.bf-toc summary { cursor: pointer; padding: 1rem 1.25rem; font: 700 1.05rem var(--bf-serif); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.bf-toc summary::-webkit-details-marker { display: none; }
.bf-toc summary::after { content: "+"; font: 700 1.4rem/1 var(--bf-sans); color: var(--bf-red); }
.bf-toc[open] summary::after { content: "–"; }
.bf-site .bf-toc ol { list-style: none; margin: 0; padding: 0 1.25rem 1.2rem; columns: 2 18rem; column-gap: 2rem; }
.bf-site .bf-toc li { break-inside: avoid; margin: 0 0 .3rem; padding: 0; font-size: .92rem; line-height: 1.4; }
.bf-site .bf-toc li.l2 { font-weight: 700; margin-top: .7rem; }
.bf-site .bf-toc li.l3 { padding-left: .9rem; }
.bf-site .bf-toc a { color: var(--bf-ink); text-decoration: none; }
.bf-site .bf-toc a:hover { color: var(--bf-red); text-decoration: underline; }
.bf-downloads { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 2rem; }

.bf-totop { position: fixed; right: 1rem; bottom: 1rem; z-index: 900; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--bf-night); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.bf-totop.is-on { opacity: 1; pointer-events: auto; }
.bf-totop .bf-ico { transform: rotate(-90deg); }

/* ------------------------------------------------------------------ news article */
.bf-article__lead { margin: 0 0 2rem; }
.bf-article__lead img { width: 100%; border-radius: var(--bf-radius); display: block; }
.bf-gallery { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); margin: 2rem 0; }
.bf-gallery a { display: block; border-radius: 8px; overflow: hidden; background: var(--bf-wash); aspect-ratio: 4 / 3; }
.bf-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.bf-gallery a:hover img { transform: scale(1.04); }
.bf-source { font-size: .9rem; color: var(--bf-muted); border-top: 1px solid var(--bf-line); padding-top: 1rem; margin-top: 2rem; }
.bf-back { margin: 2.2rem 0 0; }

.bf-lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94svh; }
.bf-lightbox::backdrop { background: rgba(10, 9, 9, .92); }
.bf-lightbox img { max-width: 96vw; max-height: 88svh; display: block; margin: 0 auto; border-radius: 6px; }
.bf-lightbox__bar { display: flex; justify-content: center; gap: .5rem; margin-top: .6rem; }
.bf-lightbox button { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .4); border-radius: 2px; padding: .4rem .9rem; font: 700 .85rem var(--bf-sans); cursor: pointer; }

.bf-pager { margin-top: 2.5rem; }
.bf-pager .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.bf-site .bf-pager .page-numbers { display: inline-block; padding: .4rem .85rem; border: 1px solid var(--bf-line); border-radius: 2px; text-decoration: none; color: var(--bf-ink); background: var(--bf-card); }
.bf-site .bf-pager .page-numbers.current { background: var(--bf-ink); color: #fff; border-color: var(--bf-ink); }

/* ------------------------------------------------------------------ contact */
.bf-contact { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.bf-panel { background: var(--bf-card); border: 1px solid var(--bf-line); border-radius: var(--bf-radius); padding: 1.5rem; }
.bf-site .bf-panel h2, .bf-site .bf-panel h3 { font-size: 1.3rem; margin: 0 0 .3rem; }
.bf-panel__role { color: var(--bf-muted); margin: 0 0 1rem; }
.bf-site .bf-lines { list-style: none; margin: 0; padding: 0; }
.bf-site .bf-lines li { display: flex; gap: .65rem; align-items: flex-start; padding: .45rem 0; border-top: 1px solid var(--bf-line); list-style: none; }
.bf-lines .bf-ico { color: var(--bf-red); margin-top: .25em; }

/* ------------------------------------------------------------------ footer */
.bf-footer { background: var(--bf-night-deep); color: var(--bf-on-night); border-top: 3px solid var(--bf-red); font-size: .95rem; }
.bf-footer__grid { display: grid; gap: 2.2rem 3rem; padding-block: 3.2rem 2.6rem; }
@media (min-width: 48rem) { .bf-footer__grid { grid-template-columns: 2.2fr 1fr 1fr auto; } }
.bf-footer__brand p { color: var(--bf-night-muted); margin: 1.1rem 0 0; max-width: 28rem; }
.bf-site .bf-footer__h { font: 700 .78rem var(--bf-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bf-night-red); margin: .3rem 0 .9rem; }
.bf-site .bf-footer__links { list-style: none; margin: 0; padding: 0; }
.bf-site .bf-footer__links li { list-style: none; margin: 0 0 .45rem; }
.bf-site .bf-footer__links a { color: var(--bf-on-night); text-decoration: none; }
.bf-site .bf-footer__links a:hover { color: var(--bf-night-red); text-decoration: underline; }
.bf-footer__kanji { display: none; }
@media (min-width: 48rem) { .bf-footer__kanji { display: block; } }
.bf-kanji { display: block; width: 1.7rem; height: 8.5rem; background: var(--bf-night-red); -webkit-mask: url(img/gkb-kanji.png) center / contain no-repeat; mask: url(img/gkb-kanji.png) center / contain no-repeat; }
.bf-footer__bottom { border-top: 1px solid var(--bf-night-line); }
.bf-footer__bottom .bf-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; padding-block: 1rem; }
.bf-footer__bottom p { margin: 0; color: var(--bf-night-muted); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
	.bf-site *, .bf-site *::before, .bf-site *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.bf-header, .bf-footer, .bf-toc, .bf-downloads, .bf-totop, .bf-phero::after { display: none !important; }
	.bf-phero { background: none; color: #000; padding: 0 0 1rem; }
	.bf-site .bf-phero h1 { color: #000; }
}

/* Band classes set on the Divi section itself (pages whose band holds several modules). */
.bf-site .et_pb_section.bf-sec.bf-band { padding-block: var(--bf-band) !important; }
.bf-site .et_pb_section.bf-sec.bf-band--wash { background: var(--bf-wash); }
.bf-site .et_pb_section.bf-sec.bf-band--ink { background: var(--bf-night); color: var(--bf-on-night); }
