/* 
Theme Name: Base
*/

.c-title-010 {
  margin: 96px auto 48px;
  .c-title-010__title {
    font-weight: bold;
    font-size: 24px;
    font-weight: bold;
    padding-bottom: 8px;
    margin-bottom: 8px;
    text-align: center;
    border: none;
    position: relative;
    line-height: 1.4;
    &:after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 50px;
      height: 1px;
      background: var(--gradient-01);
    }
  }
  .c-title-010__subtitle {
    font-size: 12px;
    color: #666;
    margin: 0 auto 24px;
    text-align: center;
    border: none;
  }
}

.c-102 {
  counter-reset: c-102__counter;
  position: relative;
  margin-bottom: 400px;
  @media (max-width: 768px) {
    margin-bottom: 300px;
  }
  .c-102__image-01 {
    position: absolute;
    height: 400px;
    width: 900px;
    right: 660px;
    aspect-ratio: 16/9;
    @media (max-width: 768px) {
      position: relative;
      margin: 0;
      right: 0;
      left: auto;
      width: 90%;
      height: auto;
    }
    img {
      aspect-ratio: 16/9 !important;
      position: absolute;
      width: 100%;
      height: 100% !important;
      object-fit: cover;

      border-radius: 8px;
    }
    &:after {
      width: 140px;
      height: 140px;
      content: "";
      position: absolute;
      bottom: -75px;
      right: -75px;
      border-radius: 8px;
      background: rgba(160, 229, 254, 0.3);
    }
  }
  .c-102__image-02 {
    position: absolute;
    height: 600px;
    width: 200px;
    right: -150px;
    bottom: 0;
    @media (max-width: 768px) {
      height: 350px;
      width: 100px;
      right: -50px;
      bottom: 0;
    }
    img {
      position: absolute;
      width: 100%;
      height: 100% !important;
      object-fit: cover;
      border-radius: 8px;
    }
    &:after {
      width: 140px;
      height: 140px;
      content: "";
      position: absolute;
      left: -75px;
      top: -75px;
      border-radius: 8px;
      background: rgba(160, 229, 254, 0.3);
    }
  }
  .c-102__image-03 {
    position: absolute;
    height: 500px;
    width: 500px;
    right: 550px;
    bottom: -290px;
    @media (max-width: 768px) {
      width: 210px;
      height: 210px;
      left: -40px;
      top: calc(100% + 20px);
    }
    img {
      position: absolute;
      width: 100%;
      height: 100% !important;
      object-fit: cover;
      border-radius: 8px;
    }
    &:after {
      width: 140px;
      height: 140px;
      content: "";
      position: absolute;
      left: -75px;
      top: -75px;
      border-radius: 8px;
      background: rgba(160, 229, 254, 0.3);
    }
  }
  .c-102__image-04 {
    position: absolute;
    height: 400px;
    width: 900px;
    right: 660px;
    aspect-ratio: 16/9;
    @media (max-width: 768px) {
      position: relative;
      margin: 0;
      right: 0;
      left: auto;
      width: 90%;
      height: auto;
    }
    img {
      aspect-ratio: 16/9 !important;
      position: absolute;
      width: 100%;
      height: 100% !important;
      object-fit: cover;

      border-radius: 8px;
    }
    &:after {
      width: 140px;
      height: 140px;
      content: "";
      position: absolute;
      bottom: -75px;
      right: -75px;
      border-radius: 8px;
      background: rgba(160, 229, 254, 0.3);
    }
  }
  .c-102__content {
    counter-increment: c-102__counter;
    max-width: 400px;

    position: relative;
    margin-top: 100px;
    @media (max-width: 781px) {
      margin-right: 0 !important;
      margin-left: 0 !important;
      margin-top: 100px;
    }
    &.c-102__content--01 {
      min-height: 400px;
      margin-left: auto !important;
      margin-right: 130px !important;
      @media (max-width: 768px) {
        width: 90%;
        margin-top: 10%;
        margin-right: auto !important;
        margin-left: 10% !important;
        min-height: auto;
      }
    }
    &.c-102__content--02 {
      margin-left: auto !important;
      margin-right: auto !important;
      @media (max-width: 768px) {
        width: 90%;
        margin-top: 10%;
        margin-left: auto !important;
        margin-right: 10% !important;
      }
    }
    &.c-102__content--03 {
      margin-left: auto !important;
      margin-right: 100px !important;
      @media (max-width: 768px) {
        width: 70%;
        margin-left: 0 !important;
        margin-top: 10%;
        margin-right: auto !important;
      }
    }
    &.c-102__content--04 {
      margin-left: auto !important;
      margin-right: 100px !important;
      @media (max-width: 768px) {
        width: 70%;
        margin-left: 0 !important;
        margin-top: 10%;
        margin-right: auto !important;
      }
    }
  }
  .c-102__count {
    content: counter(c-102__counter, decimal-leading-zero);
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    line-height: 1;
    text-align: center;
  }
  .c-102__title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
    @media (max-width: 768px) {
      font-size: 20px;
    }
  }
  .c-102__text {
  }

  .wp-block-buttons {
  }
  .wp-block-button {
  }
}

