.embla-output {
  position: relative;
  margin: auto;
  --slide-spacing: 24px;
  --slide-size: 1200px; /* PCは3枚均等 */
  --button-size: 6.4rem;
  width: 100%;
}

@media (width < 769px) {
  .embla-output {
    --slide-spacing: 12px;
    --slide-size: 89.3333333%; /* 1.3枚表示 (=100/1.3) */
    width: 100vw;
    /* margin-inline: calc(50% - 50vw); */
  }
}

.embla-output__viewport {
  /* overflow: hidden; */
  position: relative;
  width: 100%;
  /* max-width: 1200px; */
  margin-inline: auto;
}

.embla-output__container {
  display: flex;
  touch-action: pan-y pinch-zoom;
  margin-left: calc(var(--slide-spacing) * -1);
  /* gap: var(--slide-spacing); */
}

.embla-output__slide {
  flex: 0 0 var(--slide-size);
  min-width: 0;
  padding-left: var(--slide-spacing);
  display: flex;
}

.embla-output__slide-container {
  border-radius: 15px;
  border: 2px solid #FFF;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 3.75px 13.125px 0 rgba(126, 159, 210, 0.16);
  padding: 40px;
  margin-inline: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (width < 769px) {
  .embla-output__slide-container {
    display: grid;
    grid-template-rows: 1fr auto;
    border-radius: 8px;
    padding: 24px 16px 16px;
  }
}

.embla-output__slide-img {
  width: 100%;
  aspect-ratio: 1120 / 467;
  max-width: 1200px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

@media (width < 769px) {
  .embla-output__slide-img {
    aspect-ratio: 101 / 106;
    background-position: top;
  }
}

.card01 {
  background-image: url("../../img/output/output_card01.png");
}

@media (width < 769px) {
  .card01 {
    background-image: url("../../img/output/output_card01-sp.png");
  }
}

.card02 {
  background-image: url("../../img/output/output_card02.png");
}

@media (width < 769px) {
  .card02 {
    background-image: url("../../img/output/output_card02-sp.png");
  }
}

.card03 {
  background-image: url("../../img/output/output_card03.gif");
}

/* @media (width < 769px) {
  .card03 {
    background-image: url("../../img/output/output_card03-sp.png");
  }
} */

.card04 {
  background-image: url("../../img/output/output_card04.gif");
}

@media (width < 769px) {
  .card04 {
    background-image: url("../../img/output/output_card04-sp.png");
  }
}

.embla-output__contents {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (width < 769px) {
  .embla-output__contents {
    gap: 16px;
    justify-content: space-between;
  }
}

.embla-output__contents-title {
  font-size: 22px;
  font-weight: bold;
  line-height: 20px;
  height: 22px;
  text-align: center;

  .sp_only {
    display: none;
  }
}

@media (width < 769px) {
  .embla-output__contents-title {
    font-size: 18px;
    line-height: initial;
    height: initial;

    .sp_only {
      display: block;
    }
  }
}

.embla-output__example {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.embla-output__example-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

@media (width < 769px) {
  .embla-output__example-flex {
    gap: 3px;

    .embla-output__example {
      flex-direction: column;
      gap: 10px;
      align-items: center;
      justify-content: center;

      .embla-output__example-title {
        width: 100%;
      }

      .embla-output__example-tools {
        line-height: initial;
        height: initial;
      }
    }

    .embla-output__multiplication {
      font-size: 1rem;
      font-weight: bold;
    }
  }
}

.embla-output__multiplication {
  font-size: 1.6rem;
  font-weight: 400;
  color: #576379;
}

.embla-output__example-title {
  font-size: 1.4rem;
  font-weight: 500;
  height: 25px;
  line-height: 25px;
  background-color: #576379;
  color: #ffffff;
  padding-inline: 22.5px;
}

@media (width < 769px) {
  .embla-output__example-title {
    font-size: 1rem;
    height: 19px;
    line-height: 17px;
    background-color: #576379;
    color: #ffffff;
    padding-inline: 12px;
    min-width: 135px;
    text-align: center;
  }
}

.embla-output__example-tools {
  font-size: 1.4rem;
  font-weight: 400;
  color: #576379;
  line-height: 25px;
  height: 25px;
}

@media (width < 769px) {
  .embla-output__example-tools {
    font-size: 1rem;
    line-height: 19px;
    height: 19px;
  }
}

.embla-output__slide__number {
  border-radius: 12px;
  background: linear-gradient(0deg, #fff 0%, #fff 100%), #f0f5f9;
  border: 1px solid var(--Dify-border-gray, #e5e5e5);
  display: grid;
  justify-items: center;
  grid-template-rows: auto 1fr;
  gap: 16px;
  padding: 20px;
}

.embla-output__slide__number img {
  width: 175px;
}

.embla-output__slide__number .context {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 15px;
}

.embla-output__slide__number .context .profile {
  text-align: center;
}

.embla-output__slide__number .context .profile .name {
  color: var(--color-black-90);
  font-size: 20px;
  font-weight: bold;
  line-height: 1.6;
}

.embla-output__slide__number .context .profile .position {
  font-size: 12px;
  line-height: 1.6;
}

.embla-output__slide__number .context .explain-container .explain {
  color: var(--color-black-90);
  font-size: 14px;
  line-height: 1.6;
}

.embla-output__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 40px;

  .embla-output__prev,
  .embla-output__next {
    width: 12px;
    cursor: pointer;
  }

  .embla-output__prev {
    transform: scaleX(-1);
  }
}

.embla-output__buttons {
  position: absolute;
  margin: auto;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1283px;
  height: fit-content;
}

@media (width < 769px) {
  .embla-output__buttons {
    width: 90vw;
  }
}
@media (width < 472px) {
  .embla-output__buttons {
    width: 98.5893333%;
  }
}

.embla-output__button {
  -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
  appearance: none;
  background-color: transparent;
  touch-action: manipulation;
  display: inline-flex;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
  width: var(--button-size);
  height: var(--button-size);
  z-index: 1;
  border-radius: 50%;
  color: var(--text-body);
  align-items: center;
  justify-content: center;
}
@media (width < 1080px) {
  .embla-output__button {
    width: 4rem;
    height: 4rem;
  }
}
@media (max-width: 768px) {
  .embla-output__button {
    width: calc(100vw * (40 / 375));
    height: calc(100vw * (40 / 375));
  }
}

.embla-output__button:disabled {
  color: var(--detail-high-contrast);
}

.embla-output__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  align-items: center;
}
@media (width < 1080px) {
  .embla-output__dots {
    gap: 8px;
  }
}

.embla-output__dot {
  background-color: #cccccc;
  touch-action: manipulation;
  display: inline-flex;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
@media (width < 1080px) {
  .embla-output__dot {
    width: 1rem;
    height: 1rem;
  }
}
@media (width < 472px) {
  .embla-output__dot {
    width: 0.7rem;
    height: 0.7rem;
  }
}

.embla-output__dot:after {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  content: '';
  box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
}
@media (width < 1080px) {
  .embla-output__dot:after {
    width: 1rem;
    height: 1rem;
  }
}
@media (width < 472px) {
  .embla-output__dot:after {
    width: 0.7rem;
    height: 0.7rem;
  }
}

.embla-output__dot--selected {
  background-color: #333678;
}

.embla-output__tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

@media (width < 769px) {
  .embla-output__tabs {
    flex-wrap: wrap;
    margin-bottom: 22.31px;
  }
}

.embla-output__tab {
  color: #ACBBD5;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 48px;
  height: 48px;
  padding-inline: 16px;
  border-bottom: 1px solid #ACBBD5;
  position: relative;
}

@media (width < 769px) {
  .embla-output__tab {
    font-size: 1.3rem;
    line-height: 45px;
    height: 45px;
    padding-inline: 8px;
  }
}

@media (width < 472px) {
  .embla-output__tab {
    font-size: calc(100vw * (13 / 375));
    line-height: 45px;
    height: 45px;
    padding-inline: calc(100vw * (8 / 375));
  }
}

.embla-output__tab.embla-output__tab--active {
  background: linear-gradient(270deg, #3B82F6 0%, #8B5CF6 50.42%, #EC4899 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  border-bottom: none;

  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
      270deg,
      #3B82F6 0%,
      #8B5CF6 50.42%,
      #EC4899 100%
    );
  }
}