/* =========================================================
   WORK PIECES（案A：エディトリアル）

   サイト本体（SWELL）の中にある「読みもの」として、
   生成りの背景・明朝の見出し・罫線と余白で区切る、雑誌のような見た目にする。
   本文の書体・文字サイズはサイトのまま。赤はサイトのメインカラーを少量だけ使う。

   色・書体を変えたいときは、下の「トンマナ」の値だけを書き換える。
   ========================================================= */

/* ---------------------------------------------------------
   トンマナ
   --------------------------------------------------------- */
.is-work-pieces, .pieces, .pieces-sc {
	--wp-ground: #F6F3EE;                         /* 背景（生成り） */
	--wp-ink: #1F1D1A;                            /* 見出し・強い罫線 */
	--wp-text: #3A3631;                           /* 本文 */
	--wp-sub: #6B655D;                            /* 補足（会社名・説明） */
	--wp-rule: #D9D2C7;                           /* 細い罫線 */
	--wp-photo: #E4DDD2;                          /* 写真がないときの面 */
	--wp-accent: var(--color_main, #E5002D);      /* サイトのメインカラー（線・番号） */
	--wp-accent-text: #C8002A;                    /* 小さい赤文字用（生成りの上でも読める濃さ） */
	--wp-serif: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
	--wp-space: clamp(64px, 8vw, 104px);          /* セクションの間隔 */
	--wp-radius: 8px;                             /* 画像の角丸 */
}

/* ---------------------------------------------------------
   背景（WORK PIECESの画面だけ生成りにする。ヘッダー・フッターはサイトのまま）
   --------------------------------------------------------- */
#body_wrap.is-work-pieces,
.is-work-pieces #content { background: var(--wp-ground); }
.is-work-pieces .p-breadcrumb { background: transparent; }

/* ---------- 共通 ---------- */
.pieces { color: var(--wp-text); }
.pieces img { max-width: 100%; height: auto; }
.pieces a { color: inherit; text-decoration: none; }
.pieces a:hover { color: var(--wp-accent-text); }
.pieces-section { margin-top: var(--wp-space); }
.pieces-noimage { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--wp-photo); }

/* 画像の角丸（WORK PIECES全体で統一。値はトンマナの --wp-radius） */
.pieces img, .pieces-sc img, .pieces .pieces-noimage, .pieces-sc .pieces-noimage,
.pieces .c-postThumb__figure, .pieces-sc .c-postThumb__figure { border-radius: var(--wp-radius); }
.pieces .c-postThumb__figure, .pieces-sc .c-postThumb__figure { overflow: hidden; }

/* 小さな英字ラベル（RECRUITING MEDIA / PEOPLE / INTRODUCTION など） */
.pieces .pieces-kicker {
	margin: 0 0 12px; color: var(--wp-accent-text);
	font-size: 12px; line-height: 1.6; letter-spacing: .24em;
}
.pieces .pieces-kicker a { color: inherit; }

/* 会社名・職種などの補足 */
.pieces .pieces-meta { margin: 0; color: var(--wp-sub); font-size: 13px; }
.pieces .pieces-lead { margin: -16px 0 32px; color: var(--wp-sub); }

/* ---------------------------------------------------------
   セクション見出し：01（自動の番号）＋英字ラベル＋明朝の見出し
   SWELLの見出しの装飾（帯・線）を打ち消して使う
   --------------------------------------------------------- */
.pieces-head { margin-bottom: 0; }
.pieces .pieces-ttl {
	display: block;
	margin: 0 0 32px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
	color: var(--wp-ink); font-family: var(--wp-serif); font-weight: 600;
	font-size: clamp(22px, 2.4vw, 28px); line-height: 1.5; letter-spacing: .02em; text-align: left;
}
.pieces .pieces-ttl::after { content: none; display: none; }
.pieces .pieces-ttl::before { content: none; display: none; }
.pieces .pieces-ttl .pieces-ttl__en {
	grid-column: 2; display: block; margin: 0 0 4px;
	color: var(--wp-sub); font-family: var(--swl-font_family, sans-serif);
	font-weight: 400; font-size: 12px; line-height: 1.6; letter-spacing: .24em;
}
.pieces .pieces-ttl > :not(.pieces-ttl__en) { grid-column: 2; }
/* トップの固定ページの見出し：番号は付けない（SWELLの見出し装飾も出さない） */
.pieces .pieces-page .pieces-ttl::before { content: none; display: none; }
/* SWELLの「見出しの直後の余白」の打ち消し */
.post_content .pieces-ttl { margin-top: 0; }

