/*
Theme Name: WorkTypes 2026
Theme URI: https://work-types.com/
Author: WorkTypes
Author URI: https://work-types.com/
Description: WorkTypes の会社サイト（お仕事の内容・業種から探す・ブログ）用の Twenty Twenty-Five 子テーマ。0.2.0＝B案「店先のルポ」×文言1（白黒の文字と罫＋カラーの写真）。色・書体・余白は theme.json、ここには theme.json とブロックで書けない並び・レスポンシブ・小さな部品だけを置く。
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Version: 0.2.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: worktypes-2026
Tags: block-theme, full-site-editing, one-column, wide-blocks, block-patterns
*/

/* ============================================================
 * 0. 土台
 * ========================================================== */
/* ヘッダー・本文・フッターの間に余白を入れない（各セクションが罫線で区切る） */
body .wp-site-blocks > * {
	margin-block-start: 0;
}

h1, h2, h3 {
	word-break: auto-phrase;
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

a {
	text-underline-offset: 0.3em;
}

.wt-link-offset a {
	text-underline-offset: 6px;
}

.wt-plain-links a,
.wp-block-navigation a {
	text-decoration: none;
}

/* 黒い面の上のリンク：ホバーで #4A4A4A にすると読めないので #A8A8A8 */
.has-contrast-background-color a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--muted-dark);
}

/* ラベル（0.2.0 から本文と同じ書体）は行間を詰める（ブロック側で指定があればそちらが勝つ） */
:where(p.has-mono-font-family) {
	line-height: 1.5;
}

/* グリッドの縦位置（グリッドのブロックには縦位置の設定がないため） */
.wt-align-center { align-items: center; }
.wt-align-end { align-items: end; }
.wt-align-start { align-items: start; }

.wt-measure { max-width: 32em; }

/* ============================================================
 * 1. 共通の部品（B案）
 * ========================================================== */
.wt-section {
	padding-top: clamp(48px, 7vw, 88px);
	padding-bottom: clamp(48px, 7vw, 88px);
	border-top: 1px solid var(--wp--preset--color--contrast);
}

.wt-eyebrow {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.6;
}

/* 左に短い罫のつく小見出し（メインの「小さな事業の、外のスタッフ」） */
.wt-eyebrow--rule {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 15px;
	letter-spacing: 0.06em;
}

.wt-eyebrow--rule::before {
	content: "";
	flex: 0 0 auto;
	width: 32px;
	height: 2px;
	background: currentColor;
}

.wt-h2 {
	font-size: clamp(30px, 3.6vw, 48px);
	line-height: 1.35;
}

.wt-h2--l {
	font-size: clamp(30px, 4vw, 52px);
}

.wt-body {
	font-size: 16px;
	line-height: 2;
	color: #333333;
}

.wt-text {
	font-size: 16px;
	line-height: 1.8;
	color: #333333;
}

