/*
Theme Name: diary-child-2
Template: kubio
*/

/* ================================
   ChatGPT風フォント & 交感日記アーカイブ専用スタイル
   ※ そのまま style.css を一括上書きしてOK
   ================================ */

/* サイト全体のベースフォント（ChatGPT風＋日本語対応） */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN",
    "Yu Gothic", "游ゴシック", Meiryo, "メイリオ", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #222;
}

/* ===== 交感日記（post-type-archive: diary）だけに適用 ===== */
body.post-type-archive-diary {
  background: #fffdf8; /* ごく薄い生成り色（変更可） */
}

/* アーカイブの包み（中央寄せ・最大幅） */
body.post-type-archive-diary .site-main,
body.post-type-archive-diary main {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

/* カスタムヘッダー（画像置き換え用） */
body.post-type-archive-diary .diary-hero {
  text-align: center;
  margin: 0 0 2rem;
}
body.post-type-archive-diary .diary-hero img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}
body.post-type-archive-diary .diary-hero .diary-hero-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 0.75rem;
  color: #333;
}

/* 投稿のリスト全体（全文スクロール） */
body.post-type-archive-diary .diary-full-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem; /* 投稿間スペース（要件3） */
}

/* 各記事ブロック：中央寄せ＋境界線（要件1・3） */
body.post-type-archive-diary .diary-entry {
  text-align: center;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid #e3e0d9; /* さりげない区切り線 */
}

/* タイトル（要件4：フォント・サイズ・カラー） */
body.post-type-archive-diary .diary-entry .diary-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.5;
  color: #2f2f2f;
  margin: 0 0 1rem;
}

/* 本文（センター寄せ・行間ゆったり｜要件1・4） */
body.post-type-archive-diary .diary-entry .entry-content {
  text-align: center;
  margin: 0 auto;
  max-width: 42rem;
  font-size: 1.0625rem; /* 17px相当 */
  line-height: 1.95;
  color: #333;
}
body.post-type-archive-diary .entry-content p {
  margin: 0 0 1.05em;
}
body.post-type-archive-diary .entry-content img,
body.post-type-archive-diary .entry-content figure {
  display: block;
  margin: 1.25rem auto;
  max-width: 100%;
  height: auto;
}

/* 投稿日時（本文末尾｜要件2） */
body.post-type-archive-diary .diary-entry .entry-footer .diary-date {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: #8a8a8a;
}

/* 月別アーカイブ・メニュー（要件5） */
body.post-type-archive-diary .diary-archives-links {
  margin-top: 4rem;
  text-align: center;
}
body.post-type-archive-diary .diary-archives-links h2 {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
body.post-type-archive-diary .diary-archives-links ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 0.9rem;
}
body.post-type-archive-diary .diary-archives-links li a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  background: #f3f1eb;
  color: #414141;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.05s ease;
}
body.post-type-archive-diary .diary-archives-links li a:hover {
  background: #e9e6de;
  transform: translateY(-1px);
}
body.post-type-archive-diary .diary-archives-links .post-count {
  color: #8a8a8a;
  margin-left: 0.35em;
  font-size: 0.9em;
}

/* 交感日記アーカイブではグローバルフッターを非表示（要件6） */
body.post-type-archive-diary footer.site-footer,
body.post-type-archive-diary footer#colophon {
  display: none !important;
}
/* ===== 交感日記アーカイブ用 ===== */
body.post-type-archive-diary {
  font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic UI","Yu Gothic","Meiryo",sans-serif;
  color: #111;
}
.post-type-archive-diary .diary-archive {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 80px;
  text-align: center; /* タイトルと本文を中央寄せ */
}
.post-type-archive-diary .diary-archive__title {
  font-size: 34px;
  letter-spacing: .02em;
  margin: 0 0 24px;
}

.post-type-archive-diary .diary-entry {
  padding: 24px 0 32px;
  border-bottom: 1px solid rgba(0,0,0,.08); /* 区切り線 */
}
.post-type-archive-diary .diary-title {
  font-size: 26px;
  margin: 0 0 16px;
  line-height: 1.35;
}
.post-type-archive-diary .entry-content {
  font-size: 17px;
  line-height: 1.9;
  margin: 0 auto 12px;
}
.post-type-archive-diary .entry-content p,
.post-type-archive-diary .entry-content img,
.post-type-archive-diary .entry-content figure {
  margin-left: auto;
  margin-right: auto;    /* 画像も中央寄せ */
}
.post-type-archive-diary .entry-footer .diary-date {
  display: inline-block;
  margin-top: 8px;       /* 日付は本文の“文末”に表示 */
  font-size: 14px;
  color: #666;
}

/* 月別アーカイブ */
.post-type-archive-diary .diary-archives-links {
  margin-top: 40px;
}
.post-type-archive-diary .diary-archives-links h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.post-type-archive-diary .diary-archives-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-type-archive-diary .diary-archives-links li {
  margin: 4px 0;
}

/* このアーカイブだけヘッダー/フッター調整（例：フッター非表示、ヘッダー非表示） */
.post-type-archive-diary .site-footer { display: none !important; }
.post-type-archive-diary .site-header { display: none !important; }

