@charset "UTF-8";
/**
 * ブログ（投稿タイプ post）
 *
 * レイアウト・余白・文字サイズは改修前テーマ xeory_base-child / xeory_base の値をそのまま踏襲。
 * 変えているのは配色だけ:
 *   #383838 リンク文字   → #333（サイト本文色）
 *   #f24e4f ホバー赤     → #653c6d（サイトのアクセント紫）
 *   #e5e5e5 / #ededed 罫線 → #e3e0e3
 *   本文背景             → #f8f7f7（サイト背景）／カードは #fff のまま
 */

/* =========================================================
   テーマ既定の要素セレクタの打ち消し
   style.css が `header {}` `header h1 {}` `footer {}` を素の要素セレクタで
   定義しているため、記事の <header class="post-header"> や
   <footer class="post-footer"> にサイトヘッダー用の装飾が漏れる。ここで戻す。
   ========================================================= */

.blog-layout header {
  margin: 0;
}

.blog-layout header h1 {
  padding: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-align: left;
}

.blog-layout footer {
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-align: left;
}

/* =========================================================
   2カラム（本文 + 右サイドバー）
   ========================================================= */

main.blog-layout {
  max-width: 1120px;
  margin: 0 auto 40px;
}

.blog-layout .wrap {
  padding: 0 24px;
}

.blog-layout .wrap::after {
  content: "";
  display: block;
  clear: both;
}

.blog-layout #main {
  width: 100%;
  float: left;
}

.blog-layout .main-inner {
  margin-right: 330px;
}

.blog-layout #side {
  width: 290px;
  float: left;
  margin-left: -290px;
}

@media screen and (max-width: 900px) {
  .blog-layout #main,
  .blog-layout #side {
    width: 100%;
    float: none;
    margin-left: 0;
  }

  .blog-layout .main-inner {
    margin-right: 0;
    margin-bottom: 56px;
  }
}

/* =========================================================
   パンくず
   ========================================================= */

.blog-layout .breadcrumb {
  margin: 0 0 15px;
  padding: 0;
  overflow: hidden;
  list-style: none;
  font-size: 12px;
  line-height: 22px;
  color: var(--sd-muted);
}

.blog-layout .breadcrumb li {
  float: left;
}

.blog-layout .breadcrumb li + li::before {
  content: "›";
  margin: 0 8px;
  color: #bdb7bf;
}

.blog-layout .breadcrumb li a {
  color: var(--sd-muted);
}

.blog-layout .breadcrumb li a:hover {
  color: var(--sd-accent);
  text-decoration: underline;
  opacity: 1;
}

/* =========================================================
   一覧見出し
   ========================================================= */

.blog-layout .cat-content {
  margin-bottom: 40px;
  background: var(--sd-panel);
  border: 1px solid var(--sd-line);
}

.blog-layout .cat-header {
  padding: 40px 64px;
}

.blog-layout .cat-content .post-title {
  margin: 0;
  font-family: 'Zen Old Mincho', serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .05em;
}

.blog-layout .cat-description {
  padding: 0 64px 40px;
  font-size: 14px;
  line-height: 1.9;
}

@media screen and (max-width: 769px) {
  .blog-layout .cat-header {
    padding: 24px;
  }

  .blog-layout .cat-description {
    padding: 0 24px 24px;
  }
}

/* =========================================================
   記事カード
   ========================================================= */

.blog-layout article.post {
  width: 100%;
  margin: 0 0 40px;
  background: var(--sd-panel);
  border: 1px solid var(--sd-line);
}

.blog-layout .post-loop-wrap article {
  margin: 0 0 60px;
}

.blog-layout .post-header {
  padding: 56px 64px 0;
}

.blog-layout .post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 42px;
  padding: 0;
  list-style: none;
  position: relative;
}

.blog-layout .post-meta::after {
  content: "";
  height: 1px;
  flex-grow: 1;
  background-color: var(--sd-line);
}

.blog-layout .post-meta li {
  background: var(--sd-panel);
  font-family: 'Abel', sans-serif;
  font-size: 14px;
  color: var(--sd-muted);
}

