/*
 * 製品検索サイドバー・製品一覧（search_form.php / js/product-search.js）
 *
 * テーマ既存の #product_search / .search-block / .tab-now などの指定より優先させるため、
 * フォームの ID（#product-search-form）から書く。
 */

#product-search-form,
#order_by {
	--ps-green: #239833;
	--ps-green-dark: #1d7f2a;
	--ps-green-pale: #f2f9f3;
	--ps-border: #d9d9d9;
	--ps-line: #e8e8e8;
	--ps-text: #333;
	--ps-muted: #888;
	color: var(--ps-text);
	font-size: 14px;
}
#product-search-form #product_search {
	margin: 0;
	padding: 0;
}
#product-search-form [hidden] {
	display: none !important;
}

/* --- パネル ---------------------------------------------------------- */

#product-search-form #new-search,
#product-search-form #more-search {
	margin: 0 0 20px;
	padding: 0 0 6px;
	border-radius: 6px;
	overflow: hidden;
}
#product-search-form #new-search {
	background: #f5f5f5;
}
#product-search-form #more-search {
	border: 1px solid var(--ps-line);
	background: #fff;
}
#product-search-form .nav-title {
	padding: 14px 20px;
	border-bottom: 1px solid var(--ps-line);
	color: var(--ps-green);
	font-size: 17px;
	letter-spacing: .05em;
	text-align: center;
}

/* --- 項目（見出し + 中身） ------------------------------------------- */

#product-search-form .search-block {
	float: none;
	width: auto !important;
	margin: 0;
	padding: 0 20px;
	overflow: visible !important;
	border-bottom: 1px solid var(--ps-line);
}
#product-search-form .search-block:last-child {
	border-bottom: 0;
}
#product-search-form #new-search .search-block {
	border-bottom-color: #e3e3e3;
}
#product-search-form .search-block h3 {
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: bold;
	line-height: 1.4;
}

/* 見出し: 左に名前、右に ＋ / − */
#product-search-form .search-block h3 a,
#product-search-form .ps-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 14px 0;
	border: 0;
	background: none;
	color: var(--ps-text) !important;
	font: inherit;
	font-size: 15px;
	font-weight: bold;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
#product-search-form .search-block h3 a::before,
#product-search-form .ps-toggle::before {
	content: none !important;
}
#product-search-form .search-block h3 a::after,
#product-search-form .ps-toggle::after {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	margin: -4px 4px 0 auto;
	border-right: 2px solid #999;
	border-bottom: 2px solid #999;
	transform: rotate(45deg);
	transition: transform .15s;
}
#product-search-form .search-block h3 a.tab-now::after,
#product-search-form .ps-toggle.is-open::after {
	margin-top: 4px;
	transform: rotate(-135deg);
}
#product-search-form .search-block h3 a:hover,
#product-search-form .ps-toggle:hover {
	color: var(--ps-green) !important;
}
#product-search-form .ps-badge {
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--ps-green);
	color: #fff;
	font-size: 11px;
	font-weight: normal;
	line-height: 1.4;
}

/* 中身 */
#product-search-form .select_item {
	float: none;
	width: auto !important;
	padding: 0 0 16px;
	text-align: left;
}
#product-search-form .select_item ul {
	margin: 0;
	padding: 0;
}
#product-search-form .select_item li {
	margin: 0;
	padding: 0;
	line-height: 1.4;
	list-style: none;
	float: none !important;
}

/* --- 入力欄・セレクト ------------------------------------------------- */

#product-search-form select,
#order_by select {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: 100% !important;
	height: 42px;
	margin: 0;
	padding: 0 36px 0 12px;
	border: 1px solid var(--ps-border);
	border-radius: 6px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
	color: var(--ps-text);
	font-size: 14px !important;
	line-height: 40px;
	cursor: pointer;
}
#order_by select {
	width: auto !important;
	min-width: 180px;
	height: 38px;
	line-height: 36px;
}
#product-search-form select:hover,
#order_by select:hover {
	border-color: #aaa;
}
#product-search-form select:focus,
#product-search-form #keyword:focus,
#order_by select:focus {
	border-color: var(--ps-green);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(35, 152, 51, .18);
}

