/**
Template: genesis_tcd103
Theme Name: GENESIS-child
Author: Tomoyuki fumiyama
Version: 1.0
**/

body {
	font-family: "Roboto", "Noto Sans JP", "BIZ UDPGothic", sans-serif!important;
	font-weight: 500!important;
	font-style: normal;
	background-color: #fff; /* ベースの背景色の変更 */
}
.sp {
	display: none;
}

@media screen and (max-width: 479px) {
	.sp {
		display: inherit;
	}
}

.page-id-66 #page_contents .post_content {
	overflow: visible;
}

.page-id-66 #page_contents {
	padding-bottom: 0px;
}

.post_content h2 {
	font-weight: 800!important;
}

.page-id-48 .design_header,
.page-id-53 .design_header{
	justify-content: center;
}

.page-id-48 #main_content,
.page-id-53 #main_content{
	justify-content: center;
}

.page-id-66 .wp-block-table {
	width: 70%;
	max-width: 900px;
	margin: auto;
}

.page-id-66 .post_content td, .page-id-66 .post_content th {
	background-color: transparent;
}

.service_header_desc .inview .slide_up_animation .animate{
	margin-top: 150px;

}

.main-text {
	font-size: 20px;
}

.mid {
	display: flex;
	align-items: center;
	gap: 8px;
}

img.national-flag {
	width: 36px;
	height: auto;
}

.map-iframe {
	width: 100%;
}

.philosophy-message {
	font-size: 200%;
	font-weight: 700;
}
.philosophy-message .small {
	font-size: 50%;
}
.philosophy-message .highlight-color {
	color: #fff;
	background-color: var(--tcd-main-color);
	padding: 0.3em 0.7em;
	letter-spacing: 0.06em;
}
@media screen and (max-width: 479px) {
	.main-text {
		font-size: 18px;
	}
	#single_service_main_content {
		padding: 80px 30px 110px;
	}

	#single_service_header .category,
	#single_service_header .title span {
		padding: 0 30px;
	}
	.design_header .desc {
		width: 100%;
		padding-left: 0px;
	}
	.page-id-66 .wp-block-table {
		width: 100%;
		margin: auto;
	}
	.map-iframe {
		height: 300px;
	}
	.mid {
		flex-wrap: wrap;
	}
	.philosophy-message {
		font-size: 130%;
	}
	.philosophy-message .small {
		font-size: 80%;
	}
}

#footer_logo img {
	display: none!important;
}

#footer_inner {
	max-width: 1700px;
	margin: 0 auto;
	padding: 100px;
	display: none;
}

.search_button {
	display: none;
}

#header_logo,
#header_logo2 {
	width: auto;
	max-width: 350px;
	padding: 10px 0;
	top: 50%;
	transform: translateY(-50%);
}

@media (max-width: 768px) {
	#header_logo,
	#header_logo2 {
		width: 70%;
		max-width: 320px;
	}
}

#header_logo img,
#header_logo2 img {
	width: 100%;
	height: auto;
	max-height: none;
}

#global_menu > ul > li {
	font-size: 15px;
}
#global_menu > ul > li::before {
	content: "";
	position: absolute;
	width: 0px;
	height: 2px;
	left: 0;
	bottom: 0;
	background-color: var(--tcd-main-color);
	transition: 0.4s ease-in-out;
}

#global_menu > ul > li:hover::before {
	width: 100%;
}

#global_menu > ul > li > a {
	font-weight: 600;
	padding: 0 15px;
}

.wp-block-table table{
	border-left: none;
}

.wp-block-table td {
	padding: 2em 0.5em!important;
	border: none!important;
	border-bottom: 1px solid #826d3f!important;
}
.wp-block-table td:last-child {
	width: 80%;
}

.post_content .s_table table {
	border-left: none;
	border-top: none;
}

.post_content .s_table td, .post_content .s_table th {
	padding: 30px 30px;
	border-right: none;
	border-bottom: 2px solid #826d3f;
}

.post_content .s_table td:first-child, .post_content .s_table th {
	border-bottom: 2px solid #810b0b;
}

/* ===== base (色は必要に応じて調整) ===== */
:root{
	--step-accent:#ffd400;      /* 番号の黄色 */
	--step-title:#1a1a1a;       /* 見出しの黒 */
	--step-text:#1a1a1a;        /* 文章色 */
	--step-line:#dfe4ee;        /* 番号右の細線 */
	--gap: clamp(16px, 3vw, 28px);
}

.process{
	margin-inline:auto;
	padding: clamp(16px, 3vw, 32px) 0;
}

.post_content .process-heading {
	width: fit-content;
	position: relative;
	padding: 10px 110px;
	background: #fff;
	border: 2px dashed var(--tcd-main-color);
	border-radius: 100px;
	margin: 3em auto -1em auto;
	z-index: 1;
}

