@charset "utf-8";

/* ============================
	archive（2026-09-10 新規）
	製品一覧・お知らせ一覧・カテゴリ等のアーカイブ専用。
	is_home() || is_archive() || is_search() のときのみ読み込まれる
	（functions.php の my_wp_enqueue_scripts 参照）。
	色・サイズは tokens.css の変数を参照し、直値を書かない。
============================ */

.section .sec-ttl {
	text-align: left;
}

.list-none {
	margin: 0;
	font-size: var(--fs-17);
	color: var(--c-text-sub);
}

/* ============================
	archive-product（製品一覧）
	デザイン参照: .fig「JTC様_TOP」製品紹介セクション
	カード 360x260 / r5 / 背景 #e6e6e6、
	下端の帯 330x36 / #d9512d / 機種名 Noto Sans JP Medium 14px lh30 #fcfcfc。
	3列 gap35（コンテンツ1150pxに対して 360*3 + 35*2）、1ページ12件。
============================ */
#archive-product {
	background: var(--c-white);
}

.product-list {
	gap: 35px;
}

.product-item {
	width: var(--w-card-service); /* 360px。トップの事業内容カードと同寸 */
}

.product-link {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--r-s);
	background: var(--c-bg-gray);
}

.product-link.is-nolink {
	cursor: default;
}

.product-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 260px;
	background: var(--c-bg-gray);
}

.product-thumb img {
	width: 100%;
	height: 100%;
}

/* 画像未登録時のプレースホルダ。Figmaの「ご支給予定」表示に相当する */
.product-noimage {
	font-size: var(--fs-12);
	font-weight: 500;
	color: var(--c-text-sub);
}

/* 機種名の帯。カード幅360pxに対して330pxで左寄せ（Figma実測） */
.product-ttl {
	box-sizing: border-box;
	position: absolute;
	left: 0;
	bottom: 0;
	width: 330px;
	min-height: 36px;
	margin: 0;
	padding: 3px 11px;
	background: var(--c-primary);
	font-family: var(--f-body);
	font-size: var(--fs-14);
	font-weight: 500;
	line-height: 30px;
	color: var(--c-off-white);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.product-ttl::before {
	content: '';
	display: block;
	width: 20px;
	height: 100%;
	clip-path: polygon(0 0, 100% 100%, 0 100%);
	background: var(--c-primary);
	position: absolute;
	bottom: 0;
	left: 100%;
}

a.product-link:hover {
	opacity: 1;
}

a.product-link:hover .product-ttl {
	background: var(--c-primary-hover);
}

a.product-link:hover .product-thumb img {
	transform: scale(1.04);
}

.product-thumb img {
	transform: scale(1); /* hover復帰でのズレ防止に基点を明示（規約 2-1） */
	transition: transform var(--transition);
}

/* ============================
	archive-news（お知らせ一覧）
	行レイアウトは style.css の .news-list / .news-item（サイト共通）を使う。
============================ */
#archive-news {
	background: var(--c-white);
}

#archive-news .content-box {
	margin: 0;
}

/* ============================
	pagination
============================ */
.wp-pagenavi {
	margin: 60px 0 0;
}

/* ============================
	SP
============================ */
@media screen and (max-width: 767px) {
	.product-list {
		margin: 0 0 -20px;
	}

	.product-item {
		width: 100%;
		margin: 0 0 20px;
	}

	.product-thumb {
		height: auto;
		aspect-ratio: 360 / 260;
	}

	.product-ttl {
		width: calc(100% - 30px);
	}

	.wp-pagenavi {
		margin-top: 40px;
	}
}

/* ============================
	medical-gate（2026-09-10 追加）
	製品一覧の医療従事者確認モーダル。
	Cookie未取得のときだけPHP側で出力されるため、
	表示・非表示の分岐はCSSに持たせていない。
============================ */

/* 確認が済むまで一覧を出さない。
	JSが無効な環境でも中身が見えないよう、初期状態をCSS側で確定させる（規約 2-3）。 */
#archive-product.is-gate-locked .content-box {
	display: none;
}

body.is-gate-open {
	overflow: hidden;
}

.medical-gate {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1100; /* #header(999) / #btn-hamburger(1000) より前面 */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 20px;
	box-sizing: border-box;
	background: var(--c-overlay);
	overflow-y: auto;
}

.medical-gate .gate-inner {
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	padding: 50px 40px 40px;
	border-radius: var(--r-m);
	background: var(--c-white);
	text-align: center;
}

.medical-gate .sec-en {
	margin-bottom: 14px;
}

.medical-gate .gate-ttl {
	margin: 0;
	font-family: var(--f-base);
	font-size: var(--fs-30);
	font-weight: 700;
	line-height: var(--lh-heading);
	letter-spacing: var(--ls-h2-narrow);
	color: var(--c-ink);
}

.medical-gate .gate-txt {
	margin: 20px 0 0;
	font-family: var(--f-body);
	font-size: var(--fs-17);
	line-height: var(--lh-body);
	text-align: left;
	color: var(--c-text);
}

.medical-gate .gate-btns {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 32px 0 0;
}

/* サイトのピルボタン（.btn-arrow）と同じ形状。
	モーダル内では矢印を付けず、選択肢であることを見た目でも分ける。 */
.medical-gate .gate-btn {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	min-height: var(--h-btn);
	padding: 0 24px;
	border: 1px solid var(--c-primary);
	border-radius: var(--r-pill);
	background: var(--c-primary);
	font-family: var(--f-base);
	font-size: var(--fs-17);
	font-weight: 500;
	line-height: var(--lh-heading);
	letter-spacing: var(--ls-btn);
	color: var(--c-white);
	cursor: pointer;
	transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.medical-gate .gate-btn:hover {
	background: var(--c-primary-hover);
	border-color: var(--c-primary-hover);
	opacity: 1;
}

.medical-gate .gate-btn-secondary {
	min-width: 120px;
	background: var(--c-white);
	color: var(--c-primary);
}

.medical-gate .gate-btn-secondary:hover {
	background: var(--c-bg-light);
	border-color: var(--c-primary);
	color: var(--c-primary-hover);
}

.medical-gate .gate-btn:focus-visible {
	outline: 2px solid var(--c-ink);
	outline-offset: 2px;
}

.medical-gate .gate-note {
	margin: 20px 0 0;
	font-size: var(--fs-14);
	color: var(--c-text-sub);
}

@media screen and (max-width: 767px) {
	.medical-gate .gate-inner {
		padding: 36px 24px 30px;
	}

	.medical-gate .gate-btns {
		display: block;
		margin-top: 24px;
	}

	.medical-gate .gate-btn {
		width: 100%;
		min-width: 0;
	}

	.medical-gate .gate-btn + .gate-btn {
		margin: 12px 0 0;
	}
}
