
/**
@media screen and (max-width: 767px) {
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
}
@media screen and (min-width: 1024px) and (max-width: 1279px) {
}
@media screen and (min-width: 1280px) and (max-width: 1519px) {
}
@media screen and (min-width: 1520px) and (max-width: 1759px){
}
@media screen and (min-width: 1760px) {
}
 */

 /*  .p-title-1
 --------------------------------------------- */
.p-title-1 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border-radius: 100px;
  font-size: 30px;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding-block: .3em;

  @media screen and (max-width: 767px) {
    font-size: 20px;
    min-height: 60px;
  }
}


/*  p-list-1
--------------------------------------------- */
.p-list-1__item {
  padding-left: 1em;
  text-indent: -1em;
  font-weight: 500;
  line-height: 1.8;
  font-size: 16px;

  &:not(:first-of-type) {
    margin-top: 0.5em;
  }

  &:before {
    content: '・';
  }
}

.p-list-1--type2 {
  .p-list-1__item {

    &:not(:first-of-type) {
      margin-top: 0.2em;
    }

    &:before {
      color: var(--color-accent);
    }

  }
}

.p-list-1__item--box {
  width: fit-content;
  border: 1px solid var(--color-accent);
}

/*  p-box-1
--------------------------------------------- */
.p-box-1 {
  padding: 25px 30px;
  border: 1px solid var(--color-gray-2);
}

/*  p-step
--------------------------------------------- */
.p-step {
}

.p-step__item {
  position: relative;
  display: grid;
  grid-template-areas:
  'number content'
  'arrow content';
  grid-template-rows: auto 1fr;
  grid-template-columns: 100px auto;
  column-gap: 40px;
  row-gap: 0;
  align-items: center;

  @media screen and (max-width: 767px) {
    grid-template-areas:
    'number ttl'
    'body body'
    'arrow arrow';
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 50px auto;
    column-gap: 20px;
    row-gap: 0;
  }
}

.p-step__item-number {
  grid-area: number;

  img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}

.p-step__item-arrow {
  display: grid;
  place-items: center;
  grid-area: arrow;
  min-height: 60px;

  &::after {
    content: '';
    display: block;
    width: 11px;
    height: 7px;
    background: url(../images/icon_step_angle.png) no-repeat center center / contain;
  }
}

.p-step__item:last-of-type .p-step__item-arrow {
  display: none;
}

.p-step__item-content {
  grid-area: content;
  margin-top: -13px;
  padding-bottom: 50px;

  @media screen and (max-width: 767px) {
    display: contents;
    margin-top: 0;
    padding-bottom: 0;
  }
}

.p-step__item-ttl {
  grid-area: ttl;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.8;
  color: var(--color-primary);

  @media screen and (max-width: 767px) {
    font-size: 18px;
  }
}

.p-step__item-body {
  grid-area: body;
  padding-top: 10px;

  @media screen and (max-width: 767px) {
    padding-top: 15px;
  }
}

.p-step__text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

.p-step__text-link {
  display: inline-block;
  color: var(--color-secondary);
  font-weight: 500;
  line-height: 1.8;
  text-decoration: underline;

  @media (hover: hover) {
    &:hover {
      text-decoration: none;
    }
  }
}

.p-step .c-btn-1 {
  max-width: 450px;
  margin-inline: auto;
}


/*  p-step-box
--------------------------------------------- */
.p-step-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: flex-start;
  line-height: 1.8;
  font-weight: 500;

  @media screen and (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.p-step-box__item {
  background-color: var(--color-tertiary);
  border-radius: 60px 10px 60px 10px;

  @media screen and (max-width: 767px) {
    border-radius:40px 10px 40px 10px;
  }
}

.p-step-box__item-head {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  border: none;
  background: none;
  padding: 30px 36px;
  cursor: pointer;
  text-align: left;

  @media screen and (max-width: 767px) {
    padding: 25px 20px;
    gap: 15px;
  }

  @media (any-hover: hover) {
    transition: opacity 0.3s;

    &:hover {
      opacity: 0.8;
    }
  }
}

.p-step-box__item-head-icon {
  position: relative;
  flex-shrink: 0;
  display: block;
  width: 40px;
  aspect-ratio: 1 / 1;
  background-color: var(--color-secondary);
  border-radius: 50%;
  margin-left: auto;

  @media screen and (max-width: 767px) {
    width: 30px;
  }

  &::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    content: '';
    display: block;
    width: 11px;
    height: 7px;
    mask: url(/file/special/18401/27609/fv-assets/svg/icons/angle-bottom.svg) no-repeat 100% 100% / contain;
    background-color: var(--color-white);
  }
}

.js-acc-scope.is-open .p-step-box__item-head-icon {
  rotate: 180deg;
}

.p-step-box__item-number {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 60px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: var(--color-white);
  font-size: 30px;
  font-family: var(--ff-barlow);
  font-weight: 700;
  color: var(--color-primary);

  @media screen and (max-width: 767px) {
    width: 40px;
    font-size: 20px;
  }
}

.p-step-box__item-ttl {
  display: block;
  font-size: 20px;
  font-weight: bold;
  color: var(--color-primary);

  @media screen and (max-width: 767px) {
    font-size: 17px;
    line-height: 1.6;
  }
}

.p-step-box__item-body {
  /* padding-top: 20px; */
  padding-bottom: 50px;
  padding-inline: 36px;

  @media screen and (max-width: 767px) {
    padding-bottom: 25px;
    padding-inline: 20px;
  }
}

.p-step-box__text {
  font-size: 18px;

  @media screen and (max-width: 767px) {
    font-size: 16px;
  }

  & + & {
    margin-top: 0.5em;
  }
}

.p-step-box__text-2 {
  font-size: 16px;

  & + & {
    margin-top: 0.5em;
  }
}

.p-step-box__note {
  font-size: 16px;
  padding-left: 1em;
  text-indent: -1em;

  @media screen and (max-width: 767px) {
    font-size: 14px;
  }
}

.p-step-box__text-link {
  display: block;
  width: fit-content;
  color: var(--color-secondary);
  font-weight: 500;
  line-height: 1.8;
  text-decoration: underline;

  @media (hover: hover) {
    &:hover {
      text-decoration: none;
    }
  }
}

.p-step-box__text-list {

}

.p-step-box__text-item {
  padding-left: 1em;
  text-indent: -1em;
  font-size: 18px;

  @media screen and (max-width: 767px) {
    font-size: 16px;
  }

  & + & {
    margin-top: 0.5em;
  }

  &::before {
    content: '・';
  }
}

.p-btn-contact {
  max-width: 250px;
}

/*  p-contact-block
--------------------------------------------- */
.p-contact-block__body {
  max-width: 710px;
}


/*  アコーディオン
 --------------------------------------------- */
.js-acc-target {
    --acc-body-height: 0px;
    height: 0;
    overflow: hidden;
    will-change: height;
}

.js-acc-scope.is-close .js-acc-target {
    animation: closeAccAnim 0.3s forwards;
}

.js-acc-scope.is-open .js-acc-target {
    animation: openAccAnim 0.3s forwards;
}

@keyframes openAccAnim {
    0% {
        height: 0px;
        visibility: hidden;
    }

    99% {
        height: var(--acc-body-height);
        visibility: visible;
    }

    100% {
        height: auto;
    }
}

@keyframes closeAccAnim {
    0% {
        height: var(--acc-body-height);
    }

    99% {
        visibility: visible;
    }

    100% {
        height: 0px;
        visibility: hidden;
    }
}
