@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Template:   cocoon-master
Version:    0.0.5
*/

/* =======================================================
   恋愛大好き｜占い師愛々が伝える恋愛と運気
   Cocoon Child 整理版 style.css
======================================================= */

/* --- フォント --- */
@import url('https://fonts.googleapis.com/css2?family=Kiwi+Maru:wght@400;500&family=Noto+Serif+JP:wght@400;500;600&display=swap');

/* --- デザイン変数 --- */
:root {
  --brand-light: #FDFBF9;
  --brand-pink: #EBE0E0;
  --brand-rose: #B27C7C;
  --brand-text: #4A4242;
  --brand-muted: #8A8080;
  --brand-border: #E2D6D6;
  --brand-white: #ffffff;

  --radius-main: 14px;
  --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.015);
  --shadow-hover: 0 4px 20px rgba(178, 124, 124, 0.10);

  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Kiwi Maru", sans-serif;
}

/* =======================================================
   全体
======================================================= */
html {
  box-sizing: border-box;
  background: var(--brand-light);
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  background: var(--brand-light);
  color: var(--brand-text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

a {
  color: var(--brand-text);
  text-decoration: none;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

a:hover {
  color: var(--brand-rose);
}

img,
iframe,
video,
embed,
object {
  max-width: 100%;
  height: auto;
}

img {
  vertical-align: bottom;
}

figure,
.wp-block-image img,
.eye-catch img,
.entry-card-thumb img,
.related-entry-card-thumb img,
.widget img {
  border-radius: var(--radius-main);
}

/* スクロールバー */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--brand-light);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-pink);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-rose);
}

/* =======================================================
   レイアウト
======================================================= */
.container,
.content,
#content,
.main,
#main,
.sidebar,
#sidebar {
  background: transparent;
}

.content-in,
.header-in,
.navi-in,
.footer-in,
.appeal-in {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-in {
  padding-top: 32px;
  padding-bottom: 48px;
}

/* =======================================================
   ヘッダー
======================================================= */
#header-container,
.header-container {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--brand-border);
  box-shadow: none;
}

#header,
.header {
  background: transparent;
  box-shadow: none;
}

#header-container::before {
  content: "占い師愛々が伝える恋愛と運気";
  display: block;
  text-align: center;
  background: rgba(235, 224, 224, 0.45);
  color: var(--brand-text);
  font-size: 11px;
  letter-spacing: 0.18em;
  padding: 7px 10px;
  line-height: 1.4;
}

.header-in {
  min-height: 78px;
}

.site-name-logo,
.logo-header,
.site-name-text,
#site-name {
  font-family: var(--font-serif);
  letter-spacing: 0.18em;
  font-weight: 400;
}

.site-name-text a,
#site-name a,
.logo-header a {
  color: var(--brand-text);
  font-size: 1.1rem;
}

.tagline,
.site-description,
.header .site-description {
  color: var(--brand-muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-family: var(--font-sans);
}

/* =======================================================
   グローバルナビ
======================================================= */
#navi,
.navi {
  background: transparent;
  border-top: none;
  border-bottom: none;
  box-shadow: none;
}

.navi-in > ul,
#navi ul {
  gap: 8px;
}

.navi-in a,
#navi a {
  color: var(--brand-text);
  font-size: 12px;
  letter-spacing: 0.18em;
  padding: 16px 14px;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.navi-in a:hover,
#navi a:hover,
.navi-in > ul > li.current-menu-item > a,
.navi-in > ul > li.current-menu-parent > a {
  color: var(--brand-rose);
  background: transparent;
  border-bottom-color: var(--brand-rose);
}

