@charset "UTF-8";
/*
 * TARGET MARKETING 固定ページ用セクションスタイル
 * 固定ページ本文のブロックに付けたクラス（tm-*）に対応する
 */

:root {
	--tm-navy: #14254a;
	--tm-ink: #1d2230;
	--tm-sub: #5b6273;
	--tm-line: #d8dce3;
	--tm-gray: #f3f4f7;
	--tm-en: "Noto Sans JP", sans-serif;
	--tm-inner: 1180px;
	--tm-gutter: 24px;
}

body {
	overflow-x: clip;
}

/* ---------- セクション ---------- */
.tm-section {
	padding-top: 96px;
	padding-bottom: 96px;
	color: var(--tm-ink);
}

.tm-section > *:first-child,
.tm-section > .wp-block-group__inner-container > *:first-child {
	margin-top: 0;
}

.tm-full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding-left: max(var(--tm-gutter), calc(50vw - var(--tm-inner) / 2));
	padding-right: max(var(--tm-gutter), calc(50vw - var(--tm-inner) / 2));
	box-sizing: border-box;
}

.tm-bg-gray {
	background: var(--tm-gray);
}

.tm-bg-dark {
	background: var(--tm-navy);
	color: #fff;
}

.tm-bg-dark :is(h2, h3, h4, p, li, a) {
	color: #fff;
}

.tm-section:not(.tm-full) + .tm-section:not(.tm-full) {
	border-top: 1px solid var(--tm-line);
}

.article-body > .tm-section:first-child {
	padding-top: 40px;
}

/* ---------- 見出し ---------- */
.wp-block-group.tm-head {
	margin-bottom: 56px;
}

p.tm-en,
.tm-en {
	margin: 0 0 12px;
	font-family: var(--tm-en);
	font-size: clamp(36px, 5vw, 60px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0.02em;
	color: var(--tm-navy);
}

.tm-bg-dark .tm-en {
	color: #fff;
}

h2.tm-ja,
h3.tm-ja {
	position: relative;
	margin: 0;
	padding-left: 40px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.06em;
}

h2.tm-ja::before,
h3.tm-ja::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.8em;
	width: 28px;
	height: 1px;
	background: currentColor;
}

.tm-head--center {
	text-align: center;
}

.tm-head--center h2.tm-ja,
.tm-head--center h3.tm-ja {
	padding-left: 0;
}

.tm-head--center h2.tm-ja::before,
.tm-head--center h3.tm-ja::before {
	display: none;
}

h2.tm-catch,
h3.tm-catch,
p.tm-catch {
	margin: 0 0 32px;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.04em;
	color: var(--tm-navy);
}

.tm-bg-dark .tm-catch {
	color: #fff;
}

.tm-section p {
	line-height: 2;
	letter-spacing: 0.04em;
}

p.tm-strong {
	font-size: 18px;
	font-weight: 700;
	color: var(--tm-navy);
}

.tm-bg-dark p.tm-strong {
	color: #fff;
}

p.tm-note {
	font-size: 14px;
	color: var(--tm-sub);
}

/* ---------- 左右分割 ---------- */
.wp-block-columns.tm-split {
	gap: 64px;
	margin-bottom: 0;
}

.tm-split > .wp-block-column:first-child {
	flex-basis: 40%;
}

.tm-split > .wp-block-column:last-child {
	flex-basis: 60%;
}

/* ---------- 中央寄せメッセージ ---------- */
.tm-message {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.tm-message p {
	line-height: 2.2;
}

/* ---------- カード ---------- */
.wp-block-columns.tm-cards {
	flex-wrap: wrap !important;
	gap: 24px;
	margin-bottom: 0;
}

.tm-cards > .wp-block-column {
	flex: 1 1 calc(50% - 12px) !important;
	position: relative;
	padding: 40px 36px;
	background: #fff;
	border-top: 3px solid var(--tm-navy);
	box-shadow: 0 2px 16px rgba(20, 37, 74, 0.06);
	box-sizing: border-box;
}

.tm-cards.tm-cols-3 > .wp-block-column {
	flex-basis: calc(33.333% - 16px) !important;
}

.tm-cards.tm-cols-4 > .wp-block-column {
	flex-basis: calc(25% - 18px) !important;
}

.tm-bg-gray .tm-cards > .wp-block-column {
	box-shadow: none;
}

.tm-cards > .wp-block-column > *:last-child {
	margin-bottom: 0;
}

p.tm-num {
	margin: 0 0 16px;
	font-family: var(--tm-en);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--tm-navy);
}

.tm-cards h3 {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--tm-navy);
}

.tm-cards h3 .tm-label,
.tm-label {
	display: block;
	margin-bottom: 4px;
	font-family: var(--tm-en);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	color: var(--tm-sub);
}

.tm-cards p {
	line-height: 1.9;
}

/* カード全体リンク */
p.tm-more {
	margin-top: 24px;
	font-size: 14px;
	font-weight: 700;
}

p.tm-more a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--tm-navy);
	text-decoration: none;
}

p.tm-more a::after {
	content: "";
	width: 32px;
	height: 1px;
	background: currentColor;
	transition: width 0.3s;
}

p.tm-more a:hover::after {
	width: 48px;
}

p.tm-more a::before {
	content: "";
	position: absolute;
	inset: 0;
}

/* ---------- 数値（実績） ---------- */
p.tm-stat {
	margin: 0 0 8px;
	font-family: var(--tm-en);
	font-size: clamp(40px, 5vw, 56px);
	font-weight: 600;
	line-height: 1.1;
	color: var(--tm-navy);
}

p.tm-stat small {
	margin-left: 4px;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 18px;
	font-weight: 700;
}

/* ---------- タグ ---------- */
ul.tm-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

ul.tm-tags li {
	margin: 0;
	padding: 4px 12px;
	font-size: 13px;
	line-height: 1.6;
	border: 1px solid var(--tm-line);
	background: #fff;
}

ul.tm-tags li::before,
ul.tm-tags li::marker {
	display: none;
	content: none;
}

.tm-bg-gray ul.tm-tags li {
	background: var(--tm-gray);
	border-color: transparent;
}

.tm-bg-gray .tm-cards ul.tm-tags li {
	background: var(--tm-gray);
}

/* ---------- フロー（横並び矢印） ---------- */
ol.tm-flow,
ul.tm-flow {
	display: flex;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: tmflow;
}

.tm-flow li {
	position: relative;
	flex: 1 1 0;
	margin: 0;
	padding: 28px 28px 28px 44px;
	background: #fff;
	border: 1px solid var(--tm-line);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.7;
	color: var(--tm-navy);
}

.tm-flow li + li {
	border-left: none;
}

.tm-flow li::marker {
	content: none;
}

.tm-flow li::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -9px;
	z-index: 1;
	width: 16px;
	height: 16px;
	background: #fff;
	border-top: 1px solid var(--tm-line);
	border-right: 1px solid var(--tm-line);
	transform: translateY(-50%) rotate(45deg);
}

.tm-flow li:last-child::after {
	display: none;
}

.tm-flow li:first-child {
	padding-left: 28px;
}

.tm-flow li span,
.tm-flow li small {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 400;
	color: var(--tm-sub);
}

ol.tm-flow li:last-child {
	background: var(--tm-navy);
	border-color: var(--tm-navy);
	color: #fff;
}