/* スマホでも整うよう軽調整 */
@media (max-width: 480px) {
  .post-type-archive-diary .diary-title { font-size: 22px; }
  .post-type-archive-diary .entry-content { font-size: 16px; }
}
/* ===== 交感日記: 一覧（アーカイブ & 日付アーカイブ） ===== */
body.post-type-archive-diary .diary-archive,
body.date.post-type-archive-diary .diary-archive {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 80px;
  text-align: center !important;
  font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic UI","Yu Gothic","Meiryo",sans-serif;
}

body.post-type-archive-diary .diary-entry,
body.date.post-type-archive-diary .diary-entry {
  margin: 0 auto 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(0,0,0,.12);
}

body.post-type-archive-diary .diary-title,
body.date.post-type-archive-diary .diary-title {
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 16px;
  text-align: center !important;
}

body.post-type-archive-diary .entry-content,
body.date.post-type-archive-diary .entry-content {
  font-size: 17px;
  line-height: 1.9;
}
body.post-type-archive-diary .entry-content p,
body.date.post-type-archive-diary .entry-content p,
body.post-type-archive-diary .entry-content img,
body.date.post-type-archive-diary .entry-content img,
body.post-type-archive-diary .entry-content figure,
body.date.post-type-archive-diary .entry-content figure {
  margin-left: auto;
  margin-right: auto;
}

body.post-type-archive-diary .entry-footer .diary-date,
body.date.post-type-archive-diary .entry-footer .diary-date {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: #666;
  text-align: center !important;
}

/* 月別アーカイブ見出しの中央寄せ（必要なら） */
body.post-type-archive-diary .diary-archives-links h2,
body.date.post-type-archive-diary .diary-archives-links h2 {
  margin-top: 40px;
  text-align: center;
}

/* ===== 交感日記: 個別記事（single-diary） ===== */
body.single-diary .diary-single-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 80px;
  text-align: center !important;
  font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic UI","Yu Gothic","Meiryo",sans-serif;
}
body.single-diary .diary-entry { margin: 0 auto; }

body.single-diary .diary-title {
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 18px;
  text-align: center !important;
}

body.single-diary .entry-content {
  font-size: 17px;
  line-height: 1.9;
}
body.single-diary .entry-content p,
body.single-diary .entry-content img,
body.single-diary .entry-content figure {
  margin-left: auto;
  margin-right: auto;
}

body.single-diary .entry-footer .diary-date {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: #666;
  text-align: center !important;
}

/* ===== モバイル調整 ===== */
@media (max-width:480px){
  body.post-type-archive-diary .diary-title,
  body.date.post-type-archive-diary .diary-title,
  body.single-diary .diary-title { font-size: 24px; }
  body.post-type-archive-diary .entry-content,
  body.date.post-type-archive-diary .entry-content,
  body.single-diary .entry-content { font-size: 16px; }
}
/* ===== Diary archive & single (center layout) ===== */
:root{
  --diary-max: 760px;
  --diary-text: #111;
  --diary-muted:#666;
  --diary-rule: rgba(0,0,0,.12);
}

body.post-type-archive-diary .diary-wrap,
body.date.post-type-archive-diary .diary-wrap{
  max-width: var(--diary-max);
  margin: 0 auto;
  padding: 32px 16px 80px;
  color: var(--diary-text);
  text-align: center !important;
  font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic UI","Yu Gothic","Meiryo",sans-serif;
}

body.post-type-archive-diary .diary-page-title{ 
  font-size: 32px; line-height:1.25; margin:0 0 24px;
}

body.post-type-archive-diary .diary-item,
body.date.post-type-archive-diary .diary-item{
  margin: 0 auto 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--diary-rule);
}

body.post-type-archive-diary .diary-title,
body.date.post-type-archive-diary .diary-title{
  font-size: 28px; line-height:1.3; margin:0 0 16px;
}

body.post-type-archive-diary .diary-content,
body.date.post-type-archive-diary .diary-content{
  font-size: 17px; line-height:1.9;
}
body.post-type-archive-diary .diary-content p,
body.date.post-type-archive-diary .diary-content p,
body.post-type-archive-diary .diary-content img,
body.date.post-type-archive-diary .diary-content img,
body.post-type-archive-diary .diary-content figure,
body.date.post-type-archive-diary .diary-content figure{
  margin-left:auto; margin-right:auto;
}

body.post-type-archive-diary .diary-footer .diary-date,
body.date.post-type-archive-diary .diary-footer .diary-date{
  display:inline-block; margin-top:12px; font-size:14px; color:var(--diary-muted);
}
body.post-type-archive-diary .diary-footer .diary-date a,
body.date.post-type-archive-diary .diary-footer .diary-date a{
  color:inherit; text-decoration: none;
  border-bottom: 1px dotted var(--diary-muted);
}

body.post-type-archive-diary .diary-archives h2{ margin:40px 0 12px; }
body.post-type-archive-diary .diary-archives ul{ list-style: none; padding:0; }
body.post-type-archive-diary .diary-archives li{ margin:6px 0; }