#navi .sub-menu,
.navi .sub-menu {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

#navi .sub-menu a,
.navi .sub-menu a {
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 12px 14px;
  border-bottom: none;
}

/* =======================================================
   アピールエリア
======================================================= */
.appeal,
.appeal-area {
  background: linear-gradient(to bottom, rgba(235, 224, 224, 0.30), var(--brand-light));
  border-bottom: 1px solid var(--brand-border);
}

.appeal-in {
  padding-top: 64px;
  padding-bottom: 64px;
}

.appeal-content,
.appeal-message,
.appeal-title {
  text-align: center;
}

.appeal-title {
  font-family: var(--font-serif);
  color: var(--brand-text);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.14em;
}

.appeal-message {
  color: var(--brand-text);
  font-size: 13px;
  line-height: 2;
}

/* =======================================================
   記事カード・一覧（安全な見た目調整のみ）
======================================================= */
.ect-vertical-card,
.entry-card-wrap,
.related-entry-card-wrap,
.a-wrap {
  margin-bottom: 28px;
}

.entry-card-wrap,
.ect-entry-card,
.related-entry-card-wrap {
  background: transparent;
  border: none;
  box-shadow: none;
}

.entry-card,
.related-entry-card,
.widget-entry-card {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.entry-card-thumb,
.related-entry-card-thumb {
  overflow: hidden;
  border-radius: var(--radius-main);
  margin-bottom: 14px;
}

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

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

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

.entry-card-title,
.related-entry-card-title,
.widget-entry-card-title,
.widget-related-entry-card-title {
  font-family: var(--font-serif);
  color: var(--brand-text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.entry-card-title a,
.related-entry-card-title a,
.widget-entry-card-title a,
.widget-related-entry-card-title a {
  color: inherit;
}

.entry-card:hover .entry-card-title,
.related-entry-card:hover .related-entry-card-title {
  color: var(--brand-rose);
}

.entry-card-snippet,
.related-entry-card-snippet,
.widget-entry-card-snippet,
.widget-related-entry-card-snippet {
  color: var(--brand-text);
  opacity: 0.92;
  font-size: 12px;
  line-height: 1.9;
  display: block;
  clear: both;
  margin-top: 8px;
}

/* カテゴリラベル */
.cat-label,
.entry-card .cat-label,
.related-entry-card .cat-label,
.widget-entry-card .cat-label,
.related-entry-card-info .cat-label,
.date-tags .cat-label {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  float: none !important;
  clear: none !important;
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 0 10px !important;
  padding: 3px 10px !important;
  background: #fff !important;
  color: var(--brand-rose) !important;
  border: 1px solid rgba(178, 124, 124, 0.40) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  line-height: 1.5 !important;
}

/* 日付まわり */
.entry-card-date,
.related-entry-card-date,
.date-tags,
.related-entry-card-info {
  margin: 0 0 8px !important;
  line-height: 1.6;
}

.post-date,
.post-update,
.entry-card-post-date,
.entry-card-update-date,
.widget-entry-card-post-date,
.widget-entry-card-update-date,
.related-entry-card .post-date,
.related-entry-card .post-update,
.widget-related-entry-card-date .post-date,
.widget-related-entry-card-date .post-update {
  color: var(--brand-muted) !important;
  font-size: 11px !important;
  line-height: 1.6 !important;
}

/* =======================================================
   本文
======================================================= */
.entry-content,
.post-content,
.article,
.article-content {
  color: var(--brand-text);
  line-height: 2.2;
  font-size: 16px;
}

.entry-content p,
.post-content p {
  margin-bottom: 1.5rem;
}

.entry-title,
.archive-title,
.page-title {
  font-family: var(--font-serif);
  color: var(--brand-text);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.8;
}

/* 本文リンク */
.entry-content a,
.post-content a {
  color: var(--brand-rose);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(178, 124, 124, 0.45);
}

.entry-content a:hover,
.post-content a:hover {
  text-decoration-color: var(--brand-rose);
}

.entry-content strong,
.post-content strong {
  color: var(--brand-text);
  font-weight: 700;
}

/* --- 見出し装飾のリセット --- */
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5 {
  background: none !important;
  background-image: none !important;
  border-left: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* --- h2 --- */
.entry-content h2,
.post-content h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
  position: relative;
  padding: 1.2rem 0;
  margin: 3.5rem 0 1.5rem;
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
  letter-spacing: 0.1em;
  background: transparent;
}

.entry-content h2::before,
.entry-content h2::after,
.post-content h2::before,
.post-content h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 1px;
  background-color: var(--brand-rose);
}

.entry-content h2::before,
.post-content h2::before {
  top: 3px;
}

.entry-content h2::after,
.post-content h2::after {
  bottom: 3px;
}

/* --- h3 --- */
.entry-content h3,
.post-content h3 {
  clear: both !important;
  float: none !important;
  overflow: visible !important;

  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.8;
  position: relative;
  padding: 0.6rem 0 0.6rem 1rem;
  margin: 2.5rem 0 1.25rem;
  border-bottom: 1px dashed var(--brand-border);
  background: transparent;
}

.entry-content h3::before,
.post-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background-color: var(--brand-rose);
  border-radius: 4px;
}

.entry-content h3::after,
.post-content h3::after {
  content: none !important;
}

/* --- h4 --- */
.entry-content h4,
.post-content h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
  padding-left: 1.2rem;
  margin: 2rem 0 1rem;
}

.entry-content h4::before,
.post-content h4::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-rose);
  font-size: 0.8rem;
}

