@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.9.0
*/

/************************************
** 古着衛門ブログ 共通デザイン
** 2026-08-02
** v1.3.1: 本サイト完成版とPC・スマートフォン共通ヘッダーを統一
** v1.9.0: 完成表示を維持したまま変数定義・構文・動作を最終統合
************************************/
:root {
  /* 共通 */
  --he-red: #b51217;
  --he-red-dark: #8f0e12;
  --he-pink: #fdecee;
  --he-pink-strong: #f7d8dc;
  --he-black: #222222;
  --he-text: #333333;
  --he-muted: #6b6b6b;
  --he-line: #dedede;
  --he-bg: #fff7f7;
  --he-white: #ffffff;
  --he-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --he-radius: 12px;

  /* body・記事面 */
  --he-frame-line: #dfafb3;
  --he-frame-shadow: 0 14px 36px rgba(112, 0, 7, 0.08);
  --he-main-red: #cf0018;
  --he-main-red-dark: #9f1019;
  --he-main-surface: #fff1f3;
  --he-main-line: #efc9ce;
  --he-main-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);

  /* 記事カード */
  --he-blog-card-pink: #fff1f3;
  --he-blog-card-pink-line: #efc8cd;
  --he-blog-card-pink-hover: #ffe7ea;

  /* サイドバー */
  --he-sidebar-pink: #fff3f4;
  --he-sidebar-line: #efc8cd;
  --he-sidebar-line-soft: #f3dadd;

  /* ページ送り・パンくず */
  --he-bottom-nav-line: #efc8cd;
  --he-bottom-nav-pink: #fff4f5;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--he-bg) !important;
  color: var(--he-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
}

/* Cocoon設定のサイト背景色より後に出力される動的CSSを上書き */
body > .container,
.content {
  background-color: var(--he-bg) !important;
}

a {
  color: var(--he-red);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--he-red-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(181, 18, 23, 0.3);
  outline-offset: 3px;
}

/************************************
** ヘッダー
************************************/
.header-container {
  background: var(--he-white);
  border-top: 5px solid var(--he-red);
  box-shadow: 0 1px 0 var(--he-line);
}

.header-container-in {
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo,
.logo-text {
  margin: 0 auto;
}

.site-name-text,
.logo-text a {
  color: var(--he-black);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tagline {
  color: var(--he-muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}

/************************************
** グローバルナビ
************************************/
.navi {
  background: var(--he-black);
  border-bottom: 3px solid var(--he-red);
}

.navi-in > ul {
  align-items: stretch;
}

.navi-in > ul > li > a {
  min-height: 52px;
  padding: 8px 15px;
  color: var(--he-white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.navi-in > ul > li > a:hover,
.navi-in > ul > li.current-menu-item > a,
.navi-in > ul > li.current_page_item > a {
  background: var(--he-red);
  color: var(--he-white);
}

/************************************
** 本文レイアウト
************************************/
#content {
  margin-top: 34px;
  margin-bottom: 48px;
}

/* Cocoon既定幅は main 860px + sidebar 376px。
   gapを加えると合計幅を超えてサイドバーが下へ落ちるため、
   PCでは既定の余白計算を維持する。 */
.content-in {
  gap: 0;
}

@media screen and (min-width: 1024px) {
  .content-in {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  main.main {
    flex: 0 1 860px;
  }

  div.sidebar {
    flex: 0 0 376px;
  }
}

main.main,
.sidebar {
  min-width: 0;
}

main.main {
  background: transparent;
  border: 0;
  box-shadow: none;
}

/************************************
** 一覧タイトル・パンくず
************************************/
.list-title,
.archive-title,
.entry-title {
  color: var(--he-black);
  font-weight: 800;
  line-height: 1.45;
}

.list-title,
.archive-title {
  margin: 0 0 22px;
  padding: 14px 18px;
  background: var(--he-white);
  border-left: 6px solid var(--he-red);
  border-radius: 0 var(--he-radius) var(--he-radius) 0;
  box-shadow: var(--he-shadow);
}

.breadcrumb {
  margin-bottom: 16px;
  color: var(--he-muted);
  font-size: 13px;
}

/************************************
** 記事一覧カード
************************************/
.entry-card-wrap,
.related-entry-card-wrap {
  display: block;
  margin-bottom: 22px;
  color: inherit;
  text-decoration: none;
}

.entry-card,
.related-entry-card {
  height: 100%;
  overflow: hidden;
  background: var(--he-white);
  border: 1px solid var(--he-line);
  border-radius: var(--he-radius);
  box-shadow: var(--he-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.entry-card-wrap:hover .entry-card,
.related-entry-card-wrap:hover .related-entry-card {
  transform: translateY(-3px);
  border-color: var(--he-pink-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.entry-card-thumb,
.related-entry-card-thumb {
  overflow: hidden;
  background: #eeeeee;
}

.entry-card-thumb img,
.related-entry-card-thumb img {
  transition: transform 0.35s ease;
}

.entry-card-wrap:hover img,
.related-entry-card-wrap:hover img {
  transform: scale(1.025);
}

.entry-card-content,
.related-entry-card-content {
  padding: 18px 19px 16px;
}

.entry-card-title,
.related-entry-card-title {
  margin-bottom: 10px;
  color: var(--he-black);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.55;
}

.entry-card-snippet {
  color: #555555;
  font-size: 14px;
  line-height: 1.75;
}

.entry-card-meta,
.e-card-info {
  color: var(--he-muted);
  font-size: 12px;
}

.cat-label,
.cat-link,
.entry-category,
.post-date,
.post-update {
  border-radius: 999px;
}

.cat-label,
.cat-link,
.entry-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  background: var(--he-pink);
  color: var(--he-red-dark);
  border: 1px solid var(--he-pink-strong);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.cat-label:hover,
.cat-link:hover,
.entry-category:hover {
  background: var(--he-red);
  color: var(--he-white);
}

/************************************
** 個別記事
************************************/
.article {
  padding: 34px 38px 42px;
  background: var(--he-white);
  border: 1px solid var(--he-line);
  border-radius: var(--he-radius);
  box-shadow: var(--he-shadow);
}

.article .entry-title {
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--he-red);
  font-size: clamp(26px, 3vw, 36px);
}

.eye-catch-wrap {
  overflow: hidden;
  margin: 22px 0 28px;
  border-radius: 10px;
}

.article h2 {
  margin-top: 2.6em;
  margin-bottom: 1.1em;
  padding: 14px 17px;
  background: var(--he-pink);
  border-left: 6px solid var(--he-red);
  border-bottom: 0;
  color: var(--he-black);
  border-radius: 0 8px 8px 0;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.55;
}

.article h3 {
  margin-top: 2.1em;
  padding: 0 0 9px 13px;
  border-left: 4px solid var(--he-red);
  border-bottom: 1px solid var(--he-line);
  color: var(--he-black);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.55;
}

.article h4 {
  margin-top: 1.8em;
  color: var(--he-black);
  font-size: 18px;
}

.article p,
.article li {
  font-size: 16px;
}

.article img {
  height: auto;
  border-radius: 8px;
}

.article blockquote {
  margin: 1.8em 0;
  padding: 18px 20px;
  background: #fafafa;
  border-left: 5px solid var(--he-red);
  color: #505050;
}

.article table {
  border-collapse: collapse;
}

.article th {
  background: var(--he-pink);
  color: var(--he-black);
}

.article th,
.article td {
  padding: 11px 12px;
  border: 1px solid var(--he-line);
}

.article pre,
.article .wp-block-preformatted {
  overflow-x: auto;
  padding: 17px;
  background: #f7f7f7;
  border: 1px solid var(--he-line);
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/************************************
** 目次
************************************/
.toc,
.toc-widget-box {
  margin: 26px 0;
  padding: 20px 22px;
  background: #fffafb;
  border: 1px solid var(--he-pink-strong);
  border-radius: 10px;
}

.toc-title {
  color: var(--he-black);
  font-weight: 800;
}

.toc a {
  color: var(--he-text);
}

.toc a:hover {
  color: var(--he-red);
}

/************************************
** サイドバー
************************************/
.sidebar .widget {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--he-white);
  border: 1px solid var(--he-line);
  border-radius: var(--he-radius);
  box-shadow: var(--he-shadow);
}

.sidebar .widget-title {
  margin: -20px -20px 18px;
  padding: 13px 16px;
  background: var(--he-pink);
  border-left: 5px solid var(--he-red);
  border-radius: var(--he-radius) var(--he-radius) 0 0;
  color: var(--he-black);
  font-size: 17px;
  font-weight: 800;
}

.sidebar .widget img {
  border-radius: 8px;
}

.search-box {
  border: 1px solid #cfcfcf;
  border-radius: 8px;
}

.search-edit {
  min-height: 44px;
}

.search-submit {
  min-width: 44px;
  min-height: 44px;
  color: var(--he-red);
}

.widget_categories ul,
.widget_recent_entries ul,
.widget_new_entries ul,
.widget_popular_entries ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget_categories li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 5px;
  border-bottom: 1px solid #eeeeee;
  color: var(--he-text);
  text-decoration: none;
}

.widget_categories li a:hover {
  color: var(--he-red);
}

/************************************
** タグ・関連記事・ページ送り
************************************/
.tag-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 3px;
  padding: 5px 10px;
  background: #f6f6f6;
  border: 1px solid var(--he-line);
  color: #555555;
  text-decoration: none;
}

.tag-link:hover {
  background: var(--he-pink);
  border-color: var(--he-pink-strong);
  color: var(--he-red-dark);
}

.related-entry-heading,
.comment-title {
  margin-top: 36px;
  padding: 12px 15px;
  background: var(--he-pink);
  border-left: 5px solid var(--he-red);
  color: var(--he-black);
}

.pagination {
  margin-top: 32px;
}

.pagination .page-numbers,
.pager-post-navi a {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--he-line);
  background: var(--he-white);
  color: var(--he-text);
}

.pagination .current,
.pagination a:hover,
.pager-post-navi a:hover {
  background: var(--he-red);
  border-color: var(--he-red);
  color: var(--he-white);
}

/************************************
** フッター
************************************/
.footer {
  background: var(--he-black);
  border-top: 5px solid var(--he-red);
  color: #dddddd;
}

.footer a {
  color: var(--he-white);
}

.footer a:hover {
  color: #ffb4b8;
}

.footer-bottom {
  padding-top: 24px;
  padding-bottom: 24px;
}

/************************************
** タブレット
************************************/
@media screen and (max-width: 1023px) {
  #content {
    margin-top: 24px;
  }

  .content-in {
    gap: 22px;
  }

  .article {
    padding: 30px 28px 36px;
  }
}

/************************************
** スマートフォン
************************************/
@media screen and (max-width: 834px) {
  .header-container-in {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .navi-in > ul > li > a {
    min-height: 48px;
  }

  #content {
    margin-top: 16px;
    margin-bottom: 30px;
  }

  .content-in {
    display: block;
  }

  main.main,
  .sidebar {
    width: 100%;
  }

  .article {
    padding: 24px 20px 30px;
    border-radius: 10px;
  }

  .article .entry-title {
    font-size: 25px;
  }

  .article h2 {
    margin-top: 2.2em;
    padding: 12px 14px;
    font-size: 22px;
  }

  .article h3 {
    font-size: 19px;
  }

  .entry-card-content,
  .related-entry-card-content {
    padding: 15px;
  }

  .entry-card-title,
  .related-entry-card-title {
    font-size: 17px;
  }

  .entry-card-snippet {
    font-size: 13px;
  }

  .sidebar {
    margin-top: 28px;
  }

  .sidebar .widget {
    padding: 18px;
  }

  .sidebar .widget-title {
    margin: -18px -18px 16px;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .article {
    padding: 21px 16px 28px;
  }

  .article p,
  .article li {
    font-size: 15px;
  }

  .list-title,
  .archive-title {
    padding: 12px 14px;
    font-size: 22px;
  }

  .toc,
  .toc-widget-box {
    padding: 17px 15px;
  }
}


/************************************
** スマートフォン表示修正 v1.2.3
************************************/
@media screen and (max-width: 640px) {
  .header-container-in {
    padding: 8px 0 7px;
  }

  .logo,
  .logo-header {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 16px;
    padding-left: 16px;
    overflow: hidden;
  }

  .logo img,
  .logo-header img,
  .site-logo-image,
  .logo-image {
    display: block;
    width: 100% !important;
    max-width: 380px !important;
    height: auto !important;
    max-height: none !important;
    margin-right: auto;
    margin-left: auto;
    object-fit: contain;
  }

  .tagline {
    margin-top: 4px;
    color: #f3c7c9 !important;
    font-size: 12px;
    line-height: 1.4;
  }

  /* CocoonはPC用.menu-headerとモバイル用.menu-mobileを両方出力する。
     PC用を隠し、モバイル用だけを表示する。 */
  #navi .navi-in > .menu-header,
  #navi .navi-in > .menu-pc {
    display: none !important;
  }

  #navi .navi-in > .menu-mobile {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  #navi .navi-in > .menu-mobile > li {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
  }

  #navi .navi-in > .menu-mobile > li > a {
    min-height: 46px !important;
    padding: 7px 6px !important;
    font-size: 15px !important;
    line-height: 1.25;
  }

  #navi .navi-in > .menu-mobile .item-description {
    display: none !important;
  }

  #content {
    margin-top: 10px !important;
    padding-top: 0 !important;
  }

  .content,
  .content-in,
  main.main {
    padding-top: 0 !important;
  }

  .ect-vertical-card .entry-card-wrap,
  .entry-card-wrap {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
  }

  .entry-card {
    display: block !important;
    min-height: 0 !important;
  }

  .entry-card-thumb {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
  }

  .entry-card-thumb img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .entry-card-content {
    width: 100% !important;
    min-height: 0 !important;
    padding: 16px !important;
  }

  .entry-card-title {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    font-size: 20px;
    line-height: 1.5;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
  }

  .entry-card-snippet {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    font-size: 14px;
    line-height: 1.75;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
  }

  .entry-card-meta,
  .e-card-info {
    position: static !important;
    margin-top: 10px;
  }

  .sidebar {
    margin-top: 24px;
  }
}

