/*
Theme Name: ブレインロット攻略DBテーマ
Theme URI: https://example.invalid/brainrot-db-theme
Author: サイト運営
Description: フォートナイトのブレインロットDB専用。目的別導線、更新情報、スマホ操作を重視したブロックテーマ。
Version: 3.4.0
Requires at least: 6.8
Tested up to: 7.0
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brainrot-db-theme
Tags: block-patterns, full-site-editing, accessibility-ready
*/

:root {
  --brdb-header-height: 76px;
  --brdb-nav-height: 68px;
  --brdb-safe-bottom: env(safe-area-inset-bottom, 0px);
  --brdb-theme-accent: #119bc8;
  --brdb-theme-accent-dark: #087ea7;
  --brdb-theme-accent-soft: #eaf8fd;
  --brdb-theme-ink: #15212c;
  --brdb-theme-muted: #60717e;
  --brdb-theme-line: #d7e5eb;
  --brdb-theme-page: #f5f9fb;
  --brdb-theme-surface: #fff;
  --brdb-theme-shadow: 0 14px 36px rgba(26, 68, 88, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: normal; word-break: normal; background: var(--brdb-theme-page); color: var(--brdb-theme-ink); }
img { max-width: 100%; height: auto; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brdb-theme-accent) 65%, white);
  outline-offset: 3px;
}
.brdb-skip-link { position: fixed; z-index: 9999; top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 14px; border: 2px solid var(--brdb-theme-accent-dark); background: #fff; color: var(--brdb-theme-ink); }
.brdb-skip-link:focus { transform: none; }

/* Public header */
.brdb-public-header { position: sticky; z-index: 110; top: 0; border-bottom: 1px solid var(--brdb-theme-line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.admin-bar .brdb-public-header { top: 32px; }
.brdb-header-shell { width: min(1180px, calc(100% - 32px)); min-height: var(--brdb-header-height); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brdb-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 220px; color: var(--brdb-theme-ink); text-decoration: none; }
.brdb-brand-mark { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(145deg, #2eb9e1, #0986b4); color: #fff; box-shadow: 0 8px 20px rgba(17,155,200,.23); font-size: 16px; font-weight: 900; }
.brdb-brand strong { display: block; font-size: 15px; line-height: 1.2; letter-spacing: -.01em; }
.brdb-brand small { display: block; margin-top: 3px; color: #85939e; font-size: 8px; font-weight: 750; letter-spacing: .13em; }
.brdb-desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 28px); margin-left: auto; }
.brdb-desktop-nav a { color: #435361; font-size: 13px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.brdb-desktop-nav a:hover { color: var(--brdb-theme-accent-dark); }
.brdb-header-utilities { display: flex; align-items: center; gap: 12px; }
.brdb-header-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 10px; background: var(--brdb-theme-accent-dark); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; box-shadow: 0 8px 18px rgba(8,126,167,.16); }
.brdb-version-strip { border-bottom: 1px solid #ccebf5; background: #def5fc; }
.brdb-version-strip > div { width: min(1180px, calc(100% - 32px)); min-height: 34px; margin-inline: auto; display: flex; align-items: center; justify-content: center; gap: 12px; color: #4a6979; font-size: 11px; }
.brdb-version-strip strong { padding: 3px 9px; border-radius: 999px; background: var(--brdb-theme-accent-dark); color: #fff; font-size: 10px; }

.brdb-main { min-height: 60vh; padding-bottom: calc(90px + var(--brdb-safe-bottom)); }
.brdb-home-main { padding-bottom: 0; }
.brdb-home-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

/* Hero */
.brdb-home-hero { position: relative; overflow: hidden; border-bottom: 1px solid #d6edf5; background-color: #f3fbfe; background-image: radial-gradient(#cfeaf3 1px, transparent 1px); background-size: 17px 17px; }
.brdb-home-hero::before, .brdb-home-hero::after { position: absolute; border-radius: 50%; background: rgba(47,183,225,.08); content: ""; }
.brdb-home-hero::before { right: -90px; top: 65px; width: 300px; height: 300px; }
.brdb-home-hero::after { left: -120px; bottom: -180px; width: 300px; height: 300px; }
.brdb-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr); gap: clamp(44px, 7vw, 88px); align-items: center; min-height: 510px; padding-block: 70px 76px; }
.brdb-update-label { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--brdb-theme-accent-dark); font-size: 11px; font-weight: 850; letter-spacing: .15em; }
.brdb-update-label span { width: 8px; height: 8px; border: 3px solid #b8e9f7; border-radius: 50%; background: var(--brdb-theme-accent); }
.brdb-hero-content h1 { max-width: 650px; margin: 0; color: #131f29; font-size: clamp(42px, 5.6vw, 70px); font-weight: 850; line-height: 1.02; letter-spacing: -.055em; }
.brdb-hero-content h1 em { color: #0b8fbe; font-style: normal; }
.brdb-hero-description { max-width: 620px; margin: 24px 0 0; color: #59707e; font-size: 15px; line-height: 1.85; }
.brdb-hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.brdb-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 800; text-decoration: none; }
.brdb-button.is-primary { background: var(--brdb-theme-accent-dark); color: #fff; box-shadow: 0 8px 20px rgba(8,126,167,.18); }
.brdb-button.is-secondary { border-color: #b8ddea; background: rgba(255,255,255,.8); color: var(--brdb-theme-accent-dark); }
.brdb-hero-points { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0 0; padding: 0; color: #647985; list-style: none; font-size: 11px; font-weight: 650; }
.brdb-hero-points li::before { margin-right: 4px; color: var(--brdb-theme-accent-dark); content: "✓"; font-weight: 900; }
.brdb-hero-visual { position: relative; min-height: 360px; }
.brdb-hero-card-stack { position: relative; width: 100%; height: 300px; }
.brdb-hero-character { position: absolute; display: grid; grid-template-rows: minmax(0,1fr) auto; width: 205px; height: 245px; padding: 12px 12px 10px; overflow: hidden; border: 1px solid #cfe5ed; border-radius: 17px; background: rgba(255,255,255,.94); color: var(--brdb-theme-ink); box-shadow: 0 14px 30px rgba(41,92,112,.08); text-align: center; text-decoration: none; transform-origin: center; }
.brdb-hero-character img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.brdb-hero-character span { font-size: 10px; font-weight: 800; }
.brdb-hero-character.is-1 { left: 4%; top: 52px; transform: rotate(-4deg); }
.brdb-hero-character.is-2 { left: 36%; top: 12px; z-index: 2; transform: rotate(4deg); }
.brdb-hero-character.is-3 { right: 0; top: 65px; transform: rotate(2deg); }
.brdb-hero-character.is-placeholder { place-items: center; }
.brdb-placeholder-icon { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 24px; background: var(--brdb-theme-accent-soft); color: var(--brdb-theme-accent-dark); font-size: 30px !important; }
.brdb-freshness-mini { position: absolute; z-index: 5; right: 0; bottom: 0; width: min(360px, 90%); padding: 15px; border: 1px solid #cfe5ed; border-radius: 15px; background: rgba(255,255,255,.95); box-shadow: var(--brdb-theme-shadow); }
.brdb-freshness-mini > strong { display: block; margin-bottom: 8px; font-size: 11px; }
.brdb-freshness-mini > strong::before { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #2fbce5; content: ""; }
.brdb-freshness-mini > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.brdb-freshness-mini span { min-width: 0; padding: 8px; border-radius: 8px; background: #f4f9fb; color: #7a8b96; font-size: 9px; }
.brdb-freshness-mini b { display: block; margin-top: 4px; color: var(--brdb-theme-ink); font-size: 11px; overflow-wrap: normal; }
.brdb-freshness-mini small { display: block; margin-top: 9px; color: #748590; font-size: 9px; }

/* Home sections */
.brdb-home-section { padding-block: clamp(62px, 7vw, 92px); }
.brdb-start-section, .brdb-character-section { background: #fff; }
.brdb-map-section, .brdb-event-section { border-block: 1px solid #e0eaee; background: #f4f8fa; }
.brdb-code-section { background: #effaff; }
.brdb-freshness-section { background: #f4f8fa; }
.brdb-section-heading { align-items: end !important; gap: 28px; margin-bottom: 26px; }
.brdb-section-heading h2 { margin: 3px 0 0; font-size: clamp(29px, 3.7vw, 42px); font-weight: 720; line-height: 1.25; letter-spacing: -.035em; }
.brdb-section-kicker { margin: 0 !important; color: var(--brdb-theme-accent-dark); font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.brdb-section-description { max-width: 430px; margin: 0; color: #627480; font-size: 13px; line-height: 1.7; }
.brdb-section-link { margin: 0; white-space: nowrap; }
.brdb-section-link a { color: var(--brdb-theme-accent-dark); font-size: 12px; font-weight: 800; text-decoration: none; }
.brdb-section-footnote { margin-top: 14px; color: #6d7f89; font-size: 10px; }
.brdb-purpose-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.brdb-purpose-grid a { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 12px; align-items: center; min-height: 105px; padding: 18px; border: 1px solid #d5ecf4; border-radius: 14px; background: #effaff; color: var(--brdb-theme-ink); text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.brdb-purpose-grid a:hover { border-color: #96d4e8; transform: translateY(-2px); }
.brdb-purpose-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #25b4df; color: #fff; font-size: 18px; font-weight: 850; }
.brdb-purpose-grid strong { display: block; font-size: 13px; line-height: 1.5; }
.brdb-purpose-grid small { display: block; margin-top: 4px; color: #6f818c; font-size: 10px; }

/* Content pages */
body:not(.home) .brdb-main { width: min(1180px, calc(100% - 32px)); margin-inline: auto; padding-top: clamp(32px, 5vw, 66px); }
.brdb-content-shell { padding: clamp(20px, 4vw, 42px); border: 1px solid var(--brdb-theme-line); border-radius: 16px; background: #fff; }
.brdb-post-meta { color: var(--brdb-theme-muted); font-size: .88rem; }
.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wp-block-table table { min-width: 100%; }
input, select, textarea, button { max-width: 100%; }

/* Footer */
.brdb-site-footer { padding: 52px 0 calc(94px + var(--brdb-safe-bottom)); border-top: 1px solid var(--brdb-theme-line); background: #fff; }
.brdb-footer-top { align-items: flex-start !important; gap: 42px; }
.brdb-footer-brand { display: flex; align-items: center; gap: 10px; }
.brdb-footer-brand span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brdb-theme-accent-dark); color: #fff; font-size: 13px; font-weight: 850; }
.brdb-footer-note { max-width: 540px; color: var(--brdb-theme-muted); font-size: 12px; line-height: 1.8; }
.brdb-site-footer .wp-block-navigation a { color: #526470; font-size: 12px; text-decoration: none; }
.brdb-footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid #e6edef; color: #84919a; font-size: 10px; }

.brdb-floating-nav { position: fixed; z-index: 100; left: 50%; bottom: calc(10px + var(--brdb-safe-bottom)); transform: translateX(-50%); width: min(94vw, 480px); min-height: var(--brdb-nav-height); display: none; grid-template-columns: repeat(5, minmax(0,1fr)); align-items: center; padding: 6px 8px; border: 1px solid rgba(160,180,192,.55); border-radius: 22px; background: rgba(255,255,255,.91); box-shadow: var(--brdb-theme-shadow); backdrop-filter: blur(18px) saturate(125%); }
.brdb-floating-nav a { min-width: 0; min-height: 54px; display: grid; place-items: center; gap: 2px; border-radius: 14px; color: #40515e; font-size: .7rem; font-weight: 700; text-decoration: none; }
.brdb-floating-nav a:hover, .brdb-floating-nav a[aria-current="page"] { background: var(--brdb-theme-accent-soft); color: var(--brdb-theme-accent-dark); }
.brdb-floating-nav svg { width: 20px; height: 20px; }

@media (max-width: 1080px) {
  .brdb-desktop-nav { gap: 14px; }
  .brdb-desktop-nav a:nth-child(-n+2) { display: none; }
  .brdb-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); gap: 34px; }
  .brdb-purpose-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 782px) {
  .admin-bar .brdb-public-header { top: 46px; }
  .brdb-header-shell { min-height: 64px; }
  .brdb-brand { min-width: 0; }
  .brdb-brand strong { font-size: 13px; }
  .brdb-brand small { display: none; }
  .brdb-brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .brdb-desktop-nav, .brdb-header-cta { display: none; }
  .brdb-header-utilities { margin-left: auto; }
  .brdb-version-strip > div { justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
  .brdb-hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 50px 62px; }
  .brdb-hero-content h1 { font-size: clamp(39px, 12vw, 58px); }
  .brdb-hero-visual { min-height: 330px; }
  .brdb-hero-card-stack { width: min(500px, 100%); margin-inline: auto; }
  .brdb-freshness-mini { right: 50%; transform: translateX(50%); }
  .brdb-floating-nav { display: grid; }
  .brdb-section-heading { align-items: flex-start !important; flex-direction: column; }
  .brdb-section-description { max-width: 100%; }
  .brdb-footer-top { flex-direction: column; }
}
@media (max-width: 560px) {
  .brdb-header-shell, .brdb-version-strip > div, .brdb-home-shell { width: min(100% - 24px, 1180px); }
  .brdb-home-section { padding-block: 52px; }
  .brdb-purpose-grid { grid-template-columns: 1fr; }
  .brdb-purpose-grid a { min-height: 88px; }
  .brdb-hero-visual { min-height: 285px; }
  .brdb-hero-card-stack { height: 230px; }
  .brdb-hero-character { width: 155px; height: 190px; }
  .brdb-hero-character.is-1 { left: 0; top: 38px; }
  .brdb-hero-character.is-2 { left: 38%; top: 4px; }
  .brdb-hero-character.is-3 { right: -10px; top: 48px; }
  .brdb-freshness-mini { width: 96%; padding: 12px; }
  .brdb-freshness-mini span { padding: 6px; }
  .brdb-section-heading h2 { font-size: 29px; }
  .brdb-section-link { align-self: flex-start; }
}
@media (max-width: 360px) {
  .brdb-brand strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brdb-hero-buttons .brdb-button { width: 100%; }
  .brdb-hero-character { width: 140px; }
  .brdb-floating-nav { width: calc(100vw - 12px); padding-inline: 4px; border-radius: 17px; }
  .brdb-floating-nav a { font-size: .64rem; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .brdb-floating-nav { bottom: 4px; min-height: 54px; }
  .brdb-floating-nav a { min-height: 44px; }
}
body.brdb-virtual-keyboard .brdb-floating-nav { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-contrast: more) {
  .brdb-public-header, .brdb-purpose-grid a, .brdb-content-shell, .brdb-floating-nav { border-width: 2px; }
}


/* v3.2.0 customization controls */
:root {
  --brdb-config-content-width: 760px;
  --brdb-config-wide-width: 1180px;
  --brdb-config-radius: 14px;
  --brdb-config-border-width: 1px;
  --brdb-config-shadow: 0 14px 34px rgba(38,79,97,.08);
  --brdb-config-columns-desktop: 4;
  --brdb-config-columns-tablet: 3;
  --brdb-config-columns-mobile: 2;
  --brdb-config-image-ratio: 1 / 1;
}
body.brdb-layout-narrow .brdb-main { width: min(680px, calc(100% - 32px)); }
body.brdb-layout-wide .brdb-main { width: min(var(--brdb-config-wide-width), calc(100% - 32px)); }
body.brdb-layout-full .brdb-main { width: 100%; max-width: none; }
body.brdb-global-header-compact .brdb-header-shell { min-height: 58px; }
body.brdb-global-header-compact .brdb-brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
body:not(.brdb-sticky-header) .brdb-public-header { position: relative; top: auto; }
body.brdb-hide-title .wp-block-post-title,
body.brdb-hide-title .wp-block-query-title { display: none !important; }
body.brdb-hide-breadcrumbs .brdb-breadcrumbs { display: none !important; }
body.brdb-hide-updated .wp-block-post-date,
body.brdb-hide-updated .brdb-post-meta { display: none !important; }
body.brdb-hide-mobile-nav .brdb-floating-nav { display: none !important; }
body.brdb-button-outline .brdb-button.is-primary,
body.brdb-button-outline .wp-element-button { border: 2px solid var(--brdb-theme-accent-dark); background: transparent; color: var(--brdb-theme-accent-dark); box-shadow: none; }
body.brdb-button-square .brdb-button,
body.brdb-button-square .wp-element-button { border-radius: 4px; }
body.brdb-density-compact .brdb-home-section { padding-block: clamp(42px,5vw,64px); }
body.brdb-density-compact .brdb-purpose-grid a { min-height: 88px; padding: 14px; }
body.brdb-density-comfortable .brdb-home-section { padding-block: clamp(78px,9vw,112px); }
.brdb-content-shell, .brdb-purpose-grid a, .brdb-hero-character, .brdb-freshness-mini { border-width: var(--brdb-config-border-width); border-radius: var(--brdb-config-radius); box-shadow: var(--brdb-config-shadow); }
.brdb-character-grid { grid-template-columns: repeat(var(--brdb-config-columns-desktop), minmax(0, 1fr)); }
.brdb-character-image, .brdb-character-main-image { aspect-ratio: var(--brdb-config-image-ratio); }
@media (max-width: 900px) { .brdb-character-grid { grid-template-columns: repeat(var(--brdb-config-columns-tablet), minmax(0,1fr)); } }
@media (max-width: 640px) { .brdb-character-grid { grid-template-columns: repeat(var(--brdb-config-columns-mobile), minmax(0,1fr)); } }

body.brdb-preset-compact { --brdb-header-height: 64px; }
body.brdb-preset-compact .brdb-home-section { padding-block: clamp(40px,5vw,64px); }
body.brdb-preset-editorial .brdb-content-shell { max-width: var(--brdb-config-content-width); margin-inline: auto; }
body.brdb-preset-editorial .brdb-main p { line-height: 1.95; }
body.brdb-preset-contrast { --brdb-theme-line: #98a9b3; --brdb-theme-shadow: none; }
body.brdb-preset-contrast a { text-decoration-thickness: 2px; text-underline-offset: .18em; }


/* v3.2.0 responsive typography and wrapping hardening */
:where(h1,h2,h3,.brdb-purpose-grid strong,.brdb-brand strong) { text-wrap: balance; overflow-wrap: normal; word-break: normal; }
:where(p,li,.brdb-section-description,.brdb-footer-note) { text-wrap: pretty; }
:lang(ja) :where(h1,h2,h3,p,li,a,button,span,strong,small) { word-break: auto-phrase; }
:where(code,pre,kbd,samp,.brdb-code-value,.brdb-copy-code,.brdb-serp-url) { overflow-wrap: anywhere; word-break: break-word; }
.brdb-button,.wp-element-button,.brdb-header-cta { min-width: 0; text-align: center; line-height: 1.35; white-space: normal; }
.brdb-purpose-grid strong { font-size: clamp(.875rem,1.2vw,.96rem); }
.brdb-purpose-grid small,.brdb-section-footnote,.brdb-footer-bottom { font-size: max(.75rem,12px); line-height: 1.55; }
.brdb-section-kicker,.brdb-section-link a,.brdb-footer-note,.brdb-site-footer .wp-block-navigation a { font-size: max(.75rem,12px); }
.brdb-floating-nav a { font-size: max(.68rem,11px); }
@media (min-width: 783px) { .brdb-header-cta,.brdb-button { white-space: nowrap; } }
@media (max-width: 430px) {
  .brdb-section-heading h2 { font-size: clamp(1.65rem,8vw,2rem); }
  .brdb-purpose-grid a { grid-template-columns: 36px minmax(0,1fr); padding: 15px; }
  .brdb-purpose-grid strong { line-height: 1.45; }
}

/* v3.2.0: content-first, human-edited visual system */
.brdb-home-hero{background:#eef8fc;background-image:none}.brdb-home-hero::before,.brdb-home-hero::after{display:none}.brdb-hero-grid{grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);gap:clamp(36px,5vw,72px);min-height:480px;padding-block:clamp(56px,7vw,86px)}.brdb-hero-content{min-width:0}.brdb-hero-content h1{max-width:820px;font-size:clamp(2.75rem,5.2vw,4.75rem);line-height:1.03;letter-spacing:-.045em;text-wrap:pretty;word-break:auto-phrase}.brdb-hero-description{max-width:660px;font-size:clamp(1rem,1.25vw,1.125rem);line-height:1.9}.brdb-update-label{letter-spacing:.09em}.brdb-hero-card-stack{min-height:330px}.brdb-hero-character{background:#fff}.brdb-hero-character img{width:100%;height:100%;object-fit:contain;padding:10px}.brdb-hero-character span{max-width:100%;font-size:.78rem;line-height:1.35}.brdb-placeholder-icon{font-size:1.75rem}.brdb-section-kicker{display:none}.brdb-section-heading{align-items:end;gap:20px}.brdb-section-heading h2{max-width:800px;font-size:clamp(1.75rem,3vw,2.6rem);line-height:1.2;letter-spacing:-.025em;text-wrap:pretty}.brdb-section-description{max-width:500px;font-size:.95rem;line-height:1.8}.brdb-purpose-grid{gap:0;border-top:1px solid var(--brdb-theme-line);border-bottom:1px solid var(--brdb-theme-line)}.brdb-purpose-grid a{min-height:96px;padding:18px 20px;border:0;border-right:1px solid var(--brdb-theme-line);border-radius:0;background:transparent;box-shadow:none}.brdb-purpose-grid a:last-child{border-right:0}.brdb-purpose-grid a:hover{background:#f4fbfe;transform:none}.brdb-purpose-icon{border-radius:8px}.brdb-purpose-grid strong{font-size:.95rem;line-height:1.45}.brdb-purpose-grid small{font-size:.78rem;line-height:1.5}.brdb-map-grid{gap:18px}.brdb-map-card{display:grid;grid-template-columns:1fr 128px;grid-template-areas:"number image" "name image" "title image" "description description" "stats stats" "link link";gap:8px 16px;align-items:start;padding:24px;border-radius:10px;background:#fff;box-shadow:none}.brdb-map-number{grid-area:number}.brdb-map-thumbnail{grid-area:image;position:static;width:128px;height:104px}.brdb-map-en-name{grid-area:name;margin:8px 0 0}.brdb-map-card h3{grid-area:title;margin:0;max-width:none}.brdb-map-description{grid-area:description}.brdb-map-stats{grid-area:stats}.brdb-map-link{grid-area:link}.brdb-code-card,.brdb-character-card{border-radius:10px;box-shadow:none}.brdb-code-cards{gap:14px}.brdb-event-row{border-radius:8px;box-shadow:none}.brdb-freshness-panel{border-radius:10px;box-shadow:none}.brdb-empty{margin:0;padding:18px 0;border:0;background:transparent;color:var(--brdb-theme-muted)}
@media(max-width:900px){.brdb-hero-grid{grid-template-columns:1fr}.brdb-hero-visual{max-width:620px}.brdb-purpose-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brdb-purpose-grid a:nth-child(2){border-right:0}.brdb-purpose-grid a:nth-child(-n+2){border-bottom:1px solid var(--brdb-theme-line)}}
@media(max-width:640px){.brdb-hero-grid{padding-block:42px 50px}.brdb-hero-content h1{font-size:clamp(2.2rem,11vw,3.4rem);line-height:1.08;letter-spacing:-.035em}.brdb-hero-description{line-height:1.75}.brdb-hero-buttons{display:grid;grid-template-columns:1fr 1fr}.brdb-purpose-grid{grid-template-columns:1fr}.brdb-purpose-grid a,.brdb-purpose-grid a:nth-child(2){border-right:0;border-bottom:1px solid var(--brdb-theme-line)}.brdb-purpose-grid a:last-child{border-bottom:0}.brdb-map-card{grid-template-columns:1fr 96px;padding:18px}.brdb-map-thumbnail{width:96px;height:84px}.brdb-section-heading{align-items:start}.brdb-section-description{max-width:none}.brdb-home-section{padding-block:clamp(44px,12vw,68px)}}
@media(max-width:380px){.brdb-hero-buttons{grid-template-columns:1fr}.brdb-hero-content h1{font-size:2.15rem}.brdb-header-shell{width:min(100% - 20px,1180px)}.brdb-map-card{grid-template-columns:1fr}.brdb-map-thumbnail{grid-area:image;width:100%;height:auto;aspect-ratio:16/9}.brdb-map-card{grid-template-areas:"number" "image" "name" "title" "description" "stats" "link"}}

/* v3.2.0 editable core header/footer */
.brdb-brand-group{gap:10px;min-width:220px}.brdb-site-logo img{display:block;border-radius:10px}.brdb-site-title{margin:0!important}.brdb-site-title a{color:var(--brdb-theme-ink);font-size:15px;font-weight:850;line-height:1.2;text-decoration:none;white-space:nowrap}.brdb-brand-subtitle{margin:3px 0 0!important;color:#85939e;font-size:8px;font-weight:750;letter-spacing:.13em;white-space:nowrap}.brdb-public-header .wp-block-navigation{margin-left:auto}.brdb-public-header .wp-block-navigation-item__content{color:#435361;font-size:13px;font-weight:750;text-decoration:none;white-space:nowrap}.brdb-public-header .wp-block-navigation-item__content:hover{color:var(--brdb-theme-accent-dark)}.brdb-header-button .wp-block-button__link{min-height:44px;padding:11px 18px;border-radius:9px;background:var(--brdb-theme-accent);font-size:13px;font-weight:800;white-space:nowrap}.brdb-version-strip>.wp-block-group{gap:10px}.brdb-version-strip p{margin:0}.brdb-version-strip strong{display:inline-block;padding:3px 9px;border-radius:999px;background:var(--brdb-theme-accent-dark);color:#fff;font-size:11px}.brdb-footer-brand-column{max-width:560px}.brdb-footer-brand{gap:10px}.brdb-footer-brand .wp-block-site-title{margin:0}.brdb-footer-brand .wp-block-site-title a{color:#fff;text-decoration:none}.brdb-footer-navigation{min-width:210px}
@media(max-width:980px){.brdb-brand-group{min-width:0}.brdb-public-header .wp-block-navigation{order:3;margin-left:0}.brdb-header-shell{flex-wrap:wrap!important;padding-block:10px}.brdb-header-utilities{margin-left:auto}.brdb-brand-subtitle{display:none}}
@media(max-width:600px){.brdb-site-title a{font-size:13px}.brdb-header-button{display:none}.brdb-public-header .wp-block-navigation{margin-left:auto}.brdb-version-strip{font-size:11px}.brdb-footer-top{align-items:flex-start!important}.brdb-footer-navigation{min-width:100%}}

/* v3.2.0 final hero wrapping and operator-preview refinements */
@media (min-width: 1100px) {
  .brdb-hero-grid { grid-template-columns: minmax(0, 1.48fr) minmax(360px, .72fr); gap: clamp(34px, 4vw, 58px); }
  .brdb-hero-content h1 { max-width: 780px; font-size: clamp(3rem, 4.15vw, 3.65rem); line-height: 1.08; text-wrap: balance; }
}
@media (min-width: 641px) and (max-width: 1099px) {
  .brdb-hero-content h1 { max-width: 760px; font-size: clamp(2.75rem, 6vw, 3.6rem); text-wrap: balance; }
}
@media (max-width: 640px) {
  .brdb-hero-content h1 { max-width: 18ch; font-size: clamp(2.05rem, 10.4vw, 3rem); text-wrap: balance; }
}


/* v3.2.0: desktop line-breaking and card readability fixes */
.brdb-hero-grid { grid-template-columns: minmax(0, 1.28fr) minmax(360px, .72fr); gap: clamp(30px, 4vw, 54px); }
.brdb-hero-content h1 { max-width: 720px; font-size: clamp(2.8rem, 4.65vw, 3.75rem); line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: normal; word-break: normal; }
:lang(ja) .brdb-hero-content h1 { word-break: auto-phrase; }
.brdb-start-section > .brdb-purpose-grid { width: min(var(--wp--style--global--wide-size, 1180px), calc(100% - 0px)); max-width: var(--wp--style--global--wide-size, 1180px) !important; margin-inline: auto; }
.brdb-purpose-grid strong { font-size: max(.86rem, 14px); line-height: 1.45; word-break: normal; overflow-wrap: normal; }
.brdb-purpose-grid small { font-size: max(.75rem, 12px); line-height: 1.5; }
:lang(ja) .brdb-purpose-grid strong { word-break: auto-phrase; }
.brdb-brand small,.brdb-version-strip,.brdb-hero-points,.brdb-freshness-mini span,.brdb-freshness-mini small,.brdb-section-footnote,.brdb-footer-bottom { font-size: max(.72rem, 12px); }
@media (max-width: 1180px) {
  .brdb-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, .75fr); }
  .brdb-hero-content h1 { font-size: clamp(2.55rem, 5vw, 3.25rem); }
}
@media (max-width: 920px) {
  .brdb-hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 52px; }
  .brdb-hero-content h1 { max-width: 760px; }
  .brdb-hero-visual { min-height: 380px; }
  .brdb-purpose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .brdb-hero-content h1 { font-size: clamp(2.15rem, 11vw, 2.75rem); line-height: 1.1; }
  .brdb-purpose-grid { grid-template-columns: 1fr; }
  .brdb-purpose-grid a { min-height: 84px; }
}

/* v3.2 typography and final human-centered layout */
.brdb-heading-line{display:block;max-width:100%}
.brdb-hero-content h1{font-family:inherit;font-weight:var(--brdb-heading-weight,760);letter-spacing:var(--brdb-heading-letter-spacing,-.025em);text-wrap:pretty;overflow-wrap:normal;word-break:normal}
:lang(ja) .brdb-hero-content h1{word-break:auto-phrase}
.brdb-hero-description{font-size:1.02em;line-height:1.85}
.brdb-home-hero{background:#edf8fc;background-image:none}
.brdb-home-hero::before,.brdb-home-hero::after{display:none}
.brdb-purpose-grid{grid-template-columns:1.35fr 1.15fr 1fr 1fr;background:#fff}
.brdb-purpose-grid a{min-width:0;min-height:104px;padding:20px 22px}
.brdb-purpose-grid strong{font-size:max(.92rem,15px);line-height:1.5;text-wrap:pretty}
.brdb-purpose-grid small{font-size:max(.78rem,12px);line-height:1.55}
.brdb-home-section:nth-of-type(even){background:color-mix(in srgb,var(--brdb-theme-page) 68%,#fff)}
.brdb-code-cards{align-items:stretch}
.brdb-code-card{border-radius:8px}
.brdb-event-row{border-radius:6px}
.brdb-map-card{border-radius:8px}
.brdb-character-card{border-radius:8px}
.brdb-section-heading h2{font-weight:var(--brdb-heading-weight,760);letter-spacing:var(--brdb-heading-letter-spacing,-.025em)}
.brdb-button,.brdb-header-cta,.wp-element-button{min-height:44px;white-space:normal;text-wrap:pretty}
@media(max-width:1200px){.brdb-purpose-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brdb-purpose-grid a:nth-child(2){border-right:0}.brdb-purpose-grid a:nth-child(-n+2){border-bottom:1px solid var(--brdb-theme-line)}}
@media(max-width:720px){.brdb-purpose-grid{grid-template-columns:1fr}.brdb-purpose-grid a{min-height:86px;border-right:0!important;border-bottom:1px solid var(--brdb-theme-line)}.brdb-purpose-grid a:last-child{border-bottom:0}.brdb-hero-content h1{font-size:clamp(var(--brdb-hero-font-min,38px),10vw,min(var(--brdb-hero-font-max,68px),56px));line-height:1.08}.brdb-heading-line{display:block}.brdb-section-heading h2{font-size:clamp(1.65rem,8vw,2.25rem)}}
@media(max-width:380px){.brdb-button,.brdb-header-cta,.wp-element-button{width:100%;justify-content:center}.brdb-hero-buttons{grid-template-columns:1fr}}
