/*
Theme Name: AFFINGER7 Child
Template: affinger
Description: AFFINGER7 対応
Version: 20260410
*/

/*media Queries スマートフォンとタブレットサイズ（959px以下）で適応したいCSS - スマホ・タブレット
---------------------------------------------------------------------------------------------------*/
@media only screen and (max-width: 959px) {


	/*-- ここまで --*/
}
	
/*media Queries タブレットサイズ（600px～959px）のみで適応したいCSS -タブレットのみ
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) and (max-width: 959px) {


	/*-- ここまで --*/
}	
	
/*media Queries タブレット（600px）以上で適応したいCSS -タブレット・PC
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) {


	/*-- ここまで --*/
}

/*media Queries PCサイズ（960px）以上で適応したいCSS - PCのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (min-width: 960px) {


	/*-- ここまで --*/
}

/*media Queries スマホサイズ（599px）以下で適応したいCSS - スマホのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (max-width: 599px) {

	
	/*-- ここまで --*/
}

/* --------------------------------------------------------------------------
   jce- 共通ヘッダー・フッター（静的トップページ public/assets/site.css と同じ見た目）
   ・マークアップは header-content.php / functions.php(jce_blog_custom_footer)。
   ・追加CSS(カスタマイザー)の「#st-ami a」等に負けないよう、ID 付きセレクタで指定する。
   ・値を変えるときは public/assets/site.css の header / footer 節と揃えること。
   -------------------------------------------------------------------------- */
body.jce-blog {
	--jce-h-bg: #FFFFFF;
	--jce-h-bg-subtle: #F6F7F9;
	--jce-h-line: #DDE1E6;
	--jce-h-line-strong: #C7CDD4;
	--jce-h-ink: #1B1F24;
	--jce-h-ink-muted: #4B5563;
	--jce-h-ink-subtle: #6B7280;
	--jce-h-accent: #0550AE;
	--jce-h-accent-dark: #043D82;
	--jce-h-accent-tint: #4A7FC1;
	overflow-x: hidden;
}
#jce-header, #jce-footer {
	display: block;
	margin: 0;
	font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", Meiryo, sans-serif;
	font-size: 18px;
	line-height: 1.8;
	letter-spacing: .02em;
	color: var(--jce-h-ink);
	text-align: left;
	-webkit-text-size-adjust: 100%;
}
#jce-header *, #jce-header *::before, #jce-header *::after,
#jce-footer *, #jce-footer *::before, #jce-footer *::after {
	box-sizing: border-box;
	font-family: inherit;
	letter-spacing: inherit;
}
#jce-header .jce-wrap, #jce-footer .jce-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 600px) {
	#jce-header .jce-wrap, #jce-footer .jce-wrap { padding: 0 32px; }
}
#jce-header a:focus-visible, #jce-footer a:focus-visible { outline: 3px solid var(--jce-h-accent-tint); outline-offset: 2px; }

/* header */
#jce-header {
	position: relative;
	z-index: 100;
	padding: 0;
	border-bottom: 1px solid var(--jce-h-line);
	background: var(--jce-h-bg);
}
#jce-header .jce-site-inner {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 60px; padding-top: 10px; padding-bottom: 10px; gap: 16px; flex-wrap: wrap;
}
#st-ami #jce-header a.jce-logo, #st-ami #jce-header a.jce-logo:visited, #st-ami #jce-header a.jce-logo:hover {
	font-weight: 700; font-size: 18px; letter-spacing: .01em; color: var(--jce-h-ink); text-decoration: none;
}
#jce-header .jce-main-nav { display: flex; gap: 20px; flex-wrap: wrap; margin: 0; padding: 0; background: none; }
#st-ami #jce-header .jce-main-nav a, #st-ami #jce-header .jce-main-nav a:visited {
	color: var(--jce-h-ink); text-decoration: none; font-size: 16px; font-weight: 400;
	border-bottom: 2px solid transparent; padding: 2px 0; background: none;
}
#st-ami #jce-header .jce-main-nav a:hover { color: var(--jce-h-ink); border-bottom-color: var(--jce-h-accent); }
#jce-header .jce-badge-soon {
	display: inline-block; font-size: 14px; font-weight: 500; line-height: 1.8;
	color: var(--jce-h-accent-dark); background: var(--jce-h-bg-subtle);
	border: 1px solid var(--jce-h-line); border-radius: 4px;
	padding: 2px 8px; margin-left: 8px; white-space: nowrap;
}
#st-ami #jce-header a.jce-btn, #st-ami #jce-header a.jce-btn:visited {
	display: inline-block; font-size: 16px; font-weight: 500; line-height: 1.8;
	padding: 10px 18px; border-radius: 6px; text-decoration: none;
	border: 1px solid transparent; cursor: pointer;
	background: var(--jce-h-accent); color: #fff;
}
#st-ami #jce-header a.jce-btn:hover { background: var(--jce-h-accent-dark); color: #fff; }

