html {
  font-size: 16px;
  --font-size-00: .8rem;
  --font-size-0: .9rem;
  --font-size-1: 1rem;
  --font-size-2: 1.25rem;
  --font-size-3: 1.5rem;
  --font-size-4: 2rem;
}
@media (max-width: 992px) { html { font-size: 14px; } }

body {
  font-family: Verdana, "Meiryo", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 500;
  line-height: 2;
  font-size: var(--font-size-1);
  background-color: var(--mnk-global-bg);
}

a { color: var(--mnk-global-link); }
a:hover { color: var(--mnk-global-link-hover); }

p { margin-bottom: 0; }

blockquote {
  border: 1px solid var(--brand-color);
  background: rgba( var(--brand-color-rgb), 0.1);
  padding: 1.5rem;
  border-radius: var(--bs-border-radius);
}

iframe {
  border-radius: var(--bs-border-radius);
}

iframe[src*="youtube"] {
  max-width: 100%;
  height: unset;
  aspect-ratio: 560 / 315;
}

ul,ol {
  padding-left: 1.8em;
}

ul { list-style: disc; }
ol { list-style: decimal; }

code {
  background: var(--bs-tertiary-bg);
  margin: 0 0.25rem;
}

pre {
  background: var(--bs-dark);
  color: var(--bs-light);
  padding: 1.25rem 1.5rem;
  border-radius: var(--bs-border-radius-lg);
  overflow-x: auto;
  font-size: var(--font-size-0);
  line-height: 1.7;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

table {
  width: 100%;
  font-size: var(--font-size-0);
}

th, td {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--bs-border-color);
  text-align: left;
}

th {
  background: var(--bs-tertiary-bg);
  font-weight: 700;
}

table.mnk-table--auto { width: auto; }
table.mnk-table--equal-cols { table-layout: fixed; }

figure, figure.image {
  margin: 1.5em 0;
  max-width: 100%;
}

figure img {
  border-radius: var(--bs-border-radius);
  max-width: 100%;
  height: auto;
}

figure figcaption {
  font-size: var(--font-size-0);
  color: var(--bs-secondary-color);
  text-align: center;
  margin-top: 0.5rem;
}

figure.align-left {
  float: left;
  margin: 0 1.5em 1em 0;
  max-width: 50%;
}

figure.align-center {
  margin-left: auto;
  margin-right: auto;
  display: table;
}

figure.align-center img {
  display: block;
}

figure.align-right {
  float: right;
  margin: 0 0 1em 1.5em;
  max-width: 50%;
}

/* Video in figure */
figure.video {
  margin: 1.5em 0;
}

figure.video video {
  max-width: 100%;
  height: auto;
}

/* Plyr container inside figure */
figure.video .plyr {
  --plyr-color-main: var(--brand-color, var(--bs-primary));
}

figure.video .plyr--video {
  border-radius: var(--bs-border-radius);
  overflow: hidden;
}

/* Scroll Box */
.scroll-box {
  width: 100%;
  overflow-y: auto;
  border: 1px solid var(--bs-border-color);
  padding: 0.5rem;
  box-sizing: border-box;
}

.scroll-box--120 {
  height: 120px;
}

.article__body .scroll-box--240 {
  height: 240px;
}

/* Marker (underline highlighter) */
.marker-pink   { background: linear-gradient(transparent 60%, rgba(255, 192, 203, 0.5) 60%); }
.marker-orange { background: linear-gradient(transparent 60%, rgba(244, 164, 96, 0.5) 60%); }
.marker-yellow { background: linear-gradient(transparent 60%, rgba(255, 255, 0, 0.5) 60%); }
.marker-green  { background: linear-gradient(transparent 60%, rgba(152, 251, 152, 0.5) 60%); }
.marker-blue   { background: linear-gradient(transparent 60%, rgba(135, 206, 235, 0.5) 60%); }

hr.monaka-more {
  display: none;
}

