/*
Theme Name: 小坂よしひさ公式サイト
Description: 台東区議会議員 小坂よしひさ 公式Webサイト用WordPressテーマ
Author: 1pixel
Version: 1.0
License: GPL v2 or later
Text Domain: kosaka-theme
*/

/* 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* スクロール時のアニメーション：左右からフェードイン */
.scroll-animate {
  /* 初期状態：透明かつ位置は原点（各スライド種別で X 軸オフセットを付ける） */
  opacity: 0;
  transform: translateX(0) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 左から入る（初期は左にオフセット） */
.scroll-animate.slide-in-left {
  transform: translateX(-40px) scale(0.98);
}

/* 右から入る（初期は右にオフセット） */
.scroll-animate.slide-in-right {
  transform: translateX(40px) scale(0.98);
}

/* 表示時：不透明にして X 軸オフセットを消す（左右とも同じゴール） */
.scroll-animate.animate-in {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* デコレーションライン（::before）は要素中央付近に出すよう調整） */
.scroll-animate.slide-in-left::before,
.scroll-animate.slide-in-right::before {
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  opacity: 0.12; /* 控えめに表示 */
}

/* モバイルでは小さめの移動量にしてスムーズに */
@media (max-width: 768px) {
  .scroll-animate {
    transform: translateY(10px) scale(0.98) !important;
    transition: opacity 0.5s ease, transform 0.5s ease !important;
  }

  .scroll-animate.animate-in {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
  }

  /* モバイルでは装飾ラインを非表示（既存ルールと整合） */
  .scroll-animate.slide-in-left::before,
  .scroll-animate.slide-in-right::before {
    display: none !important;
  }
}

/* アニメーション遅延（要素が順番に現れる効果） */
.scroll-animate.animate-in.delay-1 {
  transition-delay: 0.1s;
}

.scroll-animate.animate-in.delay-2 {
  transition-delay: 0.2s;
}

.scroll-animate.animate-in.delay-3 {
  transition-delay: 0.3s;
}

/* レスポンシブ対応 - モバイルではアニメーション控えめに */
@media (max-width: 768px) {
  .scroll-animate {
    transition: all 0.6s ease !important;
  }
  
  .scroll-animate.slide-in-left {
    transform: translateX(-50px) !important;
  }
  
  .scroll-animate.slide-in-right {
    transform: translateX(50px) !important;
  }
  
  .scroll-animate.animate-in {
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
  
  /* モバイル用の装飾ラインを無効化 */
  .scroll-animate.slide-in-left::before,
  .scroll-animate.slide-in-right::before {
    display: none;
  }
  
  /* モバイルでのオーバーフロー制御 */
  body {
    overflow-x: hidden;
  }
  
  /* セクション全体にアニメーション対応 */
  section.scroll-animate {
    width: 100%;
    position: relative;
  }
}

/* 視覚的フィードバック用のオプション装飾 */
.scroll-animate.slide-in-left::before {
  content: '';
  position: absolute;
  left: -50px;
  top: 50%;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0044cc);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}

.scroll-animate.slide-in-right::before {
  content: '';
  position: absolute;
  right: -50px;
  top: 50%;
  width: 30px;
  height: 2px;
  background: linear-gradient(-90deg, transparent, #0044cc);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}

.scroll-animate.animate-in::before {
  opacity: 1;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4; /* 薄いグレー */
  margin: 0;
  padding: 0;
}

.container {
  background: #fff;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: auto; /* min-heightを自動に変更 */
}

/* メインコンテンツの背景を白にしたい場合は下記を追加 */
/* .container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  margin: 32px auto;
  padding: 32px 0;
  max-width: 1200px;
} */

/* ヘッダー */
.site-header {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* ヘッダー全体を横並び・中央揃えに */
.site-header nav {
  display: flex;
  align-items: center;
  height: 48px; /* ロゴ・ナビゲーションの高さを合わせる */
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
  padding: 0;
}

/* ロゴ */
.site-logo {
  display: flex;
  align-items: center;
  height: 48px;
  margin-right: auto; /* ロゴを左端に */
}

.site-logo img {
  height: 36px;
  width: auto;
  display: block;
  margin-right: 10px;
}

/* ナビゲーション */
.nav-list {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: none;
  width: auto;
  margin: 0;
  padding: 0 20px;
  font-size: 0.95em;
  height: 48px;
  box-shadow: none;
}

.nav-list::before {
  display: none; /* ドット背景を消す */
}

.nav-item {
  position: relative;
  flex: none; /* 均等幅を解除 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  margin-left: 18px; /* アイテム間の余白を調整 */
}

.nav-item a {
  color: #888; /* グレー文字 */
  text-decoration: none;
  font-weight: bold;
  display: flex;
  flex-direction: row; /* アイコンと文字を横並びに */
  align-items: center;
  padding: 4px 10px;
  font-size: 0.95em;
  transition: color 0.2s;
}

.nav-item a i {
  margin-right: 5px; /* アイコンと文字の間に少しのスペースを追加 */
  font-size: 1.2em; /* アイコンのサイズを調整 */
  vertical-align: middle; /* アイコンの垂直位置を中央揃え */
  color: #888; /* アイコンもグレー */
  transition: color 0.2s;
}

.nav-item a:hover,
.nav-item a:hover i {
  color: #f97316; /* オレンジ */
}

.nav-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #eee; /* 仕切りも薄いグレーに */
}

.nav-left {
  border-radius: 15px 0 0 15px;
}

.nav-right {
  border-radius: 0 15px 15px 0;
}

/* アイコンのサイズと位置を調整 */
.nav-item a i {
  margin-right: 5px; /* アイコンと文字の間に少しのスペースを追加 */
  font-size: 1.2em; /* アイコンのサイズを調整 */
  vertical-align: middle; /* アイコンの垂直位置を中央揃え */
}

/* ドロップダウンメニュー */
/* フローティングナビゲーション（モバイル用） */
.dropdown-menu {
  display: none;
  position: relative;
}

.dropdown-button {
  background-color: #0044cc;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-list {
  display: none;
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #0044cc;
  margin: 0;
  padding: 0;
}

.dropdown-list.active {
  display: block;
}

.dropdown-list li {
  text-align: center;
  margin: 0;
}

.dropdown-list li a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
}

/* ヘッダーレスポンシブ対応の改善 */
/* 中画面での調整（重なりを防ぐ） */
@media (max-width: 1200px) {
  .nav-list {
    padding: 0 15px; /* 左右のパディングを狭める */
  }
  
  .nav-item {
    margin-left: 12px; /* アイテム間の間隔を狭める */
  }
  
  .nav-item a {
    font-size: 0.9em; /* フォントサイズを小さく */
    padding: 4px 8px;
  }
}

@media (max-width: 1024px) {
  .nav-list {
    padding: 0 10px;
  }
  
  .nav-item {
    margin-left: 8px;
  }
  
  .nav-item a {
    font-size: 0.85em;
    padding: 4px 6px;
  }
}

/* 900px以下では2段レイアウトに */
@media (max-width: 900px) {
  .site-header nav {
    flex-wrap: wrap; /* 要素の折り返しを許可 */
    justify-content: center;
    height: auto; /* 高さを自動調整 */
    padding: 8px 0;
  }
  
  .site-logo {
    order: 1;
    width: 100%;
    justify-content: center; /* ロゴを中央配置 */
    margin: 0 0 8px 0;
    height: auto;
  }
  
  .site-logo img {
    height: 32px; /* ロゴサイズを少し小さく */
  }
  
  .nav-list {
    order: 2;
    width: 100%;
    justify-content: center; /* ナビゲーションを中央配置 */
    padding: 0;
    margin: 0;
    height: auto;
  }
  
  .nav-item {
    margin-left: 6px;
    margin-right: 6px;
  }
  
  .nav-item a {
    font-size: 0.8em;
    padding: 3px 5px;
  }
}

/* トップ画像 */
.header-image {
  width: 100%;
  height: auto;
  display: block;
}

/* コンテンツ */
.content {
  display: flex;
  max-width: 1920px;
  margin: 0 auto;
}

body.policies-page .main-content {
  width: 100%;
  display: flex;
  justify-content: center;
}

.main-column {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* サイドバー */
.sidebar {
  background-color: #e3f2fd; /* 薄い水色 */
  width: 100%; /* 常にワイド100% */
  padding: 20px 0;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: auto;
  margin: 0;
}

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

.blog-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.blog-image {
  width: 50px;
  height: 50px;
  background-color: #cccccc;
  margin-right: 10px;
}

.blog-content {
  flex: 1;
}

.blog-title {
  font-size: 1.1em;
  font-weight: bold;
  color: #1e40af; /* 青系メインカラー */
  margin-bottom: 5px;
}

.blog-text {
  font-size: 0.9em;
  color: #374151; /* より洗練されたグレー */
}

.blog-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 10px 0;
}

/* フッター */
/* カタログ階層的なフッターデザイン - 青系に変更 */
.site-footer {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 60px 0 0 0;
  position: relative;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-sections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px 20px;
  border-radius: 12px;
  border-left: 4px solid #60a5fa;
  transition: all 0.3s ease;
}

.footer-section:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.footer-section-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #93c5fd;
  border-bottom: 2px solid rgba(147, 197, 253, 0.4);
  padding-bottom: 10px;
}

.footer-section-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section-list li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.footer-section-list li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #60a5fa;
  font-weight: bold;
}

.footer-section-list a {
  color: #f0f0f0;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95em;
}

.footer-section-list a:hover {
  color: #93c5fd;
  padding-left: 10px;
}

/* 連絡先エリア */
.footer-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.contact-info h4 {
  color: #93c5fd;
  font-size: 1.3em;
  margin-bottom: 15px;
}

.contact-info p {
  margin: 8px 0;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 10px;
  color: #60a5fa;
  width: 20px;
}

.footer-copyright {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
}

.footer-logo {
  text-align: right;
}

.footer-logo img {
  max-width: 200px;
  height: auto;
  margin-bottom: 15px;
  filter: brightness(1.1);
}

.footer-slogan {
  font-style: italic;
  color: #93c5fd;
  font-size: 1.2em;
  font-weight: bold;
  margin: 0;
}

/* フッター下部 */
.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9em;
  color: #dbeafe;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
  .footer-sections {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-contact {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-logo {
    text-align: center;
  }

  .footer-logo img {
    max-width: 150px;
  }
}

@media (max-width: 576px) {
  .footer-sections {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-section {
    padding: 20px 15px;
  }

  .footer-contact {
    padding: 20px;
  }

  .footer-logo img {
    max-width: 120px;
  }

  .site-footer {
    padding: 40px 0 0 0;
  }
}

/* レスポンシブ対応 - ボトムナビゲーション */
@media (max-width: 576px) {
  .nav-list {
    display: none;
  }

  /* ボトムナビゲーションバー */
  .dropdown-menu {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(0, 68, 204, 0.95), rgba(0, 50, 150, 0.95));
    backdrop-filter: blur(15px);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    transition: all 0.3s ease;
  }

  .dropdown-button {
    display: none; /* ハンバーガーボタンを非表示 */
  }

  /* ボトムナビゲーションリスト */
  .dropdown-list {
    display: flex !important; /* 常に表示 */
    list-style: none;
    position: relative;
    margin: 0;
    padding: 0;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
  }

  .dropdown-list li {
    flex: 1;
    text-align: center;
    margin: 0;
    min-width: 0; /* flexアイテムの縮小を許可 */
  }

  .dropdown-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    min-height: 44px; /* タッチターゲットサイズ */
  }

  .dropdown-list li a:hover,
  .dropdown-list li a:active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
  }

  .dropdown-list li a i {
    font-size: 16px;
    margin-bottom: 2px;
    display: block;
  }

  /* アイコンテキストの調整 */
  .dropdown-list li a span {
    display: block;
    font-size: 9px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  /* ボトムナビゲーション用のbodyパディング調整 */
  body {
    padding-bottom: 70px; /* ボトムナビの高さ分のスペース */
  }

  .footer-nav-list {
    flex-direction: column;
  }

  .footer-nav-item {
    margin: 5px 0;
  }

  .content {
    flex-direction: column;
  }

  .main-column,
  .sidebar {
    width: 100%;
  }
}

/* ごあいさつセクション */
.greeting-section {
  background-color: #e0f7fa; /* 薄いブルー */
  width: 100%; /* 常にワイド100% */
  margin: 80px 0; /* 上下に余白を追加 */
  padding: 20px 0;
  display: flex;
  justify-content: center;
}

.greeting-content {
  width: 80%; /* セクションの幅を制限して中央に配置 */
  display: flex;
  flex-direction: column; /* タイトル、本文、画像を縦並びに */
}

.greeting-title {
  width: 100%;
  text-align: center; /* タイトルを中央揃え */
  color: #1e40af; /* 青系メインカラー */
  padding-bottom: 10px;
}

.greeting-text {
  width: 60%;
  max-width: 600px;
  margin: 0 auto 20px auto;
  text-align: justify; /* テキストを両端揃え */
}

.sign-image-container {
  width: 60%;
  max-width: 600px;
  margin: 10px auto 0 auto;
  text-align: right;
}

.sign-image {
  height: 48px;
  width: auto;
}

/* プロフィールセクション */
.profile-section {
  background-color: #f5f5f5; /* 薄いグレー */
  width: 100%;
  margin-top: 80px;
  margin-bottom: 80px;
  padding: 30px 0;
  display: flex;
  justify-content: center;
}

.profile-content {
  width: 80%; /* セクションの幅を制限して中央に配置 */
  max-width: 1200px;
  display: flex;
  flex-direction: column; /* タイトル、本文、画像を縦並びに */
}

/* Ensure profile-content on the homepage is approximately 80% wide */
body.home .profile-body {
  width: 80% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* =============================
   Home: unify non-greeting section backgrounds to profile color @60%
   対象: activity-local / background / visual-menu / facebook / activity / question
   除外: greeting-section, profile-section（profileはそのまま実色, othersは半透明）
   ============================= */
body.home .activity-local-section,
body.home .background-section,
body.home .visual-menu-section,
body.home .facebook-section,
body.home .activity-section,
body.home .question-section,
body.site-home .activity-local-section,
body.site-home .background-section,
body.site-home .visual-menu-section,
body.site-home .facebook-section,
body.site-home .activity-section,
body.site-home .question-section {
  background: rgba(245,245,245,0.60) !important;
}

/* 追加要望: プロフィール & 最新活動をチェック（facebook-section） を 50% に調整 */
body.home .profile-section,
body.site-home .profile-section,
body.home .facebook-section,
body.site-home .facebook-section {
  background: rgba(245,245,245,0.50) !important;
}

/* Make greeting/profile/activity/background titles centered both horizontally and vertically */
.greeting-title,
.profile-title,
.activity-local-title,
.background-title {
  width: 100%;
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
  text-align: center;
  color: #1e40af; /* match greeting */
  padding-bottom: 10px;
  margin: 0 auto 10px auto; /* consistent spacing */
}

.profile-text {
  width: 100%;
  text-align: left; /* 本文を左揃え */

  margin-bottom: 20px;
}

.profile-details {
  display: table;
  width: 100%;
  margin-bottom: 20px;
  margin-top: 0; /* 上のマージンを削除 */
  border-collapse: collapse; /* ボーダーを結合して統一感を出す */
  border-spacing: 0; /* セル間スペースを0に */
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 0; /* remove any gap between cells */
  min-height: 38px; /* keep previous min height */
}

/* Make label and value sit flush together */
.profile-label,
.profile-value {
  display: block;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.profile-label {
  width: 120px; /* keep label width */
  font-weight: bold;
  background-color: #dbeafe;
  color: #1e40af;
  white-space: nowrap;
  text-align: left; /* labels aligned left inside their box */
  letter-spacing: 0.12em;
  padding-left: 8px; /* reduce padding so label and value are closer */
  padding-right: 8px; /* reduce right padding */
  margin-right: 0; /* no gap */
}

.profile-value {
  flex: 1; /* take remaining space */
  text-align: left;
  line-height: 1.6;
  padding-left: 6px; /* minimal left padding to separate from label */
  padding-right: 8px;
}

.profile-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.profile-details {
  flex: 1;
  margin-right: 30px; /* 表組みと写真の間にスペースを追加 */
}

.profile-image {
  flex: 0 0 30%;
  text-align: right;
  display: flex;
  align-items: flex-start; /* 上揃えで表と合わせる */
}

.profile-image img {
  max-width: 100%;
  height: 400px; /* 表組みと同程度の高さに固定 */
  object-fit: cover; /* 画像の縦横比を保持しながらサイズ調整 */
  border-radius: 15px; /* 角丸にする */
}

/* ナビゲーションのマウスオーバーアクション */
@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }
  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

.nav-item a:hover {
  animation: shake 0.5s infinite;
}

/* ふわっと表示アニメーション */
body.policies-page section {
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.4s cubic-bezier(0.23, 1, 0.32, 1), transform 1.4s cubic-bezier(0.23, 1, 0.32, 1);
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* スマホ画面ではプロフィール画像を一番下に配置 */
@media (max-width: 767px) {
  .profile-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-image {
    order: 2; /* 画像を一番下に */
    width: 100%;
    text-align: center;
    margin-top: 20px;
  }
  .profile-image img {
    height: 250px; /* モバイルでは少し小さめに */
    max-width: 200px; /* 幅も制限 */
    margin: 0 auto; /* 左右センター配置 */
    display: block; /* ブロック要素にしてmargin: autoを効かせる */
  }
  .profile-details {
    order: 1; /* プロフィール情報を上に */
    width: 100%;
    margin-right: 0; /* モバイルでは右マージンを0に */
    margin-bottom: 20px; /* モバイルでは下マージンを追加 */
  }
}

/* 活動報告一覧セクション */
.activity-section {
  background-color: #e3f2fd; /* 薄い水色 */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 30px 0;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 議会質問一覧セクション */
.question-section {
  background-color: #fffde7; /* 薄いイエロー */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 30px 0;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Facebookセクション - コンパクト版 */
.facebook-section {
  background: #ffffff; /* changed to solid white as requested */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 60px 0;
  margin-bottom: 80px;
  /* removed blue top line per design request */
  border-top: none;
}

.facebook-section .section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #1877f2;
  font-weight: 700;
}

.facebook-section .section-title i {
  margin-right: 12px;
}

/* Prevent decorative pseudo-elements (the short blue lines) from showing
   between the Facebook timeline and SNS/related links on the homepage. */
body.home .facebook-section::before,
body.home .facebook-section::after,
body.home .facebook-section.scroll-animate::before,
body.home .facebook-section.scroll-animate::after,
body.home .facebook-section .facebook-content-wrapper::before,
body.home .facebook-section .facebook-content-wrapper::after,
body.home .facebook-section .facebook-timeline-compact::before,
body.home .facebook-section .facebook-timeline-compact::after,
body.home .facebook-section .sns-links-section::before,
body.home .facebook-section .sns-links-section::after {
  display: none !important;
  content: none !important;
  background: none !important;
  border: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ==========================
   Global removal of scroll-animate pseudo decorations
   ========================== */
/* Some theme rules generate decorative ::before / ::after lines for
   .scroll-animate elements (e.g. the short blue gradient lines). To
   completely remove them site-wide, we disable those pseudo-elements
   here with a high-specificity, !important rule placed at the end of
   the stylesheet. This is reversible: remove this block to restore
   decorations. */
.scroll-animate::before,
.scroll-animate::after,
.scroll-animate.slide-in-left::before,
.scroll-animate.slide-in-right::before,
.scroll-animate.slide-in-left::after,
.scroll-animate.slide-in-right::after {
  display: none !important;
  content: none !important;
  background: none !important;
  border: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

.facebook-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
  padding: 0 20px;
}

/* Home: wrapper全体も 50% の半透明背景を付与 */
body.home .facebook-content-wrapper,
body.site-home .facebook-content-wrapper {
  background: rgba(245,245,245,0.50);
  padding: 30px 30px; /* 余白を内側に確保 */
  border-radius: 18px;
  box-shadow: none; /* 半透明なので影を抑制 */
}

.facebook-timeline-compact {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.sns-links-section {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.links-title {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.links-title i {
  margin-right: 10px;
  color: #1877f2;
}

/* Home: facebook timeline & related links boxes to 50% translucent profile tone */
body.home .facebook-timeline-compact,
body.site-home .facebook-timeline-compact,
body.home .sns-links-section,
body.site-home .sns-links-section {
  background: rgba(245,245,245,0.50) !important;
  box-shadow: none !important; /* 透過時は影を抑える */
}

/* OVERRIDE: SNSタイムラインセクションを不透明グレー (#f5f5f5) へ戻す */
body.home .facebook-section,
body.site-home .facebook-section,
body.home .facebook-section .facebook-content-wrapper,
body.site-home .facebook-section .facebook-content-wrapper,
body.home .facebook-section .facebook-timeline-compact,
body.site-home .facebook-section .facebook-timeline-compact,
body.home .facebook-section .sns-links-section,
body.site-home .facebook-section .sns-links-section {
  background: #f5f5f5 !important;
  box-shadow: none !important;
}

/* facebook-section 内の直下 container も同じ不透明グレーに統一 */
body.home .facebook-section > .container,
body.site-home .facebook-section > .container {
  background: #f5f5f5 !important;
  border-radius: 18px;
  padding: 30px 30px; /* 内側余白を付与 */
}

/* 2×2 ソーシャルメディアグリッドレイアウト */
.social-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 2列レイアウト */
.social-grid-wrapper.social-grid-2col {
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.social-timeline-box {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Facebook・Instagram・X埋め込みウィジェット内のオレンジラインを非表示 */
.social-timeline-box iframe,
.social-timeline-box .fb-page,
.social-timeline-box .instagram-media,
.social-timeline-box .twitter-timeline {
  border: none !important;
}

/* Facebookウィジェットの幅をInstagramに合わせる */
.social-timeline-box .fb-page {
  max-width: 100% !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

.social-timeline-box .fb-page > span,
.social-timeline-box .fb-page iframe {
  margin: 0 auto !important;
}

/* Instagramウィジェット内の左オレンジラインを非表示 */
.instagram-media::before,
.instagram-media::after {
  display: none !important;
}

.timeline-box-title {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding-bottom: 15px;
  border-bottom: none;
}

.timeline-box-title i {
  margin-right: 10px;
  font-size: 1.4rem;
}

.timeline-box-title .fa-facebook-f {
  color: #1877f2;
}

.timeline-box-title .fa-instagram {
  color: #E4405F;
}

.timeline-box-title .fa-twitter {
  color: #1DA1F2;
}

.timeline-box-title .fa-link {
  color: #ff7043;
}

.social-timeline-box.sns-links-box {
  padding: 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.social-timeline-box.sns-links-box .sns-buttons {
  width: 100%;
}

/* レスポンシブ対応: タブレット以下 */
@media (max-width: 768px) {
  .social-grid-wrapper,
  .social-grid-wrapper.social-grid-2col {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .social-timeline-box {
    padding: 20px 15px;
    overflow: hidden;
  }

  .social-timeline-box .fb-page,
  .social-timeline-box .instagram-media,
  .social-timeline-box .twitter-timeline {
    max-width: 100% !important;
    width: 100% !important;
  }

  .social-timeline-box .fb-page iframe,
  .social-timeline-box .instagram-media iframe,
  .social-timeline-box .twitter-timeline iframe {
    max-width: 100% !important;
  }
}

/* 公明党リンクボタン（メイン＋サイドバー）淡いピンク背景 */
.sns-btn.komeito-btn,
.sidebar-sns-btn.komeito-btn {
  background: #fde4ef !important; /* 薄いピンク */
  color: #c2185b !important; /* 濃いめピンク系文字 */
  border: 1px solid #f8c9dc;
}
.sns-btn.komeito-btn i,
.sidebar-sns-btn.komeito-btn i { color: #c2185b !important; }
.sns-btn.komeito-btn:hover,
.sidebar-sns-btn.komeito-btn:hover {
  background: #fbd2e4 !important;
  border-color: #f4b5cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.sns-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sns-btn {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sns-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.sns-btn:hover::before {
  left: 100%;
}

.facebook-btn {
  background: linear-gradient(135deg, #1877f2, #42a5f5);
  color: white;
}

.instagram-btn {
  background: linear-gradient(135deg, #E4405F, #F77737);
  color: white;
}

.twitter-btn {
  background: linear-gradient(135deg, #000000, #14171A);
  color: white;
}

.twitter-btn i {
  color: white;
}

.contact-btn {
  background: linear-gradient(135deg, #ff7043, #ff8a65);
  color: white;
}

.newsletter-btn {
  background: linear-gradient(135deg, #7e57c2, #9575cd);
  color: white;
}

.taito-btn {
  background: linear-gradient(135deg, #800000, #a00000);
  color: white;
}

.sns-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.sns-btn i {
  font-size: 1.3rem;
  margin-right: 15px;
  min-width: 25px;
}

.sns-btn span {
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
}

.sns-btn small {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-left: 10px;
}

/* Facebookセクション レスポンシブ対応 */
@media (max-width: 768px) {
  .facebook-content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .facebook-timeline-compact {
    padding: 20px;
  }
  
  .facebook-timeline-compact .fb-page {
    width: 100% !important;
    max-width: 320px;
  }
  
  .sns-links-section {
    padding: 25px;
  }
  
  .sns-btn {
    padding: 12px 18px;
  }
  
  .sns-btn span {
    font-size: 0.9rem;
  }
  
  .sns-btn small {
    display: none;
  }
}

/* セクションタイトル */
.activity-title,
.question-title,
.facebook-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8em;
  color: #1e40af; /* 青系メインカラー */
  padding-bottom: 10px;
}

/* 活動報告・議会質問のリスト */
.activity-list,
.question-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 80%;
}

/* カード風のブログアイテム */
.blog-item.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  width: 320px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  transition: box-shadow 0.2s;
}

.blog-item.card:hover {
  box-shadow: 0 4px 24px rgba(30, 64, 175, 0.2);
  transform: translateY(-5px);
}

/* 大きな画像 */
.blog-image.large {
  width: 100%;
  height: 200px; /* 固定高さを10%増加（180px → 200px） */
  background-color: #ffffff; /* 背景を白に変更 */
  border-radius: 0; /* 角丸を削除 */
  margin-bottom: 16px;
  display: block;
  overflow: hidden; /* 境界を確実に適用 */
  position: relative; /* 子要素の絶対配置用 */
}

.blog-image.large img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 画像全体を表示（比率を保持） */
  object-position: center; /* 画像の中央部分を表示 */
  display: block;
}

/* SNSタイムラインコンテナ */
.sns-timeline-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  width: 80%;
  max-width: 800px;
}

/* Facebookタイムライン */
.facebook-timeline {
  flex: 1;
  text-align: center;
  max-width: 350px;
}

/* Twitterタイムライン */
.twitter-timeline {
  flex: 1;
  text-align: center;
  max-width: 350px;
}

.twitter-timeline iframe {
  margin: 0 auto !important;
}

/* タイムラインのサブタイトル */
.timeline-subtitle {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #1e40af; /* 青系メインカラー */
  font-weight: bold;
  padding-left: 0; /* パディングも削除 */
}

.facebook-timeline .fb-page {
  margin: 0 auto;
}

/* レスポンシブ対応：モバイルでは縦並び */
@media (max-width: 768px) {
  .sns-timeline-container {
    flex-direction: column;
    width: 95%;
    gap: 30px;
  }

  .facebook-timeline,
  .twitter-timeline {
    max-width: 100%;
  }
  
  .greeting-text {
    width: 90%;
    max-width: none;
  }
  
  .sign-image-container {
    width: 90%;
    max-width: none;
  }
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
  .activity-list,
  .question-list {
    width: 90%;
  }

  .blog-item.card {
    width: 280px;
  }
}

@media (max-width: 992px) {
  .activity-list,
  .question-list {
    gap: 20px;
  }

  .blog-item.card {
    width: 250px;
  }
}

@media (max-width: 767px) {
  .activity-list,
  .question-list {
    flex-direction: column;
    width: 95%;
    gap: 20px;
  }

  .blog-item.card {
    width: 100%;
    min-height: auto;
    flex-direction: row;
    padding: 16px;
  }

  .blog-image.large {
    width: 120px;
    height: 88px; /* モバイルでも10%増加（80px → 88px） */
    margin-right: 16px;
    margin-bottom: 0;
    flex-shrink: 0;
    background-color: #ffffff; /* 画像がない場合の背景色を白に */
    border-radius: 0; /* 角丸を削除 */
    overflow: hidden; /* 境界を確実に適用 */
    position: relative; /* 子要素の絶対配置用 */
  }

  .blog-image.large img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 画像全体を表示（比率を保持） */
    object-position: center; /* 画像の中央部分を表示 */
    display: block;
  }

  .blog-content {
    text-align: left;
  }

  .facebook-timeline {
    width: 100%;
  }
}

/* 視覚的メニューセクション */
.visual-menu-section {
  background-color: #f8f9fa; /* 薄いグレー */
  width: 100%;
  margin: 0 0 80px 0; /* 上マージンを0、下マージンを80pxに調整 */
  padding: 40px 0;
  display: flex;
  justify-content: center;
}

.visual-menu-content {
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.visual-menu-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  width: 100%;
  flex-wrap: wrap;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #333;
  padding: 45px 30px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  min-width: 180px;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  color: #1e40af;
}

.menu-icon {
  width: 120px; /* アイコンサイズを1.5倍に拡大 */
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.menu-item:hover .menu-icon {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  transform: scale(1.1);
}

.menu-icon i {
  font-size: 48px; /* アイコン内のフォントサイズを拡大 */
  color: white;
}

/* テキストサイズを拡大 */
.menu-text {
  font-size: 24px; /* テキストサイズを拡大 */
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .visual-menu-grid {
    gap: 25px;
  }

  .menu-item {
    min-width: 120px;
    padding: 20px 15px;
  }

  .menu-icon {
    width: 60px;
    height: 60px;
  }

  .menu-icon i {
    font-size: 24px;
  }

  .menu-text {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .visual-menu-grid {
    gap: 20px;
  }

  .menu-item {
    min-width: 100px;
    padding: 18px 12px;
  }

  .menu-icon {
    width: 55px;
    height: 55px;
  }

  .menu-icon i {
    font-size: 22px;
  }

  .menu-text {
    font-size: 13px;
  }
}

/* Remove decorative pseudo-elements inside visual menu to eliminate short blue gradient lines
   Exclude FontAwesome elements (classes: fa / fas / fab) so their icon pseudo-elements remain functional */
body.home .visual-menu-section *:not(.fa):not(.fas):not(.fab)::before,
body.home .visual-menu-section *:not(.fa):not(.fas):not(.fab)::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* Also disable any pseudo-elements attached to the visual-menu section itself
   (these are created by the generic scroll-animate slide-in rules and can
   produce the short blue gradient lines). */
body.home .visual-menu-section::before,
body.home .visual-menu-section::after,
body.home .visual-menu-section.scroll-animate::before,
body.home .visual-menu-section.scroll-animate::after,
body.home .visual-menu-section.slide-in-right::before,
body.home .visual-menu-section.slide-in-left::before {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* Hide menu-item pseudo-elements except when the menu-item (or its child) is a FontAwesome icon */
body.home .visual-menu-section .menu-item:not(.fa):not(.fas):not(.fab)::before,
body.home .visual-menu-section .menu-item:not(.fa):not(.fas):not(.fab)::after {
  display: none !important;
  content: none !important;
}

/* Ensure FontAwesome pseudo-elements are visible again inside the visual menu */
body.home .visual-menu-section .fas::before,
body.home .visual-menu-section .far::before,
body.home .visual-menu-section .fab::before,
body.home .visual-menu-section .fa::before {
  display: inline-block !important;
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free' !important;
  font-weight: 900 !important; /* solid icons */
  line-height: 1 !important;
}

/* Also ensure the <i> element itself is visible */
body.home .visual-menu-section .menu-icon i {
  display: inline-block !important;
  color: inherit !important;
}

/* Force icons in visual menu to be white and preserve on hover */
body.home .visual-menu-section .menu-icon i,
body.home .visual-menu-section .menu-item .menu-icon i,
body.home .visual-menu-section .menu-item:hover .menu-icon i,
body.home .visual-menu-section .fas::before,
body.home .visual-menu-section .far::before,
body.home .visual-menu-section .fab::before,
body.home .visual-menu-section .fa::before {
  color: #ffffff !important;
}

/* Restore FontAwesome icons and menu-icon pseudo-elements which were unintentionally hidden */
body.home .visual-menu-section .menu-icon i,
body.home .visual-menu-section .menu-icon::before,
body.home .visual-menu-section .menu-icon::after {
  display: inline-block !important;
  content: '' !important;
  background: none !important;
}

/* Center align the visual menu grid and icons */
.visual-menu-grid {
  justify-items: center; /* グリッド全体をセンタリング */
}

.menu-icon {
  /* アイコンを左右センターに配置 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 地域での活動セクション */
.activity-local-section {
  background-color: #e3f2fd; /* 薄い水色 */
  width: 100%;
  margin-top: 80px;
  margin-bottom: 80px;
  padding: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.activity-local-content {
  width: 80%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
}

.activity-local-title {
  width: 100%;
  text-align: left;
  color: #1e40af; /* 青系メインカラー */
  padding-bottom: 10px;
  font-size: 1.8em;
  margin-bottom: 30px;
}

.activity-local-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 上段3列：各要素が2列分を占める */
.activity-local-item:nth-child(1) {
  grid-column: 1 / 3;
}

.activity-local-item:nth-child(2) {
  grid-column: 3 / 5;
}

.activity-local-item:nth-child(3) {
  grid-column: 5 / 7;
}

/* 下段2列：中央寄せで各要素が2列分を占める */
.activity-local-item:nth-child(4) {
  grid-column: 2 / 4;
}

.activity-local-item:nth-child(5) {
  grid-column: 4 / 6;
}

/* タブレット以下では2列 */
@media (max-width: 1024px) {
  .activity-local-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .activity-local-item:nth-child(1),
  .activity-local-item:nth-child(2),
  .activity-local-item:nth-child(3),
  .activity-local-item:nth-child(4),
  .activity-local-item:nth-child(5) {
    grid-column: auto;
  }
}

.activity-local-item {
  display: flex;
  align-items: center;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid #1e40af;
  transition: all 0.3s ease;
}

.activity-local-item:hover {
  background: #e0f2fe;
  transform: translateX(5px);
}

.activity-local-item i {
  font-size: 1.5em;
  color: #f97316; /* オレンジのアクセント */
  margin-right: 15px;
  min-width: 30px;
}

.activity-local-item span {
  color: #1e40af;
  font-weight: 500;
  font-size: 1.1em;
}

/* 生い立ちセクション */
.background-section {
  background-color: #fffde7; /* 薄いイエロー */
  width: 100%;
  margin-top: 80px;
  margin-bottom: 80px;
  padding: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.background-content {
  width: 80%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
}

.background-title {
  width: 100%;
  text-align: left;
  color: #1e40af; /* 青系メインカラー */
  padding-bottom: 10px;
  font-size: 1.8em;
  margin-bottom: 30px;
}

.background-timeline {
  position: relative;
  padding: 20px 0;
}

.background-timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #1e40af, #93c5fd);
}

.timeline-item {
  position: relative;
  padding: 20px 0 20px 80px;
  margin-bottom: 30px;
}

.timeline-marker {
  position: absolute;
  left: 15px;
  top: 25px;
  width: 30px;
  height: 30px;
  background: #1e40af;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.timeline-marker i {
  color: white;
  font-size: 0.9em;
}

.timeline-content {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #f97316;
  transition: all 0.3s ease;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.timeline-content:hover {
  background: #e0f2fe;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timeline-image {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.timeline-image:hover img {
  transform: scale(1.05);
}

.timeline-text-content {
  flex: 1;
}

.timeline-subtitle {
  color: #1e40af;
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
}

.timeline-text {
  color: #374151;
  line-height: 1.6;
  font-size: 1em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .activity-local-content,
  .background-content {
    width: 95%;
  }

  .activity-local-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .activity-local-item:nth-child(1),
  .activity-local-item:nth-child(2),
  .activity-local-item:nth-child(3),
  .activity-local-item:nth-child(4),
  .activity-local-item:nth-child(5) {
    grid-column: auto;
  }

  .activity-local-item {
    padding: 15px;
  }

  .background-timeline::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-marker {
    left: 5px;
    width: 25px;
    height: 25px;
  }

  .timeline-marker i {
    font-size: 0.8em;
  }

  .timeline-content {
    padding: 15px;
    flex-direction: column;
    gap: 15px;
  }

  .timeline-image {
    width: 100%;
    height: 150px;
    align-self: center;
    max-width: 200px;
  }

  .timeline-text-content {
    text-align: left;
  }
}

/* メインコンテンツ（個別記事） */
.main-content-single {
  background: #ffffff;
  max-width: 100%;
  overflow: hidden;
  min-width: 0; /* グリッドアイテムの縮小を許可 */
}

/* ブログページのスタイル */
.page-header {
  text-align: center;
  margin: 40px 0;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
}

.page-title {
  font-size: 2.5rem;
  color: #0044cc;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-title i {
  margin-right: 15px;
  color: #007bff;
}

.page-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
  font-weight: 400;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px; /* メイン（1fr）→ サイドバー（280px）の順 */
  gap: 30px;
  margin: 20px auto; /* 上下マージンを調整 */
  max-width: 1200px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* サイドバー */
.sidebar {
  background: #ffffff;
  padding: 0;
  align-self: start; /* サイドバーを上部に固定 */
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 20px; /* パディングを少し縮小 */
  margin-bottom: 20px; /* マージンを縮小 */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
  font-size: 1.2rem;
  color: #0044cc;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #007bff;
  font-weight: 600;
}

/* 検索ボックス */
.search-box {
  display: flex;
  gap: 5px;
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.search-button {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background: #0056b3;
}

/* カテゴリーリスト */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  color: #555;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.3s ease;
}

.category-link:hover {
  color: #007bff;
}

.category-link i {
  margin-right: 10px;
  color: #007bff;
}

.count {
  background: #e9ecef;
  color: #666;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* 最新記事 */
.recent-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-post-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
  border-bottom: none;
}

.recent-post-thumb {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.recent-post-content {
  flex: 1;
}

.recent-post-title {
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.recent-post-title:hover {
  color: #007bff;
}

.recent-post-date {
  font-size: 12px;
  color: #999;
}

/* アーカイブリスト */
.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  color: #555;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.3s ease;
}

.archive-link:hover {
  color: #007bff;
}

.archive-link i {
  margin-right: 10px;
  color: #007bff;
}

/* サイドバー用SNSリンクボタン */
.sidebar-sns-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-sns-btn {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 14px;
}

.sidebar-sns-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.sidebar-sns-btn:hover::before {
  left: 100%;
}

.sidebar-sns-btn.facebook-btn {
  background: linear-gradient(135deg, #1877f2, #42a5f5);
  color: white;
}

.sidebar-sns-btn.instagram-btn {
  background: linear-gradient(135deg, #E4405F, #F77737);
  color: white;
}

.sidebar-sns-btn.twitter-btn {
  background: linear-gradient(135deg, #000000, #14171A);
  color: white;
}

.sidebar-sns-btn.twitter-btn i {
  color: white;
}

.sidebar-sns-btn.contact-btn {
  background: linear-gradient(135deg, #ff7043, #ff8a65);
  color: white;
}

.sidebar-sns-btn.newsletter-btn {
  background: linear-gradient(135deg, #7e57c2, #9575cd);
  color: white;
}

.sidebar-sns-btn.taito-btn {
  background: linear-gradient(135deg, #800000, #a00000);
  color: white;
}

.sidebar-sns-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar-sns-btn i {
  font-size: 1.1rem;
  margin-right: 12px;
  min-width: 20px;
}

.sidebar-sns-btn span {
  font-weight: 600;
  flex: 1;
}

.sidebar-sns-btn small {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-left: 8px;
  display: block;
}

/* ウィジェットタイトルのアイコン対応 */
.widget-title i {
  margin-right: 8px;
  color: #1877f2;
}

/* SNSフォロー */
.social-follow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-follow-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  text-decoration: none;
  color: white;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.social-follow-btn.facebook {
  background: #1877f2;
}

.social-follow-btn.x-twitter {
  background: #000000;
}

.social-follow-btn.youtube {
  background: #ff0000;
}

.social-follow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* メインコンテンツ */
.main-content-blog {
  background: #ffffff;
}

/* ブログ記事 */
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* グリッドレイアウト用スタイル */
.blog-posts.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .blog-posts.blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .blog-posts.blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.blog-post {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  flex-direction: column;
}

/* グリッドレイアウト用の記事カードスタイル */
.blog-grid .blog-post {
  height: 100%;
  min-height: 400px;
}

.blog-post.visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

/* グリッドレイアウト用の画像スタイル */
.blog-grid .post-image {
  height: 180px;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post:hover .post-image img {
  transform: scale(1.05);
}

.post-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #007bff;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.post-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* グリッドレイアウト用のコンテンツスタイル */
.blog-grid .post-content {
  padding: 20px;
}

.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.post-date,
.post-author {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-title {
  margin: 0 0 15px 0;
  font-size: 1.5rem;
  line-height: 1.4;
}

/* グリッドレイアウト用のタイトルスタイル */
.blog-grid .post-title {
  font-size: 1.2rem;
  margin: 0 0 10px 0;
}

.post-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #007bff;
}

.post-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
  flex: 1;
}

/* グリッドレイアウト用の抜粋スタイル */
.blog-grid .post-excerpt {
  font-size: 14px;
  margin-bottom: 15px;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

/* グリッドレイアウト用のフッタースタイル */
.blog-grid .post-footer {
  padding-top: 15px;
}

.read-more {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #0056b3;
}

/* インライン続きを読むリンク */
.read-more-inline {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  display: inline;
  margin-left: 8px;
  float: right;
  transition: color 0.3s ease;
}

.read-more-inline:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* SNS共有ボタン */
.social-share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.x-twitter {
  background: #000000;
}

.share-btn.threads {
  background: #e4405f;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 50px auto 0;
  padding: 30px 0;
  border-top: 1px solid #e9ecef;
  max-width: 70%;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(.disabled) {
  background: #0056b3;
  transform: translateY(-2px);
}

.pagination-btn.disabled {
  background: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 5px;
}

.pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination-number:hover,
.pagination-number.active {
  background: #007bff;
  color: white;
}

.pagination-dots {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #666;
}

/* 大量ページネーション対応（148ページ目以降のレイアウト崩れ防止） */
.pagination {
  overflow: hidden; /* レイアウト崩れ防止 */
  clear: both; /* フロート要素のクリア */
}

.pagination-number,
.pagination-btn {
  white-space: nowrap; /* テキストの改行防止 */
  box-sizing: border-box; /* ボックスサイズの統一 */
}

/* 3桁ページ番号対応 */
.pagination-number {
  min-width: 40px; /* 最小幅を確保 */
  text-align: center;
}

/* 大量ページでのレスポンシブ最適化 */
@media (max-width: 768px) {
  .pagination {
    overflow-x: auto; /* 横スクロール対応 */
    -webkit-overflow-scrolling: touch; /* スムーズスクロール */
  }
  
  .pagination-number {
    min-width: 35px;
    font-size: 0.85rem;
  }
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr 250px;
    gap: 25px;
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .blog-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .sidebar {
    order: 2;
  }

  .main-content-blog {
    order: 1;
  }

  .sidebar-widget {
    padding: 20px;
  }

  /* サイドバーSNSボタンのモバイル対応 */
  .sidebar-sns-links {
    gap: 10px;
  }
  
  .sidebar-sns-btn {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .sidebar-sns-btn small {
    display: none;
  }
  
  .sidebar-sns-btn i {
    margin-right: 8px;
  }

  .post-content {
    padding: 20px;
  }

  .post-footer {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .pagination {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 95%;
    padding: 20px 0;
  }

  .pagination-numbers {
    order: 0;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .page-header {
    margin: 20px 0;
    padding: 30px 15px;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .post-meta {
    flex-direction: column;
    gap: 10px;
  }

  .post-title {
    font-size: 1.3rem;
  }

  .sidebar-widget {
    padding: 15px;
  }

  .social-share {
    justify-content: center;
  }

  /* ページネーションの小画面対応 */
  .pagination {
    max-width: 100%;
    padding: 15px 10px;
    gap: 8px;
  }

  .pagination-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .pagination-number {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

/* Xアイコンのスタイル */
.x-icon {
  font-family: "Arial", sans-serif;
  font-weight: bold;
  font-size: 16px;
  display: inline-block;
}

/* お問い合わせフォームのスタイル */
.contact-form {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.form-label i {
  margin-right: 8px;
  color: #007bff;
}

.required {
  color: #dc3545;
  font-size: 0.9em;
  margin-left: 5px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  background: #007bff;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background: #0056b3;
}

/* ==========================
   個別記事ページのスタイル
   ========================== */

/* パンくずナビ */
body.policies-page .breadcrumb {
  margin: 20px 0;
  font-size: 14px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
}



.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 12px 20px;
  margin: 0 auto;
  max-width: 1200px;
  background: #f8f9fa;
  border-radius: 8px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: ">";
  margin: 0 10px;
  color: #666;
}

.breadcrumb-item a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #004499;
}

.breadcrumb-item.active {
  color: #666;
  font-weight: 500;
}

/* 2カラムレイアウト */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* メインコンテンツ */
body.policies-page .main-content {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}

/* 記事単体 */
.post-single {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px; /* マージンを調整 */
  overflow: hidden;
  max-width: 100%;
}

/* 記事ヘッダー */
.post-header {
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
}

.post-title {
  font-size: 32px;
  line-height: 1.4;
  color: #333;
  margin: 20px 0 0;
  font-weight: 700;
  word-wrap: break-word;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.post-meta > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-meta i {
  color: #0066cc;
}

.post-meta a {
  color: #0066cc;
  text-decoration: none;
}

.post-meta a:hover {
  text-decoration: underline;
}

/* 記事本文 */
.post-content {
  padding: 0 30px 30px;
  line-height: 1.8;
  font-size: 16px;
  color: #333;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-featured-image {
  margin: 0 0 30px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 30px;
}

.post-featured-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  display: block;
}

.image-caption {
  margin: 10px 0 0;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

.post-lead {
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid #0066cc;
  margin: 0 0 30px;
  font-weight: 500;
}

.post-content h2 {
  font-size: 24px;
  color: #333;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #0066cc;
}

.post-content h2::before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #ff6b35;
}

.post-content h3 {
  font-size: 20px;
  color: #333;
  margin: 30px 0 15px;
  padding-left: 15px;
  border-left: 4px solid #0066cc;
}

.post-content p {
  margin: 0 0 20px;
}

.post-content ul,
.post-content ol {
  margin: 0 0 20px;
  padding-left: 30px;
}

.post-content li {
  margin: 8px 0;
}

/* 引用 */
.quote {
  background: #f8f9fa;
  border-left: 5px solid #0066cc;
  margin: 30px 0;
  padding: 25px 30px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  position: relative;
}

.quote::before {
  content: "\201C";
  font-size: 60px;
  color: #0066cc;
  position: absolute;
  top: -10px;
  left: 15px;
  line-height: 1;
  opacity: 0.3;
}

.quote p {
  margin: 0 0 15px;
  font-size: 18px;
  line-height: 1.6;
  color: #555;
}

.quote cite {
  display: block;
  text-align: right;
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

/* アラートボックス */
.alert-box {
  margin: 25px 0;
  padding: 20px 25px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.alert-box.info {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-left: 5px solid #2196f3;
}

.alert-box.warning {
  background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
  border-left: 5px solid #ff9800;
}

.alert-box i {
  font-size: 20px;
  margin-top: 2px;
}

.alert-box.info i {
  color: #2196f3;
}

.alert-box.warning i {
  color: #ff9800;
}

.alert-box p {
  margin: 0;
  line-height: 1.6;
}

.alert-box strong {
  color: #333;
  display: block;
  margin-bottom: 8px;
}

/* 記事フッター */
.post-footer {
  padding: 30px 30px;
  border-top: 1px solid #eee;
  background: #f8f9fa;
}

/* タグ */
.post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.tags-label {
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-link {
  background: #e9ecef;
  color: #495057;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag-link:hover {
  background: #0066cc;
  color: white;
  transform: translateY(-2px);
}

/* SNS共有 */
.post-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.share-label {
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  min-width: 80px;
  gap: 6px;
}

.facebook-button {
  background: #1877f2;
  color: white;
}

.facebook-button:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.x-button {
  background: #000;
  color: white;
}

.x-button:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.threads-button {
  background: #000;
  color: white;
}

.threads-button:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.copy-button {
  background: #6c757d;
  color: white;
}

.copy-button:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* 関連記事 */
.related-posts {
  margin: 40px 0;
}

.related-posts-title {
  font-size: 24px;
  color: #333;
  margin: 0 0 30px;
  padding-bottom: 10px;
  border-bottom: 3px solid #0066cc;
  position: relative;
}

.related-posts-title::before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #ff6b35;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.related-post-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.related-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-post-image {
  height: 200px;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
  transform: scale(1.05);
}

.related-post-content {
  padding: 20px;
}

.related-post-title {
  margin: 0 0 10px;
}

.related-post-title a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.related-post-title a:hover {
  color: #0066cc;
}

.related-post-excerpt {
  color: #666;
  line-height: 1.6;
  margin: 0 0 15px;
  font-size: 14px;
}

.related-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
}

.related-post-category {
  background: #e9ecef;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

/* 前後記事ナビ */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0 15px 0; /* マージンをさらに縮小 */
}

.nav-previous,
.nav-next {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 25px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  height: 100%;
}

.nav-link:hover {
  background: #f8f9fa;
  color: #0066cc;
}

.nav-previous .nav-link {
  justify-content: flex-start;
}

.nav-next .nav-link {
  justify-content: flex-end;
}

.nav-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-label {
  font-size: 12px;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.nav-link i {
  font-size: 18px;
  margin: 0 15px;
  color: #0066cc;
}

/* プロフィールページのサイドバー */
.profile-summary {
  text-align: center;
}

.profile-thumb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #007bff;
}

.profile-name {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 5px;
  font-weight: 600;
}

.profile-title-text {
  color: #007bff;
  font-weight: 500;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.profile-party {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ==========================
   MANUFEST PAGE SPECIAL DESIGN
   ========================== */

/* Manufestページ専用のスタイル */
.manufest-page {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  min-height: 100vh;
}

/* Manufestページのメインタイトル */
.manufest-page .greeting-section {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  text-align: center;
  padding: 80px 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.manufest-page .greeting-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.manufest-page .greeting-content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 40px 50px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.manufest-page .page-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #007bff;
}

.manufest-page .page-subtitle {
  font-size: 1.3rem;
  color: #495057;
  font-weight: 400;
}

/* 実績ハイライトセクション - カード風デザイン */
.manufest-page .visual-menu-section {
  padding: 80px 0;
  background: white;
}

.manufest-page .visual-menu-content h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 50px;
  position: relative;
}

.manufest-page .visual-menu-content h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  margin: 20px auto 0;
  border-radius: 2px;
}

.manufest-page .visual-menu-content ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.manufest-page .visual-menu-content li {
  background: white;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,123,255,0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #007bff;
  position: relative;
  overflow: hidden;
  font-size: 1.2rem;
  font-weight: 500;
}

.manufest-page .visual-menu-content li::before {
  content: '✓';
  position: absolute;
  top: 20px;
  right: 20px;
  color: #007bff;
  font-size: 1.5rem;
  font-weight: bold;
}

.manufest-page .visual-menu-content li:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* 今後の政策セクション - 明るいブルー背景 */
.manufest-page .background-section {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  padding: 80px 0;
  color: #333;
}

.manufest-page .background-content h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #1976d2;
}

.manufest-page .background-content ol {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(76,175,80,0.1);
}

.manufest-page .background-content li {
  padding: 20px 25px;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #f8f9ff, #ffffff);
  border-radius: 8px;
  border-left: 4px solid #007bff;
  font-size: 1.3rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.manufest-page .background-content li:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 公約セクション - 2カラムレイアウト */
.manufest-page .profile-section {
  background: #f8f9fa;
  padding: 80px 0;
}

.manufest-page .profile-content h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 50px;
}

.manufest-page .profile-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 0 20px;
}

.manufest-page .profile-content h3 {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 25px 30px;
  border-radius: 8px;
  font-size: 1.7rem;
  margin: 30px 0 20px 0;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,123,255,0.2);
}

.manufest-page .profile-content ul {
  background: white;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(76,175,80,0.08);
  list-style: none;
}

.manufest-page .profile-content li {
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  padding-left: 30px;
  font-size: 1.2rem;
  font-weight: 500;
}

.manufest-page .profile-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #007bff;
  font-weight: bold;
}

.manufest-page .profile-content li:last-child {
  border-bottom: none;
}

/* 詳細実績セクション - 明るいグリーン */
.manufest-page .activity-local-section {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
  padding: 80px 0;
  color: #333;
}

.manufest-page .activity-local-content h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #2e7d32;
}

.manufest-page .activity-local-content h3 {
  background: #4caf50;
  color: white;
  padding: 25px 30px;
  border-radius: 8px;
  margin: 30px 0 20px 0;
  font-size: 1.5rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(76,175,80,0.2);
}

.manufest-page .activity-local-content ul {
  background: white;
  color: #333;
  padding: 35px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(76,175,80,0.1);
  list-style: none;
}

.manufest-page .activity-local-content li {
  padding: 16px 0;
  padding-left: 25px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1.1rem;
  font-weight: 500;
}

.manufest-page .activity-local-content li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: #4caf50;
  font-size: 0.8rem;
}

.manufest-page .activity-local-content li:last-child {
  border-bottom: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .manufest-page .page-title {
    font-size: 2.5rem;
  }
  
  .manufest-page .page-subtitle {
    font-size: 1.1rem;
  }
  
  .manufest-page .visual-menu-content h2,
  .manufest-page .background-content h2,
  .manufest-page .profile-content h2,
  .manufest-page .activity-local-content h2 {
    font-size: 2rem;
  }
  
  .manufest-page .visual-menu-content ul {
    grid-template-columns: 1fr;
  }
}

/* ==========================
   NEWSLETTER PAGE DESIGN (タイル式)
   ========================== */

/* 会報ページヘッダー */
.newsletter-header {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 40px;
  border-radius: 10px;
}

.newsletter-header-content {
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.newsletter-title i {
  margin-right: 15px;
  color: #ffd700;
}

.newsletter-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.6;
}

/* タイルグリッド */
.newsletter-tiles {
  margin-bottom: 40px;
  padding: 0 20px; /* 左右に余白を追加 */
}

.newsletter-tiles-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1200px; /* 最大幅を制限 */
  margin: 0 auto; /* 中央寄せ */
}

/* 個別タイル */
.newsletter-tile {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  background: white;
}

.newsletter-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.newsletter-tile-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* 16:9の比率に設定 */
  overflow: hidden;
}

.newsletter-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.newsletter-tile:hover .newsletter-tile-image img {
  transform: scale(1.1);
}

/* オーバーレイ */
.newsletter-tile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.8) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.newsletter-tile:hover .newsletter-tile-overlay {
  opacity: 1;
}

/* タイル情報 */
.newsletter-tile-info {
  color: white;
  z-index: 2;
}

.newsletter-tile-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.newsletter-tile-info p {
  font-size: 1rem;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* NEWバッジ */
.newsletter-new-badge {
  background: #ff4757;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  position: absolute;
  top: 15px;
  right: 15px;
  box-shadow: 0 2px 8px rgba(255,71,87,0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ダウンロードボタン */
.newsletter-tile-download {
  background: rgba(0,123,255,0.9);
  color: white;
  padding: 15px 20px;
  border-radius: 50px;
  text-align: center;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.newsletter-tile:hover .newsletter-tile-download {
  background: rgba(0,123,255,1);
  transform: translateY(-2px);
}

.newsletter-tile-download i {
  font-size: 1.2rem;
}

/* 非表示のリンク */
.newsletter-tile-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  opacity: 0;
}

/* サンプルタイル */
.newsletter-tile.sample-tile {
  opacity: 0.9;
}

.newsletter-tile.sample-tile:hover {
  cursor: not-allowed;
  transform: translateY(-4px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .newsletter-title {
    font-size: 2rem;
  }
  
  .newsletter-subtitle {
    font-size: 1rem;
  }
  
  .newsletter-tiles {
    padding: 0 15px; /* モバイルでは余白を少し縮小 */
  }
  
  .newsletter-tiles-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  
  .newsletter-tile-overlay {
    opacity: 1;
    background: linear-gradient(
      180deg,
      rgba(0,0,0,0.2) 0%,
      rgba(0,0,0,0.4) 50%,
      rgba(0,0,0,0.8) 100%
    );
  }
}

@media (max-width: 480px) {
  .newsletter-tiles {
    padding: 0 10px; /* さらに小さい画面では余白をより縮小 */
  }
  
  
}

/* トップページ専用：活動報告・議会質問の横並びレイアウト */
.home-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-items: center;
}

.home-grid-layout .blog-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-grid-layout .blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-grid-layout .blog-text {
  flex: 1;
}

/* タブレット・スマホ対応 */
@media (max-width: 768px) {
  .home-grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* トップページ記事一覧のアイキャッチ画像をスマホ・タブレットで調整 */
  .home-grid-layout .blog-item .blog-image.large {
    width: 100%;
    height: 220px; /* モバイルでの高さを10%増加（200px → 220px） */
    transform: none; /* スケールを無効化 */
    transform-origin: center;
    margin-bottom: 16px;
    background-color: #ffffff; /* 背景を白に変更 */
    border-radius: 0; /* 角丸を削除 */
    overflow: hidden; /* 境界を確実に適用 */
    position: relative;
  }
  
  .home-grid-layout .blog-item .blog-image.large img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 画像全体を表示（比率を保持） */
    object-position: center; /* 画像の中央部分を表示 */
    display: block;
  }
}

/* 小さなモバイル対応 */
@media (max-width: 480px) {
  .home-grid-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* トップページ記事一覧のアイキャッチ画像をスマホで調整 */
  .home-grid-layout .blog-item .blog-image.large {
    width: 100%;
    height: 200px; /* 小さなモバイルでの高さを10%増加（180px → 200px） */
    transform: none; /* スケールを無効化 */
    transform-origin: center;
    margin-bottom: 16px;
    background-color: #ffffff; /* 背景を白に変更 */
    border-radius: 0; /* 角丸を削除 */
    overflow: hidden;
    position: relative;
  }
  
  /* 画像内のimgタグも確実に調整 */
  .home-grid-layout .blog-item .blog-image.large img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 画像全体を表示（比率を保持） */
    object-position: center; /* 画像の中央部分を表示 */
    display: block;
  }
}

/* ==============================================
   会報ページスタイル（Newsletter Page Styles）
   ============================================== */

/* 会報ページヘッダー */
.newsletter-header {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: white;
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 40px;
}

.newsletter-header-content {
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.newsletter-title i {
  font-size: 2.2rem;
  color: #f39c12;
}

.newsletter-subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* 会報タイルグリッド */
.newsletter-tiles {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.newsletter-tiles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* 個別のタイル */
.newsletter-tile {
  position: relative;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.newsletter-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.newsletter-tile-image {
  position: relative;
  aspect-ratio: 16 / 9; /* 16:9の比率に統一 */
  overflow: hidden;
}

.newsletter-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.newsletter-tile:hover .newsletter-tile-image img {
  transform: scale(1.05);
}

/* プレースホルダー画像 */
.newsletter-placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #7f8c8d;
  font-size: 1.1rem;
}

.newsletter-placeholder-image i {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #95a5a6;
}

/* オーバーレイ */
.newsletter-tile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.newsletter-tile:hover .newsletter-tile-overlay {
  opacity: 1;
}

.newsletter-tile-info h3 {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.3;
}

.newsletter-tile-info p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 10px;
}

/* バッジ */
.newsletter-new-badge,
.newsletter-sample-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
  margin-right: 8px;
}

.newsletter-new-badge {
  background: #e74c3c;
  color: white;
}

.newsletter-sample-badge {
  background: #f39c12;
  color: white;
}

.newsletter-file-size {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: normal;
  margin-top: 5px;
}

/* ダウンロードエリア */
.newsletter-tile-download {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.newsletter-tile-download i {
  font-size: 1.1rem;
}

/* 実際のリンク（非表示） */
.newsletter-tile-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  text-decoration: none;
  color: transparent;
}

/* サンプルタイル */
.newsletter-tile.sample-tile {
  opacity: 0.9;
}

.newsletter-tile.sample-tile:hover {
  cursor: not-allowed;
  transform: translateY(-4px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .newsletter-title {
    font-size: 2rem;
  }
  
  .newsletter-subtitle {
    font-size: 1rem;
  }
  
  .newsletter-tiles {
    padding: 0 15px 40px;
  }
  
  .newsletter-tiles-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  
  .newsletter-tile-overlay {
    opacity: 1;
    background: linear-gradient(
      180deg,
      rgba(0,0,0,0.2) 0%,
      rgba(0,0,0,0.4) 50%,
      rgba(0,0,0,0.8) 100%
    );
  }
}

@media (max-width: 480px) {
  .newsletter-header {
    padding: 30px 15px;
  }
  
  .newsletter-title {
    font-size: 1.8rem;
  }
  
  .newsletter-tiles-container {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 300px;
    margin: 40px auto 0;
    justify-items: center;
  }
  
  .newsletter-tile {
    width: 100%;
    max-width: 280px;
  }
  
  
  .newsletter-tile-overlay {
    padding: 12px;
  }
  
  .newsletter-tile-info h3 {
    font-size: 1rem;
  }
  
  .newsletter-tile-info p {
    font-size: 0.9rem;
  }
}

/* 3×3グリッド対応（デスクトップ） */
@media (min-width: 1024px) {
  .newsletter-tiles-container {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 40px auto 0;
  }
  
  .newsletter-tile {
    min-height: 250px;
  }
  
  .newsletter-tile-image {
    height: 220px;
  }
}

/* ==============================================
   Contact Form 7スタイリング - 洗練されたデザイン
   ============================================== */

/* Contact Form 7のフォーム全体 */
.wpcf7-form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 20px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* テキストエリアと送信ボタンは全幅 */
.wpcf7-form p:has(.wpcf7-textarea),
.wpcf7-form p:has(.wpcf7-submit) {
  grid-column: 1 / -1;
}

.wpcf7-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #9b59b6, #e74c3c, #f39c12);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* フォームフィールドのラベル */
.wpcf7-form p {
  position: relative;
  margin-bottom: 25px;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* フォームフィールドのスタイル */
.wpcf7-form-control-wrap {
  position: relative;
  display: block;
}

.wpcf7-form-control {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.5;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #e1e8ed, #cbd5e0) border-box;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.05),
    inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wpcf7-form-control:focus {
  outline: none;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #3498db, #9b59b6) border-box;
  box-shadow: 
    0 8px 20px rgba(52, 152, 219, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.wpcf7-form-control::placeholder {
  color: #a0aec0;
  font-style: italic;
}

/* テキストエリア */
.wpcf7-textarea {
  min-height: 140px;
  resize: vertical;
  font-family: inherit;
}

/* 送信ボタン */
.wpcf7-submit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 18px 45px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  margin: 30px auto 0;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 20px rgba(102, 126, 234, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.1);
}

.wpcf7-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.wpcf7-submit:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 25px rgba(102, 126, 234, 0.4),
    0 6px 12px rgba(0, 0, 0, 0.15);
}

.wpcf7-submit:hover::before {
  left: 100%;
}

.wpcf7-submit:active {
  transform: translateY(-1px) scale(1.01);
}

/* フォーカス時のフィールドアニメーション */
.wpcf7-form-control-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3498db, #9b59b6);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.wpcf7-form-control:focus + .wpcf7-form-control-wrap::after {
  width: 100%;
}

/* バリデーションメッセージ */
.wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 8px;
  display: block;
  padding: 8px 12px;
  background-color: rgba(231, 76, 60, 0.1);
  border-radius: 6px;
  border-left: 3px solid #e74c3c;
}

.wpcf7-validation-errors {
  background: linear-gradient(135deg, #fff5f5, #fed7d7);
  border: 2px solid #feb2b2;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  color: #2d3748;
  box-shadow: 0 4px 12px rgba(254, 178, 178, 0.3);
}

/* 送信成功メッセージ */
.wpcf7-mail-sent-ok {
  background: linear-gradient(135deg, #f0fff4, #c6f6d5);
  border: 2px solid #9ae6b4;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  color: #22543d;
  box-shadow: 0 4px 12px rgba(154, 230, 180, 0.3);
  text-align: center;
  font-weight: 600;
}

/* 送信失敗メッセージ */
.wpcf7-mail-sent-ng {
  background: linear-gradient(135deg, #fff5f5, #fed7d7);
  border: 2px solid #feb2b2;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  color: #742a2a;
  box-shadow: 0 4px 12px rgba(254, 178, 178, 0.3);
}

/* スピナー（送信中） */
.wpcf7-spinner {
  margin-left: 15px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .wpcf7-form {
    padding: 25px 20px;
    margin: 0 15px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .wpcf7-form p:has(.wpcf7-textarea),
  .wpcf7-form p:has(.wpcf7-submit) {
    grid-column: 1;
  }
  
  .wpcf7-form-control {
    padding: 14px 16px;
    font-size: 16px; /* iOS Safari の zoom を防ぐ */
  }
  
  .wpcf7-submit {
    width: 100%;
    padding: 16px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .wpcf7-form {
    padding: 20px 15px;
    border-radius: 15px;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .wpcf7-form-control {
    padding: 12px 14px;
  }
}

/* Contact Form 7 エラーメッセージスタイル */
.contact-message {
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
}

.contact-message.error {
  background-color: #ffeaa7;
  border: 2px solid #fdcb6e;
  color: #2d3436;
}

.contact-message.error h3 {
  color: #d63031;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.contact-message.error p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.contact-message.error ol {
  background-color: #fff;
  padding: 15px;
  border-radius: 5px;
  margin: 15px auto;
  max-width: 400px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-message.error ol li {
  padding: 5px 0;
  border-bottom: 1px solid #e1e8ed;
}

.contact-message.error ol li:last-child {
  border-bottom: none;
}

.contact-message.error i {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #f39c12;
  display: block;
}

/* Homepage: Reduce vertical spacing between top-page sections by 50% */
body.home .main-column > section {
  /* Many sections use margin-top/margin-bottom: 80px or margin: 80px 0; */
  margin-top: 40px !important;
  margin-bottom: 40px !important;
  padding-top: calc(var(--section-padding-top, 20px) / 1);
  padding-bottom: calc(var(--section-padding-bottom, 20px) / 1);
}

/* Specific overrides for sections that use full-bleed styles (activity/question/facebook) */
body.home .activity-section,
body.home .question-section,
body.home .facebook-section {
  margin-bottom: 40px !important;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
}

/* Visual menu had margin-bottom: 80px; reduce to 40px */
body.home .visual-menu-section {
  margin-bottom: 40px !important;
  padding-top: 30px !important;
  padding-bottom: 30px !important;
}

/* Greeting & profile had explicit margin-top/bottom; ensure they follow 40px spacing */
body.home .greeting-section,
body.home .profile-section,
body.home .activity-local-section,
body.home .background-section {
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}

/* Small screens: keep reasonable spacing but reduce proportionally */
@media (max-width: 767px) {
  body.home .main-column > section {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }
}

/* =======================================================
   Home main-column dedicated fixed background (clouds)
   - Fixed only within .main-column (not full body)
   - 50% light overlay to soften image
   - Does not alter section internal backgrounds
   ======================================================= */
body.home .main-column, body.site-home .main-column {
  position: relative;
  z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,0.50), rgba(255,255,255,0.50)), url('images/bg-clouds.jpg');
  background-size: auto, cover;
  background-position: 0 0, center top;
  background-repeat: repeat, no-repeat;
  background-attachment: scroll, fixed; /* overlay scrolls, image fixed */
}

/* Ensure child sections sit above overlay */
body.home .main-column > section, body.site-home .main-column > section { position: relative; z-index: 1; }

/* Mobile fallback: disable fixed to avoid jank */
@media (max-width: 768px) {
  body.home .main-column, body.site-home .main-column {
    background-attachment: scroll, scroll;
  }
}

/* Remove the short blue divider between specific visual menu items (活動報告 / 議会質問) on the homepage */
body.home .visual-menu-section .visual-menu-grid .menu-item + .menu-item::before,
body.home .visual-menu-section .visual-menu-grid .menu-item + .menu-item::after {
  /* likely created by a pseudo-element; hide it */
  content: none !important;
  display: none !important;
  background: transparent !important;
  border: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Defensive: if the line is a border on a sibling, remove that too */
body.home .visual-menu-section .visual-menu-grid .menu-item + .menu-item {
  border-left: none !important;
}
