/* Norubi Blog Hub 6.0.0 — article, page et catégorie au design du blog.
   Une seule carte : bandeau coloré (dégradé de la boîte 最新ポスト), puis le
   contenu collé dessous sur fond blanc. */

:root {
  --nbx-ink: #172033;
  --nbx-muted: #5d6b80;
  --nbx-blue: #285fb0;
  --nbx-blue-dark: #173f78;
  --nbx-line: rgba(23, 63, 120, .12);
  --nbx-head: linear-gradient(120deg, #e2f4fb 0%, #f3f9f9 55%, #fff6ea 100%);
  --nbx-radius: 28px;
  --nbx-shadow: 0 22px 55px rgba(21, 47, 83, .13);
  --nbx-line-green: #06c755;
  --nbx-font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

/* Fond d'Étretat, comme le portail */
body.nbx-page {
  overflow-x: clip; /* pas hidden : sinon le corps devient la zone de défilement et plus rien ne reste collé */
  position: relative;
  min-height: 100vh;
  margin: 0;
  background: #edf7f8;
  color: var(--nbx-ink);
  font-family: var(--nbx-font);
}
body.nbx-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
body.nbx-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(234, 248, 250, .82), rgba(255, 255, 255, .7) 45%, rgba(214, 240, 244, .78));
}

.nbx-shell {
  box-sizing: border-box;
  width: min(860px, calc(100% - 24px));
  margin: 24px auto 56px;
}
.nbx-shell--wide {
  width: min(1180px, calc(100% - 24px));
}
.nbx-shell *,
.nbx-shell *::before,
.nbx-shell *::after {
  box-sizing: border-box;
}

/* ---------- La carte ---------- */
.nbx-sheet {
  overflow: hidden;
  overflow: clip; /* comme hidden, mais laisse fonctionner position: sticky */
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--nbx-radius);
  background: #fff;
  box-shadow: var(--nbx-shadow);
}

