@charset "utf-8";
/* CSS Document */
/* カルーセル外枠 */
[id^="carousel-wrapper"] {
  position: relative;
  width: 100%;
  margin: 50px auto;
  overflow: hidden;
}
.is-edit-mode [id^="carousel-wrapper"] {
  overflow: visible;
}
[id^="carousel-container"] > .aem-Grid {
  width: 100%;
  display: flex;
}
.is-edit-mode [id^="carousel-container"] > .aem-Grid {
  flex-direction: column;
}
[id^="carousel-container"] > .aem-Grid > .container {
  min-width: 100%;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background-color: var(--edu-color);
  padding: 0;
}
[id^="carousel-container"] > .aem-Grid > .container > .switch-container > .cmp-container > .aem-Grid {
  display: flex;
  align-items: center;
}
[id^="carousel-container"] > .aem-Grid > .container > .switch-container > .cmp-container > .aem-Grid > .image {
  width: 60%;
  border-radius: 20px 0 0 20px;
  display: block;
  pointer-events: none; /* スワイプの邪魔をしない */
  user-select: none;
}
[id^="carousel-container"] > .aem-Grid > .container > .switch-container > .cmp-container > .aem-Grid > .text {
  width: 40%;
  height: 100%;
  border-radius: 0 20px 20px 0;
  padding: 20px 60px 20px 20px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: min(3.8vw, 16px);
}
[id^="carousel-container"] > .aem-Grid > .container > .switch-container > .cmp-container > .aem-Grid > .text p {
  line-height: 1.2;
}
[id^="carousel-container"] > .aem-Grid > .container > .switch-container, [id^="carousel-container"] > .aem-Grid > .container > .switch-container > .cmp-container, [id^="carousel-container"] > .aem-Grid > .container > .switch-container > .cmp-container > .aem-Grid {
  height: 100%;
}
/* 操作ボタン */
[id^="carousel-wrapper"] button.carousel-controller {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  transition: background 0.3s;
}
[id^="carousel-wrapper"] button.carousel-controller:hover {
  background: rgba(0, 0, 0, 0.7);
}
.prev {
  left: 10px;
}
.next {
  right: 10px;
}
[id^="carousel-wrapper"] button.carousel-controller .arrow {
  position: relative;
}
[id^="carousel-wrapper"] button.carousel-controller .arrow:before {
  position: absolute;
  top: 50%;
  content: "";
  display: inline-block;
  color: currentColor;
  line-height: 1;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-left: 0;
  border-bottom: 0;
}
.prev .arrow:before {
  left: calc(50% + 2px);
  transform: translate(-50%, -50%) rotate(225deg);
}
.next .arrow:before {
  left: calc(50% - 2px);
  transform: translate(-50%, -50%) rotate(45deg);
}
/* ドットナビゲーション */
.carousel-controller-wrapper {
  display: inline-block;
  width: 100%;
}
.dots-container {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 15px 0;
}
.dot {
  width: 10px;
  aspect-ratio: 1;
  background-color: #ccc;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}
.dot.active {
  background-color: #333;
}
@media (max-width: 1000px) {
  [id^="carousel-container"] > .aem-Grid > .container > .switch-container > .cmp-container > .aem-Grid {
    flex-direction: column;
  }
  [id^="carousel-container"] > .aem-Grid > .container > .switch-container > .cmp-container > .aem-Grid > .image {
    border-radius: 20px 20px 0 0;
    width: 100%;
  }
  [id^="carousel-container"] > .aem-Grid > .container > .switch-container > .cmp-container > .aem-Grid > .text {
    border-radius: 0 0 20px 20px;
    width: 100%;
    padding: 2vw;
    pointer-events: none; /* スワイプの邪魔をしない */
    user-select: none;
    justify-content: center;
  }
  [id^="carousel-wrapper"] button {
    padding: 5px;
    width: 30px;
    height: 30px;
  }
  [id^="carousel-wrapper"] button.carousel-controller {
    top: 30vw;
  }
}