/**
 * テーマ独自の補助スタイル（static の style.css には無い部分。style.css の後に読み込む）
 *
 * 1. ブログ一覧の絞り込み：static の項目の一部だけを出すための調整
 * 2. WordPress の本文（.wpContent）
 *    static の style.css はリセットCSSで見出しの大きさ・リストの記号などを消しており、
 *    static の記事見本（p・h3・画像）以外の要素がそのままでは崩れるため、.wpContent の中だけで補う。
 *    色・余白は static の記事（.commonArticle）に合わせている。
 */

/* 1. ブログ一覧の絞り込み：カテゴリー等の項目を出していない間も、キーワードを static と同じ右端に置く */
.searchBox__inner form > .searchBox__keyword:first-child {
	margin-left: auto;
}

/* 2. WordPress の本文 */

/* 旧テーマ時代の本文は <div class="container"> で囲まれていることが多く、static の .container（ヘッダー分の上余白）が効いてしまうため打ち消す */
.wpContent .container {
	padding-top: 0;
}

.wpContent {
	overflow-wrap: anywhere;
}
.wpContent > :first-child {
	margin-top: 0;
}

/* 見出し（h3 は static の .commonArticle h3 を使う） */
.wpContent h1,
.wpContent h2 {
	margin: 64px 0 24px;
	padding-left: 16px;
	border-left: 4px solid #B12945;
	font-size: 2.4rem;
	font-weight: 600;
	line-height: 1.5;
}
.wpContent h3 {
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.5;
}
.wpContent h4,
.wpContent h5,
.wpContent h6 {
	margin: 32px 0 16px;
	font-size: 1.8rem;
	font-weight: 600;
	line-height: 1.5;
}

/* 段落・リンク・強調 */
.wpContent p {
	margin-bottom: 24px;
	line-height: 1.9;
}
.wpContent a {
	color: #B12945;
	text-decoration: underline;
}
.wpContent strong,
.wpContent b {
	font-weight: 600;
}
.wpContent em {
	font-style: italic;
}

/* リスト */
.wpContent ul,
.wpContent ol {
	margin: 0 0 24px;
	padding-left: 1.5em;
	line-height: 1.9;
}
.wpContent ul {
	list-style: disc;
}
.wpContent ol {
	list-style: decimal;
}
.wpContent li + li {
	margin-top: 4px;
}
.wpContent li > ul,
.wpContent li > ol {
	margin: 4px 0 0;
}

/* 画像・埋め込み */
.wpContent img {
	max-width: 100%;
	height: auto;
}
.wpContent figure {
	margin: 0 0 32px;
}
.wpContent figcaption {
	margin-top: 8px;
	color: #777;
	font-size: 1.4rem;
	text-align: center;
}
.wpContent iframe {
	max-width: 100%;
}
.wpContent .wp-block-embed__wrapper iframe,
.wpContent iframe[src*="youtube"] {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

/* 表 */
.wpContent table {
	width: 100%;
	margin-bottom: 32px;
	border-collapse: collapse;
}
.wpContent th,
.wpContent td {
	padding: 12px 16px;
	border: 1px solid #DDDEDF;
	line-height: 1.6;
	vertical-align: top;
}
.wpContent th {
	background: #F4F4F4;
	font-weight: 600;
}

/* 引用・区切り線・コード */
.wpContent blockquote {
	margin: 0 0 32px;
	padding: 16px 24px;
	border-left: 4px solid #DDDEDF;
	color: #555;
}
.wpContent blockquote p:last-child {
	margin-bottom: 0;
}
.wpContent hr {
	margin: 48px 0;
	border: 0;
	border-top: 1px solid #DDDEDF;
}
.wpContent pre {
	margin-bottom: 32px;
	padding: 16px;
	overflow-x: auto;
	background: #F4F4F4;
	font-size: 1.4rem;
	line-height: 1.6;
}
.wpContent code {
	font-family: Consolas, Menlo, monospace;
}

/* ブロックエディタのカラム・ボタン */
.wpContent .wp-block-columns {
	gap: 32px;
	margin-bottom: 32px;
}
.wpContent .wp-block-button__link {
	color: #FFF;
	background: #B12945;
	text-decoration: none;
}

@media screen and (max-width: 767px) {
	.wpContent h1,
	.wpContent h2 {
		margin: 40px 0 16px;
		font-size: 2rem;
	}
	.wpContent h3 {
		font-size: 1.8rem;
	}
	.wpContent table {
		display: block;
		overflow-x: auto;
	}
}

/* ------------------------------------------------------------
 * コーチ紹介（page-coach.php）
 * ------------------------------------------------------------ */

/* 写真：static の写真（480×480。2026-11-17 に縦長 480×630 から変更）と同じ正方形の枠に合わせて切り抜く（アイキャッチの縦横比は人によって違うため） */
.coach__box__img img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center top;
}

