@charset "UTF-8";

.h3-wrap {
  padding-top: 112px;
  padding-bottom: 112px;

  font-family: "acumin-pro", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.section-wrap-wrap {
  padding-top: 32px;
  padding-left: calc(calc(100% - 1120px) / 2);
  padding-bottom: 24px;

  background: var(--tc);

  h4 {
    margin-bottom: 1em;

    font-size: 50px;
    color: #fff;

    &::after {
      content: attr(data-text);

      margin-left: 1em;

      font-size: 30px;
    }
  }

  .section-wrap {
    width: 100%;
    padding-top: 48px;
    padding-right: calc(calc(100% - 1120px) / 2);

    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 18px 50px -10px;
    border-radius: 2px 0 0 0;
  }
}

section {
  width: min(1024px, 100%);
  padding-bottom: 40px;
  margin-inline: auto;

  .h5-wrap {
    margin-bottom: 40px;

    h5 {
      font-size: 24px;
      font-weight: 700;
      color: var(--tc);
    }

    .desc {
      padding-top: 8px;

      font-size: 18px;
      font-weight: 700;
    }
  }

  .panel {
    position: relative;

    padding: 32px;
    border-radius: 20px;
    margin-bottom: 40px;

    &.panel-bg-1 {
      background: #F7EDDE;
    }

    &.panel-bg-2 {
      background: #F2F2F2;
    }

    .kicker {
      display: block;
      margin-bottom: 32px;

      text-align: center;
      font-size: 28px;
      color: var(--tc);
      font-weight: 700;
    }

    &.panel-bg-2 {
      .kicker {
        font-size: 18px;
        text-align: left;
      }
    }

    >.text {
      margin-bottom: 32px;
      font-weight: 700;
      line-height: 1.4;
    }
  }

  .popup {
    --arrow-size: 120px;
    --arrow-x: 140px;
    --arrow-y: 77px;
    --arrow-rot: -28deg;
    position: relative;
    z-index: 2;
    padding: 16px;
    margin-bottom: 104px;

    border-radius: 16px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background: #fff;
    overflow: visible;

    ul {
      padding-top: 32px;
      padding-bottom: 24px;

      >*+* {
        margin-block-start: 12px;
      }

      li {
        position: relative;
        padding-left: 1.6em;

        &::before {
          content: '';
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          left: 4px;

          display: inline-block;
          width: 12px;
          height: 12px;

          border-radius: 50%;
          background: var(--tc);
        }
      }
    }
  }

  .popup::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% - var(--arrow-y));
    width: var(--arrow-size);
    height: var(--arrow-size);
    z-index: -1;

    background: #fff;
    /* 角丸三角形の形状：画像の形と角度に合わせたパス */
    clip-path: path("M28 24 Q22 24 24 30 L16 52 Q14 58 20 64 L66 108 Q72 114 78 108 L92 36 Q94 30 88 28 Z");
    transform: translateX(-50%)rotate(var(--arrow-rot));
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  }
}

section#ex-content {
  >.figureCON {
    padding-bottom: 40px;
  }
}

.figureCON {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 24px;
  row-gap: 32px;

  figure {
    picture {
      width: 100%;
      margin-bottom: 16px;

      img {
        width: 100%;
        border-radius: 8px;
      }
    }

    figcaption {
      font-weight: 700;
    }

    figcaption.dot {
      position: relative;

      display: flex;
      align-items: center;
      padding-left: 28px;


      &::before {
        position: absolute;
        left: 8px;
        content: '';

        display: inline-block;
        width: 12px;
        height: 12px;

        background: var(--tc);
        border-radius: 50%;
      }
    }

    figcaption.numbering {
      position: relative;
      display: flex;
      align-items: center;
      gap: 16px;


      &::before {
        content: attr(data-text);

        font-size: 40px;
        font-weight: 700;
        color: var(--tc);
      }
    }
  }

  figure.cirle {
    picture {
      width: 100%;
      margin-bottom: 16px;

      img {
        width: 100%;
        border-radius: 50%;
      }
    }
  }
}

.figure-circle {
  margin-bottom: 32px;

  grid-template-columns: repeat(3, 1fr);
}

@media (min-width : 1200px) {}

@media (max-width : 1200px) {
  .h3-wrap {
    padding-top: 5dvh;
    padding-bottom: 5dvh;
  }

  .section-wrap-wrap {
    padding-top: 32px;
    padding-left: 0;
    padding-bottom: 24px;

    h4 {
      display: flex;
      flex-direction: column;
      padding: 16px;
      padding-bottom: 48px;
      margin-bottom: auto;

      font-size: 9dvw;

      &::after {
        margin-left: 0;

        font-size: 5dvw;
      }
    }

    .section-wrap {
      padding: 0 16px;
      padding-top: 48px;
      border-radius: 0;
    }
  }
}

@media (max-width : 599px) {
  section {
    padding-bottom: 40px;

    .h5-wrap {
      margin-bottom: 40px;
    }

    .panel {
      padding: 16px;
      margin-left: -16px;
      margin-right: -16px;
      border-radius: 0;
      margin-bottom: 40px;

      .kicker {
        display: block;
        margin-bottom: 32px;

        text-align: center;
        font-size: 22px;
        color: var(--tc);
        font-weight: 700;
      }

      &.panel-bg-2 {
        .kicker {
          font-size: 18px;
          text-align: left;
        }
      }

      >.text {
        margin-bottom: 32px;
        font-weight: 700;
        line-height: 1.4;
      }
    }
  }
  .figureCON {

  &:has(figcaption.numbering){
  grid-template-columns: repeat(1,1fr);
  }
  }
}