/**
 * 吉天堂 vibe.css — 記事個別ページ専用スタイル
 * snippet 35 の内容をテーマCSSとして整理
 * snippet 34 の記事ページ固有スタイルも統合
 */

/* ===== ページ全体のドット背景（single/page共通） ===== */
body.single,
body.page {
  background-color: #e8e8ec !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect width='3' height='3' fill='%231c1d21' fill-opacity='0.10'/%3E%3C/svg%3E") !important;
  background-size: 24px 24px !important;
  animation: ebiBgDrift 16s linear infinite !important;
}

@keyframes ebiBgDrift {
  from { background-position: 0 0; }
  to   { background-position: 48px 48px; }
}

/* ===== single ラッパー ===== */
.yoshi-single-wrap {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  box-sizing: border-box;
}

/* ===== 記事カード（白カード・ハードオフセット影） ===== */
.yoshi-article {
  background: #fff;
  border: 2px solid #1c1d21;
  border-radius: 12px;
  box-shadow: 6px 6px 0 rgba(28, 29, 33, 0.12);
  padding: 26px 30px 36px;
  margin-bottom: 40px;
}

@media (max-width: 720px) {
  .yoshi-article {
    padding: 18px 15px 28px;
  }
}

/* ===== パンくず ===== */
.yoshi-breadcrumb-wrap {
  margin-bottom: 16px;
}

.yoshi-breadcrumb {
  font-size: 11.5px;
  color: #9aa0a6;
}

.yoshi-bc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.yoshi-bc-item a {
  color: #9aa0a6;
  text-decoration: none;
}

.yoshi-bc-item a:hover {
  color: #c026d3;
}

.yoshi-bc-sep {
  color: #c0c4cc;
}

.yoshi-bc-current {
  color: #6b7077;
}

/* Rank Math パンくず対応 */
.rank-math-breadcrumb,
.rank-math-breadcrumb p {
  font-size: 11.5px;
  color: #9aa0a6;
  margin: 0;
}

.rank-math-breadcrumb a {
  color: #9aa0a6;
  text-decoration: none;
}

.rank-math-breadcrumb a:hover {
  color: #c026d3;
}

/* ===== アイキャッチ ===== */
.yoshi-eyecatch {
  margin: 0 0 24px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #1c1d21;
  line-height: 0;
}

.yoshi-eyecatch-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* ===== 記事ヘッダー ===== */
.yoshi-entry-header {
  margin-bottom: 28px;
}

/* カテゴリラベル */
.yoshi-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.yoshi-cat-link {
  display: inline-block;
  background: #fff;
  color: #1c1d21;
  border: 2px solid #1c1d21;
  border-radius: 0;
  box-shadow: 2px 2px 0 rgba(28, 29, 33, 0.16);
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}

.yoshi-cat-link:hover {
  background: #c026d3;
  color: #fff;
  border-color: #c026d3;
}

/* 記事タイトル */
.yoshi-entry-title {
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "游ゴシック", YuGothic, "メイリオ", sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #1c1d21;
  margin: 0 0 12px;
}

@media (min-width: 768px) {
  .yoshi-entry-title {
    font-size: 32px;
  }
}

/* メタ情報 */
.yoshi-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #9aa0a6;
  font-size: 12.5px;
  margin-bottom: 12px;
}

.yoshi-meta-sep {
  color: #c0c4cc;
}

.yoshi-post-date,
.yoshi-post-update,
.yoshi-post-author {
  color: #9aa0a6;
}

/* タグ */
.yoshi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.yoshi-tag-link {
  display: inline-block;
  background: #fff;
  color: #1c1d21;
  border: 2px solid #1c1d21;
  box-shadow: 2px 2px 0 rgba(28, 29, 33, 0.12);
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.1s, color 0.1s;
}

.yoshi-tag-link:hover {
  background: #0891b2;
  color: #fff;
  border-color: #0891b2;
}

/* ===== シェアボタン ===== */
.yoshi-share-top {
  margin: 0 0 28px;
}

.yoshi-share-bottom {
  margin: 40px 0 10px;
}

/* ebi-bshare（snippet35から移植） */
.ebi-bshare {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.ebi-bshare .ebi-bshare-ttl {
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #fff;
  background: #c026d3;
  border: 2px solid #1c1d21;
  border-radius: 2px;
  box-shadow: 2px 2px 0 rgba(28, 29, 33, 0.18);
  padding: 4px 13px;
}

.ebi-bshare .ebi-bshare-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.ebi-bshare .ebi-sbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #1c1d21;
  background: #fff;
  border: 2px solid #1c1d21;
  border-radius: 50%;
  box-shadow: 3px 3px 0 rgba(28, 29, 33, 0.18);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s, box-shadow 0.08s, background 0.12s, color 0.12s, border-color 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.ebi-bshare .ebi-sbtn svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: currentColor;
}

