/* Home page */

.container > .row:first-child {
  margin-top: 0.5rem;
}

#carouselExampleIndicators {
  overflow: hidden;
  border-radius: var(--hu-radius);
  background: #111;
  box-shadow: var(--hu-shadow);
}

#carouselExampleIndicators .carousel-inner,
#carouselExampleIndicators .carousel-item {
  background: #111;
}

#carouselExampleIndicators img,
#carouselExampleIndicators video {
  display: block;
  width: 100%;
  height: auto;
}

.carousel-control-prev,
.carousel-control-next {
  width: 9%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 1rem;
  border-radius: 999px;
  background-color: rgba(16, 18, 22, 0.72);
  background-size: 54%;
}

.carousel-indicators {
  list-style: none;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0;
}

.carousel-indicators li {
  text-indent: -9999px;
  width: 2rem;
  height: 0.25rem;
  border: 0;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.56);
  opacity: 1;
}

.carousel-indicators .active {
  background-color: var(--hu-accent);
}

.home-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.home-nav-grid > a {
  display: block;
  overflow: hidden;
  min-height: 76px;
  border: 1px solid rgba(79, 137, 170, 0.18);
  border-radius: var(--hu-radius);
  background: var(--HUB);
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.08);
}

.home-nav-grid > a:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(55, 167, 216, 0.34);
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.13);
}

.home-button {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 76px;
  padding: 0.9rem;
  object-fit: contain;
  background: var(--HUB);
  border-radius: 0;
}

.home-feature-banner .img-fluid {
  border-radius: var(--hu-radius);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

h2.mt-4 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem !important;
  color: var(--hu-ink);
}

h2.mt-4::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hu-line);
}

section[style*="overflow-y"] {
  height: clamp(11rem, 24vw, 15rem) !important;
  padding: 0.25rem 0.15rem;
  border: 1px solid var(--hu-line);
  border-radius: var(--hu-radius);
  background: var(--hu-panel);
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.07);
  scrollbar-width: thin;
}

section[style*="overflow-y"] ul {
  margin: 0;
  padding: 0.7rem 1rem !important;
}

section[style*="overflow-y"] li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  color: var(--hu-muted);
  font-size: 0.9rem !important;
  line-height: 1.55;
}

section[style*="overflow-y"] li:last-child {
  border-bottom: 0;
}

section[style*="overflow-y"] a {
  font-weight: 800;
  text-decoration: none;
}

.ratio {
  overflow: hidden;
  border-radius: var(--hu-radius);
  background: #111;
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.08);
}

.small.mb-3 {
  color: var(--hu-muted);
  font-weight: 700;
}

.blog_head_line_block {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--hu-radius);
  background: var(--hu-panel);
  padding: 0.8rem;
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.07);
}

.blog_head_line_block:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(55, 167, 216, 0.34);
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.12);
}

.blog_top_image {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: var(--hu-radius);
}

.blog_head_line_block h2,
h2.media-heading {
  font-size: 1rem;
  margin: 0;
  padding: 0 0 0.35rem !important;
  line-height: 1.45;
}

.media-body > p.honbun,
p.honbun {
  color: #3f4754 !important;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0;
  padding: 0 !important;
}

p.hizuke,
.hizuke {
  color: var(--hu-muted) !important;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.embedsocial-hashtag {
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden;
}

.modal-content {
  border: 0;
  border-radius: var(--hu-radius);
  box-shadow: var(--hu-shadow);
}

.modal-header {
  border-bottom: 1px solid var(--hu-line);
}

.modal-footer {
  border-top: 1px solid var(--hu-line);
}

@media (min-width: 768px) {
  .home-nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .row.pt-4 {
    --bs-gutter-x: 2rem;
  }
}

@media (max-width: 767.98px) {
  .col-md-12.pt-4 {
    padding-top: 0.75rem !important;
  }

  .home-nav-grid {
    gap: 0.6rem;
  }

  .home-nav-grid > a,
  .home-button {
    min-height: 64px;
  }

  .blog_head_line_block .d-flex {
    gap: 0.8rem !important;
  }

  .blog_top_image {
    width: 88px;
    height: 88px;
  }

  .media-body > p.honbun,
  p.honbun {
    font-size: 0.82rem;
  }
}