/* ---------------------------------------------------------
   トップ：メインビジュアル
   --------------------------------------------------------- */
.pieces .pieces-logo {
	margin: 0 0 32px; padding: 0; border: 0; background: none;
	color: var(--wp-ink); font-family: var(--wp-serif); font-weight: 500;
	font-size: clamp(48px, 7vw, 88px); line-height: 1; letter-spacing: .02em;
}
.pieces .pieces-logo::before, .pieces .pieces-logo::after { content: none; display: none; }
.pieces-hero.wp-block-columns {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 4vw, 56px); align-items: end;
	margin-bottom: 0; padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--wp-rule);
}
.pieces-hero > .wp-block-column { min-width: 0; margin: 0; }
.pieces-hero .wp-block-image { margin: 0; }
.pieces-hero .wp-block-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pieces .pieces-catch {
	margin: 0 0 24px; color: var(--wp-ink); font-family: var(--wp-serif); font-weight: 600;
	font-size: clamp(24px, 2.6vw, 32px); line-height: 1.6;
}
.pieces-hero p:not(.pieces-catch) { color: var(--wp-sub); }

/* ---------------------------------------------------------
   EXPLORE：罫線で区切った目次のような一覧
   --------------------------------------------------------- */
.pieces-explore {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px;
	border-top: 1px solid var(--wp-ink);
}
.pieces-explore__item {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
	padding: 22px 8px; border-bottom: 1px solid var(--wp-rule); transition: background-color .2s;
}
.pieces-explore__item:hover { background: rgba(255, 255, 255, .6); }
.pieces-explore__en { grid-column: 1; color: var(--wp-accent-text); font-size: 11px; letter-spacing: .2em; line-height: 1.6; }
.pieces-explore__ja { grid-column: 1; color: var(--wp-ink); font-family: var(--wp-serif); font-weight: 600; font-size: 19px; line-height: 1.5; }
.pieces-explore__arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--wp-sub); transition: transform .2s; }
.pieces-explore__item:hover .pieces-explore__arrow { transform: translateX(4px); color: var(--wp-accent-text); }

/* ---------------------------------------------------------
   PICK UP
   --------------------------------------------------------- */
.pieces-pickup {
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "head head" "thumb body";
	column-gap: clamp(28px, 3.5vw, 48px); row-gap: 24px; align-items: start;
}
.pieces-pickup__head { grid-area: head; }
.pieces-pickup__head > p { margin: 0 0 8px; }
.pieces-pickup__head > p:last-child { margin-bottom: 0; }
.pieces-pickup__thumb { grid-area: thumb; }
.pieces-pickup__body { grid-area: body; padding-top: 16px; border-top: 1px solid var(--wp-ink); }
.pieces-pickup__body .pieces-meta { margin: 0; }
.pieces .pieces-pickup__subtitle { margin: 0 0 12px; color: var(--wp-ink); font-weight: 600; font-size: 15px; line-height: 1.8; }
.pieces-pickup__thumb img, .pieces-pickup__thumb .pieces-noimage { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pieces .pieces-pickup__title { color: var(--wp-ink); font-family: var(--wp-serif); font-weight: 600; font-size: clamp(18px, 1.8vw, 20px); line-height: 1.7; }

/* ---------------------------------------------------------
   記事カード（SWELLの記事一覧の並びはそのまま、見た目だけ変える）
   --------------------------------------------------------- */
.pieces .p-postList { margin-left: -16px; margin-right: -16px; }
.pieces .pieces-card { padding: 0 16px; margin-bottom: 48px; }
.pieces .pieces-card .c-postThumb__figure { border-radius: var(--wp-radius); overflow: hidden; }
.pieces .pieces-card .p-postList__body { padding-top: 18px; }
.pieces .pieces-card__cat { margin: 0 0 6px; color: var(--wp-accent-text); font-size: 11px; letter-spacing: .2em; line-height: 1.6; }
.pieces .pieces-card .pieces-card__title {
	margin: 0 0 8px; padding: 0; border: 0; background: none; box-shadow: none;
	color: var(--wp-ink); font-family: var(--wp-serif); font-weight: 600;
	font-size: 16px; line-height: 1.7;
}
.pieces .pieces-card .pieces-card__title::before, .pieces .pieces-card .pieces-card__title::after { content: none; display: none; }
.pieces .pieces-card__meta { margin: 0; color: var(--wp-sub); font-size: 13px; line-height: 1.6; }
.pieces .pieces-card .p-postList__link:hover .pieces-card__title { color: var(--wp-accent-text); }

/* ---------------------------------------------------------
   ABOUT（トップの固定ページ：グループに「pieces-about」）
   --------------------------------------------------------- */
.pieces .pieces-about {
	padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--wp-ink); border-bottom: 1px solid var(--wp-ink); background: none;
}
.pieces .pieces-about > p:first-child,
.pieces .pieces-about > .wp-block-group__inner-container > p:first-child {
	margin-bottom: 24px; color: var(--wp-ink); font-family: var(--wp-serif); font-weight: 600;
	font-size: clamp(20px, 2.2vw, 24px); line-height: 1.8;
}
.pieces .pieces-about p { color: var(--wp-text); }