.blog-layout .post-title {
  clear: both;
  margin: 0 0 36px;
  font-size: 28px;
  font-weight: bold;
  line-height: 1.5;
}

.blog-layout .post-title a {
  color: var(--sd-text);
}

.blog-layout .post-title a:hover {
  color: var(--sd-accent);
  text-decoration: none;
  opacity: 1;
}

.blog-layout .post-content {
  padding: 42px 64px;
  overflow: hidden;
  line-height: 1.9;
}

.blog-layout .post-content p {
  margin: 0 0 1.5em;
}

.blog-layout .post-content a {
  color: var(--sd-accent);
  text-decoration: underline;
}

.blog-layout .post-content h2,
.blog-layout .post-content h3,
.blog-layout .post-content h4 {
  margin: 1.8em 0 .8em;
  font-weight: bold;
  line-height: 1.5;
}

.blog-layout .post-content h2 { font-size: 22px; }
.blog-layout .post-content h3 { font-size: 19px; }
.blog-layout .post-content h4 { font-size: 16px; }

.blog-layout .post-content ul,
.blog-layout .post-content ol {
  margin: 0 0 1.5em 1.6em;
}

.blog-layout .post-content ul { list-style: disc; }
.blog-layout .post-content ol { list-style: decimal; }

.blog-layout .post-content li {
  margin-bottom: .4em;
}

.blog-layout .post-content blockquote {
  margin: 0 0 1.5em;
  padding: 16px 20px;
  background: #faf9fa;
  border-left: 3px solid var(--sd-accent);
}

.blog-layout .post-content img {
  max-width: 100%;
  height: auto;
}

.blog-layout .post-content hr {
  margin: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--sd-line);
  clear: both;
}

/* 一覧のアイキャッチは右回り込み（改修前と同じ） */
.blog-layout .post-loop-wrap .post-thumbnail {
  width: 304px;
  height: 215px;
  margin-left: 20px;
  margin-bottom: 20px;
  float: right;
}

.blog-layout .post-loop-wrap .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-layout .post-thumbnail.default {
  margin-bottom: 20px;
}

.blog-layout .post-thumbnail img {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 769px) {
  .blog-layout .post-header {
    padding: 24px 24px 0;
  }

  .blog-layout .post-meta {
    margin: 0 0 20px;
  }

  .blog-layout .post-title {
    margin: 0 0 20px;
    font-size: 20px;
  }

  .blog-layout .post-content {
    padding: 20px 24px;
  }

  .blog-layout .post-loop-wrap .post-thumbnail {
    width: 100%;
    height: auto;
    margin-left: 0;
    float: none;
  }
}

/* =========================================================
   いいね・うぇぼ
   ========================================================= */

.wpulike {
  width: fit-content !important;
}

.blog-layout .likeWrap {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 1.6rem;
}

.blog-layout .likeWrap a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sd-text);
  font-size: 13px;
  text-decoration: none;
}

.blog-layout .likeWrap a:hover {
  color: var(--sd-accent);
}

.blog-layout .likeWrap img {
  width: 50px;
  height: 50px;
}

/* =========================================================
   記事フッター（カテゴリー・タグ）
   ========================================================= */

.blog-layout .post-footer {
  padding: 40px 64px 0;
  border-radius: 0 0 3px 3px;
}

.blog-layout .post-footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.blog-layout .post-footer-list li {
  color: var(--sd-muted);
}

.blog-layout .post-footer-list a {
  color: var(--sd-text);
}

.blog-layout .post-footer-list a:hover {
  color: var(--sd-accent);
  text-decoration: underline;
  opacity: 1;
}

@media screen and (max-width: 769px) {
  .blog-layout .post-footer {
    padding: 20px 24px 0;
  }

  .blog-layout .post-footer-list {
    margin: 0 0 24px;
  }
}

/* =========================================================
   ページネーション
   ========================================================= */

.blog-layout .pagination,
.blog-layout .navigation.pagination {
  margin: 0 0 60px;
}

