@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* Cocoonの標準タイトルやパンくずを消す */
.page-template-front-page .entry-title,
.page-template-front-page .breadcrumb,
.page-template-front-page .post-meta {
    display: none !important;
}


/*
 * 法律Info トップページ カスタムCSS
 * Cocoon テーマの干渉を修正し、理想のデザインに近づけるためのCSS
 * 固定ページ「法律情報メディアトップ」テンプレート専用
 * 
 * 使い方: Cocoon Child の style.css に追記、または
 *         WordPress管理画面 > 外観 > カスタマイズ > 追加CSS に貼り付け
 */

/* ===================================================================
   0. CSS変数（カラーパレット・共通値）
   =================================================================== */
.linfo-wrapper {
  --ink:         #1a1a2e;
  --ink-light:   #4a4a6a;
  --paper:       #faf8f5;
  --paper-warm:  #f2ede6;
  --accent:      #c0392b;
  --accent-gold: #d4a017;
  --accent-navy: #1e3a5f;
  --border:      #d4cec6;
  --card-bg:     #ffffff;
  --radius:      2px;
}

/* ===================================================================
   1. ラッパー全体リセット（Cocoon 干渉の打ち消し）
   =================================================================== */

/* Cocoon のサイドバー・コンテナ幅をこのテンプレートでは無効化 */
.page-template-linfo-top .entry-content,
.page-template-linfo-top .l-main,
.page-template-linfo-top #main,
.page-template-linfo-top .main,
.page-template-linfo-top .wrap,
.page-template-linfo-top .home-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Cocoon サイドバーを非表示（テンプレート独自サイドバーを使用） */
.page-template-linfo-top #sidebar,
.page-template-linfo-top .sidebar,
.page-template-linfo-top .l-sidebar,
.page-template-linfo-top .widget-area {
  display: none !important;
}

/* エントリーコンテンツの余白・スタイルをリセット */
.page-template-linfo-top .entry-content {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Cocoon の p タグへの自動margin を打ち消し */
.linfo-wrapper p {
  margin: 0;
}

/* Cocoon の ul/li スタイルをナビ内でリセット */
.linfo-main-nav ul,
.linfo-main-nav li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Cocoon の a タグ色をラッパー内で統一 */
.linfo-wrapper a {
  color: inherit;
  text-decoration: none;
}

/* box-sizing を統一 */
.linfo-wrapper *,
.linfo-wrapper *::before,
.linfo-wrapper *::after {
  box-sizing: border-box;
}

/* ===================================================================
   2. ラッパー本体
   =================================================================== */
.linfo-wrapper {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* ===================================================================
   3. ヘッダー（linfo-header）
   =================================================================== */
.linfo-header {
  border-bottom: 3px double var(--border);
  background: var(--paper);
  position: relative;
  width: 100%;
}

.linfo-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* 上段：日付・タグライン */
.linfo-site-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 6px;
}

/* br を非表示にして横並びにする */
.linfo-site-meta br {
  display: none;
}

.linfo-date-badge {
  font-size: 0.78em;
  color: var(--ink-light);
  font-family: 'Noto Serif JP', 'Georgia', serif;
  letter-spacing: 0.05em;
}

.linfo-site-sub {
  font-size: 0.78em;
  color: var(--ink-light);
  font-style: italic;
  font-family: 'Noto Serif JP', 'Georgia', serif;
}

/* センター：ロゴ */
.linfo-site-logo {
  text-align: center;
  padding: 28px 20px 22px;
  margin: 0;
  position: relative;
  font-family: 'Noto Serif JP', 'Georgia', serif;
  font-weight: 900;
  font-size: clamp(2em, 6vw, 3.8em);
  line-height: 1;
  letter-spacing: -0.02em;
}

.linfo-site-logo::before,
.linfo-site-logo::after {
  content: '';
  position: absolute;
  left: 40px;
  right: 40px;
  height: 1px;
  background: var(--border);
}
.linfo-site-logo::before { top: 0; }
.linfo-site-logo::after  { bottom: 0; }

.linfo-site-logo a {
  color: var(--ink);
  text-decoration: none;
  display: block;
}

.linfo-site-logo span {
  color: var(--accent);
}

.linfo-site-desc {
  text-align: center;
  font-size: 0.82em;
  color: var(--ink-light);
  letter-spacing: 0.12em;
  font-family: 'Noto Serif JP', 'Georgia', serif;
  padding: 8px 20px 14px;
}

/* ===================================================================
   4. ナビゲーション（linfo-main-nav）
   =================================================================== */
.linfo-main-nav {
  background: var(--ink);
  width: 100%;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
}

.linfo-main-nav ul {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.linfo-main-nav li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.linfo-main-nav li a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #e8e0d4 !important;
  text-decoration: none !important;
  font-size: 0.82em;
  font-weight: 700;
  padding: 12px 18px;
  letter-spacing: 0.06em;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.linfo-main-nav li:first-child a {
  border-left: 1px solid rgba(255,255,255,0.1);
}

.linfo-main-nav li a:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

.nav-icon {
  font-size: 1em;
}

.nav-text {
  /* テキストのみ */
}

/* ===================================================================
   5. メインレイアウト（linfo-container）
   =================================================================== */
.linfo-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 2px solid var(--border);
}

.linfo-main-content {
  padding: 48px 40px;
  border-right: 2px solid var(--border);
  min-width: 0; /* grid overflow 防止 */
}

.linfo-sidebar {
  padding: 40px 28px;
  background: var(--paper-warm);
  min-width: 0;
}

/* ===================================================================
   6. ヒーローセクション
   =================================================================== */
.linfo-hero {
  margin-bottom: 40px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 36px;
}

.linfo-hero-content {
  max-width: 680px;
}

.linfo-hero-label-accent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75em;
  font-weight: 700;
  padding: 4px 14px;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  border-radius: var(--radius);
}

