/*
Theme Name: ten-on
Version: 1.0
*/

/* ハンバーガーボタン */
.mobile-logo {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;

  position: fixed;
  top: 16px;
  left: 8px;
}

.mobile-nav-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  position: fixed;
  top: 20px;
  right: 20px;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 6px 0;
  background-color: #000;
  transition: 0.3s;
}

/* モバイルメニュー */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  max-width: 300px;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 1000;
  padding: 60px 20px 20px;
}

/* アクティブ時のスタイル */
.mobile-nav.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

/* メニュー内 */
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav ul li {
  margin: 20px 0;
}

.mobile-nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
}

/* ブレイクポイント切替 */
@media (max-width: 1024px) {
  .mobile-logo {
    display: block;
  }

  .mobile-nav-button {
    display: block;
  }

  .sidebar {
    display: none;
  }
}

/* 一文字ずつフェードイン */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.montserrat-bold {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}



/* WordPress用ニュース詳細ページCSS */

/* ベーススタイル */
.wp-news-detail {
  min-height: 100vh;
  background-color: #ffffff;
  padding: 2rem 1rem;
}

@media (min-width: 1024px) {
  .wp-news-detail {
    padding: 4rem 2rem;
  }
}

/* メインコンテナ */
.wp-news-container {
  max-width: 800px;
  margin: 0 auto;
}

/* 戻るボタン */
.wp-back-button {
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: transparent;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 0.875rem;
}

.wp-back-button:hover {
  background-color: #f3f4f6;
  text-decoration: none;
  color: #374151;
}

/* 記事ヘッダー */
.wp-article-header {
  margin-bottom: 2rem;
}

/* 記事メタ情報 */
.wp-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.wp-article-date,
.wp-article-author,
.wp-article-category {
  font-size: 0.875rem;
  color: #6b7280;
}

.wp-article-date::before {
  content: "📅 ";
  margin-right: 0.25rem;
}

.wp-article-author::before {
  content: "👤 ";
  margin-right: 0.25rem;
}

/* カテゴリーバッジ */
.wp-category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #f3f4f6;
  color: #374151;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.wp-category-badge:hover {
  background-color: #e5e7eb;
  text-decoration: none;
}

/* プライマリカテゴリー色（WordPressのカテゴリーslugに基づく） */
.wp-category-news {
  background-color: #dbeafe;
  color: #1e40af;
}

.wp-category-important {
  background-color: #fee2e2;
  color: #991b1b;
}

.wp-category-event {
  background-color: #dcfce7;
  color: #166534;
}

.wp-category-announcement {
  background-color: #e9d5ff;
  color: #7c2d12;
}

.wp-category-update {
  background-color: #fef3c7;
  color: #92400e;
}

.wp-category-press {
  background-color: #fce7f3;
  color: #be185d;
}

/* 記事タイトル */
.wp-article-title {
  font-size: 1.875rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #111827;
}

@media (min-width: 1024px) {
  .wp-article-title {
    font-size: 2.25rem;
  }
}

/* 記事抜粋 */
.wp-article-excerpt {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-style: italic;
  padding: 1rem;
  background-color: #f9fafb;
  border-left: 4px solid #3b82f6;
  border-radius: 0.375rem;
}