/* 紹介文：旧テーマで本文に付けた文字色（青）ではなく、static のリンク色にする */
.coach__box__txt__body a,
.coach__box__txt__body a span,
.coach__box__txt__body span:has(> a) {
	color: #B12945 !important;
}
.coach__box__txt__body p:empty {
	display: none;
}
.coach__box__txt__body p + p {
	margin-top: 1em;
}

/* ------------------------------------------------------------
 * 研修一覧（archive-training.php）：開催予定の研修の「もっと見る」で出すまで隠す研修
 * ------------------------------------------------------------ */
.trainingList .trainingCard.isHidden {
	display: none;
}
/* static は1列（3件）だけのデザインのため、「もっと見る」で増えた分は3件ずつ折り返す（スマホは static の縦並びのまま） */
@media screen and (min-width: 769px) {
	.listTop .trainingList__slider {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}
	.listTop .trainingCard {
		width: auto;
		max-width: none;
	}
}

/* ------------------------------------------------------------
 * 導入事例 詳細（single-casestudies.php）
 * ------------------------------------------------------------ */

/* 旧テーマのHTMLの本文にある見出し（テンプレートの見出し h3.txt4xl と同じ内容）は出さない */
.caseContent .article-title,
.caseContent .article-title_area {
	display: none;
}
.interview .caseContent {
	margin-bottom: 64px;
}

/*
 * 導入事例 詳細の本文を、static のインタビュー（training/casestudies/detail.php）の見た目に近づける。
 * 本文のHTMLは変えず、既存の書き方に CSS を当てる。
 *   旧テーマのHTML：見出し h3.article-heading、質問 p.article-text > span[style*=color] > strong、
 *                    目次 nav.mkj、写真 figure／figcaption
 *   ブロックエディタ：見出し .wp-block-heading、質問 p.has-text-color > strong
 */

/* 章の見出し → static の h3.txt4xl（下線つき） */
.caseContent .article-heading,
.caseContent .wp-block-heading {
	margin: 80px 0 40px;
	padding: 0 0 16px;
	border: 0;
	border-bottom: 1px solid #DDDEDF;
	color: #171616;
	font-size: 2.8rem;
	font-weight: 600;
	line-height: 1.5;
}
.caseContent section:first-of-type .article-heading,
.caseContent nav.mkj + section .article-heading {
	margin-top: 0;
}

/* 聞き手の質問 → static の h4（.interview__paragraph h4） */
.caseContent p:has(> span[style*="color"] > strong),
.caseContent p.has-text-color:has(> strong) {
	margin: 40px 0 16px;
	color: #171616 !important;
	font-size: 1.8rem;
	font-weight: 600;
	line-height: 1.5;
}
.caseContent p > span[style*="color"]:has(> strong) {
	color: inherit !important;
}

/* 回答の段落 → static の .interview__paragraph p */
.caseContent p {
	margin-bottom: 16px;
}

/* 写真と説明（旧テーマの figure）→ static の .interview__person（中央、説明は写真の下に左寄せ） */
.caseContent figure:not(.wp-block-image) {
	max-width: 400px;
	margin: 40px auto !important;
}
.caseContent figure:not(.wp-block-image) img {
	display: block;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 auto;
}
.caseContent figure:not(.wp-block-image) figcaption {
	width: auto !important;
	min-width: 0 !important;
}

/* 写真と文の横並び（旧テーマの .article-image--left／--right）→ static の .interview__box.flex に近い見た目
   （写真を左右に寄せ、文を横に回り込ませる。章の見出しで回り込みを解除） */
