/* ==========================================================
   テクノパワー 子テーマ スタイル（フロント・エディタ共通）
   基本の配色・ヘッダー・フッターはSWELLのカスタマイザーで設定し、
   ここではページ用パターン（.tp-sec 以下）の見た目と、
   SWELLのスタイルとぶつかる箇所の打ち消しを書いています。
   ========================================================== */

:root {
	--tp-navy: #1F1C55;      /* メイン（ロゴの紺） */
	--tp-navy-2: #2E2A6E;
	--tp-gold: #C9A24A;      /* ボタン（ロゴのゴールド） */
	--tp-gold-line: #D9B864;
	--tp-gold-text: #E0D279;
	--tp-blue: #3F51A3;      /* 英字ラベル・リンクのホバー */
	--tp-red: #DC4030;       /* 認定・特許の表示（パンフレット） */
	--tp-green: #00A486;     /* 大きな数字の強調（白地では18px以上で使う） */
	--tp-sky: #DFF0FB;       /* 囲み枠・区切りの背景 */
	--tp-bg: #F4F3EF;
	--tp-bg-2: #F6F5F1;
	--tp-line: #DCDAD3;
	--tp-sub: #4A4C66;
	--tp-on-navy: #D9DAEB;
	--tp-field-line: #A9ABC8;
	--tp-font-head: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
	--tp-font-body: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
	--tp-font-num: 'Barlow Semi Condensed', 'Noto Sans JP', sans-serif;
	--tp-wrap: 1240px;
	--tp-gutter: 32px;
}

body,
.editor-styles-wrapper {
	font-family: var(--tp-font-body);
}

/* ---------- SWELLのページタイトル・本文上の余白を消す（パターンを使ったページだけ） ---------- */
.tp-landing .c-pageTitle,
.tp-landing .l-topTitleArea {
	display: none;
}
.tp-landing #content,
.tp-landing .l-mainContent,
.tp-landing .l-mainContent__inner {
	padding-top: 0;
	margin-top: 0;
}
.tp-landing .post_content {
	margin-top: 0;
	margin-bottom: 0;
}
.tp-landing .l-mainContent__inner > .post_content {
	margin-top: 0;
}

/* ==========================================================
   打ち消し：.tp-sec の中ではSWELLの見出し装飾・余白・リストの装飾を使わない
   ========================================================== */
.tp-sec,
.tp-sec * {
	box-sizing: border-box;
}
.tp-sec {
	color: var(--tp-navy);
	line-height: 1.7;
	font-size: 16px;
}
.tp-sec :is(h1, h2, h3, h4) {
	font-family: var(--tp-font-head);
	font-weight: 900;
	line-height: 1.3;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	box-shadow: none;
	text-align: left;
	letter-spacing: normal;
}
.tp-sec :is(h1, h2, h3, h4)::before,
.tp-sec :is(h1, h2, h3, h4)::after {
	content: none;
	display: none;
}
.tp-sec p {
	margin: 0;
}
/* :where() で詳細度を下げ、各部品（.tp-works など）の指定が優先されるようにする */
.tp-sec :where(.wp-block-list) {
	margin: 0;
	padding: 0 0 0 1.4em;
}
.tp-sec .wp-block-list li::before {
	/* SWELLのリスト装飾（点・番号）を消す */
	content: none;
}
.tp-sec .wp-block-list > li {
	margin: 0;
	padding: 0;
}
.tp-sec figure {
	margin: 0;
}
.tp-sec img {
	max-width: 100%;
	height: auto;
	display: block;
}
.tp-sec a {
	color: var(--tp-navy);
}
.tp-sec a:hover {
	color: var(--tp-blue);
}
.tp-sec .num {
	font-family: var(--tp-font-num);
}
.tp-sec :is(a, button):focus-visible {
	outline: 3px solid var(--tp-blue);
	outline-offset: 2px;
}
.tp-sec .wp-block-columns {
	margin: 0;
}

