/* WordPress 化で追加した表示（静的版の style.css・subpage.css の後に読み込む） */

/* 管理画面にログイン中は上部の管理バーの下にヘッダーを置く */
body.admin-bar .site-header{top:32px}
@media (max-width:782px){body.admin-bar .site-header{top:46px}}

/* お知らせ一覧：カテゴリの切り替えをリンクにした（見た目は TOP のボタンと同じ） */
.news__filter a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 24px;font-size:13px;font-weight:700;letter-spacing:.1em;color:var(--gray);background:#fff;border:1px solid var(--line);border-radius:0 12px 0 0;transition:color .3s,background-color .3s,border-color .3s}
.news__filter a.is-active{background:var(--green);border-color:var(--green);color:#fff}
.news__filter a:not(.is-active):hover{color:var(--green);border-color:var(--green)}
@media (max-width:768px){
  .news-page .news__filter{width:100%}
  .news__filter a{width:100%;padding:10px 4px;font-size:12px;letter-spacing:.04em;white-space:nowrap}
}

/* カテゴリの切り替え（お知らせ一覧・TOP）：カテゴリは管理画面の追加に合わせて増える（ALL を含めて 6 つまで）。
   PC は 1 行（入らない幅では右寄せで折り返す）、スマホは 5 つ以上で 3 列 2 段 */
.news__filter{flex-wrap:wrap;justify-content:flex-end}
/* TOP（タブレット）：見出しの横で 1 行に入らないため、5 つ以上は 3 列 2 段（1 つだけ 2 段目に残さない） */
@media (min-width:769px) and (max-width:1180px){
  .news__head .news__filter--n5,.news__head .news__filter--n6,.news__head .news__filter--n7{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .news__head .news__filter--n5 button,.news__head .news__filter--n6 button,.news__head .news__filter--n7 button{width:100%;padding-inline:12px}
}
@media (max-width:768px){
  .news__filter{justify-content:flex-start}
  .news__filter--n5,.news__filter--n6,.news__filter--n7{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .news__filter button,.news__filter a{white-space:nowrap}
}

/* TOP の News：カード全体を記事へのリンクに */
.news-card{position:relative}
.news-card__title a::after{content:"";position:absolute;inset:0}
.news-card__title a{transition:color .3s}
.news-card:hover .news-card__title a{color:var(--green)}
.fas-top-news-empty{margin:24px 0 0;padding:36px 24px;border:1px dashed var(--line);text-align:center;font-size:14px;color:var(--gray);background:#fff}

/* 記事：カテゴリのラベルから、そのカテゴリの一覧へ */
a.news__cat{transition:background-color .3s,color .3s}
a.news__cat:hover{background:var(--green);color:#fff}
.fas-eyecatch{overflow:hidden}
.fas-eyecatch img{width:100%;height:100%;object-fit:cover}
.article__body img{max-width:100%;height:auto}
.article__body .wp-block-image{margin:32px 0}

/* ページ送り：前へ・省略 */
.pager__prev span{transform:rotate(-135deg)}
.pager__gap{display:grid;place-items:center;width:24px;height:44px;color:var(--gray)}

/* 倉庫・土地：説明文（管理画面で入力したときだけ表示） */
.wh-prop__desc{margin-top:10px;font-size:14px;line-height:1.9;color:var(--gray)}

/* 404 */
.fas-notfound{display:flex;flex-direction:column;gap:24px;align-items:flex-start;line-height:2}

/* 倉庫・土地：写真を枠（subpage.css の比率。現在は全幅で 16:9）いっぱいに切り抜く。写真の縦横比が違っても枠の高さをそろえる */
.wh-prop__photo:not(.act-ph){position:relative;overflow:hidden}
.wh-prop__photo:not(.act-ph) img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}

/* お問い合わせ：自動送信の判定に使う入力欄（人には見せない） */
.cform__hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
/* 送信できなかったときのお知らせ（フォームの下） */
.form-alert--send{margin:36px 0 0}
/* 送信中のボタン */
.cform__btn[aria-busy="true"]{cursor:progress;opacity:.7}
