/* タイトル上の余白 */
.entry-header h1 {
  margin-top: 0.5em;
}

/* 投稿内リンクを青色に */
.entry-content a {
  color: #0000EE;
  text-decoration: underline;
  transition: all 0.3s;
}

.entry-content a:hover {
  color: #0000EE;
  opacity: 0.7;
  box-shadow: none;
  border: none;
}


/* 2つ目以降の投稿タイトルの上に線 */
.site-main>h2+p+h2,
.site-main h2~h2 {
  border-top: 1px solid #ddd;
  padding-top: 2em;
  margin-top: 2em;
}

/* 「続きを読む」をボタン風に */
.more-link {
  display: inline-block;
  padding: 0.4em 1.2em;
  background: #003399;
  color: #fff !important;
  border-radius: 3px;
  font-size: 0.85em;
  box-shadow: none !important;
}

.more-link:hover {
  background: #002277;
  color: #fff !important;
}

/* 一覧タイトルのリンク色をサイトカラーに合わせる */
.entry-title a {
  color: #003399 !important;
}

.entry-title a:hover {
  color: #001166 !important;
  box-shadow: none;
}

/* ページネーション */
.pagination {
    margin-top: 2em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4em;
}

.pagination .page-numbers {
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #003399;
    text-decoration: none;
    box-shadow: none !important;
    font-size: 1em;
    margin: 0;
    min-height: 40px;
    min-width: 40px;
    transition: all 0.3s;
    display: grid;
    align-items: center;
}

.pagination .page-numbers.current {
    background: #003399;
    color: #fff;
    border-color: #003399;
    display: grid;
}

/* 前へ・次へ */
.pagination .prev.page-numbers,
.pagination .next.page-numbers {
    background: #fff;
    color: #003399 !important;
    border: 1px solid #ddd;
    font-size: 1em !important;
    min-height: 40px;
    display: grid;
    align-items: center;
}

.pagination .prev.page-numbers:hover,
.pagination .next.page-numbers:hover {
    background: #003399 !important;
    color: #fff !important;
    border-color: #003399 !important;
}

/* 数字ボタンのホバー */
.pagination .page-numbers:hover {
    background: #002277;
    color: #fff !important;
    border-color: #002277;
}

/* 3点リーダーのhover無効 */
.pagination .page-numbers.dots:hover {
    background: none;
    color: #003399 !important;
    border-color: #ddd;
    cursor: default;
}

@media screen and (max-width: 600px) {
    .pagination .page-numbers,
    .pagination .prev.page-numbers,
    .pagination .next.page-numbers {
        min-width: 32px;
        min-height: 36px;
        /* font-size: 0.9em !important; */
        padding: 0 0.3em;
    }
}