/* ========================================
   WordPress専用CSS
======================================== */

body {
  font-size: revert;
}

/* タイトル */
.wp-page-title {
  font-family: "游明朝", "Yu Mincho", "游明朝体", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "MS P明朝", "MS 明朝", serif;
  text-align: center;
  margin: 0 0 50px;
}

/* 本文エリア */
.wp-content-wrap{
  width:min(1100px, calc(100% - 40px));
  margin:auto;
  padding-top:255px;
}

/* パンくず */
.wp-breadcrumb {
  padding-top: 40px;
  padding-bottom: 60px;
  font-size: .8rem;
}

.wp-breadcrumb a {
  text-decoration: none;
}
.wp-breadcrumb a:hover {
  text-decoration: none;
}

/* 画像 */
.wp-article-body img{
  max-width:100%;
  height:auto;
}

/* YouTube */
.wp-article-body iframe{
  max-width:100%;
}

/* 表 */
.wp-article-body table{
  width:100%;
}

[type=text] {
  width: 100%;
}

/* ===========================
   コラム一覧
=========================== */

.wp-post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.wp-post-card {
  background: #fff;
}

.wp-post-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.wp-post-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f5f5;
}
/*
.wp-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: bottom;
  transition: transform 0.3s ease;
}

.wp-post-card a:hover .wp-post-thumb img {
  transform: scale(1.05);
}
*/
.wp-post-thumb {
  aspect-ratio: 440 / 320;
  overflow: hidden;
  background: #f5f5f5;
}

.wp-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.wp-post-card a:hover .wp-post-thumb img {
  opacity: 0.8;
}

.wp-post-body {
  padding: 16px 4px 0;
}

.wp-post-body h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 600;
}

.wp-post-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}

@media screen and (max-width: 768px) {
  .wp-post-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ===========================
   カテゴリ一覧
=========================== */

.wp-category-header{
    margin-bottom:40px;
}

.wp-category-description{
    max-width:900px;
    margin:20px auto 0;
    color:#666;
    font-size:15px;
    line-height:1.9;
    text-align:center;
}

.wp-no-post{
    text-align:center;
    padding:80px 0;
    color:#666;
    font-size:16px;
}

/* ===========================
   お知らせ一覧
=========================== */

.wp-notice-list {
  max-width: 900px;
  margin: 0 auto 60px;
  border-top: 1px solid #e5e0d8;
}

.wp-notice-item {
  border-bottom: 1px solid #e5e0d8;
}

.wp-notice-link {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px 8px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.wp-notice-link:hover {
  background-color: #faf7f2;
}

.wp-notice-date {
  color: #8a7a65;
  font-size: 14px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.wp-notice-title {
  margin: 0;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

.wp-notice-link:hover .wp-notice-title {
  color: #7a5a32;
}

.wp-no-post {
  text-align: center;
  padding: 80px 0;
  color: #666;
  font-size: 16px;
}

@media screen and (max-width: 768px) {
  .wp-notice-link {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 4px;
  }

  .wp-notice-date {
    font-size: 13px;
  }

  .wp-notice-title {
    font-size: 15px;
  }
}

/* ===========================
   ページネーション
=========================== */

.navigation.pagination {
  margin: 60px 0 90px;
  text-align: center;
}

/* ページ番号の横並び */
.navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ページ番号・前へ・次へ */
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* 現在のページ */
.navigation.pagination .page-numbers.current {
  border-color: #222;
  background: #222;
  color: #fff;
}

/* ホバー */
.navigation.pagination a.page-numbers:hover {
  border-color: #222;
  background: #222;
  color: #fff;
  transform: translateY(-2px);
}

/* ドット部分 */
.navigation.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  min-width: auto;
  padding: 0 4px;
}

/* スマホ */
@media screen and (max-width: 768px) {
  .navigation.pagination {
    margin: 45px 0 70px;
  }

  .navigation.pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }
}