ol.tm-flow li:last-child span,
ol.tm-flow li:last-child small {
	color: rgba(255, 255, 255, 0.8);
}

/* ---------- ステップ（縦） ---------- */
.tm-steps {
	counter-reset: tmstep;
}

.wp-block-columns.tm-step {
	gap: 40px;
	margin: 0;
	padding: 36px 0;
	border-top: 1px solid var(--tm-line);
}

.wp-block-columns.tm-step:last-child {
	border-bottom: 1px solid var(--tm-line);
}

.tm-step > .wp-block-column:first-child {
	flex: 0 0 220px !important;
}

.tm-step p.tm-step__label {
	margin: 0;
	font-family: var(--tm-en);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--tm-navy);
}

.tm-step p.tm-step__label strong {
	display: block;
	font-size: 40px;
	font-weight: 500;
	line-height: 1.2;
}

.tm-step h3 {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
	color: var(--tm-navy);
}

.tm-step p {
	margin-bottom: 0;
}

/* ---------- 経歴タイムライン ---------- */
.wp-block-columns.tm-timeline {
	gap: 40px;
	margin: 0;
	padding: 40px 0;
	border-top: 1px solid var(--tm-line);
}

.wp-block-columns.tm-timeline:last-of-type {
	border-bottom: 1px solid var(--tm-line);
}

.tm-timeline > .wp-block-column:first-child {
	flex: 0 0 160px !important;
}

.tm-timeline p.tm-year {
	margin: 0;
	font-family: var(--tm-en);
	font-size: 36px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--tm-navy);
}

.tm-timeline h3 {
	margin: 0 0 16px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--tm-navy);
}

.tm-timeline p {
	margin-bottom: 12px;
}

.tm-timeline p:last-child {
	margin-bottom: 0;
}

/* ---------- 表（会社概要など） ---------- */
.wp-block-table.tm-table {
	margin: 0;
}

.wp-block-table.tm-table table {
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid var(--tm-navy);
}

.wp-block-table.tm-table th,
.wp-block-table.tm-table td {
	padding: 28px 24px;
	border: none;
	border-bottom: 1px solid var(--tm-line);
	text-align: left;
	vertical-align: top;
	line-height: 1.9;
	background: transparent;
}

.wp-block-table.tm-table th {
	width: 24%;
	font-weight: 700;
	color: var(--tm-navy);
	white-space: nowrap;
}

.wp-block-table.tm-table td small {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--tm-sub);
}

/* ---------- 箇条書き（シンプル） ---------- */
ul.tm-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.tm-list li {
	position: relative;
	margin: 0;
	padding: 10px 0 10px 24px;
	border-bottom: 1px solid var(--tm-line);
	line-height: 1.8;
}

ul.tm-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.35em;
	width: 8px;
	height: 8px;
	background: var(--tm-navy);
}

ul.tm-list li::marker {
	content: none;
}

/* ---------- ボタン ---------- */
.wp-block-buttons.tm-buttons {
	gap: 16px;
	margin-top: 40px;
}

.tm-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-width: 280px;
	padding: 20px 28px;
	border-radius: 0;
	background: var(--tm-navy);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	box-sizing: border-box;
	transition: opacity 0.3s;
}

.tm-btn .wp-block-button__link::after {
	content: "";
	width: 20px;
	height: 1px;
	background: currentColor;
	transition: width 0.3s;
}

.tm-btn .wp-block-button__link:hover {
	opacity: 0.85;
	color: #fff;
}

.tm-btn .wp-block-button__link:hover::after {
	width: 36px;
}

.tm-btn--white .wp-block-button__link,
.tm-bg-dark .tm-btn .wp-block-button__link {
	background: #fff;
	color: var(--tm-navy);
}

.tm-btn--white .wp-block-button__link:hover,
.tm-bg-dark .tm-btn .wp-block-button__link:hover {
	color: var(--tm-navy);
}

.tm-btn--outline .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--tm-navy);
	color: var(--tm-navy);
}

.tm-btn--outline .wp-block-button__link:hover {
	color: var(--tm-navy);
}

/* ---------- お問い合わせ帯 ---------- */
.tm-cta {
	text-align: center;
}

.tm-cta .wp-block-buttons {
	justify-content: center;
}

.tm-cta p.tm-en {
	font-size: clamp(40px, 6vw, 72px);
}

/* ---------- 代表メッセージ ---------- */
p.tm-sign {
	margin-top: 32px;
	font-size: 14px;
	line-height: 1.8;
}

p.tm-sign strong {
	display: block;
	font-size: 22px;
	letter-spacing: 0.2em;
	color: var(--tm-navy);
}

/* ---------- お知らせ ---------- */
.wp-block-latest-posts.tm-news {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--tm-navy);
}

.wp-block-latest-posts.tm-news li {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	align-items: baseline;
	gap: 32px;
	margin: 0;
	padding: 24px 8px;
	border-bottom: 1px solid var(--tm-line);
}

.wp-block-latest-posts.tm-news li::marker {
	content: none;
}

.wp-block-latest-posts.tm-news a {
	color: var(--tm-ink);
	text-decoration: none;
}

.wp-block-latest-posts.tm-news a:hover {
	color: var(--tm-navy);
	text-decoration: underline;
}

.wp-block-latest-posts.tm-news .wp-block-latest-posts__post-date {
	flex: 0 0 auto;
	font-family: var(--tm-en);
	font-size: 14px;
	color: var(--tm-sub);
}

/* ---------- フッターウィジェット ---------- */
.tm-footer-logo {
	margin: 0 0 16px;
	font-family: var(--tm-en);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.tm-footer-copy {
	margin: 0 0 20px;
	font-weight: 700;
}

.tm-footer-address {
	font-size: 13px;
	line-height: 1.9;
}

.tm-footer-title {
	margin: 0 0 12px;
	font-family: var(--tm-en);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.14em;
}

ul.tm-footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.tm-footer-links li {
	margin: 0;
	padding: 6px 0;
	font-size: 14px;
}

ul.tm-footer-links li::marker {
	content: none;
}

ul.tm-footer-links a {
	text-decoration: none;
}

ul.tm-footer-links a:hover {
	text-decoration: underline;
}

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 959px) {
	.tm-cards.tm-cols-3 > .wp-block-column,
	.tm-cards.tm-cols-4 > .wp-block-column {
		flex-basis: calc(50% - 12px) !important;
	}

	ol.tm-flow,
	ul.tm-flow {
		flex-direction: column;
	}

	.tm-flow li,
	.tm-flow li:first-child {
		padding: 20px 24px;
	}

	.tm-flow li + li {
		border-left: 1px solid var(--tm-line);
		border-top: none;
	}

	.tm-flow li::after {
		top: auto;
		right: auto;
		bottom: -9px;
		left: 50%;
		transform: translateX(-50%) rotate(135deg);
	}
}

