﻿/* ===== デザイントークン ===== */
:root {
  --color-bg-page: #24201d;
  --color-sidebar-border: #b5241a;
  --color-accent-new: #b5241a;
  --color-text-primary: #ffffff;
  --color-text-muted: #999999;
  --color-text-heading-soft: rgba(255, 255, 255, 0.8);
  --color-text-meta-soft: rgba(255, 255, 255, 0.56);
  --color-card-divider: rgba(255, 255, 255, 0.12);
  --color-tag-border: rgba(255, 255, 255, 0.5);

  --sidebar-width: 60px;
  --content-max: 1200px;
  --postmeta-width: 220px;
  --postimages-width: 720px;
  --card-gap: 40px;
  --archive-label-scale: 1;
}

/* ===== リセット ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: #fff;
  padding: 0.1em 0.3em;
  transition: all 0.3s ease;
  text-decoration: none;
}
a:hover {
  background-color: var(--color-accent-new);
}
a.out:hover {
  opacity: 0.8;
  background-color: transparent;
}
a.ex {
  color: #fff;
  position: relative;
  padding: 0 0.3em 0.3em 0.3em;
  text-decoration: none;
  transition: all 0.3s ease;
}
a.ex::before {
  position: absolute;
  content: "";
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 0%;
  transition: all 0.3s ease;
  opacity: 0;
  background-color: var(--color-accent-new); /*ホバー時の背景色*/
}
a.ex::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 0px;
  content: "";
  transition: all 0.3s ease;
  border-bottom: 0px solid #aaa; /*下線の色*/
  opacity: 1;
}
a.ex:hover::before {
  height: 100%;
  opacity: 0.4;
}
a.ex:hover::after {
  left: 50%;
  right: 50%;
  width: 0%;
  opacity: 0;
}
ul,
ol {
  list-style: none;
}

/* ===== ベース ===== */
/* clamp(min, fluid, max): 14px〜18px でビューポート幅に応じて流動スケール */
html {
  font-size: clamp(0.875rem, 0.5rem + 0.8vw, 1.375rem);
  scroll-behavior: smooth;
}
body {
  background-color: var(--color-bg-page);
  background-image: url("/images/common/body_bg.webp");
  background-attachment: fixed;
  background-size: cover;
  background-position: 0 0;
  color: var(--color-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", "Yu Gothic Medium", "Noto Sans JP", Meiryo, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.pswp-custom-caption {
  position: absolute;
  left: 15px;
  top: 50px;
  left: 20px;
  z-index: 30;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  /* background: rgba(36, 32, 29, 0.5); */
  color: var(--color-text-primary);
  font-size: 0.653rem;
  line-height: 1.5;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.pswp-custom-caption.is-visible {
  opacity: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== アーカイブラベル（site-content上部中央固定・縦書き） ===== */
.archive-label-wrap {
  font-family: var(--font-mincho);
  position: fixed;
  top: 0;
  right: 2%;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 500;
  background-color: var(--color-accent-new);
  padding: 1em;
  transform: scale(var(--archive-label-scale));
  transform-origin: top right;
}
.archive-label-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: default;
}

.archive-label {
  font-size: 1rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
  user-select: none;
  letter-spacing: 0.05em;
  padding: 12px 0;
}

.archive-label-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.archive-label-close {
  display: none;
}
.archive-label-wrap .numble {
  font-size: 1rem;
  line-height: 1;
  color: var(--color-text-primary);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.archive-label-wrap .numble-body {
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.4rem;
  margin-bottom: 0.4rem;
}
.archive-label-wrap .numble-body span {
  font-size: 4rem;
}

.archive-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.archive-thumb-link {
  display: block;
  width: 72px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.15);
  transition:
    opacity 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.archive-thumb-link:hover {
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateX(-2px);
}

.archive-thumb-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ===== Shortcodes ===== */
.sc-note,
.sc-speech,
.sc-button-wrap {
  margin: 1.75rem 0;
}

.sc-note {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.18);
  padding: 1rem 1.1rem;
  border-left: 4px solid rgba(255, 255, 255, 0.5);
}

.sc-note-title {
  margin-bottom: 0.5rem;
  color: #f3d9b1;
  font-size: 0.95rem;
}

.sc-note-body > * + * {
  margin-top: 0.8rem;
}

.sc-note-warning {
  border-left-color: #d66a4f;
  background: rgba(125, 30, 17, 0.18);
}

.sc-note-warning .sc-note-title {
  color: #ffccad;
}

.sc-note-soft {
  border-left-color: rgba(243, 217, 177, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.sc-speech {
  max-width: 42rem;
}

.sc-speech-left {
  margin-right: auto;
}

.sc-speech-right {
  margin-left: auto;
}

.sc-speech-name {
  margin-bottom: 0.45rem;
  color: #e6c898;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.sc-speech-body {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.95rem 1rem;
}

.sc-speech-body::before {
  content: "";
  position: absolute;
  top: 14px;
  width: 14px;
  height: 14px;
  background: inherit;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  transform: rotate(-45deg);
}

.sc-speech-left .sc-speech-body::before {
  left: -8px;
}

.sc-speech-right .sc-speech-body::before {
  right: -8px;
  transform: rotate(135deg);
}

.sc-speech-thought .sc-speech-body {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.05);
}

.sc-speech-body > * + * {
  margin-top: 0.8rem;
}

.sc-button-wrap {
  text-align: center;
}

.sc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(180deg, rgba(181, 36, 26, 0.9), rgba(120, 24, 18, 0.92));
  color: #fff7f2;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    border-color 0.18s ease;
}

.sc-button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.7);
}

.sc-button-subtle {
  background: rgba(255, 255, 255, 0.08);
  color: #f3e7d6;
}

.sc-embed {
  margin: 1.75rem 0;
}

.sc-embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.45);
}

.sc-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-content video,
.post-content audio {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0;
}

/* ===== サイトレイアウト ===== */
.site-wrapper {
  display: flex;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

/* ===== サイドバー ===== */
.site-sidebar {
  width: var(--sidebar-width);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  /* border-right: 5px solid var(--color-sidebar-border); */
  padding: 0 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  border-right: 1px solid #555;
  z-index: 650;
  cursor: pointer;
  transition:
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s ease;
}

.site-sidebar.is-expanded {
  width: 200px;
}

@media (hover: hover) and (pointer: fine) {
  .site-sidebar:hover {
    background-color: var(--color-accent-new);
  }

  .site-sidebar.is-expanded:hover {
    background-color: transparent;
  }
}

/* 背景装飾ロゴ */
.sidebar-back-logo {
  display: none;
  position: absolute;
  left: -56px;
  top: -19px;
  width: 247px;
  height: 627px;
  transform: rotate(-5.33deg);
  pointer-events: none;
}

body.menu-open .sidebar-back-logo {
  display: block;
}

/* ロゴ */
.sidebar-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-logo a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

.sidebar-logo-total {
  display: none;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mincho);
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

body.menu-open .sidebar-logo-total {
  display: inline-flex;
  padding: 3px 6px;
  font-size: 0.85rem;
  background-color: var(--color-accent-new);
}

.sidebar-logo-type {
  display: block;
  width: auto;
  max-height: 40vh;
  height: auto;
}

.sidebar-logo-type-mobile {
  display: none;
}

/* パネル開閉アイコン */
.sidebar-panel-toggle {
  position: fixed;
  top: 50%;
  left: calc(var(--sidebar-width) / 2);
  transform: translate(-50%, -50%);
  width: 42px;
  height: 56px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  color: #fff;
  transition:
    left 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  z-index: 1500;
}

.sidebar-panel-toggle:hover {
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
}

.sidebar-panel-toggle.is-open {
  left: 100px;
  background: transparent;
  box-shadow: none;
}

.menu-toggle-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.menu-toggle-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.menu-toggle-line-top {
  transform: translate(-50%, -4px);
}

.menu-toggle-line-bottom {
  transform: translate(-50%, 4px);
}

.menu-label {
  font-size: 0.5rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.sidebar-panel-toggle.is-open .menu-toggle-line-top {
  transform: translate(-50%, -50%) rotate(45deg);
}

.sidebar-panel-toggle.is-open .menu-toggle-line-bottom {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ===== サイドバーナビ ===== */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 3px;
  margin-top: auto;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  min-height: 0;
  padding: 0.5em 0;
}

.sidebar-nav-item:hover {
  color: var(--color-text-primary);
}

.sidebar-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 54px;
  flex: 0 0 auto;
}

.sidebar-nav-icon svg {
  width: 60%;
  fill: currentColor;
}

.sidebar-nav-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.85rem;
  transition:
    max-width 0.18s ease,
    opacity 0.18s ease;
}

