@import "./common.css";

/*----flow----*/
#ly_flow {
  margin-bottom: 48px;
}

.bl_flow_list {
  display: flex;
  align-items: stretch;
  justify-content: space-between;

  margin-top: 30px;

  gap: 8px;
}

.bl_flow_item {
  display: flex;
  flex-direction: column;

  width: calc((100% - 8px * 3) / 4);
}

.bl_flow_body {
  flex-grow: 1;

  padding-top: 15px;
  padding-right: 18px;
  padding-bottom: 16px;
  padding-left: 18px;

  border: 0.5px solid var(--rentalBorder);
  background-color: var(--rentalBg);
}

.bl_flow_imgWrapper {
  position: relative;

  width: 100%;
}

.bl_flow_item:not(:last-child) .bl_flow_imgWrapper::after {
  position: absolute;
  z-index: 2;
  top: 44%;
  right: -23px;

  width: 43px;
  height: 47px;
  max-height: 43px;
  padding-top: 16px;

  content: url(../image/rental/allow_right.svg);
  text-align: center;

  border-radius: 23px;
  background-color: var(--main);
}

.bl_flow_item:nth-child(2) .bl_flow_imgWrapper::after {
  right: -28px;
}

.bl_flow_item:nth-child(3) .bl_flow_imgWrapper::after {
  right: -32px;
}

.bl_flow_imgWrapper img {
  width: 100%;
}

.bl_flow_ttl {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 2.8rem;

  margin-bottom: 8px;

  text-align: center;
  letter-spacing: 0.05em;
}

.bl_flow_cont {
  font-size: 1.4rem;
  line-height: 2.1rem;

  text-align: justify;
  letter-spacing: 0.05em;
}

@media screen and (max-width: 768px) {
  #ly_flow {
    margin-bottom: 47px;
  }

  #ly_flow .container {
    margin-right: 10%;
    margin-left: 10%;
  }

  .bl_flow_list {
    align-items: center;
    flex-direction: column;

    margin-top: 23px;

    gap: 61px;
  }

  .bl_flow_item {
    width: 100%;
  }

  .bl_flow_item:not(:last-child) .bl_flow_imgWrapper::after {
    display: none;
  }

  .bl_flow_item:not(:last-child) {
    position: relative;
  }

  .bl_flow_item:not(:last-child)::after {
    position: absolute;
    z-index: 2;
    bottom: 1px;
    left: 50%;

    width: 46px;
    height: 46px;
    padding-top: 16px;

    content: url(../image/rental/allow_right.svg);
    transform: translateX(-50%) translateY(calc(100% + 8px)) rotate(90deg);
    text-align: center;

    border-radius: 23px;
    background-color: var(--main);
  }

  .bl_flow_body {
    padding-right: 15px;
    padding-left: 15px;
  }

  .bl_flow_ttl {
    font-size: 1.6rem;
    line-height: 2.4rem;
  }

  .bl_flow_cont {
    font-size: 1.4rem;
    line-height: 2.1rem;
  }
}

/*----commitment----*/
#ly_commitment {
  margin-bottom: 48px;
  padding-top: 48px;
  padding-bottom: 48px;

  background-image: url(../image/rental/commitment_bg.jpg);
}

#ly_commitment .container {
  margin-right: 31px;
  margin-left: 31px;
}

.bl_commitment_list {
  display: flex;
  justify-content: space-between;

  margin-top: 48px;

  gap: 16px;
}

.bl_commitment_item {
  width: calc((100% - 16px * 2) / 3);
  padding: 16px;

  background-color: var(--white);
}

.bl_commitment_imgWrapper {
  width: 100%;
  margin-bottom: 23px;
}

.bl_commitment_imgWrapper img {
  width: 100%;
}

.bl_commitment_ttl {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 2.8rem;

  margin-bottom: 16px;
  padding-bottom: 8px;

  text-align: justify;
  letter-spacing: 0.05em;

  border-top: 1px solid var(--lightGold);
  border-bottom: 1px solid var(--lightGold);
}

.bl_commitment_cont {
  font-size: 1.4rem;
  line-height: 2.1rem;

  text-align: justify;
  letter-spacing: 0.05em;
}

@media screen and (max-width: 768px) {
  #ly_commitment {
    margin-right: 10px;
    margin-left: 10px;
    padding-bottom: 51px;
  }

  #ly_commitment .container {
    margin-right: 24px;
    margin-left: 24px;
  }

  .bl_commitment_list {
    align-items: center;
    flex-direction: column;

    margin-top: 23px;
  }

  .bl_commitment_item {
    width: 100%;
  }

  .bl_commitment_imgWrapper {
    margin-bottom: 14px;
  }

  .bl_commitment_ttl {
    font-size: 1.6rem;
    line-height: 2.4rem;

    padding-top: 8px;
  }
}