/* footer */
#jce-footer {
	border-top: 1px solid var(--jce-h-line);
	background: var(--jce-h-bg-subtle);
	padding: 32px 0;
}
#jce-footer .jce-footer-grid { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; }
#jce-footer .jce-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
#jce-footer .jce-footer-links a, #jce-footer .jce-footer-links a:visited { font-size: 14px; color: var(--jce-h-ink-muted); text-decoration: none; }
#jce-footer .jce-footer-links a:hover { color: var(--jce-h-accent); }
#jce-footer p.jce-copyright { margin: 14px 0; padding: 0; font-size: 14px; line-height: 1.8; color: var(--jce-h-ink-subtle); }

/* AFFINGER 標準のヘッダー（スマホのスライドメニュー含む）・フッターを非表示にする。
   ヘッダーは header-content.php の上書きで出力自体を止めているため、ここでは残る部品だけ隠す。 */
body.jce-blog #st-ami #footer,
body.jce-blog #st-ami #wrapper-in > footer,
body.jce-blog #st-footer-under-widgets-box-wrap,
body.jce-blog #s-navi,
body.jce-blog #headbox-bg-fixed,
body.jce-blog #st-menubox { display: none !important; }

/* =====================================================================
   記事本文（2026-10-04 追加）
   汎用 21_汎用_ブログカードCSS_AFFINGER.css をこのサイトに合わせたもの。
   本文のコンテナは .entry-content。色は site.css のトークン（青 #0550AE）、影より 1px 罫線、角丸 6px まで（docs/DESIGN.md）。
   ===================================================================== */

/* 見出しの上の余白（汎用 21 の 2 章。AFFINGER 既定は 20px で詰まる） */
/* AFFINGER の見出しは :not() を重ねた強いセレクタなので !important で上書きする */
body.jce-blog .entry-content h2 { margin-top: 2.8em !important; }
body.jce-blog .entry-content h3 { margin-top: 2.4em !important; }
body.jce-blog .entry-content h4 { margin-top: 2em !important; }

/* ボックスの中の太字（変換スクリプトが <strong> にする） */
body.jce-blog .entry-content strong { font-weight: 700; }

