:root {
    --primary-color: #0056b3;
    --primary-color-dark: #004494;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
  }
  
  body {
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
  }
  
 /* Navbar Styles */
.navbar {
    background-color: var(--dark-bg) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
  }
  
  .navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.5rem;
  }
  
  .navbar-nav .nav-link {
    color: rgba(255,255,255,.8) !important;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
  }
  
  .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255,255,255,.1);
  }
  
  .navbar-nav .nav-item.active .nav-link {
    color: var(--accent-color) !important;
    background-color: rgba(255,255,255,.1);
  }
  
  .navbar-nav .nav-item.active .nav-link:hover {
    color: var(--accent-color) !important;
    background-color: rgba(255,255,255,.2);
  }
  
  /* Button Styles */
  .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
  }
  
  /* Card Styles */
  .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    transition: transform 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
  
  .card-title {
    color: var(--primary-color);
    font-weight: 600;
  }
  
  /* Footer Styles */
  .footer {
    background-color: var(--dark-bg);
    color: #ffffff;
    padding: 2rem 0;
    margin: 2rem auto auto;
  }
  
  .footer a {
    color: var(--accent-color);
  }
  
  /* Typography */
  h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
  }
  
  /* Utility Classes */
  .bg-light {
    background-color: var(--light-bg) !important;
  }
  
  .text-primary {
    color: var(--primary-color) !important;
  }
  
  .border-top {
    border-top: 1px solid rgba(0,0,0,.1) !important;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .navbar-brand {
      font-size: 1.2rem;
    }
    
    h1 {
      font-size: 2rem;
    }
    
    h2 {
      font-size: 1.75rem;
    }
  }
  
  /* Accessibility */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  
  /* Focus Styles for Accessibility */
  a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
  }
    /* こだわり条件リストの基本スタイル */
    .kodawari-list {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .kodawari-item {
        padding: 6px 10px;
        margin-bottom: 4px;
        background-color: #f0f0f0;  /* 通常時の控えめな背景色 */
        border-radius: 3px;
    }

    /* 地域リストのスタイル */
    .region-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .region-category {
        width: 100%;
        margin-bottom: 10px;
    }

    .district-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .district-item {
        display: inline-block;
        padding: 8px 12px;
        margin-bottom: 5px;
        background-color: #f0f0f0;
        border-radius: 4px;
        text-decoration: none;
        color: #333;
        transition: background-color 0.2s ease;
    }

    .district-item:hover {
        background-color: #e0e0e0;
    }

    /* こだわり条件リストを横並びにするスタイル */
    .kodawari-container {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .kodawari-item {
        display: inline-block;
        padding: 4px 8px;
        background-color: #f8f9fa;
        border-radius: 4px;
        border: 1px solid #ddd;
    }

    /* 控えめなハイライト */
    .highlight-compact {
        background-color: #d1ecf1;  /* 薄いブルーのハイライト */
        border-color: #0c5460;
    }

    /* トップページのリンクボックス */
.link-box {
    display: block;
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border: 2px solid #007bff;
    border-radius: 10px;
    color: #007bff;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.link-box i {
    margin-bottom: 10px;
}

.link-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.link-box p {
    font-size: 1rem;
}

.link-box:hover {
    background-color: #007bff;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.link-box:hover i {
    color: white;
}

.link-box:hover h3,
.link-box:hover p {
    color: white;
}

/* カードのスタイル */
.card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.card-subtitle a {
  color: #495057;
  font-size: 1.1rem;
  transition: color 0.3s ease-in-out;
}

.card-subtitle a:hover {
  color: #007bff;
  text-decoration: none;
}

.btn-outline-primary, .btn-outline-danger, .btn-primary {
  transition: all 0.3s ease-in-out;
}

.btn-outline-primary:hover, .btn-outline-danger:hover, .btn-primary:hover {
  transform: translateY(-2px);
}

.badge {
  font-size: 0.8rem;
  padding: 0.4em 0.6em;
}

.table-sm th, .table-sm td {
  padding: 0.2rem;
  font-size: 0.9rem;
}

.table-sm th {
  color: #6c757d;
  font-weight: normal;
}

.text-primary {
  font-weight: bold;
}

.info-section {
  position: relative;
  padding: 1rem;
}

.info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
}

.financial-info, .room-info, .location-info {
  background-color: rgba(0, 0, 0, 0.02);
}
/* ポップアップのスタイル */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.popup-content {
  position: relative;
}
.popup-content img {
  max-width: 90%;
  max-height: 90%;
}