/*
 Theme Name: profixer-child
 Description: Profixer を安全にカスタマイズするための子テーマ
 Author: あなたの名前
 Template: profixer
 Version: 1.0.0
*/

/* ─── ヘッダー画像 ─────────────────────────────────── */
.header-image {
  text-align: center;
  margin-bottom: 20px;
}
.header-image img {
  width: 100%;
  height: auto;
  max-width: 1200px;
  display: block;
  margin: 0 auto;
}

/* ─── 投稿リスト（サムネイル＋タイトル＋抜粋） ──────── */
.post-list-item {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1.5em;
  /* margin-left: 20px;  ← 右寄りの原因だったので削除 ★修正 */
}

.post-thumb {                 /* 画像ブロック全体の余白をリセット ★修正 */
  margin: 0;
}

.post-thumb img {             /* サイズ定義は 1 箇所に統一 ★修正 */
  width: 150px;               /* 150px で固定（変更が必要なら数値だけ調整） */
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.post-info .post-title {
  font-size: 1.2em;
  margin: 0 0 0.5em;
}
.post-info .post-excerpt {
  color: #666;
  margin: 0;
}

/* ─── 共通リストリセット ───────────────────────────── */
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ─── サイドバーメニュー ───────────────────────────── */
.sidebar-navigation {
  margin-bottom: 1em;
}
.sidebar-menu-list {
  list-style: none;
  padding-left: 0;
}
.sidebar-menu-list li {
  margin-bottom: 0.5em;
  text-align: left;
}

/* ─── フッターウィジェット「Add Footer Widget」を非表示 ── */
.footer-widgets,
#colophon .footer-widgets,
.footer-widget-area,
#colophon .row > .col-md-12 > .col-md-4:nth-child(2),
#colophon .row > .col-md-12 > .col-md-4:nth-child(3) {
  display: none !important;
}

/* ─── 全体の白背景＆余白設定 ───────────────────────── */
.site-content,
.widget-area,
#content.site-content,
aside#secondary.widget-area {
  background-color: #fff !important;
  padding: 20px;
  box-sizing: border-box;
}

/* ─── 浮動要素クリア ───────────────────────────── */
#page {
  overflow: hidden;
}

/* ─── デスクトップ幅で２カラム化 ───────────────────────── */
@media (min-width: 768px) {
  /* 記事一覧エリア */
  #content.site-content {
    float: left;
    width: 70%;
    margin-right: 2%;
  }
  /* サイドバー */
  aside#secondary.widget-area {
    float: right;
    width: 80%;
    font-size: 0.9em;
  }
}

/* ─── モバイル幅で縦並び＋左右パディング ───────────────────────── */
@media (max-width: 767px) {
  #content.site-content,
  aside#secondary.widget-area {
    float: none;
    width: auto;
    margin: 0;
    padding: 0 15px;
  }
}

/* モバイル幅でサイトタイトルを小さく */
@media only screen and (max-width: 767px) {
  .site-header .site-title a {
    font-size: 1.8em !important; /* お好みで調整 */
  }
}

/* ─── ヘッダー直下を確実に白背景に戻す ───────────────────────── */
.site-header + .site-content,
.site-header + .site-content + .widget-area {
  background-color: #fff !important;
}

/* ─── 新着記事エリアの左右余白 ───────────────────────── */
#content.site-content {
  padding-left: 20px;
  padding-right: 20px;
}

/* ─── 見出し「新着記事」の左右余白 ───────────────────────── */
#content.site-content > h1 {
  padding-left: 20px;
  padding-right: 20px;
}

/* ─── 投稿ページ限定：サイドバー幅＆テキスト左寄せ ───────────────────────── */
@media (min-width: 768px) {
  body.single-post #content.site-content {
    float: left !important;
    width: 65% !important;
    margin-right: 2% !important;
  }
  body.single-post aside#secondary.widget-area {
    float: right !important;
    width: 70% !important;
    text-align: left !important;
    font-size: 98%;
  }
}

/* ─── 投稿ページ限定：フロートクリア ───────────────────────── */
body.single-post #page {
  overflow: hidden !important;
}

/* ここから下の既存スタイルはレイアウト調整に影響しないためそのまま残しています */
img.attachment-post-thumbnail.size-post-thumbnail.wp-post-image {
  width: 70%;
  height: auto;
  border-radius: 10px;
}

.entry-meta {
  display: none;
}

/* ヘッダー画像周りの余白をまとめてリセット */
body {
  margin: 0 !important;
}

.site-header,
header#masthead,
.header-image {
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
}

.header-image img {
  display: block;
}

/* 検索エリアのボタンをカスタマイズ */
.widget_search .search-submit,
.widget_search button.search-submit {
  background-color: #1d1a4e !important;
  margin-left: 0 !important;
  border-radius: 0 4px 4px 0 !important;
  padding: 1.06em 1em !important;
}

.entry-content h2 {
  padding: 1em 0.5em;
  color: #4e7561;
  background: transparent;
  border-left: solid 5px #8b9790;
}

/* ────────── 新着記事リスト横並び ────────── */
.post-list-item a {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.post-list-item .post-thumb {
  flex: 0 0 150px;
}

.post-list-item .post-info {
  flex: 1 1 auto;
}

.post-list-item .post-title {
  font-size: 2rem;
  margin: 0 0 4px;
  line-height: 1.4;
}

.post-list-item .post-excerpt {
  font-size: 1.7rem;
  color: #555;
  margin: 0;
}

/* ───── 新着記事リストの左右余白を除去 ───── */
#content ul {
  padding-left: 0;
  margin-left: 0;
}

.post-list-item {
  list-style: none;
}

.post-list-item a {
  width: 100%;
}

/* ─── サイトマップ：トップページ & カテゴリートップを強調 ─── */
#sitemap_list > li > a {           /* 直下の <a> に限定 */
  font-size: 2rem;              /* お好みで調整（例：1.35rem ≒ 21.6px） */
  font-weight: 700;                /* 太字 */
  line-height: 3;
}

#sitemap_list > li > a:hover {
  text-decoration: underline;      /* 任意：ホバー時に下線を付けたい場合 */
}

.breadcrumbs {
    font-size: 0.8em;
    line-height: 2em;
}
