@charset "UTF-8";

/* ==========================================================================
   p-faq.css
   ========================================================================== */

/* partial override */
/* ========================================================================= */

.o-m__breadcrumb-list {
  @media screen and (max-width: 576px) {
    display: block;
    padding: 8px 12px 9px;
  }
}

.o-m__breadcrumb-list_link {
  @media screen and (max-width: 576px) {
    display: inline;
    margin: 0 5px 0 0;
  }
  &:after {
    @media screen and (max-width: 576px) {
      position: static;
      display: inline-block;
      margin: 0 0 0 5px;
    }
  }
}

/* ========================================================================= */
/* object page_common */
/* ========================================================================= */

.p__faq {
  .p__faq-flex {
    .f-l__common-inner {
      justify-content: center;
    }
  }
  .p__faq-category,
  .p__faq-list {
    padding-right: 0;
  }
}

.p__faq-title {
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 20px;
  text-align: center;
  @media screen and (max-width: 768px) {
    font-size: 18px;
  }
}

.p__faq-detail {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 auto;
  padding-bottom: 70px;
  @media screen and (max-width: 768px) {
    display: block;
  }
}

.p__faq-detail_content {
  max-width: 700px;
  width: 70%;
  padding-top: 62px;
  @media screen and (max-width: 768px) {
    width: 100%;
    padding-top: 30px;
  }
}

.p__faq-detail_item {
  position: relative;
  background-color: var(--rmeisai-bg-sub-03);
  border-radius: 10px;
  padding: 0 0 25px;
  margin-bottom: 10px;
}

.p__faq-detail_item_q {
  font-size: 16px;
  padding: 25px 25px 0px 60px;
  position: relative;
  display: block;
  margin: 0;
  font-weight: 500;
  @media screen and (max-width: 576px) {
    font-size: 14px;
    padding: 18px 10px 2px 35px;
  }
  &::before {
    content: "Q";
    position: absolute;
    left: 30px;
    top: 22px;
    font-size: 22px;
    color: var(--rmeisai-primary);
    margin: 0;
    font-weight: 500;
    text-indent: 0;
    @media screen and (max-width: 576px) {
      left: 13px;
      top: 13px;
    }
  }
}

.p__faq-detail_item_a {
  width: 95%;
  height: auto;
  margin: 15px auto 0;
  padding: 25px 25px 25px 45px;
  background-color: var(--white);
  border-radius: 10px;
  @media screen and (max-width: 576px) {
    margin-top: 10px;
    padding: 20px 20px 20px 40px;
    width: 93%;
  }
}

.p__faq-detail_item_a_hedding {
  font-size: 16px;
  padding: 0 0 10px;
  line-height: 1.4;
  color: var(--rmeisai-primary);
  font-weight: bold;
  position: relative;
  text-indent: 0;
  margin: 0;
  @media screen and (max-width: 576px) {
    font-size: 13px;
  }
  &::before {
    content: "A";
    position: absolute;
    font-weight: 500;
    left: -25px;
    top: -3px;
    line-height: 1.4;
    font-size: 22px;
    color: var(--rmeisai-primary);
    margin: 0;
    height: fit-content;
    width: auto;
  }
}

.p__faq-detail_item_a_text {
  font-size: 14px;
  line-height: 1.6;
  @media screen and (max-width: 576px) {
    font-size: 13px;
    line-height: 1.4;
  }
  a {
    text-decoration: underline;
    &:hover {
      text-decoration: none;
    }
  }
}