@media (max-width: 781px) {
	:root {
		--tm-gutter: 20px;
	}

	.tm-section {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.wp-block-group.tm-head {
		margin-bottom: 36px;
	}

	.wp-block-columns.tm-split {
		gap: 8px;
	}

	.tm-cards > .wp-block-column,
	.tm-cards.tm-cols-3 > .wp-block-column,
	.tm-cards.tm-cols-4 > .wp-block-column {
		flex-basis: 100% !important;
		padding: 32px 24px;
	}

	.wp-block-columns.tm-step,
	.wp-block-columns.tm-timeline {
		gap: 12px;
		padding: 28px 0;
	}

	.tm-step > .wp-block-column:first-child,
	.tm-timeline > .wp-block-column:first-child {
		flex-basis: auto !important;
	}

	.tm-step p.tm-step__label strong {
		display: inline;
		margin-left: 8px;
		font-size: 28px;
	}

	.tm-timeline p.tm-year {
		font-size: 28px;
	}

	.wp-block-table.tm-table th,
	.wp-block-table.tm-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.wp-block-table.tm-table th {
		padding: 20px 4px 4px;
		border-bottom: none;
	}

	.wp-block-table.tm-table td {
		padding: 4px 4px 20px;
	}

	.tm-btn .wp-block-button__link {
		width: 100%;
		min-width: 0;
	}

	.wp-block-buttons.tm-buttons > .wp-block-button {
		width: 100%;
	}

	.wp-block-latest-posts.tm-news li {
		flex-direction: column-reverse;
		gap: 4px;
	}
}

/* ---------- 追加調整 ---------- */
.wp-block-columns.tm-cards + .wp-block-columns.tm-cards {
	margin-top: 24px;
}

.wp-block-columns.tm-sub {
	gap: 16px;
	margin: 24px 0 0;
}

.tm-sub > .wp-block-column {
	padding: 20px 24px;
	background: var(--tm-gray);
}

.tm-sub p {
	margin: 0;
	line-height: 1.8;
}

.tm-section > .wp-block-columns.tm-cards,
.tm-section > p + .wp-block-columns,
.tm-section > p + .wp-block-list,
.tm-section > .wp-block-columns + .wp-block-list,
.tm-section > .wp-block-list + p {
	margin-top: 40px;
}

/* 幅の狭いカード・フロー内では原稿の改行を無視して自然に折り返す */
.tm-cards br,
.tm-flow br,
.tm-sub br {
	display: none;
}

.tm-sub strong {
	display: block;
}

/* フッター（SP版は1つのウィジェットに縦積み） */
p.tm-footer-address {
	margin-bottom: 28px;
}

ul.tm-footer-links {
	margin-bottom: 24px;
}

/* ---------- お問い合わせフォーム（Contact Form 7） ---------- */
.tm-form {
	max-width: 880px;
	padding: 56px 64px;
	background: #fff;
	box-sizing: border-box;
}

.tm-form__row {
	display: flex;
	gap: 32px;
	padding: 24px 0;
	border-bottom: 1px solid var(--tm-line);
}

.tm-form__row:first-child {
	padding-top: 0;
}

.tm-form__label {
	flex: 0 0 200px;
	padding-top: 12px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--tm-navy);
}

.tm-req,
.tm-opt {
	display: inline-block;
	margin-left: 10px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.6;
	vertical-align: 2px;
	background: var(--tm-navy);
	color: #fff;
}

.tm-opt {
	background: transparent;
	border: 1px solid var(--tm-line);
	color: var(--tm-sub);
}

.tm-form__field {
	flex: 1 1 auto;
	min-width: 0;
}

.tm-form :is(input[type="text"], input[type="email"], input[type="tel"], textarea) {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--tm-line);
	border-radius: 0;
	background: var(--tm-gray);
	font-size: 16px;
	line-height: 1.6;
	box-sizing: border-box;
	transition: border-color 0.2s, background 0.2s;
}

.tm-form textarea {
	height: 220px;
}

.tm-form :is(input, textarea):focus {
	outline: none;
	border-color: var(--tm-navy);
	background: #fff;
}

.tm-form .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	padding-top: 10px;
}

.tm-form .wpcf7-list-item {
	margin: 0;
}

.tm-form .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.tm-form input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--tm-navy);
}

.tm-form__submit {
	margin-top: 40px;
	text-align: center;
}

.tm-form input[type="submit"] {
	min-width: 280px;
	padding: 20px 28px;
	border: none;
	border-radius: 0;
	background: var(--tm-navy);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.1em;
	cursor: pointer;
	transition: opacity 0.3s;
}

.tm-form input[type="submit"]:hover {
	opacity: 0.85;
}

.tm-form input[type="submit"]:disabled {
	opacity: 0.5;
	cursor: default;
}

.tm-form .wpcf7-spinner {
	display: block;
	margin: 12px auto 0;
}

.tm-form .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 13px;
	color: #c62828;
}

.wpcf7 form .wpcf7-response-output {
	max-width: 880px;
	margin: 24px 0 0;
	padding: 16px 20px;
	box-sizing: border-box;
	background: #fff;
	line-height: 1.8;
}

@media (max-width: 781px) {
	.tm-form {
		padding: 32px 20px;
	}

	.tm-form__row {
		flex-direction: column;
		gap: 8px;
		padding: 20px 0;
	}

	.tm-form__label {
		flex-basis: auto;
		padding-top: 0;
	}

	.tm-form input[type="submit"] {
		width: 100%;
		min-width: 0;
	}
}

/* ---------- 投稿：記事のサマリー・よくある質問（TM Auto Post） ---------- */
.tm-summary {
	margin: 0 0 40px;
	padding: 24px 28px;
	border: 1px solid var(--tm-line);
	border-left: 4px solid var(--tm-navy);
	background: var(--tm-gray);
	color: var(--tm-ink);
}

.tm-summary .tm-summary__label {
	margin: 0 0 12px;
	color: var(--tm-navy);
	font-weight: 600;
	letter-spacing: 0.08em;
}

.tm-summary ul {
	margin: 0;
	padding-left: 1.4em;
}

.tm-summary li {
	margin: 0;
	line-height: 1.8;
}

.tm-summary li + li {
	margin-top: 6px;
}

.tm-faq {
	margin-top: 56px;
}

.tm-faq .tm-faq__q {
	position: relative;
	margin: 32px 0 0;
	padding: 0 0 0 2.2em;
	border: 0;
	background: none;
	font-size: 1.05rem;
	line-height: 1.7;
}

.tm-faq .tm-faq__q::before {
	content: "Q";
	position: absolute;
	top: 0;
	left: 0;
	color: var(--tm-navy);
	font-family: var(--tm-en);
	font-weight: 600;
}

.tm-faq .tm-faq__a {
	position: relative;
	margin: 8px 0 0;
	padding: 0 0 20px 2.2em;
	border-bottom: 1px solid var(--tm-line);
	line-height: 1.9;
}

.tm-faq .tm-faq__a::before {
	content: "A";
	position: absolute;
	top: 0;
	left: 0;
	color: var(--tm-sub);
	font-family: var(--tm-en);
	font-weight: 600;
}

@media (max-width: 781px) {
	.tm-summary {
		padding: 20px;
	}
}

/* ---------- 投稿：見出しごとの画像（TM Auto Post） ---------- */
.single h2.wp-block-heading,
.tm-faq {
	clear: both;
}

.wp-block-image.tm-sec-img {
	width: 480px;
	max-width: 55%;
}

.wp-block-image.tm-sec-img.alignright {
	float: right;
	margin: 20px 0 24px 32px !important;
}

.wp-block-image.tm-sec-img.alignleft {
	float: left;
	margin: 20px 32px 24px 0 !important;
}

