﻿@charset "UTF-8";

/* ----カラーシミュレーションページ用---- */
.house-part {
	transition: fill 0.5s ease;
	cursor: pointer;
	stroke: none;
}

.house-part:hover {
	opacity: 0.9;
	filter: brightness(1.05);
}

.overlay-obj {
	pointer-events: none;
}

.window-glass {
	fill: #aeeeff;
}

.window-frame {
	fill: none;
	stroke: #fff;
	stroke-width: 3px;
}

.bush {
	fill: #8bc34a;
}

.planter {
	fill: #a1887f;
}

.door {
	fill: #8d6e63;
}

.railing {
	stroke: #ccc;
	stroke-width: 2px;
}

/* レイアウト */
.simulator-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	font-family: "Helvetica Neue", Arial, sans-serif;
	color: #333;
	max-width: 1200px;
	margin: 0 auto;
	background: #fff;
}

/* 左カラム */
.preview-area {
	flex: 1 1 350px;
	background: #f4f4f4;
	padding: 10px;
	border-radius: 8px;
	text-align: center;
	height: fit-content;
}

.preview-area svg {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.selection-indicator {
	margin-top: 10px;
	margin-bottom: 10px;
	font-weight: bold;
	color: #d32f2f;
}

/* 右カラム */
.controls-area {
	flex: 1 1 400px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

h4 {
	margin: 0 0 10px 0;
	padding-left: 10px;
	border-left: 5px solid #555;
	font-size: 1em;
}

.preset-buttons {
	display: flex;
	gap: 8px;
	margin-bottom: 5px;
}

.preset-btn {
	flex: 1;
	padding: 10px 5px;
	border: 1px solid #ccc;
	background: #eef;
	border-radius: 6px;
	cursor: pointer;
	text-align: center;
	transition: all 0.2s;
}

.preset-btn:hover {
	background: #dde;
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-title {
	display: block;
	font-weight: bold;
	font-size: 1em;
	margin-bottom: 2px;
	color: #333;
}

.btn-desc {
	display: block;
	font-size: 0.75em;
	color: #666;
}

.radio-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.radio-group label {
	display: block;
	padding: 10px;
	background: #eee;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9em;
	user-select: none;
	transition: background 0.2s;
}

.radio-group label:hover {
	background: #e0e0e0;
}

.radio-group label:has(input:checked) {
	background: #333;
	color: #fff;
}

.color-palette-container {
	border: 1px solid #ddd;
	padding: 10px;
	border-radius: 8px;
	background: #fafafa;
}

.palette-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 10px;
}

.tab-btn {
	padding: 6px 10px;
	border: 1px solid #ccc;
	background: #fff;
	cursor: pointer;
	border-radius: 4px;
	font-size: 0.8em;
	margin-bottom: 4px;
}

.tab-btn:hover {
	background: #f0f0f0;
}

.tab-btn.active {
	background: #555;
	color: #fff;
	border-color: #555;
}

.search-box input {
	width: 100%;
	padding: 8px;
	margin-bottom: 10px;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.jpma-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
	justify-content: start;
	gap: 8px;
	height: 350px;
	overflow-y: scroll;
	padding: 8px;
	background: #fff;
	border: 1px solid #ddd;
}

.color-tile {
	cursor: pointer;
	border: 1px solid #eee;
	border-radius: 3px;
	overflow: hidden;
	transition: transform 0.1s;
	font-size: 10px;
	text-align: center;
	height: 60px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.color-tile:hover {
	transform: scale(1.1);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	border-color: #666;
	z-index: 10;
}

.tile-swatch {
	width: 100%;
	flex-grow: 1;
}

.tile-code {
	padding: 4px 0;
	background: #fff;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 9px;
}

.result-display {
	background: #fff;
	padding: 15px;
	border-radius: 4px;
	border: 1px solid #ddd;
	text-align: left;
	margin-top: 10px;
}

.result-display h5 {
	margin: 0 0 10px 0;
	font-size: 1.1em;
	border-bottom: 1px solid #eee;
	padding-bottom: 5px;
}

.result-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

@media (max-width: 600px) {
	.result-list {
		grid-template-columns: 1fr;
	}
}

.result-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.9em;
	background: #f9f9f9;
	padding: 5px 8px;
	border-radius: 4px;
}

.chip {
	width: 25px;
	height: 25px;
	border: 1px solid #ccc;
	display: inline-block;
	border-radius: 2px;
	vertical-align: middle;
}

/* 印刷ボタン */
.print-btn {
	display: block;
	width: 100%;
	margin-top: 15px;
	padding: 10px;
	background: #444;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1em;
	transition: 0.2s;
}

.print-btn:hover {
	background: #222;
}

/* --- おススメ商品全体レイアウト --- */
.recommend-section {
    max-width: 1200px; 
    margin: 50px auto;
    padding: 0 10px;
}

.recommend-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; 
}

.recommend-item {
    width: calc(25% - 11.25px); 
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    border: 1px solid #e0e0e0;
    background: #fff;
    box-sizing: border-box;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 5px; 
    overflow: hidden; 
}

.recommend-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.item-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 15px;
}

.item-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-name {
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 8px;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-price {
    color: #c00;
    font-size: 1.1rem;
    font-weight: bold;
}

.tax {
    font-size: 0.7rem;
    color: #888;
    font-weight: normal;
}

/* 調色対応商品一覧ボタンの共通設定 */
.btn-mixing-wrapper {
    margin: 30px auto;
    text-align: center;
}

.btn-mixing-list {
    width: 300px;
    height: 56px;
    border: #161616 2px solid;
    border-radius: 56px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1px 0 0 0;
    color: #161616;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.0;
    transition: 0.3s;
    position: relative;
    z-index: 1;
    box-sizing: border-box; 
}

.btn-mixing-list:hover {
    background-color: #161616;
    color: #ffffff;
    text-decoration: none;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 992px) {
    .recommend-item {
        width: calc(50% - 7.5px);
    }
}

@media (max-width: 480px) {
    .item-name {
        font-size: 0.8rem;
    }
    .item-price {
        font-size: 1rem;
    }
    .btn-mixing-list {
        font-size: 15px;
        padding: 14px 15px;
    }
}

/* ▼▼▼ 印刷用スタイル ▼▼▼ */
@media print {
	@page {
		margin: 10mm;
		size: auto;
	}

	body {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
		background: #fff !important;
		zoom: 0.8;
	}

	.controls-area,
	.print-btn,
	.selection-indicator,
	.block-accessory-list,
	.freepage-frame,
	.pane-footer,
	#footer_pagetop, 
	.btn-mixing-wrapper,
	.recommend-section {
		display: none !important;
	}

	.simulator-wrapper {
		display: block !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		border: none !important;
	}

	.preview-area {
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		background: none !important;
		border: none !important;
	}

	.preview-area svg {
		width: auto !important;
		height: 35vh !important;
		max-height: 350px !important;
		margin: 10px auto 20px auto;
		display: block;
	}

	.result-display {
		width: 90% !important;
		margin: 0 auto !important;
		border: 1px solid #333 !important;
		padding: 15px !important;
		box-sizing: border-box !important;
		page-break-inside: avoid;
		box-shadow: none !important;
	}

	.result-list {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 10px !important;
	}

	.chip {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
		border: 1px solid #000 !important;
		display: inline-block !important;
		box-shadow: none !important;
	}

	.house-part,
	.overlay-obj,
	rect,
	path,
	circle,
	line {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}
}