.p__faq-detail_item_a_cta {
  max-width: 100%;
  justify-content: center;
  gap: 20px;
  @media screen and (max-width: 768px) {
    max-width: fit-content;
    display: flex;
    flex-direction: column;
  }
  @media screen and (max-width: 576px) {
    display: block;
    width: 100%;
    text-align: center;
  }
  a {
    padding: 15px 25px;
    &:not(:last-of-type) {
      @media screen and (max-width: 576px) {
        margin-bottom: 30px;
      }
    }
    &::before {
      content: none;
    }
    .o-c__cta-link_green_text {
      font-size: 16px;
      @media screen and (max-width: 576px) {
        font-size: 13px;
      }
    }
  }
  .o-c__cta-link_green {
    width: 320px;
    @media screen and (max-width: 576px) {
      margin-left: -18px;
      width: 260px;
    }
  }
  .o-c__cta-link_green_balloon {
    top: -20px;
    padding: 7px 15px 6px;
    font-size: 12px;
    &::after {
      top: 22px;
    }
  }
  .o-c__cta-link_green_capture {
    left: -22px;
    width: 50px;
  }
  .o-c__cta-link_green_free {
    padding: 5px 8px 3px;
    margin-right: 0;
    font-size: 11px;
  }
  .o-c__cta-link_border {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 320px;
    @media screen and (max-width: 576px) {
      margin-left: -18px;
      width: 260px;
    }
    &::after {
      top: 2px;
    }
  }
  .o-c__cta-link_border_text {
    font-size: 16px;
  }
  .o-c__cta-link_border_balloon {
    top: -20px;
    padding: 7px 15px 6px;
    font-size: 12px;
  }
  .o-c__btn-link {
    padding: 16px 25px 14px;
    background-color: var(--rmeisai-primary);
    @media screen and (max-width: 576px) {
      padding: 16px 10px 14px;
    }
    &::after {
      content: none;
    }
    &:hover {
      @media (hover: hover) {
        background-color: var(--white);
        color: var(--rmeisai-primary);
      }
    }
  }
}

.p__faq-detail_item_a_detail {
  font-size: 14px;
  line-height: 24px;
}

.p__faq-detail_aside {
  margin: 62px 0 0;
  width: 25%;
  max-width: 250px;
  position: sticky;
  top: 135px;
  background: rgba(255, 255, 255, 0);
  @media screen and (max-width: 768px) {
    width: 100%;
    max-width: none;
    padding: 0 20px;
    position: static;
    margin: 30px 0 0;
  }
}

.p__faq-detail_aside_title {
  width: 100%;
  color: var(--white);
  font-size: 19px;
  text-align: center;
  padding: 12px 20px 10px;
  background: var(--rmeisai-primary);
  @media screen and (max-width: 768px) {
    font-size: 16px;
    padding: 12px;
  }
}

.p__faq-detail_aside_filter {
  margin-bottom: 20px;
}

.p__faq-detail_aside_filter_list li {
  position: relative;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  color: var(--black);
  border-bottom: 1px solid var(--gray-bg-01);
  &:hover {
    @media (hover: hover) {
      background-color: var(--rmeisai-bg-sub-03);
    }
  }
  &::after {
    content: "";
    position: absolute;
    z-index: 1;
    display: block;
    width: 8px;
    height: 8px;
    top: 0;
    right: 15px;
    bottom: 0;
    margin: auto;
    transform: rotate(45deg);
    border-top: 2px solid var(--rmeisai-primary);
    border-right: 2px solid var(--rmeisai-primary);
  }
  a {
    color: var(--black);
    display: block;
    padding: 13px 20px 12px;
    text-decoration: none;
    @media screen and (max-width: 768px) {
      font-size: 13px;
      padding: 10px;
    }
  }
}

.p__faq-detail_aside_filter_list li.active {
  background-color: var(--rmeisai-bg-sub-03);
}

.p__faq-detail_aside_cta {
  display: block;
  max-width: 100%;
  gap: inherit;
  margin-top: 50px;
  .o-c__cta-link_green {
    padding: 15px 5px;
    &::before {
      content: none;
    }
  }
  .o-c__cta-link_green_balloon {
    top: -26px;
    padding: 10px 15px 7px;
    font-size: 11px;
  }
  .o-c__cta-link_green_text {
    font-size: 15px;
    @media screen and (max-width: 1024px) {
      font-size: 14px;
    }
  }
}

.p__faq-detail-main {
  margin: 62px 0 0;
  width: calc(100% - 250px);
  padding: 0 60px 0;
  box-sizing: border-box;
  @media screen and (max-width: 768px) {
    width: 100%;
    margin: 50px 0;
    padding: 0;
  }
}

.p__faq-detail-title {
  font-size: 28px;
  font-weight: bold;
  display: flex;
  color: var(--black);
  @media screen and (max-width: 768px) {
    font-size: 18px;
  }
  &::before {
    content: "Q";
    margin: 0 10px 0 0;
  }
}

.p__faq-detail-answer-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 0 0;
  color: var(--rmeisai-primary);
  text-indent: -1em;
  padding-left: 1em;
  @media screen and (max-width: 768px) {
    font-size: 16px;
    margin: 10px 0 0;
  }
  &::before {
    content: "A";
    margin: 0 10px 0 0;
  }
}