/************************************
** スマートフォンヘッダー圧縮 v1.2.4
************************************/
@media screen and (max-width: 640px) {
  .header-container-in {
    padding-top: 3px !important;
    padding-bottom: 2px !important;
  }

  .logo,
  .logo-header {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .logo img,
  .logo-header img,
  .site-logo-image,
  .logo-image {
    max-width: 320px !important;
  }

  .tagline {
    margin-top: 1px !important;
    margin-bottom: 2px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  #navi,
  #navi .navi-in,
  #navi .navi-in > .menu-mobile {
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  #navi .navi-in > .menu-mobile > li {
    margin: 0 !important;
    padding: 0 !important;
  }

  #navi .navi-in > .menu-mobile > li > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 2px 5px !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
  }

  #navi .navi-in > .menu-mobile > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  #navi .navi-in > .menu-mobile > li:last-child:nth-child(odd) > a {
    width: 50% !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  #content {
    margin-top: 6px !important;
  }
}

/************************************
** 本サイト完成版と共通のヘッダー v1.3.1
************************************/
/* Cocoon標準ヘッダーは非表示にし、body-top-insert.phpの共通ヘッダーへ置き換える。 */
.header-container,
#header-container,
#navi,
.navi {
  display: none !important;
}

.he-site-header,
.he-site-header *,
.he-nav-wrap,
.he-nav-wrap *,
.he-concept,
.he-concept * {
  box-sizing: border-box;
}

.he-site-header {
  border-top: 6px solid #171717;
  background: #b91c1c;
  color: #ffffff;
}

.he-header-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.he-brand {
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 180ms ease;
}

.he-brand:hover,
.he-brand:focus-visible {
  color: #ffffff;
}

.he-brand img {
  display: block;
  width: min(360px, 45vw);
  height: auto;
}

.he-brand-copy {
  margin-top: 4px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.he-store-summary {
  min-width: 0;
  color: #ffffff;
  font-size: 14px;
  text-align: right;
}

.he-store-summary p {
  margin: 0;
}

.he-store-location {
  color: rgba(255, 255, 255, 0.78);
}

.he-store-hours {
  margin-top: 3px !important;
  color: #ffffff;
  font-weight: 700;
}

.he-store-hours span {
  color: #ffe0e0;
}

.he-header-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.he-action-link {
  min-height: 40px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.he-action-link:hover,
.he-action-link:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  color: #171717;
}

.he-action-link-primary {
  border-color: #171717;
  background: #171717;
  color: #ffffff;
}

.he-action-link-primary:hover,
.he-action-link-primary:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  color: #171717;
}

.he-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #171717;
  border-top: 1px solid #2f2f2f;
  border-bottom: 1px solid #2f2f2f;
}

.admin-bar .he-nav-wrap {
  top: 32px;
}

.he-global-nav {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.he-global-nav ul {
  margin: 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  list-style: none;
}

.he-global-nav li {
  min-width: 0;
}

.he-global-nav a {
  min-height: 52px;
  padding: 10px 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.he-global-nav a:hover,
.he-global-nav a:focus-visible {
  border-bottom-color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.he-global-nav .is-current a {
  border-bottom-color: #ffffff;
  background: #8f1515;
  color: #ffffff;
}

.he-concept {
  padding: 10px 16px;
  background: #8f1515;
  color: #ffffff;
  text-align: center;
  font-size: 14px;
}

.he-concept span {
  margin-right: 0.6em;
}

.he-concept strong {
  color: #ffffff;
  font-size: 15px;
}

/* 共通ヘッダー直後の余白をCocoon標準ヘッダー非表示後に再調整する。 */
.he-concept + .container #content,
.he-concept ~ .container #content {
  margin-top: 30px;
}

@media (hover: hover) and (pointer: fine) {
  .he-action-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 23, 23, 0.18);
  }

  .he-brand:hover {
    opacity: 0.86;
  }
}

.he-action-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(23, 23, 23, 0.18);
}

.he-action-link:active {
  transform: translateY(0);
  box-shadow: 0 3px 9px rgba(23, 23, 23, 0.14);
}