/* ------------------------------------------
   4. Header
   ------------------------------------------ */

body > header {
  background: var(--mnk-header-bg);
}

.site-title {
  font-size: var(--font-size-3);
  font-weight: bold;
  color: var(--mnk-header-title);
}

.site-title a {
  text-decoration: none;
  color: var(--mnk-header-title);
}

.site-title a:hover {
  color: var(--mnk-header-title-hover);
}

.site-description {
  font-size: var(--font-size-0);
  color: var(--mnk-header-description);
}

/* ------------------------------------------
   5. Header Nav（カテゴリーメニュー）
   ------------------------------------------ */

#header-nav {
  position: sticky;
  background-color: var(--mnk-header-menu-bg);
  color: var(--mnk-header-menu-text);
  top: 0;
  z-index: 1030;
}

#header-nav .nav-item {
  flex-shrink: 0; 
}
#header-nav .nav-link {
  padding: 0.5rem 1.25rem;
  font-size: var(--font-size-1);
  font-weight: 500;
  color: var(--mnk-header-menu-text);
  white-space: nowrap;
  position: relative;
  border-radius: 0;
  transition: color 0.25s ease, background 0.25s ease;
}

/* アンダーラインエフェクト */
#header-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  transition: width 0.25s ease;
  background-color: var(--mnk-header-menu-text-hover);
}


#header-nav .nav-link:hover::after,
#header-nav .nav-link:focus-visible::after,
#header-nav .nav-link.active::after {
  width: 100%;
  color: var(--mnk-header-menu-text-hover);
}

#header-nav .nav-link.active {
  font-weight: 600;
  color: var(--mnk-header-menu-text-hover);
}

/* ------------------------------------------
   7. Breadcrumb（Bootstrap のを上書き）
   ------------------------------------------ */
.breadcrumb {
  font-size: var(--font-size-0);
  margin-bottom: 1.5rem;
  --bs-breadcrumb-divider: '›';
  --bs-breadcrumb-item-active-color: var(--bs-secondary-color);
}

.breadcrumb-item a {
  color: var(--bs-secondary-color);
}

.breadcrumb-item a:hover {
  color: var(--brand-color);
}

/* ------------------------------------------
   8. Archive Header（一覧ページ用）
   ------------------------------------------ */
.archive-header {
  margin-bottom: 1.75rem;
}

.archive-header__label {
  display: inline-block;
  font-size: var(--font-size-0);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-color);
  background: rgba( var(--brand-color-rgb), 0.1);
  padding: 0.1875rem 0.75rem;
  border-radius: 20px;
}

.archive-header__title {
  font-size: var(--font-size-3);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}

.archive-header__count {
   font-size: var(--font-size-0);
  color: var(--bs-secondary-color);
}

.archive-header__description {
  font-size: var(--font-size-0);
  color: var(--bs-secondary-color);
  margin-top: 0.5rem;
  line-height: 1.7;
}

/* ------------------------------------------
   9. Article（個別ページ）
   ------------------------------------------ */

article {
  border-radius: var(--bs-border-radius-lg);
  background-color: var(--mnk-article-bg);
}

.post-card__body, .post-card-v__body, .post-list--nothumb, .post-list--list { 
  background-color: var(--mnk-article-bg);
}

.article__eyecatch {
  aspect-ratio: 191 / 100;
  background: linear-gradient(135deg, #d4cfc6 0%, #b8b2a6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-secondary-color);
  font-size: var(--font-size-0);
  overflow: hidden;
  margin-bottom: 2rem;
}

.article__eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1.article__title {
  font-size: var(--font-size-3);
  font-weight: 600;
}

.article__meta {
    font-size: var(--font-size-00);
    color:  var(--bs-body-color);
    padding: 1rem 0;
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
}

.article__meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article__meta .meta-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--font-size-00);
    letter-spacing: 0.08em;
    color: var(--brand-color);
}

