@charset "UTF-8";

/* guide page */
.mp-guide-page .mp-main {
  background: var(--mp-white);
}

.mp-guide-hero {
  position: relative;
  min-height: 256px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--mp-white);
  background: var(--mp-blue);
}

.mp-guide-hero::before {
  position: absolute;
  content: "";
  background: url("../../images/guide/_レイヤー_1 (2).svg") center / contain no-repeat;
}

.mp-guide-hero::before {
  top: 91px;
  left: 0;
  width: 320px;
  height: 239px;
}

.mp-guide-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 13px;
  transform: translateY(22px);
}

.mp-guide-hero__inner::before {
  width: 64px;
  height: 47px;
  content: "";
  background: url("../../images/guide/_レイヤー_1 (1).svg") center / contain no-repeat;
}

.mp-guide-hero h1 {
  margin: 0;
  color: var(--mp-white);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.4;
}

.mp-guide-flow {
  width: var(--mp-content-width);
  margin: 81px auto 44px;
  padding: 65px 74px 64px;
  text-align: center;
  background: #eef4ff;
  border-radius: 20px;
}

.mp-guide-flow h2 {
  margin: 0;
  color: var(--mp-blue);
  font-size: 35px;
  font-weight: 400;
  line-height: 1.45;
}

.mp-guide-section > h2,
.mp-guide-faq .mp-heading h2 {
  margin: 0;
  color: var(--mp-blue);
  font-size: 35px;
  font-weight: 400;
  line-height: 1.45;
}

.mp-guide-flow__list {
  display: grid;
  grid-template-columns: repeat(4, 225px);
  gap: 62px;
  justify-content: center;
  margin: 68px auto 0;
  padding: 0;
  list-style: none;
}

.mp-guide-flow__list li {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(66px, auto) auto;
  align-content: start;
  justify-items: center;
  color: var(--mp-blue);
}

.mp-guide-flow__list li:not(:last-child)::after {
  position: absolute;
  top: 156px;
  right: -55px;
  width: 47px;
  height: 22px;
  content: "";
  background: url("../../images/flow-arrow.svg") center / contain no-repeat;
  transform: rotate(-90deg);
}

.mp-guide-flow__list span,
.mp-guide-step header span {
  display: block;
  color: var(--mp-blue);
  font-family: "Times New Roman", "Yu Mincho", serif;
  line-height: 1;
}

.mp-guide-flow__list span {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 500;
}

.mp-guide-flow__icon {
  display: grid;
  place-items: center;
  width: 192px;
  height: 192px;
  margin: 0 auto 31px;
  background: var(--mp-white);
  border-radius: 50%;
}

.mp-guide-flow__icon img {
  width: 106px !important;
  height: 106px !important;
  object-fit: contain;
}

.mp-guide-flow__list li:nth-child(3) .mp-guide-flow__icon img {
  transform: translateX(10px);
}

.mp-guide-flow__list h3 {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0 0 8px;
  color: var(--mp-blue);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
}

.mp-guide-flow__list p {
  margin: 0;
  color: var(--mp-blue);
  font-size: 16px;
  line-height: 1.6;
  white-space: nowrap;
}

.mp-guide-tabs {
  display: grid;
  gap: 14px;
  width: min(1160px, calc(100% - 96px));
  margin: 0 auto 93px;
}

.mp-guide-tabs a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 64px 19px 70px;
  color: var(--mp-blue);
  font-size: 35px;
  line-height: 1.4;
  background: #fff;
  border-bottom: 1px solid var(--mp-blue);
  margin-bottom: 20px;
}

.mp-guide-tabs a::before {
  position: absolute;
  left: 20px;
  width: 30px;
  height: 45px;
  content: "";
  background: url("../../images/guide/Vector (5).svg") center / contain no-repeat;
}

.mp-guide-tabs a::after {
  position: absolute;
  right: 25px;
  width: 39px;
  height: 24px;
  content: "";
  background: url("../../images/guide/guide-tab-arrow.svg") center / contain no-repeat;
}