.site-sidebar.is-expanded .sidebar-nav-item {
  justify-content: flex-start;
}

.site-sidebar.is-expanded .sidebar-nav-label {
  max-width: 120px;
  opacity: 1;
}

/* ===== メインコンテンツ ===== */
.site-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.page-back-nav {
  display: flex;
  justify-content: center;
  padding: 24px 40px 56px;
}

.page-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--color-text-primary);
  font-size: 0.813rem;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    opacity 0.2s;
}

.page-back-button:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
}

/* ===== 一時的なお知らせ ===== */
.temporary-notice {
  flex-shrink: 0;
  border-bottom: 1px solid #555;
  background: rgba(181, 36, 26, 0.4);
  font-size: 13px;
}

.temporary-notice-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 5px 18px;
}

.temporary-notice-message {
  min-width: 0;
  color: var(--color-text-primary);
  font-size: 0.813rem;
  line-height: 1.5;
}

.temporary-notice-link {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 4px 12px;
  color: var(--color-text-primary);
  font-size: 0.75rem;
  line-height: 1.3;
}

.temporary-notice-link:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: var(--color-accent-new);
}

/* ===== ブレッドクラム ===== */
.breadcrumbs {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 450;
  background: rgba(36, 32, 29, 0.96);
  border-bottom: 1px solid #555;
  flex-shrink: 0;
  justify-content: flex-start;
}

.breadcrumb-item {
  font-weight: 350;
  font-size: 0.813rem;
  color: var(--color-text-primary);
  padding: 10px 25px;
  border-right: 1px solid #555;
  white-space: nowrap;
}

.breadcrumb-item.current {
  color: var(--color-text-muted);
}

/* ===== フィード（トップ・一覧） ===== */
.post-feed {
  width: 100%;
}

/* ===== PostCard ===== */
.post-card {
  display: flex;
  gap: var(--card-gap);
  align-items: flex-start;
  justify-content: center;
  padding: 60px 40px 120px;
  border-bottom: 1px solid var(--color-card-divider);
  scroll-margin-top: 48px;
}

/* PostCard 内の3カラム幅固定 */
.post-meta {
  flex: 0 1 13%;
  max-width: var(--postmeta-width);
}
.post-images {
  flex: 1;
  min-width: 0;
}
.post-card-right {
  flex: 0 1 13%;
  max-width: var(--postmeta-width);
}

/* ===== PostMeta ===== */
.post-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.post-meta-inner {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 20px;
}
.post-meta-inner.top {
  flex-direction: column;
  align-items: center;
}

.post-date-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  flex-direction: row;
}

.single-post .post-meta-inner {
  flex-direction: column;
  align-items: flex-start;
}

/* NEW バッジ */
.badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-new);
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  padding: 6px 20px;
  line-height: 1;
}

/* 記事タイトル */
.post-title-wrap a {
  font-family: var(--font-mincho);
  font-size: 2rem;
  line-height: 1.4;
  color: var(--color-text-heading-soft);
}
.single-post .post-title-wrap a {
  font-size: 1.6rem;
}
.post-title-wrap.top a {
  font-size: 1rem;
}

/* 日付 */
.post-date {
  font-weight: 100;
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text-meta-soft);
}

.post-date .year {
  font-size: 1rem;
}
.post-date .mmdd {
  font-size: 2rem;
}

/* カテゴリ */
.post-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.post-meta-icon {
  width: 22px;
  height: 14px;
  flex-shrink: 0;
}

.post-meta-icon--tag {
  height: 18px;
}

.category-tag {
  font-size: 0.75rem;
  border: 0.5px solid var(--color-tag-border);
  padding: 3px 10px;
  white-space: nowrap;
}

.category-tag:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* タグ・感情タグ */
.post-tags,
.post-emotions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tag-badge {
  font-size: 0.75rem;
  padding: 3px 8px;
  color: var(--color-text-muted);
}

.tag-badge:hover {
  color: var(--color-text-primary);
}

/* 説明文 */
.post-description {
  font-size: 0.813rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-align: justify;
}

.post-image-description {
  font-size: 0.813rem;
  color: #999;
  line-height: 20px;
}

/* ===== PostImages ===== */
.post-images {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 800px;
}

.post-images-inner {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.post-images .pswp-link {
  display: block;
  width: 100%;
  cursor: zoom-in;
}

/* Markdown 本文内の画像を600px幅に揃える */
.post-images img:not(.webclap-icon) {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.04);
}

.pswp-link.is-last-feed-image img {
  margin-bottom: 0;
}

.post-single-link {
  font-size: 0.69rem;
  text-align: center;
  color: #999;
  margin-top: 16px;
  padding-bottom: 60px;
}

a.pswp-link:hover {
  background-color: transparent;
  cursor: zoom-in;
}

a.pswp-link img {
  cursor: zoom-in;
}

/* 「読みました」ボタン */
.webclap-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--color-text-primary);
  padding: 0.8em 3em;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--color-text-primary);
  transition:
    border-color 0.2s,
    opacity 0.2s;
}

.webclap-btn:hover {
  opacity: 0.7;
}

.webclap-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* 「続きはこちら」 */
.post-more {
  display: block;
  max-width: 400px;
  border: 1px solid var(--color-text-primary);
  background: var(--color-accent-new);
  padding: 14px 20px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  transition:
    opacity 0.2s,
    border-color 0.2s,
    color 0.2s;
  margin: 16px auto 0;
}

.post-more:hover {
  border-color: var(--color-text-primary);
  opacity: 0.86;
  color: var(--color-text-primary);
}

.post-external-link {
  display: block;
  max-width: 400px;
  border: 1px solid var(--color-text-primary);
  background: var(--color-accent-new);
  padding: 14px 20px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  transition:
    opacity 0.2s,
    border-color 0.2s,
    color 0.2s;
  margin: 16px auto;
}

.post-external-link:hover {
  border-color: var(--color-text-primary);
  opacity: 0.86;
  color: var(--color-text-primary);
}

/* ===== ノンブル風ページネーション（右下固定） ===== */
.nomber-pagination {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 100;
}

.nomber-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80px;
}

.nomber-prev,
.nomber-next {
  font-size: 1.25rem;
  color: var(--color-text-primary);
  line-height: 1;
  transition: opacity 0.2s;
}

.nomber-prev:hover,
.nomber-next:hover {
  opacity: 0.6;
}

/* ===== テキスト前後ページネーション（フィード下） ===== */
.prevnext-pagination {
  --prevnext-icon-size: 48px;
  --prevnext-position-offset: 0.85rem;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  padding: 60px 0;
}

.prevnext-prev,
.prevnext-next {
  color: var(--color-text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--prevnext-icon-size);
  height: var(--prevnext-icon-size);
  padding: 0 0 var(--prevnext-position-offset);
  box-sizing: content-box;
  flex-shrink: 0;
  line-height: 0;
}

