@charset "UTF-8";
/* ==========================================================================
   個別投稿専用スタイル（お知らせ・ブログ・コラム個別記事、制作実績詳細）
   Theme: アドフロンティア (ad frontier) - single.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 個別投稿メインレイアウト & コンテナ（新旧構造両対応）
   -------------------------------------------------------------------------- */
body.single,
body.single #main,
.single-main {
  background-color: #ffffff;
  min-height: 60vh;
}

.single-section,
.subpage-section {
  width: 100%;
  background-color: #ffffff;
  padding-block: clamp(72px, 7vw, 100px) clamp(64px, 6vw, 96px);
  position: relative;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .single-section,
  .subpage-section {
    padding-block: clamp(48px, 6vw, 64px) clamp(48px, 6vw, 64px);
  }
}

body.single #primary,
body.single #content,
.single-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

@media (max-width: 1320px) {
  body.single #primary,
  body.single #content,
  .single-container {
    padding-left: clamp(16px, 3vw, 24px);
    padding-right: clamp(16px, 3vw, 24px);
  }
}

@media (max-width: 768px) {
  body.single #primary,
  body.single #content,
  .single-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.single-content-wrapper {
  width: 100%;
}

/* --------------------------------------------------------------------------
   2. 記事カードコンテナ（新旧構造両対応）
   -------------------------------------------------------------------------- */
.single-article,
.single-works-article,
body.single .entry-content.box1000,
body.single .entry-content.base {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
  margin: 0 auto 48px;
  max-width: 100%;
  width: 100%;
}

/* --------------------------------------------------------------------------
   3. 記事ヘッダー・カテゴリー・メタ情報
   -------------------------------------------------------------------------- */
.single-header {
  border-bottom: 1px solid var(--color-border, #E2E8F0);
  padding-bottom: 28px;
  margin-bottom: 36px;
}

.single-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.single-category-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--color-main, #15308F);
  border-left: 3px solid #EA580C;
  padding: 4px 14px;
  border-radius: 0;
  text-decoration: none;
  letter-spacing: 0.03em;
  box-shadow: none;
  transition: all var(--transition-fast, 0.2s);
}

.single-category-badge:hover {
  transform: translateY(-2px);
  background: #1E40AF;
  color: #FFFFFF;
}

.single-title {
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: var(--color-text, #1E293B);
  line-height: 1.45;
  letter-spacing: 0.02em;
  margin: 0 0 20px 0;
}

.single-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.single-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-accent, 'Montserrat', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted, #64748B);
}

.single-date svg {
  color: var(--color-sub, #2E8FD5);
  flex-shrink: 0;
}

.single-update-date {
  color: #059669;
}

.single-update-date svg {
  color: #059669;
}

/* 旧形式の日付（.article-date） */
.article-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px dashed var(--color-border, #E2E8F0);
  font-size: 0.875rem;
  color: var(--color-text-muted, #64748B);
  font-style: normal;
}

.article-date em {
  font-style: normal;
  font-family: var(--font-accent, 'Montserrat', sans-serif);
  font-weight: 600;
}

.article-date time {
  color: var(--color-text, #1E293B);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. アイキャッチ画像
   -------------------------------------------------------------------------- */
.single-eyecatch {
  margin-bottom: 40px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border-top: 3px solid var(--color-main, #15308F);
  background-color: var(--color-bg-sub, #F8FAFC);
}

.single-eyecatch-img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   5. 記事本文スタイル (黄金比・モジュラースケール・垂直リズム設計)
   -------------------------------------------------------------------------- */
.entry-content,
.single-body.entry-content {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text, #334155);
  letter-spacing: 0.03em;
  word-break: break-word;
}

/* ==========================================================================
   見出し H2 - 【ユーザー承認済】グラデーション左バー & フェードアンダーライン
   ========================================================================== */
.entry-content h2,
.single-body.entry-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.015em;
  line-height: 1.4;
  margin: clamp(48px, 6vw, 80px) 0 30px;
  padding: 0 0 14px 0;
  position: relative;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 0;
  word-break: break-word;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* 左アクセントバー（文字の高さに完全同期） */
.entry-content h2::before,
.single-body.entry-content h2::before {
  content: "";
  display: block;
  width: 4px;
  height: 0.95em;
  margin-top: 0.2em;
  background: linear-gradient(180deg, var(--color-main, #15308F) 0%, var(--color-sub, #2E8FD5) 100%);
  border-radius: 2px;
  flex-shrink: 0;
}

/* 下部ヘアライン（右に柔らかく溶け込むグラデーション） */
.entry-content h2::after,
.single-body.entry-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(21, 48, 143, 0.25) 0%, rgba(226, 232, 240, 0.8) 40%, rgba(226, 232, 240, 0) 100%);
}

.entry-content h2:first-child,
.single-body.entry-content h2:first-child {
  margin-top: 0;
}

/* ==========================================================================
   見出し H3 - 下線・斜線を排した、上質で軽やかなソフトフェードハイライト
   ========================================================================== */
.entry-content h3,
.single-body.entry-content h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.36rem);
  font-weight: 750;
  color: #0F172A;
  letter-spacing: -0.015em;
  line-height: 1.45;
  margin: clamp(44px, 5vw, 60px) 0 20px;
  padding: 8px 18px;
  background: linear-gradient(90deg, #F0F4FA 0%, rgba(240, 244, 250, 0.4) 70%, transparent 100%);
  border-radius: 0;
  border: none;
  border-left: 3px solid var(--color-main, #15308F);
  position: relative;
  display: block;
}

.entry-content h3::before,
.entry-content h3::after,
.single-body.entry-content h3::before,
.single-body.entry-content h3::after {
  display: none;
}

/* ==========================================================================
   見出し H4 - 控えめでスマートなサブタイトル
   ========================================================================== */
.entry-content h4,
.single-body.entry-content h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1E293B;
  letter-spacing: -0.01em;
  margin: clamp(28px, 3vw, 36px) 0 10px;
  padding: 0;
  border: none;
  line-height: 1.55;
  background: none;
}

.entry-content h4::before,
.entry-content h4::after,
.single-body.entry-content h4::before,
.single-body.entry-content h4::after {
  display: none;
}

/* 見出し H5, H6 */
.entry-content h5,
.entry-content h6,
.single-body.entry-content h5,
.single-body.entry-content h6 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
  margin: 24px 0 8px;
  padding: 0;
  border: none;
  line-height: 1.5;
}

/* 段落 - 黄金比の行間とスペース設計 */
.entry-content p,
.single-body.entry-content p {
  margin-bottom: clamp(24px, 2.8vw, 32px);
  line-height: 1.95;
  color: var(--color-text, #334155);
}

.entry-content p:last-child,
.single-body.entry-content p:last-child {
  margin-bottom: 0;
}

/* リード文 */
.entry-content .lead,
.entry-content p.lead,
.single-body.entry-content .lead,
.single-body.entry-content p.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  line-height: 2.0;
  color: #1E293B;
  font-weight: 500;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid #F1F5F9;
}

/* ==========================================================================
   リスト UL / OL - 幾何学的インジケーター & 均整の取れたインデント
   ========================================================================== */
.entry-content ul,
.entry-content ol,
.single-body.entry-content ul,
.single-body.entry-content ol {
  margin: 0 0 32px 0;
  padding-left: 0;
  list-style: none;
}

.entry-content ul li,
.single-body.entry-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.85;
}
.entry-content ul li::before,
.single-body.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background-color: var(--color-main, #15308F);
  border-radius: 0;
  box-shadow: none;
}

.entry-content ol,
.single-body.entry-content ol {
  counter-reset: custom-ol-counter-single;
}
.entry-content ol li,
.single-body.entry-content ol li {
  counter-increment: custom-ol-counter-single;
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  line-height: 1.85;
}
.entry-content ol li::before,
.single-body.entry-content ol li::before {
  content: counter(custom-ol-counter-single);
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 22px;
  height: 22px;
  background-color: var(--color-main, #15308F);
  border: none;
  border-radius: 0;
  color: #FFFFFF;
  font-family: var(--font-accent, 'Oswald', 'Montserrat', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ==========================================================================
   定義リスト DL / DT / DD
   ========================================================================== */
.entry-content dl,
.single-body.entry-content dl {
  margin: 36px 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.entry-content dt,
.single-body.entry-content dt {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--color-main, #15308F);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: #EFF4FF;
  border: none;
  border-left: 3px solid var(--color-main, #15308F);
  border-radius: 0;
  margin: 0 0 10px 0;
  line-height: 1.4;
  width: fit-content;
  letter-spacing: 0.02em;
}

.entry-content dt::before,
.single-body.entry-content dt::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #EA580C;
  border-radius: 0;
  flex-shrink: 0;
}

.entry-content dd,
.single-body.entry-content dd {
  margin: 0;
  padding: 0 4px 0 8px;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-text, #334155);
}

/* ==========================================================================
   引用 blockquote
   ========================================================================== */
.entry-content blockquote,
.single-body.entry-content blockquote {
  position: relative;
  background: #F8FAFC;
  border: none;
  border-left: 4px solid var(--color-main, #15308F);
  padding: 24px 28px;
  margin: 36px 0;
  border-radius: 0;
  color: #475569;
  font-style: normal;
  box-shadow: none;
}

.entry-content blockquote::before,
.single-body.entry-content blockquote::before {
  content: "“";
  position: absolute;
  right: 20px;
  bottom: -15px;
  font-size: 4.5rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(21, 48, 143, 0.06);
  pointer-events: none;
}

.entry-content blockquote p,
.single-body.entry-content blockquote p {
  margin-bottom: 12px;
  line-height: 1.85;
}

.entry-content blockquote p:last-child,
.single-body.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

/* 強調 strong / em / mark */
.entry-content strong,
.single-body.entry-content strong {
  font-weight: 700;
  color: var(--color-text, #0F172A);
}

.entry-content em,
.single-body.entry-content em {
  font-style: italic;
  color: var(--color-text, #334155);
}

/* マーカー強調 (mark) */
.entry-content mark,
.single-body.entry-content mark {
  background: linear-gradient(transparent 65%, rgba(244, 125, 32, 0.22) 65%);
  padding: 0 4px;
  font-weight: 700;
  border-radius: 2px;
}

/* 区切り線 (HR) */
.entry-content hr,
.single-body.entry-content hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-border, #E2E8F0) 15%, var(--color-border, #E2E8F0) 85%, transparent 100%);
  margin: clamp(48px, 5vw, 64px) 0;
}

/* ==========================================================================
   テーブル (wp-block-table / table) - プロフェッショナル・デザイン
   ========================================================================== */
.entry-content table,
.single-body.entry-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin: 24px 0 32px;
  font-size: 0.95rem;
  background: transparent;
  border: none !important;
  border-top: 1px solid #E2E8F0 !important;
  border-bottom: 1px solid #E2E8F0 !important;
  border-radius: 0 !important;
  overflow: visible;
  box-shadow: none;
}

.wp-block-table {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0 32px;
  -webkit-overflow-scrolling: touch;
}

/* ラッパー内のtableはマージン0にして二重余白を完全防止 */
.wp-block-table table {
  margin: 0 !important;
}

/* 見出しの直後にテーブルやブロックが来た際の上質でゆとりのあるスペーシング */
.entry-content h2 + table,
.entry-content h2 + .wp-block-table,
.single-body.entry-content h2 + table,
.single-body.entry-content h2 + .wp-block-table,
.entry-content h3 + table,
.entry-content h3 + .wp-block-table,
.single-body.entry-content h3 + table,
.single-body.entry-content h3 + .wp-block-table,
.entry-content h4 + table,
.entry-content h4 + .wp-block-table,
.single-body.entry-content h4 + table,
.single-body.entry-content h4 + .wp-block-table {
  margin-top: 20px !important;
}

.entry-content h2 + .wp-block-media-text,
.single-body.entry-content h2 + .wp-block-media-text,
.entry-content h3 + .wp-block-media-text,
.single-body.entry-content h3 + .wp-block-media-text,
.entry-content h4 + .wp-block-media-text,
.single-body.entry-content h4 + .wp-block-media-text {
  margin-top: 24px !important;
}

.entry-content thead th,
.single-body.entry-content thead th,
.wp-block-table thead th {
  background: var(--color-main, #15308F) !important;
  color: #ffffff !important;
  font-weight: 700;
  padding: 16px 22px;
  text-align: left;
  border-bottom: 2px solid var(--color-main-dark, #0E2060);
  letter-spacing: 0.02em;
}

.entry-content tr,
.single-body.entry-content tr,
.wp-block-table tr {
  transition: background-color var(--transition-fast, 0.2s);
}

.entry-content tr:hover,
.single-body.entry-content tr:hover,
.wp-block-table tr:hover {
  background-color: #F8FAFD;
}

.entry-content th,
.entry-content td,
.single-body.entry-content th,
.single-body.entry-content td,
.wp-block-table th,
.wp-block-table td {
  padding: 16px 22px !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid var(--color-border, #E2E8F0) !important;
  text-align: left;
  line-height: 1.8;
  vertical-align: top;
}

/* 1列目（見出し・項目名）のスマートなスタイリング */
.entry-content th,
.single-body.entry-content th,
.wp-block-table th,
.entry-content tbody tr > td:first-child:not(:last-child),
.single-body.entry-content tbody tr > td:first-child:not(:last-child),
.wp-block-table tbody tr > td:first-child:not(:last-child) {
  background: var(--color-bg-sub, #F8FAFC);
  color: var(--color-main, #15308F) !important;
  font-weight: 700;
  width: 28%;
  min-width: 140px;
  letter-spacing: 0.02em;
  border-right: 1px solid var(--color-border, #E2E8F0) !important;
}

.entry-content td,
.single-body.entry-content td,
.wp-block-table td {
  color: var(--color-text, #2D3748);
}

.entry-content tr:last-child th,
.entry-content tr:last-child td,
.single-body.entry-content tr:last-child th,
.single-body.entry-content tr:last-child td,
.wp-block-table tr:last-child th,
.wp-block-table tr:last-child td {
  border-bottom: none !important;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0 32px;
  -webkit-overflow-scrolling: touch;
}

/* 料金詳細テーブル (price-detail-table) */
.price-detail-table {
  width: 100%;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  text-align: left;
  min-width: 600px;
  background: transparent;
  border: none !important;
  border-top: 2px solid var(--color-main, #15308F) !important;
  border-bottom: 2px solid var(--color-main, #15308F) !important;
  border-radius: 0 !important;
  overflow: visible;
  box-shadow: none;
}
.price-detail-table th,
.price-detail-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border, #E2E8F0);
  vertical-align: top;
}
.price-detail-table th {
  background: var(--color-bg-sub, #F8FAFC);
  color: var(--color-main, #15308F);
  font-weight: 700;
  width: 28%;
  border-right: 1px solid var(--color-border, #E2E8F0);
}
.price-detail-table tr:last-child th,
.price-detail-table tr:last-child td {
  border-bottom: none;
}

/* メディアとテキスト (wp-block-media-text) */
.entry-content .wp-block-media-text,
.single-body.entry-content .wp-block-media-text {
  display: grid;
  grid-template-columns: 50% 1fr;
  grid-template-rows: auto;
  align-items: center;
  gap: clamp(24px, 4vw, 44px);
  margin: clamp(36px, 4.5vw, 56px) 0;
}

.entry-content .wp-block-media-text.has-media-on-the-right,
.single-body.entry-content .wp-block-media-text.has-media-on-the-right {
  grid-template-columns: 1fr 50%;
}

.entry-content .wp-block-media-text__media,
.single-body.entry-content .wp-block-media-text__media {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.entry-content .wp-block-media-text__media img,
.single-body.entry-content .wp-block-media-text__media img {
  width: 100%;
  height: 100%;
  max-width: unset;
  vertical-align: middle;
  object-fit: cover;
  display: block;
}

.entry-content .wp-block-media-text__content,
.single-body.entry-content .wp-block-media-text__content {
  padding: 0;
  word-break: break-word;
}

.entry-content .wp-block-media-text__content p:last-child,
.single-body.entry-content .wp-block-media-text__content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .entry-content .wp-block-media-text.is-stacked-on-mobile,
  .single-body.entry-content .wp-block-media-text.is-stacked-on-mobile {
    grid-template-columns: 100% !important;
    gap: 20px;
  }
}

/* カラム (wp-block-columns) */
.entry-content .wp-block-columns,
.single-body.entry-content .wp-block-columns {
  display: flex;
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: clamp(20px, 3.5vw, 36px);
  margin: clamp(36px, 4.5vw, 56px) 0;
}

.entry-content .wp-block-column,
.single-body.entry-content .wp-block-column {
  flex-grow: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 781px) {
  .entry-content .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column,
  .single-body.entry-content .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
    margin-bottom: 16px;
  }
}

/* 画像 & キャプション */
.entry-content img,
.single-body.entry-content img,
.entry-content .wp-block-image img,
.single-body.entry-content .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  margin: clamp(24px, 3.5vw, 40px) auto;
  display: block;
}

.entry-content figure,
.single-body.entry-content figure {
  margin: clamp(28px, 3.5vw, 44px) 0;
  text-align: center;
}

.entry-content figcaption,
.single-body.entry-content figcaption {
  font-size: 0.85rem;
  color: var(--color-text-muted, #64748B);
  margin-top: 10px;
  text-align: center;
  line-height: 1.6;
}

/* ボタン (wp-block-button) */
.entry-content .wp-block-buttons,
.single-body.entry-content .wp-block-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: clamp(32px, 4vw, 48px) 0;
}

.entry-content .wp-block-button__link,
.single-body.entry-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff !important;
  background: var(--color-main, #15308F);
  border-bottom: 3px solid #0E2060;
  border-radius: 0;
  text-decoration: none !important;
  box-shadow: none;
  transition: all var(--transition-fast, 0.25s) ease;
  letter-spacing: 0.03em;
}

.entry-content .wp-block-button__link:hover,
.single-body.entry-content .wp-block-button__link:hover {
  transform: translateY(-2px);
  background: #1E40AF;
  color: #ffffff !important;
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link,
.single-body.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 2px solid var(--color-main, #15308F) !important;
  color: var(--color-main, #15308F) !important;
  box-shadow: none !important;
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover,
.single-body.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--color-main, #15308F) !important;
  color: #ffffff !important;
}

/* プルクォート (wp-block-pullquote) */
.entry-content .wp-block-pullquote,
.single-body.entry-content .wp-block-pullquote {
  padding: clamp(28px, 4vw, 44px);
  margin: clamp(36px, 4.5vw, 56px) 0;
  border-top: 2px solid var(--color-main, #15308F);
  border-bottom: 2px solid var(--color-main, #15308F);
  background: #F8FAFD;
  border-radius: 0;
  text-align: center;
}

.entry-content .wp-block-pullquote blockquote p,
.single-body.entry-content .wp-block-pullquote blockquote p {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.8;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 12px;
}

.entry-content .wp-block-pullquote cite,
.single-body.entry-content .wp-block-pullquote cite {
  font-size: 0.875rem;
  color: var(--color-text-muted, #64748B);
  font-style: normal;
}

/* リンク */
.entry-content a,
.single-body.entry-content a {
  color: var(--color-sub, #2E8FD5);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: all var(--transition-fast, 0.2s);
}

.entry-content a:hover,
.single-body.entry-content a:hover {
  color: var(--color-main, #15308F);
  text-decoration-color: var(--color-main, #15308F);
}

/* 汎用ポイント・案内ボックス */
.entry-content .point-box,
.entry-content .info-box,
.single-body.entry-content .point-box,
.single-body.entry-content .info-box {
  background: #F8FAFD;
  border: none;
  border-left: 4px solid var(--color-main, #15308F);
  border-radius: 0;
  padding: 24px 28px;
  margin: 36px 0;
  box-shadow: none;
  position: relative;
}

/* ==========================================================================
   目次プラグイン（Easy Table of Contents / TOC+ 等）専用スタイル
   ========================================================================== */
#ez-toc-container,
.ez-toc-v2_0_88,
.ez-toc-widget-container,
.toc_container,
.rtoc-wrapper {
  background: var(--color-bg-sub, #F8FAFC) !important;
  border: none !important;
  border-top: 3px solid var(--color-main, #15308F) !important;
  border-bottom: 1px solid var(--color-border-dark, #CBD5E1) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: clamp(20px, 3.5vw, 28px) !important;
  margin: clamp(28px, 4vw, 40px) 0 !important;
  width: auto !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 目次タイトルヘッダー */
#ez-toc-container .ez-toc-title-container,
.toc_container .toc_title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid var(--color-border, #E2E8F0) !important;
  padding-bottom: 12px !important;
  margin-bottom: 16px !important;
  gap: 12px !important;
}

#ez-toc-container .ez-toc-title,
.toc_container .toc_title {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: var(--color-main, #15308F) !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  line-height: 1.4 !important;
}

#ez-toc-container .ez-toc-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1em;
  background: linear-gradient(180deg, var(--color-main, #15308F) 0%, var(--color-sub, #2E8FD5) 100%);
  border-radius: 2px;
}

#ez-toc-container .ez-toc-title-toggle a {
  color: var(--color-text-muted, #64748B) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: color var(--transition-fast, 0.2s) !important;
}

#ez-toc-container .ez-toc-title-toggle a:hover {
  color: var(--color-main, #15308F) !important;
}

/* 目次内部リストの装飾リセット（本文リストマーク ● の二重被りを完全解消） */
#ez-toc-container ul,
#ez-toc-container ol,
.ez-toc-widget-container ul,
.ez-toc-widget-container ol,
.toc_container ul,
.toc_container ol,
.rtoc-wrapper ul,
.rtoc-wrapper ol,
.entry-content #ez-toc-container ul,
.entry-content #ez-toc-container ol,
.single-body #ez-toc-container ul,
.single-body #ez-toc-container ol {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#ez-toc-container ul li,
#ez-toc-container ol li,
.ez-toc-widget-container ul li,
.ez-toc-widget-container ol li,
.toc_container ul li,
.toc_container ol li,
.rtoc-wrapper ul li,
.rtoc-wrapper ol li,
.entry-content #ez-toc-container li,
.single-body #ez-toc-container li {
  padding-left: 0 !important;
  margin-bottom: 8px !important;
  line-height: 1.7 !important;
  position: static !important;
}

/* 本文用疑似要素（::before の ● やカウンターバッジ）を完全に非表示化 */
#ez-toc-container li::before,
#ez-toc-container ul li::before,
#ez-toc-container ol li::before,
.ez-toc-widget-container li::before,
.toc_container li::before,
.rtoc-wrapper li::before,
.entry-content #ez-toc-container li::before,
.single-body #ez-toc-container li::before {
  content: none !important;
  display: none !important;
}

#ez-toc-container li::after,
#ez-toc-container ul li::after,
#ez-toc-container ol li::after,
.entry-content #ez-toc-container li::after,
.single-body #ez-toc-container li::after {
  content: none !important;
  display: none !important;
}

/* 目次リンクテキスト */
#ez-toc-container a,
.toc_container a,
.rtoc-wrapper a {
  color: var(--color-text, #334155) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  transition: all var(--transition-fast, 0.2s) !important;
  display: inline !important;
}

#ez-toc-container a:hover,
.toc_container a:hover,
.rtoc-wrapper a:hover {
  color: var(--color-sub, #2E8FD5) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* カウンター・数字（プラグイン標準の番号） */
#ez-toc-container .ez-toc-counter {
  color: var(--color-main, #15308F) !important;
  font-weight: 700 !important;
  margin-right: 6px !important;
}

/* 下位階層（H3, H4）のインデント */
#ez-toc-container ul.ez-toc-list-level-3,
#ez-toc-container ul.ez-toc-list-level-4,
#ez-toc-container ul.ez-toc-list-level-5,
#ez-toc-container ul.ez-toc-list-level-6,
.toc_container ul ul {
  margin: 6px 0 6px 18px !important;
  padding-left: 0 !important;
}

#ez-toc-container ul.ez-toc-list-level-3 li a,
#ez-toc-container ul.ez-toc-list-level-4 li a,
.toc_container ul ul li a {
  font-size: 0.9rem !important;
  color: var(--color-text-muted, #475569) !important;
  font-weight: 500 !important;
}

/* --------------------------------------------------------------------------
   6. ページ分割リンク (page-links)
   -------------------------------------------------------------------------- */
.page-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 36px 0 20px;
  padding: 20px 0;
  border-top: 1px dashed var(--color-border, #E2E8F0);
  border-bottom: 1px dashed var(--color-border, #E2E8F0);
}

.page-links-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-muted, #64748B);
}

.page-links .page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 0;
  border: none;
  border-top: 2px solid #CBD5E1;
  border-bottom: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: var(--color-text, #2D3748);
  font-family: var(--font-accent, 'Oswald', 'Montserrat', sans-serif);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-fast, 0.2s);
}

.page-links a .page-number:hover {
  border-top-color: var(--color-main, #15308F);
  color: var(--color-main, #15308F);
  background: #EFF4FF;
}

/* --------------------------------------------------------------------------
   7. タグ一覧 (single-tags)
   -------------------------------------------------------------------------- */
.single-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border, #E2E8F0);
}

.single-tags-label {
  font-family: var(--font-accent, 'Oswald', 'Montserrat', sans-serif);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-text-muted, #64748B);
  margin-right: 4px;
}

.single-tag-chip {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  background: #F1F5F9;
  border: none;
  padding: 4px 12px;
  border-radius: 0;
  text-decoration: none;
  transition: all var(--transition-fast, 0.2s);
}

.single-tag-chip:hover {
  background: #EFF4FF;
  color: var(--color-main, #15308F);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   8. 前後記事ナビゲーション（新構造 .single-post-nav & 旧構造 #prev_next 両対応）
   -------------------------------------------------------------------------- */
/* 新形式ナビゲーション */
.single-post-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--color-border, #E2E8F0);
}

.post-nav-col {
  display: flex;
}

.post-nav-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 16px 20px;
  border-radius: 0;
  border: none;
  background: #F8FAFC;
  text-decoration: none;
  width: 100%;
  box-shadow: none;
  transition: all var(--transition-fast, 0.2s) ease;
  box-sizing: border-box;
}

.post-nav-card:hover {
  background: #EFF4FF;
  box-shadow: none;
  transform: translateY(-2px);
}

.nav-direction-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-sub, #2E8FD5);
  letter-spacing: 0.04em;
}

.prev-card:hover .nav-direction-label svg {
  transform: translateX(-3px);
}

.next-card:hover .nav-direction-label svg {
  transform: translateX(3px);
}

.nav-direction-label svg {
  transition: transform var(--transition-fast, 0.2s);
}

.next-card .nav-direction-label {
  justify-content: flex-end;
}

.nav-post-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text, #1E293B);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast, 0.2s);
}

.next-card .nav-post-title {
  text-align: right;
}

.post-nav-card:hover .nav-post-title {
  color: var(--color-main, #15308F);
}

/* 一覧へ戻るボタン（中央） */
.post-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-nav-archive-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 0;
  border: none;
  background: var(--color-bg-sub, #F8FAFC);
  color: var(--color-text, #2D3748);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transition: all var(--transition-fast, 0.2s);
}

.post-nav-archive-btn svg {
  color: var(--color-sub, #2E8FD5);
  transition: transform var(--transition-fast, 0.2s);
}

.post-nav-archive-btn:hover {
  background: var(--color-main, #15308F);
  color: #FFFFFF;
  box-shadow: none;
  transform: translateY(-2px);
}

.post-nav-archive-btn:hover svg {
  color: #FFFFFF;
  transform: rotate(90deg);
}

/* 旧形式前後ナビゲーション（#prev_next） */
#prev_next {
  max-width: 1280px;
  margin: 32px auto 0;
  width: 100%;
}

#prev_next ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#prev_next ul li {
  background: #F8FAFC;
  border: none;
  border-radius: 0;
  padding: 16px 20px;
  box-shadow: none;
  transition: all var(--transition-fast, 0.2s);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#prev_next ul li:hover {
  background: #EFF4FF;
  box-shadow: none;
  transform: translateY(-2px);
}

#prev_next #prev_title,
#prev_next #next_title {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

#prev_next #prev_title a,
#prev_next #next_title a {
  color: var(--color-sub, #2E8FD5);
  text-decoration: none;
}

#prev_next ul li p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#prev_next ul li p a {
  color: var(--color-text, #1E293B);
  text-decoration: none;
  transition: color var(--transition-fast, 0.2s);
}

#prev_next ul li:hover p a {
  color: var(--color-main, #15308F);
}

#prev_next ul li.bktop a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-text-muted, #64748B);
  text-decoration: none;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   9. 制作実績個別詳細 (single-works.php - メイン画像・スペック表・ページリスト)
   -------------------------------------------------------------------------- */

/* メインビジュアルエリア */
.works-detail-hero,
#works_detail01 {
  margin-bottom: 48px;
  text-align: center;
}

.works-detail-client-title,
#works_detail01 h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 800;
  color: var(--color-main, #15308F);
  margin: 0 0 28px 0;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.works-detail-image-frame,
#works_detail01 picture,
#works_detail01 > img {
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: none;
  background-color: var(--color-bg-sub, #F8FAFC);
  display: block;
  margin: 0 auto;
}

.works-detail-main-img,
#works_detail01 img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.works-detail-noimg {
  border-radius: 0;
  overflow: hidden;
  border: none;
}

/* ==========================================================================
   制作実績詳細（single-works.php）専用 見出しスタイル - 【ユーザー承認済】
   ========================================================================== */

/* セクションタイトル & 制作実績本文 H2 大見出し */
.single-works-article .works-detail-section-title,
.single-works-main .works-detail-section-title,
.works-detail-section-title,
#works_detail02 h2,
#works_detail03 h2,
.works-detail-body h2,
.single-works-article .entry-content h2,
.single-works-main .entry-content h2,
body.single-works .entry-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.015em;
  line-height: 1.4;
  margin: clamp(48px, 6vw, 80px) 0 30px;
  padding: 0 0 14px 0;
  position: relative;
  background: none !important;
  border: none !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 0 !important;
  word-break: break-word;
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
}

/* 左アクセントバー（文字の高さに完全同期） */
.single-works-article .works-detail-section-title::before,
.single-works-main .works-detail-section-title::before,
.works-detail-section-title::before,
#works_detail02 h2::before,
#works_detail03 h2::before,
.works-detail-body h2::before,
.single-works-article .entry-content h2::before,
.single-works-main .entry-content h2::before,
body.single-works .entry-content h2::before {
  content: "" !important;
  display: block !important;
  width: 4px;
  height: 0.95em;
  margin-top: 0.2em;
  background: linear-gradient(180deg, var(--color-main, #15308F) 0%, var(--color-sub, #2E8FD5) 100%) !important;
  border-radius: 2px;
  flex-shrink: 0;
}

/* 下部ヘアライン（右に柔らかく溶け込むグラデーション） */
.single-works-article .works-detail-section-title::after,
.single-works-main .works-detail-section-title::after,
.works-detail-section-title::after,
#works_detail02 h2::after,
#works_detail03 h2::after,
.works-detail-body h2::after,
.single-works-article .entry-content h2::after,
.single-works-main .entry-content h2::after,
body.single-works .entry-content h2::after {
  content: "" !important;
  position: absolute !important;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(21, 48, 143, 0.25) 0%, rgba(226, 232, 240, 0.8) 40%, rgba(226, 232, 240, 0) 100%) !important;
}

/* H3 中見出し（制作実績本文） - 下線・斜線を排したソフトフェードハイライト */
.works-detail-body h3,
.single-works-article .entry-content h3,
.single-works-main .entry-content h3,
body.single-works .entry-content h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.36rem);
  font-weight: 750;
  color: #0F172A;
  letter-spacing: -0.015em;
  line-height: 1.45;
  margin: clamp(44px, 5vw, 60px) 0 20px;
  padding: 8px 18px;
  background: linear-gradient(90deg, #F0F4FA 0%, rgba(240, 244, 250, 0.4) 70%, transparent 100%) !important;
  border-radius: 0;
  border: none !important;
  border-left: 3px solid var(--color-main, #15308F) !important;
  position: relative;
  display: block;
}

.works-detail-body h3::before,
.works-detail-body h3::after,
.single-works-article .entry-content h3::before,
.single-works-article .entry-content h3::after,
.single-works-main .entry-content h3::before,
.single-works-main .entry-content h3::after,
body.single-works .entry-content h3::before,
body.single-works .entry-content h3::after {
  display: none !important;
}

/* H4 小見出し（制作実績本文） - 控えめでスマートなサブタイトル */
.works-detail-body h4,
.single-works-article .entry-content h4,
.single-works-main .entry-content h4,
body.single-works .entry-content h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1E293B;
  letter-spacing: -0.01em;
  margin: clamp(28px, 3vw, 36px) 0 10px;
  padding: 0;
  border: none !important;
  line-height: 1.55;
  background: none !important;
}

.works-detail-body h4::before,
.works-detail-body h4::after,
.single-works-article .entry-content h4::before,
.single-works-article .entry-content h4::after,
.single-works-main .entry-content h4::before,
.single-works-main .entry-content h4::after,
body.single-works .entry-content h4::before,
body.single-works .entry-content h4::after {
  display: none !important;
}

/* H5, H6（制作実績本文） */
.works-detail-body h5,
.works-detail-body h6,
.single-works-article .entry-content h5,
.single-works-article .entry-content h6,
.single-works-main .entry-content h5,
.single-works-main .entry-content h6,
body.single-works .entry-content h5,
body.single-works .entry-content h6 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
  margin: 24px 0 8px;
  padding: 0;
  border: none;
  line-height: 1.5;
}

/* 制作詳細スペック表 */
.works-spec-table-wrap,
#works_detail02 figure {
  margin: 0 0 40px 0;
  border-radius: 0;
  overflow: visible;
  border: none;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: none;
}

.works-spec-table,
#works_detail02 table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: #FFFFFF;
}

.works-spec-table th,
.works-spec-table td,
#works_detail02 th,
#works_detail02 td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--color-border, #E2E8F0);
  font-size: 0.95rem;
  line-height: 1.7;
}

.works-spec-table tr:last-child th,
.works-spec-table tr:last-child td,
#works_detail02 tr:last-child th,
#works_detail02 tr:last-child td {
  border-bottom: none;
}

.works-spec-table th,
#works_detail02 th {
  width: 180px;
  min-width: 140px;
  background-color: var(--color-sub-light, #F4F8FD);
  color: var(--color-main, #15308F);
  font-weight: 700;
  text-align: left;
  vertical-align: top;
}

.works-spec-table td,
#works_detail02 td {
  color: var(--color-text, #334155);
  background: #FFFFFF;
  vertical-align: middle;
}

/* サイトURL外部リンク */
.works-spec-url-link,
#works_detail02 td a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-sub, #2E8FD5);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
  transition: all var(--transition-fast, 0.2s);
}

.works-spec-url-link svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast, 0.2s);
}

.works-spec-url-link:hover,
#works_detail02 td a:hover {
  color: var(--color-main, #15308F);
  text-decoration-color: var(--color-main, #15308F);
}

.works-spec-url-link:hover svg {
  transform: translate(2px, -2px);
}

.works-spec-url-closed {
  color: var(--color-text-muted, #64748B);
  word-break: break-all;
}

/* 公開状態バッジ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-badge.status-open {
  background-color: #ECFDF5;
  color: #059669;
  border: none;
}

.status-badge.status-open::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 0;
  background-color: #059669;
}

.status-badge.status-closed {
  background-color: #F1F5F9;
  color: #64748B;
  border: none;
}

/* プランチェックボックス出力バッジ */
.checkbox-output {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.checkbox-output li {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  box-shadow: none;
}

.checkbox-output .checkbox-item-01 { background-color: #15308F; }
.checkbox-output .checkbox-item-02 { background-color: #2E8FD5; }
.checkbox-output .checkbox-item-03 { background-color: #059669; }
.checkbox-output .checkbox-item-04 { background-color: #7E22CE; }
.checkbox-output .checkbox-item-05 { background-color: #EA580C; }

/* ページリスト（#works_detail03） - 外枠セクション */
.works-detail-sitemap-section,
#works_detail03 {
  margin-top: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 48px;
}

/* サイトマップ内部コンテンツ（div.works-sitemap-content のみに背景・枠・パディングを適用） */
div.works-sitemap-content,
.works-sitemap-content {
  background: var(--color-bg-sub, #F8FAFC);
  border: none;
  border-top: 3px solid var(--color-main, #15308F);
  border-bottom: 1px solid var(--color-border-dark, #CBD5E1);
  border-radius: 0;
  padding: clamp(20px, 3.5vw, 32px);
  line-height: 1.8;
  font-size: 0.95rem;
  color: var(--color-text, #334155);
}

/* 内部リストのリセット（第1階層） */
.works-sitemap-content > ul,
.works-sitemap-content .menu-sp_nav-1-container > ul,
.works-sitemap-content > ul.menu {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  list-style: none !important;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 第1階層の各項目 */
.works-sitemap-content > ul > li,
#works_detail03 > ul > li,
.works-sitemap-content ul.menu > li,
#works_detail03 ul.menu > li {
  position: relative;
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-border, #E2E8F0);
  transition: background-color var(--transition-fast, 0.2s);
}

.works-sitemap-content > ul > li:last-child,
#works_detail03 > ul > li:last-child,
.works-sitemap-content ul.menu > li:last-child,
#works_detail03 ul.menu > li:last-child {
  border-bottom: none;
}

.works-sitemap-content > ul > li:hover,
#works_detail03 > ul > li:hover,
.works-sitemap-content ul.menu > li:hover,
#works_detail03 ul.menu > li:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

/* 第1階層（親）のリンク・テキスト */
.works-sitemap-content > ul > li > a,
#works_detail03 > ul > li > a,
.works-sitemap-content ul.menu > li > a,
#works_detail03 ul.menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-main, #15308F);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color var(--transition-fast, 0.2s);
}

.works-sitemap-content > ul > li > a::before,
#works_detail03 > ul > li > a::before,
.works-sitemap-content ul.menu > li > a::before,
#works_detail03 ul.menu > li > a::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-sub, #2E8FD5);
  flex-shrink: 0;
}

.works-sitemap-content > ul > li > a:hover,
#works_detail03 > ul > li > a:hover,
.works-sitemap-content ul.menu > li > a:hover,
#works_detail03 ul.menu > li > a:hover {
  color: var(--color-sub, #2E8FD5);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   第2階層以降・子ページリスト（左margin / paddingでインデント・位置をずらす）
   -------------------------------------------------------------------------- */
.works-sitemap-content ul ul,
.works-sitemap-content ul.sub-menu,
.works-sitemap-content li > ul,
#works_detail03 ul ul,
#works_detail03 ul.sub-menu,
#works_detail03 li > ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-top: 8px !important;
  margin-bottom: 6px !important;
  margin-left: clamp(16px, 2.5vw, 24px) !important;
  padding-left: 0 !important;
  background: transparent !important;
  border: none !important;
  list-style: none !important;
}

.works-sitemap-content ul ul li,
.works-sitemap-content ul.sub-menu li,
.works-sitemap-content li > ul > li,
#works_detail03 ul ul li,
#works_detail03 ul.sub-menu li,
#works_detail03 li > ul > li {
  position: relative !important;
  padding: 4px 0 4px 22px !important;
  font-size: 0.92rem !important;
  border-bottom: none !important;
  background: transparent !important;
  color: var(--color-text, #475569) !important;
  line-height: 1.6 !important;
}

.works-sitemap-content ul ul li::before,
.works-sitemap-content ul.sub-menu li::before,
.works-sitemap-content li > ul > li::before,
#works_detail03 ul ul li::before,
#works_detail03 ul.sub-menu li::before,
#works_detail03 li > ul > li::before {
  content: "└" !important;
  position: absolute !important;
  left: 0 !important;
  top: 4px !important;
  color: var(--color-text-muted, #94A3B8) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
}

.works-sitemap-content ul ul li a,
.works-sitemap-content ul.sub-menu li a,
.works-sitemap-content li > ul > li a,
#works_detail03 ul ul li a,
#works_detail03 ul.sub-menu li a,
#works_detail03 li > ul > li a {
  color: var(--color-text, #475569) !important;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast, 0.2s);
}

.works-sitemap-content ul ul li a:hover,
.works-sitemap-content ul.sub-menu li a:hover,
.works-sitemap-content li > ul > li a:hover,
#works_detail03 ul ul li a:hover,
#works_detail03 ul.sub-menu li a:hover,
#works_detail03 li > ul > li a:hover {
  color: var(--color-sub, #2E8FD5) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.works-detail-body {
  margin-top: 0;
  margin-bottom: 48px;
}

/* --------------------------------------------------------------------------
   10. レスポンシブ対応
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body.single #content,
  .single-container {
    padding: clamp(32px, 5vw, 48px) 16px clamp(48px, 6vw, 64px);
  }

  .single-article,
  .single-works-article,
  body.single .entry-content.box1000,
  body.single .entry-content.base {
    padding: 0;
    margin-bottom: 36px;
    border-radius: 0;
  }

  .single-header {
    padding-bottom: 20px;
    margin-bottom: 24px;
  }

  .single-title {
    font-size: 1.35rem;
  }

  .single-meta-row {
    gap: 12px;
  }

  .entry-content,
  .single-body.entry-content {
    font-size: 0.95rem;
    line-height: 1.85;
  }

  .works-detail-client-title,
  #works_detail01 h2 {
    font-size: clamp(1.3rem, 5vw, 1.7rem);
    margin-bottom: 20px;
  }

  .works-detail-hero,
  #works_detail01 {
    margin-bottom: 36px;
  }

  .works-spec-table th,
  #works_detail02 th {
    width: 120px;
    min-width: 100px;
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  .works-spec-table td,
  #works_detail02 td {
    padding: 12px 14px;
    font-size: 0.875rem;
  }

  div.works-sitemap-content,
  .works-sitemap-content {
    padding: 16px 14px;
    font-size: 0.875rem;
  }

  .single-post-nav {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "prev next"
      "center center";
    gap: 12px;
    margin-top: 36px;
    padding-top: 24px;
  }

  .post-nav-prev { grid-area: prev; }
  .post-nav-next { grid-area: next; }
  .post-nav-center {
    grid-area: center;
    margin-top: 8px;
  }

  .post-nav-archive-btn { width: 100%; }
  .post-nav-card { padding: 12px 14px; }
  .nav-post-title {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  #prev_next ul {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  /* H2 大見出し（スマホ表示） */
  .entry-content h2,
  .single-body.entry-content h2,
  .single-works-article .works-detail-section-title,
  .single-works-main .works-detail-section-title,
  .works-detail-section-title,
  #works_detail02 h2,
  #works_detail03 h2,
  .works-detail-body h2,
  .single-works-article .entry-content h2,
  .single-works-main .entry-content h2,
  body.single-works .entry-content h2 {
    font-size: clamp(1.18rem, 5.2vw, 1.38rem);
    line-height: 1.42;
    padding: 0 0 10px 0;
    margin: 44px 0 16px;
    gap: 10px;
  }
  .entry-content h2::before,
  .single-body.entry-content h2::before,
  .single-works-article .works-detail-section-title::before,
  .single-works-main .works-detail-section-title::before,
  .works-detail-section-title::before,
  #works_detail02 h2::before,
  #works_detail03 h2::before,
  .works-detail-body h2::before,
  .single-works-article .entry-content h2::before,
  .single-works-main .entry-content h2::before,
  body.single-works .entry-content h2::before {
    width: 3.5px;
    height: 0.95em;
    margin-top: 0.2em;
  }
  
  /* H3 中見出し（スマホ表示） */
  .entry-content h3,
  .single-body.entry-content h3,
  .works-detail-body h3,
  .single-works-article .entry-content h3,
  .single-works-main .entry-content h3,
  body.single-works .entry-content h3 {
    font-size: clamp(1.08rem, 4.4vw, 1.22rem);
    line-height: 1.45;
    padding: 7px 14px;
    margin: 34px 0 14px;
    border-radius: 5px;
  }
  
  /* H4 小見出し（スマホ表示） */
  .entry-content h4,
  .single-body.entry-content h4,
  .works-detail-body h4,
  .single-works-article .entry-content h4,
  .single-works-main .entry-content h4,
  body.single-works .entry-content h4 {
    font-size: 1.02rem;
    line-height: 1.5;
    margin: 26px 0 10px;
  }

  /* テーブル（スマホ表示） */
  .entry-content table,
  .single-body.entry-content table,
  .wp-block-table table {
    font-size: 0.9rem;
  }
  .entry-content th,
  .entry-content td,
  .single-body.entry-content th,
  .single-body.entry-content td,
  .wp-block-table th,
  .wp-block-table td {
    padding: 14px 16px !important;
  }
  .entry-content th,
  .single-body.entry-content th,
  .wp-block-table th,
  .entry-content tbody tr > td:first-child:not(:last-child),
  .single-body.entry-content tbody tr > td:first-child:not(:last-child),
  .wp-block-table tbody tr > td:first-child:not(:last-child) {
    width: 34%;
    min-width: 110px;
  }
}

@media (max-width: 540px) {
  .works-spec-table tr,
  #works_detail02 tr {
    display: flex;
    flex-direction: column;
  }

  .works-spec-table th,
  #works_detail02 th {
    width: 100%;
    min-width: auto;
    padding: 10px 14px 6px;
    border-bottom: none;
    background-color: var(--color-sub-light, #F4F8FD);
    font-size: 0.8rem;
  }

  .works-spec-table td,
  #works_detail02 td {
    width: 100%;
    padding: 6px 14px 14px;
    box-sizing: border-box;
  }

  .works-spec-table tr:not(:last-child) td,
  #works_detail02 tr:not(:last-child) td {
    border-bottom: 1px solid var(--color-border, #E2E8F0);
  }
}

@media (max-width: 480px) {
  .single-post-nav {
    grid-template-columns: 1fr;
    grid-template-areas:
      "prev"
      "next"
      "center";
    gap: 10px;
  }

  .next-card .nav-direction-label { justify-content: flex-start; }
  .next-card .nav-post-title { text-align: left; }
}