.mp-guide-section {
  width: min(1160px, calc(100% - 96px));
  margin: 0 auto 0px;
}

.mp-guide-section > h2 {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  margin-bottom: 32px;
  padding: 0 60px 17px 85px;
  border-bottom: 1px solid var(--mp-blue);
}

.mp-guide-section > h2::before {
  position: absolute;
  left: 7px;
  width: 54px;
  height: 54px;
  content: "";
  background: url("../../images/guide/door-open.svg") center / contain no-repeat;
  pointer-events: none;
}

.mp-guide-section > h2::after {
  position: absolute;
  right: 20px;
  width: 39px;
  height: 24px;
  content: "";
  background: url("../../images/guide/guide-heading-arrow.svg") center / contain no-repeat;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.mp-guide-accordion:not(.is-open) > h2::after,
.mp-guide-accordion:not(.is-open) .mp-heading h2::after {
  transform: rotate(180deg);
}

.mp-guide-accordion:not(.is-open) > h2::before,
.mp-guide-accordion:not(.is-open) .mp-heading h2::before {
  background-image: url("../../images/guide/accordion-door-closed.svg");
}

.mp-guide-accordion h2 button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: inherit;
  padding: 0;
  color: var(--mp-blue);
  background: transparent;
  border: 0;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

.mp-guide-accordion__panel[hidden] {
  display: none;
}

.mp-guide-step {
  margin-bottom: 95px;
  padding: 0;
}

.mp-guide-step header {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(450px, 52%);
  min-height: 54px;
  padding: 0 24px;
  background: #f0f5ff;
  border-radius: 24px 24px 0 0;
}

.mp-guide-step header span {
  position: relative;
  padding-right: 18px;
  font-size: 20px;
}

.mp-guide-step header span::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 30px;
  content: "";
  background: var(--mp-blue);
  transform: translateY(-50%);
}

.mp-guide-step header h3 {
  margin: 0;
  color: var(--mp-blue);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}

.mp-guide-step ol {
  display: grid;
  gap: 53px;
  margin: 0;
  padding: 68px 6% 70px;
  background: #f0f5ff;
  list-style: none;
  counter-reset: guide-step;
  border-radius: 0 20px 20px 20px;
}

.mp-guide-step__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 483px;
  gap: 44px;
  align-items: center;
  counter-increment: guide-step;
}

.mp-guide-step__text {
  display: grid;
  gap: 14px;
  align-self: start;
  align-content: start;
  color: var(--mp-blue);
  font-size: 20px;
  line-height: 1.9;
}

.mp-guide-step__text p {
  position: relative;
  margin: 0;
  padding-left: 30px;
}

.mp-guide-step__text p::before {
  position: absolute;
  left: 0;
  content: counter(guide-step) ".";
}

.mp-guide-step__text-after-image {
  padding-left: 0 !important;
}

.mp-guide-step__text-after-image::before {
  content: none !important;
}

.mp-guide-step__button-note {
  display: block;
  margin: 19px 0;
}

.mp-guide-step__form-list {
  display: block;
  font-size: 16px;
  margin-top: 17px;
}

.mp-guide-step__text small {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.85;
}

.mp-guide-step__text a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  justify-self: start;
  margin-left: 30px;
  width: 74%;
  font-size: 24px;
  padding: 17px 24px;
  color: var(--mp-white) !important;
  text-align: center;
  line-height: 1.2;
  background: var(--mp-green);
  letter-spacing: 2px;
}

.mp-guide-step__text a::before {
  width: 46px;
  height: 44px;
  flex: 0 0 auto;
  content: "";
  background: url("../../images/line-icon-cta.png") center / contain no-repeat;
}

