/*
Theme Name: Nippon Hall
Theme URI: https://nippon-hall.com
Author: UTACA Inc.
Description: 日本のホール・会場検索ポータルサイト
Version: 1.2.0
Text Domain: nippon-hall
*/

/* ========================================
   Reset
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========================================
   Base
======================================== */
body {
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: #f7fafc;
  color: #1a202c;
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Header
======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #2563eb;
  color: #fff;
  height: 56px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo a {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.header-logo .logo-icon {
  font-size: 24px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: #fff;
  text-decoration: none;
}

/* ========================================
   Search Bar
======================================== */
.search-bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
}

.search-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 8px;
}

.search-bar input[type="text"] {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input[type="text"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-bar .btn-search {
  height: 40px;
  padding: 0 20px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-bar .btn-search:hover {
  background: #1d4ed8;
}

/* ========================================
   Breadcrumb
======================================== */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  font-size: 12px;
  color: #718096;
}

.breadcrumb a {
  color: #718096;
}

.breadcrumb a:hover {
  color: #2563eb;
}

.breadcrumb .separator {
  margin: 0 6px;
}

/* ========================================
   Main Layout
======================================== */
.main-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 40px;
  display: flex;
  gap: 20px;
}

/* ========================================
   Sidebar
======================================== */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 72px;
  align-self: flex-start;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
}

.sidebar-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.sidebar-card-title {
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
}

.sidebar-card-body {
  padding: 14px;
}

.filter-section {
  margin-bottom: 14px;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #4a5568;
  margin-bottom: 8px;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.filter-item label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.filter-item input[type="checkbox"] {
  accent-color: #2563eb;
  width: 16px;
  height: 16px;
}

.filter-count {
  font-size: 11px;
  color: #a0aec0;
  background: #f7fafc;
  border-radius: 10px;
  padding: 1px 8px;
}

.sidebar-card .btn-search {
  width: 100%;
  height: 38px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}

.sidebar-card .btn-search:hover {
  background: #1d4ed8;
}

.sidebar-card .btn-clear {
  width: 100%;
  height: 34px;
  background: transparent;
  color: #718096;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 6px;
}

.sidebar-card .btn-clear:hover {
  background: #f7fafc;
}

/* ========================================
   Content Area
======================================== */
.content-area {
  flex: 1;
  min-width: 0;
}

/* ========================================
   Results Header
======================================== */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.results-count {
  font-size: 14px;
  color: #4a5568;
}

.results-count strong {
  color: #2563eb;
  font-size: 18px;
}

.results-sort select {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  outline: none;
  cursor: pointer;
}

/* ========================================
   Hall Card
======================================== */
.hall-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.hall-card:hover {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
  border-color: #bfdbfe;
}

.hall-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hall-name {
  font-size: 17px;
  font-weight: 700;
  color: #2563eb;
}

.hall-name a {
  color: inherit;
}

.hall-name a:hover {
  text-decoration: underline;
}

.hall-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
}

.badge-public {
  background: #dbeafe;
  color: #1e40af;
}

.badge-private {
  background: #fef3c7;
  color: #92400e;
}

.badge-semi {
  background: #d1fae5;
  color: #065f46;
}

/* ========================================
   Hall Meta
======================================== */
.hall-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}

.hall-meta-item {
  font-size: 13px;
}

.hall-meta-label {
  color: #a0aec0;
  margin-right: 4px;
}

.hall-meta-value {
  font-weight: 600;
  color: #2d3748;
}

.hall-meta-value.capacity {
  color: #e53e3e;
}

/* ========================================
   Tags
======================================== */
.hall-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tag-genre {
  font-size: 11px;
  font-weight: 500;
  background: #eef2ff;
  color: #4338ca;
  padding: 2px 10px;
  border-radius: 4px;
}

.tag-booking {
  font-size: 11px;
  font-weight: 500;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 10px;
  border-radius: 4px;
}

/* ========================================
   Hall Description
======================================== */
.hall-description {
  font-size: 13px;
  color: #718096;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   Hall Actions
======================================== */
.hall-actions {
  display: flex;
  gap: 10px;
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 20px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-detail:hover {
  background: #1d4ed8;
  text-decoration: none;
  color: #fff;
}

.btn-fav {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  background: transparent;
  color: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-fav:hover {
  background: #eff6ff;
}

/* ========================================
   Pagination
======================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: all 0.2s;
}

.pagination a:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
  text-decoration: none;
}

.pagination .current {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.pagination .dots {
  border: none;
  background: transparent;
}

/* ========================================
   Footer
======================================== */
.site-footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 48px 0 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #94a3b8;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

/* ========================================
   Mobile Sidebar Toggle
======================================== */
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: background 0.2s;
}

.sidebar-toggle:hover {
  background: #1d4ed8;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 149;
}

.sidebar-overlay.active {
  display: block;
}

/* ========================================
   Responsive (768px)
======================================== */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .main-layout {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    max-height: 100vh;
    z-index: 150;
    background: #f7fafc;
    padding: 16px;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .hall-card {
    padding: 14px;
  }

  .hall-meta {
    flex-direction: column;
    gap: 6px;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}


/* ========================================
   Fixed Page (固定ページ共通)
======================================== */
.page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}
.page-body {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 32px;
  font-size: 15px;
  line-height: 1.8;
  color: #2d3748;
}
.page-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a202c;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}
.page-body h2:first-child {
  margin-top: 0;
}
.page-body p {
  margin-bottom: 16px;
}
.page-body ul {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style: disc;
}
.page-body ul li {
  margin-bottom: 6px;
}
.page-body a {
  color: #2563eb;
  text-decoration: underline;
}
.page-body a:hover {
  color: #1d4ed8;
}

/* ========================================
   Browse Pages (エリア・ジャンル・収容人数)
======================================== */
.browse-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}
.browse-title {
  font-size: 24px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 8px;
}
.browse-desc {
  font-size: 14px;
  color: #718096;
  margin-bottom: 28px;
}
.browse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.browse-card {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.browse-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
  text-decoration: none;
}
.browse-card-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 6px;
}
.browse-card:hover .browse-card-name {
  color: #2563eb;
}
.browse-card-count {
  font-size: 13px;
  color: #718096;
}
.browse-card-desc {
  font-size: 13px;
  color: #718096;
  margin-top: 4px;
}
.browse-card-capacity {
  padding: 32px 20px;
}

@media (max-width: 768px) {
  .browse-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .browse-grid {
    grid-template-columns: 1fr;
  }
}