/* フリーワード */
#product-search-form .ps-fw {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 6px;
}
#product-search-form #keyword {
	flex: 1 1 auto;
	box-sizing: border-box;
	width: auto;
	min-width: 0;
	height: 42px;
	margin: 0;
	padding: 0 10px 0 36px;
	border: 1px solid var(--ps-border);
	border-radius: 6px;
	background: #fff url(../img/icon-search.png) no-repeat 11px center;
	background-size: 16px auto;
	color: var(--ps-text);
	font-size: 15px;
}
#product-search-form .ps-submit {
	flex: 0 0 60px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: var(--ps-green);
	color: #fff;
	font-size: 14px;
	font-weight: bold;
	cursor: pointer;
}
#product-search-form .ps-submit:hover {
	background: var(--ps-green-dark);
}

/* 入力候補（MySuggest が入力欄の直後に差し込む） */
#product-search-form .ps-fw [data-mysuggest] {
	position: absolute;
	top: 100%;
	left: 0;
	width: auto;
	margin-top: 4px;
	z-index: 100;
}
#product-search-form .ps-fw [data-mysuggest] ul {
	position: static;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
	text-align: left;
}

/* --- チェックボックス・ラジオ ----------------------------------------- */

#product-search-form .ps-facet label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 -8px;
	padding: 7px 8px;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
}
#product-search-form .ps-facet label:hover {
	background: var(--ps-green-pale);
}
#product-search-form .ps-facet input[type="checkbox"],
#product-search-form .ps-facet input[type="radio"] {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--ps-green);
	cursor: pointer;
}
#product-search-form .ps-facet input:checked + .ps-label {
	color: var(--ps-green-dark);
	font-weight: bold;
}
#product-search-form .ps-count {
	margin-left: auto;
	color: var(--ps-muted);
	font-size: 12px;
}

/* 新しく検索 > ブランド（ブランドページへのリンク） */
#product-search-form #ps-tab-brand li a {
	display: block;
	margin: 0 -8px;
	padding: 7px 8px;
	border-radius: 6px;
	color: var(--ps-text);
	font-size: 14px;
	text-decoration: none;
}
#product-search-form #ps-tab-brand li a::before {
	content: none;
}
#product-search-form #ps-tab-brand li a::after {
	content: " ›";
	color: #999;
}
#product-search-form #ps-tab-brand li a:hover {
	background: #ebebeb;
	color: var(--ps-green);
}

/* 件数 */
#product-search-form .ps-status {
	padding: 12px 20px 4px;
	color: var(--ps-text);
	font-size: 13px;
}
#product-search-form .ps-total span {
	margin-right: 2px;
	color: var(--ps-green);
	font-size: 20px;
	font-weight: bold;
}


/* --- 一覧 ------------------------------------------------------------ */

#list_items {
	transition: opacity .15s;
}
#list_items.is-loading {
	opacity: .4;
	pointer-events: none;
}
.ps-empty {
	width: 100%;
	margin: 30px;
	text-align: center;
	line-height: 2;
}
.ps-retry {
	margin-top: 10px;
	padding: 6px 16px;
	cursor: pointer;
}

/* 一覧の上: 件数と選択中の条件 */
.ps-summary {
	margin: 4px 0 0;
	padding: 0 8px;
	font-size: 14px;
	color: #333;
	text-align: left;
}
/* シリーズ一覧（page-series.php）のシリーズ名 */
.ps-summary .ps-series-title {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	padding: 0;
	color: #333;
	font-size: 22px;
	font-weight: bold;
	line-height: 1.4;
}
.ps-summary .ps-series-title img {
	flex: 0 0 auto;
}
.ps-summary-count strong {
	margin-right: 2px;
	color: #239833;
	font-size: 20px;
}
.ps-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
.ps-chips li {
	list-style: none;
}
.ps-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 32px;
	padding: 0 10px 0 14px;
	border: 1px solid #239833;
	border-radius: 999px;
	background: #f2f9f3;
	color: #1d7f2a;
	font-size: 13px;
	cursor: pointer;
}
.ps-chip:hover {
	background: #e0f1e3;
}
.ps-chip-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #239833;
	color: #fff;
	font-size: 12px;
	line-height: 1;
}
.ps-chip-clear {
	height: 32px;
	padding: 0 6px;
	border: 0;
	background: none;
	color: #006b9b;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

/* ページャー */
.pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}
.pager a,
.pager .now,
.pager .ps-gap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 36px;
	height: 36px;
	margin: 0;
	padding: 0 8px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
}
.pager a {
	border: 1px solid #d9d9d9;
	background: #fff;
	color: #333;
}
.pager a:hover {
	border-color: #239833;
	background: #f2f9f3;
	color: #239833;
}
.pager .now {
	border: 1px solid #239833;
	background: #239833;
	color: #fff;
	font-weight: bold;
}
.pager .ps-gap {
	min-width: 20px;
	padding: 0;
	color: #888;
}