/* ブログカード（[st-card]、ラベル「あわせて読みたい」） */
body.jce-blog .entry-content .st-cardbox {
  position: relative;
  margin: 32px 0 !important;
  padding: 20px 22px 16px !important;
  background: #fff;
  border: 1px solid #DDE1E6 !important;
  border-radius: 6px;
  box-shadow: none;
}
body.jce-blog .entry-content a.st-cardlink:hover .st-cardbox { border-color: #0550AE !important; }
body.jce-blog .entry-content .st-cardbox .st-card-label,
body.jce-blog .entry-content .st-cardbox .st-cardbox-label {
  position: absolute; top: -12px; left: 16px; display: inline-block;
  padding: 2px 12px; background: #0550AE; color: #fff !important;
  font-size: 14px !important; font-weight: 700; line-height: 1.6; border-radius: 4px;
}
body.jce-blog .entry-content .st-cardbox .st-cardbox-label-text { font-size: 14px !important; padding: 0 !important; background: none !important; color: #fff !important; }
body.jce-blog .entry-content .st-cardbox dl { display: flex; gap: 18px; align-items: flex-start; margin: 0; }
body.jce-blog .entry-content .st-cardbox dt.st-card-img { flex: 0 0 150px; margin: 0; }
body.jce-blog .entry-content .st-cardbox dt.st-card-img img { width: 150px; height: 100px; object-fit: cover; border-radius: 4px; margin: 0; }
body.jce-blog .entry-content .st-cardbox dd { flex: 1; margin: 0 !important; padding-left: 0 !important; min-width: 0; }
body.jce-blog .entry-content a.st-cardlink,
body.jce-blog .entry-content a.st-cardlink:hover,
body.jce-blog .entry-content .st-cardbox a,
body.jce-blog .entry-content .st-cardbox a:hover { text-decoration: none !important; border-bottom: 0 !important; }
body.jce-blog .entry-content .st-cardbox .st-cardbox-t {
  margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; background: none !important;
  font-size: 17px !important; font-weight: 700; line-height: 1.5; color: #1B1F24 !important;
}
body.jce-blog .entry-content .st-cardbox .st-cardbox-t::before,
body.jce-blog .entry-content .st-cardbox .st-cardbox-t::after { content: none !important; }
body.jce-blog .entry-content .st-cardbox .st-card-excerpt p { margin: 0 !important; font-size: 14px !important; line-height: 1.7 !important; color: #4B5563 !important; }
body.jce-blog .entry-content .st-cardbox .cardbox-more { margin: 8px 0 0 !important; font-size: 14px !important; color: #0550AE !important; text-align: right; }
body.jce-blog .entry-content .st-cardbox .cardbox-more::after { content: " \203A"; }
@media (max-width: 599px) {
  body.jce-blog .entry-content .st-cardbox { padding: 18px 14px 12px !important; }
  body.jce-blog .entry-content .st-cardbox dl { gap: 12px; }
  body.jce-blog .entry-content .st-cardbox dt.st-card-img { flex-basis: 96px; }
  body.jce-blog .entry-content .st-cardbox dt.st-card-img img { width: 96px; height: 64px; }
  body.jce-blog .entry-content .st-cardbox .st-cardbox-t { font-size: 16px !important; }
}

/* 記事末尾の誘導（ウィジェット「投稿記事（下部）」のカスタム HTML。docs/blog/widgets/article-bottom-cta.html） */
body.jce-blog .jce-reading-cta { margin: 48px 0 24px; padding: 28px 24px 24px; background: #F6F7F9; border: 1px solid #C7CDD4; border-top: 4px solid #0550AE; border-radius: 6px; text-align: center; }
body.jce-blog .jce-reading-cta p.jce-reading-cta__label { display: inline-block; margin: 0 0 10px; padding: 2px 12px; border-radius: 4px; background: #0550AE; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.7; }
body.jce-blog .jce-reading-cta p.jce-reading-cta__title { margin: 0 0 10px; color: #1B1F24; font-size: 22px; font-weight: 700; line-height: 1.5; }
body.jce-blog .jce-reading-cta p.jce-reading-cta__text { margin: 0 0 18px; color: #4B5563; font-size: 16px; line-height: 1.8; text-align: left; }
body.jce-blog .jce-reading-cta a.jce-reading-cta__button, body.jce-blog .jce-reading-cta a.jce-reading-cta__button:visited { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 10px 32px; border-radius: 6px; background: #0550AE; color: #fff !important; font-size: 18px; font-weight: 700; text-decoration: none !important; }
body.jce-blog .jce-reading-cta a.jce-reading-cta__button:hover { background: #043D82; color: #fff !important; }
body.jce-blog .jce-reading-cta p.jce-reading-cta__sub { margin: 14px 0 0; font-size: 14px; line-height: 1.7; }
body.jce-blog .jce-reading-cta p.jce-reading-cta__sub a { color: #0550AE; }
@media (max-width: 599px) {
  body.jce-blog .jce-reading-cta { padding: 22px 16px 18px; }
  body.jce-blog .jce-reading-cta p.jce-reading-cta__title { font-size: 19px; }
  body.jce-blog .jce-reading-cta a.jce-reading-cta__button { width: 100%; }
}

/* サイドメニューのカテゴリー（8つの選択肢の順。ウィジェットのカスタム HTML。docs/blog/widgets/side-categories.html） */
body.jce-blog .jce-side-cats { margin: 0 0 24px; padding: 0; list-style: none; border-top: 1px solid #DDE1E6; }
body.jce-blog .jce-side-cats li { margin: 0; padding: 0; border-bottom: 1px solid #DDE1E6; font-size: 16px; list-style: none; }
body.jce-blog .jce-side-cats li::before { content: none; }
body.jce-blog .jce-side-cats a, body.jce-blog .jce-side-cats a:visited { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 8px 4px; color: #1B1F24; text-decoration: none; }
body.jce-blog .jce-side-cats a::after { content: "\203A"; color: #0550AE; font-size: 20px; }
body.jce-blog .jce-side-cats a:hover { background: #F6F7F9; color: #0550AE; }

/* サイドメニュー「おすすめ記事」の見出し（AFFINGER 標準はオレンジ） */
body.jce-blog #side .kanren .p-entry-t .p-entry { background: #0550AE !important; color: #fff !important; border-radius: 4px; }
body.jce-blog #side .kanren .p-entry-t .p-entry::after { border-top-color: #0550AE !important; }