.caseContent .article-image--left,
.caseContent .article-image--right {
	width: 45%;
	margin-bottom: 24px !important;
}
.caseContent .article-image--left {
	float: left;
	margin-right: 40px;
}
.caseContent .article-image--right {
	float: right;
	margin-left: 40px;
}
.caseContent .article-image--left img,
.caseContent .article-image--right img {
	display: block;
	width: 100%;
}
.caseContent .article-image--center {
	clear: both;
	max-width: 600px;
	margin: 40px auto;
}
.caseContent .article-heading,
.caseContent section,
.caseContent nav.mkj {
	clear: both;
}
.caseContent::after {
	content: "";
	display: block;
	clear: both;
}
.caseContent figcaption {
	margin-top: 8px;
	color: #171616;
	font-size: 1.4rem;
	line-height: 1.6;
	text-align: left;
}

/* 目次（旧テーマの nav.mkj）→ static の .pageLink */
.caseContent nav.mkj {
	display: flex;
	justify-content: space-between;
	gap: 56px;
	margin: 64px 0 80px !important;
	padding: 0;
	border: 0;
	background: none;
}
.caseContent nav.mkj h2 {
	flex-shrink: 0;
	width: 110px;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 2.2rem;
	font-weight: 400;
}
.caseContent nav.mkj h2 i {
	display: none;
}
.caseContent nav.mkj ol {
	flex: 1;
	margin: 0;
	padding: 0;
	list-style: none;
}
.caseContent nav.mkj li {
	margin: 0;
	border-bottom: 1px solid #DDDEDF;
}
.caseContent nav.mkj li a {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 16px 0 8px;
	color: #171616;
	text-decoration: none;
}
.caseContent nav.mkj li:first-child a {
	padding-top: 0;
}
.caseContent nav.mkj li a::after {
	content: "";
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M11.6523 20.3575C11.8476 20.5527 12.1641 20.5527 12.3594 20.3575L15.5414 17.1755C15.7367 16.9802 15.7367 16.6636 15.5414 16.4684C15.3461 16.2731 15.0295 16.2731 14.8343 16.4684L12.0059 19.2968L9.17743 16.4684C8.98217 16.2731 8.66559 16.2731 8.47032 16.4684C8.27506 16.6636 8.27506 16.9802 8.47032 17.1755L11.6523 20.3575ZM12.0059 4.00391L11.5059 4.00391L11.5059 20.0039L12.0059 20.0039L12.5059 20.0039L12.5059 4.00391L12.0059 4.00391Z' fill='%23B12945'/%3E%3C/svg%3E") no-repeat center;
	transition: 0.3s;
}
.caseContent nav.mkj li a:hover::after {
	transform: translateY(4px);
}

@media screen and (max-width: 767px) {
	.caseContent .article-heading,
	.caseContent .wp-block-heading {
		margin: 48px 0 24px;
		font-size: 2.2rem;
	}
	.caseContent nav.mkj {
		flex-direction: column;
		gap: 16px;
	}
	.caseContent .article-image--left,
	.caseContent .article-image--right {
		float: none;
		width: 100%;
		margin: 0 0 24px;
	}
}

/* ------------------------------------------------------------
 * 研修の日程詳細（single-training-scrum-courses.php）：満席のときの案内（static に無いため追加）
 * ------------------------------------------------------------ */
.trainingInfo__full {
	margin: 40px 0;
	padding: 24px;
	background: #F5F5F5;
}
.trainingInfo__full p {
	margin-bottom: 8px;
	line-height: 1.8;
}
.trainingInfo__full p.fw600 {
	color: #B12945;
}

/* ------------------------------------------------------------
 * ホワイトペーパー 三菱電機様事例（page-templates/insights-item.php）：事例ごとの見出し（static に無いため追加）
 * ------------------------------------------------------------ */
.whitepaper__case {
	margin: 56px 0 24px;
	padding-left: 12px;
	border-left: 4px solid #B12945;
	line-height: 1.5;
}
.whitepaper__detail > p + .whitepaper__case {
	margin-top: 0;
}
.whitepaper__sample + .whitepaper__case {
	margin-top: 80px;
}