.wt-num {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.wt-strong {
	font-weight: 700;
}

.wt-note {
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

/* 文字のリンク（押せる高さ 44px 以上） */
.wt-textlink {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.7;
}

.wt-textlink a {
	display: inline-block;
	padding: 12px 0;
	text-underline-offset: 6px;
}

/* 業種の記事がまだ無いときの表示（リンクにしない） */
.wt-soon {
	display: inline-block;
	padding: 12px 0;
	font-weight: 500;
	color: var(--wp--preset--color--muted);
}

/* 印（「ブログ記事」） */
.wt-tag {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border: 1px solid var(--wp--preset--color--contrast);
	font-weight: 700;
	line-height: 1.6;
}

.wt-tag--dark {
	min-height: 30px;
	padding: 0 12px;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.wt-label {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
}

.wt-date {
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

/* ボタン（黒＝高さ 54px／枠線＝52px） */
.wt-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 28px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
}

.wt-btn.is-style-outline .wp-block-button__link {
	min-height: 52px;
	padding: 0 26px;
}

/* 0.1.x のボタン（記事に入れたパターンで使う） */
.wt-btn-sm .wp-block-button__link,
.wt-btns-sm .wp-block-button__link,
.wt-btn-lg .wp-block-button__link {
	display: inline-flex;
	align-items: center;
}

.wt-btn-sm .wp-block-button__link {
	min-height: 44px;
	padding: 0 20px;
	font-size: 15px;
	font-weight: 500;
}

.wt-btns-sm .wp-block-button__link {
	min-height: 44px;
	padding: 0 16px;
	font-size: 14px;
}

.wt-btns-sm .is-style-outline .wp-block-button__link {
	font-weight: 400;
	border-width: 1px;
}

.wt-btn-lg .wp-block-button__link {
	min-height: 60px;
	padding: 0 36px;
	font-size: 17px;
}

/* カード全体をリンクにする（.wt-stretch の中のリンクが箱いっぱいに広がる） */
.wt-card-link {
	position: relative;
}

.wt-card-link .wt-stretch a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.wt-card-link .wp-block-post-terms a {
	position: relative;
	z-index: 3;
}

.wt-card-link:hover .wt-stretch a {
	text-decoration: underline;
}

.wt-card-link .wt-stretch a:focus-visible {
	outline: none;
}

.wt-card-link .wt-stretch a:focus-visible::after {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ============================================================
 * 2. ヘッダー（ロゴ・ナビ。760px 以下は「メニュー」で開閉）
 * ========================================================== */
.wt-header {
	border-bottom: 1px solid var(--wp--preset--color--contrast);
}

.wt-header-row {
	padding-top: 14px;
	padding-bottom: 14px;
}

.wt-brand {
	flex: 1 1 auto;
	min-width: 0;
}

.wt-brand figure {
	flex: 0 0 auto;
}

.wt-brand-text {
	min-width: 0;
}

.wt-brand-name {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 24px;
	font-weight: 900;
	line-height: 1;
}

.wt-brand-name a {
	display: inline-block;
	padding: 10px 0;
	margin: -10px 0;
	color: inherit;
}

.wt-brand-tag {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted);
}

.wt-nav .wp-block-navigation-item__content {
	padding: 12px 0;
}

.wt-nav .wt-nav-cta .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-weight: 700;
}

.wt-nav .wt-nav-cta .wp-block-navigation-item__content:hover,
.wt-nav .wt-nav-cta .wp-block-navigation-item__content:focus {
	background: #4A4A4A;
	color: var(--wp--preset--color--base);
}

/* 「メニュー」ボタン（WordPress のナビの開くボタンに枠と文字を足す） */
.wt-nav .wp-block-navigation__responsive-container-open {
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
}

.wt-nav .wp-block-navigation__responsive-container-open::after {
	content: "メニュー";
}

.wt-nav .wp-block-navigation__responsive-container-open svg {
	width: 20px;
	height: 20px;
}

/* 開いたメニュー：縦に並べ、1行 52px・18px、相談フォームは黒い帯 */
.wt-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 14px 16px 32px;
}

.wt-nav .wp-block-navigation__responsive-container-close {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--contrast);
	font-size: 16px;
	font-weight: 700;
	top: 14px;
	right: 16px;
}

.wt-nav .wp-block-navigation__responsive-container-close::after {
	content: "閉じる";
}

.wt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 76px;
	align-items: stretch;
}

.wt-nav .is-menu-open .wp-block-navigation__container {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
	border-top: 1px solid var(--wp--preset--color--contrast);
}

.wt-nav .is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wt-nav .is-menu-open .wp-block-navigation-item__content.wp-block-navigation-item__content {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 52px;
	padding: 0 4px;
	font-size: 18px;
}

.wt-nav .is-menu-open .wt-nav-cta {
	margin-top: 12px;
	border-bottom: 0;
}

.wt-nav .is-menu-open .wt-nav-cta .wp-block-navigation-item__content.wp-block-navigation-item__content {
	justify-content: center;
	padding: 0 16px;
}

/* WordPress の切り替え（600px）を、デザインの 760px に合わせる */
@media (min-width: 600px) and (max-width: 760px) {
	.wt-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.wt-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* ============================================================
 * 3. メイン（0.2.1：写真＋言葉。写真は言葉の塊と同じ高さに伸び縮み）
 *    PC＝左に写真・右に言葉／900px 以下＝写真 → 言葉
 * ========================================================== */
.wt-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
	align-items: stretch;
}

.wt-hero > * {
	margin: 0;
	min-width: 0;
}

.wt-hero > .wt-hero-media {
	position: relative;
	/* 写真の最低の高さ（言葉の塊がこれより高いときは、言葉の高さまで伸びる） */
	min-height: clamp(420px, 40vw, 560px);
	background: #C6C6C4;
}

.wt-hero-photo {
	position: absolute;
	inset: 0;
	margin: 0;
}

.wt-hero-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 40% 50%;
}