.ebi-bshare .ebi-sbtn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(28, 29, 33, 0.20);
}

.ebi-bshare .ebi-sbtn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 rgba(28, 29, 33, 0.18);
}

.ebi-bshare .ebi-sbtn.is-x:hover,
.ebi-bshare .ebi-sbtn.is-threads:hover {
  background: #c026d3;
  color: #fff;
  border-color: #c026d3;
}

.ebi-bshare .ebi-sbtn.is-bsky:hover,
.ebi-bshare .ebi-sbtn.is-copy:hover {
  background: #0891b2;
  color: #fff;
  border-color: #0891b2;
}

.ebi-bshare .ebi-sbtn.is-copy.copied {
  background: #0891b2;
  color: #fff;
  border-color: #0891b2;
}

.ebi-bshare .ebi-sbtn.is-copy .ebi-copied-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: #1c1d21;
  border-radius: 5px;
  padding: 4px 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s, transform 0.14s;
  box-shadow: 2px 2px 0 rgba(28, 29, 33, 0.18);
}

.ebi-bshare .ebi-sbtn.is-copy .ebi-copied-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1c1d21;
}

.ebi-bshare .ebi-sbtn.is-copy.copied .ebi-copied-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 720px) {
  .ebi-bshare .ebi-sbtn {
    width: 44px;
    height: 44px;
  }
  .ebi-bshare .ebi-sbtn svg {
    width: 20px;
    height: 20px;
  }
  .ebi-bshare .ebi-bshare-row {
    gap: 12px;
  }
}

/* ===== 記事本文スタイル ===== */
.yoshi-entry-content {
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "游ゴシック", YuGothic, "メイリオ", Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #1c1d21;
}

.yoshi-entry-content p {
  margin-bottom: 1.5em;
}

.yoshi-entry-content li {
  font-size: 16px;
  line-height: 1.8;
}

/* ===== 見出し（snippet35スタイル） ===== */

/* h2: 白カード・黒2px枠・マゼンタテープ装飾 */
.yoshi-entry-content h2 {
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "游ゴシック", YuGothic, "メイリオ", sans-serif;
  display: inline-block;
  position: relative;
  background: #fff;
  border: 2px solid #1c1d21;
  border-radius: 2px;
  box-shadow: 3px 4px 0 rgba(28, 29, 33, 0.15);
  color: #1c1d21;
  font-weight: 800;
  font-size: 22px;
  padding: 9px 20px;
  margin: 2.1em 0 1.1em;
  transform: none;
  line-height: 1.5;
}

.yoshi-entry-content h2::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 16px;
  width: 56px;
  height: 15px;
  background: rgba(192, 38, 211, 0.30);
  border: 1px solid rgba(192, 38, 211, 0.55);
  transform: rotate(2.5deg);
}

.yoshi-entry-content h2::after {
  display: none;
  content: none;
}

@media (min-width: 768px) {
  .yoshi-entry-content h2 {
    font-size: 25px;
  }
}

/* h3: 白カード・黒2px枠・小型 */
.yoshi-entry-content h3 {
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "游ゴシック", YuGothic, "メイリオ", sans-serif;
  display: inline-block;
  position: relative;
  background: #fff;
  border: 2px solid #1c1d21;
  border-radius: 2px;
  box-shadow: 2px 3px 0 rgba(28, 29, 33, 0.10);
  color: #1c1d21;
  font-weight: 700;
  font-size: 18px;
  padding: 7px 16px;
  margin: 1.8em 0 0.9em;
  line-height: 1.4;
}

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

@media (min-width: 768px) {
  .yoshi-entry-content h3 {
    font-size: 20px;
  }
}

/* h4: 白カード・シアン左ボーダー */
.yoshi-entry-content h4 {
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "游ゴシック", YuGothic, "メイリオ", sans-serif;
  display: table;
  width: fit-content;
  max-width: 100%;
  position: relative;
  background: #fff;
  border: 2px solid #1c1d21;
  border-left: 4px solid #0891b2;
  border-radius: 3px;
  box-shadow: 2px 2px 0 rgba(28, 29, 33, 0.07);
  color: #1c1d21;
  font-weight: 800;
  font-size: 17px;
  padding: 5px 14px 5px 13px;
  margin: 1.8em 0 0.9em;
  line-height: 1.5;
}

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