.linfo-hero-title {
  font-family: 'Noto Serif JP', 'Georgia', serif;
  font-weight: 900;
  font-size: clamp(1.6em, 3vw, 2.4em);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 12px;
}

/* "違法" などの強調テキスト */
.linfo-hero-title .marker,
.marker {
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
  font-style: normal;
}

/* ===================================================================
   7. セクション共通スタイル
   =================================================================== */
.linfo-section {
  margin-bottom: 36px;
}

/* セクションヘッダー（アイコン付き） */
.section-header-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
}

.section-header-with-icon h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 0;
}

/* シンプルなセクションヘッダー */
.section-header-simple {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.section-header-simple::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--ink), transparent);
}

.section-header-simple h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2em;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  white-space: nowrap;
}

/* ===================================================================
   8. 判定カード（verdict-card）
   =================================================================== */
.verdict-card {
  background: var(--ink);
  color: #fff;
  padding: 28px 30px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.verdict-card::after {
  content: '⚖️';
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 6em;
  opacity: 0.07;
  pointer-events: none;
}

.verdict-body {
  position: relative;
  z-index: 1;
}

.verdict-question h4 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 16px;
  color: #fff;
}

.verdict-question h4 a {
  color: #fff !important;
  text-decoration: none !important;
}

.verdict-question h4 a:hover {
  text-decoration: underline !important;
}

.verdict-answer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* バッジ */
.result-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  width: fit-content;
}

.badge-black, .badge-out {
  background: var(--accent);
  color: #fff;
}

.badge-white, .badge-safe {
  background: #27ae60;
  color: #fff;
}

.badge-gray {
  background: #7f8c8d;
  color: #fff;
}

.result-desc {
  font-size: 0.88em;
  color: #c8c0b4;
  line-height: 1.7;
  margin: 0;
}

.read-more-container {
  margin-top: 6px;
}

.read-more-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--accent-gold) !important;
  font-size: 0.82em;
  font-weight: 700;
}

.read-more-arrow::after {
  content: '→ 続きを読む';
  letter-spacing: 0.06em;
}

/* ===================================================================
   9. 新着記事リスト
   =================================================================== */
.linfo-new-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.new-post-list-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none !important;
  color: var(--ink) !important;
  transition: opacity 0.2s;
}

.new-post-list-item:hover {
  opacity: 0.72;
}

.new-post-list-item .post-meta {
  margin: 0;
}

.cat-label {
  display: inline-block;
  font-size: 0.7em;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--accent-navy);
  color: #fff;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  white-space: nowrap;
}

.new-post-list-item .post-title {
  font-size: 0.9em;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  /* Cocoon h3 スタイルをリセット */
  border: none !important;
  padding: 0 !important;
  background: none !important;
}

.new-post-list-item .post-date {
  font-size: 0.75em;
  color: var(--ink-light);
  white-space: nowrap;
  font-family: 'Noto Serif JP', serif;
}

/* 記事一覧ボタン */
.linfo-more-btn-simple {
  text-align: right;
  margin-top: 14px;
}

.linfo-more-btn-simple a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85em;
  font-weight: 700;
  color: var(--ink) !important;
  text-decoration: none !important;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  letter-spacing: 0.06em;
  transition: color 0.2s, border-color 0.2s;
}

.linfo-more-btn-simple a:hover {
  color: var(--accent) !important;
  border-color: var(--accent);
}

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

/* ランキングパネル */
.linfo-ranking-panel {
  margin-bottom: 36px;
}

.panel-header-styled {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 14px;
  color: var(--ink);
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ranking-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none !important;
  color: var(--ink) !important;
  transition: opacity 0.2s;
}

.ranking-item:hover {
  opacity: 0.72;
}

