/*
Theme Name: yStandard Child
Theme URI:
Description: yStandard の子テーマ（製品情報カスタム投稿対応）
Author: sankiss
Template: ystandard
Version: 1.0.0
*/

/* =============================================
   製品情報 詳細ページ
   ============================================= */

/* コンテンツ全体ラッパー */
.product-info-single {
	background: #fff;
}

.product-info-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 20px 80px;
}

/* 品名タイトル */
.product-title {
	font-size: 40px;
	font-weight: 600;
	color: #001c3a;
	text-align: center;
	margin: 0 0 48px;
	line-height: 1.3;
}

/* =============================================
   セクション見出し
   ============================================= */

.product-heading {
	margin-left: 30px;
	margin-bottom: 28px;
	    position: relative;
}

.product-heading__text {
	font-size: 32px;
	font-weight: 600;
	color: #001c3a;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	box-shadow: none;
	line-height: 1.3;
}

.product-heading__line {
	display: block;
}

svg.product-heading__line {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    margin: 0 !important;
}

/* =============================================
   各セクション
   ============================================= */

.product-section {
	margin-bottom: 60px;
}

.product-section-body {
	font-size: 16px;
	color: #001c3a;
	line-height: 1.7;
}

.product-section-body p {
	margin: 0;
}

/* =============================================
   メイン画像
   ============================================= */

.product-thumbnail {
	text-align: center;
	margin-bottom: 60px;
}

.product-thumbnail img {
	max-width: 700px;
	width: 100%;
	height: auto;
	display: inline-block;
}

/* =============================================
   仕様テーブル
   ============================================= */

.product-spec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	color: #3d4c5d;
}

/* thead ヘッダー行 */
.product-spec-table thead th {
	background-color: #f0f0f0;
	border: 1px solid #c9d4df;
	padding: 12px 10px;
	text-align: center;
	font-weight: 600;
	color: #3d4c5d;
}

.product-spec-table thead th.col-item {
	width: 25%;
}

.product-spec-table thead th.col-spec {
	width: 75%;
}

/* tbody データ行 */
.product-spec-table tbody td {
	border: 1px solid #c9d4df;
	padding: 12px 10px;
	vertical-align: middle;
}

.product-spec-table tbody td.col-item {
	font-weight: 600;
	width: 25%;
}

.product-spec-table tbody td.col-spec {
	font-weight: 300;
	width: 75%;
}

/* グループヘッダー行（ヘッダーセクション値） */
.product-spec-table tbody tr.spec-group-header td {
	background-color: #f0f0f0;
	font-weight: 600;
	color: #3d4c5d;
	border: 1px solid #c9d4df;
	padding: 12px 10px;
	text-align: center;
}

/* 備考 */
.product-spec-note {
	font-size: 16px;
	color: #001c3a;
	line-height: 1.7;
	margin: 12px 0 0;
}

/* =============================================
   カタログボタン
   ============================================= */

.product-catalog-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
}

.product-catalog-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 1;
	min-width: 240px;
	padding: 20px 40px;
	font-size: 20px;
	font-weight: 600;
	text-decoration: none;
	color: #fff;
	transition: opacity 0.2s;
}

.product-catalog-btn:hover {
	opacity: 0.85;
	color: #fff;
	text-decoration: none;
}

.product-catalog-btn--doc {
	background-color: #0084e8;
}

.product-catalog-btn--dwg {
	background-color: #001c3a;
}

.btn-label {
	flex: 1;
}

.btn-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* =============================================
   レスポンシブ
   ============================================= */

@media (max-width: 768px) {
	.product-title {
		font-size: 26px;
	}

/* 	.product-heading {
		margin-left: 20px;
	} */

	.product-heading__text {
		font-size: 24px;
	}

	.product-catalog-buttons {
		flex-direction: column;
		gap: 16px;
	}

	.product-catalog-btn {
		min-width: unset;
		width: 100%;
	}
}

/* =============================================
   製品情報 一覧ページ
   ============================================= */

.product-archive {
	background: #fff;
}

.product-archive-inner {
	max-width: 1200px;
	margin: 0 auto;
/* 	padding: 40px 20px 80px; */
/* 	margin-right: calc(-50vw + 50% + 0px / 2);
        margin-left: calc(-50vw + 50% + 0px / 2); */
	padding-top: clamp(40px, 7.27vw + 12px, 100px);
    padding-bottom: clamp(40px, 7.27vw + 12px, 100px);
}

