/*
 * テーマ実装で追加した分のスタイル。
 * モックアップの styles-v2.css / styles-sub.css は原本として触らず、差分だけをここに置く。
 */

/* ページ送り: WordPress の paginate_links(type=plain) 用 */
.pagination .page-numbers {
  min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--en); font-size: 16px; border-radius: 3px;
  background-color: #fff; color: var(--ink); border: 1px solid rgba(11,27,43,0.2);
  transition: transform 0.24s cubic-bezier(.2,.6,.2,1), background-color 0.24s, color 0.24s;
}
.pagination a.page-numbers:hover { background-color: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.pagination .page-numbers.dots { border: none; color: var(--muted); min-width: 24px; }
.pagination .page-numbers.prev,
.pagination .page-numbers.next { padding: 0 18px; font-family: var(--sans); font-size: 13px; }

/* 画像未設定のプレースホルダ */
.thumb-placeholder {
  display: block; width: 100%; aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #EFEBE1 0%, #E2DCCE 100%);
}

/* 入力フォームの補助 */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  background: #FDF3F1; border: 1px solid #D8A9A0; color: #7A2E22;
  padding: 16px 20px; font-size: 14px; margin-bottom: 24px;
}
.done-panel.is-shown { display: block; }

/* ログイン */
.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.login-layout .login-username,
.login-layout .login-password { margin-bottom: 18px; }
.login-layout .login-username label,
.login-layout .login-password label {
  display: block; font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 8px;
}
.login-layout input[type="text"],
.login-layout input[type="password"] {
  width: 100%; min-height: 46px; padding: 0 14px;
  border: 1px solid var(--line); background: #fff; font-size: 15px; font-family: var(--sans);
}
.login-layout .login-submit input {
  min-height: 48px; padding: 0 28px; border: none; cursor: pointer;
  background-image: linear-gradient(180deg, #C2A45D 0%, #A8863C 100%);
  color: #1A1407; font-family: var(--sans); font-size: 14px; letter-spacing: 0.1em;
}
.login-layout .login-remember { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

/* マイページ (React のマウント先) */
.mypage-root { min-height: 420px; }
.mypage-loading { color: var(--muted); font-size: 14px; padding: 40px 0; }

@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr; }
}

/* 送信後に #entry-result へ移動したとき、上端に余白を残す (管理バー表示時も隠れないように) */
#entry-result { scroll-margin-top: 64px; }

/* ── コラム本文: 記載例・小見出し・本文中の写真 ─────────── */
/* 記載例は本文と区別したいが、左だけの縦線は使わない (全周の細線 + 見出しラベル)。 */
.article-body .a-example { border: 1px solid var(--line); background: var(--paper); padding: 22px 26px 4px; margin: 0 0 28px; }
.article-body .a-example-label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 12px; }
.article-body .a-example p { font-size: 14.5px; line-height: 2; margin-bottom: 18px; }
.article-body .a-example ul { margin-bottom: 18px; }
.article-body h4 { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: 0.04em; margin: 22px 0 10px; }
.article-body .a-example h4:first-of-type { margin-top: 4px; }
.article-body figure { margin: 8px 0 32px; }
.article-body figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.article-body figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ---------- コラム: 一覧カードのカテゴリ / 記事タイトルの左端 / サイドバー ---------- */
.guide-card .thumb { display: block; overflow: hidden; }
.guide-card .cat {
  display: block; border: 0; padding: 0; margin: 18px 0 8px;
  font-size: 11.5px; letter-spacing: 0.16em; color: var(--gold);
}

/* 本文カラム (コンテナ左端) に揃え、幅は本文カラム相当に留める */
.page-hero-article h1 { max-width: 820px; }

.article-side .side-card { padding: 28px 26px; }
.article-side .side-card h3 {
  font-size: 16px; margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(194,164,93,0.45);
}
.article-side .side-card.light h3 { border-bottom-color: var(--line); }
.article-side .side-card p { font-size: 13px; line-height: 1.95; margin: 0 0 22px; }
.article-side .side-card:not(.light) p { color: rgba(255,255,255,0.82); }
.article-side .side-card .btn { display: flex; width: 100%; justify-content: center; box-shadow: none; }

/* ---------- 運営会社: 企業理念 ---------- */
.spec-table .philosophy { display: grid; grid-template-columns: 88px 1fr; gap: 10px 16px; margin: 0; }
.spec-table .philosophy dt { font-family: var(--en); font-size: 11.5px; letter-spacing: 0.16em; color: var(--muted); padding-top: 3px; }
.spec-table .philosophy dd { margin: 0; line-height: 1.8; }
@media (max-width: 600px) {
  .spec-table .philosophy { grid-template-columns: 1fr; gap: 2px; }
  .spec-table .philosophy dd + dt { margin-top: 10px; }
}

/* ---------- コラム本文: 表と注記 ---------- */
.article-body .a-table { margin: 8px 0 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-body .a-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14px; line-height: 1.75; border-top: 1px solid var(--ink); }
.article-body .a-table caption { caption-side: top; text-align: left; font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--ink); letter-spacing: 0.04em; padding-bottom: 12px; }
.article-body .a-table th, .article-body .a-table td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; color: var(--text); }
.article-body .a-table thead th { background: var(--paper); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink); white-space: nowrap; }
.article-body .a-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.article-body .a-rank td:first-child { width: 4.5em; white-space: nowrap; font-family: var(--en); color: var(--gold); }
.article-body .a-rank td:last-child { width: 6em; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.article-body .a-rank thead th:last-child { text-align: right; }
.article-body .a-rank tbody tr:nth-child(-n+5) td:nth-child(2) { font-weight: 700; color: var(--ink); }
.article-body .a-note { font-size: 12.5px; line-height: 1.9; color: var(--muted); margin: 0 0 28px; }
/* styles-sub.css の旧 .a-table (表そのものに付く想定) の縦罫を打ち消し、横罫だけにする */
.article-body .a-table { border-collapse: separate; }
.article-body .a-table th, .article-body .a-table td { border-left: 0; border-right: 0; border-top: 0; }

/* ---------- 規約・ポリシー (templates/legal.php) ---------- */
.legal-doc { font-size: 14.5px; line-height: 2; color: var(--text); }
.legal-doc > p { margin: 0 0 16px; }
.legal-doc h2 {
  font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: 0.04em; color: var(--ink);
  margin: 52px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.legal-doc ol { list-style: none; margin: 0 0 16px; padding: 0; }
.legal-doc ol.clauses { counter-reset: clause; }
.legal-doc ol.clauses > li { counter-increment: clause; position: relative; padding-left: 1.8em; margin-bottom: 10px; }
.legal-doc ol.clauses > li::before { content: counter(clause); position: absolute; left: 0; top: 0; font-family: var(--en); color: var(--gold); }
.legal-doc ol.items { counter-reset: item; margin: 8px 0 4px; }
.legal-doc ol.items > li { counter-increment: item; position: relative; padding-left: 2.6em; margin-bottom: 4px; }
.legal-doc ol.items > li::before { content: '(' counter(item) ')'; position: absolute; left: 0; top: 0; color: var(--muted); }
.legal-doc .legal-sign { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); text-align: right; line-height: 1.9; }
@media (max-width: 600px) {
  .legal-doc { font-size: 14px; }
  .legal-doc h2 { font-size: 16px; margin-top: 40px; }
}
.legal-doc .clause-single { margin: 0 0 16px; }
.legal-doc .legal-contact { margin: 14px 0 0; padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); line-height: 1.95; }
