/* Aibara OpenHouse Display */
.oh-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px 48px; box-sizing: border-box; }
.oh-wrap *, .oh-grid *, .oh-card { box-sizing: border-box; }
.oh-breadcrumb { font-size: 13px; color: #777; margin-bottom: 12px; }
.oh-breadcrumb a { color: #777; text-decoration: none; }
.oh-page-title { font-size: 26px; margin: 0 0 16px; }

/* filter */
.oh-filter { border: 1px solid #ddd; border-radius: 8px; padding: 16px; margin-bottom: 16px; background: #faf7f2; }
.oh-filter-title { font-weight: 700; margin-bottom: 4px; }
.oh-filter-guide { font-size: 13px; color: #666; margin: 0 0 10px; }
.oh-filter-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.oh-chip { display: inline-block; padding: 5px 14px; border: 1px solid #b08954; border-radius: 999px; color: #7a5a2e; text-decoration: none; font-size: 14px; background: #fff; }
.oh-chip:hover, .oh-chip.is-active { background: #b08954; color: #fff; }
.oh-state { border: 1px solid #b08954; background: #fdf6ec; border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.oh-state a { color: #7a5a2e; }

/* grid + card */
.oh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .oh-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .oh-grid { grid-template-columns: 1fr; } }
.oh-card { position: relative; border: 1px solid #e2ddd5; border-radius: 10px; padding: 14px; background: #fff; display: flex; flex-direction: column; }
.oh-card-link { position: absolute; inset: 0; z-index: 2; }
.oh-card-type { font-size: 15px; color: #b08954; font-weight: 700; letter-spacing: .05em; }
.oh-card-name { font-size: 18px; margin: 2px 0 10px; line-height: 1.4; }
.oh-card-photo { position: relative; margin-bottom: 10px; }
.oh-card-img { width: 100%; height: 230px; object-fit: cover; border-radius: 6px; display: block; }
.oh-noimg { background: #eee; color: #999; display: flex; align-items: center; justify-content: center; }
.oh-closed { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.65); color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 13px; }
.oh-card-meta { margin-bottom: 8px; }
.oh-badge { display: inline-block; background: #c0392b; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.oh-price { font-weight: 700; color: #c0392b; }
.oh-price-num { font-size: 1.4em; }
.oh-mini { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 8px; border-top: 1px solid #e5e0d5; }
.oh-mini th { text-align: left; color: #555; font-weight: 600; background: #f6f4ef; padding: 6px 8px; white-space: nowrap; vertical-align: top; border-bottom: 1px solid #e5e0d5; width: 84px; }
.oh-mini td { padding: 6px 4px 6px 10px; border-bottom: 1px solid #e5e0d5; }
.oh-map { color: #b08954; position: relative; z-index: 3; }
.oh-catch { font-size: 16px; color: #7a5a2e; margin-bottom: 12px; text-align: center; font-weight: 600; }
.oh-detail-btn { margin-top: auto; text-align: center; }
.oh-detail-btn span { display: inline-block; background: #F3A553; border: 1px solid #F3A553; color: #fff; border-radius: 999px; padding: 7px 26px; font-size: 14px; font-weight: 700; }
.oh-card:hover .oh-detail-btn span { background: #e08e3e; border-color: #e08e3e; }
.oh-pagination { margin-top: 28px; text-align: center; }
.oh-pagination .page-numbers { display: inline-block; padding: 6px 12px; margin: 0 2px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; color: #555; }
.oh-pagination .current { background: #b08954; border-color: #b08954; color: #fff; }
.oh-empty { padding: 32px 0; text-align: center; color: #777; }
.oh-more { text-align: center; margin-top: 20px; }
.oh-more a { display: inline-block; border: 1px solid #b08954; color: #7a5a2e; border-radius: 999px; padding: 8px 28px; text-decoration: none; }

/* detail */
.oh-detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; }
@media (max-width: 900px) { .oh-detail-layout { grid-template-columns: 1fr; } }
.oh-detail-type { font-size: 16px; color: #b08954; font-weight: 700; letter-spacing: .05em; }
.oh-detail-title { font-size: 28px; margin: 2px 0 10px; line-height: 1.4; }
.oh-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.oh-detail-meta { margin-bottom: 14px; }
.oh-price-lg { font-size: 20px; color: #c0392b; }
.oh-closed-lg { display: inline-block; margin-left: 8px; background: #555; color: #fff; font-size: 13px; padding: 3px 10px; border-radius: 4px; }
.oh-main-photo img { width: 100%; height: auto; border-radius: 8px; display: block; }
.oh-subs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.oh-sub img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; display: block; }
.oh-video { margin-top: 16px; position: relative; padding-top: 56.25%; }
.oh-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
.oh-spec { width: 100%; border-collapse: collapse; margin-top: 20px; }
.oh-spec th { width: 110px; text-align: left; background: #faf7f2; border: 1px solid #e2ddd5; padding: 10px 12px; font-weight: 700; vertical-align: top; }
.oh-spec td { border: 1px solid #e2ddd5; padding: 10px 12px; }
.oh-event { border: 1px solid #b08954; background: #fdf6ec; border-radius: 8px; padding: 16px; margin-top: 20px; }
.oh-event h2 { font-size: 18px; margin: 0 0 8px; }
.oh-event p { margin: 4px 0; }
.oh-body { margin-top: 20px; line-height: 1.9; }
.oh-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.oh-btn { flex: 1; min-width: 200px; text-align: center; padding: 14px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.oh-btn-contact { background: #F3A553; color: #fff; }
.oh-btn-portal { border: 2px solid #b08954; color: #7a5a2e; background: #fff; }

/* sidebar */
.oh-side-box { border: 1px solid #e2ddd5; border-radius: 8px; padding: 16px; margin-bottom: 20px; background: #fff; }
.oh-side-box h4 { margin: 0 0 10px; font-size: 16px; }
.oh-taglist, .oh-recent { list-style: none; margin: 0; padding: 0; }
.oh-taglist li, .oh-recent li { border-top: 1px solid #f0ece5; }
.oh-taglist li:first-child, .oh-recent li:first-child { border-top: 0; }
.oh-taglist a, .oh-recent a { display: block; padding: 8px 2px; color: #555; text-decoration: none; font-size: 14px; }
.oh-taglist a:hover, .oh-recent a:hover { color: #b08954; }

/* SWELL標準サイドバー（ブログ用）をオープンハウスでは隠す */
.single-openhouse .l-sidebar,
.post-type-archive-openhouse .l-sidebar,
.tax-openhouse_area .l-sidebar,
.tax-openhouse_type .l-sidebar { display: none !important; }
.single-openhouse .l-mainContent,
.post-type-archive-openhouse .l-mainContent,
.tax-openhouse_area .l-mainContent,
.tax-openhouse_type .l-mainContent { width: 100% !important; max-width: 100% !important; }

/* hero + intro (match current /open/ page) */
.oh-hero { width: 100vw; margin-left: calc(50% - 50vw); height: 360px; margin-top: 0; background: url('https://aibara.net/wp-content/uploads/2026/11/open-header.png') center/cover no-repeat; display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
@media (max-width: 640px) { .oh-hero { height: 180px; } }
.oh-hero h1 { background: rgba(255,255,255,.8); padding: .3em; font-size: 1.6rem; color: #333; width: 50%; margin: 0 auto; text-align: center; }
.oh-intro { line-height: 2; margin-bottom: 8px; }
.oh-intro p { margin: 0 0 1em; }

/* archive: hero directly under menu (hide SWELL breadcrumb, remove content top padding) */
.post-type-archive-openhouse #breadcrumb { display: none; }
.post-type-archive-openhouse .l-content { padding-top: 0; }
.post-type-archive-openhouse .oh-wrap { padding-top: 0; }

/* SWELL h3 decoration reset for card titles */
.oh-card .oh-card-name { padding: 0; margin: 0 0 10px; }
.oh-card .oh-card-name::before { content: none !important; display: none !important; }
