@charset "UTF-8";

.kaiyou-sankotsu__h1Block {
  margin-bottom: 120px;
  background: url(/butsudan/assets/img/memorial/kaiyou-sankotsu/mv-bg.webp)
    no-repeat bottom / cover;
  h1 {
    position: relative;
    font-weight: 600;
    letter-spacing: 0.2em;
    span {
      position: relative;
      &::before {
        content: "";
        background: url(/butsudan/assets/img/memorial/kaiyou-sankotsu/h1-bg.webp)
          no-repeat center / contain;
        position: absolute;
        left: -61px;
        top: 7px;
        width: 164px;
        height: 127px;
      }
    }
  }
}
.kaiyou-sankotsu__h1BlockInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(800 / 1200 * 100vw);
  max-width: 800px;
  height: 100%;
  margin-inline: auto;
}
.kaiyou-sankotsu__h1BlockText {
  display: flex;
  /* align-items: center; */
  justify-content: center;
  flex-direction: column;
  gap: 30px;
  flex: 0 0 412px;
  height: auto;
  aspect-ratio: 412 / 399;
  padding-left: 60px;
  /* padding-inline: 60px 85px; */
  background: url(/butsudan/assets/img/memorial/kaiyou-sankotsu/h1BlockText-bg.webp)
    no-repeat center / cover;
}
.kaiyou-sankotsu__h1BlockTextTitle {
  display: grid;
  gap: 10px;
  font-weight: bold;
  line-height: 1;
}

/*--------------------------------*/
.h1BlockTextTitle-row1 {
  width: fit-content;
  font-size: 2.4rem;
  padding-bottom: 8px;
  border-bottom: 2px solid #c95981;
}
.h1BlockTextTitle-row2 {
  white-space: nowrap;
}
.h1BlockTextTitle-amount {
  color: #c95981;
  font-weight: bold;
}
.amount-unit-price {
  font-size: 3em; /* 54px */
}
.price-comma {
  font-size: 0.74em; /* 40px */
}
.ls-n-1 {
  letter-spacing: -0.4rem;
}
.ls-n-2 {
  letter-spacing: -0.4rem;
}
.amount-unit-yen {
  margin-left: -0.2rem;
  font-size: 1.333em; /* 24px */
  font-weight: 900;
}
.ls-n-3 {
  letter-spacing: -0.9rem;
}
.amount-unit-tax {
  font-size: 0.888em; /* 16px */
}
.ls-n-4 {
  letter-spacing: -1rem;
}
.h1BlockTextTitle-suffix {
  letter-spacing: -0.1rem;
  margin-right: 0.2rem;
}
/*--------------------------------*/

