/* 
Theme Name: Base
 */
/*
Theme Name:lightning-child
Theme URI:
Template:lightning
Version:0.0.0
*/

.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%;
    }
  }
}

.qa-01__block {
  margin: 16px 0;
  padding: 12px;
  padding-left: 36px;
  position: relative;
  border-radius: 8px;
  background: #fafafa;
  transition: all 0.3s ease-in-out;
  transition-delay: 1s;

  *,
  *:before,
  *:after {
    transition: all 0.3s ease-in-out;
  }
  &:before {
    content: "Q";
    position: absolute;
    left: 16px;
    color: #fff;
    top: 16px;
    background: var(--color-primary);
    width: 24px;
    font-size: 14px;
    height: 24px;
    border-radius: 9999px;
    display: grid;
    place-content: center;
    @media (max-width: 768px) {
      top: 12px;
      left: 12px;
    }
  }
  .qa-01__q {
    font-weight: bold;
    font-size: 16px;
    padding: 0px 32px 0px 24px;
    border-radius: 8px;
    cursor: pointer;
    &:before {
      width: 2px;
      height: 16px;
      background: var(--color-primary);
      content: "";
      position: absolute;
      right: 19px;
      top: 50%;
      transform: translateY(-50%);
      position: absolute;
    }
    :hover {
      opacity: 0.8;
    }
    &:after {
      content: "";
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      height: 2px;
      width: 16px;
      background: #333;
    }
    &.js__qa__open {
      &:before {
        height: 0;
      }
      &:after {
      }
    }
  }

  .qa-01__a {
    padding: 0 24px;
    margin-top: 0;
    font-size: 14px;
    max-height: 0;
    overflow: hidden;
    line-height: 1.6;
    color: #333;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    p {
      position: relative;
    }
    p:first-child {
      font-weight: bold;
    }
    &:before {
      content: "A";
      position: absolute;
      left: 6px;
      color: #fff;
      top: 6px;
      background: #fff3f3;
      width: 54px;
      font-size: 34px;
      height: 54px;
      border-radius: 9999px;
      z-index: 0;
      display: grid;
      place-content: center;
    }
  }
  .editor-styles-wrapper &,
  &:has(.js__qa__open) {
    background: #e3f4e5;
    .qa-01__a {
      margin-top: 16px;
      padding: 12px 24px;
      max-height: 1000px;
      overflow: auto;
    }
  }
}

.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);
  }
}
/* ページ内共通のモーダル */

.mj-modal-content {
  display: none;
  .editor-styles-wrapper &,
  .mj-modal-display-content & {
    display: block;
  }
}

.mj-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  display: grid;
  place-content: center;
  padding: 16px;
  .js__modal-open & {
    opacity: 1;
    z-index: 9997;
  }
  .mj-modal-back {
    backdrop-filter: blur(15px);
    background: rgba(96 140 101 / 50%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    transition: 0.3s;
    &:hover {
      cursor: pointer;
    }
  }

  .mj-modal-display-content {
    z-index: 9999;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    max-width: 1200px;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: 0.3s;
    max-height: calc(100svh - 96px);
  }
  .mj-modal-close {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    background: var(--gradient-01);
    cursor: pointer;
    border-radius: 9999px;
    z-index: 10000;
    transition: 0.3s;
    &:hover {
      opacity: 0.8;
    }
    &:before {
      content: "";
      width: 2px;
      height: 24px;
      background: #fff;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) rotate(45deg);
    }
    &:after {
      content: "";
      width: 2px;
      height: 24px;
      background: #fff;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) rotate(-45deg);
    }
  }

  #mj-modal-content {
    overflow-y: auto;
    height: 100%;
  }
}
.js__modal-open & {
  .mj-modal {
    z-index: 9999;
    opacity: 1;
    .mj-modal {
      z-index: 10000;
      opacity: 1;
    }
  }
}
body.js__modal-open {
  position: fixed;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
:root {
  --color-column-bg: #ecf5f2;
  --color-column-bg-inner: #fefefe;
}
.single-column {
  .page-header {
    display: none;
  }
  .siteContent {
    background: var(--color-column-bg);
  }
}
.single-column .siteContent {
  .container {
    padding-top: 32px;
    padding-bottom: 32px;
    border-radius: 32px;
    background: var(--color-column-bg-inner);
    @media (max-width: 768px) {
      border-radius: 0;
    }
  }
  #toc_container {
    border-radius: 16px;
    background: var(--color-column-bg);
    padding: 16px;
    margin: 0 auto;
    border: none;
    a {
      color: var(--color-text);
    }
  }
  .toc_brackets {
    display: none;
  }
  .toc_toggle a {
    display: inline-block;
    padding: 4px 12px;
    margin: 0 20px;
    line-height: 1;
    border-radius: 9999px;
    font-size: 12px !important;
    background: #fff;
  }
  .toc_list li {
    list-style: outside circle !important;
    margin-left: 18px !important;
    margin-bottom: 8px !important;
    margin-top: 8px !important;
    font-size: 14px !important;
  }
  .container {
    max-width: 850px;
  }
  .entry-meta {
    display: none;
  }
  .mainSection header h1 {
    font-weight: bold;
  }
  .mainSection-title,
  h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 48px 0;
    @media (max-width: 768px) {
      margin: 32px 0;
    }
    background: var(--color-primary);
    padding: 16px;
    color: #fff;
    border-radius: 8px;
    border: none;
    line-height: 1.4;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    &:first-child {
      margin-top: 0;
    }
    @media (max-width: 768px) {
      font-size: 20px;
    }
  }
  .subSection-title,
  h3 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: bold;
    margin: 48px 0;
    @media (max-width: 768px) {
      margin: 32px 0;
    }
    &:first-child {
      margin-top: 0;
    }
  }
  .entry-body {
    > p > strong {
      font-weight: bold;
    }
    ul {
      padding-left: 24px;
    }
    > figure > img {
      width: 100%;
      height: auto;
      border-radius: 16px;
      margin: 60px auto;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
      display: block;
    }
  }
  .mv-01 {
  }
}
.single .entry-body {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  > figure > img,
  > * {
    margin: 0 !important;
    width: 100% !important;
  }
}
