/*
Theme Name: 便利屋たくまる
Theme URI: https://benriyatakumaru.com/
Description: 便利屋たくまる コーポレートサイト用のオリジナルテーマ。デザインは静的版（v4）を引き継ぎ、お知らせは WordPress の投稿で更新します。拡張用のアクション／フィルターフックつき（README.md）。
Version: 1.2.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: takumaru
*/

/* 見た目の本体は assets/css/v4.css（静的版と同じもの）。ここには WordPress 化で増えた部分だけを書く */

/* 記事本文（ブロックエディタで書いたもの） */
.post-body > * + * { margin-top: 1.2em; }
.post-body p { margin-bottom: 0; }
.post-body h2 { font-size: 22px; font-weight: 900; margin-top: 2em; padding: 6px 0 6px 14px; border-left: 5px solid var(--blue); }
.post-body h3 { font-size: 18px; font-weight: 700; margin-top: 1.8em; }
.post-body ul, .post-body ol { padding-left: 1.5em; line-height: 1.9; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body img { max-width: 100%; height: auto; }
.post-body figure { margin-left: 0; margin-right: 0; }
.post-body figcaption { font-size: 13px; color: var(--sub); margin-top: 6px; }
.post-body a { color: var(--blue-dark); }
.post-body .aligncenter { margin-left: auto; margin-right: auto; display: block; }
.post-body .wp-block-image img { display: block; }

/* お知らせ一覧のページ送り */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: inline-block; min-width: 42px; padding: 8px 12px; text-align: center; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; }
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue-dark); }

.news-empty { padding: 40px 0; color: var(--sub); }

/* 管理画面で足した固定ページ（テンプレートを用意していないページ）の本文 */
.page-body { max-width: 860px; margin: 0 auto; }

/* =========================================================
   ブロックのスタイル（標準のブロックに足した「たくまるの見た目」。inc/blocks.php で登録）
   サイトでは静的版と同じクラス（note / sub-title / check / table / price-table / btn など）に置き換えて表示するので、
   見た目は assets/css/v4.css のとおり（inc/parts.php）。エディタの中の見た目は assets/css/editor.css。
   ここには、記事（.post-body）の文字の見た目と重なるところの調整だけを書く。
   ========================================================= */
.post-body .sub-title { font-size: 22px; margin-top: 2em; }
.post-body ul.check { list-style: none; padding-left: 0; line-height: inherit; }
.post-body .note { margin-top: 12px; }
.post-body a.btn { text-decoration: none; }
.post-body a.btn--blue, .post-body a.btn--line { color: #fff; }
.post-body a.btn--ghost { color: var(--blue-dark); }

/* 囲み（左に青い線） */
p.is-style-takumaru-box { background: var(--pale); border-left: 4px solid var(--blue); padding: 12px 18px; }

/* 料金の囲みの数字（段落ブロックの太字は <strong>） */
.price-box strong { font-size: 26px; font-family: var(--en); color: var(--navy); }

/* 表やボタンの前の余白（静的版ではタグに直接書いていたもの） */
.works + .sub-title { margin-top: 64px; }
.flow + .sub-title { margin-top: 56px; }

/* 本文の中の見出しブロック（英語の小見出しつき） */
.post-body .head { margin-top: 2em; margin-bottom: 32px; }
.post-body > .head:first-child { margin-top: 0; }

/* 管理バー表示中にヘッダーが隠れないように */
.admin-bar .gnav.is-open { top: 32px; }
@media (max-width: 782px) { .admin-bar .gnav.is-open { top: 46px; } }
