/*
 * Oyaomoi Theme Styles - Integrated & Corrected Version
 *
 * 修正点: 検索ボタンを非表示にする CSS ルールを削除
 */

:root{
  --bg:#f9f7f3;
  --ink:#5c5248;
  --ink-sub:#7b6a58;
  --line:#e9e1d1;
  --card:#fffdf9;
  --shadow:0 6px 24px rgba(0,0,0,.06);
  --acc:#f4a48d;
  --acc-strong:#f08a5d;
  --acc-soft:#fde1d6;
  --acc-red-orange: #e85a4f;
  --acc-red-orange-dark: #cf4f47;
  --gift-soft-pink: #fdf5f3;
  --gift-line: #fce7e3;
}

/* ========== Base & Typography ========== */
html,body{height:100%}
html{ scroll-behavior:smooth; }
body{
  margin:0; 
  color: #3a3a3a; 
  background-color: var(--card);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif; 
  line-height: 1.8; 
  font-size: 1rem; 
  -webkit-font-smoothing:antialiased; 
  text-rendering:optimizeLegibility;
}
.wrap{max-width:1100px; margin:auto; padding:0 20px}

/* リンク */
a {
  color: #1e2431;
  text-decoration: none;
  transition: color .2s ease;
}
a:hover {
  color: var(--acc-red-orange);
}