/* カテゴリーセクション */
.product-category-section {
	margin-bottom: 0;
	margin-top: 72px;
}


/* カードグリッド */
.product-card-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

/* カード */
.product-card {
	background: #fff;
/* 	border: 1px solid #c9d4df; */
	display: flex;
	flex-direction: column;
}

.product-card__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	text-decoration: none;
	color: inherit;
}

.product-card__link:hover {
	text-decoration: none;
	opacity: 0.85;
}

/* アイキャッチ画像エリア */
.product-card__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #fff;
	flex-shrink: 0;
	    margin-bottom: 10px;
}

.product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.product-card__image-placeholder {
	width: 100%;
	height: 100%;
	background: #e8edf2;
}

/* カード本文 */
.product-card__body {
/* 	padding: 12px 14px 8px; */
	flex: 1;
}

.product-card__title {
	font-size: 18px;
	font-weight: 700;
	color: #3d4c5d;
	margin: 0 0 8px;
	line-height: 1.4;
	border: none;
	background: none;
	box-shadow: none;
	padding: 0;
}

.product-card__overview {
	font-size: 16px;
	color: #555;
	margin-top:0;
	margin-bottom: 10px;
	line-height: 1.6;
}

/* ボタンエリア */
.product-card__buttons {
	display: flex;
	gap: 6px;
/* 	padding: 8px 14px 14px; */
}

.product-card__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 1;
	max-width: calc(50% - 3px);
	padding: 8px 10px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: #fff;
	transition: opacity 0.2s;
	gap: 4px;
}

.product-card__btn:hover {
	opacity: 0.85;
	color: #fff;
	text-decoration: none;
}

.product-card__btn--doc {
	background-color: #0084e8;
}

.product-card__btn--dwg {
	background-color: #001c3a;
}

.product-card__btn svg {
	flex-shrink: 0;
}

/* =============================================
   レスポンシブ（一覧）
   ============================================= */

@media (max-width: 1024px) {
	.product-card-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.product-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}

}

@media (max-width: 480px) {
	.product-card-grid {
		grid-template-columns: 1fr;
	}
}

/* アーカイブ カテゴリー見出し余白 */
.product-category-section .product-heading {
	margin-bottom: 24px;
}

/* =============================================
   製品一覧 ページ内ナビ・説明文
   ============================================= */

.product-anchor-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 13px;
	margin-bottom: 24px;
}

.product-anchor-nav__item {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 calc((100% - 39px) / 4);
	background: #f0f0f0;
	border: 1px solid #c9d4df;
	color: #3d4c5d;
	font-size: 16px;
	font-weight: 600;
	padding: 14px 10px;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.product-anchor-nav__item:hover {
	background: #0084e8;
	color: #fff;
	text-decoration: none;
}

.product-archive-lead {
	font-size: 18px;
	color: #001c3a;
	margin: 0 0 48px;
	line-height: 1.7;
}

@media (max-width: 768px) {
	.product-archive-inner {
		padding-left: 20px;
		padding-right: 20px;
	}

	.product-anchor-nav {
		gap: 10px;
	}

	.product-anchor-nav__item {
		flex: 0 0 calc((100% - 10px) / 2);
		font-size: 14px;
		padding: 10px 8px;
	}

	.product-archive-lead {
		font-size: 15px;
		margin-bottom: 32px;
	}
}

@media (max-width: 480px) {
	.product-anchor-nav__item {
		flex: 0 0 calc((100% - 10px) / 2);
	}
}

/* 製品情報一覧ページ：site-content の上下マージンをリセット */
.post-type-archive-product_info .site-content {
  margin-top: 0;
  margin-bottom: 0;
}

/* 開発実績テーブル：年号列を狭く・行高を圧縮（business ページの行間調整） */
.wp-block-flexible-table-block-table table.has-fixed-layout {
  table-layout: auto;
  width: 100%;
}
.wp-block-flexible-table-block-table table thead th:first-child,
.wp-block-flexible-table-block-table table tbody td:first-child {
  width: 110px;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}
.wp-block-flexible-table-block-table table thead th:nth-child(2),
.wp-block-flexible-table-block-table table tbody td:nth-child(2) {
  width: 42%;
}
.wp-block-flexible-table-block-table table td,
.wp-block-flexible-table-block-table table th {
  padding: 8px 12px;
  line-height: 1.5;
}
