/* ==========================================================================
   NeoBase 本体CSS
   - 値はCSS変数（カスタマイザーがインラインで上書き）
   - このファイル自体は静的 → ブラウザキャッシュに乗り続ける
   ========================================================================== */

:root {
  --nb-accent: #17725f;
  --nb-text: #1c2733;
  --nb-muted: #64727a;
  --nb-bg: #ffffff;
  --nb-line: #e3e8e6;
  --nb-surface: #f6f8f7;
  --nb-content-width: 740px;
  --nb-sidebar-width: 300px;
  --nb-radius: 8px;
  --nb-font: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
}

/* ---- リセット（必要最小限） ---- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip; /* 全幅演出(100vw)がスクロールバー分はみ出すのを防ぐ */
  background: var(--nb-bg);
  color: var(--nb-text);
  font-family: var(--nb-font);
  font-size: 16px;
  line-height: 1.85;
  word-break: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--nb-accent);
}

a:hover {
  opacity: 0.85;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nb-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 8px 16px;
  background: var(--nb-accent);
  color: #fff;
}

.nb-skip-link:focus {
  left: 0;
}

/* ---- ナビ(全ページ共通のグローバルバー .nb-front-nav は下のLP節で定義) ---- */

/* ---- レイアウト ---- */

.nb-site {
  display: grid;
  gap: 40px;
  max-width: calc(var(--nb-content-width) + var(--nb-sidebar-width) + 80px);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.nb-site.has-sidebar {
  grid-template-columns: minmax(0, 1fr) var(--nb-sidebar-width);
}

.nb-site.no-sidebar {
  grid-template-columns: minmax(0, var(--nb-content-width));
  justify-content: center;
}

@media (max-width: 1024px) {
  .nb-site.has-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* スマホの左右余白はSWELLと同じ4vw(375px画面で15px)。
   FX表ファミリーのスマホ3枚組はこの記事幅を前提に設計されているため、
   ここが広いとカードが痩せてキャッチコピーが3行に折れ、段が崩れる */
@media (max-width: 760px) {
  .nb-site {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}

.nb-main {
  min-width: 0;
}

/* ---- フロントページのメインビジュアル(全幅) ---- */

.nb-front-hero {
  width: 100vw;
  margin: -32px 0 0 calc(50% - 50vw);
}

.nb-front-hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* LP型トップ: バナーが最上端(余白ゼロ)。直下にグローバルメニューのバー */
.nb-front-hero-top {
  width: 100%;
  margin: 0;
}

/* LP型トップは本文コンテナの上余白もゼロ(メニューバー直後からコンテンツ) */
body.nb-lp-front .nb-site {
  padding-top: 0;
}

/* ---- LP演出: メニューバーの追尾+すりガラス化（CSSのみ・JS不使用）----
   nb-lp-motion はカスタマイザーでOFFにできる。 */

body.nb-nav-sticky .nb-front-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--nb-frontnav-bg, #1d2127) 84%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.admin-bar.nb-nav-sticky .nb-front-nav {
  top: var(--wp-admin--admin-bar--height, 32px);
}

.nb-front-nav {
  background: var(--nb-frontnav-bg, #1d2127);
}

.nb-front-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0 6px;
  max-width: calc(var(--nb-content-width) + var(--nb-sidebar-width) + 80px);
  margin: 0 auto;
  padding: 0 20px;
  list-style: none;
}

.nb-front-menu a {
  display: block;
  padding: 9px 18px;
  color: var(--nb-frontnav-text, #ffffff);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.nb-front-menu a:hover {
  opacity: 0.8;
}

/* PC: 子メニューはバー下の黒いドロップダウン */
@media (min-width: 861px) {
  .nb-front-menu > li {
    position: relative;
  }

  .nb-front-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: var(--nb-frontnav-bg, #1d2127);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
    z-index: 95;
  }

  .nb-front-menu > li:hover > .sub-menu,
  .nb-front-menu > li:focus-within > .sub-menu {
    display: block;
  }
}

/* スマホ: 横スクロール式(項目が増えても1段のまま流せる) */
@media (max-width: 860px) {
  .nb-front-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nb-front-menu::-webkit-scrollbar {
    display: none;
  }

  .nb-front-menu a {
    padding: 12px 14px;
    font-size: 13.5px;
    white-space: nowrap;
  }

  .nb-front-menu .sub-menu {
    display: none;
  }
}

/* Home項目のサイトロゴ(PHPが注入)。バー高44pxに収まる高さで縦横比維持 */
.nb-menu-logo {
  display: inline-block;
  height: 46px;
  width: auto;
  /* バーの高さ(約48px)ギリギリまで使う。負マージンで行の高さを太らせない */
  margin: -11px 8px -11px 0;
  vertical-align: middle;
}

/* ---- 記事一覧カード ---- */

.nb-entry-list {
  display: grid;
  gap: 20px;
}

.nb-card {
  border: 1px solid var(--nb-line);
  border-radius: var(--nb-radius);
  overflow: hidden;
  background: var(--nb-bg);
}

.nb-card-link {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  color: inherit;
  text-decoration: none;
}

.nb-card-link:hover {
  opacity: 1;
  background: var(--nb-surface);
}

.nb-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.nb-card-body {
  padding: 16px 18px;
}

.nb-card-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.5;
}

.nb-card-excerpt {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--nb-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .nb-card-link {
    grid-template-columns: 1fr;
  }
}

/* ---- 記事ページ ---- */

.nb-entry-header {
  margin-bottom: 24px;
}

.nb-entry-title {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.45;
  font-weight: 800;
}

.nb-entry-meta {
  font-size: 12.5px;
  color: var(--nb-muted);
}

.nb-cat {
  display: inline-block;
  padding: 2px 10px;
  margin-right: 8px;
  background: var(--nb-accent);
  color: #fff;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}

.nb-updated-label {
  margin-left: 10px;
}

.nb-entry-thumbnail {
  margin: 0 0 28px;
}

.nb-entry-thumbnail img {
  border-radius: var(--nb-radius);
  display: block;
}

@media (max-width: 640px) {
  .nb-entry-title {
    font-size: 22px;
  }
}

/* ---- 本文（NEOページビルダーとの表示契約）
   段落余白は「p下マージン1.6em」のみ。<br>連打による空行
   （アプリの <br>&nbsp;<br> 方式）に余計な余白を足さない。 ---- */

.entry-content {
  font-size: 16px;
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: 1.6em;
}

/* wpautopがHTMLコメント等を包んで作る「完全に空のp」は余白ごと消す。
   意図した空行(<p>&nbsp;</p>)は中身があるので対象外 */
.entry-content :where(p:empty) {
  display: none;
}

.entry-content h2 {
  margin: 2.4em 0 1em;
  padding: 0.55em 0.8em;
  font-size: 21px;
  line-height: 1.5;
  background: var(--nb-surface);
  border-left: 5px solid var(--nb-accent);
  border-radius: 0 var(--nb-radius) var(--nb-radius) 0;
}

.entry-content h3 {
  margin: 2em 0 0.9em;
  padding-bottom: 0.35em;
  font-size: 18.5px;
  line-height: 1.5;
  border-bottom: 2px solid var(--nb-line);
}

.entry-content h4 {
  margin: 1.8em 0 0.8em;
  font-size: 17px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.6em;
}

.entry-content blockquote {
  margin: 0 0 1.6em;
  padding: 14px 18px;
  background: var(--nb-surface);
  border-left: 4px solid var(--nb-line);
  color: var(--nb-muted);
  border-radius: 0 var(--nb-radius) var(--nb-radius) 0;
}

/* 汎用テーブル装飾は「クラスなしの素のtable」限定。
   FX表ファミリー(fxt-table等)はデザイン済みなので絶対に触らない。
   :whereで詳細度も上げず、部品CSSが常に勝てるようにする */
.entry-content :where(table:not([class])) {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.entry-content :where(table:not([class]) th, table:not([class]) td) {
  padding: 10px 12px;
  border: 1px solid var(--nb-line);
}

.entry-content :where(table:not([class]) th) {
  background: var(--nb-surface);
}

.entry-content pre {
  padding: 14px 16px;
  overflow-x: auto;
  background: #20262b;
  color: #e8ecef;
  border-radius: var(--nb-radius);
  font-size: 13.5px;
}

/* 角丸は本文直下の通常画像だけ。部品(fx表・カード)内の画像には効かせない。
   liを含めないのは①②スライダーのカードが<li>のため(通常の箇条書き内画像は角丸なしを許容) */
.entry-content :where(p, figure) img,
.entry-content > img {
  border-radius: var(--nb-radius);
}

.nb-page-links {
  margin: 1.6em 0;
}

/* ---- 目次 ---- */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.entry-content h2[id],
.entry-content h3[id] {
  scroll-margin-top: 24px;
}

.nb-toc {
  margin: 0 0 2.4em;
  border-top: 2px solid #3d474f; /* 上だけ黒めの罫線で締める */
  border-bottom: 1px solid var(--nb-line);
  background:
    repeating-linear-gradient(135deg, rgba(28, 39, 51, 0.016) 0 2px, transparent 2px 9px),
    #fdfdfc;
}

.nb-toc summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 22px 16px 4px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  cursor: pointer;
  list-style: none;
}

.nb-toc summary::-webkit-details-marker {
  display: none;
}

.nb-toc summary:hover {
  color: var(--nb-accent);
}

.nb-toc-icon {
  opacity: 0.75;
}

.nb-toc-body {
  position: relative;
  padding: 10px 30px 28px;
}

.nb-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nb-toc-item a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  color: var(--nb-text);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.55;
}

.nb-toc-item a:hover .nb-toc-text {
  color: var(--nb-accent);
  text-decoration: underline;
}

.nb-toc-num {
  min-width: 1.3em;
  text-align: right;
  font-size: 0.92em;
  color: var(--nb-text);
}

.nb-toc-sep {
  color: #ccd3d8;
}

.nb-toc-l3 a {
  padding: 4px 0 4px 30px;
  font-size: 13.5px;
  color: var(--nb-muted);
}

.nb-toc-l3 .nb-toc-num {
  min-width: 2.4em;
  color: #a7b0b6;
}

/* サイドバー用のコンパクト目次(NeoBase 目次ウィジェット) */

.nb-toc-side .nb-toc-item a {
  font-size: 13px;
  padding: 5px 0;
  gap: 7px;
}

.nb-toc-side .nb-toc-l3 a {
  padding: 3px 0 3px 20px;
  font-size: 12px;
}

.nb-toc-side .nb-toc-l3 .nb-toc-num {
  min-width: 2em;
}

/* 長い目次は途中で畳んで「もっと見る」(チェックボックス方式・JS不使用) */

.nb-toc-more-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nb-toc-long .nb-toc-more-check:not(:checked) ~ .nb-toc-list {
  max-height: 430px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent 97%);
  mask-image: linear-gradient(#000 70%, transparent 97%);
}

.nb-toc-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  margin: 4px auto 0;
  padding: 9px 0;
  border: 1px solid var(--nb-line);
  border-radius: 999px;
  background: var(--nb-bg);
  font-size: 13px;
  color: var(--nb-muted);
  cursor: pointer;
}

.nb-toc-more:hover {
  color: var(--nb-accent);
  border-color: var(--nb-accent);
}

.nb-toc-more-check:checked ~ .nb-toc-more {
  display: none;
}

.nb-tags a {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 3px 10px;
  border: 1px solid var(--nb-line);
  border-radius: 999px;
  color: var(--nb-muted);
  font-size: 12.5px;
  text-decoration: none;
}

/* ---- シェアボタン ---- */

.nb-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.nb-share-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--nb-muted);
  margin-right: 4px;
}