.post_content .process-list {
	list-style:none;
	margin:0;
	padding: 90px 70px 70px;
	display:grid;
	background: #fff;
	grid-template-columns: repeat(3, minmax(0,1fr));
	gap: clamp(30px, 4.5vw, 80px) clamp(20px, 3vw, 40px);
	border: 2px dashed var(--tcd-main-color);
	border-radius: 25px;
}

.process-item {
	display:flex;
	gap: var(--gap);
	align-items:flex-start;
}

/* 番号エリア */
.process-head{
	display:flex;
	align-items:center;
	gap: 16px;
	min-width: 70px;
}

.process-num{
	font-weight:800;
	letter-spacing: .02em;
	color: var(--tcd-main-color);
	font-size: clamp(20px, 4vw, 30px);
	line-height: 1.2;
	position: relative;
}

.process-head::after{
	content:"";
	height:2px;
	background: var(--step-line);
	flex:1 1 auto;
	display:block;
	transform: translateY(0);  /* 垂直センタリング */
}

/* 本文エリア */
.process-body{
	flex:1 1 auto;
}

.process-title{
	margin: 0 0 .5em 0;
	color: var(--step-title);
	font-weight:700;
	font-size: clamp(18px, 2.2vw, 22px)!important;
	line-height:1.5;
}

.process-text{
	margin:0;
	color: var(--step-text);
	font-size: clamp(14px, 1.6vw, 16px);
	line-height:1.9;
}

/* ===== Responsive ===== */
@media (max-width: 1024px){
	.post_content .process-list {
		grid-template-columns: repeat(1, minmax(0,1fr));
		padding: 70px 10px 20px;
		border: none;
	}
	.post_content .process-heading {
		margin: 1.4em auto -1em auto;
	}
}

@media (max-width: 640px){
	.process-list{
		grid-template-columns: 1fr;
	}
	.process-item{
		align-items:flex-start;
	}
	.process-head{
		min-width: 48px;
		gap: var(--gap);
	}
}

/* ===== 製品ラインアップ ===== */
.product-list {
	margin-inline: auto;
	padding: clamp(16px, 3vw, 32px) 0;
}