/* アイキャッチ画像 */
.wp-featured-image {
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.wp-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.wp-featured-image figcaption {
  padding: 0.75rem;
  background-color: #f9fafb;
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

/* 記事本文 */
.wp-article-content {
  color: #374151;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 3rem;
}

/* WordPress エディター出力の標準的なスタイリング */
.wp-article-content>*+* {
  margin-top: 1.5rem;
}

/* 段落 */
.wp-article-content p {
  margin-bottom: 1.5rem;
}

/* 見出し */
.wp-article-content h1,
.wp-article-content h2,
.wp-article-content h3,
.wp-article-content h4,
.wp-article-content h5,
.wp-article-content h6 {
  font-weight: bold;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.wp-article-content h1 {
  font-size: 2rem;
}

.wp-article-content h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 0.5rem;
}

.wp-article-content h3 {
  font-size: 1.25rem;
}

.wp-article-content h4 {
  font-size: 1.125rem;
}

.wp-article-content h5 {
  font-size: 1rem;
}

.wp-article-content h6 {
  font-size: 0.875rem;
}

/* リスト */
.wp-article-content ul,
.wp-article-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.wp-article-content ul {
  list-style-type: disc;
}

.wp-article-content ol {
  list-style-type: decimal;
}

.wp-article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* 引用 */
.wp-article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #f9fafb;
  border-left: 4px solid #3b82f6;
  border-radius: 0.375rem;
  font-style: italic;
  color: #6b7280;
}

.wp-article-content blockquote p {
  margin-bottom: 0;
}

.wp-article-content blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #9ca3af;
  font-style: normal;
}

.wp-article-content blockquote cite::before {
  content: "— ";
}

/* リンク */
.wp-article-content a {
  color: #3b82f6;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.wp-article-content a:hover {
  color: #1d4ed8;
}

/* 画像 */
.wp-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
  margin: 1.5rem 0;
}

.wp-article-content figure {
  margin: 2rem 0;
  text-align: center;
}

.wp-article-content figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}

/* テーブル */
.wp-article-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  overflow: hidden;
}

.wp-article-content th,
.wp-article-content td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.wp-article-content th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.wp-article-content tr:hover {
  background-color: #f9fafb;
}

/* コード */
.wp-article-content code {
  background-color: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

.wp-article-content pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.wp-article-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

/* WordPress Gutenberg ブロック対応 */
.wp-block-image {
  margin: 2rem 0;
  text-align: center;
}

.wp-block-quote {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #f9fafb;
  border-left: 4px solid #3b82f6;
  font-style: italic;
}

.wp-block-separator {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 3rem auto;
  width: 50%;
}

/* タグ */
.wp-article-tags {
  margin: 3rem 0;
  padding: 1.5rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  border-top: 3px solid #3b82f6;
}

.wp-article-tags h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: #374151;
}

.wp-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wp-tag-link {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: #e5e7eb;
  color: #374151;
  text-decoration: none;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.wp-tag-link:hover {
  background-color: #d1d5db;
  text-decoration: none;
}

/* シェアボタン */
.wp-share-buttons {
  margin: 3rem 0;
  padding: 1.5rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  text-align: center;
}

.wp-share-buttons h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: #374151;
}

.wp-share-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  color: white;
  text-decoration: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: opacity 0.2s ease;
}

.wp-share-button:hover {
  opacity: 0.8;
  text-decoration: none;
}

.wp-share-twitter {
  background-color: #1da1f2;
}

.wp-share-facebook {
  background-color: #4267b2;
}

.wp-share-line {
  background-color: #00b900;
}

.wp-share-copy {
  background-color: #6b7280;
}

/* 関連記事 */
.wp-related-posts {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
}

.wp-related-posts h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #111827;
  text-align: center;
}

.wp-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .wp-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .wp-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wp-related-post {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: white;
}

.wp-related-post:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.wp-related-post-image {
  position: relative;
  width: 100%;
  height: 8rem;
  overflow: hidden;
}

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

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

.wp-related-post-content {
  padding: 1rem;
}

.wp-related-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.wp-related-post-title {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #111827;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wp-related-post-title:hover {
  color: #3b82f6;
  text-decoration: none;
}