.kaiyou-sankotsu__h1BlockTextDesc {
  letter-spacing: -0.05em;
  line-height: 1.7;
}
.h1BlockTextDesc-row1{
  display: block;
  white-space: nowrap;
}
@media (min-width: 769px) {
  .kaiyou-sankotsu__h1BlockText {
    > * {
      width: 75%;
    }
  }
}
@media (max-width: 68.7rem) {
  .kaiyou-sankotsu__h1Block {
    width: 90%;
    height: 500px;
  }
  .kaiyou-sankotsu__h1BlockText {
    flex: 0 0 380px;
    padding-left: 60px;
  }

  /*--------------------------------*/
  .h1BlockTextTitle-row1 {
    font-size: 2rem;
  }
  /*--------------------------------*/
}
@media (max-width: 960px) {
  .kaiyou-sankotsu__h1BlockText {
    flex: 0 0 330px;
    padding-left: 55px;
  }

  /*--------------------------------*/
  .h1BlockTextTitle-row1 {
    font-size: 1.8rem;
  }
  .amount-unit-price {
    font-size: 2.5em;
  }
  /*--------------------------------*/
}
@media (max-width: 768px) {
  .kaiyou-sankotsu__h1Block {
    width: 100%;
    height: auto;
    aspect-ratio: 750 / 708;
    margin-bottom: 10px;
    background-image: url(/butsudan/assets/img/memorial/kaiyou-sankotsu/mv-bg-sp.webp);
    background-size: 100%;
    background-position: top;
    h1 {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      width: 100%;
      height: auto;
      aspect-ratio: 650 / 375;
      padding-inline: calc(50 / 750 * 100vw);
      font-size: 2.7rem;
      span {
        &::before {
          top: -30px;
          left: -70px;
          transform: scale(0.5);
        }
      }
    }
  }
  .kaiyou-sankotsu__h1BlockInner {
    flex-direction: column;
    width: 100%;
    padding-inline: calc(50 / 750 * 100vw);
    padding-bottom: calc(190 / 750 * 100vw);
  }
  .kaiyou-sankotsu__h1BlockText {
    background: transparent;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 100%;
    height: auto;
    aspect-ratio: 650 / 230;
    padding: 0;
    flex: none;
  }
  .kaiyou-sankotsu__h1BlockTextTitle {
    gap: 4px;
  }
  .h1BlockTextTitle-row1 {
    width: 100%;
    padding-bottom: 4px;
    border-width: 1px;
    font-size: 1.6rem;
  }

  /*--------------------------------*/
  .h1BlockTextTitle-row2{
    letter-spacing: -0.05rem;
  }
  .amount-unit-price {
    font-size: 1.6875em; /* 27px */
  }
  .ls-n-1 {
    letter-spacing: -0.05em;
  }
  .ls-n-2 {
    letter-spacing: -0.1em;
  }
  .amount-unit-yen{
    font-size: 1em;
  }
  /*--------------------------------*/

  .kaiyou-sankotsu__h1BlockTextDesc {
    letter-spacing: 0;
    font-size: 1.2rem;
    line-height: 1.5;
  }
}

/* こんな方におすすめ
----------------------------------------------------- */
.kaiyou-sankotsu__top {
  padding-block: 75px 70px;
  background-color: #f9f7f3;
}
.kaiyou-sankotsu__topTitle {
  margin-bottom: 40px;
  &::after {
    display: none;
  }
}
.kaiyou-sankotsu__topList {
  display: grid;
  gap: 8px;
  width: fit-content;
  margin-inline: auto;
  font-weight: bold;
  line-height: 2;
  li {
    line-height: 1.625;
  }
}
@media (min-width: 68.8rem) {
  .kaiyou-sankotsu__topTitle {
    font-size: 3.2rem;
  }
  .kaiyou-sankotsu__topList {
    font-size: 2rem;
  }
}
@media (max-width: 68.7rem) {
  .kaiyou-sankotsu__top {
    padding: 35px calc(60 / 750 * 100vw);
  }
  .kaiyou-sankotsu__topTitle {
    margin-bottom: 10px;
  }
  .kaiyou-sankotsu__topList {
    gap: 4px;
  }
}

/* コース紹介
----------------------------------------------------- */
@media (max-width: 768px) {
  .memorial__section.course {
    padding-top: 70px;
  }
}
@media (max-width: 768px) {
  .memorial__section.course {
    .memorial__lead {
      text-align: center;
    }
  }
}

.kaiyou-sankotsu__flowchart {
  width: 1200px;
  display: grid;
  gap: 90px;
  margin-inline: auto;
}
.flowchart__section {
  position: relative;
  display: grid;
  place-content: center;
  height: 100px;
  background-color: #ffffff;
  border: 2px solid #cecece;
  border-radius: 10px;
}
.flowchart__title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 2.4rem;
  font-weight: bold;
  span {
    font-size: 1.333em;
    color: #c95981;
  }
}
.flowchart__branches {
  position: absolute;
  top: 87px;
  width: 100%;
}
.flowchart__branche {
  position: absolute;
  display: grid;
  place-items: center;
  width: 62px;
  height: auto;
  aspect-ratio: 1 / 1;
  font-weight: bold;
  &::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
  }
}
.flowchart__branche.-yes {
  color: #c95981;
  background-color: #ffffff;
  border: 4px solid #c95981;
  border-radius: 50%;
  &::after {
    top: 56px;
    width: 4px;
    background-color: #c95981;
  }
}
.flowchart__branche.-no {
  color: #333a72;
  background: url(/butsudan/assets/img/memorial/kaiyou-sankotsu/flowchart-no-bg.webp)
    no-repeat center / contain;
  &::after {
    top: 66px;
    width: 4px;
    background: url(/butsudan/assets/img/memorial/kaiyou-sankotsu/flowchart-no-line.webp)
      no-repeat top / auto;
  }
}