/* --- スマートフォン ---------------------------------------------------- */

/* 検索欄を折りたたむ（一覧・シリーズ一覧。PC は 2 カラム） */
.ps-mobile-toggle,
.ps-mobile-close {
	display: none;
}
@media screen and (max-width: 959px) {
	.ps-mobile-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		box-sizing: border-box;
		width: calc(100% - 20px);
		height: 48px;
		margin: 12px 10px;
		border: 1px solid #239833;
		border-radius: 6px;
		background: #fff;
		color: #239833;
		font-size: 15px;
		font-weight: bold;
		cursor: pointer;
	}
	.ps-mobile-toggle::after {
		content: "";
		width: 7px;
		height: 7px;
		margin-top: -4px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
	}
	.ps-mobile-toggle[aria-expanded="true"]::after {
		margin-top: 4px;
		transform: rotate(-135deg);
	}
	#product-search-form[data-collapsible]:not(.is-open) {
		display: none;
	}
	#product-search-form[data-collapsible] {
		margin: 0 10px;
	}
	#product-search-form[data-mode="list"] .ps-mobile-close {
		display: block;
		box-sizing: border-box;
		width: 100%;
		height: 48px;
		margin: 0 0 16px;
		border: 0;
		border-radius: 6px;
		background: #239833;
		color: #fff;
		font-size: 15px;
		font-weight: bold;
		cursor: pointer;
	}
	.ps-summary {
		padding: 0 10px;
	}
	#order_by select {
		min-width: 160px;
	}
}

/* --- ページ幅とレイアウト（一覧・詳細で共通） ----------------------------- */

@media screen and (min-width: 960px) {
	/* 詳細ページは枠が 980px で中身が 1080px だったため、一覧と同じ 1080px にそろえる */
	.site-inner {
		box-sizing: border-box;
		width: 100%;
		max-width: 1080px;
	}
	.search_result {
		display: flex;
		align-items: flex-start;
	}
	.search_sidebar {
		flex: 0 0 290px;
		width: 290px;
		margin-right: 50px;
	}
	.search_itemlist {
		flex: 1 1 auto;
		min-width: 0;
	}
}

/* --- 製品カード（一覧は 4 列、製品トップは 5 列） ------------------------- */

