/*
Theme Name: Nippon Studio
Theme URI: https://rehearsal-navi.com
Author: UTACA Inc.
Description: リハスタナビ — リハーサルスタジオ検索ポータルサイト
Version: 2.0.0
Text Domain: nippon-studio
*/

/* ========================================
   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: #ea580c;
  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: #ea580c;
  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: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.search-bar .btn-search {
  height: 40px;
  padding: 0 20px;
  background: #ea580c;
  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: #c2410c;
}

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

.breadcrumb a {
  color: #718096;
}

.breadcrumb a:hover {
  color: #ea580c;
}

.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: #ea580c;
  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: #ea580c;
  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: #ea580c;
  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: #c2410c;
}

.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: #ea580c;
  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;
}

/* ========================================
   Studio Card
======================================== */
.studio-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #ea580c;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.studio-card:hover {
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.15);
  border-color: #fed7aa;
  border-left-color: #c2410c;
}

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

.studio-name {
  font-size: 17px;
  font-weight: 700;
  color: #ea580c;
}

.studio-name a {
  color: inherit;
}

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

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

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

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

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

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

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

.studio-meta-value.price {
  color: #e53e3e;
}

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

.tag-use {
  font-size: 11px;
  font-weight: 500;
  background: #fff7ed;
  color: #c2410c;
  padding: 2px 10px;
  border-radius: 4px;
}

.tag-equipment {
  font-size: 11px;
  font-weight: 500;
  background: #ecfdf5;
  color: #047857;
  padding: 2px 10px;
  border-radius: 4px;
}

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

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

.btn-detail {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 20px;
  background: #ea580c;
  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: #c2410c;
  text-decoration: none;
  color: #fff;
}


/* ========================================
   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: #fff7ed;
  border-color: #ea580c;
  color: #ea580c;
  text-decoration: none;
}

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

.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(5, 1fr);
  gap: 24px;
}

.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;
}

/* ========================================
   Active Filters Bar
======================================== */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}

.active-filters-label {
  font-weight: 700;
  color: #9a3412;
  white-space: nowrap;
}

.filter-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #ea580c;
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.filter-clear-btn {
  display: inline-block;
  padding: 4px 12px;
  background: #fff;
  color: #718096;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.filter-clear-btn:hover {
  background: #f7fafc;
  color: #e53e3e;
  border-color: #e53e3e;
  text-decoration: none;
}

/* ========================================
   Hamburger Menu
======================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.sidebar-toggle:hover {
  background: #c2410c;
}

.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) {
  .hamburger {
    display: flex;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #c2410c;
    flex-direction: column;
    padding: 0;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .header-nav.open {
    display: flex;
  }

  .header-nav a {
    padding: 14px 20px;
    font-size: 15px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .header-nav a:last-child {
    border-bottom: none;
  }

  .header-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .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: 20px;
  }

  .studio-card {
    padding: 16px;
  }

  .studio-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #f8fafc;
    border-radius: 6px;
    padding: 2px;
    margin-bottom: 12px;
  }

  .studio-meta-item {
    background: #fff;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .studio-meta-label {
    font-size: 11px;
    display: block;
  }

  .studio-meta-value {
    font-size: 14px;
    display: block;
  }

  .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: #ea580c;
  text-decoration: underline;
}
.page-body a:hover {
  color: #c2410c;
}

/* ========================================
   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: #ea580c;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 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: #ea580c;
}
.browse-card-count {
  font-size: 13px;
  color: #718096;
}
.browse-card-desc {
  font-size: 13px;
  color: #718096;
  margin-top: 4px;
}
.browse-card-sqm {
  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;
  }
}
