/* カスタムBootstrap CSS - 必要な部分のみ */
/* 使用頻度の高いBootstrapクラスのみを定義 */

/* グリッドシステム */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-sm-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 15px;
  padding-left: 15px;
}

/* ナビゲーション */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background-color: #fff !important;
}

/* ナビゲーション内の要素の背景色を適切に設定 */
.navbar .btn {
  /* デフォルトのボタン背景色は透明 */
}

.navbar .btn.btn-dark {
  background-color: #343a40 !important;
  border-color: #343a40 !important;
  color: #fff !important;
}

.navbar .btn.btn-dark:hover {
  background-color: #23272b !important;
  border-color: #1d2124 !important;
  color: #fff !important;
}

.navbar .form-control {
  background-color: #fff !important;
}

.navbar .navbar-brand {
  background-color: transparent !important;
}

.navbar .navbar-nav {
  background-color: transparent !important;
}

.navbar .nav-item {
  background-color: transparent !important;
}

.navbar .nav-link {
  background-color: transparent !important;
}

.navbar .bd-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ナビゲーション内の.bd-highlightクラスの影響のみを除去 */
.navbar .bd-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ナビゲーション内の必要なボーダーは保持 */
.navbar .form-control {
  border: 1px solid #ced4da !important;
  margin-right: 0.25rem !important;
  height: calc(1.5em + 0.75rem + 2px) !important;
  padding: 0.375rem 0.75rem !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.navbar .btn {
  border: 1px solid transparent !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: calc(1.5em + 0.75rem + 2px) !important;
  padding: 0.375rem 0.75rem !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  margin-left: 0 !important;
}

/* ナビゲーションの境界線は保持 */
.navbar {
  border-bottom: 1px solid #dee2e6 !important;
}

/* ナビゲーション内の要素間の適切な間隔 */
.navbar .navbar-nav {
  margin-left: 1rem !important;
}

.navbar .navbar-nav .nav-item {
  margin-right: 0.5rem !important;
}

/* 検索ボックスと検索ボタンの密接な配置 */
.navbar .form-control + .btn {
  margin-left: 0.125rem !important;
}

/* 検索要素のコンテナ */
.navbar .d-flex {
  align-items: center !important;
  gap: 0.125rem !important;
}

/* ラジオボタンとテキストの間隔を詰める */
.navbar input[type="radio"] {
  margin-right: 0.25rem !important;
  margin-left: 0 !important;
}

.navbar label {
  margin-bottom: 0 !important;
  padding-left: 0.25rem !important;
}

/* ナビゲーション内の全体的な間隔を詰める */
.navbar .navbar-nav .nav-item {
  margin-right: 0.25rem !important;
}

.navbar .navbar-nav {
  margin-left: 0.5rem !important;
  margin-right: 0.5rem !important;
}

/* ナビゲーション内の要素をセンター配置 */
.navbar .navbar-brand {
  margin-right: 1rem !important;
}

.navbar .d-flex {
  margin-left: 0.5rem !important;
  margin-right: 0.5rem !important;
}

/* ナビゲーション内の要素の配置を適切に設定 */
.navbar .navbar-brand {
  margin-right: 1rem !important;
  margin-left: 0 !important;
}

.navbar .form-control {
  margin-left: 0 !important;
  margin-right: 0.125rem !important;
}

.navbar .btn {
  margin-left: 0.125rem !important;
  margin-right: 0 !important;
}

/* ナビゲーション内の要素をセンター配置 */
.navbar .navbar-nav {
  margin-left: 0.5rem !important;
  margin-right: 0.5rem !important;
}

.navbar .d-flex {
  margin-left: 0.5rem !important;
  margin-right: 0.5rem !important;
}

/* ナビゲーション内の要素の表示を適切に設定 */
.navbar .btn {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-color: transparent !important;
}

.navbar .btn.btn-dark {
  background-color: #343a40 !important;
  border-color: #343a40 !important;
  color: #fff !important;
}

.navbar .form-control {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.navbar .navbar-brand {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.navbar .navbar-nav {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.navbar .nav-item {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.navbar .nav-link {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.navbar-expand-lg {
  flex-flow: row nowrap;
  justify-content: flex-start;
}

.navbar-light {
  background-color: #fff;
}

.navbar-brand {
  display: inline-block;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  line-height: inherit;
  white-space: nowrap;
}

.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  content: "";
  background: no-repeat center center;
  background-size: 100% 100%;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.collapse {
  display: none;
}

.collapse.show {
  display: block;
}

/* ボタン */
.btn {
  display: inline-block;
  font-weight: 400;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  text-decoration: none;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.btn:hover {
  text-decoration: none;
}

.btn-dark {
  color: #fff;
  background-color: #343a40;
  border-color: #343a40;
}

.btn-dark:hover {
  color: #fff;
  background-color: #23272b;
  border-color: #1d2124;
}

.btn-outline-primary {
  color: #007bff;
  border-color: #007bff;
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

/* フォーム */
.form-control {
  display: block;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* ユーティリティクラス */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.d-inline {
  display: inline !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-md-flex {
  display: flex !important;
}

.d-sm-block {
  display: block !important;
}

.d-xs-inline {
  display: inline !important;
}

.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.text-uppercase {
  text-transform: uppercase !important;
}

.text-light {
  color: #f8f9fa !important;
}

.text-dark {
  color: #343a40 !important;
}

.text-secondary {
  color: #6c757d !important;
}

.text-primary {
  color: #007bff !important;
}

.bg-white {
  background-color: #fff !important;
}

.bg-dark {
  background-color: #343a40 !important;
}

.border-bottom {
  border-bottom: 1px solid #dee2e6 !important;
}

.shadow {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.rounded {
  border-radius: 0.25rem !important;
}

/* マージン・パディング */
.p-0 {
  padding: 0 !important;
}

.p-3 {
  padding: 1rem !important;
}

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.m-0 {
  margin: 0 !important;
}

.mx-3 {
  margin-left: 1rem !important;
  margin-right: 1rem !important;
}

.ml-3 {
  margin-left: 1rem !important;
}

.mr-3 {
  margin-right: 1rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

/* フレックスボックス */
.flex-grow-1 {
  flex-grow: 1 !important;
}

.flex-row {
  flex-direction: row !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-md-row {
  flex-direction: row !important;
}

.flex-sm-column {
  flex-direction: column !important;
}

.justify-content-center {
  justify-content: center !important;
}

.align-items-center {
  align-items: center !important;
}

/* レスポンシブ */
@media (min-width: 576px) {
  .d-sm-block {
    display: block !important;
  }
}

@media (min-width: 768px) {
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .d-md-flex {
    display: flex !important;
  }

  .text-md-center {
    text-align: center !important;
  }

  .flex-md-row {
    flex-direction: row !important;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* その他のユーティリティ */
.w-100 {
  width: 100% !important;
}

.small {
  font-size: 0.875em;
}

.font-weight-bold {
  font-weight: 700 !important;
}

.bd-highlight {
  /* 背景色とボーダーを削除してナビゲーションの背景色に影響しないようにする */
  /* 完全に無効化 */
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* アニメーション */
.animate-in-down {
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