.prevnext-icon {
  display: block;
  flex: 0 0 var(--prevnext-icon-size);
  width: var(--prevnext-icon-size);
  height: var(--prevnext-icon-size);
  line-height: 0;
}

.prevnext-icon svg {
  display: block;
  width: var(--prevnext-icon-size);
  height: var(--prevnext-icon-size);
}

.prevnext-prev:hover,
.prevnext-next:hover {
  opacity: 0.6;
}

.prevnext-prev.disabled,
.prevnext-next.disabled {
  color: rgba(255, 255, 255, 0.25);
  opacity: 1;
  pointer-events: none;
}

/* --- スライダー本体 --- */
.pn-slider {
  flex: 1;
  max-width: 480px;
  padding: 24px 0;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.pn-track {
  position: relative;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.pn-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--color-text-primary);
  pointer-events: none;
}

.pn-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--color-accent-new);
  border-radius: 50%;
  cursor: grab;
  outline: none;
  transition: transform 0.12s;
}

.pn-thumb::before {
  content: "";
  position: absolute;
  top: -52px;
  left: -20px;
  right: -20px;
  bottom: -16px;
}

.pn-thumb.dragging {
  cursor: grabbing;
  transition: none;
}

.pn-thumb:focus-visible {
  box-shadow: 0 0 0 3px rgba(181, 36, 26, 0.35);
}

.pn-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(70, 70, 70, 0.92);
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  min-width: 24px;
  text-align: center;
  line-height: 1.6;
}

.pn-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(70, 70, 70, 0.92);
}

.pn-position {
  margin-top: 18px;
  color: var(--color-text-primary);
  font-family: Garamond, "Times New Roman", var(--font-mincho), serif;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
}

.pn-position-separator {
  display: inline-block;
  margin: 0 0.35em;
  color: var(--color-text-muted, #888);
}

.nomber-prev.disabled,
.nomber-next.disabled {
  opacity: 0.2;
  pointer-events: none;
}

.nomber-current {
  font-size: 4rem;
  line-height: 1;
  color: var(--color-text-primary);
  text-align: right;
}

/* ===== 一覧・タクソノミーページ ===== */
.page-title {
  font-family: var(--font-mincho);
  padding: 40px 40px 0;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-card-divider);
  padding-bottom: 24px;
  text-align: center;
}

.page-title-count {
  display: inline-block;
  margin-left: 0.75em;
  font-size: 0.5em;
  color: var(--color-text-muted, #888);
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.taxonomy-description {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 40px;
  font-size: 0.875rem;
  color: #f6f6f6;
  line-height: 1.8;
  border-bottom: 1px solid var(--color-card-divider);
}

/* ===== 個別記事ページ ===== */
.single-wrap {
  padding: 64px 40px;
  /* max-width: calc(var(--sidebar-width) + var(--postmeta-width) + var(--card-gap) + var(--postimages-width) + var(--card-pad-h) * 2);  */
}

.single-post {
  display: flex;
  gap: var(--card-gap);
  align-items: flex-start;
  display: flex;
  gap: var 40px (--card-gap);

  justify-content: center;
  padding: var(--card-pad-v) var(--card-pad-h);
  border-bottom: 1px solid var(--color-card-divider);
}

.single-post .post-card-right {
  flex: 0 1 7%;
}

.single-post .post-meta-single {
  width: var(--postmeta-width);
  flex: 0 1 13%;
  flex-shrink: 0;
  position: sticky;
  top: 64px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.single-post .post-content {
  max-width: var(--postimages-width);
  flex-shrink: 0;
}

.single-post .post-content p:not(:has(img)) {
  padding: 0 0 1.8em;
}

.single-post .post-content img:not(.webclap-btn img) {
  width: 100%;
  height: auto;
  margin-bottom: 30px;
}

/* ===== WordPress本文互換（swell_child 抜粋） ===== */
.zen,
.single-post .post-content > p,
.news-single-content > p,
.c-balloon .c-balloon__text > p {
  font-family: var(--font-body) !important;
}

.c-balloon .c-balloon__text > p {
  font-weight: 700;
}

.single-post .post-content > p.mainvisual-p,
.news-single-content > p.mainvisual-p {
  padding-bottom: 1em;
}

.single-post .post-content > p.mainvisual-p strong,
.news-single-content > p.mainvisual-p strong {
  letter-spacing: 2px;
}

.post-content .main-image img,
.news-single-content .main-image img {
  width: 73%;
  max-width: 610px;
  margin: 1em auto 0;
}

.post-content .main-bg,
.news-single-content .main-bg {
  background-size: cover;
  background-position: 38% 90%;
}

.post-content .is-style-section_ttl.top-h2,
.news-single-content .is-style-section_ttl.top-h2 {
  padding-top: 0;
  margin-bottom: 1em !important;
}

.post-content .select-top,
.news-single-content .select-top {
  text-align: center;
}

.post-content .top-m-1,
.news-single-content .top-m-1 {
  margin-top: 1em !important;
}

.post-content .top-section,
.news-single-content .top-section {
  padding: 10px 10px 3em;
  background-color: rgba(31, 41, 66, 0.6);
}

.post-content .ex_link,
.news-single-content .ex_link {
  text-align: center;
  padding-bottom: 1em;
}

.post-content .ex_link .btn-default,
.news-single-content .ex_link .btn-default {
  display: inline-block;
  border: 2px solid #fff;
  border-radius: 5px;
  padding: 0.6em 2em;
  color: #fff;
  font-size: 1.22rem;
  text-decoration: none;
}

.post-content .wp-block-columns,
.news-single-content .wp-block-columns {
  --wp-column-gap: 1.5em;
  display: flex;
  gap: var(--wp-column-gap);
  line-height: 1.6;
}

.post-content .wp-block-column,
.news-single-content .wp-block-column {
  min-width: 0;
  flex: 1 1 0;
}

.single-post .post-content ul,
.single-post .post-content ol {
  list-style: revert;
  padding-left: 1.4em;
}

.single-post .post-content li + li {
  margin-top: 0.35em;
}

.post-content .wp-block-image img,
.news-single-content .wp-block-image img {
  max-width: 100%;
}

.post-content .wp-block-embed,
.news-single-content .wp-block-embed {
  max-width: 100%;
}

.post-content .wp-block-embed.mov-s,
.news-single-content .wp-block-embed.mov-s {
  max-width: 360px;
}

.post-content blockquote.wp-embedded-content,
.news-single-content blockquote.wp-embedded-content {
  display: none;
}

.post-content iframe.wp-embedded-content,
.news-single-content iframe.wp-embedded-content {
  max-width: 100%;
  position: relative !important;
}

.post-content .wp-block-embed-facebook,
.post-content .wp-block-embed-instagram,
.post-content .wp-block-embed-twitter,
.news-single-content .wp-block-embed-facebook,
.news-single-content .wp-block-embed-instagram,
.news-single-content .wp-block-embed-twitter {
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}

.post-content .wp-block-embed.aligncenter iframe,
.news-single-content .wp-block-embed.aligncenter iframe {
  display: block !important;
  margin: 0 auto !important;
}

.post-content .wp-has-aspect-ratio,
.news-single-content .wp-has-aspect-ratio {
  position: relative;
}

.post-content .wp-has-aspect-ratio .wp-block-embed__wrapper,
.news-single-content .wp-has-aspect-ratio .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
}

.post-content .wp-has-aspect-ratio .wp-block-embed__wrapper::before,
.news-single-content .wp-has-aspect-ratio .wp-block-embed__wrapper::before {
  content: "";
  display: block;
  padding-top: 50%;
}

.post-content .wp-has-aspect-ratio iframe,
.news-single-content .wp-has-aspect-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.post-content .wp-embed-aspect-21-9 .wp-block-embed__wrapper::before,
.news-single-content .wp-embed-aspect-21-9 .wp-block-embed__wrapper::before {
  padding-top: 42.85%;
}

.post-content .wp-embed-aspect-18-9 .wp-block-embed__wrapper::before,
.news-single-content .wp-embed-aspect-18-9 .wp-block-embed__wrapper::before {
  padding-top: 50%;
}

.post-content .wp-embed-aspect-16-9 .wp-block-embed__wrapper::before,
.news-single-content .wp-embed-aspect-16-9 .wp-block-embed__wrapper::before {
  padding-top: 56.25%;
}

.post-content .wp-embed-aspect-4-3 .wp-block-embed__wrapper::before,
.news-single-content .wp-embed-aspect-4-3 .wp-block-embed__wrapper::before {
  padding-top: 75%;
}

.post-content .wp-embed-aspect-1-1 .wp-block-embed__wrapper::before,
.news-single-content .wp-embed-aspect-1-1 .wp-block-embed__wrapper::before {
  padding-top: 100%;
}

.post-content .wp-embed-aspect-9-16 .wp-block-embed__wrapper::before,
.news-single-content .wp-embed-aspect-9-16 .wp-block-embed__wrapper::before {
  padding-top: 177.78%;
}

.post-content .wp-embed-aspect-1-2 .wp-block-embed__wrapper::before,
.news-single-content .wp-embed-aspect-1-2 .wp-block-embed__wrapper::before {
  padding-top: 200%;
}

.post-content .ai-image-desc-wrapper,
.news-single-content .ai-image-desc-wrapper {
  border: 1px dotted #666;
  padding: 1em;
  color: #aaa;
  font-size: 90%;
}

.post-content .ai-image-desc-wrapper h3,
.news-single-content .ai-image-desc-wrapper h3 {
  padding-bottom: 0.5em;
}

.single-post .post-content :is(h2, h3, h4, h5, h6),
.news-single-content :is(h2, h3, h4, h5, h6) {
  scroll-margin-top: 72px;
}

@media screen and (min-width: 1024px) {
  .zen,
  .single-post .post-content > p,
  .single-post .post-content p,
  .news-single-content > p,
  .news-single-content p {
    font-size: clamp(14px, 0.75rem + 0.15vw, 16px);
  }
}

@media (max-width: 599px) {
  .post-content .wp-block-columns.sp_column2 > .wp-block-column,
  .news-single-content .wp-block-columns.sp_column2 > .wp-block-column {
    flex-basis: calc(32.3% - var(--wp-column-gap) / 2) !important;
  }

  .post-content .main-image img,
  .news-single-content .main-image img {
    width: 100%;
  }

  .single-post .post-content .wp-block-image img,
  .news-single-content .wp-block-image img {
    width: 100%;
    max-width: 100%;
  }

}

.post-body {
  margin-top: 24px;
  font-size: 0.94rem;
  line-height: 1.9;
  color: var(--color-text-muted);
}

/* 自動目次 */
.page-toc {
  width: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.2rem 0 0.2rem 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.6;
}

.page-toc-title {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.page-toc nav,
.page-toc ul,
.page-toc ol {
  margin: 0;
  padding: 0;
}

.page-toc ul,
.page-toc ol {
  list-style: none;
}

.page-toc li + li {
  margin-top: 0.35rem;
}

.page-toc li ul,
.page-toc li ol {
  margin-top: 0.35rem;
  padding-left: 0.9rem;
}

.page-toc a {
  display: inline-block;
  max-width: 100%;
  padding: 0;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.page-toc a:hover {
  background: transparent;
  color: #fff;
}

.single-post.has-toc .post-card-right {
  flex: 0 0 180px;
  max-width: 220px;
}

.single-post .post-card-right .page-toc {
  position: sticky;
  top: 64px;
}

.page-toc-mobile {
  display: none;
  margin-bottom: 2rem;
}

.news-single > .page-toc {
  max-width: 620px;
}

/* 前後ナビ */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-card-divider);
  font-size: 0.813rem;
  color: var(--color-text-muted);
}

.post-nav-link:hover {
  color: var(--color-text-primary);
}

.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-card-divider);
}