/* ---------------------------------------------------------
   掲載企業
   --------------------------------------------------------- */
.pieces-companies { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--wp-ink); }
.pieces-company { display: flex; flex-direction: column; gap: 4px; padding: 20px 4px 24px; border-bottom: 1px solid var(--wp-rule); }
.pieces-company__num { color: var(--wp-accent-text); font-family: var(--wp-serif); font-size: 22px; line-height: 1; }
.pieces-company__name { margin-top: 12px; color: var(--wp-ink); font-family: var(--wp-serif); font-weight: 600; font-size: 18px; line-height: 1.5; }
.pieces-company__industry { color: var(--wp-sub); font-size: 13px; }
.pieces-company__count { margin-top: 12px; color: var(--wp-sub); font-size: 12px; letter-spacing: .08em; }
.pieces-company:hover .pieces-company__name { color: var(--wp-accent-text); }

/* ---------------------------------------------------------
   ボタン・タグ
   --------------------------------------------------------- */
.pieces .pieces-btn-wrap { margin: 28px 0 0; }
.pieces-companies + .pieces-btn-wrap { text-align: center; margin-top: 40px; }
.pieces .pieces-btn {
	display: inline-flex; align-items: center; gap: 32px; min-height: 48px; padding: 0 24px;
	border: 1px solid var(--wp-ink); color: var(--wp-ink); font-size: 14px; letter-spacing: .08em;
	transition: background-color .2s, color .2s;
}
.pieces .pieces-btn:hover { background: var(--wp-ink); color: var(--wp-ground); }
.pieces-btn__arrow { transition: transform .2s; }
.pieces-btn:hover .pieces-btn__arrow { transform: translateX(4px); }

.pieces .pieces-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.pieces .pieces-tags li { margin: 0; padding: 0; }
.pieces .pieces-tags li::before { content: none; }
.pieces .pieces-tags .c-tagList__link {
	padding: 4px 10px; border: 1px solid var(--wp-rule); background: transparent; color: var(--wp-sub); font-size: 12px; line-height: 1.4;
}
.pieces .pieces-tags .c-tagList__link:hover { border-color: var(--wp-accent-text); color: var(--wp-accent-text); }

/* ---------------------------------------------------------
   記事ページ
   --------------------------------------------------------- */