.c-103 {
  counter-reset: c-103__counter;
  container-type: inline-size;
  margin: 64px 0;
  @media (max-width: 580px) {
    width: 100%;
  }

  .c-103__block {
    display: flex;
    gap: 32px;
    padding-right: 32px;
    width: calc(100% - 32px);
    @container (max-width: 580px) {
      flex-direction: column;
      gap: 32px;
      padding-right: 0;
    }
    &.c-103__block--reverse {
      flex-direction: row-reverse;

      @container (max-width: 580px) {
        flex-direction: column;
        grid-template-columns: 1fr;
      }
    }
  }
  .c-103__title {
    margin-top: 0;
    font-size: 18px;
    font-weight: bold;
  }
  .c-103__image {
    max-width: 400px;
    width: auto;
    height: auto;
    position: relative;
    flex: 0.8;
    @media (max-width: 580px) {
      width: 100%;
      max-width: 100%;
    }
    &:after {
      z-index: -1;
      content: "";
      position: absolute;
      width: 100%;
      height: 100%;
      border-radius: 8px;
      background: rgba(160, 229, 254, 0.3);
      top: 16px;
      left: 16px;
    }
    img {
      border-radius: 8px;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .c-103__block--reverse & {
      &:after {
        left: auto;
        right: 16px;
      }
    }
  }
  .c-103__text-area {
    flex: 1;

    max-width: 400px;
  }
}

.c-104 {
}

/* ロゴスライダー */
.c-105 {
  overflow: hidden;

  .c-105__slider-wrapper {
  }
  .swiper-wrapper {
    transition-timing-function: linear;
  }
  .c-105__slider {
    .swiper-slide {
      margin-top: 0 !important;
      margin-right: 60px !important;
      height: 100px;
      width: 300px;
      @media (max-width: 768px) {
        width: 200px;
        margin-right: 20px;
        height: 50px;
      }
    }
    figure {
      margin: 0px;
      position: relative;
      width: 100%;
      height: 100%;
      div {
        min-width: 200px;
        min-height: 80px;
        width: 100% !important;
        height: 100% !important;
      }
      img {
        position: absolute;

        max-width: 100%;
        object-fit: contain;
        height: 100% !important;
        display: grid;
        place-content: center;
      }
      figcaption {
        position: absolute;
        bottom: -100px;
        left: 0;
        width: 100%;
        text-align: center;
      }
    }
  }
  .editor-styles-wrapper & {
    .swiper-wrapper {
      display: flex;
      flex-wrap: wrap;
    }
    .swiper-slide {
      width: fit-content;
      height: 100%;
    }
  }
}

.flow-01 {
  position: relative;
  padding: 0px 0;

  .flow-01__wrapper {
    margin: 0 auto;
    padding: 20px;
    border-radius: 16px;
    position: relative;
    background: #fafafa;
    &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 50px;
      right: 0;
      bottom: 0;
      width: 2px;
      height: 100%;
      background: linear-gradient(to bottom, #3498db, #6ec775);
    }
  }

  .flow-01__block {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    padding: 25px;
    background: #fff;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 40px;
    &:last-child {
      margin-bottom: 0;
    }
  }

  .flow-01__title-area {
    display: flex;
    flex-direction: column;
    position: absolute;
    place-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    position: absolute;
    margin: 0;
    left: 12px;
    top: 12px;
    width: 64px;
    height: 64px;
    flex: 1;
  }
  .flow-01__text-area {
    flex: 1;
    position: relative;
    margin: 0;
  }
  .flow-01__step {
    font-size: 12px;
    text-align: center;
    font-weight: 600;
    color: #888;
  }

  .flow-01__number {
    aspect-ratio: 1/1;
    margin: 0;
    text-align: center;
    font-size: 32px;
    background: linear-gradient(45deg, #299264, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
  }

  .flow-01__title {
    font-size: 24px !important;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.4;
    @media (max-width: 768px) {
      font-size: 20px !important;
    }
  }

  .flow-01__content {
    flex: 1;
  }

  .flow-01__content p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 12px;
  }

  .flow-01__content p:last-child {
    margin-bottom: 0;
  }

  .flow-01__image {
    max-width: 180px;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    width: fit-content;
  }

  .flow-01__image img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1/1;
    transition: transform 0.5s ease;
  }

  @media (max-width: 768px) {
    .flow-01__wrapper::before {
      left: 30px;
    }

    .flow-01__block {
      flex-direction: column;
      gap: 25px;
      padding: 20px;
      margin-bottom: 30px;
      margin-left: 40px;
    }

    .flow-01__block::before {
      left: -20px;
      top: 30px;
      width: 15px;
    }

    .flow-01__image {
      flex: 0 0 auto;
      width: 100%;
      max-width: 300px;
      margin: 0 auto;
    }

    .flow-01__image img {
      height: 180px;
    }

    .flow-01__number {
      font-size: 36px;
    }

    .flow-01__title {
      font-size: 18px;
    }
  }
}