.article__meta .meta-divider {
    width: 1px;
    height: 1rem;
    background: var(--bs-border-color);
    display: inline-block;
    vertical-align: middle;
}

.badge-tag, 
.sidebar-widget a.badge-tag,
.post-list__tag {
  display: inline-block;
  padding: 0.0625rem 0.5rem;
  background: rgba( var(--bs-body-color-rgb), 0.03);
  border-radius: var(--bs-border-radius-xl);
  font-size: var(--font-size-00);
  color: var(--bs-body-color);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
  text-decoration: none;
}

.badge-tag:hover,
.sidebar-widget a.badge-tag:hover,
.post-list__tag:hover  {
  background: rgba( var(--brand-color-rgb), 0.1);
  color: var(--brand-color);
  transform: translateY(-1px);
}

.badge-category {
  font-size: var(--font-size-0);
  padding: 0.2rem 0.75rem;
  background: var(--brand-color);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;

  position: relative;
  overflow: hidden;
}

.badge-category::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3); /* ←白の濃さ調整 */
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.badge-category:active {
  transform: translateY(0);
}

.badge-category:hover {
  color: #fff;
  text-decoration: none;
}

.badge-category:hover::after {
  opacity: 1;
}

.badge-category:active::after {
  opacity: 0.18;
}

/* Article TOC */
.article-toc {
  font-size: var(--font-size-0);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  background-color: var(--bs-tertiary-bg);
}
.article-toc__title {
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.article-toc__list {
  margin: 0;
  padding-left: 1.25rem;
}
.article-toc__list ol {
  padding-left: 1.25rem;
  margin-top: 0.25rem;
}
.article-toc__list li {
  margin-bottom: 0.25rem;
}
.article-toc__list a {
  color: inherit;
  text-decoration: none;
}
.article-toc__list a:hover {
  text-decoration: underline;
}

/* Article Body (Prose) */
.article__body > * + * {
  margin-top: 1.6em;
}

.article__body h2 {
  position: relative;
  font-size: var(--font-size-2);
  font-weight: 600;
  line-height: 1.5;
  margin-top: 2.4em;
}

.article__body h2:after {
  content: "";
  display: block;
  height: 4px;
  margin-top: 0.5em;
  background: -webkit-linear-gradient(to right, rgb(var(--brand-color-rgb)), transparent);
  background: linear-gradient(to right, rgb(var(--brand-color-rgb)), transparent);
}

.article__body h3 {
  font-size: var(--font-size-1);
  font-weight: 600;
  margin-top: 2em;
  padding: 1rem;
  border-left: 10px solid var(--brand-color);
  background: rgba( var(--brand-color-rgb), 0.1);
}

.article__body h4,
.article__body h5,
.article__body h6 {
  font-size: var(--font-size-1);
  font-weight: 600;
  border-left: 1.1rem solid var(--brand-color);
  padding-left: 0.6rem;
}

.article__body a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  margin-left: 0.3em;
  vertical-align: text-bottom;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
}

/* Article Pager (Prev/Next) */
.article-pager {
  margin: 2rem 0;
  border-radius: var(--bs-border-radius-lg);
  background-color: var(--mnk-article-bg);
  overflow: hidden;
}

.article-pager__item {
  padding: 1rem 0;
  text-decoration: none;
  color: inherit;
}

.article-pager__item:hover {
  background: rgba( var(--brand-color-rgb), 0.1);
}

.article-pager__label {
  font-size: var(--font-size-00);
  color: var(--bs-secondary-color);
  text-transform: uppercase;
  font-weight: 700;
}

.article-pager__title {
  font-weight: 600;
  line-height: 1.4;
}

.article-pager__prev {
  padding-right: 0.5rem;
}

.article-pager__next {
  padding-left: 0.5rem;
}

/* Related Articles */
.related-articles {
  margin-top: 2rem;
  border-radius: var(--bs-border-radius-lg);
  background-color: var(--mnk-article-bg);
}

.related-articles__title {
  font-size: var(--font-size-2);
  font-weight: 600;
}