/*----qa----*/
#ly_qa {
  margin-bottom: 50px;
}

#ly_qa .container {
  width: 100%;
}

.bl_qaList {
  margin-top: 31px;
}

.bl_qa {
  margin-bottom: 14px;
}

.bl_qa_checkbox {
  display: none;
}

.bl_qa_label {
  position: relative;

  display: block;

  cursor: pointer;
}

.bl_qa_label::after {
  position: absolute;
  top: 43%;
  right: 30px;

  display: block;

  width: 20px;
  height: 11px;

  content: "";

  background-image: url(../image/rental/qa_arrow.svg);
  background-size: contain;
}

.bl_qa_checkbox:checked + .bl_qa_label::after {
  top: 52%;

  -webkit-transform: rotate(180deg) translateY(7px);
  transform: rotate(180deg) translateY(7px);
}

.bl_qa_qWrapper {
  display: flex;
  align-items: center;

  border: 1px solid var(--textBlack);
  background-color: var(--rightBg);
}

.bl_qa_qIcon {
  position: relative;

  display: flex;
  align-items: center;

  width: 79px;
  height: 79px;

  text-align: center;

  background-color: var(--textBlack);
}

.bl_qa_qIcon p {
  font-size: 3rem;
  font-weight: 600;

  z-index: 2;

  display: block;

  width: 50px;
  height: 50px;
  margin: 0 auto;

  border-radius: 25px;
}

.bl_qa_qBody {
  padding-top: 25px;
  padding-bottom: 25px;
  padding-left: 24px;
}

.bl_qa_qBody p {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 2.8rem;

  letter-spacing: 0.05em;
}

.bl_qa_aWrapper {
  display: flex;
  visibility: hidden;
  overflow: hidden;

  height: 0;
  max-height: 0;
  padding-right: 57px;
  padding-left: 24px;

  transition: 0.2s;
  transition: max-height 0.3s ease, opacity 0.3s ease;

  opacity: 0;
  border-right: 1px solid var(--textBlack);
  border-bottom: 1px solid var(--textBlack);
  border-left: 1px solid var(--textBlack);

  gap: 24px;
}

.bl_qa_checkbox:checked + .bl_qa_label + .bl_qa_aWrapper {
  visibility: visible;

  height: auto;
  max-height: 1000px;

  opacity: 1;
}

.bl_qa_checkbox:not(:checked) + .bl_qa_label + .bl_qa_aWrapper {
  transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
}

.bl_qa_aInner {
  display: flex;
  align-items: center;

  margin-bottom: 7px;
}

.bl_qa_aIcon {
  font-size: 3rem;

  display: flex;
  align-items: center;

  min-width: 50px;
  margin-top: 5px;

  text-align: center;

  border-radius: 25px;
  background-color: var(--main);
}

.bl_qa_aIcon p {
  display: block;

  width: 50px;
  height: 50px;
  margin: 0 auto;
  padding-top: 5px;
}

.bl_qa_aBody {
  width: 650px;
  margin-top: 30px;
  margin-bottom: 24px;
  margin-left: 23px;
}

.bl_qa_aBody p {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 2.4rem;

  text-align: justify;
  letter-spacing: 0.02em;
}

@media screen and (max-width: 768px) {
  #ly_qa {
    margin-bottom: 45px;
  }

  #ly_qa .container {
    width: unset;
    margin-right: 10px;
    margin-left: 10px;
  }

  .bl_qaList {
    margin-top: 24px;
  }

  .bl_qa {
    margin-bottom: 7px;
  }

  .bl_qa_label::after {
    right: 19px;

    width: 12px;
    height: 7px;
  }

  .bl_qa_qIcon {
    width: 49px;
    height: 49px;
    padding-right: 4px;
  }

  .bl_qa_qIcon p {
    font-size: 2rem;
    line-height: 3rem;

    height: unset;
  }

  .bl_qa_qBody {
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 8px;
  }

  .bl_qa_qBody p {
    font-size: 1.6rem;
    line-height: 2.4rem;

    margin-bottom: 0;
  }

  .bl_qa_aWrapper {
    padding-right: 10px;
    padding-left: 8px;
  }

  .bl_qa_aInner {
    margin-bottom: 8px;
  }

  .bl_qa_aBody {
    width: calc(100% - 50px);
    margin-top: 16px;
    margin-bottom: 7px;
    margin-left: 8px;

    border-radius: 20px;
  }

  .bl_qa_aIcon {
    font-size: 2rem;

    min-width: 40px;
    margin-top: 9px;
  }

  .bl_qa_aIcon p {
    width: 40px;
    height: 40px;
  }
}

/*--------------------------*/

/*----banner----*/
#ly_rentalBanner {
  margin-bottom: 48px;
}

@media screen and (max-width: 768px) {
  #ly_rentalBanner {
    margin-right: 12.5px;
    margin-left: 12.5px;
  }
}
