/*
Theme Name: レンスペ本舗
Theme URI:
Description: レンタルスペースポータルサイト「レンスペ本舗」のカスタムテーマ
Version: 1.0.0
Author: レンスペ本舗
Text Domain: rentalspace
*/

/* ==========================================
   Animations
   ========================================== */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-fade {
  opacity: 0;
  animation: heroFadeUp 0.8s ease forwards;
}

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

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #2a2a2a;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ==========================================
   Layout
   ========================================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 48px 0;
}

.section-gray {
  background: #f6f5f3;
}

.brand-section {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 0;
}

.brand-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #888;
  margin-bottom: 16px;
}

.brand-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.brand-desc {
  font-size: 15px;
  line-height: 2;
  color: #555;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 32px;
}

.section-more {
  text-align: center;
  margin-top: 32px;
}

.section-more-btn {
  display: inline-block;
  padding: 12px 40px;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  transition: all 0.2s;
}

.section-more-btn:hover {
  background: #1a1a1a;
  color: #fff;
}

/* ==========================================
   Header
   ========================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #eee;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.logo-mark {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
}

.logo-text {
  font-size: 16px;
  color: #1a1a1a;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  color: #888;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #1a1a1a;
}

/* ==========================================
   Hero
   ========================================== */
.hero {
  padding: 180px 0 160px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
}

.hero-cell {
  position: relative;
  overflow: hidden;
}

.hero-rotate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-rotate.active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.hero-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  line-height: 1.55;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-lead {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 48px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   Space Cards
   ========================================== */
.space-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.space-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eeece8;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.space-card:hover {
  border-color: #ddd;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.space-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f0eeeb;
}

.space-info {
  padding: 14px 12px;
}

.space-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #2a2a2a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.space-station {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 10px;
}

.space-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.space-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: #888;
  background: #f3f2ef;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.01em;
}

.space-label-category {
  color: #fff;
  background: #6b8e6b;
}

/* ==========================================
   Area List
   ========================================== */
.area-list {
  background: #fff;
  border: 1px solid #e8e6e3;
  border-radius: 10px;
  padding: 8px 24px;
}

.area-row {
  display: flex;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid #f0eeeb;
}

.area-row:last-child {
  border-bottom: none;
}

.area-region {
  flex-shrink: 0;
  width: 120px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

.area-prefs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.area-pref {
  font-size: 13px;
  color: #666;
  transition: color 0.2s;
}

.area-pref:hover {
  color: #1a1a1a;
}

.area-count {
  font-size: 11px;
  color: #aaa;
  margin-left: 2px;
}

/* ==========================================
   Category Grid
   ========================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.category-image {
  width: 100%;
  height: 100%;
}

.category-image img {
  transition: transform 0.4s;
}

.category-card:hover .category-image img {
  transform: scale(1.06);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 60%);
  pointer-events: none;
}

.category-name {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 1;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

/* ==========================================
   Purpose Grid
   ========================================== */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.purpose-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.purpose-item:hover {
  background: #f6f5f3;
  border-color: #e8e6e3;
}

.purpose-icon {
  width: 36px;
  height: 36px;
  color: #888;
}

.purpose-icon svg {
  width: 100%;
  height: 100%;
}

.purpose-label {
  font-size: 11px;
  font-weight: 400;
  color: #777;
  white-space: nowrap;
}

/* ==========================================
   Article Cards
   ========================================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eeece8;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
  border-color: #ddd;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.article-image {
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: #f0eeeb;
}

.article-info {
  padding: 16px;
}

.article-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.article-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: #2a2a2a;
}

/* ==========================================
   Carousel
   ========================================== */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex !important;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track > * {
  flex: 0 0 calc((100% - 60px) / 4);
  scroll-snap-align: start;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e0ddd8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
  opacity: 0;
}

.carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

/* ==========================================
   CTA
   ========================================== */
.cta-card-full {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-card {
  background: #f6f5f3;
  border: 1px solid #e8e6e3;
  border-radius: 12px;
  padding: 48px 32px;
}

.cta-content {
  max-width: 400px;
  margin: 0 auto;
}

.cta-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.cta-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
  line-height: 1.8;
}

.cta-btn {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  transition: all 0.2s;
}

.cta-btn:hover {
  background: #1a1a1a;
  color: #fff;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background: #1a1a1a;
  color: #999;
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo .logo-mark,
.footer-logo .logo-text {
  color: #fff;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-link {
  font-size: 13px;
  color: #666;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
}

.footer-copy {
  font-size: 11px;
  color: #555;
}

/* ==========================================
   Article Content (detail page)
   ========================================== */
.article-content {
  padding: 48px 0;
}

.article-content-inner {
  max-width: 780px;
  margin: 0 auto;
}

.article-content-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.article-meta {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 32px;
}

.article-hero-image {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
  aspect-ratio: 2 / 1;
  background: #f0eeeb;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0eeeb;
}

.article-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 28px 0 12px;
}

.article-body p {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 20px;
}

.article-body blockquote {
  border-left: 3px solid #6b8e6b;
  padding: 12px 20px;
  margin: 24px 0;
  background: #f9f8f6;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

/* ==========================================
   Inline Space Card (article embed)
   ========================================== */
.inline-space-card {
  display: flex;
  gap: 20px;
  padding: 16px;
  border: 1px solid #eeece8;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.inline-space-card:hover {
  border-color: #ddd;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.inline-space-image {
  flex-shrink: 0;
  width: 200px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #f0eeeb;
}

.inline-space-info {
  flex: 1;
  min-width: 0;
}

.inline-space-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.7;
  margin-top: 10px;
}

/* ==========================================
   Article Grid (3-column fixed)
   ========================================== */
.article-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ==========================================
   Page Header & Breadcrumb
   ========================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #aaa;
  padding: 16px 0;
}