.nb-share-btn {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.nb-share-btn:hover {
  opacity: 0.85;
}

.nb-share-x {
  background: #0f1419;
}

.nb-share-facebook {
  background: #1877f2;
}

.nb-share-hatena {
  background: #00a4de;
}

.nb-share-line {
  background: #06c755;
}

/* ---- 関連記事（手動選択式） ---- */

.nb-related {
  margin: 40px 0 0;
}

.nb-related-title {
  margin: 0 0 14px;
  font-size: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--nb-accent);
}

.nb-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.nb-related-card {
  display: block;
  border: 1px solid var(--nb-line);
  border-radius: var(--nb-radius);
  overflow: hidden;
  background: var(--nb-bg);
  color: var(--nb-text);
  text-decoration: none;
}

.nb-related-card:hover {
  opacity: 1;
  background: var(--nb-surface);
}

.nb-related-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.nb-related-card-title {
  display: block;
  padding: 10px 12px 12px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .nb-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- 前後記事ナビ ---- */

.post-navigation {
  margin: 40px 0;
  border-top: 1px solid var(--nb-line);
  border-bottom: 1px solid var(--nb-line);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.post-navigation a {
  display: block;
  padding: 14px 16px;
  color: var(--nb-text);
  text-decoration: none;
}

.post-navigation .nav-next {
  text-align: right;
}

.nb-nav-label {
  display: block;
  font-size: 11.5px;
  color: var(--nb-muted);
}

.nb-nav-title {
  font-size: 14px;
  font-weight: 600;
}

/* ---- アーカイブ見出し・ページネーション ---- */

.nb-archive-header {
  margin-bottom: 28px;
}

.nb-archive-title {
  margin: 0 0 8px;
  font-size: 24px;
}

.nb-archive-description {
  color: var(--nb-muted);
  font-size: 14px;
}

.pagination {
  margin-top: 36px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.pagination .page-numbers {
  display: inline-block;
  min-width: 40px;
  padding: 8px 12px;
  text-align: center;
  border: 1px solid var(--nb-line);
  border-radius: var(--nb-radius);
  color: var(--nb-text);
  text-decoration: none;
  font-size: 14px;
}

.pagination .page-numbers.current {
  background: var(--nb-accent);
  border-color: var(--nb-accent);
  color: #fff;
}

/* ---- ウィジェットエリア（記事上下・固定ページ上下・トップ上下） ---- */

.nb-widget-area {
  margin: 0 0 32px;
}

.nb-area-single-bottom,
.nb-area-page-bottom,
.nb-area-front-bottom {
  margin: 40px 0 0;
}

/* ---- サイドバー ---- */

.nb-sidebar {
  min-width: 0;
}

.nb-sidebar-sticky {
  position: sticky;
  top: 24px;
}

.nb-widget {
  margin-bottom: 28px;
}

.nb-widget-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-size: 15px;
  border-bottom: 2px solid var(--nb-accent);
}

.nb-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nb-widget li {
  padding: 6px 0;
  border-bottom: 1px solid var(--nb-line);
  font-size: 14px;
}

.nb-widget a {
  color: var(--nb-text);
  text-decoration: none;
}

.nb-widget a:hover {
  color: var(--nb-accent);
}

/* ---- 検索フォーム ---- */

.nb-search-form {
  display: flex;
  gap: 8px;
}

.nb-search-field {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--nb-line);
  border-radius: var(--nb-radius);
  font-size: 14px;
}

.nb-search-submit {
  padding: 9px 18px;
  border: 0;
  border-radius: var(--nb-radius);
  background: var(--nb-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ---- コメント ---- */

.nb-comments {
  margin-top: 48px;
}

.nb-comments-title {
  font-size: 18px;
}

.nb-comment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nb-comment-list .comment-body {
  padding: 14px 0;
  border-bottom: 1px solid var(--nb-line);
  font-size: 14.5px;
}

.nb-comment-list .children {
  list-style: none;
  padding-left: 24px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--nb-line);
  border-radius: var(--nb-radius);
  font-size: 14px;
}

.comment-form .submit {
  padding: 10px 24px;
  border: 0;
  border-radius: var(--nb-radius);
  background: var(--nb-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ---- 追従CTAバー ---- */

.nb-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--nb-line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.nb-cta-btn {
  flex: 1;
  padding: 12px 8px;
  border-radius: var(--nb-radius);
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  background: var(--nb-accent);
  color: #fff;
}

.nb-cta-btn:hover {
  opacity: 0.9;
}

.nb-cta-btn-2 {
  background: var(--nb-bg);
  color: var(--nb-accent);
  border: 2px solid var(--nb-accent);
  padding: 10px 8px;
}

/* バーに隠れないよう本文下部に余白を足す */
body.has-nb-cta-bar {
  padding-bottom: 76px;
}

/* 既定はスマホのみ表示 */
@media (min-width: 861px) {
  .nb-cta-bar:not(.nb-cta-bar-pc) {
    display: none;
  }

  body.has-nb-cta-bar:not(.has-nb-cta-bar-pc) {
    padding-bottom: 0;
  }

  .nb-cta-bar.nb-cta-bar-pc {
    max-width: 480px;
    left: auto;
    right: 24px;
    bottom: 24px;
    border: 1px solid var(--nb-line);
    border-radius: var(--nb-radius);
  }
}

/* ---- フッター ---- */

.nb-footer {
  border-top: 1px solid var(--nb-line);
  background: var(--nb-surface);
  padding: 28px 20px 36px;
  text-align: center;
}

.nb-footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 32px;
  max-width: calc(var(--nb-content-width) + var(--nb-sidebar-width) + 80px);
  margin: 0 auto 24px;
  text-align: left;
}

.nb-footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.nb-footer-menu a {
  color: var(--nb-muted);
  font-size: 13px;
  text-decoration: none;
}

.nb-copyright {
  margin: 0;
  color: var(--nb-muted);
  font-size: 12.5px;
}

/* ---- トップページ下部の新着記事(3列カード) ---- */

.nb-front-latest {
  /* 本文コンテナ(740px)を脱出して全幅化し、内側をバナー群と同じ1040pxに揃える。
     背景はLP領域(.skn-top)のグラデ終端色(#f3e6c2)から白へ流して馴染ませる */
  width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  padding: 58px max(20px, calc(50vw - 520px)) 60px;
  background: linear-gradient(180deg, #f3e6c2 0%, #f9f2df 38%, #ffffff 100%);
}

/* LP本文と新着セクションの間に白い切れ目を作らない */
body.nb-lp-front .nb-front .nb-entry {
  margin-bottom: 0;
}

.nb-front-latest-title {
  margin: 0 0 26px;
  font-size: 26px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.04em;
}

.nb-front-latest-title::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: var(--nb-accent);
}

.nb-front-latest .nb-entry-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.nb-front-latest .nb-card {
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(96, 78, 34, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nb-front-latest .nb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(20, 24, 31, 0.16);
}

.nb-front-latest .nb-card-link {
  grid-template-columns: 1fr;
}

.nb-front-latest .nb-card-link:hover {
  background: var(--nb-bg);
}

.nb-card-thumb-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #171a1f, #343b44 55%, var(--nb-accent));
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.12em;
}

.nb-front-latest .nb-card-body {
  padding: 14px 16px 16px;
}

.nb-front-latest .nb-cat {
  margin: 0 0 8px;
}

.nb-front-latest .nb-card-title {
  margin: 6px 0 8px;
  font-size: 14.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nb-front-latest .nb-card-excerpt {
  font-size: 12.5px;
}

.nb-front-latest-more {
  margin: 24px 0 0;
  text-align: center;
  font-weight: 700;
}

.nb-front-latest-more a {
  display: inline-block;
  padding: 10px 30px;
  border: 1px solid var(--nb-line);
  border-radius: 999px;
  background: var(--nb-bg);
  font-size: 13.5px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(20, 24, 31, 0.06);
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nb-front-latest-more a:hover {
  border-color: var(--nb-accent);
  color: var(--nb-accent);
  box-shadow: 0 4px 14px rgba(20, 24, 31, 0.12);
}

@media (max-width: 1100px) {
  .nb-front-latest .nb-entry-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nb-front-latest .nb-entry-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .nb-front-latest .nb-entry-list {
    grid-template-columns: 1fr;
  }
}

/* ---- プロフィールウィジェット(カバー+丸アイコン) ---- */

.nb-profile {
  border-radius: var(--nb-radius);
  overflow: hidden;
  background: #f1ede4;
  text-align: center;
}

.nb-profile-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.nb-profile-avatar {
  position: relative;
  width: 112px;
  height: 112px;
  margin: -56px auto 0;
  padding: 6px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 24, 31, 0.12);
}

.nb-profile-nocover .nb-profile-avatar {
  margin-top: 28px;
}

.nb-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.nb-profile-body {
  padding: 14px 22px 24px;
}

.nb-profile-name {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nb-profile-role {
  margin-top: 3px;
  font-size: 12px;
  color: var(--nb-muted);
}

.nb-profile-bio {
  margin-top: 14px;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.95;
}

.nb-profile-bio p {
  margin: 0 0 0.6em;
}

.nb-profile-bio p:last-child {
  margin-bottom: 0;
}

.nb-profile-link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: 12px;
  color: var(--nb-accent);
}

.nb-profile-link svg {
  width: 24px;
  height: 24px;
}