.related-articles__list{ 
  margin-top: 1rem;
}

.related-articles__item {
  padding: 1rem 0.5rem;
  border-radius: var(--bs-border-radius);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.related-articles__item:hover {
  background: rgba(var(--brand-color-rgb), 0.1);
}

.related-articles__thumb {
  overflow: hidden;
  border-radius: var(--bs-border-radius-sm);
}

.related-articles__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-articles__thumb--1-1 {
  width: 90px;
  height: 90px;
}

.related-articles__thumb--3-2 {
  width: 135px;
  height: 90px;
}

.related-articles__thumb--16-9 {
  width: 160px;
  height: 90px;
}

.related-articles__no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-4);
  font-weight: 700;
  color: #fff;
}

.related-articles__body {
  flex: 1;
  min-width: 0;
}

.related-articles__item-title {
  display: block;
  font-weight: 500;
  line-height: 1.4;
}

.related-articles__date {
  font-size: var(--font-size-00);
  color: var(--bs-secondary-color);
}

/* ------------------------------------------
   10. Post Card（一覧ページ）
   ------------------------------------------ */

.post-list {
  border-radius: var(--bs-border-radius-lg);
  overflow: hidden;
}

.post-list__item--list,
.post-list__item--nothumb {
    border-radius: 0;
}

.post-list__item.post-list__item--nothumb + .post-list__item.post-list__item--nothumb,
.post-list__item.post-list__item--list + .post-list__item.post-list__item--list {
    border-top: 1px solid var(--bs-border-color);
}

.post-list__thumbnail {
  text-decoration: none;
}

.post-list--list_1x1 .post-list__thumbnail { flex: 0 0 144px; }
.post-list--list_3x2 .post-list__thumbnail { flex: 0 0 192px; }
.post-list--list_16x9 .post-list__thumbnail { flex: 0 0 256px; }

.post-list__thumbnail a {
    display: block;
    overflow: hidden;
    border-radius: var(--bs-border-radius);
    text-decoration: none;
}

.post-list--list_1x1 .post-list__thumbnail a { aspect-ratio: 1 / 1; }
.post-list--list_3x2 .post-list__thumbnail a { aspect-ratio: 3 / 2; }
.post-list--list_16x9 .post-list__thumbnail a { aspect-ratio: 16 / 9; }

.post-list__thumbnail img,
.post-list__thumbnail__no-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-list__thumbnail__no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-4);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0;
}

.post-list__title {
  font-size: var(--font-size-2);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0;
}

.post-list__title a {
  color: var(--bs-body-color);
  text-decoration: none;
  transition: color 0.2s;
}

.post-list__title a:hover {
  color: var(--brand-color);
}