.breadcrumb a {
  color: #888;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #1a1a1a;
}

.breadcrumb-sep {
  font-size: 10px;
  color: #ccc;
}

/* ==========================================
   Filter Bar
   ========================================== */
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  background: #fff;
  border: 1px solid #eeece8;
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-bar-field {
  flex: 1 1 0;
  min-width: 120px;
}

.filter-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.filter-input,
.filter-select {
  width: 100%;
  font-size: 13px;
  color: #2a2a2a;
  padding: 10px 12px;
  border: 1px solid #e0ddd8;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s;
}

.filter-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}

.filter-input:focus,
.filter-select:focus {
  border-color: #1a1a1a;
  outline: none;
}

.filter-input::placeholder {
  color: #c0bdb8;
}

.filter-bar-field-checkbox {
  flex: 2 1 0;
  min-width: 200px;
}

.filter-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
}

.filter-checkbox input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #1a1a1a;
  cursor: pointer;
}

.filter-bar .filter-btn {
  flex: 0 0 auto;
  width: auto;
  padding: 10px 32px;
  white-space: nowrap;
}

.filter-btn {
  width: 100%;
  padding: 11px;
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}

.filter-btn:hover {
  background: #333;
}

/* ==========================================
   Sort Bar
   ========================================== */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 13px;
}

.sort-bar .page-count {
  margin-right: auto;
}

.page-count {
  font-size: 13px;
  color: #999;
}

.sort-label {
  color: #999;
  font-size: 12px;
}

.sort-link {
  color: #999;
  transition: color 0.2s;
  padding-bottom: 2px;
}

.sort-link:hover {
  color: #1a1a1a;
}

.sort-link.active {
  color: #1a1a1a;
  font-weight: 600;
  border-bottom: 2px solid #1a1a1a;
}

/* ==========================================
   List Grid
   ========================================== */
.list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.list-content {
  padding-bottom: 64px;
}

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

.pagination-item,
.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px;
  color: #666;
  transition: all 0.2s;
}

.pagination-item:hover,
.page-numbers:hover {
  background: #f0eeeb;
  color: #1a1a1a;
}

.pagination-item.active,
.page-numbers.current {
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
}

.pagination-dots {
  font-size: 13px;
  color: #ccc;
  padding: 0 4px;
}

