.mainvisual {
  background-image: url(../img/mv-sp.jpg);
}

h2 {
  width: 85.33%;
  min-width: 300px;
  margin: 0 auto 30px;
  font-size: 3rem;
  line-height: 1.33;
}
h2 span {
  display: block;
  font-size: 1.6rem;
}

@media screen and (min-width: 768px) {
  .mainvisual {
    background-image: url(../img/mv-bg.jpg);
  }
  .mainvisual::after {
    background-image: url(../img/mv.jpg);
  }

  h2 {
    width: 1060px;
    font-size: 5rem;
  }
  h2 br {
    display: none;
  }
  h2 span {
    font-size: 2.7rem;
  }
}
.myhome {
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  background: url(../img/img01.png) right 8px top 14px no-repeat;
  background-size: 98px 110px;
}
.myhome h2 {
  margin-top: 32px;
}
.myhome .textbox {
  width: 85.33%;
  min-width: 300px;
  margin: 0 auto;
}
.myhome .textbox p + p {
  padding-top: 70px;
}
.myhome .leadbox > .textbox:first-child p:nth-child(2) {
  background: url(../img/img04.svg) right 37px top 0 no-repeat;
}
.myhome .leadbox > .textbox:first-child p:nth-child(2)::before {
  content: "";
  position: absolute;
  z-index: -1;
  background: url(../img/hexagon01.png) right -30px top no-repeat;
  background-size: 169px auto;
  width: 100%;
  height: 185px;
  right: 0;
  top: 464px;
}
.myhome .leadbox > .textbox:first-child p:nth-child(3) {
  background: url(../img/img05.svg) 18px 22px no-repeat;
}
.myhome .photobox01 {
  position: relative;
  margin: 45px auto 0;
  padding-bottom: 16.53%;
}
.myhome .photobox01::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -31px;
  top: -102px;
  width: 200px;
  height: 200px;
  background: url(../img/circle01.png) 0 0 no-repeat;
  background-size: 200px;
}
.myhome .photobox01 .photo:first-child {
  border-radius: 20px 0 0 20px;
  overflow: hidden;
  width: 69.33%;
  margin-left: auto;
}
.myhome .photobox01 .photo:last-child {
  border-radius: 10px;
  overflow: hidden;
  width: 42.66%;
  position: absolute;
  left: 5.33%;
  bottom: 0;
}
.myhome .photobox01 + .textbox p:first-child {
  padding-top: 70px;
  background: url(../img/img06.svg) right 26px top 18px no-repeat;
}
.myhome .photobox01 + .textbox p:nth-child(2) {
  background: url(../img/img07.svg) left 36px top 20px no-repeat;
}
.myhome .photobox02 {
  position: relative;
  margin-top: 45px;
  padding-bottom: 26.66%;
}
.myhome .photobox02::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -31px;
  top: -102px;
  width: 200px;
  height: 200px;
  background: url(../img/circle01.png) 0 0 no-repeat;
  background-size: 200px;
}
.myhome .photobox02::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -37px;
  bottom: -16px;
  width: 169px;
  height: 185px;
  background: url(../img/hexagon02.png) 0 0 no-repeat;
  background-size: 169px auto;
}
.myhome .photobox02 .photo:first-child {
  border-radius: 0 20px 20px 0;
  width: 69.33%;
  overflow: hidden;
}
.myhome .photobox02 .photo:last-child {
  position: absolute;
  border-radius: 10px;
  overflow: hidden;
  width: 49.06%;
  bottom: 0;
  right: 3.73%;
}
.myhome .photobox02 + .textbox {
  position: relative;
  z-index: 0;
  padding-top: 70px;
}
.myhome .photobox02 + .textbox::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -65px;
  top: 253px;
  background: url(../img/circle02.png) 0 0 no-repeat;
  background-size: 128px;
  width: 128px;
  height: 128px;
}
.myhome .photobox02 + .textbox p + p {
  background: url(../img/img08.svg) center 20px no-repeat;
}
@media screen and (min-width: 768px) {
  .myhome {
    background-size: 121px 136px;
    background-position: calc(50% + 402px) 76px;
  }
  .myhome h2 {
    margin: 90px auto 72px;
  }
  .myhome .leadbox {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 1060px;
    margin: 0 auto;
  }
  .myhome .textbox {
    flex: 0 0 auto;
    align-self: flex-start;
    width: 520px;
    margin: 0;
    line-height: 2;
  }
  .myhome .leadbox > .textbox:first-child {
    padding-bottom: 184px;
    background: url(../img/img01-pc.svg) center bottom no-repeat;
  }
  .myhome .leadbox > .textbox:first-child p:nth-child(2) {
    background-image: none;
  }
  .myhome .leadbox > .textbox:first-child p:nth-child(2)::before {
    display: none;
  }
  .myhome .leadbox > .textbox:first-child p:nth-child(3) {
    background-image: none;
  }
  .myhome [class^="photobox"] {
    flex: 0 0 460px;
  }
  .myhome .photobox01 {
    align-self: flex-start;
    padding-bottom: 10px;
    margin-right: 0;
  }
  .myhome .photobox01::before {
    display: none;
  }
  .myhome .photobox01 .photo:first-child {
    width: auto;
    border-radius: 20px;
  }
  .myhome .photobox01 .photo:last-child {
    position: static;
    margin-top: 50px;
    width: auto;
    border-radius: 20px;
  }
  .myhome .photobox01 + .textbox {
    order: 1;
  }
  .myhome .photobox01 + .textbox p:first-child {
    background-image: none;
    padding-top: 120px;
  }
  .myhome .photobox01 + .textbox p:nth-child(2) {
    background-image: none;
  }
  .myhome .photobox02 {
    align-self: flex-start;
    z-index: 0;
    order: 0;
    margin-top: 60px;
    padding-bottom: 0;
  }
  .myhome .photobox02::before {
    background-image: url(../img/hexagon03.svg);
    background-size: 368px auto;
    width: 368px;
    height: 402px;
    left: -213px;
    top: -156px;
  }
  .myhome .photobox02::after {
    width: 100%;
    height: 182px;
    background: url(../img/img02-pc.svg) center bottom no-repeat;
    left: 0;
    bottom: -214px;
  }
  .myhome .photobox02 .photo:first-child {
    border-radius: 20px;
    margin-left: 40px;
    width: 400px;
  }
  .myhome .photobox02 .photo:last-child {
    right: auto;
    left: 600px;
    bottom: -586px;
    width: 460px;
    border-radius: 20px;
  }
  .myhome .photobox02 + .textbox {
    order: 1;
    padding-top: 180px;
    z-index: -1;
  }
  .myhome .photobox02 + .textbox::before {
    background-image: url(../img/hexagon03.svg);
    background-size: 368px auto;
    width: 368px;
    height: 402px;
    right: -770px;
    top: 246px;
  }
  .myhome .photobox02 + .textbox p + p {
    background-image: none;
  }
}