/* SWELL・WordPressが付けるブロック間の余白をこのテーマの値にそろえる */
.post_content .tp-sec {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
/* SWELLは全幅ブロックの内側を本文幅（900px）に制限するので、このテーマの区画では外す。
   幅は .tp-wrap（最大1240px）で決める */
.tp-sec > .wp-block-group__inner-container,
.tp-wrap > .wp-block-group__inner-container {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
/* SWELLが本文のブロックに付ける下余白を、このテーマの区画では使わない。
   :where() で詳細度を抑え、見出し・リンクなど各部品で決めた余白が優先されるようにする */
.post_content .tp-sec :where(.wp-block-group, .wp-block-columns, .wp-block-column, .wp-block-image, .wp-block-gallery, .wp-block-list, .wp-block-table, .wp-block-buttons, .wp-block-embed, .wp-block-heading, p) {
	margin-bottom: 0;
}

/* ==========================================================
   セクション
   ========================================================== */
.tp-sec {
	padding: 96px 0;
	background: var(--tp-bg);
}
.tp-sec--first {
	padding-bottom: 48px;
}
.tp-sec--tight {
	padding: 48px 0;
}
.tp-sec--white {
	background: #fff;
	border-top: 1px solid var(--tp-line);
	border-bottom: 1px solid var(--tp-line);
}
.tp-sec--sky {
	background: var(--tp-sky);
}
.tp-sec--navy {
	background: var(--tp-navy);
	color: var(--tp-bg);
}
.tp-sec--navy a {
	color: inherit;
}
.tp-wrap {
	max-width: var(--tp-wrap) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: var(--tp-gutter);
	padding-right: var(--tp-gutter);
	display: flex;
	flex-direction: column;
	gap: 0;
}
/* グループの内側の入れ物（古いWordPress／クラシックテーマで出る場合）も同じ並びにする */
.tp-wrap > .wp-block-group__inner-container {
	display: flex;
	flex-direction: column;
}

.tp-eyebrow {
	font-family: var(--tp-font-num);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .2em;
	color: var(--tp-blue);
	margin-bottom: 8px !important;
}
.tp-sec .tp-title {
	font-size: 36px;
	margin-bottom: 40px;
}
.tp-sec .tp-title--sm {
	font-size: 22px;
	margin-bottom: 16px;
}
.tp-sec .tp-subtitle {
	font-size: 22px;
	margin: 48px 0 8px;
}
.tp-lead {
	color: var(--tp-sub);
	max-width: 46em;
}
.tp-sec--navy .tp-lead {
	color: var(--tp-on-navy);
}
.tp-note {
	font-size: 13px;
	color: var(--tp-sub);
	margin-top: 12px !important;
}
.tp-more {
	font-weight: 700;
}
.tp-sec .tp-more:not(:first-child) {
	margin-top: 24px;
}
.tp-callout {
	background: var(--tp-sky);
	padding: 24px 28px;
	font-weight: 700;
}

/* ---------- ボタン ---------- */
.tp-sec .wp-block-buttons {
	gap: 12px;
	margin: 0;
}
.tp-sec .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 14px 28px;
	border-radius: 4px;
	font-family: inherit;
	font-weight: 700;
	font-size: 17px;
	text-decoration: none;
	border: 1px solid transparent;
	box-shadow: none;
}
.tp-btn-gold .wp-block-button__link {
	background: var(--tp-gold);
	color: var(--tp-navy) !important;
}
.tp-btn-gold .wp-block-button__link:hover {
	background: var(--tp-gold-line);
}
.tp-btn-navy .wp-block-button__link {
	background: var(--tp-navy);
	color: #fff !important;
}
.tp-btn-navy .wp-block-button__link:hover {
	background: var(--tp-navy-2);
}
.tp-btn-ghost .wp-block-button__link {
	background: transparent;
	border-color: var(--tp-bg);
	color: var(--tp-bg) !important;
}
.tp-btn-ghost .wp-block-button__link:hover {
	background: rgba(255, 255, 255, .08);
}

/* ---------- 認定バッジ（パンフレットと同じ「白地に赤の枠と文字」） ---------- */
.tp-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px !important;
}
.tp-badge {
	background: #fff;
	border: 2px solid var(--tp-red);
	color: var(--tp-red);
	padding: 3px 12px;
	font-family: var(--tp-font-head);
	font-size: 15px;
	font-weight: 900;
	letter-spacing: .02em;
}
.tp-badge .num {
	font-family: var(--tp-font-num);
	font-weight: 600;
}

/* ==========================================================
   ヒーロー（トップ）
   ========================================================== */