/* ------------------------------------------------------------
 * ブログ一覧（archive-blog.php）：カードの縦の間隔
 * static の .blogList__slider は gap: 2.4%（割合）で、縦の間隔が 0 になる（static の見本は1列だけのため目立たない）。
 * 2列目以降も横と同じ程度の間隔をあける（スマホは static の margin-bottom のまま）
 * ------------------------------------------------------------ */
@media screen and (min-width: 768px) {
	#blog .blogList__slider:not(#blogList__slider) {
		row-gap: 24px;
	}
}

/* ------------------------------------------------------------
 * ページが見つからない場合（404.php）
 * ------------------------------------------------------------ */
.notFound {
	max-width: 800px;
	margin: 0 auto 56px;
}
.notFound ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
}

/* ------------------------------------------------------------
 * トランスフォーメーションのサービス事例（template-parts/case-transformation-section.php）
 * ------------------------------------------------------------ */

/* 写真：アイキャッチの img には width・height 属性が付き、style.css は max-width だけなので縦が潰れる。
   static の写真（712×400）と同じ横長の枠に合わせて切り抜く（アイキャッチの縦横比は事例によって違うため） */
.transformationSliderCard__detail__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 712 / 400;
	object-fit: cover;
}

/* ロゴ：縦横比を保つ */
.transformationSliderCard__title img {
	height: auto;
	flex-shrink: 0;
}

/* ------------------------------------------------------------
 * 旧テーマのスライダー（Swiper）を本文に直接書いたページ（page.php。アジャイルマインドシフトワークショップ 7025 など）
 * 新テーマは Swiper を読み込まないため、スライドを横に並べた写真として出し、送りボタンは隠す（R3）
 * 本文の style 属性（高さ 500px・画像の高さ 100% など）を上書きするため !important を使う
 * ------------------------------------------------------------ */
.wpContent .swiper-container {
	height: auto !important;
	max-width: 100% !important;
	margin: 0 0 32px !important;
}
.wpContent .swiper-wrapper {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.wpContent .swiper-slide .slide-content {
	height: auto !important;
	position: relative;
}
.wpContent .swiper-slide img {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.wpContent .swiper-slide .img-cap {
	left: 0;
	right: 0;
	font-size: 14px;
	line-height: 1.5;
}
.wpContent .swiper-button-prev,
.wpContent .swiper-button-next,
.wpContent .swiper-pagination {
	display: none;
}
@media screen and (max-width: 767px) {
	.wpContent .swiper-wrapper {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------
 * トップのお知らせ（front-page.php）：種類の絞り込み（assets/js/top.js）
 * 先頭の記事が隠れても上の線が出るよう、static で先頭の li に付いている上の線を一覧（ul）に付け替える
 * ------------------------------------------------------------ */
#top .newsArea .newsList {
	border-top: 1px solid #DDDEDF;
}
#top .newsArea .newsList li:first-of-type {
	border-top: 0;
}
#top .newsArea .noResult {
	padding: 32px 0;
}

/* ------------------------------------------------------------
 * 目次（プラグイン LuckyWP Table of Contents。ブログ・導入事例の本文）
 * プラグインの既定の青いリンク色を、サイトのリンク色・背景色にそろえる（2026-11-16 確認）
 * ------------------------------------------------------------ */
.wpContent .lwptoc {
	margin: 32px 0;
}
.wpContent .lwptoc-light .lwptoc_i {
	padding: 24px 32px;
	border-radius: 8px;
	background: #F4F4F4;
	color: #333;
}
.wpContent .lwptoc_header {
	margin-bottom: 8px;
}
.wpContent .lwptoc_title {
	font-weight: 600;
}
.wpContent .lwptoc-light .lwptoc_i a,
.wpContent .lwptoc-light .lwptoc_items a:visited {
	color: #B12945;
	text-decoration: none;
	border-bottom: 0;
}
.wpContent .lwptoc-light .lwptoc_i a:hover,
.wpContent .lwptoc-light .lwptoc_i a:focus {
	color: #B12945;
	text-decoration: underline;
}
.wpContent .lwptoc_item {
	margin-top: 4px;
	line-height: 1.6;
}
@media screen and (max-width: 767px) {
	.wpContent .lwptoc-light .lwptoc_i {
		padding: 16px 20px;
	}
}