.wt-hero > .wt-hero-text {
	padding: clamp(32px, 4vw, 56px) clamp(16px, 4.6vw, 64px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	container-type: inline-size;
}

.wt-hero-text > * {
	margin-block: 0;
}

.wt-hero-text > * + * {
	margin-block-start: 22px;
}

.wt-hero-title {
	/* 3行（いちばん長い「仕事を、まとめて」＝8文字）が1行ずつに収まる大きさまで（列の幅の 12%） */
	font-size: clamp(34px, min(5.2vw, 12cqi), 64px);
	line-height: 1.32;
}

.wt-hero-lead {
	font-size: 17px;
	line-height: 2;
	color: #333333;
}

.wt-hero-sub {
	padding-top: 14px;
	border-top: 1px solid var(--wp--preset--color--contrast);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.8;
	color: #333333;
}

.wt-actions {
	padding-top: 4px;
}

@media (max-width: 900px) {
	.wt-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.wt-hero > .wt-hero-media {
		/* 写真は横長 3:2 の高さ（上限 460px） */
		min-height: 0;
		height: min(66.67vw, 460px);
	}

	.wt-hero > .wt-hero-text {
		padding-top: 32px;
		padding-bottom: 40px;
	}
}

/* ============================================================
 * 4. お仕事の内容（4つを同じ重さで）
 * ========================================================== */
.wt-work-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
	gap: 0 32px;
	border-top: 2px solid var(--wp--preset--color--contrast);
}

.wt-work-grid > .wt-work-item {
	margin: 0;
	padding: 22px 0 24px;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wt-work-title {
	font-size: 24px;
	line-height: 1.4;
}

/* ============================================================
 * 5. 業種から探す（大1＋小4。小は PC もスマホも2列）
 * ========================================================== */
.wt-industries-inner {
	display: flex;
	flex-direction: column;
	gap: clamp(28px, 4vw, 48px);
}

.wt-industries-inner > * {
	margin: 0;
}

.wt-head-row {
	align-items: flex-end;
}

.wt-head-note {
	max-width: 28em;
}

.wt-ind-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
}

.wt-ind-wrap > .wt-ind-big {
	flex: 1 1 500px;
	min-width: 0;
	margin: 0;
}

.wt-ind-photo {
	margin: 0;
}

.wt-ind-photo img {
	display: block;
	width: 100%;
	object-fit: cover;
	background: #C6C6C4;
}

.wt-ind-big .wt-ind-photo img {
	height: clamp(240px, 44vw, 560px);
}

.wt-ind-photo--s img {
	height: auto;
	aspect-ratio: 4 / 3;
}

.wt-ind-big-row {
	padding-top: 12px;
	border-top: 2px solid var(--wp--preset--color--contrast);
}

.wt-ind-big-row.wt-ind-big-row {
	align-items: baseline;
}

.wt-ind-name {
	font-size: clamp(24px, 2.4vw, 28px);
	line-height: 1.2;
}

.wt-ind-name--l {
	font-size: clamp(30px, 3.2vw, 40px);
}

.wt-ind-big-text {
	flex: 1 1 240px;
}

.wt-ind-wrap > .wt-ind-grid {
	flex: 1 1 480px;
	min-width: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px clamp(14px, 2vw, 24px);
}

.wt-ind-grid > .wt-ind-card {
	min-width: 0;
	margin: 0;
}

.wt-ind-card-head {
	padding-top: 8px;
	border-top: 2px solid var(--wp--preset--color--contrast);
}

.wt-ind-card-head.wt-ind-card-head {
	align-items: baseline;
}

.wt-ind-link a,
.wt-ind-more a {
	text-underline-offset: 5px;
}

/* ============================================================
 * 6. ブログ（黒い帯の見出し。色が付くのは記事の画像だけ）
 * ========================================================== */
.wt-blog {
	padding-bottom: clamp(48px, 7vw, 96px);
}