/* ページネーション */
.wp-post-navigation {
  margin: 4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.wp-post-nav-link {
  flex: 1;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #374151;
  transition: all 0.2s ease;
}

.wp-post-nav-link:hover {
  background-color: #f9fafb;
  border-color: #3b82f6;
  text-decoration: none;
}

.wp-post-nav-link.prev {
  text-align: left;
}

.wp-post-nav-link.next {
  text-align: right;
}

.wp-post-nav-label {
  font-size: 0.75rem;
  color: #6b7280;
  display: block;
  margin-bottom: 0.25rem;
}

.wp-post-nav-title {
  font-weight: 600;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* レスポンシブ調整 */
@media (max-width: 767px) {
  .wp-article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .wp-post-navigation {
    flex-direction: column;
  }

  .wp-share-buttons {
    text-align: left;
  }

  .wp-share-button {
    display: block;
    text-align: center;
    margin: 0.5rem 0;
  }
}

/* プリント用 */
@media print {

  .wp-back-button,
  .wp-share-buttons,
  .wp-related-posts,
  .wp-post-navigation {
    display: none;
  }

  .wp-news-detail {
    padding: 1rem;
  }

  .wp-article-content a {
    color: #000000;
  }
}


/* WordPress用ニュース一覧ページCSS */

/* ベーススタイル */
.wp-news-list {
  min-height: 100vh;
  background-color: #ffffff;
  padding: 2rem 1rem;
}

@media (min-width: 1024px) {
  .wp-news-list {
    padding: 4rem 2rem;
  }
}

/* メインコンテナ */
.wp-news-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ページヘッダー */
.wp-news-header {
  text-align: center;
  margin-bottom: 3rem;
}

.wp-news-page-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #111827;
}

@media (min-width: 1024px) {
  .wp-news-page-title {
    font-size: 3rem;
  }
}

.wp-news-page-description {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 検索・フィルターセクション */
.wp-news-filters {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.wp-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .wp-filters-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* 検索フォーム */
.wp-search-form {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  max-width: 400px;
}

.wp-search-input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background-color: white;
}

.wp-search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wp-search-button {
  padding: 0.5rem 1rem;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
}

.wp-search-button:hover {
  background-color: #2563eb;
}

/* カテゴリーフィルター */
.wp-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.wp-category-filter-label {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
  margin-right: 0.5rem;
}

.wp-category-button {
  padding: 0.375rem 0.75rem;
  border: 1px solid #d1d5db;
  background-color: white;
  color: #374151;
  border-radius: 9999px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.wp-category-button:hover {
  background-color: #f3f4f6;
  text-decoration: none;
  color: #374151;
}

.wp-category-button.active {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* 並び替え */
.wp-sort-select {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: white;
  font-size: 0.875rem;
  cursor: pointer;
}

.wp-sort-select:focus {
  outline: none;
  border-color: #3b82f6;
}

/* 結果情報 */
.wp-news-results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.wp-results-count {
  font-size: 0.875rem;
  color: #6b7280;
}

.wp-view-toggle {
  display: flex;
  gap: 0.25rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  overflow: hidden;
}

.wp-view-button {
  padding: 0.5rem;
  background-color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.wp-view-button.active {
  background-color: #3b82f6;
  color: white;
}

.wp-view-button:hover:not(.active) {
  background-color: #f3f4f6;
}

/* ニュース一覧グリッド */
.wp-news-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* グリッドビュー */
.wp-news-grid.grid-view {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .wp-news-grid.grid-view {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .wp-news-grid.grid-view {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* リストビュー */
.wp-news-grid.list-view {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ニュースカード（グリッドビュー） */
.wp-news-card {
  background-color: white;
  border-radius: 0.5rem;
  height: 100%;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.wp-news-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.wp-news-card-image {
  position: relative;
  width: 100%;
  height: 12rem;
  overflow: hidden;
}

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

.wp-news-card:hover .wp-news-card-image img {
  transform: scale(1.05);
}

.wp-news-card-content {
  padding: 1.5rem;
}

.wp-news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

@media (max-width: 767px) {
  .wp-news-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.wp-news-card-date {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
}

.wp-news-card-category {
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.wp-news-card-category:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* カテゴリー色 */
.wp-category-news {
  background-color: #dbeafe;
  color: #1e40af;
}

.wp-category-important {
  background-color: #fee2e2;
  color: #991b1b;
}

.wp-category-event {
  background-color: #dcfce7;
  color: #166534;
}

.wp-category-announcement {
  background-color: #e9d5ff;
  color: #7c2d12;
}

.wp-category-update {
  background-color: #fef3c7;
  color: #92400e;
}

.wp-category-press {
  background-color: #fce7f3;
  color: #be185d;
}

.wp-category-general {
  background-color: #f3f4f6;
  color: #374151;
}

.wp-news-card-title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: #111827;
}

.wp-news-card-title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wp-news-card-title a:hover {
  color: #3b82f6;
}

.wp-news-card-excerpt {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wp-news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wp-news-card-author {
  font-size: 0.75rem;
  color: #9ca3af;
}

.wp-news-card-read-more {
  font-size: 0.875rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.wp-news-card-read-more:hover {
  color: #2563eb;
  text-decoration: none;
}

/* リストビュー用スタイル */
.wp-news-grid.list-view .wp-news-card {
  display: flex;
  align-items: stretch;
}

.wp-news-grid.list-view .wp-news-card-image {
  width: 200px;
  height: auto;
  min-height: 150px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .wp-news-grid.list-view .wp-news-card {
    flex-direction: column;
  }

  .wp-news-grid.list-view .wp-news-card-image {
    width: 100%;
    height: 200px;
  }
}

.wp-news-grid.list-view .wp-news-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wp-news-grid.list-view .wp-news-card-title {
  font-size: 1.25rem;
}

.wp-news-grid.list-view .wp-news-card-excerpt {
  -webkit-line-clamp: 2;
}

/* 注目記事（先頭記事を大きく表示） */
.wp-featured-post {
  grid-column: 1 / -1;
  margin-bottom: 2rem;
}

.wp-featured-post .wp-news-card {
  display: flex;
  align-items: stretch;
  min-height: 300px;
}

.wp-featured-post .wp-news-card-image {
  width: 50%;
  height: auto;
}

.wp-featured-post .wp-news-card-content {
  width: 50%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wp-featured-post .wp-news-card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.wp-featured-post .wp-news-card-excerpt {
  font-size: 1rem;
  -webkit-line-clamp: 4;
}

@media (max-width: 767px) {
  .wp-featured-post .wp-news-card {
    flex-direction: column;
    min-height: auto;
  }

  .wp-featured-post .wp-news-card-image,
  .wp-featured-post .wp-news-card-content {
    width: 100%;
  }

  .wp-featured-post .wp-news-card-image {
    height: 200px;
  }
}

/* ページネーション */
.wp-news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.wp-pagination-link {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  background-color: white;
  color: #374151;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.wp-pagination-link:hover {
  background-color: #f3f4f6;
  text-decoration: none;
}

.wp-pagination-link.current {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.wp-pagination-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wp-pagination-link.disabled:hover {
  background-color: white;
}

/* 記事が見つからない場合 */
.wp-no-posts {
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
}

.wp-no-posts-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.wp-no-posts-message {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.wp-no-posts-suggestion {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* ローディング状態 */
.wp-news-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
}

.wp-loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

/* アーカイブページ用 */
.wp-archive-header {
  margin-bottom: 2rem;
  padding: 2rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  text-align: center;
}

.wp-archive-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #111827;
}

.wp-archive-description {
  color: #6b7280;
  font-size: 1rem;
}

/* レスポンシブ調整 */
@media (max-width: 767px) {
  .wp-news-page-title {
    font-size: 2rem;
  }

  .wp-filters-row {
    gap: 1rem;
  }

  .wp-search-form {
    max-width: none;
  }

  .wp-news-results-info {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* プリント用 */
@media print {

  .wp-news-filters,
  .wp-news-pagination,
  .wp-view-toggle {
    display: none;
  }

  .wp-news-list {
    padding: 1rem;
  }

  .wp-news-card {
    box-shadow: none;
    border: 1px solid #e5e7eb;
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {

  .wp-news-card,
  .wp-news-card-image img,
  .wp-loading-spinner {
    transition: none;
    animation: none;
  }

  .wp-news-card:hover {
    transform: none;
  }

  .wp-news-card:hover .wp-news-card-image img {
    transform: none;
  }
}

/* フォーカス状態 */
.wp-search-input:focus,
.wp-sort-select:focus,
.wp-category-button:focus,
.wp-news-card-title a:focus,
.wp-pagination-link:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 10px;
}

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







/* WordPress固定ページ用CSS */

/* ベーススタイル */
.wp-page {
  min-height: 100vh;
  background-color: #ffffff;
  padding: 2rem 1rem;
}

@media (min-width: 1024px) {
  .wp-page {
    padding: 4rem 2rem;
  }
}

/* メインコンテナ */
.wp-page-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* パンくずリスト */
.wp-breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.wp-breadcrumb a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wp-breadcrumb a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.wp-breadcrumb-separator {
  margin: 0 0.5rem;
  color: #9ca3af;
}

/* ページヘッダー */
.wp-page-header {
  margin-bottom: 3rem;
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.wp-page-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #111827;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .wp-page-title {
    font-size: 3rem;
  }
}

.wp-page-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 1rem;
  font-weight: 300;
}

.wp-page-description {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ページメタ情報 */
.wp-page-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

@media (max-width: 767px) {
  .wp-page-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.wp-page-date::before {
  content: "📅 ";
  margin-right: 0.25rem;
}

.wp-page-author::before {
  content: "👤 ";
  margin-right: 0.25rem;
}

/* レイアウト */
.wp-page-layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

/* サイドバー付きレイアウト */
.wp-page-layout.has-sidebar {
  grid-template-columns: 1fr 300px;
}

@media (max-width: 1023px) {
  .wp-page-layout.has-sidebar {
    grid-template-columns: 1fr;
  }
}

/* メインコンテンツ */
.wp-page-content {
  color: #374151;
  line-height: 1.7;
  font-size: 1rem;
}

/* WordPress エディター出力の標準的なスタイリング */
.wp-page-content>*+* {
  margin-top: 1.5rem;
}

/* 段落 */
.wp-page-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.wp-page-content p.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: #6b7280;
  margin-bottom: 2rem;
}

/* 見出し */
.wp-page-content h1,
.wp-page-content h2,
.wp-page-content h3,
.wp-page-content h4,
.wp-page-content h5,
.wp-page-content h6 {
  font-weight: bold;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.wp-page-content h1 {
  font-size: 2.25rem;
  border-bottom: 3px solid #3b82f6;
  padding-bottom: 0.5rem;
}

.wp-page-content h2 {
  font-size: 1.875rem;
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 0.5rem;
}

.wp-page-content h3 {
  font-size: 1.5rem;
  position: relative;
  padding-left: 1rem;
}

.wp-page-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 4px;
  height: 1.5rem;
  background-color: #3b82f6;
  border-radius: 2px;
}

.wp-page-content h4 {
  font-size: 1.25rem;
  color: #3b82f6;
}

.wp-page-content h5 {
  font-size: 1.125rem;
}

.wp-page-content h6 {
  font-size: 1rem;
  color: #6b7280;
}

/* リスト */
.wp-page-content ul,
.wp-page-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.wp-page-content ul {
  list-style-type: none;
}

.wp-page-content ul li {
  position: relative;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.wp-page-content ul li::before {
  content: "•";
  color: #3b82f6;
  font-weight: bold;
  position: absolute;
  left: -1rem;
}

.wp-page-content ol {
  list-style-type: decimal;
  list-style-position: outside;
}

.wp-page-content ol li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.wp-page-content ol li::marker {
  color: #3b82f6;
  font-weight: bold;
}

/* ネストしたリスト */
.wp-page-content ul ul,
.wp-page-content ol ol,
.wp-page-content ul ol,
.wp-page-content ol ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

/* 引用 */
.wp-page-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background-color: #f9fafb;
  border-left: 4px solid #3b82f6;
  border-radius: 0.375rem;
  font-style: italic;
  color: #6b7280;
  position: relative;
}

.wp-page-content blockquote::before {
  content: "" ";
 font-size: 4rem;
  color: #3b82f6;
  position: absolute;
  top: -0.5rem;
  left: 0.5rem;
  opacity: 0.3;
}

.wp-page-content blockquote p {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.wp-page-content blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #9ca3af;
  font-style: normal;
  text-align: right;
}

.wp-page-content blockquote cite::before {
  content: "— ";
}

/* リンク */
.wp-page-content a {
  color: #3b82f6;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.wp-page-content a:hover {
  color: #2563eb;
}

/* 強調テキスト */
.wp-page-content strong {
  font-weight: 600;
  color: #111827;
}

.wp-page-content em {
  font-style: italic;
  color: #374151;
}

.wp-page-content mark {
  background-color: #fef3c7;
  color: #92400e;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

/* 画像 */
.wp-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.wp-page-content figure {
  margin: 2rem 0;
  text-align: center;
}

.wp-page-content figure img {
  margin: 0;
}

.wp-page-content figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
  text-align: center;
}

/* 画像の配置 */
.wp-page-content .alignleft {
  float: left;
  margin: 0 2rem 1rem 0;
  max-width: 50%;
}

.wp-page-content .alignright {
  float: right;
  margin: 0 0 1rem 2rem;
  max-width: 50%;
}

.wp-page-content .aligncenter {
  display: block;
  margin: 2rem auto;
  text-align: center;
}

@media (max-width: 767px) {

  .wp-page-content .alignleft,
  .wp-page-content .alignright {
    float: none;
    margin: 1rem 0;
    max-width: 100%;
  }
}

/* テーブル */
.wp-page-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.wp-page-content th,
.wp-page-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.wp-page-content th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

.wp-page-content tbody tr:hover {
  background-color: #f9fafb;
}

.wp-page-content tbody tr:last-child td {
  border-bottom: none;
}

/* レスポンシブテーブル */
@media (max-width: 767px) {
  .wp-page-content table {
    font-size: 0.875rem;
  }

  .wp-page-content th,
  .wp-page-content td {
    padding: 0.5rem;
  }
}

/* コード */
.wp-page-content code {
  background-color: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

.wp-page-content pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.wp-page-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

/* 区切り線 */
.wp-page-content hr {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 3rem 0;
  border-radius: 1px;
}

/* WordPress Gutenberg ブロック対応 */
.wp-block-image {
  margin: 2rem 0;
  text-align: center;
}

.wp-block-quote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background-color: #f9fafb;
  border-left: 4px solid #3b82f6;
  font-style: italic;
}

.wp-block-separator {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 3rem auto;
  width: 100px;
}

.wp-block-separator.is-style-wide {
  width: 100%;
}

.wp-block-separator.is-style-dots {
  border: none;
  text-align: center;
  line-height: 1;
  height: auto;
}

.wp-block-separator.is-style-dots::before {
  content: "···";
  color: #6b7280;
  font-size: 1.5rem;
  letter-spacing: 2rem;
}

/* カラムブロック */
.wp-block-columns {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

.wp-block-column {
  flex: 1;
}

@media (max-width: 767px) {
  .wp-block-columns {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ボタンブロック */
.wp-block-button {
  margin: 1.5rem 0;
}

.wp-block-button .wp-block-button__link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.wp-block-button .wp-block-button__link:hover {
  background-color: #2563eb;
  color: white;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent;
  color: #3b82f6;
  border: 2px solid #3b82f6;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: #3b82f6;
  color: white;
}

/* カバーブロック */
.wp-block-cover {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.wp-block-cover__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
}

/* サイドバー */
.wp-page-sidebar {
  background-color: #f9fafb;
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.wp-sidebar-widget {
  margin-bottom: 2rem;
}

.wp-sidebar-widget:last-child {
  margin-bottom: 0;
}

.wp-sidebar-widget-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #111827;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3b82f6;
}

.wp-sidebar-widget-content {
  color: #6b7280;
  line-height: 1.6;
}

.wp-sidebar-widget-content ul {
  list-style: none;
  padding: 0;
}

.wp-sidebar-widget-content li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.wp-sidebar-widget-content li:last-child {
  border-bottom: none;
}

.wp-sidebar-widget-content a {
  color: #374151;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wp-sidebar-widget-content a:hover {
  color: #3b82f6;
}

/* 子ページナビゲーション */
.wp-child-pages {
  margin: 3rem 0;
  padding: 2rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.wp-child-pages-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #111827;
}

.wp-child-pages-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.wp-child-page-item {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.wp-child-page-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.wp-child-page-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.wp-child-page-title a {
  color: #111827;
  text-decoration: none;
}

.wp-child-page-title a:hover {
  color: #3b82f6;
}

.wp-child-page-excerpt {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

/* CTA セクション */
.wp-page-cta {
  margin: 4rem 0;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  text-align: center;
  border-radius: 0.5rem;
}

.wp-page-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.wp-page-cta p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.wp-page-cta-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: white;
  color: #3b82f6;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.wp-page-cta-button:hover {
  background-color: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* フォーム */
.wp-page-content form {
  margin: 2rem 0;
}

.wp-page-content .form-group {
  margin-bottom: 1.5rem;
}

.wp-page-content label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.wp-page-content input[type="text"],
.wp-page-content input[type="email"],
.wp-page-content input[type="tel"],
.wp-page-content input[type="url"],
.wp-page-content textarea,
.wp-page-content select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.wp-page-content input:focus,
.wp-page-content textarea:focus,
.wp-page-content select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wp-page-content textarea {
  min-height: 120px;
  resize: vertical;
}

.wp-page-content button,
.wp-page-content input[type="submit"] {
  background-color: #3b82f6;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.wp-page-content button:hover,
.wp-page-content input[type="submit"]:hover {
  background-color: #2563eb;
}

/* アコーディオン */
.wp-accordion {
  margin: 2rem 0;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.wp-accordion-item {
  border-bottom: 1px solid #e5e7eb;
}

.wp-accordion-item:last-child {
  border-bottom: none;
}

.wp-accordion-header {
  background-color: #f9fafb;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.wp-accordion-header:hover {
  background-color: #f3f4f6;
}

.wp-accordion-content {
  padding: 1.5rem;
  display: none;
}

.wp-accordion-content.active {
  display: block;
}

/* レスポンシブ調整 */
@media (max-width: 767px) {
  .wp-page-title {
    font-size: 2rem;
  }

  .wp-page-header {
    text-align: left;
  }

  .wp-page-content h1 {
    font-size: 1.875rem;
  }

  .wp-page-content h2 {
    font-size: 1.5rem;
  }

  .wp-page-content h3 {
    font-size: 1.25rem;
  }

  .wp-page-cta {
    padding: 2rem 1rem;
  }

  .wp-child-pages-list {
    grid-template-columns: 1fr;
  }
}

/* プリント用 */
@media print {

  .wp-page-sidebar,
  .wp-page-cta,
  .wp-breadcrumb {
    display: none;
  }

  .wp-page {
    padding: 1rem;
  }

  .wp-page-content a {
    color: #000000;
  }

  .wp-page-layout.has-sidebar {
    grid-template-columns: 1fr;
  }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {

  .wp-child-page-item:hover,
  .wp-page-cta-button:hover {
    transform: none;
  }
}

/* フォーカス状態 */
.wp-page-content a:focus,
.wp-page-content button:focus,
.wp-page-content input:focus,
.wp-page-content textarea:focus,
.wp-page-content select:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}