@media (min-width: 768px) {
  .yoshi-entry-content h4 {
    font-size: 18px;
  }
}

/* h5: 白カード・細枠 */
.yoshi-entry-content h5 {
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "游ゴシック", YuGothic, "メイリオ", sans-serif;
  display: inline-block;
  position: relative;
  background: #fff;
  border: 1.5px solid #1c1d21;
  border-radius: 2px;
  color: #1c1d21;
  font-weight: 700;
  font-size: 15px;
  padding: 5px 12px;
  margin: 1.5em 0 0.8em;
  line-height: 1.4;
}

/* ===== リンク ===== */
.yoshi-entry-content a:not(.btn):not(.ebi-sbtn) {
  color: #c026d3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.yoshi-entry-content a:not(.btn):not(.ebi-sbtn):hover {
  color: #0891b2;
}

/* ===== 目次（TOCプラグイン対応） ===== */
.yoshi-entry-content #toc.toc,
.yoshi-entry-content .toc,
#toc {
  background: #fff;
  border: 2px solid #1c1d21;
  border-radius: 10px;
  box-shadow: 4px 4px 0 rgba(28, 29, 33, 0.12);
  outline: none;
  padding: 16px 20px;
  margin: 1.5em 0 2em;
}

.yoshi-entry-content .toc-title,
.yoshi-entry-content #toc .toc-title {
  font-family: inherit;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #1c1d21;
  font-weight: 800;
}

.yoshi-entry-content .toc a,
.yoshi-entry-content #toc a {
  color: #1c1d21;
  text-decoration: none;
}

.yoshi-entry-content .toc a:hover,
.yoshi-entry-content #toc a:hover {
  color: #c026d3;
}

/* ===== 画像 ===== */
.yoshi-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ===== テーブル ===== */
.yoshi-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14px;
}

.yoshi-entry-content th,
.yoshi-entry-content td {
  border: 1px solid #e0e2e6;
  padding: 8px 12px;
  text-align: left;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "游ゴシック", YuGothic, "メイリオ", sans-serif;
}

.yoshi-entry-content th {
  background: #f4f5f7;
  font-weight: 700;
}

.yoshi-entry-content tr:nth-child(even) td {
  background: #fafafa;
}

/* ===== ブロッククォート ===== */
.yoshi-entry-content blockquote {
  border-left: 4px solid #c026d3;
  margin: 1.5em 0;
  padding: 12px 18px;
  background: #fdf4ff;
  border-radius: 0 8px 8px 0;
  color: #4a4d56;
  font-style: italic;
}

/* ===== コードブロック ===== */
.yoshi-entry-content pre,
.yoshi-entry-content code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 14px;
  background: #1c1d21;
  color: #e8eaf0;
  border-radius: 6px;
}

.yoshi-entry-content pre {
  padding: 16px 18px;
  overflow-x: auto;
  margin: 1.5em 0;
  line-height: 1.6;
}

.yoshi-entry-content code {
  padding: 2px 6px;
  font-size: 13px;
}

.yoshi-entry-content pre code {
  background: transparent;
  padding: 0;
}

/* ===== 記事フッター（カテゴリ・タグバッジ） ===== */
.yoshi-entry-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e6e8eb;
}

.yoshi-entry-cats-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.yoshi-cat-badge {
  display: inline-block;
  background: #fff;
  color: #1c1d21;
  border: 2px solid #1c1d21;
  border-radius: 0;
  box-shadow: 2px 2px 0 rgba(28, 29, 33, 0.16);
  padding: 4px 13px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}

.yoshi-cat-badge:hover {
  background: #c026d3;
  color: #fff;
  border-color: #c026d3;
}

.yoshi-tag-badge {
  display: inline-block;
  background: #fff;
  color: #1c1d21;
  border: 2px solid #1c1d21;
  border-radius: 0;
  box-shadow: 2px 2px 0 rgba(28, 29, 33, 0.12);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}

.yoshi-tag-badge:hover {
  background: #0891b2;
  color: #fff;
  border-color: #0891b2;
}

/* ===== 関連記事（ebir-section / snippet38から移植） ===== */
.ebir-section {
  max-width: 980px;
  margin: 46px auto 20px;
  padding: 0 22px;
  box-sizing: border-box;
}

.ebir-head {
  position: relative;
  display: inline-block;
  font-family: inherit;
  color: #1c1d21;
  font-weight: 800;
  font-size: 20px;
  background: #fff;
  border: 2px solid #1c1d21;
  border-radius: 2px;
  box-shadow: 3px 4px 0 rgba(28, 29, 33, 0.15);
  padding: 9px 22px;
  margin: 0 0 26px;
  transform: rotate(-1.2deg);
}