.p__faq-detail-answer-detail {
  font-size: 16px;
  line-height: 1.8;
  margin: 20px 0 0;
  @media screen and (max-width: 768px) {
    font-size: 14px;
  }
  > *:not(:first-child) {
    margin: 10px 0 0;
  }
}

.p__faq-detail-related {
  background-color: var(--gray-bg-02);
  border-radius: 10px;
  padding: 40px 50px;
  margin: 40px 0 0;
  @media screen and (max-width: 768px) {
    padding: 36px 25px 40px;
  }
}

.p__faq-detail-related-title {
  color: var(--rmeisai-primary);
  display: block;
  text-align: center;
  font-size: 20px;
  line-height: 24px;
  padding: 0;
  border: none;
  font-weight: bold;
  background: none;
  @media screen and (max-width: 768px) {
    font-size: 16px;
  }
}

.p__faq-detail-related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 36px 0 0 0;
  @media screen and (max-width: 768px) {
    margin: 15px 0 0 0;
  }
}

.p__faq-detail-related-item {
  background: var(--white);
  border-radius: 7px;
  position: relative;
  border: 2px solid var(--white);
  transition: 200ms ease all;
  &:hover {
    border: 2px solid var(--rmeisai-primary);
  }
  + .m-faq-detail-related-item {
    margin: 10px 0 0;
  }
}

.p__faq-detail-related-item__link {
  display: flex;
  padding: 22px 50px 20px 20px;
  color: var(--black);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.3;
  position: relative;
  @media screen and (max-width: 768px) {
    padding: 15px 40px 13px 10px;
    font-size: 12px;
  }
  &::before {
    content: "Q";
    color: var(--rmeisai-primary);
    margin: -4px 7px 0 0;
    font-size: 20px;
    @media screen and (max-width: 768px) {
      margin: -3px 7px 0 0;
      font-size: 16px;
    }
  }
  &::after {
    display: block;
    content: "";
    position: absolute;
    top: 50%;
    right: 25px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--rmeisai-primary);
    border-right: 2px solid var(--rmeisai-primary);
    transform: rotate(45deg);
    margin: -5px 0 0 0;
  }
}

.p__faq-detail-related-item__link-detail .o-c__btn-text {
  bottom: 0;
}

.p__faq-fv {
  padding-bottom: 0;
  border-bottom: 1px solid var(--gray-bg-01);
  .f-l__common-inner {
    padding-bottom: 70px;
    position: relative;
    @media screen and (max-width: 768px) {
      padding: 0;
    }
  }
  .f-l__common-inner.detail_fv {
    padding-bottom: 40px;
    @media screen and (max-width: 768px) {
      padding: 0;
    }
  }
  .o-c__heading-h1 {
    text-align: center;
    font-size: 36px;
    line-height: 1.4;
    font-weight: bold;
    position: relative;
    margin-bottom: 30px;
    @media screen and (max-width: 768px) {
      font-size: 25px;
    }
  }
  .o-c__heading .section__lead {
    font-size: 18px;
    text-align: center;
    letter-spacing: 0px;
    line-height: 1.6;
    @media screen and (max-width: 768px) {
      text-align: left;
      font-size: 16px;
    }
  }
  .f-l__common-inner.detail_fv .o-c__heading-h1 {
    @media screen and (max-width: 768px) {
      margin: 0;
    }
  }
  .o-c__heading {
    @media screen and (max-width: 768px) {
      padding: 0px 20px;
      padding-bottom: 50px;
    }
  }
}

.p__faq-fv_box {
  position: absolute;
  width: 100%;
  bottom: 0;
  @media screen and (max-width: 768px) {
    position: static;
    background: var(--white);
    padding: 20px 0;
  }
}

.p__faq-fv_box_list {
  display: flex;
  justify-content: center;
  @media screen and (max-width: 768px) {
    flex-wrap: wrap;
    width: 100%;
    padding: 0px 20px;
  }
}

.p__faq-fv_box_list_item {
  width: 150px;
  margin-right: 20px;
  @media screen and (max-width: 768px) {
    width: calc((100% - 20px) / 3);
    margin-right: 10px;
  }
  &:last-child {
    display: 0;
  }
  &:nth-child(3n) {
    @media screen and (max-width: 768px) {
      margin-right: 0;
    }
  }
  &:nth-child(n+4) {
    @media screen and (max-width: 768px) {
      margin-top: 15px;
    }
  }
}

