@charset "UTF-8";
/* =============================================
   製品検索（ヘッダー検索ボタン / 検索モーダル / 結果ページ）
   参考：mytrex.jp「PRODUCT 商品を探す」
   ============================================= */

.ps-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.ps-icon { display: block; }

/* ---------- ヘッダーの検索ボタン ---------- */
.ps-open {
	appearance: none;
	-webkit-appearance: none;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	color: #fff;
	cursor: pointer;
	line-height: 1;
	font: inherit;
}
.ps-open:hover { opacity: .7; }
.ps-open:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

header .sub-nav .link-search {
	display: flex;
	align-items: center;
	margin-left: 15px;
}
header .sub-nav .link-search .ps-open { padding: 0 2px; }

/* SP：ハンバーガー｜ロゴ｜(検索)｜store の配置。ロゴ中央を崩さないよう絶対配置 */
.ps-open--sp { display: none; }

/* ---------- 検索モーダル ---------- */
.ps-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: #fff;
	color: #222;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	opacity: 0;
	transition: opacity .25s ease;
}
.ps-modal[hidden] { display: none; }
.ps-modal.is-open { opacity: 1; }
body.ps-lock { overflow: hidden; }

.ps-modal__inner {
	position: relative;
	max-width: 840px;
	margin: 0 auto;
	padding: 80px 40px 100px;
	box-sizing: border-box;
}
.ps-modal__close {
	position: fixed;
	top: 24px;
	right: 24px;
	width: 48px;
	height: 48px;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	z-index: 1;
}
.ps-modal__close span {
	position: absolute;
	top: 50%;
	left: 4px;
	width: 40px;
	height: 2px;
	background: #222;
}
.ps-modal__close span:nth-child(1) { transform: rotate(45deg); }
.ps-modal__close span:nth-child(2) { transform: rotate(-45deg); }
.ps-modal__close:hover { opacity: .6; }
.ps-modal__close:focus-visible { outline: 2px solid #222; outline-offset: 2px; }

.ps-modal__head { text-align: center; margin-bottom: 50px; }
.ps-modal__en {
	font-size: 40px;
	letter-spacing: .08em;
	line-height: 1.2;
	margin: 0;
}
.ps-modal__ja {
	font-size: 18px;
	letter-spacing: .2em;
	margin: 14px 0 0;
}

/* ---------- 検索パネル（共通） ---------- */
.ps-form {
	position: relative;
	margin-bottom: 40px;
}
.ps-form__input {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 56px 0 14px;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 0;
	background: #fff;
	font-size: 16px; /* iOS のズーム防止のため 16px 以上 */
	color: #222;
	-webkit-appearance: none;
	appearance: none;
}
.ps-form__input::placeholder { color: #999; }
.ps-form__input:focus { outline: none; border-color: #222; }
.ps-form__input::-webkit-search-cancel-button { cursor: pointer; }
.ps-form__btn {
	position: absolute;
	top: 0;
	right: 0;
	width: 52px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	color: #222;
	cursor: pointer;
}
.ps-form__btn .ps-icon { width: 26px; height: 26px; }
.ps-form__btn:hover { opacity: .6; }

/* アコーディオン（details/summary） */
.ps-acc { margin-bottom: 30px; }
.ps-acc__head {
	position: relative;
	display: block;
	padding: 16px 50px 16px 10px;
	border-bottom: 1px solid #222;
	font-size: 14px;
	cursor: pointer;
	list-style: none;
}
.ps-acc__head::-webkit-details-marker { display: none; }
.ps-acc__head::before,
.ps-acc__head::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 20px;
	height: 1px;
	background: #222;
	transition: transform .2s;
}
.ps-acc__head::after { transform: rotate(90deg); }
.ps-acc[open] > .ps-acc__head::after { transform: rotate(0); }
.ps-acc__head:focus-visible { outline: 2px solid #222; outline-offset: 2px; }

/* お悩み・目的：チップ */
.ps-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 14px;
	padding: 26px 10px 10px;
	margin: 0;
	list-style: none;
}
.ps-chips li { margin: 0; }
.ps-chip,
.ps-chip:visited {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 999px;
	background: #8a8a8a;
	color: #fff;
	font-size: 16px;
	letter-spacing: .08em;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color .2s;
}
.ps-chip:hover,
.ps-chip.is-current {
	background: #2b2b2b;
	color: #fff;
	opacity: 1;
}

/* カテゴリー：2列リスト */
.ps-cats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ps-cats li { margin: 0; }
.ps-cat,
.ps-cat:visited {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 80px;
	padding: 8px 40px 8px 10px;
	border-bottom: 1px solid #222;
	color: #222;
	text-decoration: none;
	box-sizing: border-box;
}
.ps-cat::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 9px;
	height: 9px;
	border-top: 1px solid #222;
	border-right: 1px solid #222;
	transform: translateY(-50%) rotate(45deg);
	transition: right .2s;
}
.ps-cat:hover { opacity: 1; background: #f5f5f5; }
.ps-cat:hover::after { right: 14px; }
.ps-cat.is-current { background: #f0f0f0; }
.ps-cat__icon {
	flex: 0 0 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ps-cat__icon img { max-width: 52px; max-height: 52px; width: auto; height: auto; }
.ps-cat__label {
	flex: 1;
	text-align: center;
	font-size: 18px;
	letter-spacing: .15em;
}
.ps-cat--text { min-height: 80px; }

/* ---------- 結果ページ ---------- */
.ps-result .ps-panel--page { max-width: 840px; margin: 0 auto 60px; }
.ps-result .ps-panel--page .ps-chip { padding: 10px 22px; font-size: 14px; }
.ps-result .ps-panel--page .ps-cat { min-height: 64px; }
.ps-result .ps-panel--page .ps-cat__icon { flex-basis: 48px; height: 48px; }
.ps-result .ps-panel--page .ps-cat__icon img { max-width: 42px; max-height: 42px; }
.ps-result .ps-panel--page .ps-cat__label { font-size: 16px; }
.ps-result .ps-panel--page .ps-cat--text { min-height: 64px; }

.ps-result__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding-bottom: 14px;
	margin-bottom: 30px;
	border-bottom: 2px solid #222;
	scroll-margin-top: 140px;
}
.ps-result__ttl { font-size: 22px; font-weight: bold; margin: 0; }
.ps-result__count { font-size: 15px; font-weight: normal; margin-left: 14px; }
.ps-result__clear,
.ps-result__clear:visited { font-size: 14px; color: #222; text-decoration: underline; }

.ps-empty { text-align: center; padding: 40px 0 80px; }
.ps-empty__lead { font-size: 18px; font-weight: bold; margin-bottom: 20px; }
.ps-empty__tips {
	display: inline-block;
	text-align: left;
	font-size: 14px;
	color: #555;
	margin: 0 0 30px;
	padding-left: 1.2em;
	list-style: disc;
}
.ps-empty__link,
.ps-empty__link:visited {
	display: inline-block;
	padding: 14px 50px;
	background: #2b2b2b;
	color: #fff;
	text-decoration: none;
}

/* ---------- 結果ページ：1行1件の一覧 ---------- */
.ps-result .img-list {
	display: block;
	border-top: 1px solid #ddd;
}
.ps-result .img-list li {
	width: 100%;
	margin: 0;
	padding: 24px 0;
	border-bottom: 1px solid #ddd;
	box-sizing: border-box;
}
.ps-result .img-list li .img-box { margin: 0; }
.ps-result .img-list li .img-box > a,
.ps-result .img-list li .img-box:not(:has(> a)) {
	display: flex;
	align-items: center;
	gap: 40px;
}
.ps-result .img-list li .img-box .pho-box {
	float: none;
	flex: 0 0 180px;
	width: 180px;
	padding-top: 0;
}
.ps-result .img-list li .img-box .pho-box img { width: 100%; }
/* 受賞・認定バッジは一覧では画像に被るため非表示 */
.ps-result .img-list li .ico_gd,
.ps-result .img-list li .ico_da,
.ps-result .img-list li .ico_hapi { display: none; }

.ps-result .img-list li .img-box .txt-box {
	float: none;
	flex: 1;
	width: auto;
	display: flex;
	align-items: center;
	gap: 40px;
	padding: 0;
}
.ps-result .img-list li .img-box .txt-box h4 {
	flex: 0 0 320px;
	margin: 0;
	font-size: 20px;
}
.ps-result .img-list li .img-box .txt-box .subBox {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 30px;
}
.ps-result .img-list li .img-box .txt-box .subBox > p:first-child {
	flex: 1;
	margin: 0;
}
.ps-result .img-list li .img-box .txt-box .color {
	flex: none;
	margin: 0;
	white-space: nowrap;
}
.ps-result .img-list li .img-box .txt-box .price {
	flex: 0 0 190px;
	margin: 0;
}

/* =============================================
   SP（〜834px：サイト共通のブレークポイント）
   ============================================= */
@media only screen and (max-width: 834px) {
	header#header .ps-open--sp {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 0;
		right: 57px; /* store ボタン幅 */
		width: 48px;
		height: 57px;
		color: #fff;
	}
	header#header .ps-open--sp .ps-icon { width: 20px; height: 20px; }
	header#header .ps-open--sp span {
		display: block;
		font-size: 11px;
		padding-top: 4px;
	}

	.ps-modal__inner { padding: 64px 16px 60px; }
	.ps-modal__close { top: 10px; right: 10px; width: 40px; height: 40px; }
	.ps-modal__close span { width: 30px; left: 5px; }
	.ps-modal__head { margin-bottom: 30px; }
	.ps-modal__en { font-size: 28px; }
	.ps-modal__ja { font-size: 14px; margin-top: 8px; }

	.ps-form { margin-bottom: 24px; }
	.ps-acc { margin-bottom: 20px; }
	.ps-acc__head { padding: 14px 44px 14px 4px; }

	.ps-chips { gap: 10px 8px; padding: 18px 0 6px; }
	.ps-chip,
	.ps-result .ps-panel--page .ps-chip { padding: 9px 16px; font-size: 13px; letter-spacing: .04em; }

	.ps-cats { grid-template-columns: 1fr; }
	.ps-cat,
	.ps-result .ps-panel--page .ps-cat { min-height: 58px; padding: 5px 36px 5px 4px; }
	.ps-cat__icon,
	.ps-result .ps-panel--page .ps-cat__icon { flex-basis: 44px; height: 44px; }
	.ps-cat__icon img,
	.ps-result .ps-panel--page .ps-cat__icon img { max-width: 38px; max-height: 38px; }
	.ps-cat__label,
	.ps-result .ps-panel--page .ps-cat__label { font-size: 15px; letter-spacing: .1em; }
	.ps-cat--text,
	.ps-result .ps-panel--page .ps-cat--text { min-height: 58px; }

	.ps-result .ps-panel--page { margin-bottom: 40px; }
	.ps-result__ttl { font-size: 18px; }
	.ps-result__count { font-size: 13px; margin-left: 8px; }
	.ps-result__head { scroll-margin-top: 70px; }

	/* 一覧（SP）：画像左・テキスト右の縦積み */
	.ps-result .img-list li { padding: 18px 0; }
	.ps-result .img-list li .img-box > a,
	.ps-result .img-list li .img-box:not(:has(> a)) {
		align-items: flex-start;
		gap: 16px;
	}
	.ps-result .img-list li .img-box .pho-box { flex-basis: 30%; width: 30%; }
	.ps-result .img-list li .img-box .txt-box,
	.ps-result .img-list li .img-box .txt-box .subBox {
		display: block;
	}
	.ps-result .img-list li .img-box .txt-box h4 { margin-bottom: 8px; font-size: 16px; }
	.ps-result .img-list li .img-box .txt-box .subBox > p:first-child { margin-bottom: 6px; font-size: 13px; }
	.ps-result .img-list li .img-box .txt-box .color { margin-bottom: 4px; }
	.ps-result .img-list li .img-box .txt-box .price { text-align: left; }
}