/* ===== single diary（個別も同じトーンに） ===== */
body.single-diary .diary-single-wrap{
  max-width: var(--diary-max);
  margin: 0 auto;
  padding: 32px 16px 80px;
  text-align: center !important;
  font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic UI","Yu Gothic","Meiryo",sans-serif;
}
body.single-diary .diary-title{ font-size:28px; margin:0 0 18px; }
body.single-diary .diary-content{ font-size:17px; line-height:1.9; }
body.single-diary .diary-content p,
body.single-diary .diary-content img,
body.single-diary .diary-content figure{ margin-left:auto; margin-right:auto; }
body.single-diary .diary-footer .diary-date{ display:inline-block; margin-top:12px; font-size:14px; color:var(--diary-muted); }

/* mobile */
@media (max-width:480px){
  body.post-type-archive-diary .diary-title,
  body.date.post-type-archive-diary .diary-title,
  body.single-diary .diary-title{ font-size:24px; }
  body.post-type-archive-diary .diary-content,
  body.date.post-type-archive-diary .diary-content,
  body.single-diary .diary-content{ font-size:16px; }
}
/* ===== 交感日記（アーカイブ＆個別）共通 ===== */
.post-type-archive-diary .site-main.diary-archive,
.single-diary .site-main {
  --text: #111827;
  --muted: #6b7280;
  --rule: #e5e7eb;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
               "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, -apple-system,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
}

/* 見出し・本文を中央寄せ（スマホ含む） */
.post-type-archive-diary .diary-entry,
.single-diary .diary-entry {
  text-align: center;
}

/* 本文内要素を中央に寄せる（画像・ギャラリー等） */
.post-type-archive-diary .diary-entry .entry-content > * ,
.single-diary .diary-entry .entry-content > * {
  margin-left: auto;
  margin-right: auto;
}

/* 画像はセンターブロック表示 */
.post-type-archive-diary .diary-entry .entry-content img,
.single-diary .diary-entry .entry-content img {
  display: block;
  margin: 1rem auto;
  height: auto;
  max-width: 100%;
}

/* タイトル・本文・日付の見た目 */
.post-type-archive-diary .entry-title,
.single-diary .entry-title {
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: 0.5rem 0 0.75rem;
}

.post-type-archive-diary .entry-content,
.single-diary .entry-content {
  font-size: clamp(0.98rem, 1.6vw, 1.06rem);
  line-height: 1.9;
}