.ebir-head::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 18px;
  width: 54px;
  height: 16px;
  background: rgba(192, 38, 211, 0.30);
  border: 1px solid rgba(192, 38, 211, 0.55);
  transform: rotate(2.5deg);
}

.ebir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 880px) {
  .ebir-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .ebir-grid {
    grid-template-columns: 1fr;
  }
}

.ebir-slot {
  display: flex;
  flex-direction: column;
  position: relative;
}

.ebir-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(180deg, #fcfcfd 0%, #eceef1 100%);
  border: 3px solid #1c1d21;
  border-radius: 12px 12px 5px 5px;
  padding: 13px 13px 11px;
  box-shadow: 5px 5px 0 #1c1d21;
  text-decoration: none;
  transition: box-shadow 0.12s, transform 0.12s;
}

.ebir-card:hover {
  box-shadow: 8px 8px 0 #c026d3;
  transform: translate(-2px, -2px);
}

.ebir-thumb {
  flex: 0 0 auto;
  height: 150px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3a3d44, #16171b);
  background-size: cover;
  background-position: center;
  border: 2.5px solid #1c1d21;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.ebir-num {
  position: absolute;
  top: 22px;
  left: 20px;
  z-index: 4;
  font-family: 'DenkiChip', 'Hiragino Kaku Gothic ProN', sans-serif;
  -webkit-font-smoothing: none;
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

.ebir-cat {
  position: absolute;
  top: 21px;
  right: 20px;
  z-index: 4;
  display: inline-block;
  background: #5b616b;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 13px;
  letter-spacing: 0.02em;
}

.ebir-cat.mag { background: #c026d3; }
.ebir-cat.cyan { background: #0891b2; }

.ebir-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 10px 4px 2px;
}

.ebir-body h3 {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.42;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
  color: #1c1d21;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  display: block;
}

.ebir-card:hover .ebir-body h3 {
  color: #c026d3;
}

.ebir-date {
  margin-top: auto;
  color: #9aa0a6;
  font-size: 12px;
}

/* ===== アフィリエイト広告注記 ===== */
.pr-label,
.yoshi-pr-label {
  font-size: 11px;
  color: #8a8f98;
  background: #f4f4f6;
  border: 1px solid #d7d9de;
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 16px;
}

/* ===== コメント ===== */
.yoshi-single-wrap .comments-area {
  margin: 40px 0 0;
}

/* ===== ブログカード（URLをカード変換） ===== */
.yoshi-blogcard {
  margin: 1.5em 0;
}

.yoshi-blogcard-inner {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 2px solid #1c1d21;
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(28, 29, 33, 0.13);
  overflow: hidden;
  text-decoration: none;
  color: #1c1d21;
  transition: box-shadow 0.12s, transform 0.12s;
  min-height: 96px;
}

.yoshi-blogcard-inner:hover {
  box-shadow: 6px 6px 0 #c026d3;
  transform: translate(-2px, -2px);
}

.yoshi-bc-thumb {
  flex: 0 0 140px;
  width: 140px;
  background: linear-gradient(135deg, #3a3d44, #16171b);
}

.yoshi-bc-thumb--noimg {
  background: linear-gradient(135deg, #3a3d44, #16171b);
  display: flex;
  align-items: center;
  justify-content: center;
}

.yoshi-bc-thumb--noimg::after {
  content: '🔗';
  font-size: 24px;
  opacity: 0.6;
}

.yoshi-bc-body {
  flex: 1 1 auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.yoshi-bc-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  color: #1c1d21;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yoshi-blogcard-inner:hover .yoshi-bc-title {
  color: #c026d3;
}

.yoshi-bc-excerpt {
  font-size: 12.5px;
  color: #6b7077;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yoshi-bc-domain {
  font-size: 11px;
  color: #9aa0a6;
  font-weight: 600;
}

@media (max-width: 560px) {
  .yoshi-bc-thumb {
    flex: 0 0 96px;
    width: 96px;
  }
  .yoshi-bc-body {
    padding: 10px 14px;
  }
}

/* ===== YouTube / 動画埋め込み ===== */
.wp-block-embed {
  margin: 1.5em 0;
}

.wp-block-embed iframe,
.wp-block-embed__wrapper iframe {
  max-width: 100%;
  width: 100%;
  display: block;
}

.wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== 選択ハイライト ===== */
::selection {
  background: #c026d3;
  color: #fff;
}
