/* Base styles for single-brands template */
.single-brands-html,
body.single-brands {
  width: 100%;
  margin: 0;
  padding: 0;
  /* overflow-x: hidden; */
}

/* Brand name styling - 完全に同じスタイルにする */
.brands-name-single,
.brands-name-single-und {
  text-align: center;
  position: absolute;
}
.brands-name-single {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.brands-name-single-und {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.shop-name-single {
  font-size: 5em;
  margin: 0;
  line-height: 1.2;
  /* color: #8bb9ea; */
}

.shop-subtitle-single {
  font-size: 1.6em;
  margin: 0 0 0.5em 0;
  /* color: #8bb9ea; */
}

.shop-gallery {
  z-index: 10;
  margin: 0 auto;
  width: 780px;
}

.shop-gallery-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1%;
}
.shop-gallery-block li {
  flex-basis: 24.25%;
}

/* .shop-gallery-block li {
    flex-basis: 49.25%;
} */

.shop-gallery-block a {
  
}
.shop-gallery-block img {
  object-fit: cover;
  width: 190px;
  height: 190px;
}

.brands-name-single-und p, .brands-name-single-und h1 {
  /* color: #8bb9ea;  */
  color: #00216f
}

/* Background image section */
.brands-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  width: 98%;
  left: 1%;
  top: 2.5%;
  border-radius: 20px;
  transition: all 0.3s ease;
}

/* Text sections for midnight.js */
.brands-text {
  width: 100%;
  height: 100vh; /* Match viewport height */
}

/* Text color states for midnight.js */
.top {
  color: #ffffff;
}

.out {
  color: #00216f;
}
.top_return {
  z-index: 9999;
  position: relative;
  display: flex;
  justify-content: center;
}
.top_return a {
  background: #b9b9b9;
  padding: 10px;
  border-radius: 8px;
}

/* Moving text container */
.fixed-text {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  height: 100vh;
  /* ポジショニングコンテキストを作成 */
  position: relative;
}

/* Static text that appears in place */
.fixed-text-static {
  position: relative;
  z-index: 9;
  margin-top: -100vh;
  /* height: 24vh; */
  height: 15em;
  width: 100%;
  position: relative;
}

/* Midnight.js inner container */
.midnightInner {
  height: 100%;
  width: 100%;
  position: relative;
}

/* Container for content following the header section */
.brand-content-container {
  position: relative;
  z-index: 20;
  background-color: #ffffff;
  padding-top: 2em;
  width: 780px;
}

/* Responsive adjustments */
@media (max-width: 48em) {
  .shop-gallery-block img {
    flex-basis: 49.25%;
  }
  .brand-content-container, .shop-gallery {
    width: 95%;
  }
  .shop-name-single {
    font-size: 3em;
  }
  
  .shop-subtitle-single {
    font-size: 1.2em;
  }


  
}