.wt-band {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.wt-band a {
	color: var(--wp--preset--color--base);
}

.wt-band a:hover {
	color: #D0D0D0;
}

.wt-band-row {
	padding-top: 28px;
	padding-bottom: 28px;
}

.wt-band-title {
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(36px, 5vw, 60px);
	font-weight: 900;
	line-height: 1.1;
}

.wt-band-title--s {
	font-size: clamp(28px, 3.6vw, 44px);
	line-height: 1.3;
}

.wt-band-sub {
	padding-bottom: 6px;
	font-size: 13px;
	letter-spacing: 0.1em;
	color: #D0D0D0;
}

.wt-blog-cols {
	display: flex;
	flex-wrap: wrap;
	gap: 36px 56px;
	padding-top: clamp(28px, 4vw, 48px);
}

.wt-blog-cols > .wt-blog-pick {
	flex: 1 1 560px;
	min-width: 0;
	margin: 0;
}

.wt-blog-cols > .wt-blog-latest {
	flex: 1 1 360px;
	min-width: 0;
	margin: 0;
}

.wt-blog .wp-block-post-template,
.wt-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wt-meta-row {
	font-size: 16px;
	font-weight: 700;
}

.wt-meta-row > *,
.wt-meta-row .wt-date {
	margin: 0;
	font-size: 16px;
}

.wt-pick-title {
	font-size: clamp(22px, 2.6vw, 32px);
	line-height: 1.5;
}

.wt-pick-title a,
.wt-card-title a,
.wt-row-title a {
	text-decoration: none;
}

.wt-pick-excerpt p,
.wt-card-excerpt p {
	margin: 0;
	font-size: 16px;
	line-height: 1.9;
	color: #333333;
}

.wt-list-head {
	padding-bottom: 10px;
	border-bottom: 2px solid var(--wp--preset--color--contrast);
	font-size: 16px;
	font-weight: 700;
}

.wt-blog-latest > .wp-block-query {
	margin: 0;
}

.wt-rows > li {
	margin: 0;
}

.wt-row {
	padding: 16px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wt-thumb {
	position: relative;
	flex: 0 0 112px;
	width: 112px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #E2E2E0;
}

.wt-row > .wt-row-body {
	flex: 1 1 auto;
	min-width: 0;
}

.wt-row-title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
}

.wt-row-title a {
	display: block;
	padding: 6px 0;
}

/* 3つの行き先（note／お仕事のご相談／WorkTypesLab） */
.wt-dest {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 0 32px;
	padding-top: clamp(40px, 5vw, 64px);
}

.wt-dest > .wt-dest-item {
	margin: 0;
	padding: 18px 0;
	border-top: 2px solid var(--wp--preset--color--contrast);
}

.wt-dest-kicker {
	font-size: 16px;
	color: var(--wp--preset--color--muted);
}

.wt-dest-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 22px;
	font-weight: 900;
	line-height: 1.5;
}

.wt-dest-title a,
.wt-next-title a {
	text-decoration: none;
}

/* ============================================================
 * 7. WorkTypesについて・相談・フッター
 * ========================================================== */
.wt-about {
	border-top: 0;
	background: var(--wp--preset--color--surface);
}

.wt-about-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	gap: 20px 64px;
	align-items: start;
}

.wt-about-cols > * {
	margin: 0;
}

.wt-about-title {
	font-size: clamp(28px, 3.4vw, 44px);
	line-height: 1.45;
}

.wt-dl {
	border-top: 1px solid var(--wp--preset--color--contrast);
}

.wt-dl > .wt-dl-row {
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: 16px;
	line-height: 1.7;
}

.wt-dl-row > p {
	margin: 0;
}

.wt-dl-row > .wt-dl-term {
	flex: 0 0 7em;
	color: var(--wp--preset--color--muted);
}

.wt-log {
	/* 0.2.1：ほかの節と同じ幅いっぱい。PC は左＝午前・右＝午後の2列 */
	width: 100%;
	padding: clamp(16px, 2.6vw, 36px);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast);
}

.wt-log > * {
	margin: 0;
}

.wt-log-head {
	padding-bottom: 14px;
	border-bottom: 2px solid var(--wp--preset--color--contrast);
}

.wt-log-head > p {
	margin: 0;
}

.wt-log-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(20px, 2vw, 24px);
	font-weight: 900;
	line-height: 1.4;
}

.wt-log-note {
	font-size: 16px;
	color: var(--wp--preset--color--muted);
}

.wt-log > .wt-log-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(32px, 4vw, 56px);
	align-items: start;
}

.wt-log-col > * {
	margin: 0;
}

.wt-log-col > .wt-log-half {
	padding: 16px 0 10px;
	border-bottom: 1px solid var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 20px;
	font-weight: 900;
	line-height: 1.4;
}

.wt-log-col > .wt-log-row {
	padding: 12px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: 16px;
	line-height: 1.7;
}

.wt-log-col > .wt-log-row:last-child {
	border-bottom: 0;
}

.wt-log-row > p {
	margin: 0;
}

.wt-log-row > .wt-log-time {
	flex: 0 0 48px;
	color: var(--wp--preset--color--muted);
	font-variant-numeric: tabular-nums;
}

.wt-log-row > .wt-log-task {
	flex: 1 1 auto;
	min-width: 0;
}

.wt-log-row > .wt-log-status {
	flex: 0 0 auto;
	font-weight: 700;
}

@media (max-width: 860px) {
	.wt-log > .wt-log-cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.wt-log-col + .wt-log-col > .wt-log-half {
		padding-top: 28px;
	}
}

/* 相談の帯（0.2.2：低めに。PC は 見出し｜説明とボタン｜WorkTypesLab の枠 の1段） */
.wt-contact.wt-contact {
	padding-top: clamp(24px, 3.5vw, 44px);
	padding-bottom: clamp(24px, 3.5vw, 44px);
	border-top: 6px solid var(--wp--preset--color--contrast);
}