#order_by {
	margin: 0 0 8px;
}
.ps-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px 18px;
	clear: both;
	margin: 12px 0 0;
}
/* ログイン中は Revolution Slider の CSS が .clearfix::before を足し、グリッドの先頭マスを空ける */
.ps-grid::before,
.ps-grid::after {
	content: none !important;
}
.ps-grid .ps-card {
	display: flex;
	flex-direction: column;
	float: none;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	text-align: center;
	word-break: normal;
	overflow-wrap: anywhere;
}
.ps-grid .ps-card-link {
	display: block;
	color: #333;
	text-decoration: none;
}
.ps-grid .ps-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border: 1px solid #ececec;
	border-radius: 6px;
	background: #fafafa;
	transition: border-color .15s, box-shadow .15s;
}
.ps-grid .ps-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
	transition: transform .2s;
}
.ps-grid .ps-card-link:hover .ps-thumb {
	border-color: #239833;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.ps-grid .ps-card-link:hover .ps-thumb img {
	transform: scale(1.03);
}
.ps-grid .ps-card-link:hover .title {
	color: #239833;
}
.ps-grid .title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
/* 品番は 1 行で切る（行ごとに品名・価格の高さがそろうように）。全文はマウスを乗せると出る */
.ps-grid .code {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin: 10px 0 2px;
	color: #888;
	font-size: 11px;
	line-height: 1.4;
}
.ps-grid .title {
	min-height: 3em;
	color: #333;
	font-size: 14px;
	line-height: 1.5;
}
.ps-grid .price {
	margin: 4px 0 0;
	color: #C41A00;
	font-size: 15px;
}
.ps-grid .price .tax_text {
	margin-left: 2px;
	color: #666;
	font-size: 10px;
}
.ps-grid .ps-price-ask {
	color: #666;
	font-size: 12px;
}
.ps-grid .ps-card-foot {
	margin-top: 8px;
}
.ps-grid .zumen {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: auto;
	margin: 0 !important;
	color: #666;
	font-size: 11px;
}
.ps-grid .zumen img {
	width: auto;
	height: 18px;
}
.ps-grid .store {
	height: auto;
	margin: 8px 0 0;
}
.ps-grid .ps-empty {
	grid-column: 1 / -1;
	margin: 30px 0;
}

@media screen and (max-width: 959px) {
	.ps-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		padding: 0 10px;
	}
}
@media screen and (max-width: 599px) {
	.ps-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 12px;
	}
	.ps-grid .title {
		font-size: 13px;
	}
	.ps-grid .price {
		font-size: 14px;
	}
}

/* --- 製品トップ（/products/ page-products.php） ------------------------- */

.ps-products {
	--ps-green: #239833;
	--ps-border: #d9d9d9;
	color: #333;
}
@media screen and (min-width: 960px) {
	#products_page.ps-products {
		box-sizing: border-box;
		width: 100%;
		max-width: 1080px;
		margin: 0 auto;
	}
}

/* フリーワード */
.ps-products .ps-top-fw {
	display: flex;
	gap: 8px;
	max-width: 640px;
	margin: 30px auto 10px;
}
.ps-products .ps-top-fw input[type="search"] {
	flex: 1 1 auto;
	box-sizing: border-box;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 12px 0 42px;
	border: 1px solid var(--ps-border);
	border-radius: 6px;
	background: #fff url(../img/icon-search.png) no-repeat 14px center;
	background-size: 18px auto;
	font-size: 16px;
}
.ps-products .ps-top-fw input[type="search"]:focus {
	border-color: var(--ps-green);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(35, 152, 51, .18);
}
.ps-products .ps-top-fw .ps-submit {
	flex: 0 0 80px;
	height: 48px;
	border: 0;
	border-radius: 6px;
	background: var(--ps-green);
	color: #fff;
	font-size: 15px;
	font-weight: bold;
	cursor: pointer;
}
.ps-products .ps-top-fw .ps-submit:hover {
	background: #1d7f2a;
}
.ps-products .ps-top-fw [data-mysuggest] {
	position: absolute;
	width: auto;
	z-index: 100;
}

/* 見出し（左右に線） */
.ps-products .ps-top-heading {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 40px 0 18px;
	color: var(--ps-green);
	font-size: 18px;
	font-weight: normal;
	letter-spacing: .08em;
}
.ps-products .ps-top-heading::before,
.ps-products .ps-top-heading::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e3e3e3;
}

/* カテゴリー・ブランド（7 個を横一列に） */
.ps-products .ps-top-cats,
.ps-products .ps-top-brands {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ps-products .ps-top-cats li,
.ps-products .ps-top-brands li {
	margin: 0;
	list-style: none;
}
.ps-products .ps-top-cats a,
.ps-products .ps-top-brands a {
	display: flex;
	word-break: keep-all;
	overflow-wrap: anywhere;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	height: 100%;
	box-sizing: border-box;
	padding: 16px 8px 14px;
	border: 1px solid #ececec;
	border-radius: 8px;
	background: #fff;
	color: #333;
	font-size: 12px;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}
.ps-products .ps-top-cats a:hover,
.ps-products .ps-top-brands a:hover {
	border-color: var(--ps-green);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
	color: var(--ps-green);
}
.ps-products .ps-top-cats img {
	width: 64px;
	height: 64px;
	object-fit: contain;
}
.ps-products .ps-top-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 56px;
}
.ps-products .ps-top-logo img {
	max-width: 100%;
	max-height: 48px;
	object-fit: contain;
}

