@charset "utf-8";
.gallery-container {
  position: relative;
  /* width: 80%; */
  overflow: hidden;
  /* margin-left: 210px; */
}

.gallery {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery img {
  width: 33.33%;
  padding: 10px;
  border-radius: 20px;
}

.nav-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.nav-arrows button {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 10px;
  font-size: 30px;
  cursor: pointer;
}

.nav-circles {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.nav-circles button {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  cursor: pointer;
  /* 追記 */
  padding: 0;
}

.nav-circles .active {
  background-color: #001c57;
}

/* 追記 */
.gallery img {
  width: 33.33%;
  min-width: 33.33%;
  /* 最小幅も指定 */
  max-width: 33.33%;
  /* 最大幅も指定 */
  flex: 0 0 33.33%;
  /* flex-grow, flex-shrink, flex-basis を設定 */
  padding: 10px;
  border-radius: 20px;
  box-sizing: border-box;
  /* paddingを幅に含める */
}

/* ＝＝＝　SP版　＝＝＝ */

  .slide-show {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    /* Adjusted for padding */
    margin: auto;
    overflow: hidden;
    margin-left: 10px;
    margin-right: 10px;
  }

  .slide-show-item {
    position: relative;
    width: 100%;
    height: 200px;
    padding-bottom: 10px;
    /* Space between images */
    border-radius: 15px;
    /* Rounded corners */
    overflow: hidden;
    /* To ensure corners are rounded */
    transition: height 0.5s ease, border 0.5s ease;
  }

  .slide-show-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    /* Rounded corners for images */
  }

  .slide-show-item.collapsed {
    display: none;
  }

  .slide-show-item.half-height {
    height: 150px;
    /* Show only half of the second image initially */
  }

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.5),
      rgba(255, 255, 255, 1)
    );
    pointer-events: none;
  }

  .accordion-nav {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    margin-top: -40px;
    margin-left: 105px;
  }

  .accordion-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #008cd3;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
  }

  .accordion-button::before {
    content: "▲";
    /* Down arrow */
  }

  .accordion-button.collapsed::before {
    content: "▼";
    /* Up arrow */
  }

  .gallery-header-sp {
    text-align: center;
    color: #008cd3;
    margin-bottom: 20px;
  }

  p.gal-header-sp {
    font-size: 30px;
    text-align: center;
    font-weight: 600;
  }

  p.gal-sub-sp {
    font-size: 15px;
    text-align: center;
    font-weight: 600;
  }
