@charset "UTF-8";
/* ==========================================================================
   成功事例・コラム・お知らせ（一覧／詳細）
   WF: clients/miloku/05_WF・設計/wireframe_archive.md
   デザインは無し（design-rules.md 7章 No.2：共通パーツを流用して実装側で組む）
   ========================================================================== */

/* ================= 一覧 ================= */
.p-archive { margin-top: 60px; }

/* 絞り込み（業種・サービス／カテゴリ） */
.c-filter {
	display: grid;
	gap: 20px;
	padding: 32px 40px;
	background: var(--c-bg-gray);
	border-radius: 30px;
}
.c-filter--plain { padding: 0; background: none; border-radius: 0; }
.c-filter__head {
	font-family: var(--ff-serif);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.04em;
	color: var(--c-main);
}
.c-filter__group { display: grid; grid-template-columns: 90px 1fr; align-items: start; gap: 12px 20px; }
.c-filter--plain .c-filter__group { grid-template-columns: 1fr; }
.c-filter__label { padding-top: 7px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.c-filter__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.c-filter .c-chip:hover { background: var(--c-main); color: #fff; }
.c-chip__count { margin-left: 6px; font-size: 11px; opacity: 0.7; }

/* キーワード検索 */
.c-search { display: flex; max-width: 560px; }
.c-search__input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--c-main);
	border-right: 0;
	border-radius: 100px 0 0 100px;
	background: #fff;
	font: inherit;
	font-size: 14px;
}
.c-search__btn {
	padding: 0 24px;
	background: var(--c-main);
	border-radius: 0 100px 100px 0;
	font-size: 14px;
	color: #fff;
	transition: opacity 0.3s;
}
.c-search__btn:hover { opacity: 0.8; }

/* 結果バー */
.c-result-bar { margin-top: 40px; font-size: 14px; }
.c-result-bar span { font-family: var(--ff-serif); font-size: 20px; font-weight: 600; color: var(--c-main); }

/* カード一覧：事例＝3列（TOPの事例カード）／コラム＝3列（TOPのコラムカードを縮めて使う） */
.p-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 23px;
	margin-top: 20px;
}
.p-archive__grid > li { min-width: 0; }
.p-archive__grid--column .c-column-card { display: flex; flex-direction: column; height: 100%; }
.p-archive__grid--column .c-column-card__img { height: auto; aspect-ratio: 450 / 220; }
.p-archive__grid--column .c-column-card__body { flex-grow: 1; height: auto; min-height: 200px; padding: 26px 28px; }
.p-archive__grid--column .c-column-card .c-readmore { padding-top: 16px; }

/* 注目のコラム */
.p-archive__pickup { margin-top: 60px; }
.p-archive__sub {
	margin-top: 60px;
	font-family: var(--ff-serif);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.04em;
	color: var(--c-main);
}
.p-archive__pickup .p-archive__sub { margin-top: 0; }
.p-archive__sub + .c-result-bar { margin-top: 12px; }