.blog-layout .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.blog-layout .page-numbers {
  display: inline-block;
  min-width: 38px;
  padding: 8px 12px;
  background: var(--sd-panel);
  border: 1px solid var(--sd-line);
  border-radius: 3px;
  color: var(--sd-text);
  font-family: 'Abel', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.blog-layout .page-numbers:hover {
  border-color: var(--sd-accent);
  color: var(--sd-accent);
  opacity: 1;
}

.blog-layout .page-numbers.current {
  background: var(--sd-accent);
  border-color: var(--sd-accent);
  color: #fff;
}

.blog-layout .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* =========================================================
   サイドバー
   ========================================================= */

.blog-layout .side-widget {
  margin-bottom: 40px;
  padding-bottom: 40px;
  font-size: 14px;
  line-height: 1.6;
}

.blog-layout .side-widget:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.blog-layout .side-title {
  margin: 0 0 32px;
  font-size: 15px;
  font-weight: bold;
}

.blog-layout .side-title .widget-title-inner {
  display: inline-block;
  padding-left: 12px;
  border-left: 3px solid var(--sd-accent);
}

.blog-layout .side-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-layout .side-widget ul li {
  padding: 16px 0;
  border-bottom: 1px solid var(--sd-line);
  font-size: 13px;
}

.blog-layout .side-widget ul li:first-child {
  padding-top: 0;
}

.blog-layout .side-widget a {
  color: var(--sd-text);
}

.blog-layout .side-widget a:hover {
  color: var(--sd-accent);
  text-decoration: underline;
  opacity: 1;
}

.blog-layout .side-widget .current-cat > a {
  color: var(--sd-accent);
  font-weight: 600;
}

/* カテゴリーの件数 */
.blog-layout .widget_categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.blog-layout .widget_categories .count {
  flex: none;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #efecf0;
  color: var(--sd-muted);
  font-family: 'Abel', sans-serif;
  font-size: 11px;
  text-align: center;
}

/* 最新の投稿の日付 */
.blog-layout .side-date {
  display: block;
  color: var(--sd-muted);
  font-family: 'Abel', sans-serif;
  font-size: 11px;
}

/* 月別アーカイブ（wp_get_archives は件数をリンク外のテキストで出す） */
.blog-layout .widget_archive ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--sd-muted);
  font-family: 'Abel', sans-serif;
  font-size: 12px;
}

.blog-layout .widget_archive ul li a {
  flex: 1;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
}

/* 万一ロックをすり抜けて鍵付き記事が描画されたときの差し替え文 */
.blog-lock__notice {
  margin: 24px 0;
  padding: 16px;
  border: 1px dashed #c9c9c9;
  border-radius: 4px;
  color: #888;
  font-size: 14px;
  text-align: center;
}

/* ------------------------------------------------------------------
   ブログの単語検索（サイドバーのボックスと検索結果ページ）
------------------------------------------------------------------ */
.sd-searchform__row {
  display: flex;
  gap: 6px;
}

.sd-searchform__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid #d6d6d6;
  border-radius: 3px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  background: #fff;
}

.sd-searchform__input:focus {
  outline: none;
  border-color: #9a9a9a;
}

.sd-searchform__submit {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 0;
  border-radius: 3px;
  background: #555;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease;
}

.sd-searchform__submit:hover {
  background: #333;
}

/* 検索結果ページ */
.blog-layout .search-count {
  margin: 8px 0 0;
  color: #888;
  font-size: 13px;
  text-align: center;
}

.blog-layout .search-empty {
  margin: 28px 0 0;
  padding: 22px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  background: #fafafa;
  font-size: 14px;
  line-height: 1.9;
}

.blog-layout .search-empty p {
  margin: 0 0 6px;
}

.blog-layout .search-empty__hint {
  color: #888;
  font-size: 13px;
}

.blog-layout .search-empty__lead {
  margin: 18px 0 8px;
  font-weight: 600;
  font-size: 13px;
}

.blog-layout .search-empty__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-layout .search-empty__cats a {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  text-decoration: none;
}

.blog-layout .search-empty__cats a:hover {
  border-color: #9a9a9a;
}

.blog-layout .search-empty__cats .count {
  margin-left: 4px;
  color: #aaa;
}

/* スクリーンリーダー専用のラベル */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