.nbx-head {
  padding: clamp(24px, 5vw, 44px) clamp(20px, 5vw, 48px) clamp(20px, 4vw, 30px);
  background: var(--nbx-head);
  border-bottom: 1px solid var(--nbx-line);
}
.nbx-head--cover {
  display: flex;
  gap: clamp(16px, 4vw, 32px);
  align-items: center;
}
.nbx-cover {
  flex: 0 0 auto;
  width: clamp(96px, 22vw, 160px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(21, 47, 83, .16);
}
.nbx-head__text { min-width: 0; }

.nbx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.nbx-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--nbx-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  color: var(--nbx-blue-dark);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}
a.nbx-chip:hover { background: #fff; }

.nbx-kicker {
  margin: 0 0 6px;
  color: var(--nbx-blue);
  font-family: Georgia, "Times New Roman", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.nbx-title {
  margin: 0;
  color: var(--nbx-ink);
  font-size: clamp(1.6rem, 5.4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.nbx-subtitle {
  margin: 12px 0 0;
  color: #3f4d62;
  font-size: clamp(1rem, 2.6vw, 1.1rem);
  line-height: 1.8;
}
.nbx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 16px 0 0;
  color: var(--nbx-muted);
  font-size: .9rem;
  font-weight: 700;
}

/* ---------- Corps blanc ---------- */
.nbx-body {
  padding: clamp(20px, 5vw, 44px) clamp(18px, 5vw, 48px) clamp(28px, 5vw, 48px);
}

.nbx-audio {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #eef6fb;
}
.nbx-audio__label {
  color: var(--nbx-blue-dark);
  font-size: .9rem;
  font-weight: 800;
}
.nbx-audio audio {
  width: 100%;
  min-width: 0;
}

.nbx-figure { margin: 0 0 24px; }
.nbx-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.nbx-content {
  font-size: 1.05rem;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.nbx-content > :first-child { margin-top: 0; }
.nbx-content img,
.nbx-content video,
.nbx-content iframe {
  max-width: 100%;
  height: auto;
}
.nbx-content h2 {
  margin: 2.2em 0 .7em;
  font-size: 1.45rem;
  line-height: 1.45;
}
.nbx-content h3 {
  margin: 1.8em 0 .6em;
  font-size: 1.2rem;
}
.nbx-content .wp-block-table {
  overflow-x: auto;
  border: 1px solid var(--nbx-line);
  border-radius: 14px;
}
.nbx-content .wp-block-table table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  margin: 0;
}
.nbx-content th, .nbx-content td {
  padding: .7rem .9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--nbx-line);
}
.nbx-content th { background: var(--nbx-blue); color: #fff; font-size: .84rem; white-space: nowrap; }
.nbx-content tbody tr:nth-child(even) { background: #f7fafd; }
.nbx-content tbody tr:last-child td { border-bottom: 0; }

/* 6.47.0 : réponses d'exercice cachées jusqu'au clic (<details> natif). */
.nbx-content .nbx-answers {
  margin: 1rem 0;
  padding: .9rem 1.1rem;
  border: 1px solid var(--nbx-line);
  border-radius: 14px;
  background: #f7fafd;
}
.nbx-content .nbx-answers summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--nbx-blue-dark);
  list-style: none;
}
.nbx-content .nbx-answers summary::-webkit-details-marker { display: none; }
.nbx-content .nbx-answers summary::before { content: '▶'; display: inline-block; margin-right: .5em; font-size: .75em; transition: transform .15s ease; }
.nbx-content .nbx-answers[open] summary::before { transform: rotate(90deg); }
.nbx-content .nbx-answers p { margin: .7rem 0 0; line-height: 1.9; }
/* Une table sans le bloc Gutenberg standard (rare) : au moins le défilement. */
.nbx-content table { display: block; max-width: 100%; overflow-x: auto; }

/* ---------- Actions (LINE, en ligne, suivant) ---------- */
.nbx-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 36px 0 0;
}
.nbx-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 72px;
  padding: 14px 18px;
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  line-height: 1.35;
  box-shadow: 0 10px 22px rgba(21, 47, 83, .12);
}
.nbx-action strong { font-size: 1rem; font-weight: 900; }
.nbx-action small {
  font-size: .82rem;
  opacity: .92;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nbx-action--line { background: var(--nbx-line-green); }
.nbx-action--online { background: linear-gradient(135deg, #3f7fd0, var(--nbx-blue-dark)); }
.nbx-action--next {
  background: #fff;
  color: var(--nbx-blue-dark);
  border: 2px solid var(--nbx-blue);
  box-shadow: none;
}
.nbx-action:hover { filter: brightness(1.05); }

/* ---------- Articles similaires et grilles ---------- */
.nbx-related { margin: 40px 0 0; }
.nbx-related h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 900;
}

.nbx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.nbx-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--nbx-line);
  border-radius: 20px;
  background: #fff;
  color: var(--nbx-ink);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(21, 47, 83, .07);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nbx-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(21, 47, 83, .12);
}
.nbx-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--nbx-head);
}
.nbx-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nbx-card__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--nbx-blue-dark);
  font-family: var(--nbx-font);
  font-size: 2.2rem;
  font-weight: 700;
}
.nbx-card__audio {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--nbx-blue-dark);
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.nbx-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}
.nbx-card__cat {
  color: var(--nbx-blue);
  font-size: .78rem;
  font-weight: 800;
}
.nbx-card__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}
.nbx-card__date {
  color: var(--nbx-muted);
  font-size: .8rem;
  font-weight: 700;
}

.nbx-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.nbx-tabs::-webkit-scrollbar { display: none; }
.nbx-tabs .nbx-chip { flex: 0 0 auto; white-space: nowrap; }

.nbx-empty {
  padding: 36px;
  border: 1px dashed var(--nbx-line);
  border-radius: 18px;
  color: var(--nbx-muted);
  text-align: center;
}

