/* Cozy Rental Catalog — Front CSS */
.crc-catalog {
	--crc-radius: 14px;
	--crc-shadow: 0 3px 16px rgba(100,70,50,.09);
	--crc-brown:  #7a5c4e;
	--crc-peach:  #fde8d8;
	--crc-cream:  #fdfaf6;
	--crc-sand:   #e8ddd0;
	--crc-sub:    #9c7b6e;
	--crc-text:   #3d2b20;
	font-family: -apple-system,'Helvetica Neue',sans-serif;
	color: var(--crc-text);
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 12px 40px;
}

/* フィルター */
.crc-filters {
	background: var(--crc-cream);
	border: 1px solid var(--crc-sand);
	border-radius: var(--crc-radius);
	padding: 14px 16px;
	margin-bottom: 20px;
}
.crc-filter-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}
.crc-filter-row:last-child { margin-bottom: 0; }
.crc-filter-label {
	font-size: 11px;
	font-weight: 700;
	color: var(--crc-sub);
	letter-spacing: .07em;
	text-transform: uppercase;
	min-width: 68px;
	flex-shrink: 0;
}
.crc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.crc-chip {
	padding: 5px 12px;
	border-radius: 20px;
	border: 1.5px solid var(--crc-sand);
	background: #fff;
	color: var(--crc-brown);
	font-size: 12px;
	cursor: pointer;
	transition: all .18s;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.crc-chip:hover { border-color: #b0a090; background: #fff9f6; }
.crc-chip-on {
	background: var(--crc-brown) !important;
	border-color: var(--crc-brown) !important;
	color: #fff !important;
}
.crc-chip-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

/* グリッド */
.crc-grid { display: grid; gap: 12px; }

/* crc-cols-2：レスポンシブで自動拡張（SP:2列 → タブレット:3列 → PC:4列） */
.crc-cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 601px) {
	.crc-cols-2 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 901px) {
	.crc-cols-2 { grid-template-columns: repeat(4, 1fr); }
}

/* crc-cols-3・crc-cols-4：設定値を尊重しつつSPは2列 */
.crc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.crc-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 600px) {
	.crc-cols-3, .crc-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
	.crc-filters { padding: 10px 12px; }
}

/* カード */
.crc-card {
	background: #fff;
	border-radius: var(--crc-radius);
	overflow: hidden;
	box-shadow: var(--crc-shadow);
	cursor: pointer;
	transition: transform .2s, box-shadow .2s;
	animation: crcFadeIn .3s ease both;
}
.crc-card:hover { transform: translateY(-3px); box-shadow: 0 7px 24px rgba(100,70,50,.15); }
.crc-card.crc-hidden { display: none !important; }
.crc-card.crc-rented { opacity: .6; }

@keyframes crcFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: none; }
}

/* カード画像 */
.crc-card-img {
	position: relative;
	aspect-ratio: 3/4;
	overflow: hidden;
	background: var(--crc-peach);
}
.crc-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.crc-no-photo {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	opacity: .35;
}

/* カードバッジ */
.crc-card-badges {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}
.crc-badge {
	font-size: 10px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 12px;
	backdrop-filter: blur(3px);
}
.crc-badge-free   { background: rgba(106,191,135,.92); color: #fff; }
.crc-badge-paid   { background: rgba(224,123,84,.92);  color: #fff; }
.crc-badge-new    { background: rgba(226,75,74,.92);   color: #fff; animation: crcPulse 2.5s ease-in-out infinite; }
.crc-badge-rented { background: rgba(100,100,100,.8);  color: #fff; }
.crc-badge-maint  { background: rgba(150,120,50,.8);   color: #fff; }
.crc-badge-gender { background: rgba(255,255,255,.85); font-size: 13px; padding: 2px 5px; }
@keyframes crcPulse {
	0%,100% { box-shadow: 0 1px 6px rgba(226,75,74,.4); }
	50%      { box-shadow: 0 1px 14px rgba(226,75,74,.7); }
}

/* カードテキスト */
.crc-card-body { padding: 8px 10px 10px; }
.crc-card-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--crc-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 3px;
}
.crc-card-sub { font-size: 11px; color: var(--crc-sub); }

/* ボトムシート — JSでインラインスタイル制御 */
.crc-sheet-ov { display: none; }
.crc-sheet-ov.crc-on { display: block; }
.crc-sheet {
	background: #fff;
	border-radius: 18px 18px 0 0;
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
}
.crc-sheet-handle {
	padding: 10px 0 4px;
	display: flex;
	justify-content: center;
	flex-shrink: 0;
	cursor: pointer;
}
.crc-handle-bar {
	width: 36px;
	height: 4px;
	background: #ccc;
	border-radius: 2px;
}
.crc-sheet-body {
	overflow-y: auto;
	padding: 0 16px 24px;
	flex: 1;
	min-height: 0;
}

/* シート内画像 */
.crc-sheet-img-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	border-radius: 10px;
	overflow: hidden;
	background: var(--crc-peach);
	margin-bottom: 14px;
}
.crc-sheet-slides { width: 100%; height: 100%; position: relative; }
.crc-sheet-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .35s;
}
.crc-sheet-slide.crc-on { opacity: 1; }
.crc-sheet-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crc-sheet-no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 56px; opacity: .3; }
.crc-sheet-prev, .crc-sheet-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,.85);
	border: none;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	font-size: 18px;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 2;
	padding: 0;
	color: var(--crc-brown);
}
.crc-sheet-prev { left: 7px; }
.crc-sheet-next { right: 7px; }
.crc-sheet-dots {
	position: absolute;
	bottom: 7px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 4px;
	z-index: 2;
}
.crc-sheet-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255,255,255,.55);
	transition: background .2s;
	cursor: pointer;
}
.crc-sheet-dot.crc-on { background: #fff; }
.crc-sheet-badges {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	z-index: 2;
}

/* シートテキスト */
.crc-sheet-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--crc-text);
	margin-bottom: 10px;
}
.crc-sheet-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.crc-sheet-tag {
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 10px;
	background: var(--crc-cream);
	color: var(--crc-sub);
	border: 1px solid var(--crc-sand);
}
.crc-sheet-desc {
	font-size: 14px;
	color: var(--crc-sub);
	line-height: 1.7;
	margin-bottom: 16px;
}
.crc-sheet-book-btn {
	display: block;
	width: 100%;
	padding: 13px;
	background: var(--crc-brown);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
	transition: background .2s;
}
.crc-sheet-book-btn:hover { background: #5a3d31; }
.crc-sheet-book-btn.crc-rented-btn {
	background: #888;
	cursor: default;
}

.crc-no-results { text-align: center; color: var(--crc-sub); padding: 40px 0; font-size: 15px; }
.crc-hidden { display: none !important; }

/* ---- スペックテーブル（モーダル） ---- */
.crc-spec-table { width:100%; border-collapse:collapse; margin:10px 0; font-size:13px; }
.crc-spec-table td { padding:5px 8px; border-bottom:1px solid #f0ece4; vertical-align:top; }
.crc-spec-table td:first-child { color:#9c7b6e; white-space:nowrap; width:35%; font-weight:600; }
.crc-spec-table td:last-child { color:#3d2b20; }

/* ---- 料金エリア（モーダル） ---- */
.crc-modal-price { margin:10px 0 4px; font-size:15px; font-weight:700; color:#3d2b20; }
.crc-modal-price .crc-price-free { color:#5aaa6e; }
.crc-modal-price .crc-price-amount { color:#3d2b20; }