.wp-block-image.tm-sec-img img {
	display: block;
	width: 100%;
	height: auto;
}

/* 本文の1行目を画像の上端にそろえる（テーマの余白指定が !important と高い詳細度のため） */
.article-body .wp-block-image.tm-sec-img + p {
	margin-top: 20px !important;
}

/* 箇条書きの行頭記号が左の画像に重ならないように */
.tm-sec-img ~ ul,
.tm-sec-img ~ ol {
	display: flow-root;
}

@media (max-width: 781px) {
	.wp-block-image.tm-sec-img.alignright,
	.wp-block-image.tm-sec-img.alignleft {
		float: none;
		width: 100%;
		max-width: 100%;
		margin: 20px 0 !important;
	}

	.article-body .wp-block-image.tm-sec-img + p {
		margin-top: 0 !important;
	}
}

/* ---------- トップ：メインビジュアル（三角モチーフ） ---------- */
.tm-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	--tm-hero-h: clamp(600px, calc(100vh - 120px), 860px);
	height: var(--tm-hero-h);
	overflow: hidden;
	background: #fff;
	color: var(--tm-navy);
}

.tm-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: var(--tm-inner);
	height: 100%;
	margin: 0 auto;
	padding: 0 var(--tm-gutter);
	box-sizing: border-box;
}

.tm-hero__title {
	margin: 0;
	font-family: "Noto Sans JP", sans-serif;
	font-size: clamp(40px, 5vw, 84px);
	font-weight: 200;
	line-height: 1.35;
	letter-spacing: 0.08em;
	color: var(--tm-navy);
}

.tm-hero__lead {
	margin: 48px 0 0;
	font-size: clamp(22px, 2.3vw, 38px);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.06em;
	color: var(--tm-navy);
}

.tm-hero__text {
	margin: 28px 0 0;
	font-size: 15px;
	line-height: 2;
	letter-spacing: 0.06em;
	color: var(--tm-navy);
}

/* 正三角形：右端で見切れないよう、幅をメインビジュアルの高さと画面幅の両方から決める */
.tm-hero__tri {
	position: absolute;
	z-index: 1;
	right: clamp(32px, 4vw, 80px);
	bottom: 0;
	width: min(calc(var(--tm-hero-h) * 1.13), 50vw);
	aspect-ratio: 1.1547 / 1;
	background: var(--tm-navy);
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.tm-hero__tri img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	animation: tm-hero-fade 24s infinite;
}

.tm-hero__tri img:nth-child(1) { animation-delay: 0s; }
.tm-hero__tri img:nth-child(2) { animation-delay: 6s; }
.tm-hero__tri img:nth-child(3) { animation-delay: 12s; }
.tm-hero__tri img:nth-child(4) { animation-delay: 18s; }

/* 紺をうっすら重ねてロゴの三角と色味をそろえる */
.tm-hero__tri::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--tm-navy);
	opacity: 0.18;
}

@keyframes tm-hero-fade {
	0% { opacity: 0; transform: scale(1.06); }
	4% { opacity: 1; }
	25% { opacity: 1; }
	30% { opacity: 0; transform: scale(1); }
	100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.tm-hero__tri img {
		animation: none;
	}

	.tm-hero__tri img:first-child {
		opacity: 1;
	}
}

/* スマートフォン：9:16。キャッチは縦書き、三角形は大きく置き、その下に説明文 */
@media (max-width: 781px) {
	.tm-hero {
		height: auto;
		aspect-ratio: 9 / 16;
	}

	.tm-hero__inner {
		position: absolute;
		inset: 0;
		display: block;
		max-width: none;
		padding: 0;
	}

	.tm-hero__title {
		position: absolute;
		top: 5vw;
		left: 5vw;
		font-size: 9.6vw;
		font-weight: 300;
		line-height: 1.35;
		letter-spacing: 0.06em;
		white-space: nowrap;
		writing-mode: vertical-rl;
	}

	.tm-hero__lead {
		position: absolute;
		top: 146vw;
		left: 5vw;
		margin: 0;
		font-size: 4.6vw;
		letter-spacing: 0.04em;
		white-space: nowrap;
	}

	.tm-hero__text {
		position: absolute;
		top: 155vw;
		left: 5vw;
		width: 90vw;
		margin: 0;
		font-size: 3.2vw;
		line-height: 1.7;
		letter-spacing: 0.02em;
	}

	.tm-hero__tri {
		right: auto;
		bottom: 34vw;
		left: 7vw;
		width: 145vw;
	}
}

/* ---------- MISSION の画像 ---------- */
.wp-block-image.tm-img {
	margin: 40px 0 0;
}

.wp-block-image.tm-img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* ---------- BUSINESS：テキスト左・画像右の横長ブロック ---------- */
.tm-biz-list {
	margin-top: 40px;
}

.wp-block-columns.tm-biz {
	position: relative;
	gap: 0;
	margin: 0 0 24px;
	background: #fff;
	border-top: 3px solid var(--tm-navy);
	box-shadow: 0 2px 16px rgba(20, 37, 74, 0.06);
}

.tm-bg-gray .wp-block-columns.tm-biz {
	box-shadow: none;
}

.tm-biz > .wp-block-column:first-child {
	flex: 1 1 55% !important;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px 56px;
}

.tm-biz > .wp-block-column:last-child {
	flex: 0 0 45% !important;
	overflow: hidden;
}

.tm-biz h3 {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--tm-navy);
}

.tm-biz .wp-block-image {
	height: 100%;
	margin: 0;
}

.tm-biz .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 280px;
	object-fit: cover;
	transition: transform 0.6s;
}

.tm-biz:hover .wp-block-image img {
	transform: scale(1.04);
}

.tm-biz p.tm-more a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