/* ==========================================
   Tag Filter
   ========================================== */
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tag-filter-btn {
  display: inline-block;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  background: #fff;
  border: 1px solid #e0ddd8;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-filter-btn:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.tag-filter-btn.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* ==========================================
   Detail Top (Gallery + Overview)
   ========================================== */
.detail-top {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 24px 0 0;
}

.detail-top-gallery {
  flex: 1 1 58%;
  min-width: 0;
}

.detail-top-overview {
  flex: 1 1 42%;
  min-width: 0;
  padding-top: 4px;
}

.detail-overview-desc {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.detail-hp-link {
  margin-top: 24px;
}

/* ==========================================
   Detail Body
   ========================================== */
.detail-body {
  padding: 0 0 64px;
}

/* ==========================================
   Photo Gallery
   ========================================== */
.gallery-main {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  max-height: 360px;
  background: #f0eeeb;
  margin-bottom: 8px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-thumb {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0eeeb;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
}

/* ==========================================
   Detail Content
   ========================================== */
.detail-header {
  padding: 24px 0;
  border-bottom: 1px solid #eee;
}

.detail-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.detail-station {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 12px;
}

.detail-section {
  padding: 28px 0;
  border-bottom: 1px solid #eee;
}

.detail-section:last-child {
  border-bottom: none;
}

.detail-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.detail-desc {
  font-size: 14px;
  line-height: 1.9;
  color: #555;
}

.detail-address {
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
}

/* ==========================================
   Booking Sidebar
   ========================================== */
.booking-card {
  background: #fff;
  border: 1px solid #e8e6e3;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
  margin-bottom: 10px;
  border: none;
}

.btn-primary:hover {
  background: #333;
}

.btn-outline {
  display: block;
  width: 100%;
  padding: 14px;
  background: #fff;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-outline:hover {
  background: #f6f5f3;
  border-color: #ccc;
}

/* ==========================================
   Article Detail
   ========================================== */
.article-detail-header {
  padding: 48px 0 32px;
  text-align: center;
}

.article-detail-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  padding: 3px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.article-detail-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.6;
  margin-bottom: 12px;
}

.article-detail-meta {
  font-size: 12px;
  color: #aaa;
}

.article-detail-hero {
  aspect-ratio: 21 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #f0eeeb;
  margin-bottom: 40px;
}

.article-detail-body {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.article-detail-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0eeeb;
}

.article-detail-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 28px 0 12px;
}

.article-detail-body p {
  font-size: 15px;
  line-height: 2;
  color: #444;
  margin-bottom: 20px;
}

.article-detail-body blockquote {
  border-left: 3px solid #6b8e6b;
  padding: 12px 20px;
  margin: 24px 0;
  background: #f9f8f6;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

/* ==========================================
   Fixed CTA
   ========================================== */
.fixed-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fixed-cta-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.fixed-cta-search {
  background: #1a1a1a;
  color: #fff;
}

.fixed-cta-search:hover {
  background: #333;
}

.fixed-cta-reserve {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #e0ddd8;
}

.fixed-cta-reserve:hover {
  background: #f6f5f3;
  border-color: #ccc;
}

/* ==========================================
   Search Modal
   ========================================== */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.search-modal-bar {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.search-modal.active .search-modal-bar {
  transform: translateY(0);
}

.search-modal-bar .filter-bar-field {
  flex: none;
  width: 100%;
}

.search-modal-bar .filter-btn {
  width: 100%;
  margin-top: 8px;
}

.search-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 2px;
  cursor: pointer;
  color: #888;
  z-index: 2;
  transition: color 0.2s, background 0.2s;
}

.search-modal-close:hover {
  color: #1a1a1a;
  background: #f6f5f3;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
  .carousel-track > * {
    flex: 0 0 calc((100% - 40px) / 3);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .purpose-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .list-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .header-inner {
    height: 56px;
    gap: 16px;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  .hero-cell:nth-child(n+5) {
    display: none;
  }

  .hero-title {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .hero-lead {
    margin-bottom: 36px;
  }

  .filter-bar-field {
    flex: 1 1 calc(50% - 8px);
    min-width: 100px;
  }

  .filter-bar .filter-btn {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .carousel-track > * {
    flex: 0 0 calc((100% - 20px) / 2);
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    opacity: 1;
  }

  .purpose-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .detail-top {
    flex-direction: column;
    gap: 20px;
  }

  .detail-top-gallery,
  .detail-top-overview {
    flex: none;
    width: 100%;
  }

  .article-detail-title {
    font-size: 20px;
  }

  .list-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .article-grid,
  .article-grid-3col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article-content-title {
    font-size: 22px;
  }

  .inline-space-card {
    flex-direction: column;
    gap: 12px;
  }

  .inline-space-image {
    width: 100%;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 16px;
    text-align: center;
  }

  .fixed-cta {
    bottom: 16px;
    right: 16px;
    left: 16px;
    flex-direction: row;
  }

  .fixed-cta-btn {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .carousel-track > * {
    flex: 0 0 calc(100% - 20px);
  }

  .purpose-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .list-grid {
    grid-template-columns: 1fr;
  }
}