.post-list__excerpt {
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-list__meta {
  font-size: var(--font-size-0);
  color: var(--bs-secondary-color);
}

.post-list__category {
  display: inline-block;
  padding: 0.0625rem 0.5rem;
  background: var(--bs-tertiary-bg);
  border-radius: var(--bs-border-radius-sm);
  font-size: var(--font-size-00);
  color: var(--brand-color);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
  font-weight: 700;
}

.post-list__item--card .post-list__category {
  background: rgba( 0, 0, 0, 0.6);
  color: #fff;
  font-weight: 700;
}

.post-list__category:hover {
  background: var(--brand-color);
  color: #fff;
  transform: translateY(-1px);
}

/* ------------------------------------------
   10b. Post Card - Card Style (vertical grid)
   ------------------------------------------ */

.post-list__item--card {
  border-radius: var(--bs-border-radius-lg);
  box-shadow: 0 1px 3px rgba(44,42,37,0.08), 0 1px 2px rgba(44,42,37,0.04);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}


.post-list__item--card:hover {
  box-shadow: 0 4px 12px rgba(44,42,37,0.12), 0 2px 4px rgba(44,42,37,0.06);
  transform: translateY(-2px);
}

.post-list__item--card .post-list__thumbnail {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #d4cfc6 0%, #b8b2a6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-secondary-color);
  font-size: var(--font-size-00);
  overflow: hidden;
  border-radius: 0;
}

.post-list__item--card .post-list__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-list__item--card .post-list__thumbnail-wrap .post-list__category {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
}

.post-list__item--card .post-list__title {
  font-size: var(--font-size-1);
}

.post-list__item--card .post-list__meta {
  font-size: var(--font-size-0);
  color: var(--bs-secondary-color);
  margin-top: auto;
}

/* ------------------------------------------
   10c. Post List - Text Style (minimal)
   ------------------------------------------ */

.post-list__item--text + .post-list__item--text {
    margin-top: 3rem;
}

.post-list__item--text {
    border-radius: var(--bs-border-radius);
}

.post-list__content {
  margin-top: 0.25rem;
}

.post-list__content hr.monaka-more {
  display: none;
}

.post-list__readmore {
  display: block;
  margin-top: 0.5rem;
  margin-left: auto;
  width: fit-content;
  font-size: var(--font-size-0);
  font-weight: 600;
  color: var(--brand-color);
  text-decoration: none;
  padding: 0.25rem 1rem;
}


.post-list__readmore:hover {
  color: var(--bs-tertiary-color);
}

/* Search highlight */
mark {
  background: rgba(196, 92, 44, 0.2);
  color: inherit;
  padding: 0.1em 0.2em;
  border-radius: 2px;
}

/* ------------------------------------------
   11. Pagination（Bootstrap のを上書き）
   ------------------------------------------ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 40px 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}

.page-item {
  list-style: none;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 8px 16px;
  border-radius: var(--bs-border-radius-xl);
  background: transparent;
  color: var(--bs-body-color);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: var(--font-size-0);
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.page-link:hover {
  background: rgba( var(--brand-color-rgb), 0.1);
  color: var(--bs-body-color);
  transform: translateY(-1px);
}

.page-link:focus {
  outline: none;
  box-shadow: none;
}

/* アクティブなページ */
.page-item.active .page-link {
  background: var(--brand-color);
  color: white;
  pointer-events: none;
}

.page-item.active .page-link:hover {
  transform: none;
}

/* 無効化されたボタン（...など） */
.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  background: transparent;
  transform: none;
}

.page-item.disabled .page-link:hover {
  background: transparent;
  color: var(--bs-secondary);
  transform: none;
}

/* 前後ボタン用のアイコン調整 */
.page-link[aria-label="Previous"],
.page-link[aria-label="Next"] {
  font-size: var(--font-size-1);
}

/* ------------------------------------------
   12. Sidebar
   ------------------------------------------ */
aside#sidebar {
  background: var(--mnk-sidebar-bg)!important;
}

.sidebar-widget {
  padding: 1rem;
  color: var(--mnk-sidebar-text);
}

.sidebar-widget__heading {
  font-size: var(--font-size-1);
  color: var(--mnk-sidebar-title);
  font-weight: 600;
}

.sidebar-widget a { color: var(--mnk-sidebar-link); }
.sidebar-widget a:hover { color: var(--mnk-sidebar-link-hover); }

.sidebar-widget__body {
  padding: 0.5rem 0 1rem;
  font-size: var(--font-size-0);
}

.sidebar-widget__meta {
  color: var(--mnk-sidebar-text);
  font-size: var(--font-size-00);
}

/* Recent posts (Bootstrap list-group を利用) */

.sidebar-widget .list-group-item {
  background: transparent;
  padding: 0.5rem;
  line-height: 1.7;
  border: none;
}

.list-group-item + .list-group-item {
  border-top: 1px solid var(--bs-border-color);
  margin-top: 0;
}

.sidebar-widget .list-group-item:hover {
  background: rgba( var(--brand-color-rgb), 0.1);
  border-radius: var(--bs-border-radius);
}