.flowchart__section.-q1 {
  width: 100%;
  .flowchart__branche.-yes {
    left: 270px;
    &::after {
      height: 45px;
    }
  }
  .flowchart__branche.-no {
    right: 261px;
    &::after {
      top: 58px;
      transform: translateX(-2px);
      width: 156px;
      height: 468px;
      background: url(/butsudan/assets/img/memorial/kaiyou-sankotsu/flowchart-q1-no-line.webp)
        no-repeat top / auto;
    }
  }
}
.flowchart__section.-q2 {
  width: 600px;
  .flowchart__branche.-yes {
    left: 110px;
    &::after {
      height: 300px;
    }
  }
  .flowchart__branche.-no {
    right: 110px;
    &::after {
      height: 45px;
    }
  }
}
.flowchart__section.-q3 {
  width: 600px;
  margin-inline: auto;
  .flowchart__branche.-yes {
    left: 115px;
    &::after {
      height: 110px;
    }
  }
  .flowchart__branche.-no {
    right: 114px;
    &::after {
      height: 110px;
    }
  }
}
.flowchart__results {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 63px;
}
.flowchart__result {
  display: flex;
  flex-direction: column;
  background-color: #f9f7f3;
}
.flowchart__resultTerm {
  display: grid;
  place-items: center;
  gap: 15px;
  margin-top: -40px;
  font-size: 2rem;
  font-weight: bold;
}
.flowchart__resultLabel {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  height: auto;
  aspect-ratio: 1 / 1;
  background-color: #c95981;
  color: #ffffff;
  font-size: 4.5rem;
  font-weight: bold;
  border-radius: 50%;
  /* &::after {
    content: "";
    width: 2px;
    height: 2px;
    position: absolute;
    top: -7px;
    left: 0;
    right: 0;
    margin: auto;
    background-color: #a7e7b7;
  } */
  span {
    position: relative;
    top: -6px;
  }
}
.flowchart__resultTermText {
  position: relative;
  top: 15px;
}
.flowchart__resultDesc {
  flex: 1;
  display: grid;
  place-content: end;
  justify-content: stretch;
  padding: 0 30px 30px;
  text-align: center;
}
.resultDesc-row1 {
  margin-bottom: 15px;
  font-weight: bold;
}
.resultDesc-row2 {
  font-size: 4.5rem;
  font-weight: bold;
  color: #c95981;
  white-space: nowrap;
  line-height: 1;
  .price-unit {
    font-size: 0.533em;
  }
}
.resultDesc-row3 {
  width: 100%;
  margin-top: 23px;
  padding-top: 15px;
  border-top: 1px solid #b5b5b5;
  text-align: left;
  li {
    white-space: nowrap;
  }
}