.tp-hero {
	padding: 0;
}
.tp-hero__cols {
	gap: 56px !important;
	align-items: center !important;
	padding: 72px 0 88px;
}
.tp-hero__copy {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.tp-hero__copy .tp-badges {
	margin-bottom: 0 !important;
}
/* キャッチコピーは1行で見せる（10文字が列幅に収まる大きさ） */
.tp-sec .tp-hero__title {
	font-size: clamp(26px, 4.3vw, 56px);
	line-height: 1.2;
	letter-spacing: .02em;
	white-space: nowrap;
}
/* キャッチコピーの「動く。」：ページを開くと右から滑り込み、少し行き過ぎてから定位置に止まる */
.tp-hero {
	overflow-x: clip; /* 動き始めの位置で横にはみ出さないように */
}
.tp-hero__move {
	display: inline-block;
	animation: tp-hero-move 1s cubic-bezier(.2, .8, .25, 1) .4s both;
}
@keyframes tp-hero-move {
	0% {
		opacity: 0;
		transform: translateX(1.2em);
	}
	60% {
		opacity: 1;
		transform: translateX(-.08em);
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}
/* 「杭頭補強筋が、」：1文字ずつ下からふわっと出る（文字の分割は inc/technopower.php） */
.tp-hero__ch {
	display: inline-block;
	animation: tp-hero-ch .5s cubic-bezier(.2, .8, .25, 1) both;
	animation-delay: calc(.2s + var(--tp-i, 0) * 70ms);
}
@keyframes tp-hero-ch {
	0% {
		opacity: 0;
		transform: translateY(.45em);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}
@media (prefers-reduced-motion: reduce) {
	.tp-hero__move,
	.tp-hero__ch {
		animation: none;
	}
}
/* エディタでは動かさない */
.editor-styles-wrapper .tp-hero__move {
	animation: none;
}
.tp-hero__text {
	font-size: 18px;
	color: var(--tp-on-navy);
	max-width: 34em;
}
.tp-hero__copy .wp-block-buttons {
	padding-top: 8px;
}
.tp-hero__img img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
/* 写真のスライドショー（assets/js/tp-hero.js）。
   公開ページでは写真を同じ正方形の枠に重ね、表示中の1枚だけを見せる。エディタでは普通のギャラリーとして並ぶ */
.post_content .tp-hero .wp-block-gallery.tp-hero__slides {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 0 !important;
	margin: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}
.post_content .tp-hero .tp-hero__slides .wp-block-image {
	grid-area: 1 / 1;
	width: 100% !important;
	height: 100%;
	margin: 0 !important;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.post_content .tp-hero .tp-hero__slides .wp-block-image:first-child,
.post_content .tp-hero .tp-hero__slides.is-ready .wp-block-image.is-active {
	opacity: 1;
}
.post_content .tp-hero .tp-hero__slides.is-ready .wp-block-image:not(.is-active) {
	opacity: 0;
}
.post_content .tp-hero .tp-hero__slides .wp-block-image img {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.post_content .tp-hero .tp-hero__slides .wp-block-image::before {
	content: none !important;
}
@media (prefers-reduced-motion: reduce) {
	.post_content .tp-hero .tp-hero__slides .wp-block-image {
		transition: none;
	}
}
/* PCでは文章と画像を横並びにし、紺背景の上下の余白を画像の右側（画面端まで）の余白と同じにする。
   大画面で間延びしないよう上限は80px。%は親の横幅が基準なのでスクロールバーを含まない幅で揃う */
@media (min-width: 861px) {
	.tp-hero .tp-wrap {
		--tp-hero-space: clamp(var(--tp-gutter), calc((100% - var(--tp-wrap)) / 2 + var(--tp-gutter)), 80px);
		padding-top: var(--tp-hero-space);
		padding-bottom: var(--tp-hero-space);
	}
	.tp-hero__cols {
		display: grid !important;
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		padding: 0;
	}
}

/* ---------- 実績バー ---------- */
.tp-proof-sec {
	padding: 0;
	border-top: 0;
}
.tp-sec .tp-proof {
	list-style: none;
	padding: 24px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 40px;
	font-size: 15px;
}
.tp-proof li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
}
.tp-proof li > span {
	color: var(--tp-sub);
}
.tp-netis-no {
	color: var(--tp-green);
	font-family: var(--tp-font-num);
	font-weight: 600;
	font-size: 20px;
	line-height: 1;
}

/* ---------- カード（製品） ---------- */
.tp-cards {
	gap: 32px !important;
}
.tp-card {
	background: #fff;
	border: 1px solid var(--tp-line);
	display: flex;
	flex-direction: column;
}
.tp-card > * {
	margin: 0 28px 12px !important;
}
.tp-card > .wp-block-image {
	margin: 0 0 28px !important;
}
.tp-card img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.tp-sec .tp-card h3 {
	font-size: 24px;
}
.tp-card p {
	color: var(--tp-sub);
}
/* 下の余白はカードの内側に取る（SWELLが列の最後の要素の余白を0にするため）。
   リンクは残りの高さを埋めて、左右のカードで下端をそろえる */
.tp-card {
	padding-bottom: 28px;
}
.tp-card .tp-more {
	flex-grow: 1;
	display: flex;
	align-items: flex-end;
	padding-top: 12px;
}

/* ---------- 工事の入口（罫線区切り 3列×2段） ---------- */
.tp-sec .tp-works {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--tp-line);
	border: 1px solid var(--tp-line);
}
.tp-works a {
	background: #fff;
	padding: 28px;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
}
.tp-works a:hover {
	background: var(--tp-bg-2);
}
.tp-works strong {
	font-family: var(--tp-font-head);
	font-weight: 900;
	font-size: 20px;
}
.tp-works span {
	color: var(--tp-sub);
	font-size: 15px;
}

/* ---------- 紺の帯（VE提案・お見積りの案内） ---------- */
.tp-ve,
.tp-cta {
	padding: 72px 0;
}
.tp-cta {
	padding: 56px 0;
}
.tp-cta-cols {
	align-items: center !important;
	gap: 24px 40px !important;
}
.tp-cta-cols > .wp-block-column:last-child {
	flex: 0 0 auto !important;
}
.tp-sec .tp-cta-cols .tp-title {
	font-size: 30px;
	margin-bottom: 12px;
}
.tp-cta .tp-title {
	font-size: 26px !important;
}

/* ---------- 見出しと右端リンクの横並び ---------- */
.tp-head-cols {
	align-items: flex-end !important;
	margin-bottom: 40px !important;
}
.tp-head-cols .tp-title {
	margin-bottom: 0;
}
.tp-head-cols > .wp-block-column:last-child {
	flex: 0 0 auto !important;
}

/* ---------- お知らせ（トップ） ---------- */
.tp-posts {
	gap: 24px !important;
}
.tp-post {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.tp-post img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.tp-date {
	font-family: var(--tp-font-num);
	font-size: 14px;
	color: var(--tp-sub);
}
.tp-sec .tp-post h3 {
	font-family: var(--tp-font-body);
	font-size: 17px;
	font-weight: 700;
}

/* ---------- お問い合わせ ---------- */
.tp-contact {
	gap: 56px !important;
	align-items: flex-start !important;
}
.tp-contact__side {
	display: flex;
	flex-direction: column;
	gap: 20px;
	flex: 1 1 360px !important;
}
.tp-contact__side .tp-title {
	margin-bottom: 0;
}
.tp-contact__side .tp-eyebrow {
	margin-bottom: -12px !important;
}
.tp-contact__form {
	flex: 1.4 1 520px !important;
}
.tp-docs {
	background: var(--tp-sky);
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.tp-sec .tp-docs h3 {
	font-size: 20px;
}
.tp-docs ol {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.tp-docs ol > li {
	list-style: decimal;
}
.tp-docs small {
	display: block;
	color: var(--tp-sub);
	font-size: 14px;
}
.tp-formbox {
	background: var(--tp-bg-2);
	border: 1px solid var(--tp-line);
	padding: 36px;
}

/* ==========================================================
   下層ページ
   ========================================================== */
.tp-pagehead {
	background: var(--tp-navy);
	color: var(--tp-bg);
	padding: 56px 0;
}
.tp-pagehead .tp-eyebrow {
	color: var(--tp-gold-text);
}
.tp-sec.tp-pagehead .tp-title {
	font-size: clamp(30px, 4vw, 44px);
	margin-bottom: 0;
}
.tp-pagehead .tp-lead {
	color: var(--tp-on-navy);
	margin-top: 16px;
}
.tp-subname {
	font-family: var(--tp-font-head);
	font-weight: 700;
	font-size: 18px;
	color: var(--tp-gold-text);
	margin-top: 8px !important;
}

.tp-prose {
	max-width: 46em;
	display: flex;
	flex-direction: column;
	gap: 1.1em;
}
.tp-sec .tp-prose h2 {
	font-size: 28px;
	margin-top: 1.4em;
}
.tp-sec .tp-prose h2:first-child {
	margin-top: 0;
}
.tp-sec .tp-prose h3 {
	font-size: 20px;
	margin-top: .8em;
}
.tp-prose ul > li {
	list-style: disc;
}
.tp-prose ul {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.tp-prose--spaced {
	margin-top: 64px !important;
}

/* 2列（左が少し広い）。列ブロックの伸び縮みに任せず、比率をグリッドで固定する */
.tp-sec .wp-block-columns.tp-split {
	display: grid !important;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 56px !important;
	align-items: start !important;
}
.tp-sec .wp-block-columns.tp-split--even {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.tp-split > .wp-block-column {
	flex-basis: auto !important;
	width: auto !important;
}

/* ---------- 特長（番号つきの罫線区切り） ---------- */
.tp-sec .tp-features {
	list-style: none;
	padding: 0;
	counter-reset: tp-f;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1px;
	background: var(--tp-line);
	border: 1px solid var(--tp-line);
}
.tp-features > li {
	counter-increment: tp-f;
	background: #fff;
	padding: 28px !important;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.tp-sec .tp-features > li::before {
	content: counter(tp-f, decimal-leading-zero);
	font-family: var(--tp-font-num);
	font-weight: 600;
	font-size: 32px;
	line-height: 1;
	color: var(--tp-green);
	letter-spacing: .1em;
	position: static;
	background: none;
	width: auto;
	height: auto;
}
.tp-features strong {
	font-family: var(--tp-font-head);
	font-size: 19px;
	font-weight: 900;
}
.tp-features span {
	color: var(--tp-sub);
	font-size: 15px;
}
/* PCでは3列×2段。6つ目の空きマスは白で埋める */
.tp-sec .tp-features-5 {
	grid-template-columns: repeat(3, 1fr);
}
.tp-features-5::after {
	content: "";
	background: #fff;
}

/* ---------- 表 ---------- */
.tp-table table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}
.tp-table :is(th, td) {
	text-align: left;
	padding: 16px 20px;
	border: 1px solid var(--tp-line);
	vertical-align: top;
}
.tp-table th {
	width: 11em;
	min-width: 7.5em;
	word-break: keep-all;
	background: #fff;
	font-weight: 700;
}

/* ---------- 製品の構成（丸数字つき） ---------- */
.tp-sec .tp-parts {
	list-style: none;
	padding: 0;
	counter-reset: tp-p;
	border-top: 1px solid var(--tp-line);
}
.tp-parts > li {
	counter-increment: tp-p;
	display: grid !important;
	grid-template-columns: 2.4em 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 12px 0 !important;
	border-bottom: 1px solid var(--tp-line);
	font-weight: 700;
}
.tp-sec .tp-parts > li::before {
	content: counter(tp-p);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--tp-navy);
	color: var(--tp-gold-text);
	font-family: var(--tp-font-num);
	font-weight: 600;
	font-size: 16px;
	position: static;
}
.tp-parts .num {
	color: var(--tp-sub);
	font-weight: 600;
}

/* ---------- 比較（2列の枠） ---------- */
.tp-compare {
	gap: 24px !important;
}
.tp-compare-col {
	background: var(--tp-bg-2);
	border: 1px solid var(--tp-line);
	padding: 28px;
}
.tp-compare-col.is-tp {
	background: var(--tp-sky);
	border: 2px solid var(--tp-navy);
}
.tp-sec .tp-compare-col h3 {
	font-size: 20px;
	margin-bottom: 16px;
}
/* 工期の比較例は2つとも白地 */
.tp-compare--schedule .tp-compare-col {
	background: #fff;
}
.tp-compare--schedule {
	margin-top: 24px !important;
}

.tp-sec .tp-flow {
	list-style: none;
	padding: 0;
	counter-reset: tp-fl;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tp-flow > li {
	counter-increment: tp-fl;
	display: grid !important;
	grid-template-columns: 32px 1fr;
	column-gap: 12px;
	align-items: start;
}
.tp-sec .tp-flow > li::before {
	content: counter(tp-fl);
	grid-row: span 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--tp-navy);
	font-family: var(--tp-font-num);
	font-weight: 600;
	position: static;
	background: none;
}
.tp-sec .is-tp .tp-flow > li::before {
	background: var(--tp-navy);
	color: var(--tp-gold-text);
}
.tp-flow em {
	font-style: normal;
	font-size: 14px;
	font-weight: 700;
	margin-top: 4px;
	justify-self: start;
	padding: 0 8px;
}
.tp-flow-bad {
	color: #fff;
	background: var(--tp-red);
}
.tp-flow-good {
	color: var(--tp-navy);
	background: var(--tp-gold-text);
}

/* ---------- 工期の表 ---------- */
.tp-schedule table {
	width: 100%;
	border-collapse: collapse;
}
.tp-schedule :is(td, th) {
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid var(--tp-line);
	text-align: left;
	background: none;
}
.tp-schedule td:last-child {
	text-align: right;
	white-space: nowrap;
	font-weight: 600;
	font-size: 20px;
	line-height: 1.2;
}
.tp-schedule tfoot {
	border-top: 0;
}
.tp-schedule tfoot td {
	border-bottom: 0;
	padding-top: 16px;
	font-size: 22px;
	font-weight: 900;
	font-family: var(--tp-font-head);
}
.tp-schedule tfoot td:last-child {
	font-size: 30px;
	font-family: var(--tp-font-num);
}
.is-tp .tp-schedule tfoot td:last-child {
	color: var(--tp-red);
}
.tp-saving {
	margin-top: 16px !important;
	background: var(--tp-red);
	color: #fff;
	font-family: var(--tp-font-head);
	font-weight: 900;
	font-size: 22px;
	text-align: center;
	padding: 12px;
}
.tp-saving .num {
	font-size: 40px;
	line-height: 1;
	margin-right: 4px;
}

/* ---------- 施工手順カード（吊り型枠ページ） ---------- */
.tp-sec .tp-stepcards {
	list-style: none;
	padding: 0;
	counter-reset: tp-s;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
	margin-bottom: 40px !important;
}
.tp-stepcards > li {
	counter-increment: tp-s;
	background: #fff;
	border: 1px solid var(--tp-line);
	padding: 16px !important;
	font-weight: 700;
	font-size: 15px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tp-stepcards > li.cut {
	background: var(--tp-bg-2);
	color: var(--tp-sub);
}
.tp-stepcards s {
	text-decoration-color: var(--tp-gold);
	text-decoration-thickness: 2px;
}
.tp-sec .tp-stepcards > li.cut::after {
	content: "TPボトムパイルバスケットで不要";
	display: inline-block;
	font-size: 12px;
	color: var(--tp-navy);
	background: var(--tp-gold-text);
	padding: 0 6px;
	align-self: flex-start;
	position: static;
}

/* ---------- 施工工程の番号札（写真一覧・施工手順で共通） ---------- */
.tp-sec .tp-stepcards > li::before,
.tp-sec .wp-block-gallery.tp-steps figure.wp-block-image::after {
	content: counter(tp-s, decimal-leading-zero);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	height: 44px;
	padding: 0 12px;
	background: var(--tp-navy);
	color: var(--tp-gold-text);
	font-family: var(--tp-font-num);
	font-weight: 600;
	font-size: 26px;
	line-height: 1;
	letter-spacing: .04em;
	border-bottom: 3px solid var(--tp-gold);
	align-self: flex-start;
	position: static;
	width: auto;
}
.tp-sec .tp-stepcards > li.cut::before {
	background: var(--tp-sub);
	color: #fff;
}

/* ---------- 写真一覧（WordPressのギャラリーブロックをグリッドで並べ直す） ---------- */
.tp-sec .wp-block-gallery.tp-steps,
.tp-sec .wp-block-gallery.tp-photos {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px !important;
	margin-top: 1.7em;
	counter-reset: tp-s;
}
.tp-sec .wp-block-gallery.tp-steps .wp-block-image,
.tp-sec .wp-block-gallery.tp-photos .wp-block-image {
	width: auto !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 6px;
	position: relative;
	counter-increment: tp-s;
}
/* 写真の番号札は左上に重ねる。WordPressのギャラリーがキャプション用に付ける ::before の装飾は使わない */
.tp-sec .wp-block-gallery.tp-steps figure.wp-block-image::after {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	pointer-events: none;
	visibility: visible; /* SWELLの回り込み解除（clearfix）で隠されるのを戻す */
	height: 44px;
	clear: none;
}
.tp-sec .wp-block-gallery.has-nested-images.tp-steps figure.wp-block-image::before,
.tp-sec .wp-block-gallery.has-nested-images.tp-photos figure.wp-block-image::before {
	content: none !important;
	display: none !important;
}
.tp-sec .wp-block-gallery.tp-steps .wp-block-image img,
.tp-sec .wp-block-gallery.tp-photos .wp-block-image img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--tp-line);
	flex: none;
}
.tp-sec .wp-block-gallery.tp-tall .wp-block-image img {
	aspect-ratio: 3 / 4;
}
.tp-sec .wp-block-gallery.tp-3col {
	grid-template-columns: repeat(3, 1fr);
}
/* キャプションは写真に重ねず、下に置く */
.tp-sec .wp-block-gallery .wp-block-image figcaption {
	position: static !important;
	background: none !important;
	color: var(--tp-sub) !important;
	padding: 0 !important;
	margin: 0 !important;
	max-height: none !important;
	overflow: visible !important;
	text-align: left !important;
	font-size: 13px !important;
	text-shadow: none !important;
}
.tp-sec .wp-block-gallery.tp-steps--cap .wp-block-image figcaption {
	color: var(--tp-navy) !important;
	font-size: 15px !important;
	font-weight: 700;
	line-height: 1.6;
	margin-top: 4px !important;
}

/* ---------- 採用現場・お知らせ ---------- */
.tp-sec .tp-sites,
.tp-sec .tp-news {
	list-style: none;
	padding: 0;
	border-top: 1px solid var(--tp-line);
}
.tp-sites > li {
	display: grid !important;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 8px 32px;
	padding: 18px 0 !important;
	border-bottom: 1px solid var(--tp-line);
}
.tp-sites span {
	color: var(--tp-sub);
}
.tp-news > li {
	display: grid !important;
	grid-template-columns: 8em 1fr;
	gap: 16px;
	padding: 16px 0 !important;
	border-bottom: 1px solid var(--tp-line);
}

/* ---------- 関連するページ ---------- */
.tp-sec .tp-related {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1px;
	background: var(--tp-line);
	border: 1px solid var(--tp-line);
}
.tp-related a {
	display: block;
	background: #fff;
	padding: 20px 24px;
	text-decoration: none;
	font-weight: 700;
	height: 100%;
}
.tp-related a:hover {
	background: var(--tp-bg-2);
}

/* ---------- 動画 ---------- */
.tp-sec .wp-block-embed {
	margin: 0;
}

/* ==========================================================
   Contact Form 7（フォームの見た目と確認画面）
   ========================================================== */
.tp-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.tp-form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
}
.tp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}
.tp-field > label,
.tp-field > .tp-label {
	font-weight: 700;
	font-size: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.tp-req {
	background: var(--tp-navy);
	color: #fff;
	font-size: 11px;
	padding: 1px 6px;
	border-radius: 2px;
}
.tp-opt {
	color: var(--tp-sub);
	font-size: 12px;
	font-weight: 500;
}
.tp-form :is(input[type=text], input[type=email], input[type=tel], select, textarea) {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	font: inherit;
	font-size: 16px;
	color: var(--tp-navy);
	background: #fff;
	border: 1px solid var(--tp-field-line);
	border-radius: 4px;
	box-shadow: none;
}
.tp-form textarea {
	min-height: 140px;
	resize: vertical;
}
.tp-form .wpcf7-form-control-wrap {
	display: block;
}
.tp-drop {
	border: 2px dashed var(--tp-field-line);
	border-radius: 6px;
	background: #fff;
	padding: 20px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tp-drop input[type=file] {
	font: inherit;
	font-size: 14px;
	max-width: 100%;
}
.tp-hint {
	font-size: 13px;
	color: var(--tp-sub);
}
.tp-agree .wpcf7-list-item {
	margin: 0;
}
.tp-agree label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	min-height: 44px;
}
.tp-agree input {
	width: 20px;
	height: 20px;
	margin: 0;
}
.tp-form .wpcf7-submit,
.tp-confirm .tp-confirm__send {
	width: 100%;
	min-height: 56px;
	border: 0;
	border-radius: 4px;
	background: var(--tp-gold);
	color: var(--tp-navy);
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
}
.tp-form .wpcf7-submit:hover,
.tp-confirm .tp-confirm__send:hover {
	background: var(--tp-gold-line);
}
.tp-form .wpcf7-spinner {
	display: block;
	margin: 8px auto 0;
}
.tp-form .wpcf7-not-valid-tip {
	color: #B3261E;
	font-size: 13px;
	font-weight: 700;
	margin-top: 4px;
}
.wpcf7 form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 16px;
	font-size: 15px;
}

/* 確認画面（assets/js/tp-cf7.js が作る） */
.tp-form[hidden],
.tp-confirm[hidden],
.tp-form-alert[hidden] {
	display: none !important;
}
.tp-confirm {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.tp-confirm h3 {
	font-size: 22px;
}
.tp-confirm dl {
	margin: 0;
	display: grid;
	grid-template-columns: 11em 1fr;
	border-top: 1px solid var(--tp-line);
}
.tp-confirm :is(dt, dd) {
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--tp-line);
}
.tp-confirm dt {
	font-weight: 700;
	padding-right: 16px;
}
.tp-confirm dd {
	white-space: pre-wrap;
	word-break: break-all;
}
.tp-confirm__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.tp-confirm__actions button {
	flex: 1 1 200px;
}
.tp-confirm .tp-confirm__back {
	min-height: 56px;
	border: 1px solid var(--tp-navy);
	border-radius: 4px;
	background: transparent;
	color: var(--tp-navy);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.tp-form-alert {
	background: #FBEAEA;
	border: 1px solid #E3B4B1;
	color: #7A1B16;
	padding: 16px;
	font-size: 15px;
}

/* ---------- Instagram（Smash Balloon Instagram Feed） ---------- */
/* 写真の並び（列数・枚数）はプラグインのフィード設定で決める。ここでは余白と角だけ整える */
.tp-insta #sb_instagram {
	padding: 0 !important;
	width: 100% !important;
}
.tp-insta #sb_instagram #sbi_images {
	padding: 0 !important;
}
.tp-insta #sb_instagram .sbi_photo {
	border-radius: 0;
}
.tp-insta #sb_instagram .sbi_header_text,
.tp-insta #sb_instagram .sb_instagram_header {
	display: none; /* 見出しはこのテーマ側で出すので、プラグインのヘッダーは使わない */
}
.tp-insta #sb_instagram #sbi_load {
	margin-top: 24px;
}

