/*
Theme Name: Site Tune Blog
Theme URI: https://site-tune.com/
Description: Site Tune ブログ用の子テーマ。Twenty Twenty-Four をベースに、LPとデザインを統一しています。
Author: Site Tune
Author URI: https://site-tune.com/
Template: twentytwentyfour
Version: 1.5.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: site-tune-blog
*/

/* ===========================================================
   カラー定義（theme.json と揃えています）
   =========================================================== */
:root {
  --st-blue: #075df5;
  --st-navy: #071b4d;
  --st-text: #1b2a4a;
  --st-muted: #64748b;
  --st-line: #dbe7f6;
  --st-pale: #f5f9ff;
  --st-orange: #f36b21;
}

/* ===========================================================
   本文
   =========================================================== */
.wp-block-post-content {
  color: var(--st-text);
}

.single .wp-block-post-content p {
  margin-bottom: 1.6em;
}

/* ===========================================================
   記事タイトル
   =========================================================== */
.wp-block-post-title {
  color: var(--st-navy);
  line-height: 1.5;
  letter-spacing: -0.02em;
}

/* ===========================================================
   見出し（LPと同じスタイル）
   =========================================================== */
.single .wp-block-post-content h2 {
  margin-top: 2.6em;
  margin-bottom: 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--st-blue);
  color: var(--st-navy);
  line-height: 1.5;
}

.single .wp-block-post-content h3 {
  margin-top: 2em;
  margin-bottom: 0.6em;
  padding-left: 0.6em;
  border-left: 4px solid var(--st-blue);
  color: var(--st-navy);
  line-height: 1.6;
}

/* CTAボックス内の見出しには枠線を付けない */
.single .wp-block-group.has-background h3 {
  margin-top: 0;
  padding-left: 0;
  border-left: none;
}

/* ===========================================================
   リンク・強調
   =========================================================== */
.wp-block-post-content a {
  text-underline-offset: 0.2em;
}

.wp-block-post-content a:hover {
  opacity: 0.75;
}

/* 太字にマーカー風の下地を敷く */
.single .wp-block-post-content strong {
  font-weight: 700;
  background: linear-gradient(transparent 65%, rgba(7, 93, 245, 0.14) 65%);
}

/* CTAボックス内はマーカーなし */
.single .wp-block-group.has-background strong {
  background: none;
}

/* ===========================================================
   リスト
   =========================================================== */
.single .wp-block-post-content ul,
.single .wp-block-post-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.8em;
}

.single .wp-block-post-content li {
  margin-bottom: 0.6em;
}

.single .wp-block-post-content li::marker {
  color: var(--st-blue);
  font-weight: 700;
}

/* ===========================================================
   表
   =========================================================== */
.wp-block-table table {
  border-collapse: collapse;
  font-size: 0.94em;
}

.wp-block-table th,
.wp-block-table td {
  border: 1px solid var(--st-line);
  padding: 10px 14px;
}

.wp-block-table th {
  background: var(--st-pale);
  color: var(--st-navy);
  font-weight: 700;
}

.wp-block-table figcaption {
  color: var(--st-muted);
  font-size: 0.82em;
  margin-top: 0.6em;
}

/* ===========================================================
   コード表記（site: 検索の説明などで使用）
   =========================================================== */
.wp-block-post-content code {
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.92em;
}

.wp-block-code {
  background: #f1f5f9;
  border: 1px solid var(--st-line);
  border-radius: 8px;
  padding: 14px 18px;
}

/* ===========================================================
   CTAボックス・ボタン
   =========================================================== */
.single .wp-block-group.has-background {
  border-radius: 16px;
}

.wp-block-button__link {
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.wp-block-button__link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ===========================================================
   ブログ一覧ページ（home.html / archive.html）
   =========================================================== */

/* ---- ページ見出し ---- */
.st-page-title {
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--st-navy);
  letter-spacing: -0.03em;
  line-height: 1.4;
  margin-bottom: 12px;
}

.st-page-lead {
  color: var(--st-muted);
  font-size: 15px;
  line-height: 1.9;
  max-width: 620px;
  margin-inline: auto;
}

/* ---- カテゴリー絞り込み ---- */
.st-cat-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 44px;
}