.mp-guide-step__image {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.mp-guide-step__image img {
  width: 100%;
  background: #dfe9ff;
  border-radius: 10px;
}

.mp-faq.mp-guide-faq {
  width: min(1160px, calc(100% - 96px));
  margin-right: auto;
  margin-left: auto;
  padding-top: 0;
  padding-bottom: 170px;
}

.mp-guide-faq .mp-heading {
  justify-items: stretch;
  margin-bottom: 35px;
}

.mp-guide-faq .mp-heading h2 {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 60px 17px 75px;
  border-bottom: 1px solid var(--mp-blue);
}

.mp-guide-faq .mp-heading h2::before {
  position: absolute;
  left: 7px;
  width: 54px;
  height: 54px;
  content: "";
  background: url("../../images/guide/door-open.svg") center / contain no-repeat;
  pointer-events: none;
}

.mp-guide-faq .mp-heading h2::after {
  position: absolute;
  right: 20px;
  width: 39px;
  height: 24px;
  content: "";
  background: url("../../images/guide/guide-heading-arrow.svg") center / contain no-repeat;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.mp-guide-page .mp-line-cta {
  margin-bottom: 82px;
}

@media screen and (max-width: 767px) {
  .mp-guide-step__button-note {
        margin-bottom: 0;
      }

  .mp-guide-hero::before {
        top: 116px;
        left: 0;
        width: 208px;
        height: 155px;
      }

  .mp-guide-hero__inner {
        gap: 8px;
        transform: translateY(4px);
      }

  .mp-guide-hero h1 {
        font-size: 40px;
      }

  .mp-guide-flow {
        width: var(--mp-content-width);
        margin: 31px auto 39px;
        padding: 34px 4px 52px;
        border-radius: 16px;
      }

  .mp-guide-flow h2 {
        font-size: 30px;
        line-height: 1.45;
        text-align: center;
      }

  .mp-guide-section > h2,
      .mp-guide-faq .mp-heading h2 {
        font-size: 24px;
      }

  .mp-guide-flow__list {
        grid-template-columns: 1fr;
        gap: 58px;
        margin-top: 34px;
        text-align: left;
      }

  .mp-guide-flow__list li {
        grid-template-columns: 130px max(0px, calc(50% - 149px)) minmax(0, 1fr);
        grid-template-rows: auto max-content 1fr;
        grid-template-areas:
          "step . ."
          "icon . title"
          "icon . text";
        column-gap: 0;
        align-items: start;
      }

  .mp-guide-flow__list li:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: -43px;
        left: 50%;
        width: 38px;
        height: 18px;
        transform: translateX(-50%);
      }

  .mp-guide-flow__list span {
        grid-area: step;
        margin: 0 0 12px;
        font-size: 17px;
        text-align: center;
      }

  .mp-guide-flow__icon {
        grid-area: icon;
        width: 125px;
        height: 125px;
        margin: 0;
      }

  .mp-guide-flow__icon img {
        width: 69px !important;
        height: 69px !important;
      }

  .mp-guide-flow__list h3 {
        grid-area: title;
        display: block;
        align-self: end;
        justify-self: start;
        width: 100%;
        margin: 0 0 12px;
        font-size: 20px;
        line-height: 1.45;
        text-align: left;
        white-space: normal;
      }

  .mp-guide-flow__list p {
        grid-area: text;
        justify-self: start;
        width: 100%;
        font-size: 15px;
        line-height: 1.7;
        text-align: left;
        white-space: normal;
      }

  .mp-guide-tabs,
      .mp-guide-section,
      .mp-guide-faq {
        width: var(--mp-content-width);
      }

  .mp-guide-tabs {
        gap: 10px;
        margin-bottom: 48px;
      }

  .mp-guide-tabs a {
        min-height: 58px;
        padding: 0 48px 20px 89px;
        font-size: 24px;
        line-height: 1.4;
      }

  .mp-guide-tabs a::before {
        left: 32px;
        width: 38px;
        height: 44px;
      }

  .mp-guide-tabs a::after {
        right: 13px;
        width: 24px;
        height: 15px;
      }

  .mp-guide-section {
        margin-bottom: 35px;
      }

  .mp-guide-section > h2,
      .mp-guide-faq .mp-heading h2 {
        min-height: 58px;
        margin-bottom: 25px;
        padding-left: 87px;
      }

  .mp-guide-step {
        margin-bottom: 75px;
      }

  #guide-again .mp-guide-step:last-child {
      margin-bottom: 0;
    }

  .mp-guide-step header {
        gap: 10px;
        width: min(260px, 79%);
        min-height: 52px;
        padding: 0 15px;
        border-radius: 16px 16px 0 0;
      }

  .mp-guide-step header span {
        padding-right: 12px;
        font-size: 16px;
      }

  .mp-guide-step header h3 {
        font-size: 16px;
      }

  .mp-guide-step ol {
        margin-top: 0;
        padding: 24px 18px 30px;
        border-radius: 0px 20px 20px 20px;
      }

  .mp-guide-step__item {
        grid-template-columns: 1fr;
        gap: 15px;
      }

  .mp-guide-step__form-list {
        margin-top: 0px;
      }

  .mp-guide-step__form-note {
        font-size: 12px;
      }

  .mp-guide-step__text {
        /*font-size: 16px;*/
        line-height: 1.85;
      }

  .mp-guide-step__text--sp-inline-image {
        gap: 0;
      }

  .mp-guide-step__text p {
        padding-left: 24px;
      }

  .mp-guide-step__text p:not(.mp-guide-step__text-after-image) .mp-guide-step__form-list,
      .mp-guide-step__text p:not(.mp-guide-step__text-after-image) small {
        width: calc(100% + 24px);
        margin-left: -24px;
        box-sizing: border-box;
      }

  .mp-guide-step__text small {
        font-size: 12px;
        line-height: 1.75;
      }

  .mp-guide-step__text a {
        justify-self: center;
        min-width: 210px;
        margin-left: 0;
        padding: 13px 24px;
        width: 100%;
        gap: 10px;
      }

  .mp-guide-step__text a::before {
        width: 40px;
        height: 39px;
      }

  .mp-guide-step__image {
        max-width: 480px;
        margin: 0 auto;
      }

  .mp-guide-step__image--inline {
        display: block !important;
        width: calc(100% - 24px);
        margin: 15px 0 18px 24px;
      }

  .mp-guide-faq {
        padding: 0 0 48px;
      }

  .mp-guide-faq .mp-heading {
        margin-bottom: 34px;
        text-align: center;
      }

  .mp-guide-faq .mp-heading h2 {
        display: block;
        min-height: 0;
        margin: 0;
        padding: 0;
        font-size: 30px;
        line-height: 1.45;
        text-align: center;
        border-bottom: 0;
      }

  .mp-guide-faq .mp-heading h2::before,
      .mp-guide-faq .mp-heading h2::after {
        display: none;
      }

  .mp-guide-faq.mp-guide-accordion .mp-heading h2 {
        display: flex;
        min-height: 58px;
        padding: 0 60px 17px 87px;
        font-size: 24px;
        line-height: 1.4;
        text-align: left;
        border-bottom: 1px solid var(--mp-blue);
      }

  .mp-guide-faq.mp-guide-accordion .mp-heading h2::before,
      .mp-guide-faq.mp-guide-accordion .mp-heading h2::after {
        display: block;
      }

  .mp-guide-faq.mp-guide-accordion .mp-heading h2::before {
        left: 7px;
        width: 54px;
        height: 54px;
      }

  .mp-guide-faq.mp-guide-accordion .mp-heading h2::after {
        right: 13px;
        width: 24px;
        height: 15px;
      }

  .mp-guide-page .mp-line-cta {
        margin-bottom: 49px;
      }

  .mp-faq.mp-guide-faq {
        width: 100%;
        padding-bottom: 55px;
      }
}