/* ---------- フッターの会社情報（SWELLのフッターウィジェット） ---------- */
.tp-footer-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	line-height: 1.7;
}
.tp-footer-info p {
	margin: 0;
}
.tp-footer-info__name {
	font-family: var(--tp-font-head);
	font-weight: 900;
	font-size: 20px;
	color: #fff;
}
.tp-footer-info a {
	color: inherit;
	font-weight: 700;
}

/* ==========================================================
   ヘッダーのボタン・スマホの固定ボタン
   ========================================================== */
/* グローバルナビの「お見積り・ご相談」：メニュー項目に CSSクラス tp-nav-cta を付ける。
   ページ内のボタンと同じ「ゴールドの背景に紺の文字」 */
.tp-nav-cta > a {
	background: var(--tp-gold) !important;
	color: var(--tp-navy) !important;
	border-radius: 4px;
	padding: 10px 20px !important;
	font-weight: 700;
}
.tp-nav-cta > a:hover {
	background: var(--tp-gold-line) !important;
	color: var(--tp-navy) !important;
}

.tp-sp-cta {
	display: none;
}

/* ==========================================================
   タブレット
   ========================================================== */
@media (max-width: 1024px) {
	.tp-sec .tp-works {
		grid-template-columns: repeat(2, 1fr);
	}
	.tp-sec .wp-block-gallery.tp-3col {
		grid-template-columns: repeat(2, 1fr);
	}
	.tp-sec .wp-block-columns.tp-split {
		grid-template-columns: 1fr;
		gap: 40px !important;
	}
	.tp-sec .tp-features-5 {
		grid-template-columns: repeat(2, 1fr);
	}
	.tp-features-5 > li:last-child {
		grid-column: 1 / -1;
	}
	.tp-features-5::after {
		display: none;
	}
}