/* --- h5 --- */
.entry-content h5,
.post-content h5 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  margin: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--brand-border);
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* --- リスト --- */
.entry-content ul,
.post-content ul {
  margin: 1.5rem 0 1.5rem 1rem;
  padding: 0;
}

.entry-content ul li,
.post-content ul li {
  position: relative;
  list-style: none;
  padding-left: 1.2rem;
  margin-bottom: 0.8rem;
}

.entry-content ul li::before,
.post-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-rose);
}

.entry-content ol,
.post-content ol {
  list-style: decimal;
  margin: 1.5rem 0 1.5rem 1.5rem;
  padding-left: 0;
}

.entry-content ol li,
.post-content ol li {
  margin-bottom: 0.8rem;
  padding-left: 0.5rem;
}

.entry-content ol li::marker,
.post-content ol li::marker {
  color: var(--brand-rose);
  font-weight: 500;
  font-family: var(--font-serif);
}

/* --- 定義リスト --- */
.entry-content dl,
.post-content dl {
  margin: 2rem 0;
  background-color: #fff;
  padding: 1.8rem;
  border-radius: var(--radius-main);
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-card);
}

.entry-content dt,
.post-content dt {
  font-weight: 500;
  color: var(--brand-rose);
  border-bottom: 1px dashed var(--brand-border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-serif);
}

.entry-content dd,
.post-content dd {
  margin-left: 0;
  margin-bottom: 1.5rem;
  font-size: 0.95em;
}

.entry-content dd:last-child,
.post-content dd:last-child {
  margin-bottom: 0;
}

/* --- 引用 --- */
.entry-content blockquote,
.post-content blockquote {
  margin: 2rem 0;
  padding: 1.8rem 2rem 1.8rem 3.5rem;
  background-color: var(--brand-light);
  border: 1px solid var(--brand-pink);
  border-radius: var(--radius-main);
  position: relative;
  color: #665d5d;
}

.entry-content blockquote::before,
.post-content blockquote::before {
  content: "“";
  font-family: var(--font-serif);
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 4rem;
  color: var(--brand-pink);
  line-height: 1;
}

.entry-content blockquote p:last-child,
.post-content blockquote p:last-child {
  margin-bottom: 0;
}

/* --- テーブル --- */
.entry-content table,
.post-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2.5rem 0;
  background-color: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-main);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.entry-content th,
.entry-content td,
.post-content th,
.post-content td {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--brand-border);
  border-right: 1px solid var(--brand-border);
  text-align: left;
  vertical-align: top;
}

.entry-content th:last-child,
.entry-content td:last-child,
.post-content th:last-child,
.post-content td:last-child {
  border-right: none;
}

.entry-content tr:last-child th,
.entry-content tr:last-child td,
.post-content tr:last-child th,
.post-content tr:last-child td {
  border-bottom: none;
}

.entry-content th,
.post-content th {
  background-color: rgba(235, 224, 224, 0.4);
  font-weight: 500;
  color: var(--brand-text);
  white-space: nowrap;
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
}

/* =======================================================
   目次
======================================================= */
.toc,
#toc,
.toc-box {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 1.2rem 1.4rem;
}