.rank-num {
  font-family: 'Dela Gothic One', 'Noto Serif JP', serif;
  font-size: 1.4em;
  line-height: 1;
  min-width: 28px;
  margin-top: 2px;
  color: var(--border);
}

/* 1〜3位は色付け */
.ranking-item:nth-child(1) .rank-num { color: var(--accent); }
.ranking-item:nth-child(2) .rank-num { color: var(--accent-gold); }
.ranking-item:nth-child(3) .rank-num { color: var(--ink-light); }

.rank-title {
  font-size: 0.85em;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  color: var(--ink);
}

/* プロフィールボックス */
.linfo-profile-box {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  padding: 20px;
  border-radius: var(--radius);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}

.profile-avatar img {
  width: 70px !important;
  height: 70px !important;
  border-radius: 50% !important;
  border: 3px solid var(--ink) !important;
  object-fit: cover;
  display: block;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.role {
  font-size: 0.72em;
  background: var(--accent-navy);
  color: #fff;
  padding: 2px 8px;
  letter-spacing: 0.08em;
  font-weight: 700;
  border-radius: var(--radius);
  display: inline-block;
  width: fit-content;
}

.profile-meta .name {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 0.95em;
  margin: 0;
  color: var(--ink);
  /* Cocoon h3 リセット */
  border: none !important;
  padding: 0 !important;
  background: none !important;
}

/* ===================================================================
   11. カテゴリグリッド（フルワイドセクション）
   =================================================================== */
#category-area.linfo-section.full-width-bg {
  width: 100%;
  max-width: 100%;
  background: var(--paper-warm);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  padding: 60px 0;
  margin: 0;
}

.section-title-accent {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-title-accent::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--ink), transparent);
}

.section-title-accent h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5em;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  white-space: nowrap;
}

.linfo-cat-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* カテゴリカード */
.cat-card {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  background: var(--card-bg);
  border: 2px solid var(--border);
  padding: 24px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.25s, box-shadow 0.25s;
  border-radius: var(--radius);
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  border-color: var(--ink);
}

.cat-card:hover::before {
  transform: scaleX(1);
}

.big-icon {
  font-size: 2.2em;
  display: block;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.cat-card:hover .big-icon {
  transform: scale(1.1) rotate(-5deg);
}

.cat-info h3 {
  font-size: 0.82em;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin: 0 0 6px;
  /* Cocoon h3 リセット */
  border: none !important;
  padding: 0 !important;
  background: none !important;
}

.cat-info p {
  font-size: 0.72em;
  color: var(--ink-light);
  line-height: 1.5;
  margin: 0;
}

/* ===================================================================
   12. 免責事項フッター（linfo-disclaimer-section）
   =================================================================== */
.linfo-disclaimer-section {
  background: var(--paper-warm);
  border-top: 2px solid var(--border);
  padding: 20px 40px;
  text-align: center;
}

.disclaimer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.disclaimer-inner p {
  font-size: 0.75em;
  color: var(--ink-light);
  line-height: 1.7;
  margin: 0;
}

.disclaimer-inner a {
  color: var(--ink) !important;
  text-decoration: underline !important;
}

/* ===================================================================
   13. Cocoon テーマの固有スタイル打ち消し（精密リセット）
   =================================================================== */

/* Cocoon の entry-content 内 h2/h3 にある左ボーダー・背景を打ち消し */
.linfo-wrapper h2,
.linfo-wrapper h3,
.linfo-wrapper h4 {
  border-left: none !important;
  border-bottom: none !important;
  border-top: none !important;
  border-right: none !important;
  background: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-bottom: 0 !important;
}

/* Cocoon の ul > li マーカー（::before 擬似要素）を打ち消し */
.linfo-main-nav li::before {
  display: none !important;
  content: none !important;
}

/* Cocoon がつける entry-content の padding を打ち消し */
.linfo-wrapper .entry-content > *:first-child {
  margin-top: 0 !important;
}

/* Cocoon の図・テーブル余白リセット */
.linfo-wrapper figure,
.linfo-wrapper table {
  margin: 0;
}

/* Cocoon のパンくずリスト・タイトル領域を固定ページでは非表示にしたい場合 */
.page-template-linfo-top .breadcrumb,
.page-template-linfo-top .entry-title,
.page-template-linfo-top .post-categories,
.page-template-linfo-top .article-header-information,
.page-template-linfo-top .article-header {
  display: none !important;
}

/* ===================================================================
   14. レスポンシブ
   =================================================================== */
@media (max-width: 1024px) {
  .linfo-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .linfo-container {
    grid-template-columns: 1fr;
  }

  .linfo-main-content {
    padding: 32px 24px;
    border-right: none;
    border-bottom: 2px solid var(--border);
  }

  .linfo-sidebar {
    padding: 32px 24px;
  }

  .linfo-site-meta {
    padding: 10px 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }

  .linfo-site-logo {
    font-size: clamp(1.8em, 8vw, 2.8em);
  }

  .linfo-site-logo::before,
  .linfo-site-logo::after {
    left: 20px;
    right: 20px;
  }

  .linfo-main-nav li a {
    font-size: 0.75em;
    padding: 10px 12px;
  }

  #category-area.linfo-section.full-width-bg {
    padding: 40px 0;
  }

  .section-title-accent,
  .linfo-cat-grid {
    padding: 0 20px;
  }

  .linfo-disclaimer-section {
    padding: 16px 20px;
  }

  .linfo-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .linfo-main-content {
    padding: 24px 16px;
  }

  .linfo-sidebar {
    padding: 24px 16px;
  }

  .linfo-site-logo {
    padding: 20px 16px 16px;
  }

  .linfo-hero-title {
    font-size: 1.5em;
  }

  .linfo-cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cat-card {
    padding: 18px 10px;
  }

  .big-icon {
    font-size: 1.8em;
  }

  .cat-info h3 {
    font-size: 0.75em;
  }

  .cat-info p {
    display: none; /* スマホでは説明文を非表示 */
  }

  .new-post-list-item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .new-post-list-item .post-date {
    grid-column: 2;
  }

  .verdict-card {
    padding: 20px 18px;
  }

  .linfo-main-nav ul {
    justify-content: flex-start;
  }

  .section-title-accent,
  .linfo-cat-grid {
    padding: 0 16px;
  }
}