/* ページ送り（◀ 1 2 3 … ▶） */
.c-pagination { margin-top: 60px; }
.c-pagination__list { display: flex; justify-content: center; align-items: center; gap: 8px; }
.c-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 6px;
	border-radius: 100px;
	font-family: var(--ff-serif);
	font-size: 14px;
	color: var(--c-main);
	transition: background-color 0.3s, color 0.3s;
}
.c-pagination a.page-numbers:hover { background: var(--c-bg-gray); }
.c-pagination .page-numbers.current { background: var(--c-main); color: #fff; }
.c-pagination .page-numbers.dots { min-width: 20px; }
.c-pagination .c-icon { width: 10px; }

/* 0件 */
.c-empty {
	margin-top: 40px;
	padding: 60px 40px;
	border: 1px solid var(--c-main-40);
	border-radius: 30px;
	text-align: center;
}
.c-empty__title {
	font-family: var(--ff-serif);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.04em;
	color: var(--c-main);
}
.c-empty__text { margin-top: 16px; font-size: 14px; line-height: 1.7; }
.c-empty__btns { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; margin-top: 32px; }

/* お知らせの行（TOPのNEWSと同じ見た目） */
.c-news-list { margin-top: 30px; }
.c-news-list__link {
	display: grid;
	grid-template-columns: 99px 150px 1fr auto;
	align-items: center;
	padding: 13px 0;
	border-bottom: 1px solid var(--c-main);
	font-size: 16px;
	line-height: 1.7;
}
.c-news-list__title { padding-right: 24px; transition: color 0.3s; }
.c-news-list__link:hover .c-news-list__title { color: var(--c-main); }

/* ================= 詳細 ================= */
.p-single { margin-top: 60px; }
.p-single__head { padding-bottom: 28px; border-bottom: 1px solid var(--c-main-40); }
.p-single__tags { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 16px; }
.p-single__tags a { transition: background-color 0.3s, color 0.3s; }
.p-single__tags .c-tag:hover { opacity: 0.8; }
.c-cat--line { background: #fff; border: 1px solid var(--c-line-gray); }
.p-single__title {
	font-family: var(--ff-serif);
	font-size: 32px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.04em;
	color: var(--c-main-dark);
}
.p-single__date { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 12px; color: #555; }
.p-single__meta { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; font-size: 14px; }
.p-single__eyecatch { margin-top: 40px; }
.p-single__eyecatch img { width: 100%; height: auto; }

/* 事例：成果・メタ情報 */
.p-work-result {
	margin-top: 32px;
	padding: 24px 32px;
	background: var(--grad-main);
	border-radius: 20px;
	color: #fff;
}
.p-work-result__label { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; }
.p-work-result__text {
	margin-top: 6px;
	font-family: var(--ff-serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.04em;
}
.p-work-meta { margin-top: 24px; border-top: 1px solid var(--c-main-40); }
.p-work-meta__row { display: grid; grid-template-columns: 160px 1fr; border-bottom: 1px solid var(--c-main-40); }
.p-work-meta__row dt { padding: 14px 20px; background: var(--c-bg-gray); font-weight: 500; }
.p-work-meta__row dd { padding: 14px 20px; }

/* 目次 */
.c-toc {
	margin-top: 40px;
	padding: 24px 32px;
	background: var(--c-bg-gray);
	border-radius: 20px;
}
.c-toc__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--ff-serif);
	font-size: 18px;
	font-weight: 600;
	color: var(--c-main);
	cursor: pointer;
	list-style: none;
}
.c-toc__head::-webkit-details-marker { display: none; }
.c-toc__head::after { content: "閉じる"; font-family: var(--ff-sans); font-size: 12px; font-weight: 400; color: var(--c-text); }
.c-toc:not([open]) .c-toc__head::after { content: "開く"; }
.c-toc__list { margin-top: 12px; }
.c-toc__item { font-size: 14px; line-height: 1.6; }
.c-toc__item a { display: block; padding: 6px 0; transition: color 0.3s; }
.c-toc__item a:hover { color: var(--c-main); text-decoration: underline; }
/* 番号は付けない（移行記事は見出しに自前の番号を持っているものが多く、二重になるため） */
.c-toc__item--h2 { font-weight: 500; }
.c-toc__item--h3 { padding-left: 1.6em; font-size: 13px; }

/* 本文（ブロックエディタの出力） */
.c-entry { margin-top: 48px; font-size: 16px; line-height: 1.9; }
.c-entry > * + * { margin-top: 1.5em; }
.c-entry h2 {
	margin-top: 2.6em;
	padding: 10px 16px;
	background: var(--grad-main);
	font-family: var(--ff-serif);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.04em;
	color: #fff;
	scroll-margin-top: calc(var(--header-h) + 20px);
}
.c-entry h3 {
	margin-top: 2.2em;
	padding: 0 0 8px 14px;
	border-left: 4px solid var(--c-main);
	border-bottom: 1px solid var(--c-main-40);
	font-family: var(--ff-serif);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.04em;
	scroll-margin-top: calc(var(--header-h) + 20px);
}
/* 見出しの中の文字色の直書き（移行記事の <span style="color:…">）と太字の蛍光マーカーは効かせず、見出しの色にそろえる */
.c-entry :is(h2, h3, h4) :is(span, strong, b, em, a) { color: inherit !important; background: none; }

/* コラム記事・成功事例：見出しはゴシック体。見出し2は紫の塗りつぶし（現行サイトのコラムと同じ作り。2026-09-29 三倉指示） */
/* 背景・文字色は !important：記事ごとの独自CSS（移行記事の <style>）が見出し2の色を変えて読めなくなるのを防ぐ */
:is(.p-single--column, .p-single--works) .c-entry h2 {
	padding: 12px 18px;
	background: var(--c-main) !important;
	border-radius: 8px;
	color: #fff !important;
	font-family: var(--ff-sans);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.5;
}
:is(.p-single--column, .p-single--works) .c-entry h3 {
	font-family: var(--ff-sans);
	font-size: 19px;
	font-weight: 700;
}
.c-entry h4 { margin-top: 2em; font-size: 17px; font-weight: 500; color: var(--c-main); }
.c-entry > h2:first-child,
.c-entry > h3:first-child { margin-top: 0; }
.c-entry a { color: var(--c-main); text-decoration: underline; text-underline-offset: 3px; }
.c-entry a:hover { text-decoration: none; }
.c-entry strong { font-weight: 500; background: linear-gradient(transparent 60%, var(--c-bg-blue) 60%); }
.c-entry ul,
.c-entry ol { padding-left: 1.5em; }
.c-entry ul { list-style: disc; }
.c-entry ol { list-style: decimal; }
.c-entry li + li { margin-top: 0.4em; }
.c-entry li::marker { color: var(--c-main); }
.c-entry img { height: auto; }
.c-entry figcaption { margin-top: 8px; font-size: 12px; color: #555; text-align: center; }
.c-entry blockquote {
	margin-inline: 0;
	padding: 20px 24px;
	background: var(--c-bg-gray);
	border-left: 4px solid var(--c-main-40);
	font-size: 15px;
}
.c-entry table { width: 100%; border-collapse: collapse; font-size: 14px; }
.c-entry th,
.c-entry td { padding: 10px 14px; border: 1px solid var(--c-line-light); text-align: left; vertical-align: top; }
.c-entry th { background: var(--c-bg-gray); font-weight: 500; }
.c-entry .wp-block-table { overflow-x: auto; }
.c-entry hr { border: 0; border-top: 1px solid var(--c-line-light); }

/* コラム本文のCTA（/service/ の無料診断CTAと同じ見た目。[miloku_cta]） */
.c-entry .c-entry-cta {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-block: 48px;
	padding: 36px 24px 36px 30px;
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}
.c-entry-cta__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100% !important; object-fit: cover; }
.c-entry .c-entry-cta__title { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: 0.1em; }
.c-entry .c-entry-cta__text { margin: 10px 0 0; font-size: 14px; line-height: 1.7; letter-spacing: 0.04em; }
.c-entry-cta__btns { display: grid; gap: 14px; flex-shrink: 0; }
.c-entry .c-entry-cta__btns a { color: #fff; text-decoration: none; }

/* 事例：提供したサービス／コラム：関連サービス */
.p-single-services { margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--c-main-40); }
.p-single-services__title,
.p-single-cta__label {
	font-family: var(--ff-serif);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.04em;
	color: var(--c-main);
}
.p-single-services__list { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 20px; }
.p-single-cta {
	display: grid;
	justify-items: start;
	gap: 12px;
	margin-top: 60px;
	padding: 32px 40px;
	border: 1px solid var(--c-main);
	border-radius: 30px;
}
.p-single-cta__label { font-size: 16px; }
.p-single-cta__title { font-family: var(--ff-serif); font-size: 24px; font-weight: 500; line-height: 1.4; }
.p-single-cta .c-btn-more { margin-top: 8px; }

/* 関連（事例・コラム・お知らせ） */
.p-related { margin-top: var(--section-gap); }
.p-related .p-archive__grid,
.p-related .c-news-list { margin-top: 40px; }
.p-related__more { display: flex; width: fit-content; margin: 40px auto 0; }

/* ================= タブレット ================= */
@media (max-width: 1199px) {
	.p-archive__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
	.c-entry .c-entry-cta { flex-direction: column; align-items: flex-start; }
}

/* ================= SP ================= */
@media (max-width: 767px) {
	.p-archive,
	.p-single { margin-top: 40px; }
	.c-filter { gap: 16px; padding: 24px 20px; border-radius: 20px; }
	.c-filter__head { font-size: 18px; }
	.c-filter__group { grid-template-columns: 1fr; gap: 8px; }
	.c-filter__label { padding-top: 0; }
	.c-filter__chips { gap: 8px; }
	/* お知らせのカテゴリは折り返さず横にスクロール（WF N2） */
	.c-filter--plain .c-filter__chips { flex-wrap: nowrap; margin-inline: calc(-1 * var(--inner-pad)); padding-inline: var(--inner-pad); overflow-x: auto; scrollbar-width: none; }
	.c-filter--plain .c-filter__chips::-webkit-scrollbar { display: none; }
	.c-result-bar { margin-top: 32px; }
	.p-archive__grid { grid-template-columns: 1fr; gap: 28px; }
	.p-archive__grid--column .c-column-card__body { min-height: 0; padding: 24px 24px 28px; }
	.p-archive__pickup { margin-top: 40px; }
	.p-archive__sub { margin-top: 48px; font-size: 20px; }
	.c-pagination { margin-top: 40px; }
	.c-pagination__list { gap: 4px; }
	.c-pagination .page-numbers { min-width: 36px; height: 36px; font-size: 12px; }
	.c-empty { padding: 40px 20px; border-radius: 20px; }
	.c-empty__title { font-size: 18px; }
	.c-news-list { margin-top: 20px; }
	.c-news-list__link { grid-template-columns: auto 1fr; gap: 8px 16px; padding: 20px 0 8px; font-size: 12px; }
	.c-news-list__cat { justify-self: start; }
	.c-news-list__cat .c-cat--pill { padding: 3px 12px; }
	.c-news-list__title { grid-column: 1 / -1; padding-right: 0; font-size: 14px; }
	.c-news-list__link .c-readmore { grid-column: 1 / -1; justify-self: end; }

	.p-single__title { font-size: 24px; }
	.p-single__eyecatch { margin-top: 28px; }
	.p-work-result { padding: 20px; }
	.p-work-result__text { font-size: 18px; }
	.p-work-meta__row { grid-template-columns: 110px 1fr; }
	.p-work-meta__row dt,
	.p-work-meta__row dd { padding: 12px 14px; font-size: 14px; }
	.c-toc { padding: 20px; }
	.c-entry { margin-top: 36px; font-size: 14px; }
	.c-entry h2 { font-size: 20px; }
	.c-entry h3 { font-size: 17px; }
	:is(.p-single--column, .p-single--works) .c-entry h2 { padding: 10px 14px; font-size: 18px; }
	:is(.p-single--column, .p-single--works) .c-entry h3 { font-size: 16px; }
	.p-single-services,
	.p-single-cta { margin-top: 48px; }
	.c-entry .c-entry-cta { flex-direction: column; align-items: stretch; margin-block: 36px; padding: 24px 20px; }
	.c-entry .c-entry-cta__title { font-size: 16px; letter-spacing: 0.04em; }
	.c-entry .c-entry-cta__text { font-size: 13px; }
	.c-entry-cta__btns { justify-items: center; }
	.p-single-cta { padding: 24px 20px; border-radius: 20px; }
	.p-single-cta__title { font-size: 20px; }
	.p-related .p-archive__grid,
	.p-related .c-news-list { margin-top: 28px; }
}

/* 吹き出し（旧サイトの Word Balloon。inc/archive.php） */
.c-entry .w_b_box { margin: 32px 0; }
.c-entry .w_b_wrap { display: flex; align-items: flex-start; gap: 20px; }
.c-entry .w_b_wrap.w_b_R { flex-direction: row-reverse; }
.c-entry .w_b_ava_box { flex: 0 0 80px; text-align: center; }
.c-entry .w_b_ava_effect { width: 80px; height: 80px; margin: 0 auto; overflow: hidden; border-radius: 50%; border: 1px solid var(--c-main-40); }
.c-entry .w_b_ava_img { width: 100% !important; height: 100% !important; margin: 0 !important; object-fit: cover; }
.c-entry .w_b_name { margin-top: 6px; font-size: 12px; line-height: 1.4; color: #555; }
.c-entry .w_b_space { display: none; }
.c-entry .w_b_bal_box { flex: 1; min-width: 0; }
.c-entry .w_b_bal { position: relative; padding: 18px 22px; background: #fff; border: 1px solid var(--c-main-40); border-radius: 16px; }
.c-entry .w_b_bal::before { content: ""; position: absolute; top: 26px; left: -8px; width: 14px; height: 14px; background: #fff; border-left: 1px solid var(--c-main-40); border-bottom: 1px solid var(--c-main-40); transform: rotate(45deg); }
.c-entry .w_b_R .w_b_bal::before { left: auto; right: -8px; transform: rotate(-135deg); }
.c-entry .w_b_quote { font-size: inherit; line-height: 1.9; }
.c-entry .w_b_quote > :first-child { margin-top: 0; }
@media (max-width: 767px) {
	.c-entry .w_b_wrap { gap: 14px; }
	.c-entry .w_b_ava_box { flex-basis: 56px; }
	.c-entry .w_b_ava_effect { width: 56px; height: 56px; }
	.c-entry .w_b_bal { padding: 14px 16px; }
}