.nbx-pagination { margin: 28px 0 0; }
.nbx-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nbx-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--nbx-line);
  border-radius: 12px;
  background: #fff;
  color: var(--nbx-blue-dark);
  font-weight: 700;
  text-decoration: none;
}
.nbx-pagination .current {
  background: var(--nbx-blue);
  border-color: var(--nbx-blue);
  color: #fff;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .nbx-shell { margin-top: 12px; }
  .nbx-head--cover { align-items: flex-start; }
  .nbx-actions { grid-template-columns: 1fr 1fr; }
  .nbx-action--next { grid-column: 1 / -1; }

  /* Articles similaires : liste compacte, vignette à gauche */
  .nbx-related .nbx-grid { grid-template-columns: 1fr; gap: 10px; }
  .nbx-related .nbx-card { flex-direction: row; }
  .nbx-related .nbx-card__media { flex: 0 0 104px; width: 104px; min-height: 104px; aspect-ratio: auto; }
  .nbx-related .nbx-card__body { padding: 10px 12px; }

  .nbx-shell--wide .nbx-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .nbx-shell--wide .nbx-card__body { padding: 10px 12px 12px; }
  .nbx-shell--wide .nbx-card__title { font-size: .92rem; }
}

/* ---------- 6.1.0 : /blog/ — onglets et blocs de catégories ---------- */
.nbx-shell--wide > .nbx-sheet + .nbx-sheet { margin-top: 24px; }

.nbx-head--tabs { padding-top: 18px; padding-bottom: 0; }
.nbx-tablist {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
}
.nbx-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 10px 16px;
  border: 0;
  border-bottom: 4px solid transparent;
  border-radius: 18px 18px 0 0;
  background: transparent;
  color: var(--nbx-muted);
  font: inherit;
  cursor: pointer;
}
.nbx-tab__latin {
  font-family: Georgia, "Times New Roman", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: clamp(1rem, 3.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: .08em;
}
.nbx-tab__jp { font-size: .92rem; font-weight: 800; }
.nbx-tab[aria-selected="true"] {
  background: #fff;
  color: var(--nbx-blue-dark);
  border-bottom-color: var(--nbx-blue);
}
.nbx-tab:focus-visible { outline: 3px solid rgba(40, 95, 176, .35); }

.nbx-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 0 0 18px;
}
.nbx-panel__head a {
  color: var(--nbx-blue);
  font-weight: 800;
  text-decoration: none;
}
.nbx-panel__head span { color: var(--nbx-muted); font-size: .92rem; }

.nbx-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.nbx-group {
  overflow: hidden;
  border: 1px solid var(--nbx-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(21, 47, 83, .06);
}
.nbx-group__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--nbx-head);
  border-bottom: 1px solid var(--nbx-line);
  color: var(--nbx-ink);
  text-decoration: none;
}
.nbx-group__head:hover .nbx-group__title { color: var(--nbx-blue); }
.nbx-group__cover {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}
.nbx-group__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.nbx-group__text .nbx-kicker { margin: 0; font-size: .78rem; }
.nbx-group__title { font-size: 1.2rem; font-weight: 900; line-height: 1.35; }
.nbx-group__desc { color: var(--nbx-muted); font-size: .86rem; line-height: 1.5; }
.nbx-group__arrow { color: var(--nbx-blue); font-size: 1.3rem; font-weight: 900; }
.nbx-group__list { display: grid; }
.nbx-group__empty { margin: 0; padding: 16px 20px; color: var(--nbx-muted); font-size: .9rem; font-weight: 700; }

.nbx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid rgba(23, 63, 120, .07);
  color: var(--nbx-ink);
  text-decoration: none;
}
.nbx-row:first-child { border-top: 0; }
.nbx-row:hover { background: #f6fafc; }
.nbx-row__media {
  position: relative;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--nbx-head);
}
.nbx-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nbx-row__media .nbx-card__audio { right: 4px; bottom: 4px; width: 24px; height: 24px; font-size: .75rem; }
.nbx-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nbx-row__title { font-weight: 800; line-height: 1.45; font-size: .95rem; }

