/*---------------------
　MV　
-----------------------*/

@media (max-width: 1100px) {
  .lypoc_mv {
    background-image: url('https://hachimandental.com/sitemanager/wp-content/uploads/2025/10/mv_tb.webp') !important;
    background-size: cover !important;
    background-position: center top !important;
    aspect-ratio: 135 / 45 !important;
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    display: block !important;
  }

  .lypoc_mv .mv_logo img {
    position: absolute !important;
    top: 10% !important;
    left: 8% !important;
    right: auto !important;
    bottom: auto !important;
    width: 200px !important;
    z-index: 0 !important;
    margin: auto !important;
    text-align: left !important;
  }

  .lypoc_mv img.wp-block-cover__image-background {
    display: none !important;
  }

  .lypoc_mv .wp-block-cover__inner-container {
    height: 100%;
  }
}

@media (max-width: 767px) {
  .lypoc_mv {
    background-image: url('https://hachimandental.com/sitemanager/wp-content/uploads/2025/10/mv_sp.webp') !important;
    background-size: cover !important;
    background-position: center top !important;
    aspect-ratio: 780 / 952 !important;
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    display: block !important;
  }

  .lypoc_mv .mv_logo img {
    position: absolute !important;
    top: 7% !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 80% !important;
    max-width: 300px;
    z-index: 0 !important;
    margin: auto !important;
    text-align: left !important;
  }

  .lypoc_mv img.wp-block-cover__image-background {
    display: none !important;
  }

  .lypoc_mv .wp-block-cover__inner-container {
    height: 100%;
  }
}

.lypoc h1 {
  color: #222;
}

@media (max-width: 1100px) {
  .lypoc h1 {
    position: absolute !important;
    top: 45% !important;
    left: 8% !important;
    right: auto !important;
    bottom: auto;
    z-index: 0 !important;
    margin: auto !important;
    text-align: left !important;
  }
}

@media (max-width: 767px) {
  .lypoc h1 {
    position: absolute !important;
    top: 31% !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto;
    z-index: 0 !important;
    margin: auto !important;
    text-align: center !important;
  }
}

/*---------------------
　汎用
-----------------------*/
.text-varied span:not([class]) {
  font-size: 0.6em;
}

.text-dot {
  position: relative;
  font-style: normal;
}

.text-dot::before {
  content: '';
  background-color: #ffffff8c;
  width: 10px;
  height: 10px;
  border-radius: 10px;
  position: absolute;
  top: -20px;
  bottom: auto;
  left: 0;
  right: 0;
  z-index: 10;
  margin: auto;
  display: block;
}

/*---------------------
　リポシーとは
-----------------------*/
.about_bg {
  background-size: cover !important;
  background-position: center !important;
}

/*---------------------
こんなかたにおすすめ
-----------------------*/
.recommend {
  background-position: top right !important;
  background-repeat: no-repeat !important;
  background-size: 400px !important;
}

@media (max-width: 767px) {
  .recommend_list {
    width: 80%;
  }
}

.recommend_list>*:nth-child(2) {
  padding-top: 32px;
}

@media (max-width: 767px) {
  .recommend_list>*:nth-child(2) {
    padding-top: 0;
  }
}

.recommend_list>*:nth-child(3) {
  padding-top: 64px;
}

@media (max-width: 767px) {
  .recommend_list>*:nth-child(3) {
    padding-top: 0;
  }
}

.recommend_list>*:nth-child(4) {
  padding-top: 96px;
}

@media (max-width: 767px) {
  .recommend_list>*:nth-child(4) {
    padding-top: 0;
  }
}

/*---------------------
　特別価格
-----------------------*/
@media (max-width: 767px) {
  .spec_list>*:nth-child(2) {
    margin-top: 96px;
  }
}

/*---------------------
FAQ
-----------------------*/
.faq h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 28px;
}

@media (max-width: 767px) {
  .faq h3 {
    font-size: 22px;
  }
}

.faq_list>*:nth-child(2) {
  padding-top: 64px;
}

@media (max-width: 767px) {
  .faq_list>*:nth-child(2) {
    padding-top: 0;
  }
}

.faq_list_item {
  padding: 4vw;
}

@media (max-width: 767px) {
  .faq_list_item {
    padding: 4vw;
  }
}


.essence_link a, .essence_link a:visited {
  color: white;
  text-decoration: none;
}

/*---------------------
エッセンス使い方
-----------------------*/
.howto h3 {
  color: #966350;
  font-family: var(--serif);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.howto h4 {
  color: #A57A6A;
  font-family: var(--serif);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  display: block;
  width: fit-content;
  padding: 8px 24px;
  border-bottom: 2px solid #A57A6A;
}

@media (max-width: 767px) {
  .howto h4 {
    text-align: center;
    margin: auto;
    margin-top: 48px;
  }
}

@media (max-width: 767px) {
  .howto_lead {
    text-align: center;
  }
}