@media screen and (max-width: 800px) {
  .he-header-inner {
    align-items: flex-start;
    gap: 20px;
  }

  .he-brand img {
    width: min(300px, 44vw);
  }

  .he-store-location {
    display: none;
  }

  .he-header-actions {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 782px) {
  .admin-bar .he-nav-wrap {
    top: 46px;
  }
}

@media screen and (max-width: 640px) {
  .he-site-header {
    border-top-width: 4px;
  }

  .he-header-inner {
    width: min(100% - 24px, 560px);
    padding: 14px 0;
    display: block;
  }

  .he-brand {
    align-items: center;
    width: 100%;
  }

  .he-brand img {
    width: min(330px, 88vw);
  }

  .he-brand-copy {
    font-size: 13px;
    text-align: center;
  }

  .he-store-summary {
    margin-top: 12px;
    text-align: center;
  }

  .he-store-hours {
    font-size: 13px;
  }

  .he-header-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .he-action-link {
    min-height: 42px;
    padding: 7px 4px;
    font-size: 12px;
  }

  .he-global-nav ul {
    padding: 5px 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
  }

  .he-global-nav a {
    min-height: 39px;
    padding: 5px 2px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 11px;
    line-height: 1.2;
  }

  .he-global-nav a:hover,
  .he-global-nav a:focus-visible {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
  }

  .he-global-nav .is-current a {
    border-color: #ffffff;
    background: #8f1515;
    color: #ffffff;
  }

  .he-concept {
    padding: 7px 10px;
    font-size: 11px;
  }

  .he-concept span {
    display: none;
  }

  .he-concept strong {
    font-size: 12px;
  }

  .he-concept + .container #content,
  .he-concept ~ .container #content {
    margin-top: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .he-brand,
  .he-action-link,
  .he-global-nav a {
    transition: none !important;
    transform: none !important;
  }
}


/************************************
** ブログbody 枠仕上げ v1.4.1
** 情報ブロックは増やさず、白い紙面と赤枠で完成感を付与
************************************/

body,
body > .container,
.content {
  background-color: var(--he-bg) !important;
}

#content.content {
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
  padding-right: 0;
  padding-left: 0;
}

#content .content-in {
  position: relative;
  padding: 24px;
  background: var(--he-white);
  border: 1px solid var(--he-frame-line);
  border-top: 7px solid var(--he-red);
  border-radius: 14px;
  box-shadow: var(--he-frame-shadow);
}

@media screen and (min-width: 1024px) {
  #content .content-in {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
  }

  #content main.main {
    flex: 1 1 0;
    width: auto;
    max-width: none;
  }

  #content div.sidebar {
    flex: 0 0 300px;
    width: 300px;
  }
}

/* 記事一覧は、赤い上辺を持つ白いカードとして統一 */
.entry-card,
.related-entry-card {
  border-color: #ead5d7;
  border-top: 3px solid var(--he-red);
}

.entry-card-wrap:hover .entry-card,
.related-entry-card-wrap:hover .related-entry-card {
  border-color: var(--he-red);
}

/* サイドバーも紙面内の部品として赤い輪郭を共有 */
.sidebar .widget {
  border-color: #ead5d7;
  border-top: 3px solid var(--he-red);
  box-shadow: 0 7px 20px rgba(72, 0, 4, 0.055);
}

.sidebar .widget-title {
  border-left-width: 4px;
}

/* ページ送りの前に赤い区切りを置き、一覧の終端を明確化 */
.pagination {
  padding-top: 24px;
  border-top: 2px solid #f0c9cc;
}

@media screen and (max-width: 1023px) {
  #content.content {
    width: min(100% - 24px, 760px);
  }

  #content .content-in {
    padding: 18px;
  }
}

@media screen and (max-width: 640px) {
  #content.content {
    width: calc(100% - 16px);
    margin-top: 12px !important;
  }

  #content .content-in {
    padding: 10px;
    border-top-width: 5px;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(112, 0, 7, 0.07);
  }

  .entry-card,
  .related-entry-card,
  .sidebar .widget {
    border-top-width: 3px;
  }

  .pagination {
    padding-top: 18px;
  }
}

/************************************
** ブログbody 本サイト寄せ v1.4.2
** 赤い外周・白い大枠・薄赤のカード面へ統一
************************************/

/* 本サイトと同じ赤をページ外周に見せる */
body {
  background: var(--he-main-red) !important;
}

body > .container,
.content {
  background: transparent !important;
}

/* 白い大枠の中に、薄赤の一覧面を置く */
#content.content {
  width: min(1120px, calc(100% - 64px));
  margin-top: 34px !important;
  margin-bottom: 52px !important;
}

#content .content-in {
  overflow: hidden;
  padding: 24px;
  background: var(--he-main-surface);
  border: 1px solid var(--he-main-line);
  border-top: 8px solid var(--he-main-red);
  border-radius: 0;
  box-shadow: var(--he-main-shadow);
}

@media screen and (min-width: 1024px) {
  #content .content-in {
    gap: 24px;
  }

  #content main.main {
    flex: 1 1 0;
  }

  #content div.sidebar {
    flex: 0 0 300px;
    width: 300px;
  }
}

/* 本サイトのサービスカードに合わせ、カード単体の赤い上線は外す */
.entry-card,
.related-entry-card {
  border: 1px solid #dedede;
  border-top: 1px solid #dedede;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.05);
}

.entry-card-wrap:hover .entry-card,
.related-entry-card-wrap:hover .related-entry-card {
  transform: translateY(-2px);
  border-color: var(--he-main-red);
  box-shadow: 0 10px 24px rgba(82, 0, 6, 0.12);
}

.entry-card-thumb,
.related-entry-card-thumb,
.entry-card-thumb img,
.related-entry-card-thumb img {
  border-radius: 0;
}

.entry-card-content,
.related-entry-card-content {
  padding: 17px 18px 18px;
}

.cat-label,
.cat-link,
.entry-category {
  border-radius: 2px;
  background: #ffffff;
  border-color: var(--he-main-line);
  color: var(--he-main-red-dark);
}

/* 個別記事も本サイトの白いセクションとして表示 */
.article {
  padding: 32px 34px 40px;
  border: 1px solid #dedede;
  border-top: 8px solid var(--he-main-red);
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.055);
}

.article .entry-title {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--he-main-line);
}

.article h2 {
  padding: 17px 18px 15px;
  background: #ffffff;
  border-top: 5px solid var(--he-main-red);
  border-right: 1px solid var(--he-main-line);
  border-bottom: 1px solid var(--he-main-line);
  border-left: 1px solid var(--he-main-line);
  border-radius: 0;
}

.article h3 {
  padding-left: 14px;
  border-left: 5px solid var(--he-main-red);
  border-bottom-color: var(--he-main-line);
}

.eye-catch-wrap,
.article img,
.article pre,
.article .wp-block-preformatted,
.toc,
.toc-widget-box {
  border-radius: 0;
}

.toc,
.toc-widget-box {
  background: #ffffff;
  border-top: 5px solid var(--he-main-red);
}

/* サイドバーを白地＋赤線へ変更 */
.sidebar .widget {
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dedede;
  border-top: 5px solid var(--he-main-red);
  border-radius: 0;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.05);
}

.sidebar .widget-title {
  margin: -18px -18px 16px;
  padding: 14px 17px 12px;
  background: #ffffff;
  border-right: 0;
  border-bottom: 1px solid var(--he-main-line);
  border-left: 0;
  border-radius: 0;
  color: #171717;
}

.sidebar .widget img,
.search-box {
  border-radius: 0;
}

.widget_categories li,
.widget_recent_entries li,
.widget_new_entries li,
.widget_popular_entries li {
  border-bottom-color: #eeeeee;
}

.pagination {
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--he-main-line);
}

.pagination .current {
  background: var(--he-main-red);
  border-color: var(--he-main-red);
  color: #ffffff;
}

.pagination a:hover,
.pagination a:focus-visible {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

@media screen and (max-width: 1023px) {
  #content.content {
    width: min(100% - 32px, 760px);
  }

  #content .content-in {
    padding: 18px;
  }
}

@media screen and (max-width: 640px) {
  #content.content {
    width: calc(100% - 16px);
    margin-top: 10px !important;
    margin-bottom: 28px !important;
  }

  #content .content-in {
    padding: 10px;
    border-top-width: 6px;
  }

  .article {
    padding: 22px 18px 30px;
    border-top-width: 6px;
  }

  .article h2 {
    padding: 13px 12px 12px;
    border-top-width: 4px;
  }

  .entry-card-content,
  .related-entry-card-content {
    padding: 16px;
  }

  .sidebar .widget {
    padding: 16px;
  }

  .sidebar .widget-title {
    margin: -16px -16px 14px;
    padding: 12px 14px 11px;
  }
}

/************************************
** 個別記事body仕上げ v1.5.0
** ブログトップには影響させず、single-postだけを本サイトの
** 「赤い区切り・白い情報面・黒文字」へ統一する
************************************/
.single-post #content .content-in {
  align-items: flex-start;
}

.single-post main.main {
  background: transparent;
}