.p__faq-fv_box_link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1.6;
  font-weight: bold;
  color: var(--black);
  height: 50px;
  border: 1px solid;
  border-radius: 5px 5px 0px 0px;
  background: var(--rmeisai-bg-sub-03);
  border-color: var(--rmeisai-bg-sub-03);
  border-top: 5px solid var(--rmeisai-bg-sub-03);
  text-decoration: none;
  position: relative;
  cursor: pointer;
  @media screen and (max-width: 768px) {
    border-radius: 5px;
    margin-bottom: 0;
    padding: 8px 0px;
    height: auto;
    font-size: 14px;
    line-height: 1.2;
  }
  &:hover {
    background: var(--rmeisai-bg-sub-03);
    border-color: var(--rmeisai-bg-sub-03);
    border-top-color: var(--rmeisai-bg-sub-03);
  }
}

.p__faq-fv_box_link.active {
  background: var(--white);
  color: var(--rmeisai-primary);
  border-color: var(--gray-bg-01);
  border-bottom-color: var(--white);
  border-top: 5px solid var(--rmeisai-primary);
  @media screen and (max-width: 768px) {
    border-color: var(--gray-bg-01);
    border-top-color: var(--rmeisai-primary);
    border-bottom-color: var(--gray-bg-01);
  }
  &:hover {
    border-color: var(--gray-bg-01);
    border-top-color: var(--rmeisai-primary);
  }
  &::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--white);
    bottom: -2px;
    left: 0;
    @media screen and (max-width: 768px) {
      display: none;
    }
  }
}

.p__faq-flex {
  padding-top: 0;
  .f-l__common-inner {
    display: flex;
    @media screen and (max-width: 768px) {
      flex-direction: column;
    }
  }
}
.p__faq-fv + .p__faq-flex {
  padding-top: 70px;
  @media screen and (max-width: 768px) {
    padding-top: 50px;
  }
}

.p__faq-list {
  flex: 1;
  max-width: calc(100% - 250px);
  padding-right: 50px;
  @media screen and (max-width: 768px) {
    max-width: 100%;
    padding-right: 0;
  }
  .o-m__faq-content_item {
    background-color: var(--rmeisai-bg-sub-03);
    .o-c__btn-text {
      display: block;
      margin-top: 10px;
    }
  }
  .o-m__faq-content_item_answer {
    background-color: var(--white);
  }
  .o-m__faq-content_item_answer_detail._iconA {
    position: relative;
    &::after {
      content: "A";
      position: absolute;
      font-weight: 500;
      left: -25px;
      top: -6px;
      font-size: 22px;
      color: var(--rmeisai-primary);
    }
    .f__common-text_annotation {
      line-height: 1.2;
      display: inline-block;
      margin: 0;
      margin-top: 10px;
      + .f__common-text_annotation {
        margin-top: 0px;
      }
    }
  }
}

.p__faq-menu {
  width: 250px;
  position: sticky;
  height: -moz-fit-content;
  height: fit-content;
  border-radius: 0;
  border: none;
  top: 108px;
  padding-bottom: 100px;
  @media screen and (max-width: 768px) {
    width: 100%;
    padding: 40px 20px 0;
  }
}

.p__faq-menu-title {
  width: 100%;
  background: var(--rmeisai-primary);
  color: var(--white);
  font-size: 1.2rem;
  padding: 12px 20px 10px;
  box-sizing: border-box;
  border-radius: 0;
  text-align: center;
}

.p__faq-menu-box-list {
  li {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--gray-bg-01);
  }
  .filter {
    position: relative;
    &::before {
      position: absolute;
      z-index: 1;
      display: block;
      content: "";
      width: 8px;
      height: 8px;
      top: 0;
      right: 15px;
      bottom: 0;
      margin: auto;
      transform: rotate(45deg);
      border-top: 2px solid var(--rmeisai-primary);
      border-right: 2px solid var(--rmeisai-primary);
    }
  }
  .filter.active,
  .filter:hover {
    background: var(--rmeisai-bg-sub-03);
  }
  .filter .link {
    display: block;
    color: var(--black);
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    padding: 12px 30px 12px 20px;
    text-decoration: none;
  }
}

.p__faq-menu-linkbox {
  margin-top: 10px;
  text-align: center;
}

.p__faq-menu-linkbox-link {
  padding: 15px 40px 12px;
  display: inline-block;
  text-align: center;
  font-size: 15px;
  line-height: 1.4;
  border-radius: 100px;
  font-weight: bold;
  color: var(--white);
  border: 2px solid var(--rmeisai-cta);
  background: var(--rmeisai-cta);
  text-decoration: none;
  &:hover {
    background: var(--white);
    color: var(--rmeisai-cta);
  }
}