@media (max-width: 781px) {
	.wp-block-columns.tm-biz {
		flex-direction: column-reverse;
	}

	.tm-biz > .wp-block-column:first-child {
		padding: 28px 24px 32px;
	}

	.tm-biz .wp-block-image img {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
}

/* ---------- ヘッダーロゴ：幅が狭いときも縦横比を保つ ---------- */
.l-header .site-logo__img-common {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 30px;
	object-fit: contain;
}

/* メニューに押されてロゴが小さくなりすぎないよう最小幅を確保し、
   PCメニューが表示される幅のうち狭い範囲ではメニューの余白と文字を詰める */
.l-header .header-site-branding {
	min-width: clamp(200px, 20vw, 358px);
}

@media (max-width: 1279px) {
	.l-header .header-menu > .menu-item > a {
		padding: 0 10px;
		font-size: 13px;
		letter-spacing: 0.02em;
	}
}

@media (max-width: 1099px) {
	.l-header .header-site-branding {
		min-width: 180px;
	}

	.l-header .header-menu > .menu-item > a {
		padding: 0 7px;
		font-size: 12px;
		letter-spacing: 0;
	}
}

/* BUSINESS のブロック：白背景のセクションではグレー、グレー背景のセクションでは白 */
.wp-block-columns.tm-biz {
	background: var(--tm-gray);
	box-shadow: none;
}

.tm-bg-gray .wp-block-columns.tm-biz {
	background: #fff;
}

/* 先頭のセクションが全幅の背景色付きのときは上の余白を通常どおりにする */
.article-body > .tm-section.tm-full:first-child {
	padding-top: 96px;
}

@media (max-width: 781px) {
	.article-body > .tm-section.tm-full:first-child {
		padding-top: 64px;
	}
}

/* テーマのブロック間余白（40px）をセクション間では使わない（背景色の帯の間に白い隙間が出るため） */
.article-body > .tm-section {
	margin-top: 0 !important;
}

/* MISSION の署名：1行で右揃え */
p.tm-sign {
	text-align: right;
}

p.tm-sign strong {
	display: inline;
	margin-left: 1em;
	vertical-align: -0.1em;
}

/* 番号と英字ラベルを横並び（例：01  STRATEGY） */
.tm-num__label {
	margin-left: 16px;
	color: var(--tm-sub);
	letter-spacing: 0.14em;
}

/* ---------- フロー図：アイコン付き・文字を上下左右中央 ---------- */
.tm-flow--icon li,
.tm-flow--icon li:first-child {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 28px 20px;
	text-align: center;
}

.tm-flow--icon li::before {
	content: "";
	display: block;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	margin-bottom: 12px;
	background: currentColor;
	-webkit-mask: var(--tm-ico) center / contain no-repeat;
	mask: var(--tm-ico) center / contain no-repeat;
}

.tm-ico-data {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V11M10 20V5M16 20v-7M2 20h20'/%3E%3C/svg%3E");
}

.tm-ico-voice {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8.5 8.5 0 0 1-12.3 7.6L3.5 21l1.4-5A8.5 8.5 0 1 1 21 12z'/%3E%3Cpath d='M8.5 12h.01M12 12h.01M15.5 12h.01'/%3E%3C/svg%3E");
}

.tm-ico-field {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21.5s-7-6.2-7-11.5a7 7 0 0 1 14 0c0 5.3-7 11.5-7 11.5z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E");
}

.tm-ico-product {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 7.5 12 3 3 7.5 12 12l9-4.5z'/%3E%3Cpath d='M3 7.5v9L12 21l9-4.5v-9M12 12v9'/%3E%3C/svg%3E");
}

.tm-ico-word {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E");
}

.tm-ico-design {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 1 9-9c0 2.2-1.8 3.5-4 3.5h-1.6a1.9 1.9 0 0 0-1.3 3.2A1.4 1.4 0 0 1 12 21z'/%3E%3Ccircle cx='7.5' cy='11' r='1.1'/%3E%3Ccircle cx='10.5' cy='7' r='1.1'/%3E%3Ccircle cx='15.5' cy='8' r='1.1'/%3E%3C/svg%3E");
}

.tm-ico-web {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4' width='19' height='13' rx='1.5'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E");
}

.tm-ico-ad {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5v3a1 1 0 0 0 1 1h3l6 4.5v-14L7 9.5H4a1 1 0 0 0-1 1z'/%3E%3Cpath d='M16.5 9a4 4 0 0 1 0 6M19 6.5a7.5 7.5 0 0 1 0 11'/%3E%3C/svg%3E");
}

.tm-ico-sales {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20.5a6.5 6.5 0 0 1 13 0M16 4.6a3.5 3.5 0 0 1 0 6.8M18.5 14.2a6.5 6.5 0 0 1 3 6.3'/%3E%3C/svg%3E");
}

/* 紺背景・白抜き（CUSTOMER） */
.tm-flow--dark li {
	background: var(--tm-navy);
	border-color: rgba(255, 255, 255, 0.28);
	color: #fff;
	font-size: 16px;
}

.tm-flow--dark li::after {
	background: var(--tm-navy);
	border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 959px) {
	.tm-flow--dark li + li {
		border-left-color: rgba(255, 255, 255, 0.28);
	}
}

/* 6項目のフロー（CONNECT）で文字が折り返さないよう詰める */
ol.tm-flow--icon li,
ol.tm-flow--icon li:first-child {
	padding-left: 12px;
	padding-right: 12px;
	font-size: 14px;
	letter-spacing: 0.02em;
}


/* ---------- フロー図：文字1.2倍・線を太く ---------- */
.tm-flow li {
	border-width: 2px;
	font-size: 18px;
}

.tm-flow li span,
.tm-flow li small {
	font-size: 15.6px;
}

.tm-flow li::after {
	right: -10px;
	width: 17px;
	height: 17px;
	border-top-width: 2px;
	border-right-width: 2px;
}

.tm-flow--icon li::before {
	width: 36px;
	height: 36px;
}

.tm-flow--dark li {
	font-size: 19.2px;
}

ol.tm-flow--icon li,
ol.tm-flow--icon li:first-child {
	padding-left: 8px;
	padding-right: 8px;
	font-size: 16.8px;
	letter-spacing: 0;
}

@media (max-width: 959px) {
	.tm-flow li + li {
		border-left-width: 2px;
	}

	.tm-flow li::after {
		right: auto;
		bottom: -10px;
	}
}

/* フローの改行：単語の途中では折り返さず、<wbr> や約物の後ろで折り返す */
.tm-flow li {
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.tm-message + .wp-block-list,
.wp-block-list + .tm-message {
	margin-top: 40px;
}

/* 6項目のフロー（アイコンなし）は余白を詰めて中央寄せ */
.tm-flow:not(.tm-flow--icon):has(> li:nth-child(6)) li,
.tm-flow:not(.tm-flow--icon):has(> li:nth-child(6)) li:first-child {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 10px;
	text-align: center;
}

/* フッターの社名の左にロゴと同じ▲ */
.tm-footer-logo::before {
	content: "";
	display: inline-block;
	width: 0.95em;
	height: 0.82em;
	margin-right: 0.35em;
	vertical-align: -0.02em;
	background: currentColor;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* ---------- 代表プロフィール：写真・実績の数字 ---------- */
.wp-block-image.tm-portrait {
	max-width: 320px;
	margin: 32px 0 0;
}

.wp-block-image.tm-portrait img {
	display: block;
	width: 100%;
	height: auto;
}

/* 数字と単位を同じ大きさに */
p.tm-stat {
	font-size: clamp(40px, 4.4vw, 52px);
	font-weight: 600;
	letter-spacing: 0.02em;
}

p.tm-stat small {
	margin-left: 0;
	font-size: inherit;
	font-weight: inherit;
}

/* 数字の上にアイコン */
p.tm-stat[class*="tm-ico-"]::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	margin-bottom: 16px;
	background: currentColor;
	-webkit-mask: var(--tm-ico) center / contain no-repeat;
	mask: var(--tm-ico) center / contain no-repeat;
}

.tm-ico-growth {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E");
}

.tm-ico-time {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E");
}

/* ページ下部のお問い合わせボタン：文字を中央、線は右端に */
.tm-cta .tm-btn .wp-block-button__link {
	position: relative;
	justify-content: center;
	padding-left: 56px;
	padding-right: 56px;
}

.tm-cta .tm-btn .wp-block-button__link::after {
	position: absolute;
	top: 50%;
	right: 24px;
}

.tm-cards p.tm-stat {
	margin-bottom: 16px;
}

/* お問い合わせフォームのブロックを左右中央に */
.tm-form,
.wpcf7 form .wpcf7-response-output {
	margin-left: auto !important;
	margin-right: auto !important;
}

/* ---------- STRATEGY ---------- */
/* 番号と見出しを1行に（例：01 顧客数を増やす） */
.tm-h-num {
	margin-right: 14px;
	font-size: 0.8em;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--tm-navy);
}

/* タグ：紺地・白抜き */
ul.tm-tags.tm-tags--dark li,
.tm-bg-gray ul.tm-tags.tm-tags--dark li,
.tm-bg-gray .tm-cards ul.tm-tags.tm-tags--dark li {
	background: var(--tm-navy);
	border-color: var(--tm-navy);
	color: #fff;
}

/* カードの番号の上にアイコン */
p.tm-num[class*="tm-ico-"]::before {
	content: "";
	display: block;
	width: 40px;
	height: 40px;
	margin-bottom: 14px;
	background: currentColor;
	-webkit-mask: var(--tm-ico) center / contain no-repeat;
	mask: var(--tm-ico) center / contain no-repeat;
}

/* フロー図：文字を上下左右中央 */
.tm-flow--center li,
.tm-flow--center li:first-child {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 28px 24px;
	text-align: center;
}

/* ステップの右側に画像 */
.tm-step--img > .wp-block-column:nth-child(3) {
	flex: 0 0 320px !important;
}

.tm-step--img .wp-block-image {
	margin: 0;
}

.tm-step--img .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

@media (max-width: 959px) {
	.tm-step--img > .wp-block-column:nth-child(3) {
		flex-basis: 240px !important;
	}
}

@media (max-width: 781px) {
	.tm-step--img > .wp-block-column:nth-child(3) {
		flex-basis: auto !important;
	}
}

.tm-ico-fix {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.2L3.5 17.3a1.8 1.8 0 0 0 2.5 2.5l5.8-5.8a4 4 0 0 0 5.2-5.4l-2.4 2.4-2.4-.6-.6-2.4z'/%3E%3C/svg%3E");
}

.tm-ico-new {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-9'/%3E%3Cpath d='M12 12c0-4 2.5-6.5 7-6.5 0 4.5-2.5 6.5-7 6.5z'/%3E%3Cpath d='M12 14.5c0-3-2-5-5.5-5 0 3.5 2 5 5.5 5z'/%3E%3Cpath d='M7 21h10'/%3E%3C/svg%3E");
}

/* GROWTH STRATEGY のアイコン：左右中央・約2倍 */
p.tm-num[class*="tm-ico-"]::before {
	width: 80px;
	height: 80px;
	margin: 0 auto 24px;
}

/* ---------- CREATIVE ---------- */
/* RESULTS の数字を2.5倍 */
.tm-big-num {
	margin: 0 0.08em;
	font-size: 2.5em;
	font-weight: 700;
	line-height: 1;
	vertical-align: -0.08em;
}

/* アイコンだけの段落（文字なし）は余計な余白を取らない */
p.tm-num[class*="tm-ico-"]:empty {
	margin-bottom: 8px;
}

/* 2倍の大きさの強調文 */
p.tm-x2 {
	font-size: 2em;
	line-height: 1.6;
}

@media (max-width: 781px) {
	p.tm-x2 {
		font-size: 1.5em;
	}
}

.tm-ico-brand {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h12l3.5 5L12 20.5 2.5 8.5z'/%3E%3Cpath d='M2.5 8.5h19M9 3.5 7.5 8.5 12 20.5l4.5-12L15 3.5'/%3E%3C/svg%3E");
}

.tm-ico-brochure {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 5.5c3-1.3 6.2-1.3 9.5.5 3.3-1.8 6.5-1.8 9.5-.5v13c-3-1.3-6.2-1.3-9.5.5-3.3-1.8-6.5-1.8-9.5-.5z'/%3E%3Cpath d='M12 6v13'/%3E%3C/svg%3E");
}

.tm-ico-mail {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='1.5'/%3E%3Cpath d='m3 6 9 7 9-7'/%3E%3C/svg%3E");
}

.tm-ico-movie {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4.5' width='19' height='15' rx='2'/%3E%3Cpath d='m10 9 5 3-5 3z'/%3E%3C/svg%3E");
}

/* 右列の始まりを、左の英字見出し（tm-en）の下＝キャッチの頭に合わせる */
.tm-split--offset > .wp-block-column:last-child {
	padding-top: calc(clamp(36px, 5vw, 60px) * 1.2 + 12px);
}

@media (max-width: 781px) {
	.tm-split--offset > .wp-block-column:last-child {
		padding-top: 0;
	}
}

/* ---------- ADVERTISING：MEDIA のアイコン ---------- */
.tm-ico-train {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='14' rx='3'/%3E%3Cpath d='M5 10h14M9 21l1.5-4M15 21l-1.5-4'/%3E%3Ccircle cx='9' cy='13.5' r='.6'/%3E%3Ccircle cx='15' cy='13.5' r='.6'/%3E%3C/svg%3E");
}

.tm-ico-taxi {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 16v-3.5l2-5A2 2 0 0 1 6.9 6h10.2a2 2 0 0 1 1.9 1.5l2 5V16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z'/%3E%3Cpath d='M3 12.5h18M10 3.5h4v2.5h-4z'/%3E%3Ccircle cx='7' cy='17' r='1.8'/%3E%3Ccircle cx='17' cy='17' r='1.8'/%3E%3C/svg%3E");
}

.tm-ico-tv {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6.5' width='19' height='13' rx='1.5'/%3E%3Cpath d='m8 2.5 4 4 4-4'/%3E%3C/svg%3E");
}

.tm-ico-press {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4.5h13v14a2 2 0 0 0 2 2H6a2 2 0 0 1-2-2z'/%3E%3Cpath d='M17 8.5h3v10a2 2 0 0 1-2 2M7.5 8.5h6M7.5 12h6M7.5 15.5h4'/%3E%3C/svg%3E");
}

/* ---------- DEVELOPMENT：PROGRAM のアイコン ---------- */
.tm-ico-seminar {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3.5' width='18' height='11' rx='1'/%3E%3Cpath d='M12 14.5v3M8.5 20.5 12 17.5l3.5 3'/%3E%3Cpath d='M7 11l3-3 2.5 2L17 6.5'/%3E%3C/svg%3E");
}

.tm-ico-training {
	--tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 9 12 4.5 21.5 9 12 13.5z'/%3E%3Cpath d='M6.5 11v4.5c0 1.4 2.5 3 5.5 3s5.5-1.6 5.5-3V11M21.5 9v5.5'/%3E%3C/svg%3E");
}

/* ページ冒頭（見出しの下で画像と本文の上端をそろえる） */
.tm-intro > .tm-catch + .wp-block-columns {
	margin-top: 8px;
}

.tm-intro .tm-split .wp-block-column > .wp-block-image.tm-img:first-child {
	margin-top: 0;
}

.tm-intro .tm-split > .wp-block-column:last-child > p:first-child {
	margin-top: -0.5em;
}

@media (max-width: 781px) {
	.tm-intro .tm-split > .wp-block-column:last-child > p:first-child {
		margin-top: 16px;
	}
}

/* 代表プロフィール冒頭：肩書と本文の書き出しをそろえる */
.tm-intro--profile > .tm-label + .wp-block-columns {
	margin-top: 32px;
}

.tm-intro .tm-split > .wp-block-column:first-child > p:first-child {
	margin-top: -0.5em;
}

/* 本文が左・画像が右の2カラム（STRATEGY の APPROACH） */
.tm-split--reverse > .wp-block-column:first-child {
	flex-basis: 60%;
}

.tm-split--reverse > .wp-block-column:last-child {
	flex-basis: 40%;
}

.tm-intro > .tm-catch + .wp-block-columns.tm-split--reverse {
	margin-top: 8px;
}

@media (max-width: 781px) {
	.tm-intro .tm-split--reverse > .wp-block-column:first-child > p:first-child {
		margin-top: 0;
	}

	.tm-split--reverse > .wp-block-column:last-child .tm-img {
		margin-top: 24px;
	}
}

/* =========================================================
   スマートフォン調整（781px以下）
   ========================================================= */
@media (max-width: 781px) {
	/* ヘッダー：ロゴとハンバーガーメニューの間に余白 */
	.l-header .l-header__inner {
		column-gap: 20px;
	}

	.l-header .header-site-branding {
		min-width: 0;
	}

	/* コンテンツ：行間と余白を詰める */
	.tm-section {
		padding-top: 44px;
		padding-bottom: 44px;
	}

	.article-body > .tm-section:first-child {
		padding-top: 24px;
	}

	.article-body > .tm-section.tm-full:first-child {
		padding-top: 44px;
	}

	.tm-section .is-layout-flow > * + * {
		margin-block-start: 14px;
	}

	.tm-section p {
		line-height: 1.85;
	}

	p.tm-en,
	.tm-en {
		margin-bottom: 4px;
		font-size: 30px;
		line-height: 1.3;
	}

	.tm-cta p.tm-en {
		font-size: 36px;
	}

	.wp-block-group.tm-head {
		margin-bottom: 20px;
	}

	h2.tm-catch,
	h3.tm-catch,
	p.tm-catch {
		margin-bottom: 14px;
		font-size: 21px;
		line-height: 1.55;
	}

	.wp-block-image.tm-img {
		margin-top: 18px;
	}

	.wp-block-buttons.tm-buttons {
		margin-top: 24px;
	}

	.tm-section > .wp-block-columns.tm-cards,
	.tm-section > p + .wp-block-columns,
	.tm-section > p + .wp-block-list,
	.tm-section > .wp-block-columns + .wp-block-list,
	.tm-section > .wp-block-list + p,
	.tm-message + .wp-block-list,
	.wp-block-list + .tm-message,
	.tm-biz-list {
		margin-top: 20px;
	}

	.wp-block-columns.tm-cards {
		gap: 14px;
	}

	.tm-cards > .wp-block-column,
	.tm-cards.tm-cols-3 > .wp-block-column,
	.tm-cards.tm-cols-4 > .wp-block-column {
		padding: 24px 20px;
	}

	.tm-cards h3,
	.tm-step h3,
	.tm-timeline h3 {
		margin-bottom: 8px;
		font-size: 18px;
	}

	p.tm-num[class*="tm-ico-"]::before {
		width: 56px;
		height: 56px;
		margin-bottom: 12px;
	}

	.wp-block-columns.tm-biz {
		margin-bottom: 14px;
	}

	.tm-biz > .wp-block-column:first-child {
		padding: 20px 20px 24px;
	}

	.wp-block-columns.tm-step,
	.wp-block-columns.tm-timeline {
		gap: 8px;
		padding: 20px 0;
	}

	.tm-flow li,
	.tm-flow li:first-child,
	.tm-flow--icon li,
	.tm-flow--icon li:first-child,
	.tm-flow--center li,
	.tm-flow--center li:first-child {
		padding: 14px 16px;
	}

	.tm-flow--icon li::before {
		width: 28px;
		height: 28px;
		margin-bottom: 6px;
	}

	.wp-block-table.tm-table th {
		padding-top: 14px;
	}

	.wp-block-table.tm-table td {
		padding-bottom: 14px;
	}

	.tm-intro--profile > .tm-label + .wp-block-columns {
		margin-top: 14px;
	}

	.wp-block-image.tm-portrait {
		margin-top: 18px;
	}

	p.tm-stat {
		font-size: 40px;
	}

	.tm-form {
		padding: 24px 16px;
	}
}

@media (max-width: 781px) {
	.tm-flow li,
	.tm-flow--dark li,
	ol.tm-flow--icon li {
		font-size: 16px;
	}
}

@media (max-width: 781px) {
	/* メインビジュアル下のニュース（info-lists）は表示しない */
	.l-content-widget:has(> .wp-block-emanon-premium-blocks-info-lists),
	.wp-block-emanon-premium-blocks-info-lists {
		display: none;
	}
}

@media (max-width: 781px) {
	/* ハンバーガーメニューを右端に（空のグリッド列に間隔が付かないよう column-gap ではなくロゴ側の余白で調整） */
	.l-header .l-header__inner {
		column-gap: 0;
	}

	.l-header .header-site-branding {
		padding-right: 20px;
	}

	.l-header .hamburger-menu-content {
		justify-self: end;
		margin-left: auto;
	}

	/* 文の途中の改行は無効（文末の改行は残す） */
	.tm-br-pc {
		display: none;
	}

	/* カード・事業紹介・ステップ：番号／見出し／本文の間を詰める */
	.tm-cards > .wp-block-column > * + *,
	.tm-biz > .wp-block-column > * + *,
	.tm-step > .wp-block-column > * + *,
	.tm-timeline > .wp-block-column > * + * {
		margin-block-start: 6px;
	}

	.tm-cards p.tm-num,
	.tm-biz p.tm-num,
	.tm-cards h3,
	.tm-biz h3,
	.tm-step h3,
	.tm-timeline h3 {
		margin-bottom: 0;
	}

	.tm-cards p.tm-stat {
		margin-bottom: 4px;
	}

	.tm-cards ul.tm-tags,
	.tm-step ul.tm-tags {
		margin-top: 10px;
	}

	p.tm-more {
		margin-top: 12px;
	}

	.tm-sub > .wp-block-column {
		padding: 14px 16px;
	}

	.wp-block-columns.tm-sub {
		margin-top: 12px;
		gap: 10px;
	}
}

/* スマホ・タブレット（ハンバーガーメニュー表示時）：ロゴとハンバーガーメニューのヘッダーを画面上部に固定 */
@media (max-width: 959px) {
	body .l-header {
		position: sticky !important;
		top: 0;
		z-index: 1000;
		background: #fff;
		box-shadow: 0 1px 0 rgba(20, 37, 74, 0.08);
	}
}

/* ログイン中は管理バー（固定表示される幅）の下に固定 */
@media (min-width: 601px) and (max-width: 782px) {
	body.admin-bar .l-header {
		top: 46px;
	}
}

@media (min-width: 783px) and (max-width: 959px) {
	body.admin-bar .l-header {
		top: 32px;
	}
}

/* スマホの本文：14px（見出し・数字・ラベルなどクラス付きの段落は対象外） */
@media (max-width: 781px) {
	.article-body p:not([class*="tm-"]),
	.article-body ul:not([class*="tm-"]) > li,
	.article-body ol:not([class*="tm-"]) > li,
	.wp-block-table.tm-table td,
	.tm-form__field,
	.tm-form__label {
		font-size: 14px;
	}

	p.tm-strong {
		font-size: 16px;
	}
}

/* トップ MISSION の署名「的場一成」 */
p.tm-sign strong {
	font-size: 20px;
}

/* スマホ：代表プロフィールの写真を左右中央に */
@media (max-width: 781px) {
	.wp-block-image.tm-portrait {
		margin-left: auto;
		margin-right: auto;
	}
}

/* メインビジュアル：読み込みから1.5秒は紺の三角のまま、その後4枚の画像を順に表示 */
.tm-hero__tri img:nth-child(1) { animation-delay: 1.5s; }
.tm-hero__tri img:nth-child(2) { animation-delay: 7.5s; }
.tm-hero__tri img:nth-child(3) { animation-delay: 13.5s; }
.tm-hero__tri img:nth-child(4) { animation-delay: 19.5s; }

/* トップ BUSINESS の見出しをキャッチ（tm-catch）と同じ大きさに */
h2.tm-ja--large {
	font-size: clamp(24px, 3vw, 34px);
	letter-spacing: 0.04em;
}

/* BUSINESS の事業名 */
.tm-biz h3 {
	font-size: 33px;
	line-height: 1.5;
}

/* BUSINESS：リード文の右に考え方へのボタン（1つ目のブロックの右上） */
.wp-block-group.tm-biz-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.tm-biz-head > p {
	margin: 0;
}

.tm-biz-head .wp-block-buttons.tm-buttons {
	flex: none;
	margin: 0;
}

.tm-biz-head + .tm-biz-list {
	margin-top: 20px;
}

@media (max-width: 781px) {
	h2.tm-ja--large {
		font-size: 21px;
	}

	.tm-biz h3 {
		font-size: min(33px, 6.2vw);
		line-height: 1.4;
		letter-spacing: 0;
	}

	.wp-block-group.tm-biz-head {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.tm-biz-head .tm-btn .wp-block-button__link {
		padding-left: 14px;
		padding-right: 14px;
		font-size: 14px;
		white-space: nowrap;
	}
}

/* ニュース一覧：カテゴリーのリンク */
.tm-news-cats {
	margin-bottom: 32px;
}

.tm-news-cats ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tm-news-cats li {
	margin: 0;
}

.tm-news-cats a {
	display: block;
	padding: 6px 18px;
	border: 1px solid var(--tm-navy);
	font-size: 14px;
	line-height: 1.6;
	letter-spacing: 0.04em;
	color: var(--tm-navy);
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.tm-news-cats a:hover,
.tm-news-cats a[aria-current="page"] {
	background: var(--tm-navy);
	color: #fff;
}

@media (max-width: 781px) {
	.tm-news-cats {
		margin-bottom: 20px;
	}

	.tm-news-cats a {
		padding: 4px 14px;
		font-size: 13px;
	}
}

/* 下層ページ：ページタイトルと本文の間、英字見出しと本文の間の余白を詰める */
body.page:not(.home) .article-body {
	padding-top: 0;
}

body:not(.home) .article-body > .tm-section:not(.tm-full):first-child {
	padding-top: 8px;
}

@media (min-width: 782px) {
	body:not(.home) .tm-section:not(.tm-cta) p.tm-en {
		line-height: 1.2;
	}

	body:not(.home) .wp-block-group.tm-head {
		margin-bottom: 32px;
	}
}

/* MISSION：代表の写真の下に肩書と名前、右にプロフィールへのボタン */
.wp-block-group.tm-rep {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
	margin-top: 24px;
}

.tm-section .tm-rep.is-layout-flow > * + * {
	margin-block-start: 0;
}

.wp-block-group.tm-rep__person {
	flex: none;
}

.wp-block-image.tm-rep__photo {
	width: 160px;
	margin: 0;
}

.wp-block-image.tm-rep__photo img {
	display: block;
	width: 100%;
	height: auto;
}

.tm-section .tm-rep__person > p.tm-sign {
	margin-block-start: 8px;
	text-align: left;
	white-space: nowrap;
}

.tm-rep p.tm-sign strong {
	margin-left: 0.6em;
}

.tm-rep .wp-block-buttons.tm-buttons {
	margin: 0;
}

/* 本文の書き出しを、左のキャッチの文字の上端にそろえる */
@media (min-width: 782px) {
	.tm-intro .tm-split:has(.tm-rep) > .wp-block-column:last-child > p:first-child {
		margin-top: 2px;
	}
}

/* PC：右列の下端を左の画像の下端にそろえる。代表写真は残りの高さに合わせて伸縮する */
@media (min-width: 1100px) {
	.tm-split > .wp-block-column:has(> .tm-rep) {
		display: flex;
		flex-direction: column;
	}

	.wp-block-group.tm-rep {
		flex: 1 1 0;
		flex-wrap: nowrap;
		min-height: 200px;
		container-type: size;
	}

	.wp-block-image.tm-rep__photo {
		width: calc((100cqh - 44px) * 800 / 992);
		height: calc(100cqh - 44px);
	}

	.wp-block-image.tm-rep__photo img {
		height: 100%;
		object-fit: cover;
	}
}

/* トップ：メインビジュアル下のニュース。上に30pxあけ、文字の始まりをキャッチにそろえる */
.home .wp-block-emanon-premium-blocks-info-lists {
	margin-top: 30px;
	padding-left: var(--tm-gutter);
}

@media (max-width: 1179px) {
	.home .wp-block-emanon-premium-blocks-info-lists {
		padding-left: 0;
	}
}

/* 幅の狭いPC・タブレットでも事業名を1行に収める */
@media (min-width: 782px) and (max-width: 1199px) {
	.tm-biz h3 {
		font-size: 2.7vw;
	}
}

/* 会社概要：VISION・MISSION（英字見出しの下に文言。どちらも中揃え） */
.wp-block-columns.tm-vm {
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	margin: 0;
	padding: 36px 0;
	border-bottom: 1px solid var(--tm-line);
}

.tm-vm-list > .wp-block-columns.tm-vm:first-child {
	padding-top: 0;
}

.tm-vm > .wp-block-column {
	flex: none !important;
	width: 100%;
}

.tm-section .tm-vm p.tm-en,
.tm-section .tm-vm h2.tm-catch {
	margin: 0;
}

/* 会社概要：PHILOSOPHY の署名は会社名と肩書・名前の2行で右揃え */
.tm-intro p.tm-sign {
	line-height: 2;
}

@media (max-width: 781px) {
	.wp-block-columns.tm-vm {
		gap: 4px;
		padding: 24px 0;
	}

	.tm-vm-list > .wp-block-columns.tm-vm:first-child {
		padding-top: 0;
	}
}

.tm-intro p.tm-sign strong {
	white-space: nowrap;
}

/* 会社概要：PHILOSOPHY の英字見出しとキャッチを中揃え */
.tm-head-center > p.tm-en,
.tm-head-center > .tm-catch {
	text-align: center;
}

/* スマホだけで効かせる改行（<br class="tm-br-sp">） */
@media (min-width: 782px) {
	.tm-br-sp {
		display: none;
	}
}

/* 会社概要のコピー：幅の狭いスマホでも指定の位置だけで改行されるようにする */
@media (max-width: 781px) {
	.tm-section .tm-vm h2.tm-catch,
	.tm-head-center > h2.tm-catch {
		font-size: min(21px, 5.5vw);
	}
}