/* 見出し */
h1, h2, h3, h4 {
  font-family: "Playfair Display", "Noto Serif JP", serif;
  color: #1e2431;
  line-height: 1.4;
}
h1 { font-size: 1.9rem; font-weight: 700; }
h2{ margin:0 0 12px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); color:var(--ink-sub) }
h2 { font-size: 1.5rem; font-weight: 600; margin-top: 2.5em; border-bottom: 2px solid #e3d2b3; padding-bottom: .4em; }
h3 { font-size: 1.25rem; color: #1e2431; margin-top: 1.8em; font-weight: 600; }

/* ページ内アンカーのオフセット */
[id]{ scroll-margin-top: 76px; }
@media (max-width:700px){ [id]{ scroll-margin-top: 72px; } }

/* ========== Header & Navigation ========== */
.oya-header{
  position: relative; 
  z-index: 2000;
  transition: background .3s ease, box-shadow .3s ease;
}
.oya-header.is-sticky{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  background: linear-gradient(180deg, rgba(249,247,243,.95), rgba(249,247,243,.75));
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
#headerSpacer{ height: 0 !important; }

.nav{display:flex; align-items:center; justify-content:space-between; gap:16px; height:64px}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none}

/* ★★★ 修正箇所: ロゴのサイズ制御 (高さを40pxに固定) ★★★ */
.header-logo-img { 
  height: 40px; 
  width: auto; 
  object-fit: contain;
}

.menu ul{list-style:none; margin:0; padding:0; display:flex; gap:18px}
.menu li a{
  display:block; padding:8px 10px; text-decoration:none; border-radius:12px;
  position:relative; overflow:hidden;
}
.menu li a:hover{background:var(--acc-soft)}
.menu li a::after{
  content:""; position:absolute; left:12px; right:12px; bottom:6px; height:2px;
  background: linear-gradient(90deg, transparent, var(--acc), var(--acc-strong), transparent);
  transform: scaleX(0); transform-origin:left; transition: transform .18s ease;
}
.menu li a:hover::after{ transform: scaleX(1); }

/* ヘッダー内リンクの文字色 */
.oya-header a,
.oya-header nav ul li a {
  color: #1e2431;
  font-weight: 500;
}
.oya-header a:hover {
  color: var(--acc-red-orange);
}

/* ========== Hamburger / Mobile Menu ========== */
.hamburger{ background:transparent; border:0; padding:10px; margin:0;
  display:inline-flex; flex-direction:column; gap:4px; cursor:pointer; position:relative; z-index:3000;
}
.hamburger__bar{
  width:26px; height:2px; background:var(--ink); display:block;
  transition: transform .22s ease, opacity .18s ease, width .18s ease, background .2s ease;
  transform-origin: center;
}
/* ハンバーガーメニューが展開された時のスタイル (残す) */
body.menu-open .hamburger__bar:nth-child(1){ transform: translateY(6px) rotate(45deg); }
body.menu-open .hamburger__bar:nth-child(2){ opacity:0; width:0; }
body.menu-open .hamburger__bar:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.desktop-only{ display:none } 
.mobile-only{ display:inline-flex }
@media (min-width:900px){ .desktop-only{ display:flex } .mobile-only{ display:none } }

.mobile-menu{
  position:fixed; top:64px; right:0; left:0; z-index:9;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255,200,180,.25) 0%, rgba(255,200,180,0) 60%),
    radial-gradient(120% 80% at 80% 0%, rgba(255,180,170,.22) 0%, rgba(255,180,170,0) 60%),
    var(--bg);
  border-top:1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transform-origin: top; transform: translateY(-10px) scaleY(0.96);
  opacity:0; pointer-events:none;
  transition: transform .22s ease, opacity .22s ease;
}
.mobile-menu::before{
  content:""; display:block; height:3px;
  background: linear-gradient(90deg, transparent, var(--acc), var(--acc-strong), transparent);
  opacity:.7;
}
.mobile-menu__list{
  list-style:none; margin:0; padding:12px 20px 20px;
  display:flex; flex-direction:column; gap:4px;
}
.mobile-menu__list > li{ opacity:0; transform: translateY(-6px); }
@keyframes menuItemIn{
  from{ opacity:0; transform: translateY(-6px); }
  to{ opacity:1; transform: translateY(0); }
}
/* モバイルメニューが展開された時のスタイル (残す) */
body.menu-open .mobile-menu{ transform: translateY(0) scaleY(1); opacity:1; pointer-events:auto; }
body.menu-open .mobile-menu[hidden]{ display:block }
body.menu-open #mobileMenu{ display:block }
body.menu-open .mobile-menu__list > li{ animation: menuItemIn .22s ease forwards; }
body.menu-open .mobile-menu__list > li:nth-child(1){ animation-delay: .02s }
body.menu-open .mobile-menu__list > li:nth-child(2){ animation-delay: .05s }
body.menu-open .mobile-menu__list > li:nth-child(3){ animation-delay: .08s }
body.menu-open .mobile-menu__list > li:nth-child(4){ animation-delay: .11s }
body.menu-open .mobile-menu__list > li:nth-child(5){ animation-delay: .14s }
body.menu-open .mobile-menu__list > li:nth-child(6){ animation-delay: .17s }
body.menu-open .mobile-menu__list > li:nth-child(7){ animation-delay: .20s }
.mobile-menu__list > li > a{
  position:relative; display:block; padding:14px 12px; text-decoration:none; border-radius:14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.mobile-menu__list > li > a::after{
  content:"›";
  position:absolute; right:12px; top:50%; transform: translateY(-50%);
  font-weight:700; color: var(--acc-strong);
  opacity:.7;
}
.mobile-menu__list > li > a:hover{
  background: linear-gradient(180deg, rgba(255,255,255,.9), var(--acc-soft));
  box-shadow: 0 6px 18px rgba(240,138,93,.12);
}

/* ========== Hero (フル幅) ========== */
.hero.hero--fw{
  position: relative;
  margin: 0;
  padding: 0;
  overflow: clip;
  background: var(--bg);
  z-index: 0; 
}
.hero--fw .hero-slides{
  position: relative;
  width: 100%;
  height: clamp(360px, 62vh, 760px);
  overflow: hidden;
  z-index: 0; 
}
.hero--fw .hero-slides .slide{
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  filter: saturate(0.68) brightness(0.92) contrast(1.02);
  animation: heroFadeZoom4 28s infinite ease-in-out;
  will-change: opacity, transform;
}
.hero--fw .hero-slides .slide:nth-child(1){ animation-delay: 0s;  }
.hero--fw .hero-slides .slide:nth-child(2){ animation-delay: 7s;  }
.hero--fw .hero-slides .slide:nth-child(3){ animation-delay: 14s; }
.hero--fw .hero-slides .slide:nth-child(4){ animation-delay: 21s; }
@keyframes heroFadeZoom4{
  0%  { opacity:0;   transform: scale(1.02); }
  5%  { opacity:1;   transform: scale(1.03); }
  28% { opacity:1;   transform: scale(1.07); }
  33% { opacity:0;   transform: scale(1.07); }
  100% { opacity:0; transform: scale(1.07); }
}
.hero--fw .hero-slides .overlay{
  position:absolute; inset:0; pointer-events:none; 
  z-index:1; 
  background: linear-gradient(180deg, rgba(234,210,180,0.30) 0%, rgba(226,190,150,0.38) 100%);
  mix-blend-mode: multiply;
}
.hero--fw .hero-content{
  position: absolute; inset: 0; z-index: 2; 
  display: grid;
  align-items: center;        
  justify-items: start;     
  text-align: left;
}
.hero--fw .hero-content .wrap{
  position: relative;
  display: inline-block;
  max-width: min(920px, 92vw);
  padding: 15px;
  transform: translateY(40%);
}
.hero--fw .hero-content .wrap > *{ position:relative; z-index:1; }

.hero--fw .hero-content .wrap::before{
  content:"";
  display: block;
  position:absolute; 
  z-index:0; 
  top: -15px; 
  left: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 20px);
  
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.15);
  
  border-radius: 18px;
  pointer-events:none;
}
.eyebrow{ display:inline-block; font-size:.85rem; letter-spacing:.12em; color:#fff; border-left:4px solid rgba(255,255,255,.7); padding-left:.6rem; margin-bottom:.6rem; text-shadow: 0 1px 2px rgba(0,0,0,.30); }
.hero--fw h1{
  margin: 0 0 10px; color:#fff;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.22; text-wrap: balance;
  text-shadow: 0 1px 2px rgba(0,0,0,.30);
}
.hero--fw .hero__lead{
  margin: .2rem 0 1.2rem; color:#fff; 
  font-size: clamp(.98rem, 1.4vw, 1.05rem);
  text-shadow: 0 1px 2px rgba(0,0,0,.30);
}
.hero--fw .cta{ display:flex; gap:12px; flex-wrap:wrap; justify-content:flex-start; }
.hero--fw .cta .btn{ text-align:center; box-shadow: 0 6px 24px rgba(0,0,0,.16); }

/* ヒーローエリアの「あなたのoyaomoiを投稿する」ボタン（.btn--ghost）のスタイル */
.hero--fw .btn--ghost{
  background: rgba(255, 255, 255, 0.85);
  color: #00A19D;
  border: 2px solid #00A19D;
  backdrop-filter: none;
}
.hero--fw .btn--ghost:hover{
  background-color: #00A19D;
  color: #FFFFFF;
}

/* ヒーローエリアの「親孝行のアイデアを見る」ボタン（.btn）のスタイル */
.hero--fw .cta .btn:not(.btn--ghost) {
  background-color: #ffffff;
  color: var(--acc-red-orange);
  border: 1px solid var(--acc-red-orange);
}
.hero--fw .cta .btn:not(.btn--ghost):hover {
  background-color: var(--acc-red-orange);
  color: #ffffff;
  border-color: var(--acc-red-orange);
}


@media (max-width:700px){
  .hero--fw .hero-content{ align-items:end; justify-items:center; padding-bottom:22px; }
  .hero--fw .hero-content .wrap{
    display:block; width: calc(100% - 24px); max-width:560px; transform:none;
  }
  .hero--fw .hero-content .wrap::before{
    inset: -12px; border-radius:16px;
    background: linear-gradient(180deg, rgba(40,32,28,.38), rgba(40,32,28,.28) 55%, rgba(40,32,28,0) 100%);
  }
  .hero--fw .cta{ flex-direction:column; align-items:center; justify-content:center; }
  .hero--fw .cta .btn{ width:100%; max-width:280px; }
}
@media (prefers-reduced-motion: reduce){
  .hero--fw .hero-slides .slide{ animation: none; opacity: 1; transform: none; }
}
.hero--fw, .hero--fw *{ z-index:auto; }

/* ヒーローエリアの強制表示 */
.home .hero { display:block !important; visibility: visible !important; opacity: 1 !important; }
:not(.home) .hero { display:none; } 


/* ========== Buttons (共通) ========== */
.btn{
  display:inline-block; text-decoration:none; cursor:pointer;
  padding:12px 18px; border-radius:999px; border:1px solid transparent;
  background:var(--acc); color:#fff; font-weight:700; box-shadow:var(--shadow);
  transition:transform .06s ease, filter .2s ease, background .2s ease;
}
.btn:hover{ filter:brightness(1.05) saturate(1.05) }
.btn:active{ transform:translateY(1px) }

.btn--ghost{ 
  background:transparent; 
  color:var(--ink); 
  border-color:var(--acc);
}
.btn--ghost:hover{ 
  background: var(--acc-soft); 
}

/* 「もっと見る」ボタン (.btn--ghost) の共通スタイル（セクションフッター用） */
.btn.btn--ghost,
a.btn.btn--ghost {
  background-color: #fff; 
  border: 2px solid #00A19D; 
  color: #00A19D; 
}
.btn.btn--ghost:hover,
a.btn.btn--ghost:hover {
  background-color: #00A19D; 
  color: #FFFFFF; 
}

/* セクションヘッダーの左寄せとマージン */
.section-header {
  margin-bottom: 40px; 
}
.section-header > div {
  display: flex;
  align-items: center; 
  justify-content: flex-start;
  gap: 12px; 
}

/* アイコンコンテナ */
.h-label {
  display: flex; 
  flex-shrink: 0; 
  margin: 0; 
}
/* SVGアイコン自体のスタイル */
.h-label svg {
  width: 40px; 
  height: 40px; 
  color: #00A19D;
  margin: 0; 
}

/* タイトル要素 */
.h-title {
  margin: 0; 
}
/* ----- */

.lead{ color:#776f66; margin:0 0 18px; font-size:.98rem }
.grid{ display:grid; gap:18px; grid-template-columns: repeat(12, 1fr) }
.grid--3col .card{ grid-column:span 12 }
@media (min-width:700px){ .grid--3col .card{ grid-column: span 4 } }

/* セクションフッターの調整（もっと見るボタン） */
.section-footer{
  display: flex;
  justify-content: center;
  margin-top: 40px;
}


/* ========== Sections (パターン2: .section) ========== */
.section {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .6s ease, transform .6s ease;
}
.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.section:nth-of-type(even) {
  background: linear-gradient(to bottom, #f6f3ee 0%, #fff 100%);
}
.section:nth-of-type(odd) {
  background: linear-gradient(to bottom, #fff 0%, #f6f3ee 100%);
}
.section::before {
  content: "";
  display: block;
  width: 160px;
  height: 14px;
  margin: 0 auto 1.5rem;
  background: url("/wp-content/themes/oyaomoi/assets/img/line_flower.svg") center/contain no-repeat;
  opacity: 0.35;
}
.h-title, h2{
  color: var(--ink-sub); 
}

/* ========== Scroll reveal (汎用) ========== */
.reveal,
.reveal .card{ 
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-in, 
.reveal.is-in .card, 
.card.is-in { 
  opacity: 1;
  transform: none;
}

/* ========== Cards (最終適用スタイル) ========== */
/* カードの要素にホバーアクションを適用するためのクラス */
.card a.card-link { 
  display: block; 
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); 
}

.card{ 
  background: #fff;
  border-radius: 12px;
  overflow:hidden; 
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
/* カードのホバーアクション - ふわっと大きく */
.card:hover { 
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.card a.card-link:hover {
  transform: none;
}

/* カード内部のスタイル */
.card__img{ width:100%; aspect-ratio:16/9; object-fit:cover; background:
  linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.06)),
  radial-gradient(120% 140% at 20% 10%, var(--acc-soft) 0%, #fff 70%); }
.card__imgLink{ display:block }
.card__body{ 
  padding: 1rem 1.2rem 1.5rem; 
}
.card__cat{ display:inline-flex; align-items:center; gap:8px; font-size:.78rem; color:#7c736a; margin-bottom:8px }
.dot{ width:8px; height:8px; border-radius:50%; background:var(--acc) }
.card__title{ margin:.1rem 0 .5rem; font-size:1.05rem; line-height:1.5 }
.card__title a{ 
  color: #1e2431;
  font-weight: 600;
  text-decoration: none;
}
.card__title a:hover{ 
  text-decoration:underline; 
  color: var(--acc-red-orange);
}
.card__meta{ display:flex; gap:10px; flex-wrap:wrap; font-size:.82rem; color:#8a8178 }
.card__meta a{ color:var(--acc-strong); text-decoration:none }
.card__meta a:hover{ text-decoration:underline }
.card__cat__label {
  color: #555;
  font-size: .85rem;
}

/* ========== Entry / Single / Article ========== */
.entry__title{ margin:.4rem 0 }
.entry__content{ line-height:1.9 }
.single__title{ margin:0 0 .3rem; color:var(--ink-sub) }
.single__meta{ color:#857a71; margin-bottom:14px }
.single__thumb img{ width:100%; height:auto; border-radius:16px; box-shadow:var(--shadow) }
.single__content{ line-height:1.95 }
.single__content p{ margin:1em 0 }
.comments{ margin-top:32px; }
.article-hero {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.article-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.article-hero .lead {
  padding: 1.5rem;
  background: #faf8f3;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.7;
}
.content p {
  margin-bottom: 1.6em;
}
blockquote {
  border-left: 4px solid #e3d2b3;
  background: #faf8f3;
  padding: 1rem 1.5rem;
  margin: 2em 0;
  font-style: italic;
  color: #555;
  border-radius: 4px;
}
.content img {
  width: 100%;
  border-radius: 12px;
  margin: 2em 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ========== Footer / Back to Top / Modal ========== */
.oya-footer{ border-top:1px solid var(--line); padding:26px 0 48px; color:#857a71; font-size:.9rem }
.links ul{ list-style:none; margin:0 0 8px; padding:0; display:flex; gap:16px; flex-wrap:wrap }
.links li a{ color:var(--ink); text-decoration:none; padding:6px 10px; border-radius:10px }
.links li a:hover{ background:var(--acc-soft) }

.toTop{
  position: fixed; right: 16px; bottom: 18px; z-index: 1000;
  width: 44px; height: 44px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fffdf9);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  color: var(--ink);
  cursor: pointer;
  opacity: 0; transform: translateY(8px) scale(.98);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}
.toTop__chev{ font-size: 14px; line-height: 1; }
.toTop:hover{ box-shadow: 0 10px 28px rgba(0,0,0,.16); }
.toTop.is-visible{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
@media (max-width:700px){ .toTop{ right:12px; bottom:14px; } }


/*
 * ===========================================
 * Sections (パターン1: .sec) - 背景色交互切り替え
 * ===========================================
 */
.sec { 
    position: relative;
    padding: 56px 0;    
    z-index: 10;
    background-color: var(--card); 
}
.sec:nth-of-type(odd) {
    background:
        radial-gradient(120% 80% at 10% 0%, rgba(255,220,205,.18) 0%, rgba(255,220,205,0) 60%),
        radial-gradient(120% 80% at 90% 0%, rgba(255,205,195,.14) 0%, rgba(255,205,195,0) 60%),
        var(--bg);
}

.section-header {
    margin-bottom: 40px; 
}
.section-header > div {
    display: flex;
    align-items: center; 
    justify-content: flex-start;
    gap: 12px; 
}
/* ... (h-label, h-title の定義は中略) ... */

/* #featured セクションの背景画像 */
#featured {
    background-color: var(--bg);
    z-index: 10;
}
#featured::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    filter: saturate(0.7); 
    opacity: 0.25;
    background-image: url('../img/light_texture_image.jpg');
    background-size: cover;
    background-position: center top;
}

/* ギフト特集セクション */
.sec.is-gift-highlight {
    background-color: var(--gift-soft-pink) !important; 
    background-image: linear-gradient(
        to right, 
        var(--gift-line) 1px, 
        transparent 1px
    ), 
    linear-gradient(
        to bottom, 
        var(--gift-line) 1px, 
        transparent 1px
    ) !important;
    background-size: 25px 25px !important;
    background-repeat: repeat !important;
    color: var(--ink); 
    border: none !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05) inset;
    z-index: 20 !important;
}
.sec.is-gift-highlight h2,
.sec.is-gift-highlight h3,
.sec.is-gift-highlight .lead {
    color: var(--ink);
}
.sec.is-gift-highlight::before,
.sec.is-gift-highlight::after {
    content: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/*
 * ===========================================
 * カード内のアイキャッチ画像サイズ固定
 * ===========================================
 */
.card-media {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    border-radius: 8px 8px 0 0;
    background-color: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
}
.card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}
.card:hover .card-media img {
    transform: scale(1.05);
}
.post-thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.post-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block; 
}

/* OGP風リンクカード */
.link-card {
    display: flex;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5em 0;
    transition: box-shadow 0.3s;
    background-color: #fff;
}
.link-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.link-card__thumb {
    flex-shrink: 0;
    width: 30%;
    max-width: 150px;
    height: auto;
}

.link-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-card__body {
    padding: 15px;
    width: 70%;
}

.link-card__title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    overflow: hidden;
}

.link-card__excerpt {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}

.link-card__site {
    font-size: 0.8em;
    color: #999;
    font-style: normal;
}

@media (max-width: 600px) {
    .link-card {
        flex-direction: column;
    }
    .link-card__thumb,
    .link-card__body {
        width: 100%;
        max-width: none;
    }
    .link-card__thumb {
        height: 150px; 
    }
}

/* メニューの ul にクラスを付けた場合 */
.oya-header .menu-items {
    display: flex; 
    align-items: center;
}

/* 検索ボタンの li 要素をメニュー項目と同じスタイルにする */
.vkfs-menu-item {
    list-style: none;
    margin: 0;
    padding: 0; 
    /* 修正前: display: none !important; のルールがここにあったため、削除しました。 */
}

/* --------------------------------------
 * 検索ボタンの小型化（アイコン化）と文字列対応
 * -------------------------------------- */
.vkfs-search-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    margin: 0;
    
    font-size: 1rem;
    font-weight: bold;
    color: inherit; 
    line-height: 1;
    height: auto;
    
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* VK Filter Search フォームラッパーのスタイル (残す) */
.vkfs-search-form-wrap {
    width: 100%;
    border-top: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    z-index: 99; 
    overflow: hidden;
    
    
    /* ★★★ アニメーション設定 (残す) ★★★ */
    max-height: 0;
    /*transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out; */
    padding-top: 0; 
    padding-bottom: 0;
}

/* 5. 開いた時のスタイル（高さとパディング） (残す) */
.vkfs-search-form-wrap.is-open {
    max-height: 800px; 
    padding-top: 15px; 
    padding-bottom: 15px;
    opacity: 1; 
    /* JSが currentPanel.style.display = 'block'; を設定するため、CSS側での display: block は不要 */
}

/* ヒーローボタンを囲むコンテナ要素のCSS */
.hero-button-wrap {
    display: flex;
    gap: 15px; 
    align-items: center; 
}

/* ヒーローセクションの検索ボタンのデザイン調整 */
.hero--fw .cta .vkfs-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    gap: 8px;

    background-color: #ffffff;
    color: var(--acc-red-orange);
    border: 1px solid var(--acc-red-orange);
}

/* ホバー時のスタイル */
.hero--fw .cta .vkfs-search-icon:hover {
    background-color: var(--acc-red-orange);
    color: #ffffff;
    border-color: var(--acc-red-orange);
}

/* 記事タグ */
.post-tags {
    margin: 1.5em 0;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.post-tags span {
    font-weight: bold;
    color: var(--ink-sub);
}
.tag-link {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background-color: var(--bg);
    color: var(--ink);
    text-decoration: none;
    transition: background .2s;
}
.tag-link:hover {
    background-color: var(--acc-soft);
}

/* PR文 */
.pr-statement {
    text-align: center;
    margin: 1em auto;
    padding: 8px 15px;
    border: 1px solid var(--acc-soft);
    background-color: var(--gift-soft-pink);
    font-size: 0.85rem;
    color: var(--ink-sub);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.pr-label {
    font-weight: bold;
    color: var(--acc-red-orange);
    padding: 2px 6px;
    border: 1px solid var(--acc-red-orange);
    border-radius: 3px;
    line-height: 1;
}

/* パンくずリスト */
.breadcrumb-nav {
    margin: 10px 0;
    font-size: 0.9rem;
    color: var(--ink-sub);
}
.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.breadcrumb-list li {
    display: inline;
}
/* ★★★ 修正済み: 以下のルールを削除しました。 ★★★
    .oya-header .vkfs-menu-item {
        display: none !important;
    } 
*/

/*
 * Oyaomoi Theme CSS Fixes (FINAL: Visibility Control for Stability)
 *
 * 修正内容:
 * 1. .oya-header: position: relative; を設定し、#vkfs-search-form-wrap の基準点とする。
 * 2. #vkfs-search-form-wrap: visibility を導入し、JSの display 制御と setTimeout の競合を根本的に解消。
 */

/* 1. 親要素：ヘッダーの修正 */
.oya-header {
    /* 検索フォームをabsoluteで配置するための基準点に設定 */
    position: relative; 
    /* !!! 注意: 他の既存のスタイルはここに維持されます !!! */
}
/* 1. 検索フォームの基本スタイル */
#vkfs-search-form-wrap {
    /* 以前の修正で削除した max-height, opacity の初期状態を復活 */
    max-height: 0;
    opacity: 0; 
    overflow: hidden;

    /* ★アニメーションの定義を復活させます★ */
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out; 

    /* その他のレイアウト定義は維持 */
    position: absolute; 
    top: 100%;       
    left: 0;
    width: 100%;
    z-index: 99;     
    background: #fff; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
}

/* 2. 検索フォーム展開時のスタイル */
#vkfs-search-form-wrap.is-open {
    /* 展開状態の値を設定 */
    max-height: 800px; /* フォームの高さに合わせて調整してください */
    opacity: 1;
    
    /* ※ display: block !important; は、JS制御を上書きするため、ここでは不要です。
       もしアニメーションが動作しない場合は、この定義をCSSから削除してください。 */
}
/* PC表示ではモバイル用ボタンを非表示にする */
@media (min-width: 992px) { /* 992pxは一般的なPC表示のブレークポイントです。テーマに合わせて調整してください。 */
    #vkfs-toggle-button-mobile {
        display: none !important;
    }
}
/* WordPress管理バーのCSS変数をトップ位置に設定 */
body.logged-in .oya-header.is-sticky {
    /* 管理バーのCSS変数をtopプロパティに適用 */
    top: var(--wp-admin--admin-bar--height, 32px) !important;
}
