/**
 * 通常投稿（post）の単一表示のみ（body.single-post）。
 * 本文はコアの post_class() により付く article.type-post 配下を対象にする。
 * （.entry-content が無いカスタム 2019 系でも効く想定）
 */

body.single-post article.type-post table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 0.95em;
	line-height: 1.5;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #d9d9d9;
}

body.single-post article.type-post thead th {
	background: #f4f6f8;
	color: #1a1a1a;
	font-weight: 600;
	text-align: left;
	padding: 0.65em 0.85em;
	border-bottom: 2px solid #c5cbd3;
}

body.single-post article.type-post tbody td,
body.single-post article.type-post tbody th {
	padding: 0.6em 0.85em;
	border-bottom: 1px solid #e8e8e8;
	vertical-align: top;
}

body.single-post article.type-post tbody tr:nth-child(even) {
	background: #fafbfc;
}

body.single-post article.type-post tbody tr:last-child td,
body.single-post article.type-post tbody tr:last-child th {
	border-bottom: none;
}

body.single-post article.type-post tbody tr:hover {
	background: #f0f4f8;
}

/* 見出しの上下余白（投稿本文の article 内） */
body.single-post article.type-post h1,
body.single-post article.type-post h3,
body.single-post article.type-post h4,
body.single-post article.type-post h5,
body.single-post article.type-post h6 {
	margin-top: 1.25em;
	margin-bottom: 0.65em;
	line-height: 1.35;
}

/* h2 は上方向の余白を多めに（前段との区切り） */
body.single-post article.type-post h2 {
	margin-top: 2em!important;
	margin-bottom: 0.65em;
	line-height: 1.35;
}

body.single-post article.type-post h1:first-child,
body.single-post article.type-post h2:first-child,
body.single-post article.type-post h3:first-child,
body.single-post article.type-post h4:first-child,
body.single-post article.type-post h5:first-child,
body.single-post article.type-post h6:first-child {
	margin-top: 0;
}

/* div ブロックの上下余白 */
body.single-post article.type-post div {
	margin-top: 1em;
	margin-bottom: 1em;
}

/* 表のセル内など、テーブル配下の div は余白を付けない */
body.single-post article.type-post table div {
	margin-top: 0;
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   本文内 CTA（.cta-box__buttons）
   -------------------------------------------------------------------------- */
body.single-post article.type-post .cta-box__buttons {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	max-width: 22rem;
	margin: 1.75rem auto;
	padding: 0;
}

body.single-post article.type-post .cta-box__buttons br {
	display: none;
}

body.single-post article.type-post a.cta-box__button {
	display: block;
	box-sizing: border-box;
	padding: 0.9rem 1.25rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	color: #fff;
	border: 1px solid transparent;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	transition:
		background 0.2s ease,
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.15s ease;
}

body.single-post article.type-post a.cta-box__button:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
	transform: translateY(-1px);
}

body.single-post article.type-post a.cta-box__button:active {
	transform: translateY(0);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

body.single-post article.type-post a.cta-box__button:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

/* 株式会社（バナー左：ピンク／コーラル系） */
body.single-post article.type-post a.cta-box__button--kk {
	background: linear-gradient(180deg, #f06e6e 0%, #eb6262 100%);
	color: #fff;
	border-color: rgba(0, 0, 0, 0.06);
	box-shadow: 0 2px 8px rgba(240, 110, 110, 0.35);
}

body.single-post article.type-post a.cta-box__button--kk:hover {
	background: linear-gradient(180deg, #e85d5d 0%, #dc4f4f 100%);
	box-shadow: 0 4px 14px rgba(240, 110, 110, 0.45);
}

body.single-post article.type-post a.cta-box__button--kk:focus-visible {
	outline-color: #c93c3c;
}

/* 合同会社（バナー右：オレンジ系） */
body.single-post article.type-post a.cta-box__button--gk {
	background: linear-gradient(180deg, #ffaa33 0%, #f5a01a 100%);
	color: #fff;
	border-color: rgba(0, 0, 0, 0.06);
	box-shadow: 0 2px 8px rgba(255, 170, 51, 0.4);
}

body.single-post article.type-post a.cta-box__button--gk:hover {
	background: linear-gradient(180deg, #f59f1a 0%, #e89110 100%);
	box-shadow: 0 4px 14px rgba(255, 170, 51, 0.5);
}

body.single-post article.type-post a.cta-box__button--gk:focus-visible {
	outline-color: #c9780a;
}

/* 無料相談・問い合わせ（水色：背景は明るめ、文字は濃い青で視認性確保） */
body.single-post article.type-post a.cta-box__button--consult {
	background: linear-gradient(180deg, #87d3f8 0%, #6ec5f0 100%);
	color: #0a3d5c;
	border-color: rgba(10, 61, 92, 0.12);
	box-shadow: 0 2px 8px rgba(110, 197, 240, 0.45);
}

body.single-post article.type-post a.cta-box__button--consult:hover {
	background: linear-gradient(180deg, #6ec5f0 0%, #56b8eb 100%);
	color: #072f47;
	box-shadow: 0 4px 14px rgba(110, 197, 240, 0.55);
}

body.single-post article.type-post a.cta-box__button--consult:focus-visible {
	outline-color: #0a3d5c;
}

/* --------------------------------------------------------------------------
   ワンポイントアドバイス枠（.point-advice）
   使い方例:
   <div class="point-advice">
     <span class="point-advice__label">ワンポイントアドバイス</span>
     <p>本文…</p>
   </div>
   -------------------------------------------------------------------------- */
body.single-post article.type-post .point-advice {
	margin: 1.5rem 0;
	padding: 1.1rem 1.2rem 1.2rem 1.15rem;
	background: linear-gradient(165deg, #f3fafd 0%, #e8f5fa 55%, #e2f1f8 100%);
	border: 1px solid #b3d9ea;
	border-left: 4px solid #2d9bc4;
	border-radius: 0 10px 10px 0;
	box-shadow: 0 2px 8px rgba(45, 155, 196, 0.12);
	font-size: 0.95rem;
	line-height: 1.7;
	color: #1e2f3a;
}

body.single-post article.type-post .point-advice__label {
	display: inline-block;
	margin: 0 0 0.7rem 0;
	padding: 0.28rem 0.75rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.3;
	color: #fff;
	background: linear-gradient(90deg, #2d9bc4 0%, #2485a8 100%);
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(36, 133, 168, 0.35);
}

body.single-post article.type-post .point-advice > *:first-child {
	margin-top: 0;
}

body.single-post article.type-post .point-advice > *:last-child {
	margin-bottom: 0;
}

body.single-post article.type-post .point-advice p {
	margin: 0.55em 0;
}

body.single-post article.type-post .point-advice p:first-of-type:not(:only-of-type) {
	margin-top: 0;
}

/* 枠内の div は外側の div 余白ルールを弱めに上書き */
body.single-post article.type-post .point-advice div {
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}
