/* WordPress で使う追加分。デザイン案の style.css の後に読み込む。 */

/* ご支援メニュー写真：元画像の高さで画面いっぱいに伸ばさない */
.svc-card__photo {
  position: relative;
  overflow: hidden;
  width: 100%;
  flex: none;
  aspect-ratio: 16 / 10;
}
.svc-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
@media (max-width: 900px) {
  .page-index .svc-card__photo {
    aspect-ratio: auto;
    height: 100%;
    min-height: 168px;
    max-height: none;
  }
}
@media (max-width: 600px) {
  .page-index .svc-card__photo {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    max-height: 160px;
  }
  .top-service.is-hscroll .svc-card__photo {
    max-height: 140px;
  }
}

/* ログイン中の管理バー */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header:not(.site-header--overlay) { top: 0; } }

/* 組織図：下段の枠が1つなら横線は引かない */
.org-chart__units[style*="--units: 1"]::before { display: none; }

/* 本文だけのページ・お知らせ */
.page-head--simple .news-list__meta { margin: 0 0 12px; }
.page-head--simple .news-list__meta time { font-family: "Lato", sans-serif; font-size: 14px; color: var(--muted); }
.page-head--simple .tag { text-decoration: none; }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--gray); font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; }
.pagination .page-numbers.current { background: var(--accent); color: var(--white); }

.entry img { border-radius: var(--radius); }
.entry figure { margin: 2em 0; }
.entry figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th,
.entry td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry th { background: var(--gray); }
.entry .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.entry .wp-block-file__button { padding: 8px 20px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 14px; font-weight: 700; text-decoration: none; }
.entry-foot { margin-top: 64px; }

/* お問い合わせフォーム */
.form-alert { margin: 0 0 28px; padding: 16px 20px; border-radius: var(--radius); background: #fbeaea; font-weight: 700; color: #a3262a; }
.form-error { margin: 0; font-size: 14px; font-weight: 700; color: #a3262a; }
.consent + .form-error { margin: -20px 0 24px; }
[aria-invalid="true"] { border-color: #a3262a; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-confirm h2,
.form-done h2 { margin-bottom: 12px; font-size: 22px; }
.form-confirm > p,
.form-done p { font-size: 15px; color: var(--muted); }
.confirm-list { display: grid; grid-template-columns: 11em 1fr; margin: 28px 0 32px; border-top: 1px solid var(--line); font-size: 15px; }
.confirm-list dt,
.confirm-list dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.confirm-list dt { font-weight: 700; }
.confirm-list dd { overflow-wrap: anywhere; }
.confirm-list__empty { color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 600px) {
  .confirm-list { grid-template-columns: 1fr; }
  .confirm-list dt { padding-bottom: 0; border-bottom: 0; }
  .confirm-list dd { padding-top: 4px; }
  .form-actions .btn { width: 100%; }
}
