/*
Theme Name: 経営企画推進センター
Description: 株式会社 経営企画推進センター 公式コーポレートサイトのテーマ。デザイン本体は assets/css/main.css、このファイルは WordPress 固有の調整のみ。
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: keieikikaku
*/

/* ---------- 管理バー表示時のヘッダー位置 ---------- */
.admin-bar .site-header {
  top: 32px;
}

.admin-bar .drawer {
  inset-block-start: 116px;
}

@media (max-width: 900px) {
  .admin-bar .drawer {
    inset-block-start: 104px;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
  .admin-bar .drawer {
    inset-block-start: 118px;
  }
}

/* 600px以下では管理バーがスクロールで流れるため、ヘッダーは最上部に吸着させる */
@media (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }
}

/* ---------- WordPress 標準クラス ---------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.alignleft {
  float: left;
  margin: 6px 24px 16px 0;
}

.alignright {
  float: right;
  margin: 6px 0 16px 24px;
}

.aligncenter {
  margin-inline: auto;
}

/* ---------- 記事本文：ブロックエディタの出力 ---------- */
.article-body p a,
.article-body li a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body p a:hover,
.article-body li a:hover {
  color: var(--warm);
}

.article-body ol {
  margin-bottom: 26px;
  padding-left: 1.6em;
  list-style: decimal;
}

.article-body ol li {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 8px;
  color: #2c332e;
}

.article-body figure {
  margin-block: 36px;
}

.article-body figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--gray);
}

.article-body blockquote {
  margin: 0 0 26px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.article-body th,
.article-body td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

/* ---------- 記事スライド：アイキャッチ未設定時 ---------- */
.slide-figure--empty {
  aspect-ratio: 16 / 10;
}

/* ---------- 記事一覧：ページ送り ---------- */
.pagination {
  margin-top: 48px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gray);
  transition: all 0.3s var(--ease);
}

.pagination a.page-numbers:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.pagination .page-numbers.current {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}

.pagination .page-numbers.dots {
  border-color: transparent;
}

/* ---------- ツール詳細 ---------- */
.tool-body {
  padding-bottom: 96px;
}

/* 本文が未入力のときは、戻るリンクの上の罫線と余白を消す */
.tool-body > .article-foot:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 768px) {
  .tool-body {
    padding-bottom: 64px;
  }
}

/* main.css は430px以下で .article-body の左右余白を0にするため、ここで戻す */
@media (max-width: 430px) {
  .tool-body {
    padding-inline: var(--gutter);
  }
}

/* ---------- お問い合わせ：スパム対策の隠しフィールド ---------- */
.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