.toc-title,
.toc-caption {
  font-family: var(--font-serif);
  color: var(--brand-text);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.toc a {
  color: var(--brand-text);
  font-size: 14px;
}

.toc a:hover {
  color: var(--brand-rose);
}

/* =======================================================
   サイドバー
======================================================= */
.widget,
.sidebar .widget,
#sidebar .widget {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 20px;
  margin-bottom: 28px;
}

.widget-title,
.widget-sidebar-title,
.sidebar h3,
#sidebar h3 {
  font-family: var(--font-serif) !important;
  color: var(--brand-text) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.7 !important;
  position: relative !important;
  margin: 0 0 14px !important;
  padding: 0.6rem 0 0.6rem 1rem !important;
  background: none !important;
  background-image: none !important;
  border: none !important;
  border-bottom: 1px dashed var(--brand-border) !important;
  box-shadow: none !important;
}

.widget-title::before,
.widget-sidebar-title::before,
.sidebar h3::before,
#sidebar h3::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 4px !important;
  height: 70% !important;
  background-color: var(--brand-rose) !important;
  border-radius: 4px !important;
}

.widget-title::after,
.widget-sidebar-title::after,
.sidebar h3::after,
#sidebar h3::after {
  content: none !important;
}

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

.widget ul li {
  margin: 0 0 10px;
  padding: 0;
  border-bottom: none;
}

.widget ul li a {
  color: var(--brand-text);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.9;
}

.widget ul li a:hover {
  color: var(--brand-rose);
}

/* 検索フォーム */
.search-edit,
.search-submit,
.sidebar .search-edit,
.sidebar .search-submit {
  border-radius: 0;
}

.search-edit {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--brand-border);
  padding: 10px 34px 10px 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--brand-text);
}

.search-edit:focus {
  outline: none;
  border-bottom-color: var(--brand-rose);
}

.search-submit {
  background: transparent;
  color: var(--brand-muted);
  border: none;
}

.search-submit:hover {
  color: var(--brand-rose);
  background: transparent;
}

/* =======================================================
   ページネーション
======================================================= */
.pagination,
.pager-post-navi,
.pager-links {
  text-align: center !important;
}

.pagination .current,
.page-numbers.current,
.pager-links span.current,
.pagination a,
.page-numbers,
.pager-links a,
a.next.page-numbers,
a.prev.page-numbers,
a.nextpostslink,
a.previouspostslink,
.pagination-next-link a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  margin: 4px 3px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.pagination a,
.page-numbers,
.pager-links a,
a.next.page-numbers,
a.prev.page-numbers,
a.nextpostslink,
a.previouspostslink,
.pagination-next-link a {
  background: transparent !important;
  color: var(--brand-text) !important;
  border: 1px solid var(--brand-border) !important;
}

.pagination .current,
.page-numbers.current,
.pager-links span.current {
  background: var(--brand-rose) !important;
  color: #fff !important;
  border-color: var(--brand-rose) !important;
}

.pagination a:hover,
.page-numbers:hover,
.pager-links a:hover,
a.next.page-numbers:hover,
a.prev.page-numbers:hover,
a.nextpostslink:hover,
a.previouspostslink:hover,
.pagination-next-link a:hover {
  color: var(--brand-rose) !important;
  border-color: var(--brand-rose) !important;
  background: rgba(178, 124, 124, 0.05) !important;
}

/* =======================================================
   ボタン
======================================================= */
a.more-button,
a.btn,
button,
input[type="submit"] {
  border-radius: 12px;
}

.btn-wrap a,
.wp-block-button__link,
button,
input[type="submit"] {
  background: #fff;
  color: var(--brand-text);
  border: 1px solid rgba(178, 124, 124, 0.40);
  box-shadow: none;
}

.btn-wrap a:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  background: rgba(178, 124, 124, 0.08);
  color: var(--brand-rose);
  border-color: var(--brand-rose);
}

/* =======================================================
   フッター
======================================================= */
#footer,
.footer {
  background: #fff;
  border-top: 1px solid var(--brand-border);
  color: var(--brand-text);
}

.footer-in {
  padding-top: 40px;
  padding-bottom: 30px;
}