.related-posts-title {
  margin: 0 0 24px;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* ===== 404 ===== */
.error-page {
  text-align: center;
  padding: 120px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.error-page h1 {
  font-size: 5rem;
  color: var(--color-text-muted);
}

/* ===== サムネイルグリッド（一覧ページ） ===== */
.thumb-grid {
  max-width: 860px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px;
}

.thumb-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thumb-card a {
  padding: 0;
}

.thumb-card a:hover {
  background-color: transparent;
}

.thumb-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.thumb-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

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

@media (min-width: 901px) {
  .thumb-img-wrap img {
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.28s ease;
  }

  .thumb-card:hover .thumb-img-wrap img {
    transform: scale(1.1);
  }
}

.thumb-taxonomy {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: calc(100% - 12px);
}

.thumb-card .thumb-taxonomy-chip {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  padding: 0.28em 0.68em;
  border-radius: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
}

.thumb-card .thumb-taxonomy-chip:hover {
  opacity: 0.82;
}

.thumb-card .thumb-taxonomy-chip-category {
  background: #1a1a1a;
  font-size: 0.75rem;
}

.thumb-card .thumb-taxonomy-chip-tag {
  background: rgb(48, 48, 48);
}

.thumb-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
}

.thumb-date {
  font-size: 0.69rem;
  color: #ccc;
  font-weight: 100;
}

.thumb-title {
  font-size: 0.813rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.thumb-count {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.9em;
  height: 2.9em;
  font-size: 0.625rem;
  font-weight: 700;
  color: #fff;
  padding: 0;
  border-radius: 50%;
  line-height: 1;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
}

.thumb-count:hover {
  opacity: 0.82;
}

.page-label--page-1 {
  background: rgb(90, 90, 90);
}
.page-label--page-2 {
  background: rgb(30, 90, 175);
}
.page-label--page-3 {
  background: rgb(30, 135, 80);
}
.page-label--page-4plus {
  background: rgb(181, 36, 26);
}

/* ===== カテゴリ一覧グリッド（/categories/ /tags/） ===== */
.term-group {
  margin-bottom: 56px;
}

.term-group-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  padding: 12px 40px;
  border-bottom: 1px solid var(--color-card-divider);
  margin-bottom: 0;
  text-align: center;
}

.term-group-title a {
  transition: opacity 0.2s;
}
.term-group-title a:hover {
  opacity: 0.6;
}

.term-grid {
  max-width: 860px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 32px 40px 60px;
}

.term-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.term-card:hover {
  background-color: transparent;
}

.term-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.term-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}

.term-card:hover .term-img-wrap img {
  opacity: 0.75;
}

.term-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
}

.term-name {
  font-size: 0.813rem;
  color: var(--color-text-primary);
  line-height: 1.4;
}

.term-count {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.625rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  padding: 2px 5px;
  border-radius: 2px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.term-desc {
  font-size: 0.69rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===== オーバーレイメニュー ===== */
.site-sidebar {
  z-index: 950;
}

.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 600;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.overlay-menu {
  position: fixed;
  top: 0;
  left: 60px;
  right: auto;
  width: 30vw;
  max-width: 380px;
  height: 100vh;
  background: #b5241a;
  border-left: 1px solid #c8bfb5;
  z-index: 900;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-12px);
  transition:
    left 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.26s ease,
    transform 0.26s ease,
    visibility 0.26s ease;
}

.overlay-global-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: stretch;
  background: #b5241a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.overlay-global-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 13px 0;
  color: rgba(255, 255, 255, 0.72);
  transition:
    background-color 0.15s,
    color 0.15s;
}

.overlay-global-nav-item:hover {
  background-color: rgba(0, 0, 0, 0.14);
  color: #fff;
}

.overlay-global-nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.overlay-global-nav-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.overlay-menu-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 1.2rem;
}

