/* =========================================================
   wp.css — WordPress 化に伴う追加スタイル
   （デザインの基本は styles.css。ここには WP 固有の出力・新規ページ分のみ）
   ========================================================= */

/* ---------- 管理バー表示時：追従ヘッダーが管理バーに隠れないように ---------- */
.admin-bar .header{ top:32px; }
@media screen and (max-width:782px){ .admin-bar .header{ top:46px; } }
@media screen and (max-width:600px){ .admin-bar .header{ top:0; } }   /* 600px以下は管理バーが追従しない */

/* ---------- 共通 ---------- */
.maxw.center{ margin-left:auto; margin-right:auto; }
.maxw.center .lead{ margin-left:auto; margin-right:auto; }
.actions-row{ display:flex; gap:16px; flex-wrap:wrap; }
.pagehead-sub{ display:block; font-size:16px; font-weight:500; color:var(--text-secondary); margin-top:8px; }
.screen-reader-text{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }

/* ---------- NEWS 一覧 ---------- */
.news-filter{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:36px; }
.news-filter .pill{ text-decoration:none; color:var(--text-secondary); }
.news-filter .pill:hover{ color:var(--key); border-color:var(--key); }
.news-filter .pill.is-active{ color:#fff; }
.news-grid{ row-gap:44px; }
.thumb.pic.news-thumb{ aspect-ratio:auto; height:140px; }   /* プレースホルダー（.ph.h140）と高さを揃える */

/* ページ送り（the_posts_pagination） */
.news-pager{ margin-top:56px; }
.news-pager .nav-links{ display:flex; justify-content:center; gap:8px; flex-wrap:wrap; }
.news-pager .page-numbers{ display:inline-flex; align-items:center; justify-content:center; min-width:44px; height:44px; padding:0 12px;
  border:1px solid var(--border-strong); border-radius:var(--radius); color:var(--text-secondary); text-decoration:none; font-size:15px; background:#fff; }
.news-pager a.page-numbers:hover{ border-color:var(--key); color:var(--key); }
.news-pager .page-numbers.current{ background:var(--key); border-color:var(--key); color:#fff; font-weight:600; }
.news-pager .page-numbers.dots{ border:none; background:none; min-width:auto; }

/* ---------- NEWS 詳細 ---------- */
.news-article{ max-width:860px; margin:0 auto; }
.news-article-head{ padding-bottom:24px; border-bottom:1px solid var(--border); margin-bottom:32px; }
.news-article-meta{ display:flex; align-items:center; gap:14px; }
.news-article-meta .news-date{ margin-top:0; font-size:14px; }
.news-article-meta .badge{ text-decoration:none; }
.news-article-head h1{ font-size:28px; font-weight:700; color:#111; line-height:1.5; margin-top:14px; }
.news-article-thumb{ margin-bottom:32px; border-radius:var(--radius); overflow:hidden; }
.news-article-thumb img{ display:block; width:100%; height:auto; }
.news-article-nav{ display:flex; justify-content:space-between; gap:24px; margin-top:56px; padding-top:24px; border-top:1px solid var(--border); font-size:14.5px; }
.news-article-nav a{ color:var(--text-secondary); text-decoration:none; }
.news-article-nav a:hover{ color:var(--key); }
.news-article-nav .next{ text-align:right; margin-left:auto; }
@media (max-width:767px){
  .news-article-head h1{ font-size:22px; }
  .news-article-nav{ flex-direction:column; gap:12px; }
  .news-article-nav .next{ text-align:left; margin-left:0; }
}

/* ---------- 本文（NEWS本文・汎用固定ページ） ---------- */
.maxw-entry{ max-width:860px; }
.entry{ font-size:16px; line-height:1.9; color:var(--text-primary); }
.entry > * + *{ margin-top:1.4em; }
.entry h2{ font-size:22px; font-weight:700; color:#111; padding-left:14px; border-left:4px solid var(--key); margin-top:2.2em; line-height:1.5; }
.entry h3{ font-size:19px; font-weight:700; color:#111; padding-bottom:8px; border-bottom:1px solid var(--border); margin-top:2em; }
.entry h4{ font-size:17px; font-weight:700; margin-top:1.8em; }
.entry a{ color:var(--key); }
.entry ul, .entry ol{ padding-left:1.6em; }
.entry li + li{ margin-top:.4em; }
.entry img{ max-width:100%; height:auto; }
.entry figure{ margin-left:0; margin-right:0; }
.entry figcaption{ font-size:13.5px; color:var(--text-muted); margin-top:6px; }
.entry blockquote{ padding:16px 20px; background:var(--surface-1); border-left:4px solid var(--border-strong); }
.entry table{ width:100%; border-collapse:collapse; font-size:15px; }
.entry th, .entry td{ border:1px solid var(--border); padding:12px 14px; text-align:left; vertical-align:top; }
.entry th{ background:var(--surface-1); font-weight:600; }
.entry .wp-block-button__link{ background:var(--key); color:#fff; border-radius:var(--radius); text-decoration:none; }
.entry .aligncenter{ display:block; margin-left:auto; margin-right:auto; }

/* ---------- Contact Form 7 ---------- */
.contact-form .wpcf7-form-control-wrap{ display:block; }
.contact-form label.check .wpcf7-form-control-wrap,
.contact-form label.check .wpcf7-list-item{ display:inline-flex; margin:0; }
.contact-form .grid.g2 .field{ margin-top:0; margin-bottom:0; }
.contact-form .grid.g2{ margin:20px 0; }
.contact-form .wpcf7-not-valid{ border-color:#c0392b !important; background:#fff8f7; }
.contact-form .wpcf7-not-valid-tip{ display:block; color:#c0392b; font-size:13.5px; margin-top:6px; }
.contact-form .field.is-error .ctrl{ border-color:#c0392b; background:#fff8f7; }
.contact-form .field.is-error .wpcf7-not-valid-tip{ display:none; }   /* JSの簡易チェックと二重表示しない */
.contact-form button.btn{ cursor:pointer; }
.contact-form #js-cf-confirm .lead{ margin-bottom:24px; }
.contact-form .confirm-actions input.wpcf7-submit{ flex:1 1 200px; border:none; cursor:pointer; font:inherit; font-size:16px; font-weight:600; }
.contact-form .confirm-actions input.wpcf7-submit:disabled{ opacity:.5; cursor:not-allowed; }
.contact-form .confirm-actions button.btn{ width:auto; }
.contact-form .confirm-actions button.btn.ghost{ border:0.5px solid var(--border-strong); }
.contact-form .confirm-actions button.btn.ghost:hover{ border-color:var(--key); }
.contact-form .wpcf7-spinner{ align-self:center; margin:0 0 0 8px; }
.contact-form .wpcf7 form .wpcf7-response-output{ margin:24px 0 0; padding:14px 16px; border-radius:var(--radius); font-size:14.5px; }
.contact-form .wpcf7 form.invalid .wpcf7-response-output,
.contact-form .wpcf7 form.unaccepted .wpcf7-response-output{ border-color:#e0b4ac; background:#fff8f7; color:#c0392b; }
.contact-form .wpcf7 form.failed .wpcf7-response-output,
.contact-form .wpcf7 form.aborted .wpcf7-response-output,
.contact-form .wpcf7 form.spam .wpcf7-response-output{ border-color:#e0b4ac; background:#fff8f7; color:#c0392b; }
.contact-form .wpcf7 form.sent .wpcf7-response-output{ display:none; }   /* 完了ページへ遷移するため非表示 */
@media (max-width:767px){
  .contact-form .grid.g2 .field + .field{ margin-top:20px; }
}