/* 冒頭：業種・タイトル・会社名・タグを1カラムで */
.pieces-article__hero { padding: 16px 0 28px; border-bottom: 1px solid var(--wp-rule); }
.pieces-article__hero .pieces-meta { margin: 0; }
.pieces .pieces-article__title {
	margin: 0 0 16px; padding: 0; border: 0; background: none;
	color: var(--wp-ink); font-family: var(--wp-serif); font-weight: 600;
	font-size: clamp(26px, 3vw, 36px); line-height: 1.6; letter-spacing: .02em;
}
.pieces .pieces-article__title::before, .pieces .pieces-article__title::after { content: none; }
.pieces-article__image img, .pieces-article__image .pieces-noimage { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* 本文まわりは読みやすい幅にそろえる */
.pieces-article__body { max-width: 760px; margin: 0 auto; }

/* イントロダクション（左）と画像（右） */
.pieces-article__lead {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 3.5vw, 48px); align-items: stretch;
	margin-top: clamp(32px, 4vw, 48px);
}
.pieces-article__lead.is-image-only { grid-template-columns: minmax(0, 1fr); }
/* 画像はイントロダクションと同じ高さにそろえ、写真の中央を切り抜いて見せる */
.pieces-article__lead:not(.is-image-only) .pieces-article__image { position: relative; min-height: 280px; }
.pieces-article__lead:not(.is-image-only) .pieces-article__image :is(img, .pieces-noimage) {
	position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center;
}
.pieces-intro { padding: 0; border: 0; }
.pieces-intro p:not(.pieces-kicker) { margin: 0 0 .8em; color: var(--wp-text); line-height: 2; }
.pieces-intro p:last-child { margin-bottom: 0; }

/* 目次：明朝の番号付き */
.pieces-toc { margin: clamp(64px, 8vw, 96px) 0 56px; }
.pieces-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: pieces-toc; }
.pieces-toc li { counter-increment: pieces-toc; border-bottom: 1px solid var(--wp-rule); }
.pieces-toc a { display: flex; gap: 20px; padding: 14px 4px; color: var(--wp-ink); }
.pieces-toc a::before { content: counter(pieces-toc, decimal-leading-zero); flex: none; color: var(--wp-accent-text); font-family: var(--wp-serif); }

/* 本文の見出し：SWELLの見出し装飾を打ち消し、上罫線＋番号＋明朝にする */
.pieces-article .post_content { counter-reset: pieces-h2; }
.pieces-article .post_content h2 {
	counter-increment: pieces-h2;
	margin: 80px 0 24px; padding: 24px 0 0; border: 0; border-top: 1px solid var(--wp-ink); border-radius: 0;
	background: none; box-shadow: none; color: var(--wp-ink);
	font-family: var(--wp-serif); font-weight: 600; font-size: clamp(22px, 2.4vw, 26px); line-height: 1.6; text-align: left;
}
.pieces-article .post_content > h2 { margin-left: 0; margin-right: 0; }
.pieces-article .post_content h2::before {
	content: counter(pieces-h2, decimal-leading-zero); display: block;
	position: static; width: auto; height: auto; margin: 0 0 6px; border: 0; background: none; transform: none;
	color: var(--wp-accent-text); font-family: var(--wp-serif); font-weight: 500; font-size: 18px; line-height: 1;
}
.pieces-article .post_content h2::after { content: none; display: none; }
.pieces-article .post_content h3 {
	margin: 48px 0 16px; padding: 0; border: 0; background: none;
	color: var(--wp-ink); font-family: var(--wp-serif); font-weight: 600; font-size: 20px; line-height: 1.6;
}
.pieces-article .post_content h3::before, .pieces-article .post_content h3::after { content: none; display: none; }
.pieces-article .post_content p { color: var(--wp-text); line-height: 2; }

/* 読者へのメッセージ：タイトルと同じ幅。サイドバーと同じ背景・文字色の面で、本文とは別のひと言とわかるようにする */
.pieces-message {
	margin: var(--wp-space) 0 0; padding: 32px clamp(24px, 4vw, 44px);
	border: 0; background: rgba(255, 255, 255, .6);
}
.pieces .pieces-message__text p { margin: 0 0 1em; color: var(--wp-text); line-height: 2; }
.pieces .pieces-message__text p:last-child { margin-bottom: 0; }
.pieces .pieces-message .pieces-btn-wrap { margin-top: 24px; }

/* よくある質問：SWELLのFAQの並びはそのまま、Q・Aを明朝の文字にする */
.pieces-faq { margin-top: var(--wp-space); }
.pieces .swell-block-faq .swell-block-faq__item { border-color: var(--wp-rule); }
.pieces .swell-block-faq .faq_q { color: var(--wp-ink); }
.pieces .swell-block-faq .faq_q::before,
.pieces .swell-block-faq .faq_a::before {
	/* 質問・答えの1行目と同じ高さにそろえる（SWELLの上余白1rem・行の高さ1.5に合わせる） */
	background: none; border: 0; color: var(--wp-accent-text); font-family: var(--wp-serif); font-size: 20px;
	top: 1rem; height: 1.5rem; line-height: 1.5rem; display: flex; align-items: center;
}
.pieces .swell-block-faq .faq_a::before { color: var(--wp-sub); }
.pieces .swell-block-faq .faq_a { color: var(--wp-text); }