.c-105 {
  padding: 64px 16px;
  background: #fafafa;
  .c-105__wrapper {
    margin: 0px auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 400px));
    gap: 16px;
    justify-content: center;

    @media (max-width: 768px) {
      grid-template-columns: 1fr;
    }
    .c-105__block {
      margin: 0;
      background: #fff;
      border-radius: 8px;
      padding: 16px;
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
      gap: 8px;
    }
    .c-105__image {
      width: 100%;
      height: 200px;
      object-fit: cover;
      border-radius: 8px;
      overflow: hidden;
      img {
        width: 100%;
        height: 100%;
        margin: 0 auto;
        display: block;
        object-fit: contain !important;
      }
    }
    .c-105__title {
      font-size: 18px;
      font-weight: bold;
      line-height: 1.4;
    }
    .c-105__text {
      font-size: 14px;
      color: #666;
      margin-top: 8px;
    }
    .c-105__button {
      margin-top: 16px;
      text-decoration: none;
      color: #fff;
      background: #3498db;
      padding: 10px 20px;
      border-radius: 8px;
      transition: background 0.3s ease;
      &:hover {
        background: #2980b9;
      }
    }
  }
}

.c-901 {
  /*回転する装飾
  ・背景にグラデーションを設定してsvgでclip-pathで切り抜き
  ・CSSアニメーションで回転
  */
  position: relative;
  margin: 0 auto;
  .c-901__obj {
    width: 400px;
    height: 400px;
    position: absolute;
    opacity: 0.2;
    background: url(./assets/image/back/r-text-01.svg) no-repeat center center;
    animation: rotate 40s linear infinite;
    &.c-901__obj--01 {
      right: -200px;
      @media (max-width: 768px) {
        right: -130%;
      }
    }
  }
  .editor-styles-wrapper & {
    .c-901__obj {
      animation: none !important;
    }
  }
}
@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
/* ページ内共通のモーダル */
