/* Comment layout override - force vertical stacking with stronger specificity */
.comments-stack .comment-bubble .popover-body,
div[class*=comment-content-] {
  display: block !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 0 !important;
}

.comments-stack .comment-bubble .comment-text,
div[class*=comment-content-] .comment-text {
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  width: 100% !important;
  margin-bottom: 2px !important;
  flex: none !important;
  display: block !important;
}

.comments-stack .comment-bubble .comment-meta,
div[class*=comment-content-] .comment-meta {
  width: 100% !important;
  text-align: right !important;
  flex-shrink: none !important;
  flex: none !important;
  margin-top: 2px !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

/* Additional Japanese font optimization */
html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Yu Gothic", YuGothic, "Meiryo", sans-serif;
}

/* Sticky footer layout */
body {
  display: flex;
  flex-direction: column;
}

.main-content-wrapper {
  flex: 1;
  display: flex;
}

main {
  flex: 1;
}

/* Modern Bootstrap 5 enhancements */
.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: rgba(13, 110, 253, 0.1);
  transform: translateX(2px);
  transition: all 0.2s ease;
}

.card {
  transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Enhanced search input */
.input-group .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  border-color: #86b7fe;
}

.input-group-text {
  transition: all 0.15s ease-in-out;
}

.input-group .form-control:focus + .input-group-text,
.input-group-text:has(+ .form-control:focus) {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Improved sidebar shadow */
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Footer improvements */
footer a:hover {
  color: var(--bs-primary) !important;
  transition: color 0.15s ease-in-out;
}

/* Chapter navigation and highlighting */
.btn-toggle-nav .chapter-link.active {
  background-color: rgba(108, 117, 125, 0.25) !important;
}

/* Mobile responsiveness */
@media (max-width: 991.98px) {
  .main-content-wrapper {
    flex-direction: column;
  }
  .main-content {
    width: 100% !important;
  }
  /* Mobile header styling */
  .mobile-header {
    position: relative;
    z-index: 100;
  }
  /* Tablet font size adjustments */
  body {
    font-size: 1.05rem !important;
  }
  .word-content {
    font-size: 1.1rem;
    line-height: 1.65;
  }
}
/* Desktop layout */
@media (min-width: 992px) {
  .main-content {
    width: calc(100% - 280px);
  }
}
/* Improved mobile offcanvas */
.offcanvas-start {
  width: 280px;
}

/* Mobile padding adjustments */
@media (max-width: 575.98px) {
  .container-fluid {
    padding: 1rem !important;
  }
  .card-body {
    padding: 1.5rem !important;
  }
  /* Larger font size for mobile readability */
  body {
    font-size: 1.1rem !important;
  }
  .word-content {
    font-size: 1.15rem;
    line-height: 1.7;
  }
  /* Ensure headers are proportionally larger */
  h1, .h1 {
    font-size: 2rem !important;
  }
  h2, .h2 {
    font-size: 1.75rem !important;
  }
  h3, .h3 {
    font-size: 1.5rem !important;
  }
  /* Increase button text size for better tap targets */
  .btn {
    font-size: 1rem !important;
    padding: 0.5rem 1rem !important;
  }
  /* Increase form control text size */
  .form-control, .form-select {
    font-size: 1.1rem !important;
  }
  /* Sidebar text adjustments */
  .offcanvas-body {
    font-size: 1rem !important;
  }
}
/* Logo styling */
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
}

/* Full-width logo styling */
.brand-logo-full {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-logo-full:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* Fallback text styling when logo is not available */
.brand-text-fallback {
  padding: 1rem;
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.brand-text-fallback:hover {
  transform: scale(1.02);
}

.brand-text-fallback span {
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Bootstrap 5.3 Collapsible Sidebar - Exact Copy from Bootstrap Examples */
.btn-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.65);
  background-color: transparent;
  border: 0;
}

.btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(0, 0, 0, 0.85);
  background-color: #d2f4ea;
}

.btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform 0.35s ease;
  transform-origin: 0.5em 50%;
}

.btn-toggle[aria-expanded=true] {
  color: rgba(0, 0, 0, 0.85);
}

.btn-toggle[aria-expanded=true]::before {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  display: block;
  padding: 0.1875rem 0.5rem;
  margin-top: 0.125rem;
  margin-left: 1.25rem;
  text-decoration: none;
}

.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: rgba(108, 117, 125, 0.1);
}

:root {
  --sanity-check: 1 ;
}

/*# sourceMappingURL=/assets/application-c84ec6c5.css.map */