/* ===================================================================
   15. アニメーション（フェードアップ）
   =================================================================== */
@keyframes linfoFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.linfo-hero-label-accent {
  animation: linfoFadeUp 0.5s ease both;
}

.linfo-hero-title {
  animation: linfoFadeUp 0.5s 0.1s ease both;
}

/* ===================================================================
   16. サイドバー検索ボックス（linfo-search-box）
   =================================================================== */

/* 
   PHP側のサイドバー（linfo-sidebar）内に以下を追加してください:
   
   <div class="linfo-search-box">
     <div class="panel-header-styled">サイト内検索</div>
     <form role="search" method="get" action="<?php echo home_url('/'); ?>">
       <div class="linfo-search-inner">
         <input
           type="search"
           class="linfo-search-input"
           placeholder="キーワードを入力…"
           value="<?php echo get_search_query(); ?>"
           name="s"
           aria-label="サイト内検索"
         />
         <button type="submit" class="linfo-search-btn" aria-label="検索">
           <svg width="16" height="16" viewBox="0 0 24 24" fill="none"
                stroke="currentColor" stroke-width="2.5"
                stroke-linecap="round" stroke-linejoin="round">
             <circle cx="11" cy="11" r="8"/>
             <line x1="21" y1="21" x2="16.65" y2="16.65"/>
           </svg>
         </button>
       </div>
     </form>
   </div>
*/

/* ── ブロック全体 ── */
.linfo-search-box {
  margin-bottom: 36px;
}

/* ── 入力欄＋ボタンの横並びコンテナ ── */
.linfo-search-inner {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.linfo-search-inner:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(26, 26, 46, 0.08);
}

/* ── テキスト入力欄 ── */
.linfo-search-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 10px 12px !important;
  font-size: 0.85em !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  color: var(--ink) !important;
  line-height: 1.5 !important;
  min-width: 0;
  box-shadow: none !important;
  border-radius: 0 !important;
  /* Cocoon の input スタイルリセット */
  -webkit-appearance: none;
  appearance: none;
}

.linfo-search-input::placeholder {
  color: var(--ink-light);
  opacity: 0.7;
}

/* ── 検索ボタン ── */
.linfo-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  flex-shrink: 0;
  background: var(--ink) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0 !important;
  padding: 0 !important;
  line-height: 1;
}

.linfo-search-btn:hover {
  background: var(--accent) !important;
}

.linfo-search-btn svg {
  display: block;
  width: 15px;
  height: 15px;
  stroke: #fff;
  flex-shrink: 0;
}

/* ── Cocoon の form/input への干渉を打ち消し ── */
.linfo-search-box form {
  margin: 0 !important;
  padding: 0 !important;
}

.linfo-search-box input[type="search"]::-webkit-search-decoration,
.linfo-search-box input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

/* ===================================================================
   17. フォント読み込み補助（Google Fonts が未ロードの場合のフォールバック）
   =================================================================== */
/* 
   Google Fonts は WordPress の wp_enqueue_style で読み込むことを推奨。
   child テーマの functions.php に以下を追加:
   
   wp_enqueue_style(
       'linfo-google-fonts',
       'https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700;900&family=Noto+Sans+JP:wght@400;500;700&family=Dela+Gothic+One&display=swap',
       array(),
       null
   );
*/