.flowchartQ2-title-br,
.flowchartQ3-title-br {
  display: none;
}
.kaiyou-sankotsu__courseNote {
  margin-top: 60px;
  text-align: center;
}
.courseNote-low1 {
  font-size: 2rem;
  font-weight: bold;
}
@media (max-width: 1440px) {
  .kaiyou-sankotsu__flowchart {
    width: 1100px;
  }
  .flowchart__section.-q1 {
    .flowchart__branche.-no {
      right: 249px;
    }
  }
  .flowchart__section.-q2 {
    width: 600px;
    .flowchart__branche.-yes {
      left: 97px;
    }
  }
  .flowchart__section.-q3 {
    width: 600px;
    margin-inline: auto;
    .flowchart__branche.-yes {
      left: 127px;
    }
    .flowchart__branche.-no {
      right: 127px;
    }
  }
  .flowchart__results {
    gap: 15px;
  }
  #result-d {
    .resultDesc-row3 li:first-of-type {
      letter-spacing: -0.05em;
    }
  }
  .resultDesc-row3 {
    font-size: 1.7rem;
  }
}
@media (max-width: 1366px) {
  .kaiyou-sankotsu__flowchart {
    width: 980px;
  }
  .flowchart__section.-q1 {
    .flowchart__branche.-no {
      right: 236px;
    }
  }
  .flowchart__section.-q2 {
    width: 600px;
    .flowchart__branche.-yes {
      left: 84px;
    }
  }
  .flowchart__section.-q3 {
    width: 600px;
    margin-inline: auto;
    .flowchart__branche.-yes {
      left: 143px;
    }
    .flowchart__branche.-no {
      right: 143px;
    }
  }
  .flowchart__resultDesc {
    padding: 0 20px 25px;
  }
  .resultDesc-row2 {
    font-size: 4.2rem;
  }
}