.product-heading {
	font-size: clamp(20px, 2.5vw, 28px);
	margin-bottom: 1.2em;
	font-weight: 700;
	color: var(--step-title, #122157);
}

.product-items {
	list-style: none!important;
	margin: 0!important;
	padding: 0;
	display: grid;
	gap: clamp(16px, 2vw, 24px);
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-item {
	background: #fff;
	padding: 3em;
}

.product-item:not(:last-child) {
	border-right: 1px solid var(--tcd-main-color);
}
@media (max-width: 768px) {
	.product-item:not(:last-child) {
		border-right: none;
		border-bottom: 1px solid var(--tcd-main-color);
	}
}

.product-item .product-title {
	margin: 0 0 0.5em 0;
	font-size: clamp(16px, 2vw, 20px);
	font-weight: 700;
}

.product-item .product-text {
	margin: 0;
	font-size: clamp(14px, 1.6vw, 16px);
	line-height: 1.6;
}

/* ===== タッチスクリーン製品紹介 ===== */
.touch-products {
	margin-inline: auto;
	padding: clamp(20px, 4vw, 48px) 0;
}

.touch-heading {
	font-size: clamp(20px, 2.5vw, 28px);
	margin-bottom: 1.5em;
	font-weight: 700;
	color: var(--step-title, #122157);
	text-align: center;
}

.touch-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 32px);
}

.touch-item {
	background: #fff;
	border: 1px solid var(--tcd-main-color);
	border-radius: 8px;
	padding: 1.5em;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.touch-item .touch-image {
	width: 100%;
	height: auto;
	border-radius: 6px;
	margin-bottom: 1em;
}

.touch-item .touch-title {
	margin: 0 0 0.5em 0;
	font-size: clamp(16px, 2vw, 20px);
	font-weight: 700;
}

.touch-item .touch-subtitle {
	margin: 0 0 0.8em 0;
	font-size: clamp(14px, 1.6vw, 16px);
	font-weight: 500;
	color: #555;
}

.touch-item .touch-text {
	margin: 0;
	font-size: clamp(14px, 1.6vw, 16px);
	line-height: 1.6;
}

/* レスポンシブ */
@media (max-width: 1024px) {
	.touch-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.touch-grid {
		grid-template-columns: 1fr;
	}
}

/* ===== メーカーリスト ===== */
.maker-grid {
	width: 70%;
	max-width: 820px;
	margin: auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.maker-item {
	padding: 30px 30px;
	border-bottom: 1px solid #ddd;
	background-color: #fff;
}

/* PC表示で2列 */
@media (min-width: 768px) {
	.maker-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}


/* ===== 当社の特徴 ===== */
.features {
	margin-inline: auto;
	padding: clamp(20px, 4vw, 48px) 0;
}

.features-heading {
	font-size: clamp(20px, 2.5vw, 28px);
	margin-bottom: 1.5em;
	font-weight: 700;
	text-align: center;
}

.features-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(16px, 2vw, 20px);
}

.feature-item {
	background: #fff;
	border: 1px solid var(--tcd-main-color);
	border-radius: 4px;
	padding: 3em;
}

.feature-item .feature-title {
	margin: 0 0 0.6em 0;
	font-size: clamp(16px, 2vw, 20px);
	font-weight: 700;
}

.feature-item .feature-text {
	margin: 0;
	font-size: clamp(14px, 1.6vw, 16px);
	line-height: 1.6;
}

/* PCでは4列 */
@media (min-width: 1024px) {
	.features-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* タブレットでは2列 */
@media (min-width: 640px) and (max-width: 1023px) {
	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

section.previous-work,
section.bg-section {
	margin: 0 calc(50% - 50vw);
	padding: 80px 0;
	background: antiquewhite;
}

section.bg-message {
	margin: 0 calc(50% - 50vw);
	padding: 80px 0;
	background: linear-gradient(180deg, #fff, #e4f9ff);
	border-bottom: 1px solid #eee;
}

section.bg-message .wp-container-core-columns-is-layout-9d6595d7 {
    width: 90%;
    max-width: 1620px;
    margin: auto;
}

.previous-work .s_table,
.bg-section .s_table {
	width: 90%;
	max-width: 820px;
	padding: 0;
	margin: auto;
}

.previous-work .s_table td, .previous-work .s_table th,
.c-works .s_table td, .c-works .s_table th,
.bg-section .s_table td, .bg-section .s_table th{
	background-color: transparent;
}

.c-works {
	margin: 0 calc(50% - 50vw);
	padding: 80px 0;
	background: antiquewhite;
}

.c-works .s_table {
	width: 90%;
	max-width: 530px;
	padding: 0;
	margin: auto;
}

.c-works td:first-child {
	text-align: end;
	padding-right: 0;
}

.samsung-works .s_table {
	width: 90%;
	max-width: 600px;
	padding: 0;
	margin: auto;
}

.samsung-works td:first-child {
	text-align: end;
	padding-right: 0;
}

.main-items .s_table {
	width: 90%;
	max-width: 820px;
	padding: 0;
	margin: auto;
}

.controlboard-works .s_table {
	width: 90%;
	max-width: 720px;
	padding: 0;
	margin: auto;
}

/* ====== CSS (BEM) ====== */
:root{
	--fg-title:#fff;
	--fg-sub:#ffffffd0;
	--fg-shadow: inset 0 -120px 120px rgba(0,0,0,.55), inset 0 0 40px rgba(0,0,0,.15);
	--radius: 12px;
	--gap: 8px;
}

/* Block */
.feature-grid{
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--gap);
}


@media (min-width: 768px){
	.feature-grid{
		grid-template-columns: repeat(3, 1fr);
	}
}

.feature-grid__item{
	position: relative;
	display: block;
	overflow: hidden;
	text-decoration: none;
	color: var(--fg-title);
	box-shadow: 0 8px 20px rgba(0,0,0,.15);
	transition: transform .25s ease, box-shadow .25s ease;
	will-change: transform;
}
.feature-grid__item:focus-visible{
	outline: 3px solid #5aa9ff;
	outline-offset: 2px;
}

/* Element: media（常に1:1） */
.feature-grid__media{
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
}

@media (max-width: 768px){
	.feature-grid__media{
		aspect-ratio: 1 / 1;
	}
}
.feature-grid__media img{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.03);
	transition: transform .4s ease;
}
.feature-grid__item:hover .feature-grid__media img{
	transform: scale(1.07);
}

/* Element: content（下部のオーバーレイ） */
.feature-grid__content{
	position: absolute;
	inset: 0;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55) 100%);
	box-shadow: var(--fg-shadow);
}

/* Element: text */
.feature-grid__title{
	margin: 0!important;
	font-size: clamp(20px, 2.2vw, 40px);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: .02em;
}
.feature-grid__subtitle{
	margin: 0!important;
	font-size: clamp(12px, 1.2vw, 18px);
	line-height: 1.4;
	color: var(--fg-sub);
}

/* Modifiers（必要なら個別調整用） */
.feature-grid__item--arm   {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}


@media (max-width: 768px){
	.postid-92 .shutter_image.vertical {
		display: flex!important;
	}
	.postid-92 .shutter_image.vertical .item {
		width: calc(50% - 3px)!important;
	}
	.page-id-66 .wp-block-group__inner-container {
		width: 90%;
		padding: 0;
		margin: auto;
	}
}