@charset "UTF-8";

.memorial {
  padding-bottom: 75px;
  small {
    display: block;
    font-size: 14px;
  }
  img {
    height: auto;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sp-sr-only {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
}
@media (max-width: 67.8rem) {
  .sp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .memorial {
    small {
      font-size: 13px;
    }
  }
}

.memorial__h1Block {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
  margin-inline: auto;
  width: 80%;
  min-width: 1200px;
  max-width: 140rem;
  height: 500px;
  font-weight: 400;
  h1 {
    font-family: "Noto Serif JP", serif;
    font-size: 5.4rem;
  }
}
.memorial__h1BlockText {
  font-family: "Noto Serif JP", serif;
  font-size: 3.2rem;
}
@media (min-width: 1501px) {
  .memorial__h1Block {
    height: auto;
    aspect-ratio: 1200 / 500;
    background-size: 100%;
  }
}
@media (max-width: 1425px) {
  .memorial__h1Block {
    min-width: inherit;
    width: 90%;
  }
}
@media (max-width: 68.7rem) {
  .memorial__h1Block {
    width: 100%;
    height: auto;
    h1 {
      font-size: 2.7rem;
    }
  }
  .memorial__h1BlockText {
    font-size: 1.8rem;
  }
}

.memorial__leadTitle {
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 700;
}
.memorial__lead {
  margin-inline: auto;
  width: 90%;
  max-width: 120rem;
  padding-top: 75px;
  line-height: 1.777;
  text-align: center;
}
@media (max-width: 68.7rem) {
  .memorial__leadTitle {
    font-size: 2.2rem;
    text-align: center;
    line-height: 1.4;
  }
  .memorial__lead {
    width: 84%;
    max-width: inherit;
    padding-top: 40px;
    line-height: 1.625;
    text-align: justify;
  }
}

.memorial__section {
  margin-inline: auto;
  width: 80%;

  max-width: 120rem;
  padding-block: 75px;
}
.memorial__section:first-of-type {
  padding-top: 150px;
}
.memorial__h2 {
  margin-bottom: 60px;
  text-align: center;
  font-weight: bold;
  line-height: 1.5;
  &::after {
    content: "";
    display: block;
    width: 290px;
    height: 4px;
    margin: 8px auto 0;
    background-color: #c95981;
    border-radius: 9999px;
  }
}
.memorial__h3 {
  font-size: 2rem;
  font-weight: 700;
}
.memorial__sectionLead {
  margin-block: -20px 60px;
  text-align: center;
  line-height: 1.777;
}
@media (max-width: 1425px) {
  .memorial__section {
    width: 85%;
  }
}
@media (max-width: 68.7rem) {
  .memorial__section {
    width: 84%;
    max-width: inherit;
    padding-block: 35px;
  }
  .memorial__section:first-of-type {
    padding-top: 60px;
  }
  .memorial__h2 {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    margin-bottom: 40px;
    font-size: 2.5rem;
  }
  .memorial__h3 {
    font-size: 1.8rem;
  }
  .memorial__sectionLead {
    margin-block: -10px 40px;
    /* text-align: justify; */
  }
}

.list-marker-checkbox {
  &::before {
    content: "";
    position: relative;
    top: 4px;
    display: inline-block;
    width: 25px;
    height: 22px;
    background: url(/butsudan/assets/img/icon-check.webp) no-repeat left center / contain;
    margin-right: 13px;
  }
}
@media (max-width: 68.7rem) {
  .list-marker-checkbox {
    text-indent: -30px;
    padding-left: 30px;
    &::before {
      top: 3px;
      width: 20px;
      height: 18px;
      margin-right: 10px;
    }
  }
}

.memorial__btn {
  width: 320px;
  height: 60px;
  font-size: 1.6rem;
}
.memorial__btn.-lg {
  max-width: 740px;
  width: 100%;
  min-height: 70px;
  padding: 10px;
  font-size: 2rem;
  line-height: 1.5;
  &::after {
    display: none;
  }
}
@media (max-width: 768px) {
  .memorial__btn {
    height: 50px;
    min-height: 50px;
    font-size: 1.5rem;
  }
  .memorial__btn.-lg {
    height: auto;
    font-size: 1.6rem;
  }
}

.memorial__flowListWrap {
  padding-block: 40px;
  background-color: #e7e8f0;
}
.memorial__flowList {
  position: relative;
  display: flex;
  gap: 65px;
  justify-content: center;
  width: fit-content;
  margin-inline: auto;
  list-style: none;
  counter-reset: item;
  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 4px;
    background-color: #898989;
  }
}
.memorial__flowItem {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 88px;
  height: 300px;
  padding-top: 15px;
  background-color: #ffffff;
  border: 2px solid #898989;
  border-radius: 4px;
  counter-increment: item;
  &::before {
    content: counter(item, decimal-leading-zero);
    font-weight: bold;
    margin-bottom: 15px;
    color: #c95981;
    font-size: 1.2em;
  }
}
.memorial__flowText {
  line-height: 1.5;
}
@media (max-width: 1425px) {
  .memorial__flowList {
    gap: calc(50 / 1425 * 100vw);
  }
}
@media (min-width: 769px) {
  .memorial__flowText {
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    flex: 1;
    font-size: 2rem;
  }
}
@media (max-width: 68.7rem) {
  .memorial__flowList {
    gap: calc(30 / 1100 * 100vw);
  }
  .memorial__flowItem {
    width: calc(88 / 1100 * 100vw);
  }
  .memorial__flowText {
    font-size: 1.8rem;
  }
}
@media (max-width: 768px) {
  .memorial__flowListWrap {
    max-width: 500px;
    margin-inline: auto;
    padding: 30px calc(60 / 750 * 100vw);
  }
  .memorial__flowList {
    flex-direction: column;
    width: 100%;
    gap: 13px;
    &::after {
      width: 2px;
      height: calc(100% - 60px);
      top: 30px;
      left: 50%;
      transform: translateX(-50%);
    }
  }
  .memorial__flowItem {
    flex-direction: row;
    width: 100%;
    height: 50px;
    padding: 0 0 0 15px;
    &::before {
      margin-right: 12px;
      margin-bottom: 0;
    }
  }
  .memorial__flowText {
    font-size: 1.6rem;
  }
}

/* 選ばれる　理由
----------------------------------------------------- */
.memorial__section.reasons {
  width: 90%;
}
.memorial__reasonsList {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 24px;
  margin-top: 80px;

  grid-template-rows: auto auto; /* 行を明示的に分ける */
}
.memorial__reasonsItem {
  position: relative;

  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;

  gap: 20px;
  place-content: baseline;
  padding: 50px 24px 30px;
  background-color: #f9f7f3;
  border-radius: 6px;
  counter-increment: item;
  &::before {
    content: counter(item, decimal);
    position: absolute;
    top: -19px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 50px;
    height: auto;
    aspect-ratio: 1 / 1;
    font-weight: bold;
    background-color: #c95981;
    color: #ffffff;
    font-size: 2rem;
    border-radius: 50%;
  }
  p {
    grid-row: 2;
  }
  small {
    display: inline;
    font-size: 0.888em;
  }
}
.reasonsItem__title {
  align-content: center;
  line-height: 1.4;
  text-align: center;
}

/* 樹木葬ページ（7件）だけ、2段目3件をグリッドの中央に配置 */
@media (min-width: 68.8rem) {
  .jumokusou .memorial__reasonsList {
    grid-template-columns: repeat(8, 1fr);
  }
  .jumokusou .memorial__reasonsItem {
    grid-column: span 2;
  }
  .jumokusou .memorial__reasonsItem:nth-child(5):nth-last-child(3) {
    grid-column: 2 / span 2;
  }
}

/* @supports (grid-template-rows: subgrid) {
  .reasonsItem__title {
    height: auto;
    grid-row: 1;
  }
} */
/* @media (min-width: 68.8rem) and (max-width: 1325px) {
  .reasonsItem__title {
    height: 56px;
  }
} */
@media (max-width: 68.7rem) {
  .memorial__reasonsList {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 630px;
    margin-inline: auto;
    margin-top: 0;
  }
  .memorial__reasonsItem {
    gap: 12px;
    padding: 20px;
    &::before {
      top: 20px;
      left: 20px;
      transform: translateX(0);
      width: 40px;
    }
  }
  .reasonsItem__title {
    height: 40px;
    padding-left: 55px;
    font-size: 1.8rem;
    text-align: left;
  }
}

/* プラン一覧
----------------------------------------------------- */
.memorial__plansImage {
  margin-inline: auto;
}
.memorial__plans {
  display: grid;
  place-items: center;
  gap: 30px;
  width: fit-content;
  margin: 80px auto 0;
}
.memorial__plansTitle {
  font-size: 2.8rem;
  line-height: 1;
}
.memorial__plansList {
  width: 100%;
}
.memorial__plansItem {
  display: grid;
  grid-template-columns: 180px 140px auto;
  width: 640px;
  align-items: center;
  min-height: 80px;
  padding-block: 20px;
  padding-left: 10px;
  border-bottom: 1px solid #d1d1d1;
  small {
    color: #474645;
    font-weight: 400;
  }
}
.memorial__plansItem.-applies-all-plans {
  position: relative;
  margin-top: 50px;
  &::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: auto;
    aspect-ratio: 1 / 1;
    background: url(/butsudan/assets/img/memorial/icon-plus.webp) no-repeat center / cover;
  }
}
.plansItem__title {
  font-size: 2rem;
  font-weight: 700;
}
.plansItem__desc {
  /* margin-left: auto; */
  grid-column: 4;
}
.plans-price {
  color: #c95981;
  font-size: 2.8rem;
  font-weight: bold;
  text-align: right;
}
.plans-price-unit-yen {
  font-size: 0.57em;
}
.memorial__plansItem.-two-entries {
  grid-template-columns: 220px auto;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "plansItem__title plansItem__entries01"
    "plansItem__title plansItem__entries02";
  .plansItem__text {
    position: relative;
    top: 4px;
  }
}
.plansItem__title-row2 {
  font-weight: 400;
  display: block;
  font-size: 1.6rem;
}
[class^="plansItem__entries"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.plansItem__entries01 {
  grid-area: plansItem__entries01;
}
.plansItem__entries02 {
  grid-area: plansItem__entries02;
}
.memorial__plans.-pet {
  /* max-width: 920px; */
  /* margin-bottom: 80px; */
  padding: 40px 80px 60px;
  background-color: #f9f7f3;
  small {
    font-size: 0.888em;
    text-align: center;
    margin-top: 10px;
  }
  .plansItem__text {
    position: relative;
    top: 4px;
  }
}
.memorial__plans.-pet.-has-image {
  .memorial__plansItem {
    width: 100%;
    align-self: end;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    padding-bottom: 10px;
  }
}
@media (min-width: 68.8rem) {
  .memorial__plans.-pet.-has-image {
    max-width: 920px;
    padding: 40px 60px 60px;
    grid-template-columns: 360px 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 35px 40px;
    grid-template-areas:
      "memorial__plansTitle memorial__plansTitle"
      "memorial__plansPetImage memorial__plansPetDesc"
      "memorial__plansPetImage memorial__plansItem";
    .memorial__plansTitle {
      grid-area: memorial__plansTitle;
    }
    .memorial__plansPetImage {
      grid-area: memorial__plansPetImage;
      position: relative;
      top: 7px;
    }
    .memorial__plansPetDesc {
      grid-area: memorial__plansPetDesc;
      align-self: stretch;
    }
  }
  .memorial__plansItem {
    small {
      margin-top: 2px;
    }
  }
  .plans-price-small {
    padding-right: 10px;
  }
}
@media (min-width: 769px) {
  .memorial__plansItem {
    small.sp {
      display: none;
    }
  }
}
@media (max-width: 68.7rem) {
  .memorial__plans {
    width: 100%;
    max-width: 630px;
    gap: 15px;
    margin-top: 50px;
  }
  .memorial__plansTitle {
    font-size: 2.2rem;
  }
  .memorial__plansItem {
    width: 100%;
    height: auto;
    padding-block: 16px;
    padding-left: 0;
    line-height: 1.3;
  }
  .memorial__plansItem:not(.-two-entries) {
    position: relative;

    display: grid;
    grid-template-columns: 50% 1fr;
    grid-template-rows: repeat(2, 1fr);
    grid-template-areas:
      "plansItem__title plansItem__desc"
      "plansItem__text plansItem__desc";
    small.pc {
      display: none;
    }
  }
  .plansItem__title {
    grid-area: plansItem__title;
    font-size: 1.8rem;
  }
  .plansItem__text {
    grid-area: plansItem__text;
    font-size: 1.2rem;
  }
  .plansItem__desc {
    grid-area: plansItem__desc;
    text-align: right;
  }
  .plans-price {
    white-space: nowrap;
    font-size: 2.5rem;
  }
  .memorial__plansItem.-two-entries {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 25px;
    > span {
      width: 100%;
    }
    .plansItem__title {
      margin-bottom: 10px;
    }
  }
  .memorial__plansItem.-has-price-small {
    padding-bottom: 40px; /* 位置セット */
  }
  .plans-price-small {
    position: absolute;
    left: 0;
    bottom: 22px; /* 位置セット */
    text-align: left;
  }
  .memorial__plansItem.-applies-all-plans {
    padding-bottom: 55px;
    &::before {
      top: -50px;
      width: 27px;
    }
  }
  .plansItem__title-row2 {
    margin-top: 3px;
    font-size: 1.4rem;
  }
  .memorial__plans.-pet {
    margin-bottom: 35px;
    padding: 30px 20px;
    gap: 25px;
    small {
      text-align: left;
      margin-top: 2px;
    }
    .memorial__plansPetDesc {
      width: 100%;
    }
    .memorial__plansItem {
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: 50% 1fr;
      gap: 10px 0;
      grid-template-areas:
        "plansItem__title plansItem__title"
        "plansItem__text plansItem__desc";
      padding-top: 0;
      padding-bottom: 25px;
    }
  }
  .memorial__plans.-pet.-has-image {
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: stretch;
    padding-inline: 40px;
    .memorial__plansTitle {
      align-self: start;
    }
    .memorial__plansPetDesc {
      align-self: stretch;
    }
    .memorial__plansItem {
      min-height: 0;
      height: auto;
      align-self: end;
      padding-block: 0 15px;
      .plansItem__text {
        font-size: 1.4rem;
      }
    }
  }
}
@media (max-width: 768px) {
  .memorial__plans {
    margin-top: 35px;
  }
  .memorial__plans.-pet.-has-image {
    padding-inline: 20px;
  }
}

/* よくあるご質問
----------------------------------------------------- */
.memorial__faq.faq__single {
  width: 70%;
  max-width: 800px;
  min-width: inherit;
  margin-bottom: 0;
  p + p {
    margin-top: 20px;
  }
}
.faq__single dl:first-of-type dt {
  margin-top: -2.5rem;
}
.faq__single dl dt {
  font-weight: normal;
}
@media (max-width: 67.8rem) {
  .memorial__faq.faq__single {
    width: 84%;
    max-width: inherit;
  }
  .faq__single dl dt {
    font-size: 1.6rem;
  }
}

/* お問い合わせ
----------------------------------------------------- */
.memorial__contact {
  display: grid;
  gap: 20px;
  width: fit-content;
  margin: 0 auto 30px;
  text-align: center;
}
.memorial__contactTitle {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
}
.memorial__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/icon-phone.webp") no-repeat center center / 100%;
    }
  }
}
.memorial__btns {
  display: flex;
  gap: 20px;
  width: fit-content;
  margin-inline: auto;
}
@media (max-width: 68.7rem) {
  .memorial__section.contact-us {
    .memorial__lead {
      text-align: center;
    }
  }
  .memorial__contact {
    gap: 15px;
  }
  .memorial__contactTitle {
    font-size: 1.7rem;
  }
  .memorial__contactText--tel a {
    font-size: 3.5rem;
    text-decoration: none;
    &::before {
      width: 20px;
      margin-right: 8px;
    }
  }
  .memorial__btns {
    flex-direction: column;
    gap: 10px;
  }
}