/* ==========================================================
   スマホ
   ========================================================== */
@media (max-width: 860px) {
	:root {
		--tp-gutter: 20px;
	}
	.tp-sec {
		padding: 56px 0;
	}
	.tp-sec .tp-title {
		font-size: 26px;
		margin-bottom: 24px;
	}
	.tp-hero__cols {
		padding: 32px 0 40px;
		gap: 24px !important;
	}
	.tp-hero__text {
		font-size: 15px;
	}
	.tp-sec .wp-block-buttons,
	.tp-sec .wp-block-button {
		width: 100%;
	}
	.tp-sec .wp-block-button__link {
		width: 100%;
	}
	.tp-sec .tp-works {
		grid-template-columns: 1fr;
	}
	.tp-works a {
		padding: 18px 20px;
	}
	.tp-ve {
		padding: 48px 0;
	}
	.tp-sec .tp-cta-cols .tp-title {
		font-size: 22px;
	}
	.tp-formbox {
		padding: 20px;
		border: 0;
		background: transparent;
	}
	.tp-confirm dl {
		grid-template-columns: 1fr;
	}
	.tp-confirm dt {
		border-bottom: 0;
		padding-bottom: 0;
	}
	.tp-table :is(th, td) {
		display: block;
		width: auto;
		border-top: 0;
	}
	.tp-table tr:first-child th {
		border-top: 1px solid var(--tp-line);
	}
	.tp-sites > li,
	.tp-news > li {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	.tp-sec .wp-block-gallery.tp-3col {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	}
	.tp-sec .tp-features-5 {
		grid-template-columns: 1fr;
	}
	.tp-compare-col {
		padding: 20px;
	}

	/* スマホ用の固定ボタン */
	/* SWELLは body ではなく #body_wrap にクラスを付ける */
	.tp-has-sp-cta {
		padding-bottom: 76px;
	}
	/* ボタン自体は #body_wrap の外に出力される（お問い合わせページでは出力しない） */
	.tp-sp-cta {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 100;
		background: var(--tp-navy);
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	}
	/* SWELLの「ページ上部へ戻る」などの固定ボタンを、固定ボタンの上にずらす */
	body:has(.tp-sp-cta) .p-fixBtnWrap {
		bottom: 88px;
	}
	.tp-sp-cta__btn {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 52px;
		border-radius: 4px;
		background: var(--tp-gold);
		color: var(--tp-navy) !important;
		font-weight: 700;
		font-size: 16px;
		text-decoration: none;
	}
}

/* ==========================================================
   ブロックエディタ（編集画面）：全幅の背景が見えるよう余白を調整
   ========================================================== */
.editor-styles-wrapper .tp-sec {
	margin-left: 0;
	margin-right: 0;
}