/* 件数「(2)」はリンクの外にテキストとして出力されるため、li全体をボタン化する */
.st-cat-filter li {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin: 0;
  padding: 7px 18px;
  border: 1px solid var(--st-line);
  border-radius: 999px;
  background: #fff;
  color: var(--st-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.st-cat-filter li:hover {
  background: var(--st-blue);
  border-color: var(--st-blue);
  color: rgba(255, 255, 255, 0.8);
}

.st-cat-filter a {
  color: var(--st-navy);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}

.st-cat-filter li:hover a {
  color: #fff;
  opacity: 1;
}

/* ---- 記事カード ---- */
.st-post-cards {
  gap: 26px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.st-post-cards > li {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(7, 36, 84, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.st-post-cards > li:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(7, 36, 84, 0.11);
}

/* サムネイル（未設定時は青の下地を見せる） */
.st-card-thumb {
  margin: 0;
  background: linear-gradient(135deg, #2487ff, var(--st-blue));
}

.st-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.st-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ---- カード内メタ情報 ---- */
.st-card-meta {
  gap: 10px;
  align-items: center;
}

.st-card-cat a {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--st-pale);
  color: var(--st-blue);
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.st-card-cat a:hover {
  background: var(--st-blue);
  color: #fff;
  opacity: 1;
}

.st-card-date {
  color: var(--st-muted);
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

/* ---- カード内タイトル・抜粋 ---- */
.st-card-title {
  margin: 0 0 10px;
  padding: 0;
  border: none;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.st-card-title a {
  color: var(--st-navy);
  text-decoration: none;
}

.st-card-title a:hover {
  color: var(--st-blue);
  opacity: 1;
}

.st-card-excerpt {
  margin: 0;
  color: var(--st-muted);
  font-size: 13.5px;
  line-height: 1.85;
}

.st-card-excerpt p {
  margin: 0;
}

/* ---- ページ送り ---- */
.st-pagination {
  margin-top: 52px;
  gap: 8px;
  font-weight: 700;
}

.st-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--st-line);
  border-radius: 8px;
  color: var(--st-navy);
  font-size: 14px;
  text-decoration: none;
}

.st-pagination .page-numbers:hover {
  background: var(--st-pale);
  border-color: var(--st-blue);
  opacity: 1;
}

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

/* ---- 記事0件のとき ---- */
.st-no-posts p {
  color: var(--st-muted);
  font-size: 15px;
}

/* ---- 一覧下部のCTA ---- */
.st-blog-cta {
  background: var(--st-pale);
  border: 1px solid var(--st-line);
}

.st-cta-title {
  margin: 0 0 12px;
  padding: 0;
  border: none;
  font-size: 21px;
  color: var(--st-navy);
}

/* CTA下部の補足文 */
.st-cta-note {
  margin: 14px 0 0;
  color: var(--st-muted);
  font-size: 13px;
}

/* 記事内のCTAでは本文用の余白・マーカーを打ち消す */
.single .st-blog-cta p { margin-bottom: 0; }
.single .st-blog-cta p + p { margin-top: 14px; }
.single .st-blog-cta strong { background: none; }

/* ===========================================================
   スマートフォン
   =========================================================== */
/* ===========================================================
   保守サービスページ（固定ページ /maintenance/）
   =========================================================== */

/* ---- ヒーロー下の信頼要素 ---- */
.st-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.st-trust li {
  position: relative;
  padding-left: 22px;
  margin: 0;
  color: var(--st-navy);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
}

.st-trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--st-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

/* ---- 選ばれる理由 ---- */
.st-reasons { gap: 26px; }

.st-reason {
  height: 100%;
  padding: 30px 26px 28px;
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(7, 36, 84, 0.06);
}

/* 番号は自動採番。順序を入れ替えても崩れない */
.st-reasons { counter-reset: st-reason; }
.st-reasons .wp-block-column { counter-increment: st-reason; }

.st-reason::before {
  content: counter(st-reason);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--st-pale);
  color: var(--st-blue);
  font-size: 15px;
  font-weight: 900;
}

.st-reason-title {
  margin: 0 0 10px;
  padding: 0;
  border: none;
  font-size: 17px;
  color: var(--st-navy);
  line-height: 1.55;
}

.st-reason-text {
  margin: 0;
  color: var(--st-muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.9;
}

/* ---- 共通 ---- */
/* 保守ページのセクションを画面幅いっぱいに広げる

   WordPress は幅制限のあるブロックすべてに .has-global-padding を付与し、
   左右に余白を与える。本文を包む main と post-content の余白を 0 にすると、
   セクションの背景色が画面の端まで届く。
   各セクションは自前で左右 20px の余白を持つため、文字が端に触れることはない。 */
main.st-page-full,
main.st-page-full > .wp-block-post-content {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

/* セクション自体の幅制限も外す */
main.st-page-full > .wp-block-post-content > .alignfull {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.st-tint { background: var(--st-pale); }

.st-sec-title {
  font-size: clamp(23px, 2.6vw, 32px);
  color: var(--st-navy);
  letter-spacing: -0.03em;
  line-height: 1.45;
  margin: 0 0 16px;
  padding: 0;
  border: none;
}

.st-sec-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: var(--st-blue);
}

.st-sec-lead {
  color: var(--st-muted);
  font-size: 15px;
  font-weight: 600;
  margin: 0 auto 40px;
  max-width: 640px;
}

.st-note {
  color: var(--st-muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.9;
  margin-top: 32px;
}

/* ---- ヒーロー ---- */
.st-hero { background: linear-gradient(180deg, var(--st-pale), #fff); }

.st-eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--st-blue);
}

.st-hero-title {
  font-size: clamp(26px, 3.6vw, 40px);
  color: var(--st-navy);
  line-height: 1.45;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  padding: 0;
  border: none;
  word-break: auto-phrase;
}

.st-hero-lead {
  color: #31415f;
  font-size: 16px;
  font-weight: 600;
  margin: 0 auto 30px;
  max-width: 660px;
}

/* ---- 課題カード ---- */
.st-issues { gap: 20px; }

.st-issue {
  height: 100%;
  background: #fff;
  border: 1px solid #ffe0d1;
  border-radius: 16px;
  padding: 28px 22px;
}

.st-issue::before {
  content: "▲";
  display: block;
  text-align: center;
  color: #f36b21;
  font-size: 20px;
  line-height: 1;
  margin-bottom: 12px;
}

.st-issue-title {
  font-size: 15px;
  color: var(--st-navy);
  line-height: 1.6;
  margin: 0 0 8px;
  padding: 0;
  border: none;
}

.st-issue-text {
  color: var(--st-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
  margin: 0;
}

/* ---- 作業内容カード ---- */
.st-works { gap: 22px; }

.st-work {
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(7, 36, 84, 0.06);
  padding: 24px 24px 22px;
  margin-bottom: 22px;
}

.st-work:last-child { margin-bottom: 0; }

.st-work-title {
  font-size: 16px;
  color: var(--st-navy);
  line-height: 1.5;
  margin: 0 0 10px;
  padding: 0;
  border: none;
}

.st-work-text {
  color: var(--st-muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.85;
  margin: 0;
}

/* ---- 特別価格バナー ---- */
.st-early {
  max-width: 640px;
  margin: 0 auto 34px;
  padding: 14px 22px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  color: #9a3412;
  font-size: 15px;
  font-weight: 700;
}

/* ---- 料金プラン ---- */
.st-plans { gap: 26px; align-items: stretch; }

.st-plan {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(7, 36, 84, 0.07);
  padding: 38px 26px 30px;
}

.st-plan--rec {
  border: 2px solid rgba(7, 93, 245, 0.7);
  box-shadow: 0 18px 54px rgba(7, 93, 245, 0.14);
}

.st-plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 18px;
  border-radius: 999px;
  background: var(--st-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.st-plan-name {
  font-size: 21px;
  color: var(--st-navy);
  margin: 0 0 6px;
  padding: 0;
  border: none;
}

.st-plan-for {
  color: var(--st-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  min-height: 44px;
  margin: 0;
}

.st-price-regular {
  margin: 16px 0 0;
  color: var(--st-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: line-through;
}

.st-price {
  margin: 2px 0 6px;
  color: var(--st-navy);
  font-size: 33px;
  font-weight: 900;
  line-height: 1.1;
}

.st-price small {
  font-size: 14px;
  font-weight: 800;
  color: var(--st-muted);
}

.st-save {
  display: inline-block;
  margin: 0 auto 22px;
  padding: 2px 11px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 900;
}

.st-plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  flex: 1;
  display: grid;
  gap: 11px;
  text-align: left;
}

.st-plan-list li {
  position: relative;
  padding-left: 27px;
  color: #263b60;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.7;
  margin: 0;
}

/* チェックマークはCSSで描画（編集時は文字だけを扱える） */
.st-plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 3px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--st-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.st-plan .wp-block-buttons { margin-top: auto; }
.st-plan .wp-block-button { width: 100%; }
.st-plan .wp-block-button__link { width: 100%; }

/* ---- 比較表 ---- */
.st-table-title {
  margin: 56px 0 14px;
  padding: 0;
  border: none;
  font-size: 17px;
  color: var(--st-navy);
}

.st-compare { overflow-x: auto; }

.st-compare table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

.st-compare th,
.st-compare td {
  border: 1px solid var(--st-line);
  padding: 12px 14px;
  text-align: center;
}

.st-compare thead th {
  background: var(--st-pale);
  color: var(--st-navy);
  font-weight: 800;
}

.st-compare thead th:first-child { text-align: left; }

.st-compare tbody td:first-child {
  text-align: left;
  font-weight: 700;
  color: var(--st-navy);
  background: #fcfdff;
  font-size: 13.5px;
}

/* ---- 導入の流れ ---- */
.st-flow {
  gap: 16px;
  counter-reset: st-step;
}

.st-flow .wp-block-column { counter-increment: st-step; }

.st-step {
  height: 100%;
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(7, 36, 84, 0.06);
  padding: 26px 16px;
}

/* 番号はCSSで自動採番（順序を入れ替えても番号がずれない） */
.st-step::before {
  content: counter(st-step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--st-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.st-step-title {
  font-size: 14.5px;
  color: var(--st-navy);
  line-height: 1.5;
  margin: 0 0 8px;
  padding: 0;
  border: none;
}

.st-step-text {
  color: var(--st-muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.75;
  margin: 0;
}

/* ---- FAQ ---- */
.st-faq {
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.st-faq[open] { box-shadow: 0 10px 30px rgba(7, 36, 84, 0.07); }

.st-faq summary {
  position: relative;
  padding: 17px 52px 17px 22px;
  cursor: pointer;
  color: var(--st-navy);
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1.6;
  list-style: none;
}

.st-faq summary::-webkit-details-marker { display: none; }

.st-faq summary::after {
  content: "＋";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--st-blue);
  font-size: 17px;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.st-faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.st-faq > :not(summary) {
  padding: 0 22px;
  color: #42536f;
  font-size: 14px;
  line-height: 1.9;
}

.st-faq > :not(summary):last-child { padding-bottom: 20px; }

/* ---- お問い合わせフォーム ---- */
.st-form-box {
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(7, 36, 84, 0.1);
  padding: 38px 36px;
}

/* スパム対策のハニーポット項目（人間には見せない） */
.st-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.st-field { margin-bottom: 16px; }

.st-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--st-navy);
  margin-bottom: 6px;
}

.st-req,
.st-opt {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 900;
  vertical-align: 1.5px;
}

.st-req { background: var(--st-blue); color: #fff; }
.st-opt { background: #eef2f7; color: var(--st-muted); }

.st-field input,
.st-field select,
.st-field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--st-line);
  border-radius: 9px;
  font-size: 15px;
  font-family: inherit;
  color: var(--st-text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.st-field input:focus,
.st-field select:focus,
.st-field textarea:focus { border-color: var(--st-blue); }

.st-field input::placeholder,
.st-field textarea::placeholder { color: #a8b6ca; }

.st-submit {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--st-blue), #0047c8);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 12px 26px rgba(7, 93, 245, 0.22);
}

.st-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(7, 93, 245, 0.3);
}

.st-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.st-form-note {
  margin-top: 14px;
  text-align: center;
  color: var(--st-muted);
  font-size: 12px;
  line-height: 1.75;
}

.st-form-note a { color: var(--st-blue); text-decoration: underline; }

.st-error {
  display: none;
  margin-bottom: 16px;
  padding: 11px 15px;
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  border-radius: 6px;
  color: #991b1b;
  font-size: 13.5px;
  font-weight: 600;
}

.st-error.show { display: block; }

.st-thanks { display: none; text-align: center; padding: 14px 0; }
.st-thanks.show { display: block; }

.st-thanks-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16b364;
  display: grid;
  place-items: center;
  font-size: 31px;
  font-weight: 900;
}

.st-thanks h3 {
  color: var(--st-navy);
  font-size: 20px;
  margin: 0 0 14px;
  padding: 0;
  border: none;
}

.st-thanks p {
  color: #42536f;
  font-size: 14.5px;
  font-weight: 600;
  margin: 0;
}

/* ---- 保守ページのレスポンシブ ---- */
@media (max-width: 900px) {
  .st-issues,
  .st-works,
  .st-plans,
  .st-flow,
  .st-reasons {
    gap: 18px;
  }

  .st-reason { margin-bottom: 18px; }

  .st-work { margin-bottom: 18px; }
}

@media (max-width: 780px) {
  .st-plan { padding: 34px 22px 26px; }
  .st-plan-for { min-height: 0; }
  .st-form-box { padding: 26px 20px; }
  .st-table-title { margin-top: 40px; }
}

/* タブレット：カードを2列に */
@media (max-width: 900px) {
  .st-post-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .wp-block-post-content h2 {
    margin-top: 2.2em;
  }

  /* スマホ：カードを1列に */
  .st-post-cards {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .st-cat-filter {
    margin-bottom: 32px;
  }

  .st-cat-filter a {
    padding: 6px 14px;
    font-size: 12.5px;
  }

  /* 表が画面からはみ出さないよう横スクロールさせる */
  .wp-block-table {
    overflow-x: auto;
  }

  .wp-block-table table {
    min-width: 480px;
  }
}