@media (min-width: 68.8rem) {
  .flowchart__branche {
    font-size: 2rem;
  }
  .flowchart__branche {
    .flowchart__resultLabel {
      display: none;
    }
  }
  .flowchart__results--sp {
    display: none;
  }
  .resultDesc-row1 {
    font-size: 2rem;
  }
}
@media (max-width: 68.7rem) {
  .kaiyou-sankotsu__flowchart {
    gap: 70px;
    width: 800px;
  }
  .flowchart__section {
    height: 63px;
  }
  .flowchart__section.-q2 {
    width: 400px;
  }
  .flowchart__section.-q3 {
    width: 400px;
  }
  .flowchart__title {
    align-items: baseline;
    font-size: 14px;
    span {
      position: relative;
      top: 1px;
      line-height: 1;
    }
  }
  .flowchart__branches {
    top: 55px;
  }
  .flowchart__branche {
    width: 46px;
    .flowchart__resultLabel {
      position: absolute;
    }
  }
  .flowchart__branche.-yes {
    border-width: 2px;
    &::after {
      top: 42px;
      width: 2px;
    }
  }
  .flowchart__branche.-no {
    background-image: url(/butsudan/assets/img/memorial/kaiyou-sankotsu/flowchart-no-bg-sp.webp);
    background-size: 100%;
    &::after {
      top: 48px;
      width: 2px;
      height: 34px;
      background-image: url(/butsudan/assets/img/memorial/kaiyou-sankotsu/flowchart-no-line-sp.webp);
      background-size: 100%;
    }
  }

  /*
    .flowchart__resultLabelの位置調整

    flowchart__section　height 63px * 3 = 189px
    gap 70px * 2 = 140px
    Q3からflowchart__resultLabelまで　81px

    189px + 140px + 81px = 410px
  */
  .flowchart__section.-q1 {
    .flowchart__branche.-yes {
      left: 177px;
    }
    .flowchart__branche.-no {
      right: 123px;
      &::after {
        top: 48px;
        background-image: url(/butsudan/assets/img/memorial/kaiyou-sankotsu/flowchart-q1-no-line-sp.webp);
        width: 51px;
        height: 302px;
        background-size: 100%;
      }
      .flowchart__resultLabel {
        bottom: -347px; /* 410px - 63px */
        transform: translateX(48px);
      }
    }
  }
  .flowchart__section.-q2 {
    .flowchart__branche.-yes {
      left: 75px;
      &::after {
        height: 175px;
      }
      .flowchart__resultLabel {
        bottom: -214px; /* 410px - 196px */
      }
    }
    .flowchart__branche.-no {
      right: 75px;
    }
  }
  .flowchart__section.-q3 {
    .flowchart__branche.-yes {
      left: 75px;
      &::after {
        height: 41px;
      }
      .flowchart__resultLabel {
        bottom: -81px; /* 410px - 329px */
      }
    }
    .flowchart__branche.-no {
      right: 75px;
      .flowchart__resultLabel {
        bottom: -81px; /* 410px - 329px */
      }
    }
  }
  .flowchart__results--sp {
    display: flex;
    justify-content: space-around;
    .flowchart__resultLabel {
      span {
        top: -1px;
      }
    }
  }
  .flowchart__results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -30px;
  }
  .flowchart__resultLabel {
    width: 46px;
    font-size: 2.8rem;
  }
  .flowchart__results {
    gap: 40px;
    margin-inline: auto;
    .flowchart__resultLabel {
      position: absolute;
      top: 50%;
      left: -23px;
      transform: translateY(-50%);
      span {
        top: -3px;
      }
    }
  }
  .flowchart__result {
    position: relative;
    padding: 18px 20px 18px 42px;
  }
  .flowchart__resultTerm {
    margin-top: 0;
  }
  .flowchart__resultDesc {
    place-content: normal;
    padding: 0;
  }
  .resultDesc-row1 {
    display: flex;
    margin-bottom: 3px;
  }
  .resultDesc-row2 {
    font-size: 3.4rem;
    text-align: left;
  }
  .resultDesc-row3 {
    margin-top: 13px;
    padding-top: 11px;
    font-size: 1.6rem;
  }
  #result-d {
    .resultDesc-row3 li:first-of-type {
      letter-spacing: 0;
    }
  }
  .courseNote-low1 {
    font-size: 1.7rem;
  }
  .courseNote-low2 {
    margin-top: 5px;
  }
}
@media (max-width: 960px) {
  .kaiyou-sankotsu__flowchart {
    width: 700px;
  }
  .flowchart__section.-q1 {
    .flowchart__branche.-yes {
      left: 111px;
    }
    .flowchart__branche.-no {
      right: 111px;
    }
  }
  .flowchart__section.-q2 {
    width: 350px;
    .flowchart__branche.-yes {
      left: 62px;
    }
    .flowchart__branche.-no {
      right: 62px;
    }
  }
  .flowchart__section.-q3 {
    width: 350px;
    .flowchart__branche.-yes {
      left: 62px;
    }
    .flowchart__branche.-no {
      right: 62px;
    }
  }
}
@media (max-width: 768px) {
  .memorial__section.course {
    width: 100%;
  }
  .kaiyou-sankotsu__flowchart {
    width: 600px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-inline: 0;
  }
  .flowchart__section.-q1 {
    .flowchart__branche.-yes {
      left: 127px;
    }
    .flowchart__branche.-no {
      right: 98px;
    }
  }
  .flowchart__section.-q2 {
    width: 300px;
    .flowchart__branche.-yes {
      left: 50px;
    }
    .flowchart__branche.-no {
      right: 50px;
    }
  }
  .flowchart__section.-q3 {
    width: 300px;
    .flowchart__branche.-yes {
      left: 50px;
    }
    .flowchart__branche.-no {
      right: 50px;
    }
  }
  .flowchartQ2-title-br {
    display: block;
  }
  .kaiyou-sankotsu__courseNote {
    width: 84%;
    margin: 30px auto 0;
    text-align: left;
  }
}
@media (max-width: 700px) {
  .kaiyou-sankotsu__flowchart {
    width: 500px;
  }
  .flowchart__section.-q1 {
    .flowchart__branche.-yes {
      left: 86px;
    }
    .flowchart__branche.-no {
      right: 86px;
    }
  }
  .flowchart__section.-q2 {
    width: 250px;
    .flowchart__branche.-yes {
      left: 37px;
    }
    .flowchart__branche.-no {
      right: 37px;
    }
  }
  .flowchart__section.-q3 {
    width: 250px;
    .flowchart__branche.-yes {
      left: 37px;
    }
    .flowchart__branche.-no {
      right: 37px;
    }
  }
  .flowchart__results {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: 310px;
    padding-left: 23px;
  }
  .flowchartQ2-title-br {
    display: block;
  }
}
@media (max-width: 600px) {
  .kaiyou-sankotsu__flowchart {
    width: 400px;
  }
  .flowchart__section.-q1 {
    .flowchart__branche.-yes {
      left: 73px;
    }
    .flowchart__branche.-no {
      right: 73px;
    }
  }
  .flowchart__section.-q2 {
    width: 225px;
    .flowchart__branche.-yes {
      left: 25px;
    }
    .flowchart__branche.-no {
      right: 25px;
    }
  }
  .flowchart__section.-q3 {
    width: 181px;
    .flowchart__branche.-yes {
      left: 15px;
    }
    .flowchart__branche.-no {
      right: 15px;
    }
  }
  .flowchartQ3-title-br {
    display: block;
  }
}
@media (max-width: 440px) {
  .kaiyou-sankotsu__flowchart {
    width: 350px;
    .flowchart__section.-q1 {
      .flowchart__branche.-yes {
        left: 67px;
      }
      .flowchart__branche.-no {
        right: 67px;
      }
    }
    .flowchart__section.-q2 {
      width: 207px;
      .flowchart__branche.-yes {
        left: 19px;
      }
      .flowchart__branche.-no {
        right: 19px;
      }
    }
    .flowchart__section.-q3 {
      width: 167px;
      /* .flowchart__branche.-yes {
        left: 15px;
      }
      .flowchart__branche.-no {
        right: 15px;
      } */
    }
  }
}

