/* WP 版だけの追加スタイル（Astro 版 global.css に無い要素: サーバー側の絞り込みタブ・ページ送り・記事本文・CF7） */

/* 一覧の絞り込み（Astro はボタン、WP はカテゴリー一覧へのリンク） */
.tabs a { display: inline-block; white-space: nowrap; font-size: 14px; line-height: 1.9; padding: 6px 28px; border-radius: 999px; border: 1px solid var(--main); background: #fff; color: var(--main); }
.tabs a[aria-current='page'] { background: var(--main); color: #fff; }
.news-empty { text-align: center; font-size: 15px; }

/* ページ送り（Astro の .pager button と同じ見た目） */
.pager a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 13px; transition: background .2s, color .2s, border-color .2s; }
.pager a:hover { border-color: var(--main); color: var(--main); }
.pager a:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; }
.pager .is-disabled { opacity: .35; }

/* 記事本文（ブロックエディタで書いた内容） */
.article .eye img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { font-size: 13px; margin: 0; }
.article-body img { height: auto; border-radius: 6px; }
.article-body figure { margin: 0 0 1.3em; }
.article-body figcaption { font-size: 12px; color: #666; margin-top: 6px; }
.article-body h2 { font-size: 21px; color: var(--main); line-height: 1.6; margin: 2em 0 .8em; }
.article-body h3 { font-size: 18px; color: var(--main); line-height: 1.6; margin: 1.8em 0 .6em; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 1.3em; }
.article-body ul { list-style: disc; } .article-body ol { list-style: decimal; }
.article-body a { color: var(--main); text-decoration: underline; }
.article-body .wp-block-gallery { margin: 28px 0; }

/* お問い合わせ（Contact Form 7）。フォームテンプレートは docs/cf7-form.md */
.form .wpcf7-form-control-wrap { display: block; }
.form .agree .wpcf7-list-item { margin: 0; }
.form .agree label { display: flex; gap: 8px; align-items: center; justify-content: center; }
.form .agree a { text-decoration: underline; }
.form .submit button { cursor: pointer; opacity: 1; }
.form .submit button:disabled { cursor: not-allowed; opacity: .55; }
.form .submit .ic::before { content: ''; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23005a70' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h8M6.5 2.5 10 6 6.5 9.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.form .submit .ic:has(svg)::before { content: none; }
.form .wpcf7-spinner { display: block; margin: 12px auto 0; }
.form .wpcf7-not-valid-tip { color: #c9552b; font-size: 12px; margin-top: 4px; }
.form .wpcf7-response-output { margin: 20px 0 0 !important; padding: 12px 16px !important; font-size: 14px; border-radius: 4px; text-align: center; }
.form .wpcf7-turnstile, .form .wpcf7-recaptcha { display: flex; justify-content: center; margin: 0 0 20px; }
@media (max-width: 900px) {
  .tabs a { padding: 6px 16px; }
}

/* 記事内の改ページ（wp_link_pages）のページ送り */
.page-links { margin-top: 40px; display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 15px; }
.page-links a, .page-links > .post-page-numbers { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--main); border-radius: 18px; color: var(--main); text-decoration: none; }
.page-links .current { background: var(--main); color: #fff; }
