/* =========================================
   お知らせ（ブログ）・WordPress 用の追加スタイル
   ========================================= */

/* ログイン中に出る管理バーとヘッダーが重ならないように */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ---------- お知らせ一覧（トップ・一覧共通） ---------- */
.news { background: var(--ink-2); }
.news .gallery-head { align-items: end; }
.news-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px);
}
.news-item a { display: block; text-decoration: none; height: 100%; }
.news-thumb {
  margin: 0 0 1.2rem; aspect-ratio: 8 / 5; overflow: hidden;
  border: 1px solid var(--line); background: var(--ink);
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease, opacity .4s; }
.news-item a:hover .news-thumb img { transform: scale(1.05); opacity: .9; }
.news-thumb-blank {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-size: 3rem; font-weight: 700; color: var(--jade); opacity: .35;
  background: radial-gradient(ellipse at center, rgba(127,165,139,.12), transparent 70%);
}
.news-meta {
  display: flex; align-items: center; gap: 1em; flex-wrap: wrap;
  margin: 0 0 .4rem; font-family: var(--latin); font-size: .95rem; color: var(--gold); letter-spacing: .12em;
}
.news-cat {
  font-family: var(--serif); font-size: .72rem; letter-spacing: .12em; text-decoration: none;
  color: var(--jade); border: 1px solid rgba(127,165,139,.45); padding: 0 .8em; line-height: 1.9;
}
.news-title { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 500; line-height: 1.7; letter-spacing: .08em; transition: color .3s; }
.news-item a:hover .news-title { color: var(--gold); }
.news-excerpt { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.9; }
.news-empty { color: var(--muted); }

.news-archive, .news-single { padding-top: clamp(120px, 16vw, 180px); }

.news-cats { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: -1rem 0 2.5rem; padding: 0; }
.news-cats a {
  display: inline-block; text-decoration: none; font-size: .82rem; color: var(--muted);
  border: 1px solid var(--line); padding: .2em 1.1em; transition: color .3s, border-color .3s;
}
.news-cats a:hover, .news-cats a[aria-current] { color: var(--gold); border-color: var(--gold); }

.news-pagination { margin-top: 4rem; }
.news-pagination ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.news-pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .8em;
  border: 1px solid var(--line); text-decoration: none; font-family: var(--latin); color: var(--muted);
}
.news-pagination a.page-numbers:hover, .news-pagination .current { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.news-pagination .dots { border: 0; }

/* ---------- お知らせ記事 ---------- */
.entry-header { margin-bottom: 2.5rem; }
.entry-title { margin-bottom: 0; font-size: clamp(1.4rem, 3.2vw, 2rem); }
.entry-eyecatch { margin: 0 0 3rem; border: 1px solid var(--line); }
.entry-eyecatch img { width: 100%; height: auto; }

.entry-content { line-height: 2.1; }
.entry-content > * { margin-top: 0; margin-bottom: 1.6em; }
.entry-content p { opacity: .9; }
.entry-content h2 {
  font-size: 1.3rem; font-weight: 500; letter-spacing: .1em; color: var(--gold);
  margin: 3.5rem 0 1.4rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line);
}
.entry-content h3 {
  font-size: 1.1rem; font-weight: 500; letter-spacing: .08em;
  margin: 2.8rem 0 1rem; padding-left: .9em; border-left: 2px solid var(--vermillion);
}
.entry-content h4 { font-size: 1rem; color: var(--jade); margin: 2rem 0 .8rem; }
.entry-content a { color: var(--jade); }
.entry-content a:hover { color: var(--gold); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { height: auto; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { color: var(--muted); font-size: .8rem; text-align: center; margin-top: .6rem; }
.entry-content blockquote {
  margin-left: 0; margin-right: 0; padding: 1.4rem 1.6rem;
  border-left: 2px solid var(--gold); background: rgba(201,169,106,.06);
}
.entry-content blockquote p { margin: 0; }
.entry-content blockquote cite { display: block; margin-top: .8rem; color: var(--muted); font-size: .85rem; font-style: normal; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: .8rem .6rem; text-align: left; }
.entry-content th { color: var(--gold); font-weight: 500; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.entry-content .wp-block-button__link { background: var(--gold); color: var(--ink); border-radius: 0; text-decoration: none; padding: .8em 2.2em; }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.entry-content .alignwide { width: min(1040px, calc(100vw - var(--gutter) * 2)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .wp-block-embed iframe { max-width: 100%; }
.entry-content .policy-date { margin-top: 3rem; }

.entry-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center;
  margin-top: 5rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: .85rem;
}
.entry-nav a { color: var(--muted); text-decoration: none; transition: color .3s; }
.entry-nav a:hover { color: var(--gold); }
.entry-nav-next { text-align: right; }
.entry-nav-list { border: 1px solid var(--line); padding: .3em 1.4em; }

.news-single + .recruit-banner { padding-top: 0; }

/* ---------- スマホ ---------- */
@media (max-width: 820px) {
  .site-nav { gap: 1.4rem; }
  .news-list { grid-template-columns: 1fr; gap: 2.4rem; }
  .news .gallery-head .text-link { margin-top: 1rem; }
  .entry-nav { grid-template-columns: 1fr 1fr; }
  .entry-nav-list { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
@media (min-width: 821px) and (max-width: 1080px) {
  .news-list { grid-template-columns: 1fr 1fr; }
}
