
			/* =============================================
   旭川パパママ応援隊 - トップページ最適化CSS
   ============================================= */

/* --- スムーズスクロール --- */
html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

/* --- ヒーロー画像の空白修正 --- */
.wp-block-image img {
  display: block;
  width: 100%;
}

/* --- SEO導入テキスト装飾 --- */
.has-text-align-center {
  padding: 12px 16px;
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e8 100%);
  border-radius: 12px;
  line-height: 1.8;
  color: #555;
  margin: 16px 0 20px !important;
}
.has-text-align-center strong {
  color: #e8824a;
}

/* --- カテゴリ見出し（H2）スタイル改善 --- */
.home #postContent h2.wp-block-heading {
  font-size: 18px;
  font-weight: 700;
  padding: 10px 16px;
  margin-top: 32px !important;
  margin-bottom: 12px !important;
  border-left: 5px solid #ff9800;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, #fff5ee, transparent);
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}
.home #postContent h2.wp-block-heading::before {
  content: "";
  display: none;
}

/* --- リッチメニューのホバー効果強化 --- */
.o--richmenu-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.o--richmenu-item:active,
.o--richmenu-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* =============================================
   モバイル専用フッターナビゲーションバー
   ============================================= */
#sp-bottom-nav {
  display: none;
}

/* ===== スマホナビ z-index 根本修正 ===== */
/* JIN:R の #commonFooterWidget が position:relative; z-index:100 で
   スタッキングコンテキストを作り、ナビのz-indexが封じ込められる問題を修正。
   z-index: auto にすることでスタッキングコンテキストを解除し、
   ナビの z-index: 99999 をルートレベルで直接適用させる */
#commonFooterWidget {
  z-index: auto !important;
}

@media (max-width: 768px) {
  /* フッターナビ本体 */
  #sp-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-top: 2px solid #e8824a !important;
    box-shadow: none !important;
    padding: 4px 0 env(safe-area-inset-bottom, 4px) !important;
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    will-change: transform !important;
    width: 100% !important;
  }
  #sp-bottom-nav a {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 4px !important;
    text-decoration: none !important;
    color: #555555 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    transition: color 0.2s !important;
    gap: 2px !important;
    background: transparent !important;
    opacity: 1 !important;
  }
  #sp-bottom-nav a:hover,
  #sp-bottom-nav a:active {
    color: #e8824a !important;
    background: transparent !important;
  }
  #sp-bottom-nav a .sp-nav-icon {
    font-size: 22px !important;
    line-height: 1 !important;
    opacity: 1 !important;
  }
  #sp-bottom-nav a span {
    opacity: 1 !important;
    color: inherit !important;
  }
  #sp-bottom-nav a.active {
    color: #e8824a !important;
    font-weight: 700 !important;
  }

  /* フッターナビ分コンテンツを上げる */
  body {
    padding-bottom: 64px;
  }

  /* モバイルでの間隔調整 */
  .home #postContent h2.wp-block-heading {
    font-size: 16px;
    margin-top: 24px !important;
  }
  .has-text-align-center {
    font-size: 13px !important;
    padding: 10px 14px;
  }
  .wp-block-image figure {
    margin: 0 !important;
  }

  /* プロフィールカードのモバイル最適化 */
  .b--jinr-profile {
    margin: 12px 0 !important;
  }
}

/* =============================================
   モバイルグローバルナビ（既存ヘッダー改善）
   ============================================= */
@media (max-width: 768px) {
  /* ナビゲーションバーのスマホ改善 */
  #commonHeader .t--main-width {
    padding: 0 12px;
  }
  /* ロゴエリア最適化 */
  #siteLogo {
    max-width: 200px;
  }
}

/* --- 人気記事・新着記事セクション改善 --- */
.b--jinr-fullwidth {
  margin-top: 8px;
}
.b--jinr-h2rich {
  margin-bottom: 8px !important;
}
.o--postlist-item {
  transition: transform 0.15s ease;
}
.o--postlist-item:hover {
  transform: translateY(-2px);
}

/* --- フルワイドセクションの背景改善 --- */
.b--jinr-background {
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 16px !important;
}

/* --- スクロールアンカー調整 --- */
#postContent > * + * {
  scroll-margin-top: 80px;
}
/* =============================================
   スクロールアニメーション空白バグ修正
   ============================================= */

/* JIN:Rテーマのフェードインアニメーションで発生する
   空白・コンテンツ非表示バグを修正 */
.d--designtitle-animation-fade,
.b--jinr-h2rich,
.wp-block-jinr-blocks-designtitle,
.b--jinr-background,
.b--jinr-postlist,
.b--jinr-fullwidth,
.b--jinr-fullwidth * {
  opacity: 1 !important;
  transform: none !important;
  animation-play-state: paused !important;
}

/* リッチメニュー画像のlazyload空白対策 */
.o--richmenu-item img,
.b--jinr-richmenu img {
  opacity: 1 !important;
  display: block !important;
}

/* --- 信頼バッジバー --- */
.site-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 12px 8px;
  margin: 0 0 16px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #f0e0d0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
  background: #fff8f3;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid #f5dcc8;
}
.trust-icon { font-size: 14px; }
.trust-text strong { color: #e8824a; }

/* --- 季節バナー --- */
.seasonal-banner-link {
  display: block;
  text-decoration: none;
  margin: 0 0 20px;
}
.seasonal-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff3e0;
  border-radius: 12px;
  border-left: 5px solid #ff9800;
  box-shadow: 0 2px 8px rgba(255,152,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.seasonal-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,152,0,0.25);
}
.seasonal-icon { font-size: 28px; flex-shrink: 0; }
.seasonal-content { flex: 1; }
.seasonal-label {
  font-size: 11px;
  font-weight: 700;
  color: #e65100;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.seasonal-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}
.seasonal-arrow {
  font-size: 22px;
  color: #ff9800;
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .site-trust-bar { gap: 6px; padding: 10px 6px; }
  .trust-item { font-size: 11px; padding: 4px 8px; }
  .seasonal-title { font-size: 13px; }
}

/* --- よくある質問（FAQセクション） --- */
.faq-section {
  margin: 32px 0 24px;
  padding: 0;
}
.faq-heading {
  font-size: 18px !important;
  font-weight: 700;
  padding: 10px 16px !important;
  border-left: 5px solid #e8824a !important;
  border-radius: 0 8px 8px 0 !important;
  background: linear-gradient(90deg, #fff5ee, transparent) !important;
  margin-bottom: 12px !important;
}
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: #fff;
  border: 1px solid #f0ddd0;
  border-radius: 10px;
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  text-align: left;
  gap: 8px;
  line-height: 1.5;
}
.faq-q::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #e8824a;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.faq-q span:first-child { flex: 1; }
.faq-arrow {
  font-size: 12px;
  color: #e8824a;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 16px 14px 48px;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  border-top: 1px solid #f5e8de;
}
.faq-a::before {
  content: 'A';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #4caf50;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  float: left;
  margin: 10px 8px 4px -32px;
}
.faq-item.open .faq-a { display: block; }
.faq-a strong { color: #e8824a; }
@media (max-width: 768px) {
  .faq-q { font-size: 13px; padding: 12px 14px; }
  .faq-a { font-size: 12px; padding: 0 14px 12px 46px; }
}

/* --- 季節バナー内リンク --- */
.seasonal-inner-link {
  color: #c62828;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.seasonal-inner-link:hover {
  color: #e53935;
}		