/* ==========================================================
   山形のお店（business）用スタイル
   ========================================================== */

/* ---- レイアウト（JIN非依存の自己完結コンテナ） ---- */
.biz-container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 24px 16px 60px;
	box-sizing: border-box;
	overflow-wrap: break-word;
}
.biz-container *, .biz-container *::before, .biz-container *::after { box-sizing: border-box; }
.biz-container img { max-width: 100%; height: auto; }
.biz-single .biz-article { max-width: 800px; margin: 0 auto; }

/* ---- 共通 ---- */
.biz-term {
	display: inline-block;
	font-size: 12px;
	line-height: 1;
	padding: 6px 10px;
	margin: 0 6px 6px 0;
	border-radius: 999px;
	background: #f0f4f8;
	color: #456;
	text-decoration: none;
}
a.biz-term:hover { background: #e2ebf3; }
.biz-term--business_area { background: #e8f4ec; color: #2a6e42; }
.biz-term--business_type { background: #eef0fb; color: #3d4a9e; }

/* ---- パンくずリスト ---- */
.biz-breadcrumb,
.biz-breadcrumb a,
.biz-breadcrumb span { font-size: 11px; line-height: 1.6; }
.biz-breadcrumb { color: #889; margin-bottom: 6px; }
.biz-breadcrumb a { color: #2b90d9; text-decoration: none; }
.biz-breadcrumb a:hover { text-decoration: underline; }
.biz-breadcrumb-sep { margin: 0 6px; color: #bbc; }

/* ---- 詳細ページ ---- */
.biz-updated-top { text-align: right; margin: 0 0 12px; }
.biz-single .biz-hero { margin: 28px 0 32px; }
.biz-single .biz-hero img { width: 100%; height: auto; display: block; border-radius: 8px; }
.biz-header { margin: 24px 0 0; }
.biz-logo img { max-height: 80px; width: auto; }
.biz-title { margin: 8px 0 20px; font-size: 34px; font-weight: 800; line-height: 1.4; }
@media (max-width: 600px) { .biz-title { font-size: 25px; } }
.biz-catch { color: #667; font-size: 15px; margin: 0 0 12px; }

.biz-section { margin: 40px 0; }
/* 見出しデザインはJIN（親テーマ）の .entry-content h2 スタイルを引用するため独自装飾なし */
.biz-heading-only { margin-bottom: 8px; }
.biz-text { line-height: 1.9; }

.biz-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.biz-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
@media (max-width: 600px) { .biz-gallery { grid-template-columns: repeat(2, 1fr); } }
.biz-gallery-open { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }

/* ---- ライトボックス ---- */
.biz-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, .88);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	cursor: zoom-out;
}
.biz-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.biz-lightbox-close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: none;
	border: 0;
	color: #fff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
}
.biz-lightbox-prev, .biz-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, .15);
	border: 0;
	color: #fff;
	font-size: 28px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
}
.biz-lightbox-prev { left: 16px; }
.biz-lightbox-next { right: 16px; }
.biz-lightbox-prev:hover, .biz-lightbox-next:hover { background: rgba(255, 255, 255, .3); }
@media (max-width: 600px) { .biz-lightbox { padding: 16px; } }

.biz-video { position: relative; padding-top: 56.25%; }
.biz-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }

.biz-info-table { width: 100%; border-collapse: collapse; }
.biz-info-table th, .biz-info-table td { border: 1px solid #e5e8eb; padding: 12px 14px; text-align: left; vertical-align: top; }
.biz-info-table th { width: 160px; background: #f7f9fb; font-weight: 600; white-space: nowrap; }
.biz-info-table td { word-break: break-all; }
@media (max-width: 600px) {
	.biz-info-table th, .biz-info-table td { display: block; width: auto; border-top: 0; }
	.biz-info-table tr:first-child th { border-top: 1px solid #e5e8eb; }
}

.biz-map { position: relative; padding-top: 60%; }
.biz-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
.biz-map-note { margin-top: 10px; font-size: 14px; color: #556; background: #f7f9fb; border-radius: 6px; padding: 10px 14px; }

.biz-coupon { background: #fff8ec; border: 2px dashed #e8b449; border-radius: 8px; padding: 20px; }
.biz-coupon h2 { border-color: #e8b449; }
.biz-editor-comment { background: #f4f8f4; border-radius: 8px; padding: 20px; }

.biz-related { list-style: disc; padding-left: 1.4em; }
.biz-related li { margin-bottom: 6px; }

.biz-footer { margin-top: 40px; border-top: 1px solid #e5e8eb; padding-top: 16px; }
.biz-updated { color: #889; font-size: 13px; }
.biz-back a {
	background: none !important;
	box-shadow: none !important;
	border: 0 !important;
	padding: 0 !important;
	color: #2b90d9;
	text-decoration: none;
}
.biz-back a:hover { text-decoration: underline; }

/* ---- 一覧ページ ---- */
.biz-archive-title { font-size: 26px; margin: 20px 0; }

.biz-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 24px; }
.biz-filter select { padding: 8px 10px; border: 1px solid #ccd; border-radius: 6px; font-size: 14px; }
.biz-filter-clear { font-size: 13px; color: #2b90d9; }

.biz-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .biz-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .biz-cards { grid-template-columns: 1fr; } }

.biz-card {
	display: block;
	background: #fff;
	border: 1px solid #e5e8eb;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .2s, transform .2s;
}
.biz-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.biz-card-thumb { aspect-ratio: 16 / 10; background: #f0f2f4; display: flex; align-items: center; justify-content: center; }
.biz-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-card-noimg { color: #aab; font-size: 13px; }
.biz-card-body { padding: 14px 16px 16px; }
.biz-card-title { font-size: 16px; margin: 0 0 6px; }
.biz-card-catch { font-size: 13px; color: #667; margin: 0 0 10px; }

/* ---- 申請フォーム ---- */
.biz-form { max-width: 680px; }
.biz-form-row { margin-bottom: 18px; }
.biz-form-row label { display: block; font-weight: 600; margin-bottom: 6px; }
.biz-form-row input[type="text"],
.biz-form-row input[type="url"],
.biz-form-row input[type="tel"],
.biz-form-row input[type="email"],
.biz-form-row select,
.biz-form-row textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccd;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}
.biz-req { color: #c33; font-size: 12px; font-weight: 400; margin-left: 6px; }
.biz-note { display: block; font-size: 12px; color: #889; margin-top: 4px; }
.biz-form-submit button {
	background: #2b90d9;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 14px 40px;
	font-size: 16px;
	cursor: pointer;
}
.biz-form-submit button:hover { background: #2379b8; }
.biz-form-done, .biz-form-error { padding: 16px 20px; border-radius: 8px; margin-bottom: 20px; }
.biz-form-done { background: #eef8ee; border: 1px solid #9c9; }
.biz-form-error { background: #fdeeee; border: 1px solid #e99; }