.wt-contact-row {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr) minmax(240px, 300px);
	gap: 20px clamp(28px, 3.6vw, 48px);
	align-items: center;
}

.wt-contact-row > * {
	margin: 0;
	min-width: 0;
}

.wt-contact-title {
	font-size: clamp(24px, 2.6vw, 34px);
	line-height: 1.4;
}

.wt-contact-side > * {
	margin-block: 0;
}

.wt-contact-side > * + * {
	margin-block-start: 14px;
}

.wt-contact-side .wt-body {
	line-height: 1.9;
}

.wt-contact .wt-actions {
	padding-top: 0;
}

/* WorkTypesLab の小さな枠（枠全体がリンク） */
.wt-lab-box {
	padding: 16px 20px 6px;
	border: 1px solid var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
}

.wt-lab-box > * {
	margin-block: 0;
}

.wt-lab-box > * + * {
	margin-block-start: 4px;
}

.wt-lab-kicker {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--muted);
}

.wt-lab-name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 22px;
	font-weight: 900;
	line-height: 1.3;
}

.wt-lab-text {
	font-size: 14px;
	line-height: 1.7;
	color: #333333;
}

.wt-lab-box > .wt-lab-link {
	margin-block-start: 0;
	font-size: 15px;
}

.wt-lab-link a {
	padding: 10px 0;
}

@media (max-width: 1000px) {
	.wt-contact-row {
		grid-template-columns: max-content minmax(0, 1fr);
	}

	.wt-contact-row > .wt-lab-box {
		grid-column: 1 / -1;
		max-width: 420px;
	}
}

@media (max-width: 760px) {
	.wt-contact-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.wt-contact-row > .wt-lab-box {
		max-width: none;
	}
}

/* WorkTypesについて の表のリンク（押せる高さを確保） */
.wt-dl-desc a {
	display: inline-block;
	padding: 9px 0;
	margin: -9px 0;
}

.wt-footer {
	border-top: 1px solid var(--wp--preset--color--contrast);
}

.wt-footer-row {
	padding-top: 32px;
	padding-bottom: 40px;
}

.wt-footer-tag {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 16px;
	font-weight: 700;
}

.wt-footer-nav > p {
	margin: 0;
	font-size: 16px;
}

.wt-footer-nav a {
	display: inline-block;
	padding: 12px 0;
}

.wt-footer-row > .wt-footer-copy {
	flex-basis: 100%;
	margin: 0;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

/* ============================================================
 * 8. 記事ページ（1段組・サイドバーなし・本文 680px）
 * ========================================================== */
.wt-article-head {
	padding-top: clamp(20px, 3.4vw, 40px);
	padding-bottom: clamp(24px, 3.4vw, 40px);
}

.wt-breadcrumb {
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

.wt-breadcrumb > * {
	margin: 0;
}

.wt-breadcrumb a {
	display: inline-block;
	padding: 4px 0;
	color: var(--wp--preset--color--muted);
}

.wt-breadcrumb .wp-block-post-terms {
	font-size: inherit;
	font-weight: 400;
}

.wt-article-meta {
	font-size: 13px;
}

.wt-article-meta p,
.wt-article-meta .wp-block-post-date {
	margin: 0;
	font-size: inherit;
}

.wt-article-meta .wt-tag--dark {
	min-height: 28px;
}

.wt-byline p {
	color: #333333;
}

.wt-article-title {
	font-size: clamp(28px, 4vw, 50px);
	line-height: 1.45;
}

.wt-article-sub {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.6;
	color: #333333;
}

.wt-article-sub:empty {
	display: none;
}

.wt-eyecatch--article {
	aspect-ratio: 1200 / 630;
}

.wt-article {
	padding-top: clamp(32px, 4.4vw, 56px);
	padding-bottom: clamp(48px, 6vw, 80px);
}

.wt-article-main {
	font-size: 17px;
	line-height: 2.1;
}

/* 本文の見出し：番号（01）を上に、太い罫つき */
.wt-article-body {
	counter-reset: wt-h2;
}

.wt-article-body h2 {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-block-start: 52px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(24px, 2.6vw, 30px);
	font-weight: 900;
	line-height: 1.5;
}

.wt-article-body h2::before {
	counter-increment: wt-h2;
	content: counter(wt-h2, decimal-leading-zero);
	display: block;
	padding-top: 12px;
	border-top: 2px solid var(--wp--preset--color--contrast);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.6;
}

.wt-article-body h3 {
	margin-block-start: 40px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 22px;
	font-weight: 900;
	line-height: 1.6;
}

.wt-article-body h4 {
	font-family: var(--wp--preset--font-family--body);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.7;
}

.wt-article-body ul:not(.wt-rule-list),
.wt-article-body ol:not(.wt-points) {
	padding-left: 1.4em;
	font-size: 16px;
	line-height: 1.9;
}

.wt-article-body li + li {
	margin-top: 6px;
}

.wt-article-body .wp-block-quote p {
	margin: 0;
}

.wt-article-body figcaption {
	font-size: 13px;
	line-height: 1.7;
	color: var(--wp--preset--color--muted);
}

/* 記事末の「次の一歩」（note／お仕事のご相談）。
   本文に 0.1.x のパターン「同じことを、自分の仕事でも。」（.wt-next）を入れた記事では、二重にならないようテンプレート側を出さない */
.wt-article-main:has(.wt-next) > .wt-next-b {
	display: none;
}

.wt-next-b {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 52px;
	border-top: 3px solid var(--wp--preset--color--contrast);
	border-bottom: 1px solid var(--wp--preset--color--contrast);
}

.wt-next-b > .wt-next-item {
	margin: 0;
	padding: 22px 20px 22px 0;
	line-height: 1.6;
}

.wt-next-b > .wt-next-item + .wt-next-item {
	padding: 22px 0 22px 20px;
	border-left: 1px solid var(--wp--preset--color--line);
}

.wt-next-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 20px;
	font-weight: 900;
	line-height: 1.6;
}

/* あわせて読みたい・一覧のカード */
.wt-related {
	padding-top: clamp(40px, 5vw, 64px);
	padding-bottom: clamp(56px, 7vw, 88px);
	border-top: 1px solid var(--wp--preset--color--contrast);
}

.wt-related-title {
	font-size: clamp(26px, 2.8vw, 32px);
}

.wt-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 28px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wt-cards > li {
	margin: 0;
}

.wt-cards--list {
	gap: 44px 32px;
}

.wt-card-meta > * {
	margin: 0;
}

.wt-card-title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.6;
}