.nbx-section-title { margin: 32px 0 14px; font-size: 1.15rem; font-weight: 900; }

@media (max-width: 640px) {
  .nbx-groups { grid-template-columns: 1fr; }
  .nbx-group__head { padding: 14px 16px; }
  .nbx-group__title { font-size: 1.1rem; }
}


/* ================= 6.4.0 : téléphone et tablette d'abord ================= */

/* Hauteur de la barre du site, pour caler les éléments collants dessous. */
:root { --nbx-top: 72px; }
@media (max-width: 620px) { :root { --nbx-top: 62px; } }
.admin-bar { --nbx-admin: 32px; }
@media (max-width: 782px) { .admin-bar { --nbx-admin: 46px; } }

/* Cibles tactiles d'au moins 44 px */
.nbx-chip { min-height: 44px; padding: 8px 16px; }
.nbx-tab { min-height: 64px; }
.nbx-row { min-height: 72px; }

/* Onglets collés sous la barre du site : on change d'onglet sans remonter. */
.nbx-head--tabs {
  position: sticky;
  top: calc(var(--nbx-top) + var(--nbx-admin, 0px));
  z-index: 20;
}

/* Lecteur audio collé sous la barre : on lit et on écoute en même temps. */
@media (max-width: 1024px) {
  .nbx-audio {
    position: sticky;
    top: calc(var(--nbx-top) + var(--nbx-admin, 0px) + 8px);
    z-index: 15;
    box-shadow: 0 8px 20px rgba(21, 47, 83, .12);
  }
}

/* Tablette (portrait et paysage) */
@media (min-width: 641px) and (max-width: 1024px) {
  .nbx-shell,
  .nbx-shell--wide { width: calc(100% - 40px); }
  .nbx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .nbx-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .nbx-related .nbx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nbx-card:hover { transform: none; }
}

/* Téléphone */
@media (max-width: 640px) {
  .nbx-shell,
  .nbx-shell--wide { width: calc(100% - 16px); margin-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .nbx-sheet { border-radius: 22px; }
  .nbx-head { padding: 22px 18px 18px; }
  .nbx-body { padding: 18px 16px 26px; }
  .nbx-content { font-size: 1rem; line-height: 1.9; }
  .nbx-card:hover { transform: none; }

  /* 最新ポスト : défilement au doigt, une carte et demie visible. */
  .nbx-shell--wide .nbx-grid.nbx-grid--swipe, .nbx-grid--swipe {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 68%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px 6px;
    scrollbar-width: none;
  }
  .nbx-grid--swipe::-webkit-scrollbar { display: none; }
  .nbx-grid--swipe > .nbx-card { scroll-snap-align: start; }

  .nbx-head--tabs { padding: 10px 8px 0; }
  .nbx-tablist { gap: 4px; }
  .nbx-tab { padding: 10px 4px 12px; border-radius: 14px 14px 0 0; }
  .nbx-tab__latin { font-size: .95rem; letter-spacing: .04em; }
  .nbx-tab__jp { font-size: .85rem; }
}

/* 6.5.0 : page reliée à une catégorie */
.nbx-page-cat { margin-top: 28px; }
.nbx-content:empty + .nbx-page-cat { margin-top: 0; }
.nbx-more { margin: 20px 0 0; text-align: center; }
.nbx-more a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 20px; border-radius: 999px; background: #eef6fb; color: var(--nbx-blue-dark); font-weight: 800; text-decoration: none; }

/* ================= 6.6.0 : page /blog/ ================= */
.nbx-blog { display: grid; gap: 22px; }
.nbx-block {
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--nbx-radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--nbx-shadow);
  min-width: 0;
}
.nbx-eyebrow {
  margin: 0 0 4px;
  color: var(--nbx-blue);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.nbx-eyebrow--light { color: #d9e8ff; }
.nbx-block__title {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 4.6vw, 2.2rem);
  font-weight: 900;
  line-height: 1.3;
}

/* Défilement au doigt générique (téléphone) */
.nbx-swipe { display: grid; gap: 14px; }

/* Portes en images */
.nbx-portes { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.nbx-porte {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--nbx-line);
  border-radius: 20px;
  background: #fff;
  color: var(--nbx-ink);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(21, 47, 83, .07);
}
.nbx-porte__media { display: block; aspect-ratio: 16 / 9; background: var(--nbx-head); }
.nbx-porte__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nbx-porte__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.nbx-porte__body .nbx-kicker { margin: 0; font-size: .74rem; }
.nbx-porte__title { font-size: 1.15rem; font-weight: 900; }
.nbx-porte__desc { color: var(--nbx-muted); font-size: .84rem; line-height: 1.6; }

/* Niveau sur les cartes */
.nbx-card__level {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--nbx-blue-dark);
  font-size: .74rem;
  font-weight: 800;
}