/* 製品: 見出しと絞り込み */
.ps-products .ps-top-head {
	margin: 40px 0 0;
}
.ps-products .ps-top-head .ps-top-heading {
	margin-top: 0;
}
.ps-products .ps-top-filters {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}
.ps-products .ps-top-filters select {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	min-width: 200px;
	height: 40px;
	padding: 0 36px 0 12px;
	border: 1px solid var(--ps-border);
	border-radius: 6px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
	color: #333;
	font-size: 14px;
	cursor: pointer;
}
.ps-products .ps-top-filters select:focus {
	border-color: var(--ps-green);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(35, 152, 51, .18);
}

/* 製品カード（5 列） */
.ps-grid--5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 36px 20px;
	margin-top: 20px;
	padding: 0;
	list-style: none;
}
.ps-grid--5 .ps-card {
	list-style: none;
}
.ps-grid .ps-brand {
	margin: 10px 0 0;
	color: #888;
	font-size: 11px;
	line-height: 1.4;
}
.ps-grid .ps-brand + .code {
	margin-top: 0;
}

/* 一覧ページへ */
.ps-products .ps-top-more {
	margin: 40px 0 60px;
	text-align: center;
}
.ps-products .ps-more-btn {
	display: inline-block;
	padding: 14px 36px;
	border: 1px solid var(--ps-green);
	border-radius: 999px;
	background: #fff;
	color: var(--ps-green);
	font-size: 15px;
	font-weight: bold;
	text-decoration: none;
}
.ps-products .ps-more-btn:hover {
	background: var(--ps-green);
	color: #fff;
}
.ps-products .ps-empty {
	margin: 40px 0;
	text-align: center;
}

@media screen and (max-width: 959px) {
	.ps-products {
		padding: 0 12px;
	}
	/* テーマのスマホ用 margin-top: 150px と #primary の余白が重なっていたため打ち消す */
	#products_page.ps-products {
		margin-top: 0;
	}
	.ps-products .ps-top-fw {
		margin-top: 16px;
	}
	.ps-products .ps-top-cats,
	.ps-products .ps-top-brands {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.ps-grid--5 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		padding: 0;
	}
}
@media screen and (max-width: 599px) {
	.ps-products .ps-top-cats,
	.ps-products .ps-top-brands {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
	}
	.ps-products .ps-top-cats a,
	.ps-products .ps-top-brands a {
		gap: 6px;
		padding: 10px 4px;
		font-size: 10px;
	}
	.ps-products .ps-top-logo {
		height: 36px;
	}
	.ps-products .ps-top-logo img {
		max-height: 30px;
	}
	.ps-products .ps-top-heading {
		margin: 28px 0 14px;
		font-size: 16px;
	}
	.ps-products .ps-top-cats img {
		width: 48px;
		height: 48px;
	}
	.ps-products .ps-top-filters {
		flex-direction: column;
	}
	.ps-products .ps-top-filters select {
		width: 100%;
	}
	.ps-grid--5 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 12px;
	}
}

/* 960〜1119px: 枠を画面幅に合わせ、左右に余白を取る（1080px 固定だと横スクロールが出る） */
@media screen and (min-width: 960px) and (max-width: 1119px) {
	.site-inner,
	#products_page.ps-products {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* 詳細ページ: テーマは .detail_page 1080px・本文 740px 固定のため、枠の幅に合わせて縮める
   （1080px 以上の画面では従来と同じ 290px + 50px + 740px） */
@media screen and (min-width: 960px) {
	.detail_page {
		width: 100%;
	}
	.detail_page #detail-main {
		width: calc(100% - 340px);
	}
	.detail_page #detailPhotoBox {
		width: calc(100% - 290px);
		max-width: 450px;
	}
	.detail_page #detailPhotoBox .photo img {
		max-width: 100%;
		height: auto;
	}
}