.wt-card-title a {
	display: block;
	padding: 4px 0;
}

.wt-cards--list .wt-card-title {
	font-size: 18px;
}

/* ============================================================
 * 9. ブログ一覧・カテゴリ・検索・404
 * ========================================================== */
.wt-band--page .wt-band-row {
	padding-top: 0;
	padding-bottom: 0;
}

.wt-band--page {
	padding-top: clamp(28px, 4vw, 44px);
	padding-bottom: clamp(28px, 4vw, 44px);
}

.wt-band-lead,
.wt-band-lead p {
	margin: 0;
	max-width: 40em;
	font-size: 16px;
	line-height: 1.9;
	color: #E6E6E6;
}

.wt-list {
	padding-top: clamp(28px, 4vw, 48px);
	padding-bottom: clamp(56px, 7vw, 96px);
}

/* カテゴリの行（「業種別に読む」と同じ形：罫で区切った文字のリンク） */
.wt-tabs {
	padding: 4px 0;
	border-top: 1px solid var(--wp--preset--color--contrast);
	border-bottom: 1px solid var(--wp--preset--color--contrast);
	font-size: 16px;
	line-height: 1.6;
}

.wt-tabs > * {
	margin: 0;
}

.wt-tabs-label {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px 0 0;
	font-weight: 700;
}

/* カテゴリの一覧（ul）は中身だけを並びに混ぜる（狭い幅でも1項目ずつ折り返す） */
.wt-tab-list {
	display: contents;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wt-tab-list li {
	margin: 0;
}

.wt-tab a,
.wt-tab-list li a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border-left: 1px solid var(--wp--preset--color--line);
	text-decoration: none;
}