.post-type-archive-diary .diary-date,
.single-diary .diary-date {
  display: inline-block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.post-type-archive-diary .diary-date a { color: inherit; text-decoration: underline; }

/* 投稿どうしの区切り */
.post-type-archive-diary .diary-entry {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
.post-type-archive-diary .diary-entry:last-of-type { border-bottom: none; }

/* 交感日記のアーカイブだけヘッダー／フッターを隠す（Kubio想定のクラス名） */
.post-type-archive-diary .site-header,
.post-type-archive-diary .site-footer {
  display: none !important;
}
/* ===== 交感日記: アーカイブ強制スタイル ===== */
body.post-type-archive-diary .diary-full-list { 
  max-width: 860px; margin: 0 auto; 
}

body.post-type-archive-diary .diary-entry {
  max-width: 760px;
  margin: 0 auto 72px !important;      /* 記事間スペース */
  padding-bottom: 48px !important;
  border-bottom: 1px solid #e5e7eb !important; /* 区切り線 */
  text-align: center !important;       /* まとめて中央寄せ */
}

body.post-type-archive-diary .diary-entry .entry-title,
body.post-type-archive-diary .diary-entry .entry-content,
body.post-type-archive-diary .diary-entry .diary-date {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.post-type-archive-diary .entry-title {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif !important;
  font-size: clamp(22px, 2.4vw, 30px) !important;
  line-height: 1.35 !important;
  color: #114d44 !important; /* 深いグリーン */
  margin: 16px 0 24px !important;
}

body.post-type-archive-diary .entry-content {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif !important;
  font-size: clamp(15px, 1.6vw, 18px) !important;
  line-height: 1.9 !important;
  color: #111827 !important;
}

body.post-type-archive-diary .diary-date {
  display: block !important;
  margin-top: 18px !important;
  color: #374151 !important;
  font-size: 0.95em !important;
}

body.post-type-archive-diary .diary-date a { 
  color: inherit !important; text-decoration: underline !important; 
}

body.post-type-archive-diary .page-title {
  max-width: 760px; margin: 0 auto 32px !important;
  font-weight: 700 !important;
}

/* 月別アーカイブ（件数は PHP 側で show_post_count=true 済み） */
body.post-type-archive-diary .diary-archives-links {
  max-width: 760px; margin: 48px auto 0 !important;
}
body.post-type-archive-diary .diary-archives-links li { 
  padding: 4px 0 !important; 
}
/* ===== 交感日記 共通（アーカイブ画面）===== */
.diary-scope .diary-entry{
  max-width:760px;
  margin:0 auto 72px !important;
  padding-bottom:48px !important;
  border-bottom:1px solid #e5e7eb !important;
  text-align:center !important;
}
.diary-scope .entry-title,
.diary-scope .entry-content,
.diary-scope .diary-date{
  text-align:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.diary-scope .entry-title{
  font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif !important;
  font-size:clamp(22px,2.4vw,30px) !important;
  color:#114d44 !important;
  margin:16px 0 24px !important;
}
.diary-scope .entry-content{
  font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif !important;
  font-size:clamp(15px,1.6vw,18px) !important;
  line-height:1.9 !important;
  color:#111827 !important;
}
.diary-scope .diary-date{
  display:block !important;
  margin-top:18px !important;
  color:#374151 !important;
  font-size:.95em !important;
}
.diary-scope .diary-date a{ color:inherit !important; text-decoration:underline !important; }
/* ===== 交感日記 全面センター強制（アーカイブ & 個別） ===== */

/* アーカイブ側（/diary/ や日付アーカイブ） */
.post-type-archive-diary .site-main,
.post-type-archive-diary .site-main * ,
.date .post-type-archive .site-main,
.site-main.diary-scope,
.site-main.diary-scope * {
  text-align: center !important;
}

/* 個別記事（single-diary） */
.single-diary .site-main,
.single-diary .site-main * {
  text-align: center !important;
}

/* 読みやすさの幅・中央寄せボックス */
.diary-scope .entry-content,
.single-diary .entry-content {
  max-width: 760px;
  margin: 0 auto 2.4rem !important;
}

/* タイトル・日付も中央＆余白 */
.diary-scope .diary-title,
.diary-scope .page-title,
.single-diary .entry-title {
  margin: 0 auto 1rem !important;
}

.diary-scope .diary-date,
.single-diary .diary-date,
.single-diary time,
.diary-scope time {
  display: block;
  margin: .75rem auto 0 !important;
}

/* 記事の区切り線と余白 */
.diary-scope .diary-entry {
  padding: 2.4rem 0 !important;
  border-top: 1px solid rgba(0,0,0,.12) !important;
}
.diary-scope .diary-entry:first-of-type { border-top: 0 !important; }

/* 画像・ギャラリーも中央に */
.diary-scope img,
.single-diary img,
.diary-scope figure,
.single-diary figure {
  display: block !important;
  margin: 1rem auto !important;
}

/* 文字サイズ・フォント（ChatGPT風：Noto Sans JP系） */
:root {
  --diary-font: "Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic UI","Yu Gothic","Meiryo",sans-serif;
}
.diary-scope,
.single-diary {
  font-family: var(--diary-font) !important;
}
.diary-scope .diary-title,
.single-diary .entry-title { font-size: clamp(1.6rem, 2.2vw, 2.0rem) !important; }
.diary-scope .entry-content,
.single-diary .entry-content { font-size: 1.05rem !important; line-height: 1.9 !important; }

/* 月別アーカイブ見出しも中央 */
.diary-archives-links,
.diary-archives-links * { text-align: center !important; }
.post-type-archive-diary .site-main,
.single-diary .site-main { text-align:center !important; }

.post-type-archive-diary .site-main .entry-content,
.single-diary .site-main .entry-content {
  max-width:760px; margin:0 auto 2.4rem !important;
}
/* ===== 強制センター揃え（Kubio上書き用）===== */

/* アーカイブ & 個別 共通：本文幅と中央寄せ */
.post-type-archive-diary .site-main,
.single-diary .site-main {
  text-align: center !important;
}

.post-type-archive-diary .entry-content,
.single-diary .entry-content {
  max-width: 760px !important;
  margin: 0 auto 2.4rem !important;
  text-align: left !important;            /* 段落は読みやすく左揃え */
}

/* 見出し・日付を中央 */
.post-type-archive-diary .page-title,
.post-type-archive-diary .diary-title,
.post-type-archive-diary .entry-footer,
.post-type-archive-diary .diary-date,
.single-diary .entry-title,
.single-diary .entry-footer,
.single-diary .diary-date {
  text-align: center !important;
}

/* 日付リンクをブロック化して中央 */
.post-type-archive-diary .diary-date,
.single-diary .diary-date {
  display: block !important;
  margin: .75rem auto 0 !important;
  font-size: .95rem !important;
  opacity: .8 !important;
}

/* 投稿ブロックの区切り線と余白（アーカイブ） */
.post-type-archive-diary .diary-entry {
  padding: 2.4rem 0 !important;
  border-bottom: 1px solid rgba(0,0,0,.12) !important;
}
.post-type-archive-diary .diary-entry:first-of-type {
  border-top: 1px solid rgba(0,0,0,.12) !important;
}

/* 画像を中央 */
.post-type-archive-diary .entry-content img,
.single-diary .entry-content img,
.post-type-archive-diary figure,
.single-diary figure {
  display: block !important;
  margin: 1rem auto !important;
}

/* フォント（ChatGPT系） */
.post-type-archive-diary body,
.single-diary body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
               "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif !important;
  color: #111 !important;
}
.post-type-archive-diary .page-title,
.post-type-archive-diary .diary-title,
.single-diary .entry-title {
  font-weight: 700 !important;
  color: #0e4b44 !important;
}

/* 見出しサイズ（好みで調整可） */
.post-type-archive-diary .page-title { font-size: 2.2rem !important; margin: 0 0 1rem !important; }
.post-type-archive-diary .diary-title   { font-size: 1.8rem !important; margin: 0 0 .75rem !important; }
.single-diary .entry-title              { font-size: 2rem !important; margin: 0 0 .75rem !important; }

/* 月別アーカイブの件数 (既に表示されている前提で体裁のみ) */
.post-type-archive-diary .diary-archives-links ul { list-style: disc inside !important; }
.post-type-archive-diary .diary-archives-links li { margin: .25rem 0 !important; }

/* 交感日記のページだけフッター非表示（必要なら） */
.post-type-archive-diary footer.site-footer { display: none !important; }
/* ======= 交感日記：見た目を強制 ======= */

/* 共通フォント（ChatGPT系の見え方） */
body.single-diary,
body.post-type-archive-diary {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN",
               "Yu Gothic", "YuGothic", "Meiryo", sans-serif !important;
  color: #111 !important;
}

/* 交感日記アーカイブ：ヘッダー/本文/日付を中央寄せ + 幅 */
body.post-type-archive-diary .site-main,
body.single-diary .site-main {
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 24px 20px !important;
}

body.post-type-archive-diary .entry-title,
body.single-diary .entry-title,
body.post-type-archive-diary .entry-content,
body.single-diary .entry-content,
body.post-type-archive-diary .entry-footer,
body.single-diary .entry-footer {
  text-align: center !important;
}

/* 見出しスタイル（色・サイズ） */
body.post-type-archive-diary .entry-title,
body.single-diary .entry-title {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem) !important;
  line-height: 1.35 !important;
  color: #1f6b5c !important; /* 深いグリーン */
  margin: 0 0 10px !important;
}

/* 本文の行間 */
body.post-type-archive-diary .entry-content,
body.single-diary .entry-content {
  line-height: 1.9 !important;
  font-size: 1rem !important;
}

/* 投稿日時を本文末に見えるよう中央に */
body.post-type-archive-diary .entry-footer time,
body.single-diary .entry-footer time {
  display: inline-block !important;
  margin-top: 14px !important;
  opacity: .75 !important;
}

/* 区切り線と余白（各投稿） */
body.post-type-archive-diary article,
body.single-diary article {
  margin: 40px auto !important;
  padding: 12px 0 28px !important;
  border-bottom: 1px solid rgba(0,0,0,.08) !important;
}

/* 「月別アーカイブ」見出しも中央に */
body.post-type-archive-diary h2,
body.post-type-archive-diary .widgettitle {
  text-align: center !important;
}

/* 交感日記のアーカイブだけフッターを隠す */
body.post-type-archive-diary .site-footer { display: none !important; }

/* 交感日記アーカイブのヘッダー画像を消したい場合（必要なら有効化）
body.post-type-archive-diary .site-header,
body.post-type-archive-diary .header,
body.post-type-archive-diary .kubio-header { display: none !important; }
*/
/* ===== 交感日記（diary）用：完全版スタイル ===== */

/* フォント & ベース色（アーカイブ／個別） */
body.post-type-archive-diary,
body.single-diary{
  --diary-font: "Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  font-family: var(--diary-font);
  color:#1f2d2b;
}

/* 中央カラム */
body.post-type-archive-diary .diary-full-list,
body.single-diary .diary-single{
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 見出し＆本文を中央寄せ */
body.post-type-archive-diary .diary-entry .entry-title,
body.single-diary .entry-title,
body.post-type-archive-diary .diary-entry .entry-content,
body.single-diary .entry-content{
  text-align: center;
}

/* 画像も中央寄せ */
body.post-type-archive-diary .entry-content img,
body.single-diary .entry-content img{
  display:block;
  margin: 1rem auto;
  height:auto;
}

/* 本文下の余白（アーカイブ／個別） */
body.post-type-archive-diary .diary-entry .entry-content,
body.single-diary .entry-content{
  margin-bottom: 1.25rem;
}

/* 投稿日時：本文の「行頭」に合わせて左寄せ（カラム内）＋余白拡張 */
body.post-type-archive-diary .diary-entry .entry-footer .diary-date,
body.single-diary .entry-footer .diary-date{
  display:block;
  width:max-content;          /* カラム中央にある状態で左寄せの幅を作る */
  margin: 16px auto 40px;     /* 上16px / 下40px（読みやすい余白） */
  text-align:left;
  font-size:.95rem;
  color:#3b5b55;
}

/* 記事間の区切り線（アーカイブ） */
body.post-type-archive-diary .diary-entry + .diary-entry{
  border-top: 1px solid rgba(0,0,0,.14);
  margin-top: 36px;
  padding-top: 36px;
}

/* フッターをアーカイブ(/diary/)だけ非表示 */
body.post-type-archive-diary .site-footer,
body.post-type-archive-diary footer.site-footer,
body.post-type-archive-diary .kubio-footer,
body.post-type-archive-diary .wp-block-template-part[area="footer"],
body.post-type-archive-diary .footer,
body.post-type-archive-diary .footer-widgets{
  display:none !important;
}

/* （ヘッダーは触らない：ここでは非表示にしない） */

/* 任意：リンク色（読みやすい落ち着いた緑） */
body.post-type-archive-diary a,
body.single-diary a{
  color:#1f6b57;
  text-decoration: underline;
}
body.post-type-archive-diary a:hover,
body.single-diary a:hover{
  opacity:.85;
}
</style>
/* ==== diary archive 強制スタイル（テンプレ直書き） ==== */
main.diary-scope{max-width:760px;margin:0 auto;padding:32px 16px 80px;font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo",sans-serif;color:#111;}
body.post-type-archive-diary .site-footer{display:none!important;}
.diary-scope .page-title,
.diary-scope .entry-title,
.diary-scope .entry-content,
.diary-scope .entry-footer,
.diary-scope .diary-date{text-align:center!important;}
.diary-scope .entry-content{font-size:1.05rem;line-height:1.9;}
.diary-scope .entry-content img, .diary-scope .entry-content figure{display:block;margin:1rem auto;max-width:100%;height:auto;}
.diary-scope article.diary-entry{padding:2.4rem 0;border-top:1px solid rgba(0,0,0,.12);}
.diary-scope article.diary-entry:first-of-type{border-top:none;}
.diary-scope .entry-title{font-size:clamp(1.6rem,2.5vw,2rem);line-height:1.35;color:#1f6b5c;margin:0 0 .8rem;}
.diary-scope .diary-date{display:block;margin-top:.75rem;opacity:.8}
.diary-scope .diary-date a{color:inherit;text-decoration:underline}
.diary-scope .diary-archives-links{margin-top:40px}
.diary-scope .diary-archives-links h2{text-align:center}
</style>
/* ===== 交感日記：リンク色／日付色／前後ナビ色 ===== */
body.post-type-archive-diary,
body.single-diary {
  /* 好きな色に変えてOK */
  --diary-date:        #6b7c85; /* 投稿日時の色 */
  --diary-link:        #1f6b5c; /* リンク基本 */
  --diary-link-hover:  #10483f; /* リンクhover */
}

/* 投稿日時（「2025年10月15日」など） */
.diary-scope .diary-date a{
  color: var(--diary-date);
  text-decoration: none;
  border-bottom: 1px solid currentColor; /* 下線風 */
}
.diary-scope .diary-date a:hover{
  color: var(--diary-link-hover);
  border-color: currentColor;
}

/* 個別記事の「← 前の日記 / 次の日記 →」 */
.diary-scope .diary-pager a{
  color: var(--diary-link);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.15);
}
.diary-scope .diary-pager a:hover{
  color: var(--diary-link-hover);
  border-color: currentColor;
}

/* （任意）アーカイブ下部のページャも合わせる場合 */
.diary-scope .diary-archives-pager a{
  color: var(--diary-link);
  text-decoration: none;
}
.diary-scope .diary-archives-pager a:hover{
  color: var(--diary-link-hover);
}
/* ===== 交感日記：色の最優先上書き ===== */

/* 投稿日時（アーカイブ＆シングル共通） */
body.post-type-archive-diary .diary-scope .diary-date a:link,
body.post-type-archive-diary .diary-scope .diary-date a:visited,
body.single-diary          .diary-scope .diary-date a:link,
body.single-diary          .diary-scope .diary-date a:visited{
  color:#6b7c85 !important;
  text-decoration:none !important;
  border-bottom:1px solid currentColor !important;
}
body.post-type-archive-diary .diary-scope .diary-date a:hover,
body.single-diary          .diary-scope .diary-date a:hover{
  color:#10483f !important;
  border-color:currentColor !important;
}

/* 「← 前の日記 / 次の日記 →」 （シングル） */
body.single-diary .diary-scope nav.diary-pager a:link,
body.single-diary .diary-scope nav.diary-pager a:visited,
body.single-diary .diary-scope .diary-pager a:link,
body.single-diary .diary-scope .diary-pager a:visited{
  color:#1f6b5c !important;
  text-decoration:none !important;
  border-bottom:1px solid rgba(0,0,0,.15) !important;
}
body.single-diary .diary-scope nav.diary-pager a:hover,
body.single-diary .diary-scope .diary-pager a:hover{
  color:#10483f !important;
  border-color:currentColor !important;
}
/* ===== 交感日記：リンク色を確実に上書き（クラス不明でも効かせる） ===== */

/* 投稿日リンク（アーカイブ・シングル両方） */
body.post-type-archive-diary time.diary-date a,
body.single-diary          time.diary-date a{
  color:#6b7c85 !important;            /* 通常色 */
  text-decoration:none !important;
  border-bottom:1px solid currentColor !important;
}
body.post-type-archive-diary time.diary-date a:hover,
body.single-diary          time.diary-date a:hover{
  color:#10483f !important;            /* ホバー色 */
  border-color:currentColor !important;
}

/* 前/次リンク（WordPressが rel="prev"/"next" を付けるのでそれを狙う） */
body.single-diary a[rel="prev"],
body.single-diary a[rel="next"]{
  color:#1f6b5c !important;
  text-decoration:none !important;
  border-bottom:1px solid rgba(0,0,0,.15) !important;
}
body.single-diary a[rel="prev"]:hover,
body.single-diary a[rel="next"]:hover{
  color:#10483f !important;
  border-color:currentColor !important;
}
/* ===========================
   交感日記：リンク色の強制上書き
   =========================== */

/* Kubio が link 色を CSS変数で管理していても勝てるよう、日記ページだけ変数も上書き */
body.post-type-archive-diary,
body.single-diary{
  --kubio-link-color: #1f6b5c;
  --kubio-link-hover-color: #10483f;
}

/* 1) 投稿日リンク（アーカイブ/シングル共通） */
body.post-type-archive-diary article.diary-entry footer.entry-footer a,
body.single-diary          article.diary-entry footer.entry-footer a,
body.post-type-archive-diary footer.entry-footer a,
body.single-diary            footer.entry-footer a{
  color: #6b7c85 !important;                /* 通常色 */
  text-decoration: none !important;
  border-bottom: 1px solid currentColor !important;
}
body.post-type-archive-diary article.diary-entry footer.entry-footer a:hover,
body.single-diary          article.diary-entry footer.entry-footer a:hover,
body.post-type-archive-diary footer.entry-footer a:hover,
body.single-diary            footer.entry-footer a:hover{
  color: #10483f !important;                /* ホバー色 */
  border-color: currentColor !important;
}

/* 2) 「前の日記」「次の日記」（シングルのみ） */
body.single-diary nav.diary-pager a,
body.single-diary .diary-pager a{
  color: #1f6b5c !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(0,0,0,.15) !important;
}
body.single-diary nav.diary-pager a:hover,
body.single-diary .diary-pager a:hover{
  color: #10483f !important;
  border-color: currentColor !important;
}
/* ===== 交感日記：投稿日リンク＆前/次リンクの色を完全固定 ===== */

/* Kubio のリンク変数も上から塗り替える（シングル＆アーカイブ） */
body.post-type-archive-diary,
body.single-diary{
  --kubio-link-color: #1f6b5c;
  --kubio-link-hover-color: #10483f;
}

/* ▼ 投稿日リンク（「2025年10月15日」など） */
body.post-type-archive-diary footer.entry-footer .diary-date,
body.single-diary            footer.entry-footer .diary-date{
  color: #6b7c85 !important;                /* a が無い場合の文字色 */
}
body.post-type-archive-diary footer.entry-footer .diary-date a,
body.single-diary            footer.entry-footer .diary-date a{
  color: #6b7c85 !important;                /* 通常 */
  text-decoration: none !important;
  border-bottom: 1px solid currentColor !important;
}
body.post-type-archive-diary footer.entry-footer .diary-date a:hover,
body.single-diary            footer.entry-footer .diary-date a:hover{
  color: #10483f !important;                /* ホバー */
  border-color: currentColor !important;
}
body.post-type-archive-diary footer.entry-footer .diary-date a:visited,
body.single-diary            footer.entry-footer .diary-date a:visited{
  color: #6b7c85 !important;                /* 既読でも同色に固定 */
}

/* ▼ 「前の日記」「次の日記」 */
body.single-diary nav.diary-pager a,
body.single-diary .diary-pager a{
  color: #1f6b5c !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(0,0,0,.15) !important;
}
body.single-diary nav.diary-pager a:hover,
body.single-diary .diary-pager a:hover{
  color: #10483f !important;
  border-color: currentColor !important;
}
body.single-diary nav.diary-pager a:visited,
body.single-diary .diary-pager a:visited{
  color: #1f6b5c !important;                /* 既読でも色が変わらない */
}
/* 交感日記：投稿日リンク & 前/次リンクの色を絶対に固定 */
:root{
  /* Kubioのリンク変数も上書きしておく（保険） */
  --kubio-link-color: #1f6b5c;
  --kubio-link-hover-color: #10483f;
}

/* 投稿日リンク（フッター内）＆ 前/次リンク（pager） */
.site-main.diary-scope footer.entry-footer a:any-link,
.site-main.diary-scope nav.diary-pager a:any-link{
  color:#1f6b5c !important;          /* 通常/既読どちらも */
  text-decoration:none !important;
  border-bottom:1px solid rgba(0,0,0,.18) !important;
}

.site-main.diary-scope footer.entry-footer a:hover,
.site-main.diary-scope nav.diary-pager a:hover{
  color:#10483f !important;          /* ホバー */
  border-color:currentColor !important;
}

/* 念のため :link / :visited も明示（Safari等の既定色対策） */
.site-main.diary-scope footer.entry-footer a:link,
.site-main.diary-scope nav.diary-pager a:link,
.site-main.diary-scope footer.entry-footer a:visited,
.site-main.diary-scope nav.diary-pager a:visited{
  color:#1f6b5c !important;
}
/* ===== 交感日記専用ヘッダーの体裁 ===== */
body.diary-has-custom-header .diary-header { margin:0; }
body.diary-has-custom-header .diary-hero{
  max-width: 980px;
  margin: 0 auto 24px;
  padding: 56px 16px 24px;
  text-align: center;
}
body.diary-has-custom-header .diary-hero img{
  display:block; margin:0 auto; max-width:100%; height:auto; border-radius:12px;
}
body.diary-has-custom-header .diary-site-title{
  margin-top: 16px;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
}
/* ===== 交感日記: 専用ヘッダー／フッター ===== */
body.diary-has-custom-header .diary-header{margin:0 0 24px;}

.diary-hero{
  position:relative;
  max-width: 1100px;
  margin: clamp(8px, 2vw, 16px) auto 16px;
  aspect-ratio: 16/6;            /* 高さバランス */
  border-radius: 16px;
  overflow: hidden;
  background-image: var(--diary-hero);
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.diary-hero__overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.35));
  mix-blend-mode: multiply;
}
.diary-hero__inner{
  position:absolute; inset:0;
  display:grid; place-items:center;
  text-align:center; padding: 12px;
}
.diary-hero__title{
  margin:0;
  font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  letter-spacing: .06em;
  line-height: 1.1;
  color: #f9fafb;
  text-shadow: 0 3px 10px rgba(0,0,0,.35);
}
.diary-hero__title a{ color: inherit; text-decoration: none; }
.diary-hero__title a:hover{ text-decoration: underline; text-underline-offset: 4px; }

.diary-footer{
  margin: 40px 0 0;
  border-top: 1px solid rgba(0,0,0,.08);
}
.diary-footer__inner{
  max-width: 760px; margin: 0 auto; padding: 18px 12px 40px;
  display:flex; align-items:center; justify-content:space-between; gap: 12px;
  color:#666;
}
.diary-footer__brand{display:flex; align-items:center; gap:8px;}
.diary-footer__name{font-weight:700; font-size: .95rem;}
.diary-footer__copy{opacity:.85;}
/* 見出しフォントを上書き（無ければ既定フォントにフォールバック） */
.diary-hero__title{
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}
/* ==== 交感日記: 専用ヘッダー／フッター ================== */

/* Google Fonts（タイトルだけ特別感を出す） */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@600;700&display=swap');

/* 交感日記では親テーマの共通ヘッダー/フッターを隠す */
body.post-type-archive-diary .site-header,
body.single-diary          .site-header,
body.post-type-archive-diary .site-footer,
body.single-diary            .site-footer { display: none !important; }

/* ヒーローヘッダー（全幅） */
.diary-hero{
  width:100%;
  min-height:36vh;
  display:flex; align-items:center; justify-content:center;
  padding:64px 16px;
  background: center/cover no-repeat url('/wp-content/themes/diary-child-2/assets/diary-hero.jpg');
}
.diary-hero__inner{ max-width:1100px; margin:0 auto; text-align:center; }
.diary-hero__title{
  font-family:'Shippori Mincho B1','Hiragino Mincho ProN','Yu Mincho','Noto Serif JP',serif;
  font-size:clamp(2.2rem, 4vw + 1rem, 4.5rem);
  letter-spacing:.06em;
  color:#175e4d;        /* タイトル色（お好みで） */
  text-shadow:0 1px 0 rgba(255,255,255,.85);
}

/* コンテンツの横幅はこれまで通り */
main.diary-scope{ max-width:1100px; margin:0 auto; }

/* 専用フッター（全幅） */
.diary-footer{ width:100%; border-top:1px solid rgba(0,0,0,.08); padding:28px 16px; }
.diary-footer__inner{
  max-width:1100px; margin:0 auto;
  display:flex; align-items:center; gap:12px;
}
.diary-footer__logo{ width:28px; height:28px; object-fit:contain; }
.diary-footer__copy{ font-size:.9rem; color:#222; }

/* （任意）月別アーカイブ見出しを右端に寄りすぎていたら整える */
.diary-scope .diary-archives-links h2{ text-align:left; }
/* ===== 交感日記:カラー変更 2025-10-19 ===== */

/* 背景色:オフホワイト(アーカイブ&個別) */
body.post-type-archive-diary,
body.single-diary {
  background: #F2F2F2 !important;
}

/* ナビリンク色:ピンク紫 */
.diary-scope .diary-pager a,
body.single-diary .diary-pager a,
body.post-type-archive-diary .diary-pager a {
  color: #D07EC5 !important;
  border-bottom: 1px solid rgba(208,126,197,.3) !important;
  transition: color .2s ease, border-color .2s ease !important;
}

/* ナビリンクホバー:濃いピンク */
.diary-scope .diary-pager a:hover,
body.single-diary .diary-pager a:hover,
body.post-type-archive-diary .diary-pager a:hover {
  color: #B865AA !important;
  border-color: rgba(184,101,170,.5) !important;
}