.single-post .article {
  padding: 30px 34px 38px;
  border: 1px solid #dedede;
  border-top: 8px solid var(--he-main-red, #b51217);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(72, 0, 6, 0.07);
}

.single-post .article-header {
  margin-bottom: 26px;
}

.single-post .article .entry-title {
  margin: 0 0 12px;
  padding: 0 0 17px;
  border-bottom: 3px solid var(--he-main-red, #b51217);
  color: #1f1f1f;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.42;
  letter-spacing: 0.01em;
}

.single-post .date-tags,
.single-post .entry-categories-tags,
.single-post .entry-categories,
.single-post .entry-tags {
  color: #666666;
  font-size: 13px;
}

.single-post .date-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 10px;
}

.single-post .post-date,
.single-post .post-update {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #e3c9cb;
  border-radius: 2px;
  background: #fff8f8;
  color: #5a3a3c;
}

.single-post .eye-catch-wrap {
  margin: 24px 0 30px;
  border: 1px solid #e2e2e2;
  border-radius: 0;
  background: #ffffff;
}

.single-post .eye-catch-wrap img {
  display: block;
  width: 100%;
  border-radius: 0;
}

.single-post .article p,
.single-post .article li {
  color: #333333;
  font-size: 16px;
  line-height: 1.95;
}

.single-post .article p {
  margin-top: 1.15em;
  margin-bottom: 1.15em;
}

.single-post .article h2 {
  margin: 2.8em 0 1.15em;
  padding: 17px 18px 15px;
  border-top: 6px solid var(--he-main-red, #b51217);
  border-right: 1px solid #e1d0d1;
  border-bottom: 1px solid #e1d0d1;
  border-left: 1px solid #e1d0d1;
  border-radius: 0;
  background: #ffffff;
  color: #202020;
  font-size: clamp(22px, 2.3vw, 29px);
  line-height: 1.55;
}

.single-post .article h3 {
  margin: 2.25em 0 0.95em;
  padding: 3px 0 9px 14px;
  border-left: 6px solid var(--he-main-red, #b51217);
  border-bottom: 1px solid #e4c8ca;
  color: #252525;
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.55;
}

.single-post .article h4 {
  margin-top: 2em;
  padding-left: 12px;
  border-left: 3px solid #d97a7e;
  color: #2b2b2b;
}

.single-post .article hr {
  margin: 2.2em 0;
  border: 0;
  border-top: 1px solid #e6cacc;
}

.single-post .toc {
  margin: 28px 0 34px;
  padding: 20px 22px 22px;
  border: 1px solid #dfb6b9;
  border-top: 6px solid var(--he-main-red, #b51217);
  border-radius: 0;
  background: #fff7f7;
  box-shadow: none;
}

.single-post .toc-title {
  padding-bottom: 11px;
  border-bottom: 1px solid #e7cfd1;
  color: #222222;
  font-size: 18px;
  font-weight: 800;
}

.single-post .toc-list,
.single-post .toc-list ul {
  margin-top: 10px;
}

.single-post .toc a {
  color: #333333;
  text-decoration: none;
}

.single-post .toc a:hover,
.single-post .toc a:focus-visible {
  color: var(--he-main-red, #b51217);
  text-decoration: underline;
}

.single-post .article blockquote {
  margin: 1.8em 0;
  padding: 18px 20px;
  border-top: 1px solid #e6cacc;
  border-right: 1px solid #e6cacc;
  border-bottom: 1px solid #e6cacc;
  border-left: 6px solid var(--he-main-red, #b51217);
  border-radius: 0;
  background: #fff8f8;
  color: #454545;
}

.single-post .article table {
  width: 100%;
  margin: 1.6em 0;
  border-collapse: collapse;
  background: #ffffff;
}

.single-post .article th {
  border-color: #8e1115;
  background: var(--he-main-red, #b51217);
  color: #ffffff;
}

.single-post .article th,
.single-post .article td {
  padding: 12px 13px;
  border: 1px solid #d8c7c8;
  vertical-align: top;
}

.single-post .article pre,
.single-post .article .wp-block-preformatted {
  border: 1px solid #dedede;
  border-left: 5px solid var(--he-main-red, #b51217);
  border-radius: 0;
  background: #f7f7f7;
}

.single-post .article .wp-block-button__link,
.single-post .article a.wp-element-button {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--he-main-red, #b51217);
  border-radius: 999px;
  background: var(--he-main-red, #b51217);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.single-post .article .wp-block-button__link:hover,
.single-post .article .wp-block-button__link:focus-visible,
.single-post .article a.wp-element-button:hover,
.single-post .article a.wp-element-button:focus-visible {
  transform: translateY(-2px);
  background: #171717;
  border-color: #171717;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.single-post .entry-categories,
.single-post .entry-tags,
.single-post .footer-meta {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #ead6d7;
}

.single-post .tag-link {
  border-radius: 2px;
  background: #fff8f8;
  border-color: #e2c7c9;
  color: #6d1c20;
}

.single-post .tag-link:hover,
.single-post .tag-link:focus-visible {
  background: var(--he-main-red, #b51217);
  border-color: var(--he-main-red, #b51217);
  color: #ffffff;
}

.single-post .related-entry-heading,
.single-post .comment-title,
.single-post .sns-share-message,
.single-post .sns-follow-message {
  margin-top: 38px;
  padding: 14px 16px 12px;
  border-top: 5px solid var(--he-main-red, #b51217);
  border-right: 1px solid #e2d0d1;
  border-bottom: 1px solid #e2d0d1;
  border-left: 1px solid #e2d0d1;
  background: #ffffff;
  color: #202020;
  font-weight: 800;
}

.single-post .related-entry-card,
.single-post .pager-post-navi a {
  border: 1px solid #dedede;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.05);
}

.single-post .related-entry-card-wrap:hover .related-entry-card,
.single-post .pager-post-navi a:hover,
.single-post .pager-post-navi a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--he-main-red, #b51217);
  box-shadow: 0 9px 20px rgba(82, 0, 6, 0.12);
}

.single-post .pager-post-navi {
  gap: 14px;
  margin-top: 34px;
}

.single-post .pager-post-navi a {
  min-height: 88px;
  padding: 14px 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.single-post .author-box {
  margin-top: 34px;
  padding: 20px;
  border: 1px solid #dedede;
  border-top: 5px solid var(--he-main-red, #b51217);
  border-radius: 0;
  background: #ffffff;
}

@media screen and (max-width: 834px) {
  .single-post .article {
    padding: 24px 20px 30px;
    border-top-width: 6px;
  }

  .single-post .article .entry-title {
    font-size: clamp(25px, 7vw, 32px);
  }

  .single-post .article h2 {
    margin-top: 2.35em;
    padding: 14px 13px 13px;
    border-top-width: 5px;
    font-size: 22px;
  }

  .single-post .article h3 {
    font-size: 19px;
  }

  .single-post .toc {
    padding: 18px 16px 20px;
  }

  .single-post .pager-post-navi {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .single-post .article {
    padding: 21px 16px 27px;
  }

  .single-post .article p,
  .single-post .article li {
    font-size: 15px;
    line-height: 1.9;
  }

  .single-post .date-tags {
    gap: 6px 8px;
  }

  .single-post .post-date,
  .single-post .post-update {
    min-height: 28px;
    padding: 3px 8px;
    font-size: 12px;
  }

  .single-post .related-entry-heading,
  .single-post .comment-title,
  .single-post .sns-share-message,
  .single-post .sns-follow-message {
    margin-top: 30px;
  }
}

/************************************
** 個別記事の見出し強調 v1.5.1
** 個別記事のみ。ブログトップ・共通ヘッダーには影響しない。
************************************/
.single-post .article h2 {
  position: relative;
  margin: 2.9em 0 1.2em;
  padding: 17px 20px 16px;
  border: 0;
  border-left: 9px solid #7d0b0f;
  border-radius: 0;
  background: var(--he-main-red, #b51217);
  color: #ffffff;
  font-size: clamp(23px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.02em;
  box-shadow: 0 5px 13px rgba(82, 0, 6, 0.16);
}

.single-post .article h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 3px;
  background: #ead0d2;
}

.single-post .article h2 a,
.single-post .article h2 a:hover,
.single-post .article h2 a:focus-visible {
  color: #ffffff;
}

.single-post .article h3 {
  margin: 2.35em 0 1em;
  padding: 12px 15px 11px 17px;
  border-top: 1px solid #e2c5c7;
  border-right: 1px solid #e2c5c7;
  border-bottom: 3px solid var(--he-main-red, #b51217);
  border-left: 7px solid var(--he-main-red, #b51217);
  border-radius: 0;
  background: #fff7f7;
  color: #252525;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 800;
  line-height: 1.55;
}

.single-post .article h4 {
  margin: 2em 0 0.9em;
  padding: 9px 12px 8px;
  border: 0;
  border-left: 4px solid var(--he-main-red, #b51217);
  border-bottom: 1px solid #e1c9cb;
  background: #fffafa;
  color: #5f1115;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6;
}

@media screen and (max-width: 834px) {
  .single-post .article h2 {
    margin-top: 2.45em;
    padding: 14px 15px 13px;
    border-left-width: 7px;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(82, 0, 6, 0.14);
  }

  .single-post .article h3 {
    padding: 10px 12px 9px 14px;
    border-left-width: 6px;
    font-size: 19px;
  }

  .single-post .article h4 {
    font-size: 17px;
  }
}

/************************************
** 個別記事の読了後導線・関連ナビゲーション v1.5.2
** 個別記事のみ。ブログトップ・共通ヘッダー・記事一覧には影響しない。
************************************/
.single-post .toc {
  position: relative;
  margin: 34px 0 42px;
  padding: 24px 26px 25px;
  border: 1px solid #dfc5c7;
  border-top: 7px solid var(--he-main-red, #b51217);
  border-radius: 0;
  background: #fffafa;
  box-shadow: 0 7px 18px rgba(82, 0, 6, 0.07);
}

.single-post .toc-title {
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 1px solid #e6cfd1;
  color: #202020;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.single-post .toc-list,
.single-post .toc-list ul {
  margin-top: 8px;
}

.single-post .toc-list li {
  margin: 0;
  padding: 3px 0;
  line-height: 1.7;
}

.single-post .toc-list a {
  color: #3b2526;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 3px;
}

.single-post .toc-list a:hover,
.single-post .toc-list a:focus-visible {
  color: var(--he-main-red, #b51217);
  text-decoration: underline;
}

.single-post .related-entry-heading,
.single-post .comment-title,
.single-post .sns-share-message,
.single-post .sns-follow-message {
  margin-top: 42px;
  padding: 13px 16px 12px;
  border: 0;
  border-left: 8px solid #7d0b0f;
  background: var(--he-main-red, #b51217);
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.5;
  box-shadow: 0 5px 13px rgba(82, 0, 6, 0.12);
}

.single-post .related-entry-heading a,
.single-post .comment-title a,
.single-post .sns-share-message a,
.single-post .sns-follow-message a {
  color: #ffffff;
}

.single-post .related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.single-post .related-entry-card-wrap {
  min-width: 0;
  margin: 0;
}

.single-post .related-entry-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid #dfd5d5;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.single-post .related-entry-card-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.single-post .related-entry-card-content {
  padding: 13px 14px 15px;
}

.single-post .related-entry-card-title {
  color: #232323;
  font-weight: 800;
  line-height: 1.6;
}

.single-post .related-entry-card-snippet {
  margin-top: 7px;
  color: #595959;
  font-size: 14px;
  line-height: 1.7;
}

.single-post .related-entry-card-wrap:hover .related-entry-card,
.single-post .related-entry-card-wrap:focus-within .related-entry-card {
  transform: translateY(-3px);
  border-color: var(--he-main-red, #b51217);
  box-shadow: 0 10px 22px rgba(82, 0, 6, 0.12);
}

.single-post .pager-post-navi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 3px solid var(--he-main-red, #b51217);
}

.single-post .pager-post-navi a {
  position: relative;
  min-height: 102px;
  padding: 34px 17px 16px;
  overflow: hidden;
  border: 1px solid #ded3d4;
  border-radius: 0;
  background: #ffffff;
  color: #242424;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.single-post .pager-post-navi .prev-post-title,
.single-post .pager-post-navi .next-post-title {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  min-height: 25px;
  margin: 0;
  padding: 3px 10px;
  background: #fff2f2;
  color: #741015;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.single-post .pager-post-navi a:hover,
.single-post .pager-post-navi a:focus-visible {
  transform: translateY(-3px);
  border-color: var(--he-main-red, #b51217);
  color: #242424;
  box-shadow: 0 10px 22px rgba(82, 0, 6, 0.12);
}

.single-post .he-hlab-article-cta {
  position: relative;
  margin: 46px 0 10px;
  padding: 30px 32px 31px;
  overflow: hidden;
  border: 1px solid #d9c3c4;
  border-top: 8px solid var(--he-main-red, #b51217);
  border-radius: 0;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f1 58%, #fff0d9 100%);
  box-shadow: 0 10px 25px rgba(82, 0, 6, 0.11);
}

.single-post .he-hlab-article-cta::after {
  content: "";
  position: absolute;
  top: -42px;
  right: -42px;
  width: 150px;
  height: 150px;
  border: 26px solid rgba(181, 18, 23, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.single-post .he-hlab-article-cta__label {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px;
  border: 1px solid #e0c1c3;
  border-radius: 999px;
  background: #ffffff;
  color: #721015;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.single-post .he-hlab-article-cta__title {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: #202020;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.single-post .article .he-hlab-article-cta__copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  color: #3d3434;
  font-size: 16px;
  line-height: 1.9;
}

.single-post .he-hlab-article-cta__action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 20px;
  padding: 10px 22px;
  border: 1px solid var(--he-main-red, #b51217);
  border-radius: 0;
  background: var(--he-main-red, #b51217);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.single-post .he-hlab-article-cta__action::after {
  content: "›";
  margin-left: 9px;
  font-size: 22px;
  line-height: 1;
}

.single-post .he-hlab-article-cta__action:hover,
.single-post .he-hlab-article-cta__action:focus-visible {
  transform: translateY(-2px);
  border-color: #171717;
  background: #171717;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

@media screen and (max-width: 834px) {
  .single-post .toc {
    margin: 28px 0 35px;
    padding: 20px 18px 21px;
    border-top-width: 6px;
  }

  .single-post .toc-title {
    font-size: 19px;
  }

  .single-post .related-entry-heading,
  .single-post .comment-title,
  .single-post .sns-share-message,
  .single-post .sns-follow-message {
    margin-top: 34px;
    padding: 11px 13px 10px;
    border-left-width: 7px;
    font-size: 19px;
  }

  .single-post .related-list,
  .single-post .pager-post-navi {
    grid-template-columns: 1fr;
  }

  .single-post .pager-post-navi a {
    min-height: 92px;
  }

  .single-post .he-hlab-article-cta {
    margin-top: 38px;
    padding: 25px 22px 26px;
    border-top-width: 7px;
  }

  .single-post .he-hlab-article-cta__title {
    font-size: 27px;
  }
}

@media screen and (max-width: 480px) {
  .single-post .toc {
    padding: 18px 15px 19px;
  }

  .single-post .toc-list li {
    padding: 2px 0;
  }

  .single-post .related-entry-card-content {
    padding: 12px 12px 14px;
  }

  .single-post .he-hlab-article-cta {
    padding: 22px 17px 23px;
  }

  .single-post .he-hlab-article-cta__title {
    font-size: 24px;
  }

  .single-post .article .he-hlab-article-cta__copy {
    font-size: 15px;
    line-height: 1.85;
  }

  .single-post .he-hlab-article-cta__action {
    width: 100%;
  }
}

/************************************
** 関連記事・前後記事の表示崩れ修正 v1.5.3
** Cocoonの関連記事表示タイプ（ミニカード等）の幅指定を個別記事内だけで解除。
************************************/
.single-post .related-list {
  align-items: stretch;
}

.single-post .related-list .related-entry-card-wrap {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

.single-post .related-list .related-entry-card {
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: stretch;
  min-height: 126px;
}

.single-post .related-list .related-entry-card-thumb {
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100%;
  margin: 0 !important;
}

.single-post .related-list .related-entry-card-thumb img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 126px;
  aspect-ratio: auto;
  object-fit: cover;
}

.single-post .related-list .related-entry-card-content {
  min-width: 0;
  height: auto !important;
  margin: 0 !important;
  padding: 15px 16px 14px;
}

.single-post .related-list .related-entry-card-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: normal;
}

.single-post .related-list .related-entry-card-snippet {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* 前後記事：記事タイトルをラベル扱いした誤指定を解除 */
.single-post .pager-post-navi a {
  display: flex !important;
  align-items: stretch;
  min-width: 0;
  min-height: 118px;
  padding: 31px 12px 12px !important;
}

.single-post .pager-post-navi a.prev-post {
  flex-direction: row !important;
}

.single-post .pager-post-navi a.next-post {
  flex-direction: row-reverse !important;
}

.single-post .pager-post-navi a::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: block;
  min-height: 27px;
  padding: 4px 11px 3px;
  border-bottom: 1px solid #ead6d7;
  background: #fff2f2;
  color: #741015;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.single-post .pager-post-navi a.prev-post::before {
  content: "前の記事";
}

.single-post .pager-post-navi a.next-post::before {
  content: "次の記事";
  text-align: right;
}

.single-post .pager-post-navi a figure {
  flex: 0 0 38%;
  width: 38% !important;
  min-width: 38% !important;
  max-width: 38% !important;
  margin: 0 !important;
  overflow: hidden;
}

.single-post .pager-post-navi a figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 74px;
  object-fit: cover;
}

.single-post .pager-post-navi .prev-post-title,
.single-post .pager-post-navi .next-post-title {
  position: static !important;
  display: -webkit-box;
  align-self: center;
  min-width: 0;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  overflow: hidden;
  border: 0 !important;
  background: transparent !important;
  color: #242424 !important;
  font-size: 15px !important;
  font-weight: 800;
  line-height: 1.55 !important;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

@media screen and (max-width: 834px) {
  .single-post .related-list .related-entry-card {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .single-post .related-list .related-entry-card-thumb img {
    min-height: 112px;
  }

  .single-post .pager-post-navi a figure {
    flex-basis: 34%;
    width: 34% !important;
    min-width: 34% !important;
    max-width: 34% !important;
  }
}

@media screen and (max-width: 480px) {
  .single-post .related-list .related-entry-card {
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 104px;
  }

  .single-post .related-list .related-entry-card-thumb img {
    min-height: 104px;
  }

  .single-post .related-list .related-entry-card-content {
    padding: 12px 12px 11px;
  }

  .single-post .related-list .related-entry-card-title {
    font-size: 15px;
    line-height: 1.5;
  }

  .single-post .related-list .related-entry-card-snippet {
    display: none;
  }

  .single-post .pager-post-navi a {
    min-height: 102px;
  }

  .single-post .pager-post-navi a figure {
    flex-basis: 32%;
    width: 32% !important;
    min-width: 32% !important;
    max-width: 32% !important;
  }

  .single-post .pager-post-navi .prev-post-title,
  .single-post .pager-post-navi .next-post-title {
    padding: 7px 10px !important;
    font-size: 14px !important;
  }
}

/************************************
** ブログbody 本サイト構造へ再統一 v1.6.0
** PCのみ、本サイトTOPと同じ「左右の赤帯・中央の薄いグレー面」へ変更。
** content-inを囲っていた赤い大枠は撤去し、記事とサイドバーを直接配置する。
** 1023px以下の既存表示には影響させない。
************************************/
@media screen and (min-width: 1024px) {
  body {
    background: #ffffff !important;
  }

  body > .container {
    --he-blog-side-band: clamp(18px, 3vw, 58px);
    background: linear-gradient(
      90deg,
      var(--he-main-red, #cf0018) 0,
      var(--he-main-red, #cf0018) var(--he-blog-side-band),
      #f3f3f3 var(--he-blog-side-band),
      #f3f3f3 calc(100% - var(--he-blog-side-band)),
      var(--he-main-red, #cf0018) calc(100% - var(--he-blog-side-band)),
      var(--he-main-red, #cf0018) 100%
    ) !important;
  }

  .he-concept + .container #content,
  .he-concept ~ .container #content,
  #content.content {
    width: min(1200px, calc(100% - 112px));
    max-width: 1200px;
    margin-top: 0 !important;
    margin-right: auto !important;
    margin-bottom: 0 !important;
    margin-left: auto !important;
    padding: 44px 0 58px;
    box-sizing: border-box;
    background: transparent !important;
  }

  #content .content-in {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #content main.main {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  #content div.sidebar {
    flex: 0 0 300px;
    width: 300px;
    min-width: 300px;
  }

  .single-post .article,
  .archive main.main,
  .blog main.main,
  .search main.main {
    border-radius: 0;
  }

  .single-post .article {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.055);
  }

  .sidebar .widget {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.045);
  }
}


/************************************
** ブログカード 薄ピンクフレーム v1.6.1
** ブログ一覧カードと個別記事の関連記事カードだけを対象にする。
** カード幅・列数・本文・サイドバー・前後記事には影響させない。
************************************/

/* ブログトップ・カテゴリー・検索結果の記事カード */
body.home .entry-card,
body.blog .entry-card,
body.archive .entry-card,
body.search .entry-card {
  border-color: var(--he-blog-card-pink-line);
  box-shadow:
    0 0 0 5px var(--he-blog-card-pink),
    0 0 0 6px var(--he-blog-card-pink-line),
    0 7px 18px rgba(58, 0, 5, 0.07);
}

body.home .entry-card-wrap:hover .entry-card,
body.home .entry-card-wrap:focus-within .entry-card,
body.blog .entry-card-wrap:hover .entry-card,
body.blog .entry-card-wrap:focus-within .entry-card,
body.archive .entry-card-wrap:hover .entry-card,
body.archive .entry-card-wrap:focus-within .entry-card,
body.search .entry-card-wrap:hover .entry-card,
body.search .entry-card-wrap:focus-within .entry-card {
  border-color: var(--he-main-red, #cf0018);
  box-shadow:
    0 0 0 5px var(--he-blog-card-pink-hover),
    0 0 0 6px var(--he-main-red, #cf0018),
    0 11px 24px rgba(82, 0, 6, 0.12);
}

/* 個別記事下の関連記事カード */
.single-post .related-list .related-entry-card {
  border-color: var(--he-blog-card-pink-line);
  box-shadow:
    0 0 0 5px var(--he-blog-card-pink),
    0 0 0 6px var(--he-blog-card-pink-line),
    0 7px 18px rgba(58, 0, 5, 0.07);
}

.single-post .related-list .related-entry-card-wrap:hover .related-entry-card,
.single-post .related-list .related-entry-card-wrap:focus-within .related-entry-card {
  border-color: var(--he-main-red, #cf0018);
  box-shadow:
    0 0 0 5px var(--he-blog-card-pink-hover),
    0 0 0 6px var(--he-main-red, #cf0018),
    0 11px 24px rgba(82, 0, 6, 0.12);
}

@media screen and (max-width: 640px) {
  body.home .entry-card,
  body.blog .entry-card,
  body.archive .entry-card,
  body.search .entry-card,
  .single-post .related-list .related-entry-card {
    box-shadow:
      0 0 0 4px var(--he-blog-card-pink),
      0 0 0 5px var(--he-blog-card-pink-line),
      0 6px 15px rgba(58, 0, 5, 0.065);
  }

  body.home .entry-card-wrap:hover .entry-card,
  body.home .entry-card-wrap:focus-within .entry-card,
  body.blog .entry-card-wrap:hover .entry-card,
  body.blog .entry-card-wrap:focus-within .entry-card,
  body.archive .entry-card-wrap:hover .entry-card,
  body.archive .entry-card-wrap:focus-within .entry-card,
  body.search .entry-card-wrap:hover .entry-card,
  body.search .entry-card-wrap:focus-within .entry-card,
  .single-post .related-list .related-entry-card-wrap:hover .related-entry-card,
  .single-post .related-list .related-entry-card-wrap:focus-within .related-entry-card {
    box-shadow:
      0 0 0 4px var(--he-blog-card-pink-hover),
      0 0 0 5px var(--he-main-red, #cf0018),
      0 8px 18px rgba(82, 0, 6, 0.10);
  }
}


/************************************
** ブログサイドバー仕上げ v1.6.2
** Cocoon標準の詰まった表示を整理し、本サイトと同じ
** 「赤い見出し・白い情報面・淡いピンクの輪郭」へ統一する。
** 本文幅・記事カード・ヘッダー・列数には影響させない。
************************************/

/* ウィジェット全体 */
.sidebar .widget {
  overflow: hidden;
  padding: 0 18px 18px;
  background: #ffffff;
  border: 1px solid var(--he-sidebar-line);
  border-top: 0;
  border-radius: 0;
  box-shadow:
    0 0 0 4px var(--he-sidebar-pink),
    0 0 0 5px var(--he-sidebar-line),
    0 7px 18px rgba(58, 0, 5, 0.065);
}

.sidebar .widget-title {
  margin: 0 -18px 18px;
  padding: 13px 16px 12px;
  background: var(--he-main-red, #cf0018);
  border: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.03em;
}

/* 検索 */
.sidebar .search-box {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 46px;
  background: #ffffff;
  border: 1px solid var(--he-sidebar-line);
  border-radius: 0;
}

.sidebar .search-edit {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 8px 12px;
  background: #ffffff;
  border: 0;
  color: #222222;
}

.sidebar .search-submit {
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  min-height: 46px;
  background: #111111;
  border: 0;
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.sidebar .search-submit:hover,
.sidebar .search-submit:focus-visible {
  background: var(--he-main-red, #cf0018);
  color: #ffffff;
}

/* カテゴリー・アーカイブ */
.sidebar .widget_categories > ul,
.sidebar .widget_archive > ul,
.sidebar .widget_pages > ul,
.sidebar .widget_nav_menu > div > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar .widget_categories > ul > li,
.sidebar .widget_archive > ul > li,
.sidebar .widget_pages > ul > li,
.sidebar .widget_nav_menu > div > ul > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 0;
  padding: 0 4px;
  border-bottom: 1px solid var(--he-sidebar-line-soft);
  color: #777777;
  font-size: 13px;
}

.sidebar .widget_categories > ul > li:last-child,
.sidebar .widget_archive > ul > li:last-child,
.sidebar .widget_pages > ul > li:last-child,
.sidebar .widget_nav_menu > div > ul > li:last-child {
  border-bottom: 0;
}

.sidebar .widget_categories > ul > li > a,
.sidebar .widget_archive > ul > li > a,
.sidebar .widget_pages > ul > li > a,
.sidebar .widget_nav_menu > div > ul > li > a {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 9px 4px 9px 17px;
  color: #222222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  text-decoration: none;
}

.sidebar .widget_categories > ul > li > a::before,
.sidebar .widget_archive > ul > li > a::before,
.sidebar .widget_pages > ul > li > a::before,
.sidebar .widget_nav_menu > div > ul > li > a::before {
  position: absolute;
  top: 50%;
  left: 1px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--he-main-red, #cf0018);
  border-right: 2px solid var(--he-main-red, #cf0018);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.sidebar .widget_categories > ul > li > a:hover,
.sidebar .widget_categories > ul > li > a:focus-visible,
.sidebar .widget_archive > ul > li > a:hover,
.sidebar .widget_archive > ul > li > a:focus-visible,
.sidebar .widget_pages > ul > li > a:hover,
.sidebar .widget_pages > ul > li > a:focus-visible,
.sidebar .widget_nav_menu > div > ul > li > a:hover,
.sidebar .widget_nav_menu > div > ul > li > a:focus-visible {
  color: var(--he-main-red, #cf0018);
}

.sidebar .widget_categories .children,
.sidebar .widget_nav_menu .sub-menu {
  grid-column: 1 / -1;
  margin: 0 0 8px 16px;
  padding-left: 10px;
  border-left: 2px solid var(--he-sidebar-line-soft);
  list-style: none;
}

/* 新着・人気記事 */
.sidebar .widget-entry-cards,
.sidebar .popular-entry-cards,
.sidebar .new-entry-cards {
  margin: 0;
}

.sidebar .widget-entry-card-wrap,
.sidebar .popular-entry-card-wrap,
.sidebar .new-entry-card-wrap {
  display: block;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--he-sidebar-line-soft);
  color: inherit;
  text-decoration: none;
}

.sidebar .widget-entry-card-wrap:last-child,
.sidebar .popular-entry-card-wrap:last-child,
.sidebar .new-entry-card-wrap:last-child {
  border-bottom: 0;
}

.sidebar .widget-entry-card,
.sidebar .popular-entry-card,
.sidebar .new-entry-card {
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  width: 100% !important;
  min-width: 0;
  padding: 0 !important;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.sidebar .widget-entry-card-thumb,
.sidebar .popular-entry-card-thumb,
.sidebar .new-entry-card-thumb {
  position: relative;
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  margin: 0 !important;
  overflow: hidden;
  background: #f3f3f3;
  border: 1px solid var(--he-sidebar-line-soft);
}

.sidebar .widget-entry-card-thumb img,
.sidebar .popular-entry-card-thumb img,
.sidebar .new-entry-card-thumb img {
  display: block;
  width: 100% !important;
  height: 62px !important;
  max-height: 62px !important;
  object-fit: cover;
  border-radius: 0;
}

.sidebar .widget-entry-card-content,
.sidebar .popular-entry-card-content,
.sidebar .new-entry-card-content {
  min-width: 0;
  padding: 0 !important;
}

.sidebar .widget-entry-card-title,
.sidebar .popular-entry-card-title,
.sidebar .new-entry-card-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #222222;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.sidebar .widget-entry-card-wrap:hover .widget-entry-card-title,
.sidebar .widget-entry-card-wrap:focus-within .widget-entry-card-title,
.sidebar .popular-entry-card-wrap:hover .popular-entry-card-title,
.sidebar .popular-entry-card-wrap:focus-within .popular-entry-card-title,
.sidebar .new-entry-card-wrap:hover .new-entry-card-title,
.sidebar .new-entry-card-wrap:focus-within .new-entry-card-title {
  color: var(--he-main-red, #cf0018);
}

.sidebar .card-thumb-rank,
.sidebar .ranking-number {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  background: var(--he-main-red, #cf0018);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}

/* セレクト・タグ・バナー */
.sidebar select {
  width: 100%;
  min-height: 44px;
  padding: 8px 36px 8px 11px;
  background: #ffffff;
  border: 1px solid var(--he-sidebar-line);
  border-radius: 0;
  color: #222222;
}

.sidebar .tagcloud a,
.sidebar .tag-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 3px 2px;
  padding: 5px 9px;
  background: var(--he-sidebar-pink);
  border: 1px solid var(--he-sidebar-line);
  color: #333333;
  font-size: 12px !important;
  text-decoration: none;
}

.sidebar .tagcloud a:hover,
.sidebar .tagcloud a:focus-visible,
.sidebar .tag-link:hover,
.sidebar .tag-link:focus-visible {
  background: var(--he-main-red, #cf0018);
  border-color: var(--he-main-red, #cf0018);
  color: #ffffff;
}

.sidebar .widget a > img,
.sidebar .widget_media_image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--he-sidebar-line-soft);
  border-radius: 0;
  transition: opacity 0.2s ease;
}

.sidebar .widget a:hover > img,
.sidebar .widget a:focus-visible > img {
  opacity: 0.9;
}

@media screen and (max-width: 640px) {
  .sidebar .widget {
    padding: 0 16px 16px;
    box-shadow:
      0 0 0 3px var(--he-sidebar-pink),
      0 0 0 4px var(--he-sidebar-line),
      0 6px 15px rgba(58, 0, 5, 0.06);
  }

  .sidebar .widget-title {
    margin: 0 -16px 16px;
    padding: 12px 14px 11px;
    font-size: 16px;
  }

  .sidebar .widget-entry-card,
  .sidebar .popular-entry-card,
  .sidebar .new-entry-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .sidebar .widget-entry-card-thumb,
  .sidebar .popular-entry-card-thumb,
  .sidebar .new-entry-card-thumb {
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
  }

  .sidebar .widget-entry-card-thumb img,
  .sidebar .popular-entry-card-thumb img,
  .sidebar .new-entry-card-thumb img {
    height: 70px !important;
    max-height: 70px !important;
  }

  .sidebar .widget-entry-card-title,
  .sidebar .popular-entry-card-title,
  .sidebar .new-entry-card-title {
    font-size: 14px;
  }
}


/************************************
** ブログサイドバー件数・外枠調整 v1.6.3
** PC表示だけ、カテゴリー名と件数を分離して右端へ固定する。
** スマートフォン・タブレットの表示には触れない。
************************************/
@media screen and (min-width: 1024px) {
  /* 外枠は多重線をやめ、細いピンク枠＋弱い影の一段構成にする */
  .sidebar .widget {
    box-shadow: 0 7px 18px rgba(58, 0, 5, 0.065);
  }

  /*
   * WordPress標準カテゴリーウィジェットの件数は、リンク直後の
   * テキストとして出力される。flexの匿名アイテムとして右端へ置き、
   * リンク側には件数分の独立した余白を確保する。
   */
  .sidebar .widget_categories > ul > li,
  .sidebar .widget_archive > ul > li,
  .sidebar .widget_pages > ul > li,
  .sidebar .widget_nav_menu > div > ul > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    column-gap: 14px;
    min-height: 52px;
    padding: 0 8px 0 4px;
    color: #666666;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
  }

  .sidebar .widget_categories > ul > li > a,
  .sidebar .widget_archive > ul > li > a,
  .sidebar .widget_pages > ul > li > a,
  .sidebar .widget_nav_menu > div > ul > li > a {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 52px;
    padding: 10px 8px 10px 18px;
    line-height: 1.65;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .sidebar .widget_categories .children,
  .sidebar .widget_nav_menu .sub-menu {
    flex: 0 0 100%;
    width: 100%;
  }
}

/************************************
** サイドバーカテゴリー件数非表示 v1.6.4
** カテゴリー名の右側に表示される記事件数だけを隠す。
** 見出し帯・矢印・区切り線・カード幅は変更しない。
************************************/
.sidebar .widget_categories .post-count,
.sidebar .widget_categories .count,
.sidebar .widget_categories .cat-count {
  display: none !important;
}

/* WordPress標準カテゴリーウィジェットの件数がテキストノードの場合にも対応 */
.sidebar .widget_categories li {
  font-size: 0;
}

.sidebar .widget_categories li > a {
  font-size: 14px;
}

@media screen and (min-width: 1024px) {
  .sidebar .widget_categories > ul > li {
    justify-content: flex-start;
    column-gap: 0;
    padding-right: 4px;
    text-align: left;
    white-space: normal;
  }

  .sidebar .widget_categories > ul > li > a {
    flex: 1 1 100%;
    width: 100%;
    padding-right: 8px;
  }
}

/************************************
** ブログ下部ナビゲーション仕上げ v1.7.0
** ページ送り・パンくず・フッター前余白だけを整える。
** 記事カード・サイドバー・本文幅・列数には影響させない。
************************************/

/* 一覧ページのページ送り */
body.home .pagination,
body.blog .pagination,
body.archive .pagination,
body.search .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 46px auto 6px;
  padding: 26px 0 0;
  border-top: 2px solid var(--he-bottom-nav-line);
}

body.home .pagination .page-numbers,
body.blog .pagination .page-numbers,
body.archive .pagination .page-numbers,
body.search .pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--he-bottom-nav-line);
  border-radius: 0;
  background: #ffffff;
  color: #202020;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

body.home .pagination .current,
body.blog .pagination .current,
body.archive .pagination .current,
body.search .pagination .current {
  border-color: var(--he-main-red, #cf0018);
  background: var(--he-main-red, #cf0018);
  color: #ffffff;
}

body.home .pagination a.page-numbers:hover,
body.home .pagination a.page-numbers:focus-visible,
body.blog .pagination a.page-numbers:hover,
body.blog .pagination a.page-numbers:focus-visible,
body.archive .pagination a.page-numbers:hover,
body.archive .pagination a.page-numbers:focus-visible,
body.search .pagination a.page-numbers:hover,
body.search .pagination a.page-numbers:focus-visible {
  border-color: #171717;
  background: #171717;
  color: #ffffff;
}

body.home .pagination .dots,
body.blog .pagination .dots,
body.archive .pagination .dots,
body.search .pagination .dots {
  min-width: 30px;
  padding-right: 4px;
  padding-left: 4px;
  border-color: transparent;
  background: transparent;
  color: #777777;
}

/* パンくずを小さな白い情報面として整理 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
  margin: 28px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--he-bottom-nav-line);
  border-left: 4px solid var(--he-main-red, #cf0018);
  background: #ffffff;
  color: #666666;
  font-size: 13px;
  line-height: 1.7;
  box-sizing: border-box;
}

.breadcrumb a {
  color: #444444;
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--he-main-red, #cf0018);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* コンテンツ終了からフッターまでの間延びを抑える */
@media screen and (min-width: 1024px) {
  body.home #content.content,
  body.blog #content.content,
  body.archive #content.content,
  body.search #content.content,
  body.single-post #content.content {
    padding-bottom: 38px;
  }
}

@media screen and (max-width: 640px) {
  body.home .pagination,
  body.blog .pagination,
  body.archive .pagination,
  body.search .pagination {
    gap: 7px;
    margin-top: 34px;
    padding-top: 20px;
  }

  body.home .pagination .page-numbers,
  body.blog .pagination .page-numbers,
  body.archive .pagination .page-numbers,
  body.search .pagination .page-numbers {
    min-width: 44px;
    min-height: 44px;
    padding: 6px 10px;
  }

  .breadcrumb {
    margin-top: 22px;
    padding: 12px 13px;
    font-size: 12px;
  }
}

/************************************
** ブログ下部・人気記事修正 v1.7.1
** Cocoonの「次のページ」専用要素と、人気記事ウィジェットの
** 大きなサムネイル表示を個別に整える。
************************************/

/* 「次のページ」は番号ページネーションとは別要素なので個別に装飾 */
body.home .pagination-next,
body.blog .pagination-next,
body.archive .pagination-next,
body.search .pagination-next {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 44px auto 0;
  padding: 0;
}

body.home .pagination-next-link,
body.blog .pagination-next-link,
body.archive .pagination-next-link,
body.search .pagination-next-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 360px);
  min-height: 54px;
  margin: 0;
  padding: 12px 52px 12px 24px;
  background: var(--he-main-red, #cf0018);
  border: 2px solid var(--he-main-red, #cf0018);
  border-radius: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(82, 0, 6, 0.13);
  box-sizing: border-box;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

body.home .pagination-next-link::after,
body.blog .pagination-next-link::after,
body.archive .pagination-next-link::after,
body.search .pagination-next-link::after {
  position: absolute;
  top: 50%;
  right: 22px;
  content: "›";
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-53%);
}

body.home .pagination-next-link:hover,
body.home .pagination-next-link:focus-visible,
body.blog .pagination-next-link:hover,
body.blog .pagination-next-link:focus-visible,
body.archive .pagination-next-link:hover,
body.archive .pagination-next-link:focus-visible,
body.search .pagination-next-link:hover,
body.search .pagination-next-link:focus-visible {
  background: #171717;
  border-color: #171717;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

/*
 * 人気記事ウィジェットは「大きなサムネイル」設定でも、
 * サイドバー内では画像＋タイトルの横並びカードへ統一する。
 */
.sidebar .popular-entry-cards,
.sidebar .popular-entry-cards.large-thumb,
.sidebar .popular-entry-cards.large-thumb-on,
.sidebar .popular-entry-cards.card-large-image {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}

.sidebar .popular-entry-cards .popular-entry-card-link,
.sidebar .popular-entry-cards.large-thumb .popular-entry-card-link,
.sidebar .popular-entry-cards.large-thumb-on .popular-entry-card-link,
.sidebar .popular-entry-cards.card-large-image .popular-entry-card-link {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 12px 0 !important;
  background: transparent !important;
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--he-sidebar-line-soft, #f3dadd);
  box-sizing: border-box;
}

.sidebar .popular-entry-cards .popular-entry-card-link:last-child {
  border-bottom: 0;
}

.sidebar .popular-entry-cards .popular-entry-card,
.sidebar .popular-entry-cards.large-thumb .popular-entry-card,
.sidebar .popular-entry-cards.large-thumb-on .popular-entry-card,
.sidebar .popular-entry-cards.card-large-image .popular-entry-card,
.sidebar .popular-entry-cards .e-card {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 76px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  box-sizing: border-box;
}

.sidebar .popular-entry-cards .popular-entry-card-thumb,
.sidebar .popular-entry-cards.large-thumb .popular-entry-card-thumb,
.sidebar .popular-entry-cards.large-thumb-on .popular-entry-card-thumb,
.sidebar .popular-entry-cards.card-large-image .popular-entry-card-thumb,
.sidebar .popular-entry-cards .card-thumb {
  position: relative !important;
  float: none !important;
  grid-column: 1 !important;
  width: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
  height: 76px !important;
  min-height: 76px !important;
  max-height: 76px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #f3f3f3 !important;
  border: 1px solid var(--he-sidebar-line-soft, #f3dadd) !important;
  box-sizing: border-box;
}

.sidebar .popular-entry-cards .popular-entry-card-thumb img,
.sidebar .popular-entry-cards.large-thumb .popular-entry-card-thumb img,
.sidebar .popular-entry-cards.large-thumb-on .popular-entry-card-thumb img,
.sidebar .popular-entry-cards.card-large-image .popular-entry-card-thumb img,
.sidebar .popular-entry-cards .card-thumb img {
  position: static !important;
  display: block !important;
  float: none !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  opacity: 1 !important;
  transform: none !important;
}

.sidebar .popular-entry-cards .popular-entry-card-content,
.sidebar .popular-entry-cards.large-thumb .popular-entry-card-content,
.sidebar .popular-entry-cards.large-thumb-on .popular-entry-card-content,
.sidebar .popular-entry-cards.card-large-image .popular-entry-card-content,
.sidebar .popular-entry-cards .widget-entry-card-content,
.sidebar .popular-entry-cards .card-content {
  position: static !important;
  display: block !important;
  grid-column: 2 !important;
  align-self: start !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 1px 0 0 !important;
  background: transparent !important;
  color: #222222 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  box-sizing: border-box;
}

.sidebar .popular-entry-cards .popular-entry-card-title,
.sidebar .popular-entry-cards.large-thumb .popular-entry-card-title,
.sidebar .popular-entry-cards.large-thumb-on .popular-entry-card-title,
.sidebar .popular-entry-cards.card-large-image .popular-entry-card-title,
.sidebar .popular-entry-cards .widget-entry-card-title,
.sidebar .popular-entry-cards .card-title {
  position: static !important;
  display: -webkit-box !important;
  overflow: hidden !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #222222 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  text-align: left !important;
  text-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  overflow-wrap: anywhere !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
}

.sidebar .popular-entry-cards .popular-entry-card-snippet,
.sidebar .popular-entry-cards .popular-entry-card-meta,
.sidebar .popular-entry-cards .widget-entry-card-snippet,
.sidebar .popular-entry-cards .widget-entry-card-meta {
  display: none !important;
}

.sidebar .popular-entry-cards .popular-entry-card-link:hover .popular-entry-card-title,
.sidebar .popular-entry-cards .popular-entry-card-link:focus-visible .popular-entry-card-title,
.sidebar .popular-entry-cards .popular-entry-card-link:hover .widget-entry-card-title,
.sidebar .popular-entry-cards .popular-entry-card-link:focus-visible .widget-entry-card-title {
  color: var(--he-main-red, #cf0018) !important;
}

@media screen and (max-width: 640px) {
  body.home .pagination-next,
  body.blog .pagination-next,
  body.archive .pagination-next,
  body.search .pagination-next {
    margin-top: 34px;
  }

  body.home .pagination-next-link,
  body.blog .pagination-next-link,
  body.archive .pagination-next-link,
  body.search .pagination-next-link {
    width: 100%;
    min-height: 50px;
    padding-right: 48px;
    font-size: 15px;
  }

  .sidebar .popular-entry-cards .popular-entry-card,
  .sidebar .popular-entry-cards.large-thumb .popular-entry-card,
  .sidebar .popular-entry-cards.large-thumb-on .popular-entry-card,
  .sidebar .popular-entry-cards.card-large-image .popular-entry-card,
  .sidebar .popular-entry-cards .e-card {
    grid-template-columns: 112px minmax(0, 1fr) !important;
  }
}


/************************************
** 人気記事ウィジェット下余白修正 v1.7.2
** PCサイドバーの人気記事末尾に残る不要な高さ・余白だけを解除する。
** 人気記事の画像・タイトル寸法、記事一覧、ページ送り、モバイル表示は変更しない。
************************************/
@media screen and (min-width: 1024px) {
  /* サイドバー自体を本文の高さへ引き伸ばさず、内容量で終了させる */
  #content div.sidebar,
  #content .sidebar,
  #content .sidebar-in,
  #content .sidebar-scroll {
    align-self: flex-start !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  /* 人気記事を含むウィジェットと内部コンテナの固定高を解除 */
  .sidebar .widget_popular_entries,
  .sidebar .widget-popular-entries,
  .sidebar .widget:has(.popular-entry-cards),
  .sidebar .popular-entry-cards,
  .sidebar .popular-entry-cards.large-thumb,
  .sidebar .popular-entry-cards.large-thumb-on,
  .sidebar .popular-entry-cards.card-large-image {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  /* 最後の記事以降に残る余白・マージンを除去 */
  .sidebar .widget:has(.popular-entry-cards) {
    margin-bottom: 0 !important;
    padding-bottom: 12px !important;
  }

  .sidebar .popular-entry-cards,
  .sidebar .popular-entry-cards .popular-entry-card-link:last-child,
  .sidebar .popular-entry-cards .popular-entry-card-wrap:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .sidebar > :last-child,
  .sidebar-in > :last-child,
  .sidebar-scroll > :last-child {
    margin-bottom: 0 !important;
  }
}

/************************************
** スマートフォンサイドバー開閉 v1.8.0
** 「ブログカテゴリー」と「人気記事」だけを開閉式にする。
** PC版、サイト内検索、ひとり商いラボ案内には影響させない。
************************************/
@media screen and (max-width: 640px) {
  .sidebar .widget.he-mobile-accordion {
    padding-bottom: 0;
  }

  .sidebar .widget.he-mobile-accordion.is-open {
    padding-bottom: 16px;
  }

  .sidebar .widget.he-mobile-accordion .widget-title {
    margin-bottom: 0;
    padding: 0;
  }

  .sidebar .he-mobile-accordion__button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 11px 48px 10px 14px;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0.03em;
    text-align: left;
    cursor: pointer;
    appearance: none;
  }

  .sidebar .he-mobile-accordion__button::after {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    content: "";
    transform: translateY(-68%) rotate(45deg);
    transition: transform 0.2s ease;
  }

  .sidebar .he-mobile-accordion__button[aria-expanded="true"]::after {
    transform: translateY(-28%) rotate(225deg);
  }

  .sidebar .he-mobile-accordion__button:hover,
  .sidebar .he-mobile-accordion__button:focus-visible {
    background: rgba(0, 0, 0, 0.14);
    color: #ffffff;
  }

  .sidebar .he-mobile-accordion__button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -4px;
  }

  .sidebar .he-mobile-accordion__panel {
    padding-top: 16px;
  }

  .sidebar .he-mobile-accordion__panel[hidden] {
    display: none !important;
  }
}

/************************************
** スマートフォン関連記事省略表示 v1.8.1
** 個別記事の関連記事は最初の4件だけを表示し、残りはボタンで開閉する。
** PC版、記事本文、サイドバー、前後記事には影響させない。
************************************/
@media screen and (max-width: 640px) {
  .single-post .related-list.he-mobile-related-list > [hidden] {
    display: none !important;
  }

  .single-post .he-mobile-related-toggle {
    margin: 16px 0 4px;
  }

  .single-post .he-mobile-related-toggle[hidden] {
    display: none !important;
  }

  .single-post .he-mobile-related-toggle__button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 11px 46px 10px 18px;
    border: 1px solid var(--he-main-red, #cf0018);
    border-radius: 0;
    background: var(--he-main-red, #cf0018);
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.03em;
    text-align: center;
    cursor: pointer;
    appearance: none;
    transition: background-color 0.18s ease, border-color 0.18s ease;
  }

  .single-post .he-mobile-related-toggle__button::after {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 9px;
    height: 9px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    content: "";
    transform: translateY(-68%) rotate(45deg);
    transition: transform 0.2s ease;
  }

  .single-post .he-mobile-related-toggle__button[aria-expanded="true"]::after {
    transform: translateY(-28%) rotate(225deg);
  }

  .single-post .he-mobile-related-toggle__button:hover,
  .single-post .he-mobile-related-toggle__button:focus-visible {
    border-color: #171717;
    background: #171717;
    color: #ffffff;
  }

  .single-post .he-mobile-related-toggle__button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -4px;
  }
}
