/* 本番で足したもの、と、旧テーマ（Cocoon）の記事部品をうす緑の見た目で表示するための装飾 */

/* X */
.x-follow { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--green-700) !important; text-decoration: none;
  padding: 8px 18px; border-radius: 30px; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.x-follow:hover { background: var(--green-50); }
.share .share-x { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #222; border-color: #cfd8d2; font-weight: 700; }

/* 共通 */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 6px 10px; z-index: 10; }
.site-title { line-height: 1.2; }
.new-badge { display: inline-block; background: var(--honey); color: #5b4a12; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; margin-right: 6px; vertical-align: 2px; }
.cards + .section-title { margin-top: 32px; }
.pager { display: flex; gap: 8px; justify-content: center; margin: 28px 0 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 20px; text-decoration: none; background: #fff; border: 1px solid var(--green-100); }
.pager span.current { background: var(--green-500); color: #fff; border-color: var(--green-500); }
.archive-head { margin: 0 0 18px; }
.archive-head h1 { font-size: 22px; margin: 0; color: var(--green-700); }
.archive-head p { margin: 4px 0 0; color: var(--text-sub); font-size: 14px; }
.tags { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.tags a { background: #fff; border: 1px solid var(--green-100); border-radius: 16px; padding: 2px 12px; text-decoration: none; color: var(--text-sub); }
.tags a::before { content: "# "; color: var(--green-300); }
.notfound { text-align: center; padding: 30px 0; }

/* 記事本文 */
.article table { border-collapse: collapse; width: 100% !important; height: auto !important; margin: 20px 0; font-size: 15px; display: block; overflow-x: auto; }
.article td, .article th { border: 1px solid var(--green-100); padding: 8px 10px; height: auto !important; width: auto !important; }
.article tr:first-child td { background: var(--green-50); }
.article blockquote { margin: 20px 0; padding: 14px 18px; background: #fbfdf9; border-left: 4px solid var(--green-300); border-radius: 0 8px 8px 0; color: #4b574f; }
.article h4 { font-size: 17px; margin: 26px 0 10px; color: var(--green-700); }
.article h5 { font-size: 16px; margin: 22px 0 8px; }
.article .entry-body img { border-radius: 8px; }
.article .aligncenter { margin-left: auto; margin-right: auto; }
.article ol { padding-left: 1.5em; }
.article code { background: var(--green-50); padding: 1px 6px; border-radius: 4px; font-size: .92em; }
.article hr { border: 0; border-top: 1px dashed var(--green-100); margin: 28px 0; }
.toc ol ol { margin: 2px 0; font-size: 14px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* マーカー・文字飾り */
.marker { background: #fbe9a8; }
.marker-blue { background: #d6ebf5; }
.marker-red { background: #fadadd; }
.marker-under { background: linear-gradient(transparent 62%, #fbe9a8 62%); }
.marker-under-blue { background: linear-gradient(transparent 62%, #cfe6f2 62%); }
.marker-under-red { background: linear-gradient(transparent 62%, #f8d3d6 62%); }
.red-under { border-bottom: 2px solid #d9767c; }
.bold { font-weight: 700; }
.red { color: #c2484f; } .blue { color: #3d7aa6; }
.fz-22px { font-size: 20px; }
.has-black-color { color: var(--text) !important; }

/* 吹き出し */
.speech-wrap { display: flex; gap: 14px; align-items: flex-start; margin: 22px 0; }
.speech-wrap.sbp-r { flex-direction: row-reverse; }
.speech-wrap .speech-person { flex: 0 0 72px; text-align: center; }
.speech-wrap .speech-icon { margin: 0; }
.speech-wrap .speech-icon-image { width: 64px; height: 64px; border-radius: 50% !important; object-fit: cover; border: 3px solid var(--green-100); background: #fff; margin: 0 auto; }
.speech-wrap .speech-name { font-size: 11px; color: var(--text-sub); margin-top: 2px; line-height: 1.4; }
.speech-wrap .speech-balloon { position: relative; background: var(--green-50); border: 1px solid var(--green-100); border-radius: 16px; padding: 12px 16px; flex: 1; min-width: 0; }
.speech-wrap.sbp-r .speech-balloon { background: #fffbea; border-color: #f3e5ad; }
.speech-wrap .speech-balloon p { margin: 0 0 .5em; }
.speech-wrap .speech-balloon p:last-child { margin: 0; }
.speech-wrap .speech-balloon::before { content: ""; position: absolute; top: 20px; left: -8px; width: 14px; height: 14px; background: inherit; border-left: 1px solid; border-bottom: 1px solid; border-color: inherit; transform: rotate(45deg); }
.speech-wrap.sbp-r .speech-balloon::before { left: auto; right: -8px; transform: rotate(-135deg); }

/* 囲み枠 */
.blank-box { border: 2px solid var(--green-300); border-radius: 12px; padding: 14px 18px; margin: 24px 0; background: #fbfdf9; position: relative; }
.blank-box > p:last-child { margin-bottom: 0; }
.blank-box.bb-blue { border-color: #b9d7e8; background: #f6fbfe; }
.blank-box.bb-red { border-color: #efc1c4; background: #fff8f8; }
.blank-box.bb-tab { margin-top: 30px; padding-top: 18px; }
.blank-box .bb-label { position: absolute; top: -13px; left: 14px; background: var(--green-500); color: #fff; font-size: 13px; font-weight: 700; padding: 1px 12px; border-radius: 20px; line-height: 1.8; }
.blank-box.bb-blue .bb-label { background: #6aa3c4; }
.blank-box.bb-red .bb-label { background: #d07a80; }
.blank-box .bb-label .fa { display: none; }
.bb-check .bb-label::after { content: "チェック"; }
.bb-point .bb-label::after { content: "ポイント"; }
.bb-tips .bb-label::after { content: "ヒント"; }
.bb-memo .bb-label::after { content: "メモ"; }
.blank-box.sticky { border: 0; border-left: 6px solid var(--green-300); border-radius: 0 10px 10px 0; background: var(--green-50); }
.blank-box.sticky.st-blue { border-left-color: #8fbcd6; background: #f1f7fb; }
.blank-box.sticky.st-red { border-left-color: #e3a1a6; background: #fdf3f4; }
.common-icon-box { border: 2px solid #b9d7e8; background: #f6fbfe; border-radius: 12px; padding: 14px 18px; margin: 24px 0; }
.common-icon-box.alert-box { border-color: #efc1c4; background: #fff8f8; }
.common-icon-box.good-box, .common-icon-box.success-box { border-color: var(--green-300); background: #fbfdf9; }
.common-icon-box > p:last-child { margin-bottom: 0; }

/* 記事どうしのリンクカード */
.blogcard-wrap { display: block; text-decoration: none; color: var(--text); margin: 24px 0; }
.blogcard { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--green-100); border-radius: 12px; background: #fff; padding: 14px 12px 12px; box-shadow: var(--shadow); position: relative; }
.blogcard-wrap:hover .blogcard { border-color: var(--green-300); }
.blogcard-label { position: absolute; top: -10px; left: 12px; background: var(--green-500); color: #fff; font-size: 11px; font-weight: 700; padding: 0 10px; border-radius: 10px; line-height: 1.8; }
.blogcard-label .fa { display: none; }
.internal-blogcard-label::after { content: "関連記事"; }
.external-blogcard-label::after { content: "リンク"; }
.blogcard-thumbnail { flex: 0 0 140px; margin: 0; }
.blogcard-thumbnail img { width: 140px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px !important; }
.blogcard-content { flex: 1; min-width: 0; }
.blogcard-title { font-weight: 700; line-height: 1.5; font-size: 15px; color: var(--green-700); }
.blogcard-snippet { font-size: 12px; color: var(--text-sub); line-height: 1.6; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blogcard-footer { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--text-sub); margin-top: 6px; }
.blogcard-footer .blogcard-site { display: flex; align-items: center; gap: 4px; }
.blogcard-favicon { margin: 0; }
.blogcard-favicon img { width: 14px; height: 14px; border-radius: 0 !important; }
@media (max-width: 560px) {
  .blogcard-thumbnail { flex-basis: 100px; }
  .blogcard-thumbnail img { width: 100px; }
  .blogcard-snippet { display: none; }
}

/* トップへ戻るボタン（下へ読み進めると右下に出る） */
.to-top { position: fixed; right: 16px; bottom: 20px; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; background: var(--green-500); color: #fff; text-decoration: none; box-shadow: 0 4px 14px rgba(74, 122, 85, .3);
  font-size: 10px; font-weight: 700; line-height: 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.to-top.show { opacity: .92; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-700); opacity: 1; }
.to-top svg { margin-bottom: 1px; }