.footer-title,
.footer-widget-title {
  font-family: var(--font-serif);
  color: var(--brand-text);
  letter-spacing: 0.12em;
}

.copyright,
.copy-right {
  color: var(--brand-muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}

/* =======================================================
   固定ページ用ブロック
======================================================= */

/* --- ヒーロー --- */
.aiai-hero,
.aiai-profile,
.aiai-note-section {
  margin: 0 0 32px;
}

.aiai-hero {
  background: linear-gradient(to bottom, rgba(235, 224, 224, 0.30), var(--brand-light));
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 56px 24px;
  text-align: center;
  overflow: hidden;
}

.aiai-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.aiai-hero-title {
  margin: 0 0 28px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 2.1;
  letter-spacing: 0.12em;
  color: var(--brand-text);
}

.aiai-chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.aiai-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(178, 124, 124, 0.40);
  color: var(--brand-text) !important;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-decoration: none !important;
}

.aiai-chip:hover {
  background: #fff;
  border-color: var(--brand-rose);
  color: var(--brand-rose) !important;
  transform: translateY(-1px);
}

/* --- プロフィール --- */
.aiai-profile {
  position: relative;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 34px;
  overflow: hidden;
}

.aiai-profile::after {
  content: "";
  position: absolute;
  top: -42px;
  right: -42px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(235, 224, 224, 0.45);
  filter: blur(42px);
}

.aiai-profile-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
}

.aiai-profile-image {
  flex: 0 0 96px;
}

.aiai-profile-image img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid var(--brand-border);
}

.aiai-profile-body {
  flex: 1 1 auto;
}

.aiai-profile-label {
  margin: 0 0 10px;
  color: var(--brand-rose);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.aiai-profile-name {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--brand-text);
  letter-spacing: 0.08em;
}

.aiai-profile-name-en {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--brand-muted);
}

.aiai-profile-text {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 2;
  color: var(--brand-text);
}

.aiai-profile-link {
  display: inline-block;
  color: var(--brand-text) !important;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none !important;
  border-bottom: 1px solid var(--brand-border);
  padding-bottom: 2px;
}

.aiai-profile-link:hover {
  color: var(--brand-rose) !important;
  border-bottom-color: var(--brand-rose);
}

/* --- note紹介 --- */
.aiai-note-section {
  padding: 54px 24px;
  background: rgba(235, 224, 224, 0.20);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
}

.aiai-note-section-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.aiai-note-section-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: var(--brand-text);
}

.aiai-note-section-text {
  margin: 0;
  font-size: 13px;
  line-height: 2;
  color: var(--brand-text);
}

.aiai-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.aiai-note-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 24px 22px;
  text-decoration: none !important;
}

.aiai-note-card:hover {
  border-color: var(--brand-rose);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.aiai-note-card-icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--brand-rose);
  font-size: 15px;
  line-height: 1;
}

.aiai-note-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.aiai-note-card-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: var(--brand-text);
}

.aiai-note-card-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.95;
  color: var(--brand-muted);
}

.aiai-note-section-footer {
  margin-top: 28px;
  text-align: center;
}

.aiai-note-section-link {
  display: inline-block;
  color: var(--brand-text) !important;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none !important;
  border-bottom: 1px solid var(--brand-border);
  padding-bottom: 2px;
}

.aiai-note-section-link:hover {
  color: var(--brand-rose) !important;
  border-bottom-color: var(--brand-rose);
}

/* =======================================================
   レスポンシブ
======================================================= */