/* 聞き流し : grandes vignettes carrées */
.nbx-audio-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.nbx-audio-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--nbx-line);
  border-radius: 20px;
  background: #fff;
  color: var(--nbx-ink);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(21, 47, 83, .07);
}
.nbx-audio-card__media { position: relative; display: block; aspect-ratio: 1; background: var(--nbx-head); }
.nbx-audio-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nbx-audio-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(23, 63, 120, .88);
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
}
.nbx-audio-card__body { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px 16px; }
.nbx-audio-card__cta { margin-top: 6px; color: var(--nbx-blue); font-size: .86rem; font-weight: 800; }

/* Recherche et filtres */
.nbx-filter {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid var(--nbx-line);
  border-radius: 20px;
  background: #f8fbfd;
}
.nbx-filter__search input {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #c9d7e3;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 16px; /* 16 px : évite le zoom automatique de l'iPhone */
}
.nbx-filter__row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: start; }
.nbx-filter__label { padding-top: 11px; color: var(--nbx-muted); font-size: .82rem; font-weight: 800; }
.nbx-chipbar { display: flex; flex-wrap: wrap; gap: 8px; }
button.nbx-chip { font: inherit; font-size: .86rem; cursor: pointer; }
.nbx-chip[aria-pressed="true"] { background: var(--nbx-blue); border-color: var(--nbx-blue); color: #fff; }
.nbx-filter__foot { display: flex; align-items: center; gap: 14px; }
.nbx-filter__count { color: var(--nbx-muted); font-weight: 700; }
.nbx-filter__count strong { color: var(--nbx-ink); font-size: 1.2rem; }
.nbx-filter__reset {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: var(--nbx-blue);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}
.nbx-results[aria-busy="true"] { opacity: .45; transition: opacity .15s; }
.nbx-more__btn {
  min-height: 48px;
  padding: 0 28px;
  border: 2px solid var(--nbx-blue);
  border-radius: 999px;
  background: #fff;
  color: var(--nbx-blue-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

/* 人気のテーマ */
.nbx-tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.nbx-tagcloud small { margin-left: 6px; color: var(--nbx-muted); font-weight: 700; }

/* Bloc final */
.nbx-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--nbx-radius);
  background: linear-gradient(135deg, #2c4f86, #4a73b3);
  color: #fff;
  box-shadow: var(--nbx-shadow);
}
.nbx-cta h2 { margin: 0 0 10px; font-size: clamp(1.3rem, 4vw, 2rem); line-height: 1.35; }
.nbx-cta p { margin: 0; color: rgba(255, 255, 255, .88); line-height: 1.8; }
.nbx-cta__actions { display: grid; gap: 12px; }
.nbx-cta .nbx-action { min-height: 56px; align-items: center; }

/* Téléphone : tout se fait défiler au doigt, filtres sur une ligne chacun */
@media (max-width: 640px) {
  .nbx-blog { gap: 14px; }
  .nbx-block { padding: 20px 16px; border-radius: 22px; }
  .nbx-swipe {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -16px;
    padding: 0 16px 6px;
    scrollbar-width: none;
  }
  .nbx-swipe::-webkit-scrollbar { display: none; }
  .nbx-swipe > * { scroll-snap-align: start; }
  .nbx-audio-grid.nbx-swipe { grid-auto-columns: 62%; }

  .nbx-filter { padding: 12px; margin: 0 -4px 16px; }
  .nbx-filter__row { grid-template-columns: 1fr; gap: 6px; }
  .nbx-filter__label { padding-top: 0; }
  .nbx-chipbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -12px;
    padding: 0 12px 4px;
    scrollbar-width: none;
  }
  .nbx-chipbar::-webkit-scrollbar { display: none; }
  .nbx-chipbar .nbx-chip { flex: 0 0 auto; white-space: nowrap; }

  .nbx-cta { grid-template-columns: 1fr; border-radius: 22px; }
}

/* Tablette */
@media (min-width: 641px) and (max-width: 1024px) {
  .nbx-portes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nbx-audio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nbx-cta { grid-template-columns: 1fr; }
}
.nbx-porte__media, .nbx-card__media, .nbx-audio-card__media { overflow: hidden; flex: 0 0 auto; }

/* ================= 6.8.0 ================= */
/* Police japonaise imposée partout : aucun élément ne retombe sur une police
   système qui dessinerait les kanji à la chinoise. */
.nbx-page,
.nbx-page button,
.nbx-page input,
.nbx-page select,
.nbx-page textarea,
.nbh-portal-page,
.nbh-portal-page button { font-family: var(--nbx-font); }
.nbx-card__placeholder { font-family: var(--nbx-font); font-weight: 900; }

/* Images carrées, recadrées automatiquement (catégories, articles, podcasts) */
.nbx-porte__media,
.nbx-card__media { aspect-ratio: 1; }
.nbx-porte__media img,
.nbx-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* Couleurs de boutons unifiées : LINE = vert LINE, principal = bleu */
.nbh-sitebar a.nbh-sitebar__line,
.nbh-sitebar__mobile-menu a.nbh-sitebar__line,
.nbx-action--line,
.nbh-line-bar {
  background: #06c755 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(6, 199, 85, .25) !important;
}
.nbx-action--online { background: linear-gradient(135deg, #3f7fd0, #173f78) !important; color: #fff !important; }

/* ============ 6.13.0 : blocs des pages de présentation ============ */
.nbx-hero { margin: 0 0 28px; padding: 22px; border-radius: 22px; background: var(--nbx-head); }
.nbx-hero__title { margin: 0 0 10px; font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 900; line-height: 1.35; }
.nbx-hero__lead { margin: 0 0 14px; color: #3f4d62; line-height: 1.8; }
.nbx-hero__cta { margin: 16px 0 0; }
.nbx-hero .nbx-action { display: inline-flex; min-width: 240px; text-align: center; justify-content: center; }

.nbx-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 18px 0; }
.nbx-point { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--nbx-line); border-radius: 18px; background: #fff; }
.nbx-point strong { font-size: 1.02rem; font-weight: 900; }
.nbx-point span { color: var(--nbx-muted); font-size: .9rem; line-height: 1.7; }

.nbx-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 18px 0; }
.nbx-price { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--nbx-line); border-radius: 20px; background: #fff; text-align: center; }
.nbx-price__name { font-weight: 800; color: var(--nbx-muted); font-size: .9rem; }
.nbx-price__amount { font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 900; color: var(--nbx-blue-dark); line-height: 1.2; }
.nbx-price__unit { color: var(--nbx-muted); font-size: .86rem; font-weight: 700; }
.nbx-price__note { margin-top: 6px; color: #3f4d62; font-size: .86rem; line-height: 1.6; }

.nbx-teachers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 18px 0; }
.nbx-teacher { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--nbx-line); border-radius: 20px; background: #fff; }
.nbx-teacher__initial { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: var(--nbx-head); color: var(--nbx-blue-dark); font-size: 1.2rem; font-weight: 900; }
.nbx-teacher p { margin: 8px 0 0; color: var(--nbx-muted); font-size: .9rem; line-height: 1.7; }
.nbx-teacher .nbx-chips { margin: 8px 0 0; }
.nbx-teacher .nbx-chip { min-height: 32px; padding: 4px 12px; font-size: .78rem; }

.nbx-access { margin: 18px 0; border: 1px solid var(--nbx-line); border-radius: 20px; background: #fff; overflow: hidden; }
.nbx-access__row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-top: 1px solid rgba(23, 63, 120, .08); }
.nbx-access__row:first-child { border-top: 0; }
.nbx-access__row span { color: var(--nbx-muted); font-size: .86rem; font-weight: 800; }

.nbx-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 18px 0; }
.nbx-review { margin: 0; padding: 18px; border: 1px solid var(--nbx-line); border-radius: 20px; background: #fff; }
.nbx-review__stars { color: #f0a500; font-size: 1rem; letter-spacing: .1em; }
.nbx-review blockquote { margin: 10px 0 0; padding: 0; border: 0; font-size: .95rem; line-height: 1.8; }
.nbx-review figcaption { margin-top: 10px; color: var(--nbx-muted); font-size: .84rem; font-weight: 700; }

.nbx-faq { display: grid; gap: 10px; margin: 18px 0; }
.nbx-faq__item { border: 1px solid var(--nbx-line); border-radius: 18px; background: #fff; overflow: hidden; }
.nbx-faq__item summary { padding: 16px 18px; min-height: 56px; font-weight: 800; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
.nbx-faq__item summary::after { content: "＋"; margin-left: auto; color: var(--nbx-blue); font-weight: 900; }
.nbx-faq__item[open] summary::after { content: "−"; }
.nbx-faq__item summary::-webkit-details-marker { display: none; }
.nbx-faq__item p { margin: 0; padding: 0 18px 18px; color: #3f4d62; line-height: 1.85; }

.nbx-content .nbx-cta { margin: 28px 0 0; }
@media (max-width: 640px) {
  .nbx-hero { padding: 18px 16px; }
  .nbx-hero .nbx-action { width: 100%; }
  .nbx-points, .nbx-prices, .nbx-teachers, .nbx-reviews { grid-template-columns: 1fr; }
  .nbx-access__row { grid-template-columns: 1fr; gap: 2px; }
}

/* 6.18.0 : liens d'abonnement sous le lecteur */
.nbx-audio__subscribe { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.nbx-audio__subscribe a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--nbx-line); color: var(--nbx-blue-dark); font-size: .84rem; font-weight: 800; text-decoration: none; }

/* 6.20.0 : マイページ (WooCommerce + PMPro) sur téléphone */
.woocommerce-MyAccount-navigation ul { display: flex; gap: 8px; margin: 0 0 18px; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
.woocommerce-MyAccount-navigation li { flex: 0 0 auto; }
.woocommerce-MyAccount-navigation a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 16px; border: 1px solid rgba(23, 63, 120, .12); border-radius: 999px; background: #fff; color: #173f78; font-weight: 800; text-decoration: none; }
.woocommerce-MyAccount-navigation .is-active a { background: #285fb0; border-color: #285fb0; color: #fff; }
.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { float: none !important; width: auto !important; }

/* 6.23.0 : encart vers l'app d'entraînement (Renshu) */
.nbx-renshu-card { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; padding: 18px; border: 1px solid var(--nbx-line); border-radius: 20px; background: var(--nbx-head); color: var(--nbx-ink); text-decoration: none; }
.nbx-renshu-card__icon { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 16px; background: #fff; font-size: 1.5rem; }
.nbx-renshu-card strong { display: block; font-weight: 900; }
.nbx-renshu-card small { color: var(--nbx-muted); font-size: .86rem; line-height: 1.6; }
.nbx-renshu-card__arrow { margin-left: auto; color: var(--nbx-blue); font-weight: 900; font-size: 1.2rem; }