.advantages {
  padding: 35px 0 98px;
}
.advantages [class$="advantagelist"] {
  position: relative;
  z-index: 0;
}
.advantages [class$="advantagelist"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 80%;
  height: calc(100% - 50px);
  left: 0;
  bottom: 0;
  background: url(../../img/dot.png) 0 0 repeat;
  background-size: 14px 14px;
}
.advantages .disadvantagelist {
  margin-top: 28px;
}
.advantages .disadvantagelist::before {
  background-image: url(../img/dot-gray.png);
  left: auto;
  right: 0;
  bottom: -50px;
}
.advantages [class$="advantage"] {
  width: 90.66%;
  min-width: 300px;
  margin: 0 auto;
  background-image: url(../img/box-bg01.png), url(../img/box-bg02.png);
  background-repeat: no-repeat;
  background-position: center top, center bottom;
  background-size: 100% auto;
  padding: 5.33% 0 5.86%;
}
.advantages [class$="advantage"] > .inner {
  background: url(../img/box-bg03.png) center repeat-y;
  background-size: 100% auto;
}
.advantages [class$="advantage"] + [class$="advantage"] {
  margin-top: 8px;
}
.advantages [class$="advantage"] h3 {
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 20px;
  min-height: 103px;
  font-size: 2.2rem;
  line-height: 1.55;
}
.advantages [class$="advantage"] h3 > span {
  display: block;
  flex: 0 0 auto;
}
.advantages [class$="advantage"] h3 .num {
  margin-bottom: 4px;
}
.advantages [class$="advantage"] .textbox {
  padding: 0 20px 28px;
}
.advantages .advantage h3 {
  background-position: 12px bottom;
  padding-left: 110px;
  padding-right: 22px;
  padding-bottom: 8px;
}
.advantages .advantage:first-child h3 {
  background-image: url(../img/person01.png);
  background-size: auto 115px;
  min-height: 115px;
}
.advantages .advantage:nth-child(2) h3 {
  background-image: url(../img/person02.png);
  background-size: auto 103px;
}
.advantages .advantage:last-child h3 {
  background-image: url(../img/person03.png);
  background-size: auto 103px;
}
.advantages .disadvantage h3 {
  padding-left: 20px;
  padding-right: 110px;
}
.advantages .disadvantage:first-child h3 {
  background-image: url(../img/person04.png);
  background-position: right 9px bottom;
  background-size: auto 107px;
  min-height: 107px;
}
.advantages .disadvantage:nth-child(2) h3 {
  background-image: url(../img/person05.png);
  background-position: right 28px bottom;
  background-size: 86px auto;
}
.advantages .disadvantage:last-child h3 {
  background-image: url(../img/person06.png);
  background-position: right 16px bottom;
  background-size: auto 103px;
}
@media screen and (min-width: 768px) {
  .advantages {
    padding: 100px 0 95px;
  }
  .advantages h2 {
    margin-bottom: 50px;
  }
  .advantages h2 span {
    margin-bottom: 8px;
  }
  .advantages [class$="advantagelist"] {
    display: flex;
    justify-content: center;
  }
  .advantages [class$="advantagelist"]::before {
    width: 91.25%;
    height: 310px;
    bottom: 25px;
  }
  .advantages .disadvantagelist {
    margin-top: 66px;
  }
  .advantages .disadvantagelist::before {
    width: 90.27%;
    height: 390px;
    bottom: -50px;
  }
  .advantages [class$="advantage"] {
    background-size: 344px auto;
    flex: 0 0 344px;
    display: flex;
    padding: 20px 0 22px;
    margin: 0;
  }
  .advantages [class$="advantage"] + [class$="advantage"] {
    margin-top: 0;
    margin-left: 18px;
  }
  .advantages [class$="advantage"] > .inner {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
  }
  .advantages [class$="advantage"]:nth-child(n) h3 {
    flex: 0 0 auto;
    min-height: 115px;
    justify-content: center;
    padding-bottom: 0;
  }
  .advantages [class$="advantage"]:first-child h3 {
    padding-bottom: 14px;
  }
  .advantages [class$="advantage"] .textbox {
    flex: 0 0 auto;
    line-height: 2;
  }
  .advantages .advantage:first-child h3 {
    padding-bottom: 0;
  }
  .advantages .disadvantage:nth-child(n) h3 {
    min-height: 107px;
    padding-bottom: 0;
    justify-content: flex-start;
  }
}