body.menu-open .overlay-menu {
  left: 200px;
}

.overlay-menu.is-open,
.overlay-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.overlay-menu.is-open {
  transform: translateX(0);
}

.overlay-section-label {
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 0.5em;
}

.overlay-menu-details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.overlay-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 4px 0 10px;
}

.overlay-section-toggle::-webkit-details-marker {
  display: none;
}

.overlay-section-toggle .overlay-section-label {
  padding-top: 0;
}

.overlay-section-caret {
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  color: rgba(255, 255, 255, 0.82);
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.overlay-menu-details[open] .overlay-section-caret {
  transform: rotate(-135deg);
}

.overlay-menu-dropdown {
  grid-template-columns: 1fr;
  padding-bottom: 12px;
}

.overlay-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.overlay-menu-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  color: #fff;
  transition:
    color 0.15s,
    border-color 0.15s;
}

.overlay-menu-item:hover {
  color: #1c1512;
  border-color: rgba(0, 0, 0, 0.3);
}

.overlay-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.overlay-menu-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.overlay-item-label {
  font-size: 0.82rem;
  white-space: nowrap;
}

.overlay-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-items: flex-end;
}

.overlay-section-header .overlay-section-label {
  border-bottom: 0;
  text-align: left;
  padding-bottom: 0;
}

.overlay-section-index-btn {
  font-size: 0.64rem;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 3px;
  color: #fff;
  white-space: nowrap;
  transition:
    color 0.15s,
    border-color 0.15s,
    background-color 0.15s;
}

.overlay-section-index-btn:hover {
  color: #1c1512;
  border-color: rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.88);
}

.overlay-news-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.14);
  color: #fff;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

.overlay-news-card:hover {
  background-color: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.7);
}

.overlay-news-card-empty {
  min-height: 80px;
  justify-content: center;
  cursor: default;
}

.overlay-news-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.69rem;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.overlay-news-meta time {
  flex-shrink: 0;
}

.overlay-news-title {
  font-size: 0.88rem;
  line-height: 1.4;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff;
}

.overlay-news-excerpt,
.overlay-news-empty {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ===== お知らせ ===== */
.news-list {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card {
  border: 1px solid var(--color-card-divider);
  background: rgba(0, 0, 0, 0.14);
}

.news-card-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 28px;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

.news-card-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.news-card-meta {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

.news-card-title {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.7;
}

.news-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Shortcode: Link Card ===== */
.sc-link-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin: 28px 0;
  padding: 14px;
  border: 1px solid var(--color-card-divider);
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    transform 0.2s;
}

.sc-link-card *,
.sc-link-card:hover {
  text-decoration: none;
}

.sc-link-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.sc-link-card-thumb {
  display: block;
  width: 116px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.sc-link-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-link-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.sc-link-card-label {
  width: fit-content;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-text-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.sc-link-card-title {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--color-text-main);
}

.sc-link-card-description {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.66);
}

.news-single-wrap {
  padding: 40px;
}

.news-single {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-card-divider);
}

.news-single-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-single-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
}

.news-single-title {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.6;
}

.news-single-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

.news-single-description {
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.76);
}

.news-single-content {
  min-width: 0;
  font-size: 1rem;
  line-height: 2;
  overflow-wrap: anywhere;
}

.news-single-content > * + * {
  margin-top: 1.2em;
}

.news-single-content a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.single-post .post-content :not(pre) > code,
.news-single-content :not(pre) > code,
.shorttext-content :not(pre) > code {
  padding: 0.1em 0.35em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.38);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92em;
}

.news-single-content ul,
.news-single-content ol {
  list-style: revert;
  padding-left: 1.4em;
}

.news-single-content img,
.news-single-content video,
.news-single-content iframe,
.news-single-content table,
.news-single-content pre {
  max-width: 100%;
}

.news-single-content img,
.news-single-content video {
  height: auto;
}

.news-single-content img[src$="00-hasegawa-thumb.webp"] {
  display: block;
  width: 150px;
  max-width: 100%;
}

.news-single-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.75;
}

.news-single-content th,
.news-single-content td {
  padding: 0.65em 0.85em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  vertical-align: top;
}

.news-single-content th {
  width: 11em;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  text-align: left;
}

.news-single-content td {
  color: rgba(255, 255, 255, 0.72);
}

.news-single-content pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre;
}

.news-single--renewal .news-single-content {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.6rem;
}

.news-single--renewal .news-single-content .renewal-lead {
  margin: 0 0 1.6rem;
  padding: 0.95rem 1.1rem;
  border-left: 3px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.95;
}

.news-single--renewal .news-single-content h2 {
  margin-top: 2.2rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.news-single--renewal .news-single-content h3 {
  margin-top: 1.5rem;
  padding-left: 0.7rem;
  border-left: 2px solid rgba(255, 255, 255, 0.26);
}

.news-single--renewal .news-single-content ul {
  margin-top: 0.7rem;
  padding: 0.95rem 1.1rem 0.95rem 2.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.news-single--renewal .news-single-content li + li {
  margin-top: 0.45rem;
}

.news-single--renewal .renewal-guide-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.news-single--renewal .renewal-guide-media {
  margin: 0;
}

.news-single--renewal .renewal-guide-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.16);
  object-fit: contain;
  object-position: top center;
}

.news-single--renewal .renewal-guide-body {
  min-width: 0;
}

.news-single--renewal .renewal-guide-body > * + * {
  margin-top: 0.75rem;
}

.news-single--renewal .renewal-guide-label {
  display: inline-block;
  margin: 0;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.news-single--renewal .renewal-guide-body p {
  margin: 0;
}

@media (max-width: 1024px) {
  .news-single--renewal .renewal-guide-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .news-single--renewal .renewal-guide-media {
    align-self: center;
    width: 100%;
  }

  .news-single--renewal .renewal-guide-media img {
    margin-right: auto;
    margin-left: auto;
  }
}

/* ===== 独り言 ===== */
.shorttext-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 40px 72px;
}

.shorttext-header {
  margin-bottom: 30px;
}

.shorttext-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

.shorttext-title {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.5;
}

.shorttext-description {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.68);
}

.shorttext-status {
  padding: 18px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
}

.shorttext-status.is-error {
  color: rgba(255, 190, 184, 0.95);
}

.shorttext-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.shorttext-item {
  padding: 22px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.shorttext-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}

.shorttext-label {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  padding: 2px 7px;
  font-size: 0.68rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.shorttext-date {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.shorttext-content {
  font-size: 0.98rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.86);
}

.shorttext-content > * + * {
  margin-top: 1.2em;
}

.shorttext-content a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.single-post .post-content a.sc-link-card,
.news-single-content a.sc-link-card,
.shorttext-content a.sc-link-card,
a.sc-link-card,
a.sc-link-card:hover,
a.sc-link-card:focus {
  text-decoration: none;
}

.shorttext-content ul,
.shorttext-content ol {
  list-style: revert;
  padding-left: 1.4em;
}

.shorttext-content figure {
  margin: 1.4em 0;
}

.shorttext-content img,
.shorttext-content video,
.shorttext-content iframe {
  max-width: 100%;
}

.shorttext-content img {
  height: auto;
}

.shorttext-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.shorttext-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.shorttext-more {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 8px 18px;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.shorttext-more:hover {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
}

.overlay-shorttext {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 890;
  width: min(380px, 26vw);
  height: 100vh;
  padding: 28px 18px 32px;
  background: transparent;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

body.menu-open .overlay-shorttext--desktop {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.overlay-shorttext--mobile {
  display: none;
  background: #221f1c;
  padding-top: 1em;
}

.overlay-shorttext--desktop,
.overlay-shorttext--desktop .overlay-section-label,
.overlay-shorttext--desktop .overlay-section-index-btn,
.overlay-shorttext--desktop .shorttext-date,
.overlay-shorttext--desktop .shorttext-label,
.overlay-shorttext--desktop .shorttext-content,
.overlay-shorttext--desktop .shorttext-status {
  font-family: var(--font-shorttext);
  font-weight: 400;
}

.overlay-shorttext::-webkit-scrollbar {
  width: 5px;
}

.overlay-shorttext::-webkit-scrollbar-track {
  background: transparent;
}

.overlay-shorttext::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.overlay-shorttext::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.36);
}

.overlay-shorttext .overlay-section-header {
  margin-bottom: 10px;
}

.overlay-shorttext-list {
  gap: 0;
}

.overlay-shorttext .shorttext-item {
  padding: 1.8em 0 2.4em;
}

.overlay-shorttext .shorttext-meta {
  margin-bottom: 7px;
  gap: 5px;
}

.overlay-shorttext .shorttext-label {
  min-height: 18px;
  padding: 1px 6px;
  font-size: 0.64rem;
}

.overlay-shorttext .shorttext-date {
  font-family: var(--font-ui);
  font-size: 0.7rem;
}

.overlay-shorttext .shorttext-content {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
}

.overlay-shorttext .shorttext-content > * + * {
  margin-top: 0.8em;
}

.overlay-shorttext-status {
  padding: 8px 0;
  font-size: 0.78rem;
}

/* ===== 検索ページ ===== */
.search-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 40px 72px;
}

.search-hero {
  margin-bottom: 28px;
}

.search-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}