.wt-tab.is-current a,
.wt-tab-list li.current-cat a {
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.wt-pagination {
	margin-top: 56px;
	font-weight: 700;
}

.wt-pagination a,
.wt-pagination .page-numbers {
	display: inline-block;
	padding: 10px 8px;
}

.wt-404 {
	border-top: 0;
}

.wt-search {
	max-width: 560px;
}

/* ============================================================
 * 10. アイキャッチ（カラーの画像。画像が無い記事は黒い箱に明朝の文字）
 * ========================================================== */
.wt-eyecatch {
	position: relative;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	padding: clamp(16px, 2.4vw, 28px);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.wt-eyecatch > * {
	margin: 0;
}

.wt-eyecatch-copy {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(28px, 3vw, 44px);
	font-weight: 900;
	line-height: 1.2;
}

.wt-eyecatch--card .wt-eyecatch-copy {
	font-size: clamp(22px, 2vw, 28px);
}

.wt-eyecatch--article .wt-eyecatch-copy {
	font-size: clamp(36px, 4vw, 64px);
}

.wt-eyecatch-copy:has(.wt-eyecatch-fallback) {
	-webkit-line-clamp: 4;
}

.wt-eyecatch-fallback {
	display: block;
	font-size: max(16px, 0.62em);
	line-height: 1.4;
}

.wt-eyecatch-copy--s .wt-eyecatch-fallback {
	font-size: 0.62em;
}

.wt-eyecatch-copy--s:has(.wt-eyecatch-fallback) {
	-webkit-line-clamp: 3;
}

.wt-eyecatch-bar {
	align-self: flex-start;
	width: 72px;
	height: 3px;
	background: var(--wp--preset--color--base);
}

.wt-row-body {
	min-width: 0;
}

/* 0.1.2：アイキャッチ画像がある記事は、文字の枠の上に画像を重ねる（無い記事は文字の枠のまま） */
.wt-eyecatch,
.wt-thumb {
	position: relative;
}

.wt-eyecatch-img {
	position: absolute;
	inset: 0;
	margin: 0 !important;
	z-index: 1;
	pointer-events: none;
}

.wt-eyecatch-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 0.1.3：画像がある記事では、枠の中の文字を隠す（画像の上に透けて見えないように） */
.wt-eyecatch:has(.wt-eyecatch-img img) > :not(.wt-eyecatch-img),
.wt-thumb:has(.wt-eyecatch-img img) > :not(.wt-eyecatch-img) {
	visibility: hidden;
}

/* 0.1.4：アイキャッチ画像はカラーで表示（オーナー指示 2026-10-08） */

/* ============================================================
 * 11. 0.1.x の部品（記事に入れたパターン・お仕事のご相談ページの本文で使う）
 * ========================================================== */
.wt-badge {
	flex-shrink: 0;
	padding: 3px 8px;
	border: 1px solid var(--wp--preset--color--contrast);
	line-height: 1.4;
	white-space: nowrap;
}

.wt-badge-dark {
	padding: 4px 10px;
	border-color: var(--wp--preset--color--muted);
}

ul.wt-rule-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.wt-rule-list > li {
	margin: 0;
	padding: 8px 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

ul.wt-rule-list > li:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

ul.wt-rule-list--under > li {
	padding: 10px 0;
	border-top: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

ol.wt-points {
	margin: 0;
	padding: 8px 20px 12px;
	list-style: none;
	counter-reset: wt-point;
}

ol.wt-points > li {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	gap: 8px;
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	counter-increment: wt-point;
}

ol.wt-points > li:last-child {
	border-bottom: 0;
}

ol.wt-points > li::before {
	content: counter(wt-point);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	color: var(--wp--preset--color--muted);
}

.wt-pr-badge {
	align-self: flex-start;
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--wp--preset--color--contrast);
}

.wt-ad-slot--side {
	aspect-ratio: 6 / 5;
}

.wt-list-rows > li {
	padding: 24px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wt-list-rows > li:first-child {
	padding-top: 0;
}

/* カテゴリの丸ボタン（0.1.x。いまのテンプレートは .wt-tabs を使う） */
.wt-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wt-chips li {
	margin: 0;
}

.wt-chip,
.wt-chips li {
	line-height: 1;
}

.wt-chip a,
.wt-chips li a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	font-size: 14px;
	text-decoration: none;
}

.wt-chip.is-current a,
.wt-chips li.current-cat a {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.wt-side-list > li {
	margin: 0;
}

/* 横並びの見出し列が縮まないように */
.wt-noshrink {
	flex-shrink: 0;
}

/* ── 0.1.1（2026-10-08）────────────────────────────── */
/* 旧テーマ（Emanon）時代の記事本文に残る色つきボタンを、白黒のサイトに合わせる（本文は触らない）。
   0.2.0：パレットの白・黒・面の背景（お仕事のご相談ページの黒い帯の中の白いボタンなど）は対象外にした */
.wp-block-post-content .wp-block-button__link.has-background:not(.has-base-background-color):not(.has-contrast-background-color):not(.has-surface-background-color) {
	background-color: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
	border-radius: 0;
}
/* 広告枠は AdSense の承認までは出さない。承認後、広告を入れた枠に is-live クラスを付けると表示される */
.wt-ad-slot:not(.is-live) {
	display: none !important;
}

/* 0.1.5：記事の表（オーナー指示 2026-10-08「表を使って見やすく」）。
   1列目（日付・部署名・項目）がスマホで「9月9／日」と折れないように最低幅を持たせる。見出し行は左寄せ */
.wp-block-table :is(th, td):first-child {
	min-width: 7em;
}
.wp-block-table th {
	text-align: left;
}
@media (max-width: 600px) {
	.wp-block-table {
		font-size: 14px;
	}
	.wp-block-table :is(th, td) {
		padding: 8px 10px;
	}
}

/* ============================================================
 * 12. スマホ幅（760px 以下＝デザインの切り替え幅）
 *     文字は 16px 以上（表だけは 0.1.5 のまま 14px）・押す所は 44px 以上
 * ========================================================== */
@media (max-width: 760px) {
	html:root {
		--wp--preset--font-size--x-small: 16px;
		--wp--preset--font-size--small: 16px;
	}

	.wt-small,
	.wt-note,
	.wt-label,
	.wt-breadcrumb,
	.wt-article-meta,
	.wt-band-sub,
	.wt-footer-copy,
	.wt-lab-kicker,
	.wt-lab-text,
	.wt-lab-box > .wt-lab-link,
	.wt-article-body figcaption {
		font-size: 16px !important;
	}

	/* ブロックの設定で 11〜15px にした文字（0.1.x の部品・固定ページの本文）も 16px に */
	body [style*="font-size:11px"],
	body [style*="font-size:12px"],
	body [style*="font-size:13px"],
	body [style*="font-size:14px"],
	body [style*="font-size:15px"] {
		font-size: 16px !important;
	}

	.wt-actions > .wt-btns,
	.wt-btns,
	.wt-btns > .wt-btn,
	.wt-btn .wp-block-button__link {
		flex-basis: 100%;
		width: 100%;
	}

	.wt-article-main {
		line-height: 2;
	}

	.wt-article-body.wt-article-body > * + * {
		margin-block-start: 24px;
	}

	.wt-article-body.wt-article-body > h2 {
		margin-block-start: 44px;
	}

	/* アイキャッチはスマホでは端まで */
	.wt-article-eyecatch.wt-article-eyecatch {
		padding-left: 0;
		padding-right: 0;
	}

	.wt-breadcrumb a {
		padding: 10px 0;
	}

	.wt-next-b {
		grid-template-columns: minmax(0, 1fr);
		border-top: 0;
		border-bottom: 0;
		margin-top: 40px;
	}

	.wt-next-b > .wt-next-item,
	.wt-next-b > .wt-next-item + .wt-next-item {
		padding: 18px 0;
		border-left: 0;
		border-top: 3px solid var(--wp--preset--color--contrast);
	}

	.wt-about-cols {
		grid-template-columns: minmax(0, 1fr);
	}

	/* 固定ページの本文（お仕事のご相談）の文字リンクも押せる高さに */
	.wt-link-offset a {
		display: inline-block;
		padding: 10px 0;
	}
}

/* ============================================================
 * 13. 固定ページ（プライバシーポリシーなど）
 * ========================================================== */
.wt-page-head {
	padding-top: clamp(32px, 5vw, 64px);
	padding-bottom: clamp(24px, 3.4vw, 40px);
	border-bottom: 1px solid var(--wp--preset--color--contrast);
}

.wt-page-title {
	font-size: clamp(28px, 4vw, 50px);
	line-height: 1.45;
}

.wt-page {
	padding-top: clamp(32px, 4.4vw, 56px);
	padding-bottom: clamp(56px, 7vw, 96px);
}

.wt-page-body h2 {
	margin-block-start: 48px;
	font-size: clamp(24px, 2.6vw, 30px);
	line-height: 1.5;
}

.wt-page-body h3 {
	font-size: 22px;
	line-height: 1.6;
}

/* 0.2.0：ロゴ下の一行を言葉の切れ目でだけ折り返す（スマホで「効／率化」と割れないように） */
.wt-nowrap {
	display: inline-block;
}

/* 0.2.2：1〜2文字だけ次の行に落ちる改行を減らす（オーナー指摘 2026-10-08「1文字や2文字を残して改行が多い」）。
   日本語を文節で区切って折り返し（word-break: auto-phrase＝Chrome/Edge）、最後の行が短くならないよう整える（text-wrap）。
   本番でブラウザに一時的に当てて測った結果＝記事ページの該当箇所 7→1・12→0・8→1、お仕事のご相談 5→0。Safari は auto-phrase 未対応＝今までどおり */
:where(h1, h2, h3, h4, h5, h6) {
	word-break: auto-phrase;
	text-wrap: balance;
}
:where(p, li, td, th, dd, dt, figcaption, blockquote) {
	word-break: auto-phrase;
	text-wrap: pretty;
}