.qa {
  position: relative;
  padding: 100px 0;
  background: url(../img/img03.png) right 20px top 38px no-repeat;
  background-size: 157px 110px;
}
.qa dl {
  margin: 0 15px;
}
.qa dl + dl {
  background: url(../img/line.png) right top repeat-x;
  background-size: 8px 4px;
  padding-top: 32px;
  margin-top: 28px;
}
.qa dt {
  background: url(../img/icon-q.png) 0 0 no-repeat;
  background-size: 34px 37px;
  min-height: 37px;
  margin-bottom: 18px;
  padding-top: 8px;
  padding-left: 42px;
  font-weight: bold;
}
.qa dd {
  background: url(../img/icon-a.png) 0 0 no-repeat;
  background-size: 34px 37px;
  min-height: 37px;
  padding-top: 8px;
  padding-left: 42px;
}
@media screen and (min-width: 768px) {
  .qa {
    width: 1060px;
    margin: 0 auto;
    padding: 102px 0 92px;
    background-size: 164px 115px;
    background-position: right 50px top 102px;
  }
  .qa h2 {
    text-align: center;
  }
  .qa h2 span {
    margin-bottom: 4px;
  }
  .qa dl {
    margin: 0 auto;
    width: 975px;
  }
  .qa dt {
    padding-left: 50px;
  }
  .qa dd {
    padding-left: 50px;
  }
}