.search-page-title {
  padding: 0 0 18px;
  border-bottom: 0;
}

.search-lead {
  max-width: 44rem;
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.72);
}

.search-mode {
  margin-top: 10px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.search-chat {
  background: rgba(14, 11, 9, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
}

.search-chat-log {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
}

.search-message {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-message-user {
  align-items: flex-end;
}

.search-message-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.search-bubble {
  width: min(100%, 780px);
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.search-bubble p {
  font-size: 0.75rem;
}
.search-bubble-prompt {
  padding: 0;
  border: 0;
  background: transparent;
}

.search-message-user .search-bubble {
  background: rgba(181, 36, 26, 0.2);
  border-color: rgba(181, 36, 26, 0.5);
}

.search-loading-bubble {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.search-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-top-color: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  animation: search-loading-spin 0.8s linear infinite;
}

@keyframes search-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.search-bubble p + p,
.search-bubble p + ol,
.search-bubble ol + p {
  margin-top: 12px;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 28px 24px;
}

.search-chip {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    color 0.2s;
}

.search-chip:hover {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.search-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 24px 28px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.search-input {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font: inherit;
  line-height: 1.7;
  padding: 14px 16px;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.search-submit {
  align-self: stretch;
  border: 1px solid rgba(181, 36, 26, 0.8);
  background: #b5241a;
  color: #fff;
  min-width: 120px;
  padding: 0 20px;
  font-size: 1rem;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.search-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.search-links {
  display: grid;
  gap: 30px;
  margin-top: 36px;
}

.search-link-row {
  display: grid;
  gap: 22px;
}

.search-link-row--two {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.search-link-row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.search-link-block {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.search-link-section {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.search-link-block .search-link-section {
  padding-top: 0;
  border-top: 0;
}

.search-link-heading {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.search-link-heading a {
  color: inherit;
}

.search-link-subheading {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.7;
}

.search-link-subheading a {
  color: inherit;
}

.search-link-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.search-link-list li {
  position: relative;
  padding-left: 14px;
  font-size: 0.875rem;
  line-height: 1.7;
}

.search-link-list ul {
  display: grid;
  gap: 4px;
  margin: 5px 0 2px;
  padding: 0;
  list-style: none;
}

.search-link-list ul li {
  font-size: 0.84rem;
}

.search-link-list--inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 22px;
}

.search-link-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.48);
  border-right: 1px solid rgba(255, 255, 255, 0.48);
  transform: rotate(45deg);
}

.search-link-list a {
  color: rgba(255, 255, 255, 0.82);
  transition:
    color 0.2s;
}

.search-link-list a:hover {
  color: #fff;
}

.search-recommended {
  margin-top: 36px;
}

.search-section-header {
  margin-bottom: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.search-section-title {
  margin: 0;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.65rem);
  font-weight: 400;
  line-height: 1.5;
}

.search-section-note {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  line-height: 1.7;
}

.search-recommended-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.search-recommended-card {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  align-items: start;
  margin: 0;
}

.search-recommended-card .sc-link-card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.search-recommended-card .sc-link-card-body {
  justify-content: flex-start;
}

.search-recommended-card .sc-link-card-title {
  font-size: 0.95rem;
}

.search-recommended-card .sc-link-card-description {
  font-size: 0.78rem;
}

.search-result-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 2em 0 0;
  padding: 0;
}

.search-result-card {
  list-style: decimal;
  margin-left: 1.5rem;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  transition:
    border-color 0.2s,
    background-color 0.2s,
    transform 0.2s;
}

.search-result-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.search-result-link {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.search-result-thumb {
  width: 110px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.search-result-body {
  min-width: 0;
}

.search-result-meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: 0.06em;
}

.search-result-title {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 4px;
}

.search-result-description,
.search-result-hint {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.search-result-description {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.48);
}

.search-result-hint {
  font-size: 0.84rem;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  :root {
    --card-gap: 24px;
    --postmeta-width: 180px;
    --archive-label-scale: 0.92;
  }

  .post-card {
    padding: 48px 24px 88px;
  }

  .single-wrap {
    padding: 64px 24px;
  }

  .thumb-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 32px 24px;
  }

  .term-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 28px 24px 48px;
  }
}

@media (max-width: 900px) {
  html {
    font-size: clamp(0.875rem, 0.75rem + 0.9vw, 1rem);
  }

  :root {
    --archive-label-scale: 0.82;
    --postmeta-width: 100%;
  }

  body {
    background-attachment: scroll;
  }

  .site-wrapper {
    display: block;
    margin-left: 0;
    padding-top: 72px;
  }

  .site-sidebar {
    width: 100% !important;
    height: 72px;
    position: fixed;
    top: 0;
    left: 0;
    padding: 12px 16px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(36, 32, 29, 0.96);
    border-right: 0;
    border-bottom: 1px solid #555;
    overflow: visible;
    cursor: default;
  }

  .site-sidebar:hover {
    background-color: rgba(36, 32, 29, 0.96);
  }

  .sidebar-back-logo,
  .nomber-pagination {
    display: none;
  }

  .sidebar-nav {
    display: none;
  }

  .sidebar-logo a {
    flex-direction: row;
    gap: 10px;
  }

  .sidebar-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .sidebar-logo-total {
    display: inline-flex;
    font-size: 1rem;
    margin-top: 0;
  }

  .sidebar-logo-bar {
    height: 40px;
  }

  .sidebar-logo-type {
    width: auto;
    max-width: none;
    height: 40px;
  }

  .sidebar-logo-type-desktop {
    display: none;
  }

  .sidebar-logo-type-mobile {
    display: block;
  }

  .sidebar-panel-toggle {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 42px;
    height: 42px;
    min-width: 0;
    padding: 0;
    background: none;
    border: 1px solid #fff;
    border-radius: 999px;
    box-shadow: none;
    flex-direction: column;
    gap: 0;
    margin-left: auto;
  }

  .sidebar-panel-toggle:hover,
  .sidebar-panel-toggle.is-open {
    background: none;
    box-shadow: none;
    border-color: #fff;
  }

  .menu-toggle-icon {
    width: 18px;
    height: 18px;
  }

  .menu-toggle-line {
    width: 12px;
  }

  .menu-toggle-line-top {
    transform: translate(-50%, -4px);
  }

  .menu-toggle-line-bottom {
    transform: translate(-50%, 4px);
  }

  .sidebar-panel-toggle.is-open .menu-toggle-line-top {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .sidebar-panel-toggle.is-open .menu-toggle-line-bottom {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .menu-label {
    display: none;
  }

  .overlay-menu {
    top: 72px;
    right: 0;
    left: unset !important;
    width: 100%;
    max-width: 680px;
    height: calc(100vh - 72px);
    border-left: 0;
    border-top: 1px solid #c8bfb5;
    padding: 0;
  }

  .overlay-menu:not(.is-open) {
    transform: translateY(-100%);
  }

  .overlay-menu-body {
    padding: 24px 16px 32px;
  }

  .overlay-menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .overlay-menu-dropdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .overlay-menu-dropdown .overlay-menu-item {
    gap: 5px;
    padding: 5px 7px;
  }

  .overlay-shorttext {
    position: static;
    width: auto;
    height: auto;
    padding: 1em 16px 24px;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    pointer-events: auto;
  }

  .overlay-menu:not(.is-open) .overlay-shorttext--mobile {
    display: none;
    pointer-events: none;
  }

  .overlay-menu:not(.is-open) .overlay-shorttext--mobile iframe {
    pointer-events: none;
  }

  .overlay-menu.is-open .overlay-shorttext--mobile {
    display: block;
    pointer-events: auto;
  }

  .overlay-shorttext--desktop {
    display: none;
  }

  .breadcrumbs {
    position: static;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .temporary-notice-inner {
    align-items: flex-start;
    padding: 10px 14px;
  }

  .temporary-notice-message {
    font-size: 0.75rem;
  }

  .temporary-notice-link {
    padding: 4px 10px;
    font-size: 0.72rem;
  }

  .page-back-nav {
    padding: 20px 16px 80px;
  }

  .page-back-button {
    width: 100%;
    max-width: 320px;
  }

  .breadcrumb-item {
    padding: 10px 14px;
    font-size: 0.75rem;
  }

  .page-title {
    padding: 24px 16px 18px;
    font-size: 1.4rem;
  }

  .news-list,
  .news-single-wrap {
    padding: 24px 16px 32px;
  }

  .news-card-link {
    padding: 20px 18px;
  }

  .sc-link-card {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .sc-link-card-thumb {
    width: 86px;
  }

  .sc-link-card-title {
    font-size: 0.94rem;
  }

  .sc-link-card-description {
    font-size: 0.76rem;
  }

  .news-single {
    gap: 24px;
    padding-bottom: 32px;
  }

  .news-single-title {
    font-size: 1.5rem;
  }

  .taxonomy-description {
    padding: 20px 40px;
  }

  .post-card {
    display: block;
    padding: 32px 16px 56px;
    scroll-margin-top: 88px;
  }

  .post-card-right {
    display: none;
  }

  .page-toc-mobile {
    display: block;
  }

  .page-toc {
    font-size: 0.88rem;
  }

  .post-meta {
    align-items: flex-start;
  }

  .post-images,
  .post-images-inner {
    max-width: none;
  }

  .post-meta-inner.top {
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 16px;
  }

  .post-title-wrap.top a {
    font-size: 1.25rem;
    line-height: 1.5;
  }

  .post-date-wrapper {
    flex-wrap: wrap;
    gap: 8px;
  }

  .post-date .mmdd {
    font-size: 1.5rem;
  }

  .post-single-link {
    margin-top: 0;
    padding-bottom: 24px;
    word-break: break-all;
  }

  .webclap-btn {
    max-width: 250px;
    font-size: 1rem;
    border-radius: 999px;
  }

  .single-wrap {
    padding: 24px 16px 40px;
  }

  .single-post {
    display: block;
    padding: 0;
  }

  .single-post .post-meta-single,
  .single-post .post-content {
    width: 100%;
    max-width: none;
  }

  .single-post .post-meta-single {
    position: static;
    margin-bottom: 24px;
  }

  .single-post .post-content img:not(.webclap-btn img),
  .post-images img:not(.webclap-icon) {
    margin-bottom: 16px;
  }

  .post-body {
    margin-top: 20px;
  }

  .post-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .related-posts {
    margin-top: 40px;
    padding-top: 24px;
  }

  .related-posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .thumb-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px 16px 40px;
  }

  .term-group {
    margin-bottom: 40px;
  }

  .term-group-title {
    padding: 0 16px 12px;
  }

  .term-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 24px 16px 40px;
  }

  .prevnext-pagination {
    --prevnext-icon-size: 56px;
    --prevnext-position-offset: 0.85rem;
    gap: 12px;
    padding: 32px 16px 40px;
  }

  .pn-tooltip {
    font-size: 0.95rem;
  }

  .pn-slider {
    max-width: none;
    min-width: 0;
  }

  .search-page {
    padding: 24px 16px 40px;
  }

  .search-chat-log,
  .search-suggestions,
  .search-composer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .search-composer {
    grid-template-columns: 1fr;
  }

  .search-links {
    grid-template-columns: 1fr;
  }

  .search-link-row--two,
  .search-link-row--three,
  .search-link-list--inline,
  .search-recommended-list {
    grid-template-columns: 1fr;
  }

  .search-submit {
    min-height: 52px;
  }

  .search-result-link {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .search-result-thumb {
    width: 88px;
  }

  .archive-label-wrap {
    top: auto;
    right: 12px;
    bottom: 0;
    z-index: 700;
    width: min(88px, calc(100vw - 24px));
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(181, 36, 26, 0.96);
    transform: none;
    transform-origin: bottom right;
    overflow: hidden;
    max-height: calc(100vh - 84px);
  }

  .archive-label-trigger {
    min-height: 44px;
    padding: 10px 8px;
    cursor: pointer;
  }

  .archive-label {
    padding: 0;
    font-size: 0.9rem;
    color: #fff;
  }

  .archive-label-panel {
    width: 100%;
    max-height: 0;
    padding: 0 8px;
    opacity: 0;
    overflow: hidden auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateY(8px);
    transition:
      max-height 0.24s ease,
      padding 0.24s ease,
      opacity 0.2s ease,
      transform 0.24s ease;
  }

  .archive-label-wrap.is-open .archive-label-panel {
    max-height: calc(100vh - 128px);
    padding: 0 8px 10px;
    opacity: 1;
    transform: translateY(0);
  }

  .archive-label-wrap .numble {
    width: 100%;
  }

  .archive-label-wrap .numble-body {
    width: 100%;
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
  }

  .archive-label-wrap .numble-body span {
    font-size: 2.4rem;
  }

  .archive-label-wrap .numble-sub {
    font-size: 0.72rem;
  }

  .archive-thumbs {
    width: 100%;
    gap: 6px;
    margin-top: 10px;
  }

  .archive-thumb-link {
    width: 100%;
  }

  .archive-label-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    margin-top: 8px;
    padding: 6px 0 2px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }

  .archive-label-close-icon {
    position: relative;
    width: 16px;
    height: 10px;
  }

  .archive-label-close-icon::before,
  .archive-label-close-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 10px;
    height: 1.5px;
    background: currentColor;
    border-radius: 999px;
  }

  .archive-label-close-icon::before {
    left: 0;
    transform: translateY(-50%) rotate(35deg);
    transform-origin: left center;
  }

  .archive-label-close-icon::after {
    right: 0;
    transform: translateY(-50%) rotate(-35deg);
    transform-origin: right center;
  }
}

@media (max-width: 768px) {
  :root {
    --archive-label-scale: 0.72;
  }

  .site-wrapper {
    padding-top: 64px;
  }

  .site-sidebar {
    height: 64px;
    padding: 10px 12px;
  }

  .sidebar-logo-bar {
    height: 32px;
  }

  .sidebar-logo-type {
    height: 32px;
  }

  .sidebar-logo {
    gap: 8px;
  }

  .sidebar-logo-total {
    font-size: 0.86rem;
    padding: 3px 6px;
    background-color: var(--color-accent-new);
  }

  .archive-label-wrap {
    top: auto;
    right: 12px;
    bottom: 0;
    z-index: 700;
    width: min(88px, calc(100vw - 24px));
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(181, 36, 26, 0.96);
    transform: none;
    transform-origin: bottom right;
    overflow: hidden;
    max-height: calc(100vh - 76px);
  }

  .archive-label-trigger {
    min-height: 44px;
    padding: 10px 8px;
    cursor: pointer;
  }

  .archive-label {
    padding: 0;
    font-size: 0.9rem;
    color: #fff;
  }

  .archive-label-panel {
    width: 100%;
    max-height: 0;
    padding: 0 8px;
    opacity: 0;
    overflow: hidden auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateY(8px);
    transition:
      max-height 0.24s ease,
      padding 0.24s ease,
      opacity 0.2s ease,
      transform 0.24s ease;
  }

  .archive-label-wrap.is-open .archive-label-panel {
    max-height: calc(100vh - 120px);
    padding: 0 8px 10px;
    opacity: 1;
    transform: translateY(0);
  }

  .archive-label-wrap .numble {
    width: 100%;
  }

  .archive-label-wrap .numble-body {
    width: 100%;
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
  }

  .archive-label-wrap .numble-body span {
    font-size: 2.4rem;
  }

  .archive-label-wrap .numble-sub {
    font-size: 0.72rem;
  }

  .archive-thumbs {
    width: 100%;
    gap: 6px;
    margin-top: 10px;
  }

  .archive-thumb-link {
    width: 100%;
  }

  .archive-label-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    margin-top: 8px;
    padding: 6px 0 2px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }

  .archive-label-close-icon {
    position: relative;
    width: 16px;
    height: 10px;
  }

  .archive-label-close-icon::before,
  .archive-label-close-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 10px;
    height: 1.5px;
    background: currentColor;
    border-radius: 999px;
  }

  .archive-label-close-icon::before {
    left: 0;
    transform: translateY(-50%) rotate(35deg);
    transform-origin: left center;
  }

  .archive-label-close-icon::after {
    right: 0;
    transform: translateY(-50%) rotate(-35deg);
    transform-origin: right center;
  }

  .overlay-menu {
    top: 64px;
    height: calc(100vh - 64px);
    padding: 0;
    gap: 0;
  }

  .overlay-menu-body {
    padding: 12px 12px 24px;
    gap: 10px;
  }

  .overlay-section-label {
    font-size: 0.79rem;
    color: #fff;
    padding-bottom: 6px;
  }

  .overlay-menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .overlay-menu-dropdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overlay-menu-item {
    gap: 5px;
    padding: 5px 7px;
    color: #fff;
  }

  .overlay-shorttext .shorttext-label {
    min-height: 21px;
    font-size: 0.74rem;
  }

  .overlay-shorttext .shorttext-date {
    font-size: 0.78rem;
  }

  .overlay-shorttext .shorttext-content {
    font-size: 1rem;
    line-height: 1.6;
  }

  .overlay-shorttext-status {
    font-size: 1rem;
  }

  .thumb-grid,
  .term-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-title {
    font-size: 1.2rem;
  }

  .post-title-wrap.top a {
    font-size: 1.1rem;
  }

  .post-date .year,
  .post-date .hhmm,
  .post-single-link,
  .thumb-date,
  .term-desc {
    font-size: 0.75rem;
  }

  .thumb-count,
  .term-count {
    font-size: 0.625rem;
  }

  .post-date .mmdd {
    font-size: 1.25rem;
  }

  .post-more {
    padding: 12px 14px;
  }

  .post-external-link {
    padding: 12px 14px;
  }

  .prevnext-pagination {
    padding-inline: 12px;
    padding-bottom: 60px;
  }

  .search-chat-log {
    gap: 14px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .search-suggestions {
    padding-bottom: 20px;
  }

  .search-result-link {
    grid-template-columns: 1fr;
  }

  .search-result-thumb {
    width: 100%;
    max-width: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ===== お問い合わせフォーム ===== */
.contact-form-wrap {
  max-width: 720px;
  margin-top: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form-field label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 0;
}

.contact-form-field label:hover {
  background-color: transparent;
}

.contact-required {
  font-size: 0.7rem;
  color: #e05050;
  margin-left: 4px;
}

.contact-form-field input,
.contact-form-field select,
.contact-form-field textarea {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.contact-form-field input:focus,
.contact-form-field select:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
}

.contact-form-field textarea {
  resize: vertical;
  line-height: 1.7;
}

.contact-form-actions {
  margin-top: 4px;
}

.contact-submit-btn {
  padding: 10px 32px;
  background: var(--color-accent-new);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-submit-btn:hover {
  opacity: 0.85;
}

.contact-submit-btn,
.contact-next-btn,
.contact-secondary-btn,
.contact-choice {
  min-height: 44px;
}

.contact-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-form-status {
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 0;
  border-radius: 4px;
}

.contact-form-status.is-success {
  color: #7ecf93;
}

.contact-form-status.is-error {
  color: #e05050;
}

.contact-noscript {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-noscript p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.contact-form [hidden] {
  display: none !important;
}

.contact-enhanced {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-progress {
  display: flex;
  gap: 8px;
  align-items: center;
}

.contact-progress-dot {
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition:
    background-color 0.2s ease,
    width 0.2s ease;
}

.contact-progress-dot.is-active,
.contact-progress-dot.is-complete {
  background: rgba(255, 255, 255, 0.72);
}

.contact-progress-dot.is-active {
  width: 52px;
}

.contact-slider {
  position: relative;
  min-height: 380px;
  overflow: visible;
}

.contact-step-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-step-panel:not(.is-active) {
  display: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(24px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0.24s ease;
}

.contact-step-panel.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0.24s ease;
}

.contact-illustration {
  display: none !important;
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), rgba(0, 0, 0, 0.18);
}

.contact-illustration.is-placeholder {
  display: none !important;
}

.contact-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-illustration span {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-illustration.is-placeholder::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.contact-step-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-step-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.28rem, 1.05rem + 0.6vw, 1.72rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}

.contact-step-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.contact-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-choice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.contact-choice:hover,
.contact-choice.is-selected {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.contact-detail-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.contact-next-btn,
.contact-secondary-btn {
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.contact-next-btn {
  border: none;
  background: var(--color-accent-new);
  color: #fff;
}

.contact-secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.84);
}

.contact-next-btn:hover,
.contact-secondary-btn:hover {
  opacity: 0.85;
}

@media (max-width: 720px) {
  .contact-form-wrap {
    max-width: none;
  }

  .contact-slider {
    min-height: 520px;
  }

  .contact-choice-grid {
    grid-template-columns: 1fr;
  }

  .contact-progress-dot {
    width: 28px;
  }

  .contact-progress-dot.is-active {
    width: 42px;
  }

  .contact-step-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .contact-next-btn,
  .contact-secondary-btn,
  .contact-submit-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-step-panel,
  .contact-choice,
  .contact-progress-dot {
    transition: none;
  }
}

@media screen and (min-width: 1024px) {
  .single-post .post-content p:not(:has(img)),
  .single-post .post-description,
  .single-post .post-image-description,
  .post-body,
  .taxonomy-description,
  .news-card-excerpt,
  .overlay-news-excerpt,
  .news-single-description,
  .news-single-content p,
  .shorttext-description,
  .shorttext-content p,
  .search-result-description,
  .search-result-hint,
  .contact-noscript p,
  .contact-step-note,
  .temporary-notice-message,
  .rwc-thanks-msg,
  .rwc-rating-msg,
  .rwc-msg {
    font-size: clamp(14px, 0.75rem + 0.15vw, 16px);
  }
}