.p__faq-btnbox {
  margin-top: 20px;
  @media screen and (max-width: 768px) {
    text-align: center;
  }
}

.p__faq-btn {
  text-align: center;
  font-size: 16px;
  display: inline-block;
  line-height: 2;
  border-radius: 100px;
  font-weight: bold;
  color: var(--white);
  padding: 8px 24px 8px 14px;
  border: 2px solid var(--rmeisai-cta);
  background: var(--rmeisai-cta);
  margin: 0;
  text-decoration: none;
  position: relative;
  min-width: 250px;
  height: 50px;
  @media screen and (max-width: 768px) {
    font-size: 12px;
    width: auto;
    display: inline-block;
    min-width: 80%;
    max-width: 100%;
    height: 44px;
    padding: 7px 15px 7px 10px;
  }
  &::before {
    position: absolute;
    display: block;
    content: "";
    width: 8px;
    height: 8px;
    top: 0;
    right: 35px;
    bottom: 0;
    margin: auto;
    transform: rotate(45deg);
    transition: all ease 0.3s;
    border-top: 2px solid var(--white);
    border-right: 2px solid var(--white);
    @media screen and (max-width: 768px) {
      right: 20px;
      top: -4px;
    }
  }
  &:hover {
    background: var(--white);
    color: var(--rmeisai-cta);
  }
  &:hover::before {
    border-color: var(--rmeisai-cta);
  }
}

.p__faq-category-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.p__faq-category-list_item {
  list-style: none;
}

.p__faq-category-link {
  display: flex;
  align-items: center;
  padding: 14px 40px 14px 16px;
  background: var(--white);
  border: 1px solid var(--gray-bg-01);
  border-radius: 8px;
  color: var(--black);
  text-decoration: none;
  position: relative;
  transition: border-color 200ms ease;
  min-height: 100%;
  box-sizing: border-box;
  @media screen and (max-width: 768px) {
    padding: 12px 30px 12px 12px;
  }
  &:hover {
    @media (hover: hover) {
      color: var(--rmeisai-primary);
      background-color: var(--rmeisai-bg-sub-03);
      &::after {
        border-color: var(--rmeisai-primary);
      }
    }
  }
  &::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--rmeisai-primary);
    border-right: 2px solid var(--rmeisai-primary);
  }
}

.p__faq-category-link_icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  margin-right: 12px;
  @media screen and (max-width: 768px) {
    width: 40px;
    height: 40px;
    margin-right: 8px;
  }
  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.p__faq-category-link_text {
  font-weight: bold;
  line-height: 1.2;
  font-size: 16px;
  @media screen and (max-width: 768px) {
    font-size: 14px;
  }
}
.p__faq-category-link_text--sub {
  font-size: 12px;
}

.p__faq-table_container {
  width: 100%;
  @media screen and (max-width: 768px) {
    overflow: hidden;
    overflow-x: scroll;
  }
}

.p__faq-table {
  margin-top: 20px;
  width: 100%;
  @media screen and (max-width: 768px) {
    width: 130%;
  }
  tr {
    color: var(--black);
    font-weight: 500;
    border-top: 1px solid var(--gray-bg-01);
    border-left: 1px solid var(--gray-bg-01);
    td {
      border-right: 1px solid var(--gray-bg-01);
      border-bottom: 1px solid var(--gray-bg-01);
      vertical-align: top;
      padding: 10px;
      &:first-child {
        @media screen and (max-width: 768px) {
          min-width: 70px;
        }
      }
    }
    td.p__faq-table__td--bg {
      background-color: var(--rmeisai-bg-sub-03);
      font-weight: bold;
    }
    td.--center {
      text-align: center;
    }
    th {
      border-right: 1px solid var(--gray-bg-01);
      border-bottom: 1px solid var(--gray-bg-01);
      vertical-align: top;
      font-weight: 500;
      padding: 10px;
      background-color: var(--rmeisai-bg-sub-02);
      font-weight: bold;
    }
    th.--center {
      text-align: center;
    }
    b {
      display: block;
      margin-bottom: 10px;
      font-weight: bold;
      @media screen and (max-width: 768px) {
        margin-bottom: 5px;
      }
    }
    a:hover {
      color: var(--rmeisai-cta);
    }
  }
}
