/*
Theme Name: tj-estate
Theme URI: https://example.com/tj-estate
Author: polaidea
Author URI: 
Description: A custom block theme for TJ-Estate based on specific design requirements.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tj-estate
*/

/* Utilities */
.u-relative {
	position: relative;
}

.u-absolute {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}

.u-z-10 {
	z-index: 10;
}

.u-w-1008 {
	width: 1008px;
	max-width: 100%;
}

.u-pointer-events-none {
	pointer-events: none;
}

.u-pointer-events-auto {
	pointer-events: auto;
}

/* Global Settings */
html,
body {
	overscroll-behavior-y: none;
}

/* Global Layout Resets */
main,
footer {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* =========================================
   Header Section (Desktop)
   ========================================= */
header,
.tj-header-section {
	position: fixed !important;
	top: var(--wp-admin--admin-bar--height, 0) !important;
	left: 0 !important;
	right: 0 !important;
	width: 100%;
	margin-bottom: 0 !important;
	z-index: 9999 !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tj-fixed-header-wrapper {
	position: fixed !important;
	top: var(--wp-admin--admin-bar--height, 0) !important;
	z-index: 9999 !important;
	width: 100% !important;
}

/* Logo Sizing */
.tj-header-section .wp-block-image {
	display: block !important;
	max-height: 70px;
	/* 90px header - 20px padding */
	margin: 0;
}

.tj-header-section .wp-block-image img {
	height: 100%;
	width: auto;
	max-height: 70px;
	object-fit: contain;
}

/* PC-Only Header CTA Button Design */
/* New Button Style implementation */
.tj-header-cta-btn .wp-block-button__link {
	display: flex !important;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 25px !important;
	padding: 5px 20px;
	color: var(--wp--preset--color--white, #fff) !important;
}

.tj-header-cta-btn .wp-block-button__link .tj-btn-sub {
	font-size: 10px;
	display: block;
}

.tj-header-cta-btn .wp-block-button__link .tj-btn-main {
	font-size: 18px;
	font-weight: 700;
	display: block;
}

@media screen and (min-width: 769px) {
	.tj-header-cta {
		position: relative !important;
		padding-right: 50px !important;
		padding-left: 25px !important;
		min-width: 230px;
		align-items: center !important;
		/* Center text block horizontally */
	}

	.tj-header-cta p {
		text-align: center !important;
		/* Center text lines relative to each other */
		width: 100%;
	}

	.tj-header-cta::after {
		content: '';
		position: absolute;
		right: 10px;
		top: 50%;
		transform: translateY(-50%);
		width: 30px;
		height: 30px;
		background-color: white;
		border-radius: 50%;
		background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23B8860B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: center;
		background-size: 16px 16px;
	}

	.tj-header-cta-btn .wp-block-button__link {
		position: relative !important;
		padding-right: 50px !important;
		padding-left: 25px !important;
		min-width: 230px;
	}

	.tj-header-cta-btn .wp-block-button__link::after {
		content: '';
		position: absolute;
		right: 10px;
		top: 50%;
		transform: translateY(-50%);
		width: 30px;
		height: 30px;
		background-color: white;
		border-radius: 50%;
		background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23B8860B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: center;
		background-size: 16px 16px;
	}
}

/* Ensure other template parts (footer) remain relative */
.wp-block-template-part:not(header) {
	position: relative !important;
	width: 100%;
}

/* Add padding to body to prevent content from being hidden behind fixed header */
body {
	padding-top: 90px;
	/* 90px fixed header height */
	margin: 0;
}

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 90px);
}

/* =========================================
   Hero Section
   ========================================= */

/* Hero Common Styles (Global) */
.tj-hero-title {
	font-weight: 900;
	margin: 0;
	font-family: var(--wp--preset--font-family--serif, serif);
	color: var(--wp--preset--color--hero-title, #0c2f50);
}

.tj-hero-subtitle {
	margin-top: 20px;
	margin-bottom: 0;
	font-family: var(--wp--preset--font-family--sans, sans-serif);
	color: var(--wp--preset--color--hero-title, #0c2f50);
}

/* Hero Container (Desktop) */
@media screen and (min-width: 769px) {
	.tj-hero-section {
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
		position: relative;
		height: calc(100vh - 90px) !important;
		/* Full height minus header */
	}

	/* Background/Spacer Group */
	.tj-hero-content-wrapper {
		padding-top: 180px;
	}

	/* Text Box (Blue Box) */
	.tj-hero-text-box {
		background-color: var(--wp--preset--color--bg-alice-blue, #e2f4ff);
		/* Fallback */
		width: 1008px;
		max-width: 100%;
		padding: 50px 50px 50px 80px;
		min-height: 0;
	}

	/* Main Title */
	.tj-hero-title {
		font-size: 70px;
		font-weight: 900;
		margin: 0;
		font-family: var(--wp--preset--font-family--serif, serif);
		color: var(--wp--preset--color--hero-title, #0c2f50);
	}

	/* Subtitle */
	.tj-hero-subtitle {
		font-size: 32px;
		margin-top: 20px;
		margin-bottom: 0;
		font-family: var(--wp--preset--font-family--sans, sans-serif);
		color: var(--wp--preset--color--hero-title, #0c2f50);
	}

	/* Cover Image Block */
	.tj-hero-cover {
		position: absolute !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 200px !important;
		width: auto !important;
		height: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		min-height: 0 !important;
		z-index: 0;
		/* Behind text (z-10) */
	}

	.tj-hero-cover img.wp-block-cover__image-background {
		height: 100% !important;
		width: 100% !important;
		object-fit: cover !important;
	}

	.tj-hero-cover .wp-block-cover__inner-container {
		position: absolute !important;
		top: 550px;
		/* Below the blue box */
		left: 50px;
		/* Align with green box start */
		bottom: auto;
		z-index: 10;
	}
}

/* Cover Content Text */
.tj-hero-cover-text {
	font-size: 24px;
	margin-bottom: 30px;
	color: var(--wp--preset--color--white, #fff);
}

/* Hero Button */
.tj-hero-button .wp-block-button__link {
	border-radius: 4px;
	font-size: 20px;
	font-weight: 700;
}



/* =========================================
   Services Section
   ========================================= */

.tj-services-section {
	padding-top: 100px;
	padding-bottom: 100px;
}

/* Constrain content width to match original design */
.tj-services-section>* {
	max-width: 1008px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.tj-services-title {
	font-family: var(--wp--preset--font-family--serif, serif);
	font-size: 46px;
	text-align: right;
	color: var(--wp--preset--color--base-text, #0c2f50);
}

.tj-services-grid {
	margin-top: 50px;
	gap: 0;
}

.tj-services-main-image img {
	aspect-ratio: 1;
	object-fit: cover;
	width: 100%;
}

.tj-services-content-list {
	padding-left: 40px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.tj-services-item {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 15px;
}

.tj-services-number {
	font-family: var(--wp--preset--font-family--serif, serif);
	font-size: 24px;
	line-height: 1;
	width: 35px;
	white-space: nowrap;
	color: var(--wp--preset--color--base-text, #0c2f50);
	margin: 0;
}

.tj-services-icon-wrapper {
	width: 130px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.tj-services-icon {
	margin-bottom: 5px;
}

.tj-services-icon img {
	width: 60px;
	height: 60px;
	object-fit: cover;
}

.tj-services-icon-label {
	font-size: 14px;
	text-decoration: underline;
	text-align: center;
	margin: 0;
}

.tj-services-desc {
	font-size: 19px;
	line-height: 1.8;
	margin: 0;
}

/* =========================================
   Strengths Section
   ========================================= */

.tj-strengths-section {
	padding-top: 100px;
	padding-bottom: 100px;
}

/* Constrain content width to match original design */
.tj-strengths-section>* {
	max-width: 1008px;
	margin-left: 0 !important;
	margin-right: auto;
	width: 100%;
	padding-left: 80px !important;
	padding-right: 50px !important;
	box-sizing: border-box;
}

.tj-strengths-section>hr.wp-block-separator {
	max-width: none !important;
	width: auto !important;
	margin-left: 80px !important;
	padding-left: 0 !important;
	margin-right: 0 !important;
	padding-right: 0 !important;
	margin-bottom: 0 !important;
}

.tj-strengths-title {
	font-family: var(--wp--preset--font-family--serif, serif);
	font-size: 46px;
	color: var(--wp--preset--color--base-text, #0c2f50);
}

.tj-strengths-grid {
	margin-top: 35px !important;
	gap: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	max-width: none !important;
	align-items: stretch !important;
	justify-content: space-between !important;
	position: relative !important;
	overflow: hidden !important;
}

.tj-strengths-grid .wp-block-column:nth-child(1) {
	width: 42% !important;
	flex: 0 0 42% !important;
	max-width: 42% !important;
	flex-basis: 42% !important;
	padding-left: 80px !important;
	padding-right: 0 !important;
	/* Reset padding as width handles the sizing */
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.tj-strengths-grid .wp-block-column:nth-child(2) {
	width: 50% !important;
	flex: 0 0 50% !important;
	max-width: 50% !important;
	flex-basis: 50% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	bottom: 0 !important;
	right: 0 !important;
	height: auto !important;
}

.tj-strengths-grid .wp-block-column:nth-child(2) figure,
.tj-strengths-grid .wp-block-column:nth-child(2) img {
	height: 100% !important;
	width: 100% !important;
	object-fit: cover !important;
	margin: 0 !important;
}

.tj-strengths-desc {
	font-size: 21px;
	line-height: 1.8;
	color: var(--wp--preset--color--base-text, #0c2f50);
	margin-top: 0 !important;
}

.tj-strengths-btn-wrapper {
	margin-top: 40px;
}

.tj-strengths-btn .wp-block-button__link {
	background-color: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--base-text, #0c2f50);
	border: 1px solid var(--wp--preset--color--base-text, #0c2f50) !important;
	width: 260px !important;
	height: 50px;
	box-sizing: border-box;
	display: flex !important;
	align-items: center;
	justify-content: center !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
	font-size: 16px;
	gap: 15px;
	/* Adjust spacing between text and > */
}

.tj-strengths-btn .wp-block-button__link span {
	font-family: monospace;
}

.tj-strengths-image img {
	aspect-ratio: 1;
	object-fit: cover;
	width: 100%;
}

/* =========================================
   Properties Section
   ========================================= */

.tj-properties-section {
	padding-top: 100px;
	padding-bottom: 100px;
}

/* Constrain content width to match original design */
.tj-properties-section>* {
	max-width: 1008px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.tj-properties-title {
	font-family: var(--wp--preset--font-family--serif, serif);
	font-size: 46px;
	color: var(--wp--preset--color--base-text, #0c2f50);
	margin-left: calc(-50vw + 50% + 80px) !important;
	text-align: left !important;
	max-width: none !important;
	width: auto !important;
}

.tj-properties-section>hr.wp-block-separator {
	max-width: none !important;
	width: auto !important;
	margin-left: calc(-50vw + 50% + 80px) !important;
	padding-left: 0 !important;
	margin-right: calc(-50vw + 50%) !important;
	padding-right: 0 !important;
	margin-bottom: 0 !important;
}

.tj-properties-grid {
	margin-top: 50px;
}

.tj-properties-card-wrapper {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 0;
}

.tj-properties-image img {
	aspect-ratio: 3/2;
	object-fit: cover;
	width: 100%;
}

.tj-properties-card-content {
	background-color: var(--wp--preset--color--bg-alice-blue, #e2f4ff);
	padding: 20px;
}

.tj-properties-type {
	font-size: small;
}

.tj-properties-address {
	font-size: 19px;
	font-weight: 600;
}

.tj-properties-price {
	font-size: 29px;
	font-weight: 700;
}

.tj-properties-yield-year {
	font-size: 17px;
}

.tj-properties-area {
	font-size: 14px;
	margin-top: 10px;
}

.tj-properties-btn-wrapper {
	margin-top: 20px;
}

/* Reusing strengths button style with a new class for semantic clarity if needed, 
   or we can reuse the same style structure */
.tj-properties-btn .wp-block-button__link {
	background-color: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--base-text, #0c2f50);
	border: 1px solid var(--wp--preset--color--base-text, #0c2f50) !important;
	width: 260px !important;
	height: 50px;
	box-sizing: border-box;
	display: flex !important;
	align-items: center;
	justify-content: space-between !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
	font-size: 16px;
}

.tj-properties-btn .wp-block-button__link span {
	font-family: monospace;
}

/* =========================================
   Contact Section
   ========================================= */

/* =========================================
   Services Section
   ========================================= */

.tj-services-section {
	padding-top: 100px;
	padding-bottom: 100px;
}

.tj-services-section>* {
	max-width: 1008px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.tj-services-title {
	font-family: var(--wp--preset--font-family--serif, serif);
	font-size: 46px;
	color: var(--wp--preset--color--base-text, #0c2f50);
	text-align: left !important;
	width: auto !important;
	margin-left: 53% !important;
	margin-right: 0 !important;
}

.tj-services-section>hr.wp-block-separator {
	max-width: none !important;
	width: auto !important;
	margin-left: calc(-50vw + 50%) !important;
	padding-left: 0 !important;
	margin-right: 80px !important;
	padding-right: 0 !important;
	margin-bottom: 0 !important;
}

.tj-services-grid {
	margin-top: 35px !important;
	gap: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	max-width: none !important;
	align-items: stretch !important;
	justify-content: space-between !important;
	position: relative !important;
	overflow: hidden !important;
}

/* Column 1: Image (Left side) */
.tj-services-grid .wp-block-column:nth-child(1) {
	width: 50% !important;
	flex: 0 0 50% !important;
	max-width: 50% !important;
	flex-basis: 50% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	height: auto !important;
}

.tj-services-grid .wp-block-column:nth-child(1) figure,
.tj-services-grid .wp-block-column:nth-child(1) img {
	height: 100% !important;
	width: 100% !important;
	object-fit: cover !important;
	margin: 0 !important;
}

/* Column 2: Content (Right side) */
.tj-services-grid .wp-block-column:nth-child(2) {
	width: 44% !important;
	flex: 0 0 44% !important;
	max-width: 44% !important;
	flex-basis: 44% !important;
	margin-left: auto !important;
	padding-left: 0 !important;
	padding-right: 80px !important;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.tj-services-item {
	margin-bottom: 40px;
}

.tj-services-number {
	font-size: 40px;
	line-height: 1;
	font-family: "Outfit", sans-serif;
	margin-bottom: 10px;
}

.tj-services-icon-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	margin-bottom: 15px;
}

.tj-services-icon-label {
	font-weight: bold;
	font-size: 18px;
	line-height: 1.4;
	text-align: center !important;
}

.tj-services-desc {
	font-size: 21px;
	line-height: 1.8;
	color: var(--wp--preset--color--base-text, #0c2f50);
}

@media screen and (max-width: 768px) {

	.tj-services-grid .wp-block-column:nth-child(1),
	.tj-services-grid .wp-block-column:nth-child(2) {
		width: 100% !important;
		flex-basis: auto !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		position: static !important;
		height: auto !important;
	}

	.tj-services-section>hr.wp-block-separator {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

.tj-contact-section {
	padding-top: 100px;
	padding-bottom: 100px;
	margin-bottom: 0 !important;
}

/* Constrain content width to match original design */
.tj-contact-section>* {
	max-width: 1008px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.tj-contact-title {
	font-family: var(--wp--preset--font-family--serif, serif);
	font-size: 46px;
	color: var(--wp--preset--color--base-text, #0c2f50);
}

.tj-contact-map-image img {
	aspect-ratio: 3/2 !important;
	object-fit: cover;
	width: 100%;
}

.tj-contact-info-wrapper {
	gap: 20px;
}

.tj-contact-text {
	font-size: 21px !important;
	line-height: 1.8;
}

.tj-contact-section .wp-block-columns {
	gap: 50px !important;
	align-items: stretch !important;
	justify-content: space-between !important;
}

.tj-contact-section .wp-block-column:nth-child(1) {
	width: calc(50vw - 584px + 38%) !important;
	flex: 0 0 calc(50vw - 584px + 38%) !important;
	padding-top: 120px !important;
	margin-left: calc(-50vw + 584px) !important;
}

.tj-contact-section .wp-block-column:nth-child(2) {
	width: 52% !important;
	flex: 0 0 52% !important;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.tj-contact-section hr.wp-block-separator {
	max-width: none !important;
	width: auto !important;
	margin-left: 0 !important;
	margin-right: calc(-50vw + 584px) !important;
	opacity: 1;
}

.tj-contact-btn-wrapper {
	margin-top: auto !important;
	margin-right: calc(-50vw + 584px) !important;
	width: auto !important;
}

.tj-contact-btn .wp-block-button__link {
	background-color: var(--wp--preset--color--bg-alice-blue, #e2f4ff);
	color: var(--wp--preset--color--base-text, #0c2f50);
	border: 1px solid var(--wp--preset--color--base-text, #0c2f50) !important;
	width: 260px !important;
	height: 50px;
	box-sizing: border-box;
	display: flex !important;
	align-items: center;
	justify-content: space-between !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
	font-size: 16px;
}

.tj-contact-btn .wp-block-button__link span {
	font-family: monospace;
}

/* --- Footer Section (Desktop) --- */
.tj-footer-section {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.tj-footer-section .wp-block-columns {
	margin-left: 80px !important;
	margin-right: 80px !important;
	max-width: none !important;
	width: calc(100% - 160px) !important;
}

.tj-footer-section .wp-block-column:nth-child(2) {
	padding-top: 62px !important;
}

/* =========================================
   Property Card (Horizontal Layout)
   ========================================= */

.tj-property-card {
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 40px;
	margin-bottom: 40px;
	gap: 20px;
	/* blockGap replacement */
}

.tj-property-title {
	font-family: var(--wp--preset--font-family--sans, sans-serif);
	font-weight: bold;
	color: #1a3b5c;
	margin-bottom: 20px;
	font-size: 24px;
}

.tj-property-image-col {
	flex-basis: 30% !important;
}

.tj-property-info-col {
	flex-basis: 70% !important;
}

.tj-properties-image img {
	aspect-ratio: 1/1;
	object-fit: cover;
	width: 100%;
}

.tj-property-table table {
	border-collapse: separate;
	border-spacing: 10px 5px;
	width: 100%;
}

.tj-property-table td {
	padding: 5px 10px;
	font-size: 16px;
	vertical-align: middle;
	color: #1a3b5c;
	border: none;
	height: 30px;
}

.tj-property-table td:first-child {
	background-color: #d9d9d9;
	width: 30%;
}

.tj-property-table td:not(:first-child) {
	background-color: #ffffff;
	border: 1px solid #cccccc;
}

.tj-property-btn .wp-block-button__link {
	border-radius: 0;
	padding: 10px 30px !important;
	font-size: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	border: 1px solid #1a3b5c !important;
	background-color: var(--wp--preset--color--white, #fff);
	color: #1a3b5c;
	position: relative;
}

.tj-property-btn .wp-block-button__link::after {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-top: 2px solid #1a3b5c;
	border-right: 2px solid #1a3b5c;
	transform: rotate(45deg);
	margin-left: 10px;
	margin-bottom: 2px;
}

.tj-property-btn .wp-block-button__link:hover {
	opacity: 0.8;
}


/* =========================================
   Contact Page (Form)
   ========================================= */

.tj-contact-header {
	background-color: #e1f3fe;
	padding-top: 30px;
	padding-bottom: 30px;
	margin-bottom: 0 !important;
}

.tj-contact-page-title {
	font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
	font-size: 38px;
	color: #1a3b5c;
	margin: 0;
	font-weight: normal;
}

.tj-contact-intro {
	font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
	font-size: 16px;
	color: #1a3b5c;
	line-height: 1.6;
	margin-bottom: 60px;
}

.tj-contact-form {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
}

.tj-form-row {
	margin-bottom: 25px;
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 60px;
}

.tj-form-label {
	font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
	font-size: 16px;
	color: #1a3b5c;
	font-weight: bold;
	width: 234px;
	padding-top: 5px;
	/* align with input */
	flex-shrink: 0;
}

.tj-input-box {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	height: 32px;
	box-sizing: border-box;
	padding: 0 10px;
	font-size: 16px;
}

.tj-input-textarea {
	height: 305px;
	padding: 10px;
	resize: vertical;
}

.tj-form-cols {
	display: flex;
	gap: 20px;
	flex-grow: 1;
}

.tj-form-col {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
}

.tj-form-sublabel {
	font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
	font-size: 16px;
	color: #1a3b5c;
	white-space: nowrap;
}

.tj-form-col .tj-input-box {
	width: 100%;
}

.tj-input-full {
	width: 100%;
	flex: 1;
	max-width: 100%;
}

.tj-select-wrapper {
	position: relative;
	width: 100%;
	flex: 1;
	max-width: 100%;
}

.tj-select-arrow {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	width: 10px;
	height: 10px;
	border-right: 2px solid #888;
	border-bottom: 2px solid #888;
	stroke-width: 2;
}

/* Success Message Box */
.tj-contact-success-msg {
	background-color: #fddde0;
	border-radius: 25px;
	width: 320px;
	/* Updated from 256px to 320px based on SVG adjustment */
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 40px auto 20px auto;
}

.tj-contact-success-msg p {
	font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
	font-size: 18px;
	color: #1a3b5c;
	margin: 0 !important;
	padding: 0 !important;
	text-align: center;
	line-height: normal !important;
	/* Allow natural height for centering */
	transform: translateY(1px);
	/* Micro-adjustment for visual optical centering if needed */
	width: auto;
}

/* Submit Button */
.tj-form-submit {
	text-align: center;
	margin-top: 20px;
}

.tj-submit-btn {
	background: #ffffff;
	border: 1.5px solid #99badc;
	width: 105px;
	height: 34px;
	font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
	font-size: 16px;
	color: #0056b3;
	font-weight: bold;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.tj-submit-btn:hover {
	opacity: 0.8;
}

@media screen and (max-width: 768px) {
	.tj-form-row {
		flex-direction: column;
	}

	.tj-form-label {
		width: 100%;
		margin-bottom: 10px;
	}

	.tj-input-full,
	.tj-select-wrapper {
		width: 100%;
	}

	.tj-form-cols {
		flex-direction: column;
		width: 100%;
	}

	.tj-form-col {
		width: 100%;
	}

	.tj-form-col .tj-input-box {
		width: 100%;
	}
}

@media screen and (max-width: 1024px) {
	.u-w-1008 {
		width: 100% !important;
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
}

@media screen and (max-width: 768px) {

	/* --- General Resets --- */
	body {
		overflow-x: hidden;
	}

	/* Reset fixed spacing blocks */
	.alignfull {
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 20px !important;
		padding-right: 20px !important;
		box-sizing: border-box !important;
	}

	/* --- Typography Size Adjustments --- */
	h1,
	.wp-block-heading[style*="font-size:70px"] {
		font-size: 32px !important;
		line-height: 1.3 !important;
	}

	h2,
	.wp-block-heading[style*="font-size:46px"] {
		font-size: 24px !important;
		text-align: left !important;
		padding-left: 0 !important;
	}

	p[style*="font-size:32px"] {
		font-size: 18px !important;
		margin-top: 15px !important;
		line-height: 1.6 !important;
	}

	p[style*="font-size:24px"],
	p[style*="font-size:21px"],
	p[style*="font-size:20px"],
	p[style*="font-size:19px"],
	p[style*="font-size:18px"],
	.tj-strengths-section p,
	.tj-services-section p,
	.tj-services-section li {
		font-size: 15px !important;
		line-height: 1.6 !important;
	}

	/* --- Header Section --- */
	.tj-header-section {
		min-height: auto !important;
		padding: 10px 0 !important;
		flex-wrap: nowrap !important;
		gap: 0 !important;
		height: auto !important;
		justify-content: space-between !important;
		align-items: center !important;

		/* Force full width on mobile */
		width: 100vw !important;
		max-width: 100vw !important;
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
		box-sizing: border-box !important;
		padding-left: 15px !important;
		/* Safety padding for logo */
		padding-right: 20px !important;
		/* Safety padding for hamburger, aligned with CTA */
	}

	.tj-header-section .wp-block-image {
		width: auto !important;
		max-width: 60px !important;
		/* Reduced from 100px to reduce header height */
		margin-bottom: 0 !important;
		margin-left: 0 !important;
		order: 1;
	}

	.tj-header-section .wp-block-image img {
		width: 100% !important;
		height: auto !important;
	}

	/* Wrapper for Right Side Elements (CTA + Nav) */
	.tj-header-section>.wp-block-group {
		width: auto !important;
		justify-content: flex-end;
		flex-wrap: nowrap !important;
		gap: 8px !important;
		margin-top: 0 !important;
		flex: 1;
		padding-right: 0 !important;
		order: 2;
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
	}

	/* Navigation (Hamburger) */
	.tj-header-section .wp-block-navigation {
		width: auto !important;
		order: 2;
		margin-left: 0 !important;
	}

	/* CTA Button in header (FAB on Mobile) */
	/* CTA Button in header (FAB on Mobile) */
	.tj-header-cta-btn {
		position: fixed !important;
		bottom: 20px !important;
		right: 20px !important;
		z-index: 9999 !important;
		width: auto !important;
		max-width: fit-content !important;
		/* Ensure container fits content */
		left: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		background: none !important;
		box-shadow: none !important;
		border: none !important;
	}

	.tj-header-cta-btn .wp-block-button__link {
		width: auto !important;
		/* Override width-100 class */
		min-width: 140px;
		padding: 10px 20px !important;
		border-radius: 50px !important;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

		/* Ensure text centering and layout */
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: center !important;
		text-align: center !important;
	}

	/* CTA Button Text Scaling (FAB) */
	.tj-header-cta-btn .tj-btn-sub {
		font-size: 10px !important;
		margin-bottom: 2px !important;
		line-height: 1.2 !important;
	}

	.tj-header-cta-btn .tj-btn-main {
		font-size: 16px !important;
		font-weight: 700 !important;
		margin-top: 0 !important;
		line-height: 1.2 !important;
	}

	/* Avoid footer overlap (simple bottom spacer for body if needed in future, 
	   for now just ensuring z-index) */

	/* --- Customize Hamburger Menu (3 Lines) --- */
	/* Hide default SVG */
	.tj-header-section .wp-block-navigation__responsive-container-open svg {
		display: none !important;
	}

	/* Create 3 lines using CSS */
	/* Create 3 lines using CSS */
	.tj-header-section .wp-block-navigation__responsive-container-open {
		width: 24px !important;
		height: 24px !important;
		position: relative !important;
		background: transparent !important;
		border: none !important;
		padding: 0 !important;
		display: flex !important;
		align-items: center;
		justify-content: center;
	}

	.tj-header-section .wp-block-navigation__responsive-container-open::before {
		content: "";
		position: absolute;
		top: 4px;
		/* Adjusted from 5px */
		left: 0;
		width: 100%;
		height: 2px;
		background-color: var(--wp--preset--color--header-text, #333);
		box-shadow: 0 7px 0 var(--wp--preset--color--header-text, #333);
		/* Mid line */
	}

	.tj-header-section .wp-block-navigation__responsive-container-open::after {
		content: "";
		position: absolute;
		bottom: 4px;
		/* Adjusted from 5px */
		left: 0;
		width: 100%;
		height: 2px;
		background-color: var(--wp--preset--color--header-text, #333);
	}

	/* --- Hamburger Menu Opened Styling --- */

	/* Overlay Background: Top 80px transparent (show header), then Alice Blue */
	.wp-block-navigation__responsive-container.is-menu-open {
		background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 80px, var(--wp--preset--color--bg-alice-blue, #e2f4ff) 80px, var(--wp--preset--color--bg-alice-blue, #e2f4ff) 100%) !important;
		padding-top: 20px !important;
		/* Push content below header */
		padding-left: 40px !important;
		padding-right: 40px !important;
	}

	/* Close Button (Color matched to Header Text) */
	.wp-block-navigation__responsive-container-close {
		top: -2px !important;
		/* Reset to visible area */
		right: -24px !important;
		/* Reset to visible area */
		color: var(--wp--preset--color--header-text, #1a3950) !important;
		position: absolute !important;
		/* Ensure absolute positioning relative to container */
	}

	.wp-block-navigation__responsive-container-close svg {
		fill: var(--wp--preset--color--header-text, #1a3950) !important;
		width: 32px !important;
		height: 32px !important;
	}

	/* Hide Hamburger Button when Menu is Open */
	.tj-header-section:has(.is-menu-open) .wp-block-navigation__responsive-container-open {
		opacity: 0 !important;
		pointer-events: none !important;
	}

	/* Menu Container Layout */
	.wp-block-navigation__responsive-container .wp-block-navigation__container {
		gap: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
		/* Ensure full width */
	}

	/* Link Items */
	.wp-block-navigation__responsive-container .wp-block-navigation-item {
		border-bottom: 1px solid rgba(12, 47, 80, 0.2) !important;
		/* Navy with opacity */
		margin: 0 !important;
		width: 100% !important;
		/* Force full width to fill container */
	}

	.wp-block-navigation__responsive-container .wp-block-navigation-item .wp-block-navigation-item__content {
		color: var(--wp--preset--color--base-text, #0c2f50) !important;
		font-family: "Hiragino Mincho ProN", "Yu Mincho", serif !important;
		font-size: 18px !important;
		padding: 25px 0 !important;
		display: block !important;
		width: 100% !important;
		text-decoration: none !important;
	}

	/* Mobile Contact Button (Bottom) */
	.wp-block-navigation__responsive-container .tj-sp-menu-contact {
		border-bottom: none !important;
		margin-top: 40px !important;
		padding-bottom: 20px;
	}

	/* Contact Button Style: White Background, Navy Text */
	.wp-block-navigation__responsive-container .tj-sp-menu-contact .wp-block-navigation-item__content {
		background-color: #ffffff !important;
		color: var(--wp--preset--color--base-text, #0c2f50) !important;
		font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif !important;
		font-weight: bold !important;
		text-align: center !important;
		padding: 15px 0 !important;
		position: relative !important;
		display: block !important;
		border-radius: 9999px !important;
		/* Rounded pill shape */
	}

	/* Arrow for Contact Button */
	.wp-block-navigation__responsive-container .tj-sp-menu-contact .wp-block-navigation-item__content::after {
		content: "→";
		position: absolute;
		right: 20px;
		top: 50%;
		transform: translateY(-50%);
		font-weight: normal;
		color: var(--wp--preset--color--base-text, #0c2f50) !important;
	}

	/* Hide SP Contact link on PC */
	@media screen and (min-width: 769px) {
		.tj-sp-menu-contact {
			display: none !important;
		}
	}

	/* --- Hero Section --- */
	.tj-hero-section {
		overflow: hidden;
		position: relative;
		display: grid;
		place-items: center;
		min-height: auto !important;
		height: calc(100dvh - 100px) !important;
		/* Fill remaining screen height (viewport - header) */
		padding: 0 !important;
	}

	/* Text Box Wrapper - Layers on top */
	.tj-hero-section .wp-block-group.u-z-10 {
		grid-area: 1 / 1;
		z-index: 10;
		padding: 120px 0 0 0 !important;
		/* Moved up slightly */
		width: 100%;
		display: flex;
		justify-content: flex-start;
		align-items: flex-start;
		height: 100%;
		pointer-events: none;
	}

	/* The Text Box */
	.tj-hero-section .wp-block-group.u-w-1008 {
		pointer-events: auto;
		width: 85% !important;
		/* Slightly narrower */
		max-width: none;
		padding: 20px 20px !important;
		/* Reduced padding */
		background-color: var(--wp--preset--color--bg-alice-blue, #e2f4ff);
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
		margin: 0 !important;
	}

	/* Image Cover - Layers behind */
	.tj-hero-section .wp-block-cover {
		grid-area: 1 / 1;
		position: absolute !important;
		top: 0;
		left: 0;
		width: 100% !important;
		height: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		min-height: 100% !important;
		z-index: 1;
	}

	.tj-hero-cover {
		margin: 0 !important;
		padding: 0 !important;
	}

	.tj-hero-cover img {
		object-fit: cover;
		width: 100%;
		height: 100%;
	}

	/* Ensure content inside cover (like contact button) pushes to bottom */
	.tj-hero-cover .wp-block-cover__inner-container {
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		/* Align to top instead of bottom */
		padding-top: 480px !important;
		/* Significantly increased to ensure visibility below text box */
		padding-left: 20px;
		/* Align with text inside the box (box has 20px padding) */
		padding-right: 20px;
		padding-bottom: 0;
	}

	.tj-hero-content-wrapper {
		padding-top: 0;
	}

	/* .tj-hero-text-box removed */

	.tj-hero-title {
		font-size: 26px !important;
		line-height: 1.2 !important;
		margin-bottom: 0 !important;
	}

	.tj-hero-subtitle {
		font-size: 13px !important;
		margin-top: 8px !important;
		line-height: 1.4 !important;
	}

	.tj-hero-cover-text {
		font-size: 14px !important;
		line-height: 1.6 !important;
		margin-bottom: 5px !important;
		text-align: left;
		text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
		/* Improve readability on image */
	}

	/* Adjust Button Size and Alignment */
	.tj-hero-section .wp-block-buttons {
		margin: 0;
		width: auto;
	}

	.tj-hero-button {
		width: auto !important;
	}

	.tj-hero-button .wp-block-button__link {
		width: auto !important;
		padding: 8px 24px !important;
		font-size: 13px !important;
		min-width: auto;
		display: flex !important;
		justify-content: center !important;
		align-items: center !important;
		text-align: center !important;
	}

	/* Reduce spacer after header if it exists in DOM separately */
	/* Reduce spacer after header if it exists in DOM separately */
	.wp-block-spacer[style*="height:120px"] {
		display: none !important;
	}

	/* --- Strengths Section --- */
	.tj-strengths-section {
		padding-top: 40px !important;
		padding-bottom: 40px !important;
		margin-top: -5px !important;
	}

	.tj-strengths-section>*,
	.tj-strengths-section .wp-block-columns,
	.tj-strengths-section .wp-block-column {
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		max-width: none !important;
	}

	/* Force Block Layout & Reset Widths */
	/* Reset Columns Wrapper */
	.tj-strengths-section .wp-block-columns,
	.tj-strengths-section .tj-strengths-grid {
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
		padding: 0 !important;
		gap: 20px !important;
		margin-top: 20px !important;
	}

	/* Reset Individual Column (High Specificity) */
	.tj-strengths-section .wp-block-columns .wp-block-column,
	.tj-strengths-section .tj-strengths-grid .wp-block-column {
		display: block !important;
		width: 100% !important;
		min-width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		flex-basis: auto !important;
		position: static !important;
		height: auto !important;
		float: none !important;
		transform: none !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		bottom: auto !important;
	}

	/* Order: Image (2nd child) First */
	.tj-strengths-section .wp-block-columns .wp-block-column:nth-child(2) {
		order: -1 !important;
		margin-bottom: 0 !important;
	}

	/* Text (1st child) Second */
	.tj-strengths-section .wp-block-columns .wp-block-column:nth-child(1) {
		order: 1 !important;
	}

	/* Fix Separator Line */
	.tj-strengths-section>hr.wp-block-separator {
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-top: 10px !important;
		margin-bottom: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	/* Tighten Title Spacing */
	.tj-strengths-section h2 {
		margin-bottom: 0 !important;
		padding-bottom: 0 !important;
	}

	/* Reset inner content width */
	.tj-strengths-section .wp-block-column>* {
		max-width: none !important;
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}





	/* --- Services Section --- */
	.tj-services-section {
		padding-top: 40px !important;
		padding-bottom: 40px !important;
	}

	/* Fix Title and Separator to match Strength Section */
	.tj-services-section h2 {
		margin-bottom: 0 !important;
		padding-bottom: 0 !important;
		text-align: left !important;
		margin-left: 0 !important;
		width: 100% !important;
	}

	.tj-services-section>hr.wp-block-separator {
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-top: 10px !important;
		margin-bottom: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.tj-services-section .wp-block-columns {
		flex-direction: column !important;
		margin-top: 20px !important;
		gap: 20px !important;
		width: 100% !important;
		padding: 0 !important;
		align-items: stretch !important;
	}

	.tj-services-section .wp-block-column {
		display: block !important;
		width: 100% !important;
		min-width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		flex-basis: auto !important;
	}





	/* Service List Items */
	.tj-services-section .wp-block-group[style*="padding-left:40px"] {
		padding-left: 0 !important;
		gap: 40px !important;
	}

	/* Reset padding for the main content list wrapper */
	.tj-services-section .tj-services-content-list {
		display: flex !important;
		flex-direction: column !important;
		padding-left: 0 !important;
		margin-left: 0 !important;
		width: 100% !important;
		gap: 8px !important;
	}

	.tj-services-section .tj-services-content-list>* {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}

	.tj-services-section .tj-services-number {
		font-size: 24px !important;
	}

	/* Align Service Items to Top */
	.tj-services-section .tj-services-item {
		align-items: flex-start !important;
	}

	.tj-services-section .tj-services-icon-wrapper {
		margin-top: 0 !important;
	}

	/* --- Properties Section --- */
	.tj-properties-section {
		padding-top: 40px !important;
		padding-bottom: 40px !important;
	}

	/* Fix Title and Separator */
	.tj-properties-section h2,
	.tj-properties-title {
		margin-bottom: 0 !important;
		padding-bottom: 0 !important;
		text-align: left !important;
		margin-left: 0 !important;
		width: 100% !important;
	}

	.tj-properties-section>hr.wp-block-separator {
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-top: 10px !important;
		margin-bottom: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.tj-properties-grid {
		margin-top: 20px !important;
	}

	/* Button Style (Match Strengths Button) */
	.tj-properties-btn .wp-block-button__link {
		justify-content: center !important;
		gap: 15px !important;
	}

	/* --- Contact Section --- */
	.tj-contact-section {
		display: none !important;
	}



	/* --- Footer Section Fix --- */
	.tj-footer-section .wp-block-columns {
		margin-left: 0 !important;
		margin-right: 0 !important;
		width: 100% !important;
		gap: 20px !important;
		display: flex !important;
		flex-direction: column !important;
	}

	.tj-footer-section .wp-block-column {
		width: 100% !important;
		flex-basis: auto !important;
	}

	.tj-footer-section .wp-block-column:nth-child(2) {
		padding-top: 0 !important;
		margin-top: 0 !important;
	}

	/* Company Name Style */
	.tj-footer-section .wp-block-column:nth-child(1) p:first-child {
		font-size: 1.2em !important;
		font-weight: bold !important;
	}



	/* Hide Hero Overlapping Content */
	.tj-hero-cover .tj-hero-cover-text,
	.tj-hero-cover .wp-block-buttons {
		display: none !important;
	}

	/* --- Hero Redesign --- */
	/* 1. Shift Image to Right (Create Left Whitespace) */
	.tj-hero-section .tj-hero-cover {
		width: 85vw !important;
		min-width: 0 !important;
		max-width: 85vw !important;
		margin-left: 15vw !important;
		margin-right: 0 !important;
		float: none !important;
	}

	/* 2. Style Text Box (Transparent container) */
	.tj-hero-text-box {
		background-color: transparent !important;
		box-shadow: none !important;
		padding: 0 !important;
		position: absolute !important;
		top: 140px !important;
		left: 0 !important;
		width: 100% !important;
		z-index: 50 !important;
	}

	.tj-hero-content-wrapper {
		background: transparent !important;
		box-shadow: none !important;
	}

	/* 3. Title Style (Blue Box) */
	.tj-hero-title {
		background-color: #e2f4ff !important;
		/* Alice Blue */
		color: #0c2f50 !important;
		padding: 15px 20px !important;
		display: inline-block !important;
		width: 90% !important;
		/* 左端から画像にかかる幅 */
		margin-bottom: 15px !important;
		font-size: clamp(24px, 8vw, 36px) !important;
		white-space: nowrap !important;
	}

	/* 4. Subtitle Style (White Text) */
	.tj-hero-subtitle {
		color: #ffffff !important;
		padding-left: 20% !important;
		/* 画像の上に配置されるよう左インデント（画像開始位置15%より少し右） */
		padding-right: 20px !important;
		font-size: 18px !important;
		line-height: 1.6 !important;
		text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
		/* 視認性確保 */
	}

	/* Individual Service Item Flex Control */
	.tj-services-section .wp-block-group[style*="flex-wrap:nowrap"] {
		flex-wrap: wrap !important;
		justify-content: center;
		text-align: left;
	}

	/* Number */
	.tj-services-section p[style*="width:35px"] {
		width: 100% !important;
		margin-bottom: 5px;
	}

	/* Icon Group */
	.tj-services-section .wp-block-group[style*="width:130px"] {
		width: 100% !important;
		flex-direction: row !important;
		justify-content: flex-start !important;
		align-items: center !important;
		gap: 15px;
		margin-bottom: 10px;
	}

	.tj-services-section .wp-block-group[style*="width:130px"] .wp-block-image {
		margin-bottom: 0 !important;
	}

	.tj-services-section .wp-block-group[style*="width:130px"] p {
		text-align: left !important;
		font-size: 16px !important;
	}

	/* --- Properties Section --- */
	.tj-properties-section {
		padding-top: 40px !important;
		padding-bottom: 40px !important;
	}

	.tj-properties-section .wp-block-columns {
		flex-direction: column !important;
		margin-top: 30px !important;
		gap: 30px !important;
	}

	.tj-properties-section .wp-block-column {
		width: 100% !important;
	}

	/* Buttons alignment */
	.wp-block-buttons.is-content-justification-right {
		justify-content: center !important;
		/* Center buttons on mobile */
	}

	/* --- Contact Section --- */
	.tj-contact-section {
		padding-top: 40px !important;
		padding-bottom: 40px !important;
	}

	.tj-contact-section .wp-block-columns {
		flex-direction: column !important;
		gap: 30px !important;
	}

	.tj-contact-section .wp-block-column:nth-child(1) {
		width: 100% !important;
		flex: 0 0 100% !important;
		margin-top: 0 !important;
		padding-top: 0 !important;
		margin-left: 0 !important;
	}

	.tj-contact-section .wp-block-column:nth-child(2) {
		width: 100% !important;
		flex: 0 0 100% !important;
		margin-top: 0 !important;
		padding-top: 0 !important;
	}

	.tj-contact-section hr.wp-block-separator {
		margin-right: 0 !important;
	}

	.tj-contact-btn-wrapper {
		margin-top: 40px !important;
		margin-right: 0 !important;
	}

	/* --- Footer Section --- */
	.tj-footer-section {
		padding-top: 40px !important;
		padding-bottom: 40px !important;
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	.tj-footer-section .wp-block-columns {
		flex-direction: column !important;
		gap: 30px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		width: 100% !important;
	}

	.tj-footer-section .wp-block-column {
		width: 100% !important;
		flex-basis: auto !important;
		text-align: left !important;
		padding-top: 0 !important;
	}

	/* Reset right align text in footer */
	.tj-footer-section .has-text-align-right {
		text-align: left !important;
	}

	/* --- Global Button Adjustments --- */
	/* Exclude hero button from full width */
	.wp-block-button:not(.tj-hero-button) {
		width: 100% !important;
	}

	.wp-block-button__link:not(.tj-hero-button .wp-block-button__link) {
		width: 100% !important;
		justify-content: center !important;
	}
}

/* Ensure separators in all sections are the correct navy color */
.tj-strengths-section hr.wp-block-separator,
.tj-services-section hr.wp-block-separator,
.tj-properties-section hr.wp-block-separator,
.tj-contact-section hr.wp-block-separator {
	border: none !important;
	height: 1px !important;
	background-color: #0c2f50 !important;
	color: #0c2f50 !important;
	opacity: 1 !important;
}

/* =========================================
   Common Page Header (Sub-pages)
   ========================================= */

@media screen and (min-width: 769px) {
	.tj-common-header-height {
		min-height: 250px !important;
		font-family: var(--wp--preset--font-family--serif, serif) !important;
	}

	.tj-common-header-height h1,
	.tj-common-header-height .wp-block-heading {
		font-size: 36px !important;
	}
}

/* Mobile Adjustments for Page Header */
@media screen and (max-width: 768px) {
	.tj-common-header-height {
		width: 100vw !important;
		max-width: 100vw !important;
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
		margin-top: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		border-radius: 0 !important;
		min-height: 150px !important;
	}

	.tj-common-header-height h1,
	.tj-common-header-height .wp-block-heading {
		font-size: 28px !important;
		font-family: var(--wp--preset--font-family--serif, serif) !important;
	}
}

/* Main content flex growth to push footer down */
main {
	flex: 1;
}


/* フォームの姓名ラベルとプレースホルダーの出し分け */
/* PC Default: Hide placeholder text, Show label */
.tj-input-box::placeholder {
	color: transparent;
}

/* Mobile Adjustments for Contact Page and Utils */
@media screen and (max-width: 768px) {

	/* Mobile: Hide external sublabel, Show placeholder */
	.tj-form-sublabel {
		display: none;
	}

	/* Reduce intro margin */
	.tj-contact-intro {
		margin-bottom: 30px !important;
	}

	.tj-input-box::placeholder {
		color: #9ca3af;
		/* Gray placeholder */
	}

	/* Mobile: Keep Name fields horizontal */
	.tj-form-cols {
		display: flex !important;
		/* Force flex row */
		flex-direction: row !important;
		/* Explicitly set row */
		gap: 10px !important;
		/* Reduce gap */
	}

	/* Stack form row vertically on mobile */
	.tj-form-row {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 0 !important;
		margin-bottom: 20px !important;
	}

	/* Reset label width for mobile */
	.tj-form-label {
		width: 100% !important;
		padding-top: 0 !important;
		margin-bottom: 0 !important;
	}

	/* Fix input height and padding */
	.tj-input-box {
		/* Fix for mobile input height inconsistency */
		-webkit-appearance: none;
		appearance: none;

		/* Use min-height and padding for robust sizing */
		height: auto !important;
		min-height: 40px !important;
		padding: 8px 10px !important;
		line-height: normal !important;
		box-sizing: border-box !important;
		border-radius: 4px !important;
	}

	/* Increase textarea height */
	textarea.tj-input-box {
		min-height: 200px !important;
		height: 200px !important;
	}

	/* Mobile: Remove gap between H2 and content */
	.tj-privacy-content h2,
	.tj-company-overview h2 {
		margin-bottom: 0 !important;
	}

	.tj-form-col {
		width: 50% !important;
		/* Equal width */
	}

	.tj-form-col .tj-input-box {
		width: 100% !important;
		/* Full width input within col */
	}

	/* Utility to remove top padding on mobile */
	.tj-mobile-pt-0 {
		padding-top: 0 !important;
	}

	/* Hide spacers inside privacy policy on mobile */
	.tj-mobile-pt-0 .wp-block-spacer {
		display: none !important;
	}
}


/* Privacy Policy & Company Overview Layout Adjustments */
.tj-privacy-content h2,
.tj-company-overview h2 {
	margin-top: 2.5em !important;
	/* 文末から次の見出しまでの余白 (approx 1.5 lines clear space + line-height) */
	margin-bottom: 0.8em !important;
	/* 見出しから説明文までの余白 (0.8 lines) */
}

/* First heading should ALSO have top margin (to space from intro text) */
.tj-privacy-content h2:first-of-type,
.tj-company-overview h2:first-of-type {
	margin-top: 2.5em !important;
}

.tj-privacy-content p,
.tj-company-overview p {
	margin-bottom: 0 !important;
}

.tj-privacy-content ul,
.tj-company-overview ul {
	margin-top: 0.5em !important;
	margin-bottom: 0 !important;
	padding-left: 1.5em;
}

.tj-privacy-content li,
.tj-company-overview li {
	margin-bottom: 0.2em;
}

/* Company Page Custom List */
.tj-company-list {
	margin-top: 20px;
}

.tj-def-list {
	margin: 0;
}

.tj-def-row {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 24px;
	align-items: baseline;
	border-bottom: none !important;
}

.tj-def-row dt {
	width: 200px;
	font-weight: normal;
	margin: 0;
	flex-shrink: 0;
	color: var(--wp--preset--color--base-text, #0c2f50);
}

.tj-def-row dd {
	margin: 0;
	flex: 1;
	color: var(--wp--preset--color--base-text, #0c2f50);
	line-height: 1.8;
}

/* FINAL MOBILE OVERRIDES (Ensure these take precedence) */
@media screen and (max-width: 768px) {

	.tj-privacy-content h2,
	.tj-company-overview h2 {
		margin-bottom: 0 !important;
		font-size: 18px !important;
	}

	.tj-privacy-content p,
	.tj-company-overview p {
		margin-top: 0 !important;
	}

	/* Reduce definition term width on mobile */
	.tj-def-row dt {
		width: 120px !important;
		/* Reduced from 200px */
	}
}