/* 1240px以下 */
@media screen and (max-width: 1240px) {
  .content-in,
  .header-in,
  .navi-in,
  .footer-in,
  .appeal-in {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* 1030px以下 */
@media screen and (max-width: 1030px) {
  .aiai-note-grid {
    grid-template-columns: 1fr;
  }
}

/* 834px以下 */
@media screen and (max-width: 834px) {
  #header-container::before {
    font-size: 10px;
    padding: 6px 10px;
    letter-spacing: 0.12em;
  }

  .content-in,
  .header-in,
  .footer-in,
  .appeal-in,
  .navi-in {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .site-name-text a,
  #site-name a,
  .logo-header a {
    font-size: 1rem;
    letter-spacing: 0.12em;
  }

  .appeal-in {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .appeal-title {
    font-size: 1.15rem;
    line-height: 2;
  }

  .entry-content,
  .post-content {
    font-size: 15px;
    line-height: 2.05;
  }

  .entry-content h2,
  .post-content h2 {
    font-size: 1.2rem;
    margin-top: 3rem;
  }

  .entry-content h3,
  .post-content h3 {
    font-size: 1.08rem;
  }

  .entry-card-date,
  .related-entry-card-date,
  .date-tags,
  .related-entry-card-info {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px 10px !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    float: none !important;
    clear: both !important;
  }

  .post-date,
  .post-update,
  .entry-card-post-date,
  .entry-card-update-date,
  .widget-entry-card-post-date,
  .widget-entry-card-update-date,
  .related-entry-card .post-date,
  .related-entry-card .post-update,
  .widget-related-entry-card-date .post-date,
  .widget-related-entry-card-date .post-update {
    display: inline-flex !important;
    align-items: center !important;
    float: none !important;
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    white-space: normal !important;
  }

  .widget,
  .sidebar .widget,
  #sidebar .widget,
  .aiai-profile {
    padding: 18px;
  }

  .widget-title,
  .widget-sidebar-title,
  .sidebar h3,
  #sidebar h3 {
    font-size: 0.95rem !important;
  }

  .page-numbers,
  .pagination a,
  .pager-links a,
  .pager-links span,
  a.next.page-numbers,
  a.prev.page-numbers,
  a.nextpostslink,
  a.previouspostslink,
  .pagination-next-link a {
    min-width: 34px !important;
    height: 34px !important;
    font-size: 11px !important;
    padding: 0 10px !important;
  }

  .aiai-hero {
    padding: 42px 16px;
  }

  .aiai-hero-title {
    font-size: 1.08rem;
    line-height: 2;
    letter-spacing: 0.08em;
    margin-bottom: 22px;
  }

  .aiai-chip-list {
    gap: 8px;
  }

  .aiai-chip {
    width: 100%;
    padding: 11px 14px;
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  .aiai-profile {
    padding: 22px 16px;
  }

  .aiai-profile-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .aiai-profile-image {
    flex: none;
  }

  .aiai-profile-name {
    font-size: 1.2rem;
  }

  .aiai-profile-text {
    font-size: 12px;
    line-height: 1.95;
  }

  .aiai-note-section {
    padding: 38px 16px;
  }

  .aiai-note-section-head {
    margin-bottom: 24px;
  }

  .aiai-note-section-title {
    font-size: 1.12rem;
    line-height: 1.8;
    letter-spacing: 0.06em;
  }

  .aiai-note-section-text {
    font-size: 12px;
    line-height: 1.95;
  }

  .aiai-note-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .aiai-note-card {
    padding: 18px 16px;
    gap: 12px;
  }

  .aiai-note-card-title {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .aiai-note-card-text {
    font-size: 11px;
    line-height: 1.9;
  }
}

/* 480px以下 */
@media screen and (max-width: 480px) {
  .content-in,
  .header-in,
  .footer-in,
  .appeal-in,
  .navi-in {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .entry-content table,
  .post-content table,
  .wp-block-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .entry-content,
  .post-content {
    font-size: 15px !important;
    line-height: 2.05 !important;
  }

  .entry-content h2,
  .post-content h2 {
    font-size: 1.15rem !important;
  }

  .entry-content h3,
  .post-content h3 {
    font-size: 1.05rem !important;
    padding-left: 0.9rem !important;
  }

  .entry-card-title,
  .related-entry-card-title,
  .widget-entry-card-title,
  .widget-related-entry-card-title {
    font-size: 0.95rem;
  }
}

/* =======================================================
   通常記事ページの関連記事だけ Cocoon寄りに戻す
======================================================= */

/* 関連記事全体 */
.related-entries,
.related-entry-cards,
.related-entry-card-wrap {
  margin-top: 0;
}

/* カード本体を無理に縦積みしない */
.related-entry-card {
  display: block !important;
  overflow: hidden !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* サムネイルを左・本文を右の普通の関連記事レイアウト寄りに戻す */
.related-entry-card-thumb {
  float: left !important;
  width: 160px !important;
  max-width: 38% !important;
  margin: 0 16px 0 0 !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  position: relative !important;
}

.related-entry-card-thumb img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

/* 本文側 */
.related-entry-card-content {
  display: block !important;
  overflow: hidden !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
}

/* タイトル */
.related-entry-card-title,
.widget-related-entry-card-title {
  font-family: "Noto Serif JP", serif !important;
  font-size: 0.98rem !important;
  font-weight: 500 !important;
  line-height: 1.75 !important;
  letter-spacing: 0.03em !important;
  margin: 0 0 8px !important;
  color: #4A4242 !important;
}

/* 日付は普通の流れに戻す */
.related-entry-card-info,
.related-entry-card-date,
.widget-related-entry-card-date {
  display: block !important;
  width: auto !important;
  margin: 0 0 6px !important;
  float: none !important;
  clear: none !important;
  position: static !important;
  line-height: 1.5 !important;
}

.related-entry-card-info .post-date,
.related-entry-card-info .post-update,
.related-entry-card-date .post-date,
.related-entry-card-date .post-update,
.widget-related-entry-card-date .post-date,
.widget-related-entry-card-date .post-update {
  display: inline-block !important;
  width: auto !important;
  margin: 0 10px 0 0 !important;
  padding: 0 !important;
  float: none !important;
  position: static !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  color: #8A8080 !important;
}

/* カテゴリラベルは関連記事ではいったん普通に上に載せない */
.related-entry-card .cat-label,
.related-entry-card-info .cat-label,
.related-entry-card-date .cat-label {
  display: none !important;
}

/* 抜粋 */
.related-entry-card-snippet,
.widget-related-entry-card-snippet {
  display: block !important;
  clear: none !important;
  margin-top: 6px !important;
  font-size: 12px !important;
  line-height: 1.8 !important;
  color: #4A4242 !important;
}

/* スマホではサムネを少し小さめに */
@media screen and (max-width: 834px) {
  .related-entry-card-thumb {
    width: 120px !important;
    max-width: 34% !important;
    margin-right: 12px !important;
  }

  .related-entry-card-title,
  .widget-related-entry-card-title {
    font-size: 0.92rem !important;
    line-height: 1.7 !important;
  }

  .related-entry-card-info .post-date,
  .related-entry-card-info .post-update,
  .related-entry-card-date .post-date,
  .related-entry-card-date .post-update,
  .widget-related-entry-card-date .post-date,
  .widget-related-entry-card-date .post-update {
    white-space: normal !important;
    margin-right: 8px !important;
    font-size: 10px !important;
  }

  .related-entry-card-snippet,
  .widget-related-entry-card-snippet {
    font-size: 11px !important;
    line-height: 1.75 !important;
  }
}

/* =======================================================
   通常記事ページ：本文h3と執筆者ボックスの補正
   広く当てず、崩れている場所だけ直す
======================================================= */

/* ---------------------------------------
   1) 本文のh3は .entry-content 内だけに限定して整える
---------------------------------------- */
.entry-content h3,
.post-content h3 {
  clear: both !important;
  float: none !important;
  overflow: visible !important;

  position: relative !important;
  margin: 2.5rem 0 1.25rem !important;
  padding: 0.6rem 0 0.6rem 1rem !important;

  font-family: "Noto Serif JP", serif !important;
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  line-height: 1.8 !important;
  color: #4A4242 !important;

  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  border-top: none !important;
  border-right: none !important;
  border-left: none !important;
  border-bottom: 1px dashed #E2D6D6 !important;
  border-radius: 0 !important;
}

.entry-content h3::before,
.post-content h3::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 4px !important;
  height: 70% !important;
  background: #B27C7C !important;
  border-radius: 4px !important;
}

.entry-content h3::after,
.post-content h3::after {
  content: none !important;
}

/* ---------------------------------------
   2) 本文外のh3は線を消して普通に戻す
   コメント欄・関連記事見出し・その他
---------------------------------------- */
.article h3:not(.entry-content h3):not(.post-content h3),
.article-content h3:not(.entry-content h3):not(.post-content h3),
.comment-area h3,
.comments h3,
.related-entries h3,
.related-entry-card-content h3,
.author-box h3,
.author-box h4 {
  position: static !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
  background: none !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-family: "Noto Serif JP", serif !important;
  color: #4A4242 !important;
  line-height: 1.7 !important;
}

.article h3:not(.entry-content h3):not(.post-content h3)::before,
.article-content h3:not(.entry-content h3):not(.post-content h3)::before,
.comment-area h3::before,
.comments h3::before,
.related-entries h3::before,
.related-entry-card-content h3::before,
.author-box h3::before,
.author-box h4::before,
.article h3:not(.entry-content h3):not(.post-content h3)::after,
.article-content h3:not(.entry-content h3):not(.post-content h3)::after,
.comment-area h3::after,
.comments h3::after,
.related-entries h3::after,
.related-entry-card-content h3::after,
.author-box h3::after,
.author-box h4::after {
  content: none !important;
}

/* ---------------------------------------
   3) 執筆者ボックスをCocoon寄りに整える
---------------------------------------- */
.author-box {
  display: block !important;
  background: #fff !important;
  border: 1px solid #E2D6D6 !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
  padding: 20px !important;
  margin: 28px 0 !important;
  overflow: hidden !important;
}

.author-box .author-thumb,
.author-box .author-image,
.author-thumb {
  float: left !important;
  width: 88px !important;
  margin: 0 16px 12px 0 !important;
}

.author-box .author-thumb img,
.author-box .author-image img,
.author-thumb img {
  display: block !important;
  width: 88px !important;
  height: 88px !important;
  object-fit: cover !important;
  border-radius: 999px !important;
  border: 1px solid #E2D6D6 !important;
}

.author-box .author-content,
.author-box .author-meta {
  overflow: hidden !important;
}

.author-box .author-name,
.author-box-name,
.author-box .author-box-name a,
.author-box .author-name a {
  font-family: "Noto Serif JP", serif !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  color: #4A4242 !important;
  line-height: 1.6 !important;
  margin: 0 0 8px !important;
}

.author-box p,
.author-box .author-description,
.author-box .author-profile,
.author-box .author-content p {
  margin: 0 0 10px !important;
  font-size: 13px !important;
  line-height: 1.9 !important;
  color: #4A4242 !important;
}

.author-box a {
  color: #B27C7C !important;
}

.author-box .follow-button,
.author-box .author-follow-button,
.author-box .sns-follow-buttons a,
.author-box .follow-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  margin: 6px 8px 0 0 !important;
  border: 1px solid rgba(178, 124, 124, 0.40) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #4A4242 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.author-box .follow-button:hover,
.author-box .author-follow-button:hover,
.author-box .sns-follow-buttons a:hover,
.author-box .follow-btn:hover {
  color: #B27C7C !important;
  border-color: #B27C7C !important;
  background: rgba(178, 124, 124, 0.06) !important;
}

/* ---------------------------------------
   4) スマホ
---------------------------------------- */
@media screen and (max-width: 834px) {
  .entry-content h3,
  .post-content h3 {
    font-size: 1.08rem !important;
  }

  .author-box {
    padding: 16px !important;
  }

  .author-box .author-thumb,
  .author-box .author-image,
  .author-thumb {
    float: none !important;
    width: 72px !important;
    margin: 0 auto 12px !important;
  }

  .author-box .author-thumb img,
  .author-box .author-image img,
  .author-thumb img {
    width: 72px !important;
    height: 72px !important;
  }

  .author-box .author-content,
  .author-box .author-meta {
    overflow: visible !important;
    text-align: center !important;
  }

  .author-box .author-name,
  .author-box-name,
  .author-box .author-box-name a,
  .author-box .author-name a {
    font-size: 1rem !important;
  }

  .author-box p,
  .author-box .author-description,
  .author-box .author-profile,
  .author-box .author-content p {
    font-size: 12px !important;
    line-height: 1.85 !important;
  }
}