/* 散骨ポイント
----------------------------------------------------- */
.kaiyou-sankotsu__areaMap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 60px 80px;
  /* > *{
    flex: 1;
  } */
}
.areaList {
  font-size: 1.6rem;
}
.areaList__term {
  width: fit-content;
  margin-bottom: 5px;
  padding: 4px 15px 6px;
  background-color: #c95981;
  color: #ffffff;
  font-weight: bold;
  border-radius: 9999px;
  line-height: 1;
}
.areaList__desc:not(:last-of-type) {
  margin-bottom: 20px;
}
@media (max-width: 68.7rem) {
  .kaiyou-sankotsu__areaMap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .areaMap__image {
    max-width: 560px;
    margin-inline: auto;
  }
}

/* よくあるご質問
----------------------------------------------------- */
/* .kaiyou-sankotsu__contact {
  display: grid;
  gap: 20px;
  width: fit-content;
  margin: 0 auto 30px;
  text-align: center;
}
.kaiyou-sankotsu__contactTitle {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
}
.kaiyou-sankotsu__contactText--tel {
  line-height: 1;
  a {
    color: #c95981;
    font-size: 4.5rem;
    font-weight: bold;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: bold;
    &::before {
      content: "";
      display: inline-block;
      width: 26px;
      height: auto;
      aspect-ratio: 40 / 47;
      margin-right: 10px;
      background: url("/butsudan/assets/img/memorial/kaiyou-sankotsu/icon-phone.webp")
        no-repeat center center / 100%;
    }
  }
}
.kaiyou-sankotsu__btns {
  display: flex;
  gap: 20px;
  width: fit-content;
  margin-inline: auto;
}
.kaiyou-sankotsu__btn {
  width: 320px;
  height: 60px;
  font-size: 1.6rem;
}
@media (max-width: 68.7rem) {
  .memorial__section.contact-us {
    .memorial__lead {
      text-align: center;
    }
  }
  .kaiyou-sankotsu__contact {
    gap: 15px;
  }
  .kaiyou-sankotsu__contactTitle {
    font-size: 1.7rem;
  }
  .kaiyou-sankotsu__contactText--tel a {
    font-size: 3.5rem;
    text-decoration: none;
    &::before {
      width: 20px;
      margin-right: 8px;
    }
  }
  .kaiyou-sankotsu__btns {
    flex-direction: column;
    gap: 10px;
  }
  .kaiyou-sankotsu__btn {
    height: 50px;
    min-height: 50px;
    font-size: 1.5rem;
  }
} */