/* 会社について・企業ページ */
.pieces-company-box {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center;
	padding: 32px 0; border-top: 1px solid var(--wp-ink); border-bottom: 1px solid var(--wp-rule);
}
.pieces-company-box--hero { border-top: 0; padding-top: 16px; }
.pieces-company-box__image img, .pieces-company-box__image .pieces-noimage { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pieces .pieces-company-box__name {
	margin: 0 0 6px; padding: 0; border: 0; background: none;
	color: var(--wp-ink); font-family: var(--wp-serif); font-weight: 600; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.5;
}
.pieces .pieces-company-box__name::before, .pieces .pieces-company-box__name::after { content: none; }
.pieces-company-box p { margin-bottom: .75em; }

/* ---------------------------------------------------------
   一覧：カテゴリーの切り替え
   --------------------------------------------------------- */
.pieces-chips { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 0 48px; padding: 0 0 16px; list-style: none; border-bottom: 1px solid var(--wp-rule); }
.pieces-chips li { margin: 0; padding: 0; }
.pieces-chips li::before { content: none; }
.pieces-chips a { display: inline-block; padding: 8px 0; color: var(--wp-sub); font-size: 12px; letter-spacing: .2em; border-bottom: 2px solid transparent; }
.pieces-chips a:hover { color: var(--wp-ink); }
.pieces-chips a.is-current { color: var(--wp-ink); border-bottom-color: var(--wp-accent); }

/* ページ送り */
.pieces .c-pagination .page-numbers { background: transparent; color: var(--wp-ink); }
.pieces .c-pagination .page-numbers.current { background: var(--wp-ink); color: var(--wp-ground); }

/* SWELLの本文（post_content）の中に置いたときのリストの点を出さない */
.post_content .pieces-sc .p-postList { padding-left: 0; }

/* ---------- タブレット ---------- */
@media (max-width: 959px) {
	.pieces-explore { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pieces-companies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pieces-hero.wp-block-columns, .pieces-company-box { grid-template-columns: minmax(0, 1fr); }
	.pieces-pickup { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "thumb" "body"; }
	.pieces-hero > .wp-block-column:last-child { order: -1; }
	.pieces-article__lead { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
	.pieces-article__lead .pieces-article__image { order: -1; }
	.pieces-article__lead:not(.is-image-only) .pieces-article__image { position: static; min-height: 0; }
	.pieces-article__lead:not(.is-image-only) .pieces-article__image :is(img, .pieces-noimage) { position: static; height: auto; aspect-ratio: 4 / 3; }
}

/* ---------- スマートフォン ---------- */
@media (max-width: 599px) {
	.pieces-explore { grid-template-columns: minmax(0, 1fr); }
	.pieces .pieces-ttl { column-gap: 14px; }
	.pieces .pieces-btn { width: 100%; justify-content: space-between; }
}

/* =========================================================
   サイドバー（検索・企業・業種・テーマ）
   トップ・記事・一覧ページの右側。959px以下では本文の下に並ぶ。
   ========================================================= */
/* SWELLは「サイドバーなし」のとき本文を記事幅（900px）に狭めるので、
   WORK PIECESでは自前のサイドバーを置く分、サイトの横幅（1200px）いっぱいに戻す */
#body_wrap.is-work-pieces .l-mainContent.l-article { max-width: none; }
/* 本文とサイドバーの幅・間隔は、サイトのサイドバー付きページ（サービス事例など）に合わせる */
.pieces-layout { display: grid; grid-template-columns: minmax(0, 1fr) 304px; column-gap: 48px; align-items: start; }
.pieces-layout__main { min-width: 0; }
.pieces-page--hero { margin-bottom: var(--wp-space); }
.pieces-layout__main > .pieces-page > :first-child,
.pieces-layout__main > :first-child { margin-top: 0; }

.pieces-sidebar { display: flex; flex-direction: column; gap: 20px; }
.pieces-side-box { padding: 20px 20px 16px; border: 1px solid var(--wp-rule); background: rgba(255, 255, 255, .6); }
.pieces-side-box__en {
	display: flex; align-items: center; gap: 6px; margin: 0;
	color: var(--wp-sub); font-size: 11px; letter-spacing: .2em; line-height: 1.6;
}
.pieces-side-box__ttl {
	margin: 2px 0 10px; padding-bottom: 12px; border-bottom: 1px solid var(--wp-rule);
	color: var(--wp-ink); font-family: var(--wp-serif); font-weight: 600; font-size: 16px; line-height: 1.5;
}
.pieces-side-box__icon, .pieces-search__btn::before {
	content: ""; display: inline-block; width: 13px; height: 13px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 検索窓 */
.pieces-search { position: relative; margin: 10px 0 4px; }
.pieces .pieces-search__input {
	width: 100%; height: 42px; margin: 0; padding: 0 40px 0 12px;
	border: 1px solid var(--wp-rule); border-radius: 0; background: #fff; box-shadow: none;
	color: var(--wp-text); font-size: 14px;
}
.pieces .pieces-search__input:focus { outline: none; border-color: var(--wp-ink); }
.pieces .pieces-search__btn {
	position: absolute; top: 0; right: 0; display: flex; align-items: center; justify-content: center;
	width: 40px; height: 42px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--wp-sub); cursor: pointer;
}
.pieces .pieces-search__btn::before { width: 16px; height: 16px; }
.pieces .pieces-search__btn:hover { color: var(--wp-ink); }

/* 企業・業種のリスト */
.pieces-side-list { margin: 0; padding: 0; list-style: none; }
.pieces-side-list li { margin: 0; padding: 0; }
.pieces-side-list li::before { content: none; }
.pieces-side-list li + li { border-top: 1px solid var(--wp-rule); }
.pieces .pieces-side-list a {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 11px 2px; color: var(--wp-text); font-size: 14px; line-height: 1.5;
}
.pieces .pieces-side-list a:hover, .pieces .pieces-side-list a.is-current { color: var(--wp-accent-text); }
.pieces .pieces-side-list a.is-current { font-weight: 600; }
.pieces-side-list__arrow { color: var(--wp-sub); font-size: 16px; line-height: 1; transition: transform .2s; }
.pieces .pieces-side-list a:hover .pieces-side-list__arrow { transform: translateX(3px); color: var(--wp-accent-text); }

/* テーマ（タグ） */
.pieces-side-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; padding: 0; list-style: none; }
.pieces-side-tags li { margin: 0; padding: 0; }
.pieces-side-tags li::before { content: none; }
.pieces .pieces-side-tags a {
	display: inline-block; padding: 4px 10px; border: 1px solid var(--wp-rule); background: #fff;
	color: var(--wp-sub); font-size: 12px; line-height: 1.6;
}
.pieces .pieces-side-tags a:hover, .pieces .pieces-side-tags a.is-current { border-color: var(--wp-accent-text); color: var(--wp-accent-text); }

.pieces-empty { color: var(--wp-sub); }
.pieces .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* PCではサイドバーに業種があるので、一覧上部の業種の並びは隠す（スマホでは使う） */
@media (min-width: 960px) {
	.pieces-layout .pieces-chips { display: none; }
}
@media (max-width: 1100px) and (min-width: 960px) {
	.pieces-layout { grid-template-columns: minmax(0, 1fr) 260px; column-gap: 40px; }
}
@media (max-width: 959px) {
	.pieces-layout { grid-template-columns: minmax(0, 1fr); row-gap: var(--wp-space); }
	.pieces-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.pieces-sidebar > .pieces-side-box:first-child { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
	.pieces-sidebar { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   JOBS：求人情報（外部サイト）への案内バナー（トップの一番下）
   ブロック：グループ（クラス pieces-jobs）の中に、英字・見出し・説明・リンクの段落
   ========================================================= */
.pieces .pieces-jobs {
	position: relative; margin-top: var(--wp-space); padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
	border-radius: var(--wp-radius); background: var(--wp-ink); color: #fff;
	transition: background-color .2s;
}
.pieces .pieces-jobs:hover { background: #33302B; }
.pieces .pieces-jobs > *, .pieces .pieces-jobs > .wp-block-group__inner-container > * { margin: 0; }
.pieces .pieces-jobs .pieces-jobs__en { color: rgba(255, 255, 255, .6); font-size: 11px; letter-spacing: .24em; }
.pieces .pieces-jobs .pieces-jobs__ttl {
	margin: 6px 0 10px; padding: 0; border: 0; background: none; color: #fff;
	font-family: var(--wp-serif); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.5;
}
.pieces .pieces-jobs .pieces-jobs__ttl::before, .pieces .pieces-jobs .pieces-jobs__ttl::after { content: none; display: none; }
.pieces .pieces-jobs .pieces-jobs__text { color: rgba(255, 255, 255, .8); font-size: 14px; line-height: 1.8; }
.pieces .pieces-jobs .pieces-jobs__link { margin-top: 20px; font-size: 13px; font-weight: 600; letter-spacing: .16em; }
.pieces .pieces-jobs .pieces-jobs__link a { color: #fff; text-decoration: none; }
/* 枠全体をクリックできるようにする */
.pieces .pieces-jobs .pieces-jobs__link a::after { content: ""; position: absolute; inset: 0; border-radius: var(--wp-radius); }


/* ---------------------------------------------------------
   求人ボタン（企画者メッセージの白枠の中）・LINE友だち追加
   ※ work-pieces.css の最後に追記する
   --------------------------------------------------------- */

/* 求人ボタン：メッセージの下に細い線を引いて区切る */
.pieces .pieces-message .pieces-job {
	margin-top: 28px; padding-top: 28px;
	border-top: 1px solid var(--wp-rule);
}
.pieces .pieces-message.is-cta-only .pieces-job { margin-top: 20px; padding-top: 0; border-top: 0; }

/* 赤いボタン（求人） */
.pieces .pieces-btn--accent {
	width: auto; min-width: 320px; min-height: 56px; padding: 0 28px;
	border-color: var(--wp-accent); background: var(--wp-accent); color: #fff;
	font-size: 16px; font-weight: 700; letter-spacing: .04em;
}
.pieces .pieces-btn--accent:hover { border-color: var(--wp-accent-text); background: var(--wp-accent-text); color: #fff; }

/* LINE友だち追加 */
.pieces-line {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
	margin: var(--wp-space) 0 0; padding: 32px clamp(24px, 4vw, 44px);
	background: rgba(255, 255, 255, .6);
}
.pieces .pieces-line p { margin: 0; }
.pieces .pieces-line__label { color: #06C755; font-size: 13px; font-weight: 700; letter-spacing: .12em; line-height: 1.4; }
.pieces .pieces-line__title { margin-top: 6px; color: var(--wp-ink); font-family: var(--wp-serif); font-size: 22px; font-weight: 500; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.pieces .pieces-line__desc { margin-top: 10px; color: var(--wp-text); font-size: 16px; line-height: 1.9; }
.pieces-line__btn-wrap { display: none; margin-top: 20px; }
.pieces .pieces-line__btn {
	display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 24px;
	border-radius: 999px; background: #06C755; color: #fff;
	font-size: 16px; font-weight: 700; letter-spacing: .04em; text-decoration: none;
	transition: opacity .2s;
}
.pieces .pieces-line__btn:hover { opacity: .85; color: #fff; }
.pieces-line__qr { text-align: center; }
.pieces-line__qr img { display: block; width: 120px; height: 120px; margin: 0 auto; background: #fff; padding: 6px; }
.pieces .pieces-line__qr p { margin-top: 8px; color: var(--wp-sub); font-size: 13px; line-height: 1.5; }

/* QR画像がまだ無いときは、PCでもボタンを出す */
.pieces-line:not(:has(.pieces-line__qr)) .pieces-line__btn-wrap { display: block; max-width: 360px; }

/* スマホ：QRコードの代わりにボタン */
@media (max-width: 767px) {
	.pieces-line { display: block; }
	.pieces .pieces-line__title { font-size: 20px; }
	.pieces-line__qr { display: none; }
	.pieces-line__btn-wrap { display: block; }
	.pieces .pieces-btn--accent { width: 100%; min-width: 0; }
}