/* Sidebar placeholder widget */
.sidebar-widget--placeholder .sidebar-widget__body {
  text-align: center;
  color: var(--bs-secondary-color);
  font-size: var(--font-size-00);
  padding: 1.5rem 1.25rem;
  border: 1px dashed var(--bs-border-color);
  border-radius: var(--bs-border-radius);
}

/* ------------------------------------------
   13. Footer Nav
   ------------------------------------------ */

#footer-nav { 
  background-color: var(--mnk-footer-menu-bg);
}

#footer-nav a { color: var(--mnk-footer-menu-link); }
#footer-nav a:hover { color: var(--mnk-footer-menu-link-hover); }

#footer-nav .nav-item {
  font-size: var(--font-size-00);
}

/* ------------------------------------------
   14. Footer
   ------------------------------------------ */

body > footer p {
  font-size: var(--font-size-00);
}

body > footer { 
  background-color: var(--mnk-footer-bg); 
  color: var(--bs-light);
}

body > footer p { color: var(--mnk-footer-text); }
body > footer a { color: var(--mnk-footer-link); }
body > footer a:hover { color: var(--mnk-footer-link-hover); }

/* ------------------------------------------
   15. Error Page
   ------------------------------------------ */
.error-page, .no-articles {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--bs-body-color);
  border-radius: var(--bs-border-radius-lg);
  background-color: var(--mnk-article-bg);
}

.error-page__code {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page__title {
  font-size: var(--font-size-3);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.error-page__message {
  font-size: var(--font-size-0);
  color: var(--bs-secondary-color);
  margin-bottom: 2rem;
}

.error-page__link {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--brand-color);
  color: #fff;
  border-radius: var(--bs-border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.error-page__link:hover {
  background: color-mix(in srgb, var(--brand-color) 85%, black);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 92, 44, 0.25);
}


/* ------------------------------------------
   17. Logo Image
   ------------------------------------------ */
.site-title--logo {
  line-height: 1;
}

.site-logo {
  max-height: 48px;
  width: auto;
  display: block;
}

@media (max-width: 575.98px) {
  .site-logo {
    max-height: 36px;
  }
}

/* ------------------------------------------
   19. Sidebar Layout
   ------------------------------------------ */
aside {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  border-radius: var(--bs-border-radius-sm);
}

/* ------------------------------------------
   21. Header with Widget Layout
   ------------------------------------------ */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header__brand {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-header--title-right .site-header__inner {
  flex-direction: row-reverse;
}

.site-header--title-right .site-header__brand {
  text-align: right;
  justify-content: flex-end;
}

@media (max-width: 767.98px) {
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .site-header--title-right .site-header__inner {
    flex-direction: column;
  }

  .site-header__brand {
    flex-direction: column;
    gap: 0.375rem;
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .site-header--title-right .site-header__brand {
    text-align: center;
    justify-content: center;
  }
}

/* ------------------------------------------
   22. Header Widgets (SNS icons, search, color mode)
   ------------------------------------------ */
.header-widgets {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-widgets__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: var(--bs-border-radius);
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  text-decoration: none;
  padding: 0;
  line-height: 1;
  color: var(--mnk-header-widget-icon);
}

.header-widgets__item:hover {
  background: rgba(255, 255, 255, 0.15);
  opacity: 0.85;
  text-decoration: none;
  color: var(--mnk-header-widget-icon);
}

.header-widgets__item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.header-widgets--dark .header-widgets__item {
  color: #222;
}

.header-widgets--dark .header-widgets__item:hover {
  background: rgba(0, 0, 0, 0.08);
}

@media (max-width: 575.98px) {
  .header-widgets__item {
    width: 32px;
    height: 32px;
  }
  .header-widgets {
    gap: 0.125rem;
  }
}


/* ------------------------------------------
   22b. Search Form Widget
   ------------------------------------------ */

.search-form .input-group .btn {
    background: var(--brand-color);
    border-color: var(--brand-color);
    color: #fff;
    font-size: var(--font-size-0);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.search-form .input-group .form-control {
  font-size: var(--font-size-0);
  border-color: var(--bs-border-color);
}

.search-form .input-group .form-control:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 0.2rem rgba(184,84,42,0.15);
}

.search-form .input-group .btn:hover {
  background: color-mix(in srgb, var(--brand-color) 85%, black);
  border-color: color-mix(in srgb, var(--brand-color) 85%, black);
}

body > footer .search-form .input-group {
  width: 220px;
}

/* ------------------------------------------
   24. Article Top Widget Area
   ------------------------------------------ */
.article-top-widgets {
  margin-bottom: 1.5rem;
}

.article-top-widgets > * + * {
  margin-top: 1rem;
}

/* Under Header Widgets */
.under-header-widgets {
  margin-top: 2rem;
}

.under-header-widgets > .container > * + * {
  margin-top: 0.75rem;
}

/* ------------------------------------------
   Header Nav Icon Buttons
   ------------------------------------------ */

.header-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  order: 1;
  padding: 0.5rem 0;
}

.header-nav__icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  line-height: 1;
  border-radius: var(--bs-border-radius);
  transition: background 0.2s ease;
  text-decoration: none;
  color: var(--mnk-header-menu-text);
}

.header-nav__icon-label {
  padding: 0.5rem 1.25rem;
}

/* カラースイッチャー: モードに応じたアイコン切り替え */
.color-icon { display: none; }
.color-switcher-btn[data-color-saved="light"] .color-icon--light { display: block; }
.color-switcher-btn[data-color-saved="dark"] .color-icon--dark { display: block; }
.color-switcher-btn[data-color-saved="auto"] .color-icon--auto { display: block; }

.color-switcher-btn {
  padding-left: 0.5rem;
}

/* モバイル展開メニュー（2列レイアウト） */
@media (max-width: 767.98px) {
  #header-nav-collapse .navbar-nav {
    padding: 0.5rem 0;
    flex-direction: row;
    flex-wrap: wrap;
  }
  #header-nav-collapse .navbar-nav .nav-item {
    width: 50%;
  }
  #header-nav-collapse .nav-link {
    padding: 0.5rem 1.25rem;
    border-bottom: 1px solid rgba(var(--bs-body-color-rgb), 0.1);
  }
  #header-nav-collapse .navbar-nav .nav-item:nth-child(even) .nav-link {
    border-left: 1px solid rgba(var(--bs-body-color-rgb), 0.1);
  }
  #header-nav .nav-link::after {
    display: none;
  }
}

/* カラースイッチャードロップダウン */
#header-nav .dropdown-menu {
  min-width: 120px;
}

#header-nav .dropdown-item.active,
#header-nav .dropdown-item:active {
  background-color: var(--brand-color);
}

#header-nav .dropdown-item {
  font-size: var(--font-size-0);
}

.sidebar-inner {
  overflow-y: auto;
  height: 100%;
}

/* フローティングアクションボタン */
.floating-actions {
  transform: translateY(-50%);
  z-index: 1020;
  opacity: 0.8;
}

.floating-actions__btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--brand-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.floating-actions__btn:hover {
  transform: scale(1.1);
}

.floating-actions__btn--top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
}

/* ------------------------------------------
   callout
   ------------------------------------------ */
.bd-callout {
  padding: 1.25rem;
  border: 1px solid transparent;
  border-left-width: 0.5rem;
  border-left-color: var(--bs-secondary-border-subtle);
  background: var(--bs-tertiary-bg);
}

.bd-callout-info {
  border-left-color: var(--bs-info-border-subtle);
  background: var(--bs-info-bg-subtle);
}

.bd-callout-warning {
  border-left-color: var(--bs-warning-border-subtle);
  background: var(--bs-warning-bg-subtle);
}

.bd-callout-danger {
  border-left-color: var(--bs-danger-border-subtle);
  background: var(--bs-danger-bg-subtle);
}
