@charset "utf-8";

/**************************************************
ページ読み込み時フェードイン
**************************************************/
body {
  -webkit-animation-name: page-fadeIn;
  animation-name: page-fadeIn;
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  opacity: 0.01;
  background-color: var(--color-base);
}

@-webkit-keyframes page-fadeIn {
  0% {
    opacity: 0.01;
    background-color: var(--color-base);
  }

  to {
    opacity: 1;
    background-color: var(--color-white);
  }
}

@keyframes page-fadeIn {
  0% {
    opacity: 0.01;
    background-color: var(--color-base);
  }

  to {
    opacity: 1;
    background-color: var(--color-white);
  }
}

/**************************************************
メインビジュアル
**************************************************/
.mv {
  background-image: url("../_img/index/mv.webp");
  background-size: cover;
  width: 100%;
  min-height: 500px;
  aspect-ratio: 1400/630;
  padding: 50px 4% 0;
  overflow: hidden;
}

.mv > div {
  max-width: 800px;
  width: min(calc(480vw / 14), 50%);
  margin-left: auto;
  height: 100%;
}

.mv > div > p:first-of-type {
  display: none;
}

.mv h1 {
  margin-top: 8px;
}

.mv h1 + p {
  margin-top: 8px;
}

.mv > div picture {
  width: 80%;
  margin-left: auto;
  position: absolute;
  bottom: 0;
  right: 5%;
}

@media (max-width: 820px) {
  .mv {
    background-image: url("../_img/index/mv_sp.webp");
    background-position: center;
    aspect-ratio: unset;
    min-height: unset;
  }

  .mv > div {
    max-width: unset;
    width: 90%;
    margin-inline: auto;
  }

  .mv > div > p:first-of-type {
    display: block;
  }

  .mv > div picture {
    display: grid;
    place-content: center;
    margin-top: 10vh;
    position: relative;
  }

  .mv > div picture img {
    left: 15%;
  }
}

/* ==============================
アニメーション設定
============================== */
.mv > div {
  -webkit-animation-name: mv-fade;
  animation-name: mv-fade;
  -webkit-animation-duration: 0.8s;
  animation-duration: 0.8s;
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  opacity: 0.01;
}

.mv > div picture {
  -webkit-animation-name: mv-fade;
  animation-name: mv-fade;
  -webkit-animation-duration: 0.8s;
  animation-duration: 0.8s;
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  opacity: 0.01;
}

@-webkit-keyframes mv-fade {
  0% {
    opacity: 0.01;
  }

  100% {
    opacity: 1;
  }
}

@keyframes mv-fade {
  0% {
    opacity: 0.01;
  }

  100% {
    opacity: 1;
  }
}

/**************************************************
新メインビジュアル
**************************************************/
#mv {
  background-image: url("../_img/index/mv_new.webp");
  background-size: cover;
  width: 100%;
  aspect-ratio: 2000 / 900;
  padding: 0;
}
#mv picture img {
  width: auto;
  height: 100%;
}
#mv picture:first-of-type {
  height: 36%;
  position: absolute;
  top: 0;
  right: 3%;
}
#mv picture:last-of-type {
  height: 70%;
  position: absolute;
  bottom: 0;
  right: 3%;
}

@media (max-width: 820px) {
  #mv {
    background-image: url("../_img/index/mv_new_sp.webp");
    background-position: center;
    aspect-ratio: 750 / 900;
    min-height: unset;
  }
  #mv picture img {
    width: 100%;
    height: auto;
  }
  #mv picture:first-of-type {
    height: auto;
    width: 90%;
    top: 5%;
    right: 4%;
  }
  #mv picture:last-of-type {
    height: auto;
    width: 90%;
    bottom: 0;
    right: 5%;
  }
}

/* ==============================
アニメーション設定
============================== */
#mv {
  -webkit-animation-name: mv-fade;
  animation-name: mv-fade;
  -webkit-animation-duration: 0.8s;
  animation-duration: 0.8s;
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  opacity: 0.01;
}

#mv picture:first-of-type {
  -webkit-animation-name: mv-fade;
  animation-name: mv-fade;
  -webkit-animation-duration: 0.8s;
  animation-duration: 0.8s;
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  opacity: 0.01;
}

#mv picture:last-of-type {
  -webkit-animation-name: mv-fade;
  animation-name: mv-fade;
  -webkit-animation-duration: 0.8s;
  animation-duration: 0.8s;
  -webkit-animation-delay: 0.8s;
  animation-delay: 0.8s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  opacity: 0.01;
}

/**************************************************
リード文
**************************************************/
.lead {
  background-color: var(--color-main);
  color: var(--color-white);
  text-align: center;
  position: relative;
  z-index: 0;

  --clamp-min: 14;
  --clamp-max: 20;
  font-size: var(--clamp);
  min-height: 500px;
  display: grid;
  place-items: center;
}

.lead > div {
  z-index: 0;
}

.lead h2 {
  --clamp-min: 16;
  --clamp-max: 30;
  font-size: var(--clamp);
}

.lead .order-in__fadein,
:is(.order-in__fadein) > *.visible {
  -webkit-animation-duration: 0.2s !important;
  animation-duration: 0.2s !important;
}

/* テキスト */
.lead > div p {
  line-height: 2;
}

.lead .button::before {
  background-image: url(../_img/index/button_arrow.svg);
}

/* 画像 */
.lead > figure {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  margin-top: unset;
  max-width: 1600px;
  margin-inline: auto;
}

.lead > figure > * {
  margin-top: 0;
}

.lead > figure p {
  position: absolute;
  -webkit-filter: drop-shadow(4px 4px 4px rgb(178, 31, 150, 0.5));
  filter: drop-shadow(4px 4px 4px rgb(178, 31, 150, 0.5));
}

.lead > figure p:nth-child(1) {
  width: min(calc(196vw / 14), 196px);
  left: calc(90vw / 14);
  top: calc(40vw / 14);
}

.lead > figure p:nth-child(2) {
  width: min(calc(240vw / 14), 240px);
  top: calc(48vw / 14);
  right: calc(80vw / 14);
}

.lead > figure p:nth-child(3) {
  width: min(calc(240vw / 14), 240px);
  left: calc(160vw / 14);
  bottom: calc(64vw / 14);
}

.lead > figure p:nth-child(4) {
  width: min(calc(160vw / 14), 196px);
  right: calc(200vw / 14);
  bottom: calc(80vw / 14);
}

@media (max-width: 720px) {
  .lead {
    padding-block: 220px 240px;
  }

  .lead > figure p:nth-child(1) {
    width: 140px;
    left: unset;
    right: 20px;
    top: 20px;
  }

  .lead > figure p:nth-child(2) {
    width: 180px;
    left: 10px;
    top: 20px;
  }

  .lead > figure p:nth-child(3) {
    width: 180px;
    left: unset;
    right: 10px;
    bottom: 20px;
  }

  .lead > figure p:nth-child(4) {
    width: 140px;
    right: unset;
    left: 20px;
    bottom: 80px;
  }
}

/* ==============================
ボタン
============================== */
.button {
  padding: 1.25em calc(35px + 1.25em) 1.25em 1.25em;
  background: var(--color-white);
  color: var(--color-main);
  --clamp-min: 16;
  --clamp-max: 27;
  font-size: var(--clamp);
  font-weight: 900;
  min-width: 440px;
  border-radius: 12px;
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 rgba(178, 31, 150, 0.5);
}

@media (max-width: 520px) {
  .button {
    min-width: unset;
  }
}

.button::after {
  content: "";
  display: inline-block;
  width: 35px;
  height: 35px;
  background-image: url("../_img/index/button_arrow.svg");
  position: absolute;
  right: 30px;
  transition: 0.1s;
}

.button:hover {
  -webkit-filter: unset;
  filter: unset;
  outline: none;
  color: var(--color-main);
  transform: translate(0);
  box-shadow: none;
}

.button:hover::after {
  transform: translateX(5px);
}

/**************************************************
お知らせ
**************************************************/
.news {
  overflow-x: hidden;
}

:is(.news, #type, .cm) h2 {
  --clamp-min: 18;
  --clamp-max: 24;
  font-size: var(--clamp);

  text-align: center;
  color: var(--color-main);
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
}

:is(.news, #type, .cm) h2::before,
:is(.news, #type, .cm) h2::after {
  content: "";
  display: block;
  background-image: url("../_img/common/illust_flower01.webp");
  width: 1.5em;
  height: 1.5em;
  background-size: cover;
}

.news ul {
  margin-top: 60px;
  list-style: none;
}

.news__lists {
}

.news__list {
  margin-top: 8px;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--color-gray);
}

.news-link__meta {
}

.news-link__date {
  font-size: 0.9em;
  color: var(--color-main);
}

.news-link__title {
  font-size: var(--clamp);
  line-height: calc(28 / 19);
}

/**************************************************
永代供養樹木葬はこのような方におすすめです
**************************************************/

.recommend {
  overflow-x: hidden;
}

:is(.recommend, #type, .cm) h2 {
  --clamp-min: 18;
  --clamp-max: 24;
  font-size: var(--clamp);

  text-align: center;
  color: var(--color-main);
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
}

:is(.recommend, #type, .cm) h2::before,
:is(.recommend, #type, .cm) h2::after {
  content: "";
  display: block;
  background-image: url("../_img/common/illust_flower01.webp");
  width: 1.5em;
  height: 1.5em;
  background-size: cover;
}

/* イラスト */
.recommend ul {
  margin-top: 65px;
  list-style: none;
}

.recommend ul li p {
  width: 100%;
}

.recommend ul li figure {
  width: 70%;
  margin-left: auto;
  margin-top: -40px;
  transform: translateX(30px);
}

@container (max-width: 520px) {
  .recommend .grid-column-4 {
    grid-template-columns: repeat(2, 1fr);
    -moz-column-gap: 20px;
    column-gap: 20px;
    width: 90%;
    margin-inline: auto;
  }

  .recommend ul li figure {
    margin-top: -20px;
    transform: translateX(10px);
  }
}

/**************************************************
高松さつきガーデンの特徴
**************************************************/
.feature {
  background-color: var(--color-base);
  position: relative;
  padding-block: 120px 110px;
  margin-top: -30px;
  padding-top: 0;
}

.feature::before {
  content: url("../_img/index/feature_top.svg");
}

.feature h2 {
  --clamp-min: 24;
  --clamp-max: 30;
  font-size: var(--clamp);

  text-align: center;
  color: var(--color-main);
  letter-spacing: 0.1em;
}

.feature h2::before,
.feature h2::after {
  content: "";
  display: inline-flex;
  width: 0.15em;
  height: 1em;
  background-color: var(--color-main);
  margin: 0.2em;
  transform: translateY(0.2em);
}

.feature h2::before {
  rotate: -15deg;
}

.feature h2::after {
  rotate: 15deg;
}

/* 特徴一覧 */
.feature ol {
  list-style: none;
  /*olのリストの数字をリセット*/
  counter-reset: li;
  margin-top: 60px;
}

.feature li {
  background-color: var(--color-white);
  padding: 30px 20px;
  margin-top: 20px;
  text-align: center;
  position: relative;
  border-radius: var(--radius);
}

.feature li h3::before {
  /*リストの数字を1つ進める。IE7以下、未対応*/
  counter-increment: li;
  /*リストを連番にする*/
  content: counter(li);

  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 18px;
  font-family: "Shippori Mincho", serif;
  position: absolute;
  top: -69px;
  left: 50%;
  transform: translateX(-50%);

  /* 花の画像 */
  background-image: url("../_img/common/illust_flower02.svg");
  background-repeat: no-repeat;
  background-size: 100%;
  width: 38px;
  height: 38px;
  margin: 0 auto 20px;
}

.feature li h3 {
  --clamp-min: 22;
  --clamp-max: 22;
  font-size: var(--clamp);
  margin-top: 20px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  color: var(--color-main);
  line-height: 1.5;

  /* ドット */
  background-image: linear-gradient(
    to right,
    var(--color-gray) 50%,
    transparent 50%
  );
  background-size: 10px 2px;
  background-repeat: repeat-x;
  background-position: left bottom;
}

.feature li p {
  --clamp-min: 16;
  --clamp-max: 16;
  font-size: var(--clamp);
  line-height: calc(28 / 19);
}

/**************************************************
永代供養樹木葬
**************************************************/
#type {
  background: url(../_img/index/type_bg_left.svg) left -20px top 60px / 20vw no-repeat,
    url(../_img/index/type_bg_right.svg) right -20px top 60px / 20vw no-repeat;
}
#type .lead-type {
  padding: 80px 0;
}
#type .lead-type h3 {
  color: #bb2c37;
  text-align: center;
}
#type .lead-type p {
  text-align: center;
  font-weight: bold;
  margin-top: 30px;
}

#type .types {
  padding: 0 0 80px 0;
  background: url(../_img/index/type_bg2_left.svg) left -10px top 80px / 18vw no-repeat,
    url(../_img/index/type_bg2_right.svg) right -10px top 80px / 18vw no-repeat;
}
#type .types h3 {
  border-top: dotted 1px var(--color-black);
  margin: 0;
  padding-top: 80px;
  font-family: "Shippori Mincho", serif;
  letter-spacing: 0.2em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  line-height: 1;
}
#type .types h3 strong {
  font-family: "Shippori Mincho", serif;
  font-size: 1.6em;
  line-height: 1;
}
#type .types.satsukigobyo h3 {
  color: #64338e;
}
#type .types.satsukireibyo h3 {
  color: #f29600;
}
#type .types.yukyu h3 {
  color: #20a2dd;
}
#type .types.satsukinohi h3 {
  color: #df5e9c;
}
#type .types h3 + p {
  text-align: center;
  font-weight: bold;
}
#type .types .grid {
  margin-top: 40px;
}
#type .types .price .shoulder {
  background: #bb2c37;
  color: var(--color-white);
  line-height: 1;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  padding: 10px;
}
#type .types .price-box {
  container-type: inline-size;
}
#type .types .price .shoulder + .price-box {
  margin-top: 10px;
}
#type .types .price-box > div {
  font-family: "Shippori Mincho", serif;
  font-size: 14cqw;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  line-height: 1;
  margin: 0;
  top: -10px;
}
#type .types .price-box > div strong {
  font-size: 1.3em;
  font-family: "Shippori Mincho", serif;
  line-height: 1;
  translate: 0 3px;
}
#type .types .price-box > div small {
  font-size: 0.5em;
  font-family: "Shippori Mincho", serif;
  line-height: 1;
  translate: -0.3em 0;
}
#type .types .price-box ul li {
  text-indent: -1em;
  margin-left: 1em;
  font-size: 0.9em;
}
#type .types .price-border {
  border: solid 1px var(--color-black);
  padding: var(--padding);
}

@media (max-width: 520px) {
  #type .lead-type {
    padding: 40px 0;
  }
  #type .types {
    padding: 0 0 40px 0;
  }
  #type .types h3 {
    flex-direction: column;
    align-items: center;
  }

  #type .types.satsukireibyo .flex {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 520px) {
  .types.satsukireibyo .flex {
    flex-wrap: nowrap !important;
  }

  .types.satsukireibyo .price-box {
    margin-bottom: 36px;
  }
}

#type .types.satsukinohi .price-box {
margin-top: 8px;
}


/**************************************************
CM動画・資料請求・お問い合わせ
**************************************************/

.contents {
  margin-block: 40px 100px;
}

.contents .movie {
  width: 100%;
  max-width: 840px;
  margin-inline: auto;
  margin-top: 60px;
}

.contents .movie iframe {
  width: 100%;
  height: 100%;
  min-height: auto;
  border-radius: var(--clamp);
  aspect-ratio: 16/9;
}
.buttons {
  margin-top: 0;
  background: var(--color-base);
  padding: 40px 0;
}
.buttons ul {
  list-style: none;
  margin: 0 auto;
}

.contents .access {
  margin-top: 60px;
}

.contact,
.shiryo {
  &.button {
    display: grid;
    place-content: center;
    background: var(--color-main);
    color: var(--color-white);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    padding: 20px 12% 20px 38%;
    margin-inline: auto;
    min-width: auto;
    min-height: 100px;
    font-size: clamp(18px, calc(43vw / 14), 24px);
    line-height: 1.2;
    transform: translate(-4px, -4px);
    box-shadow: 6px 6px 0 rgba(163, 162, 163, 0.5);
  }

  &.button span {
    font-size: 0.6em;
  }

  &.button::after {
    width: clamp(25px, calc(35vw / 14), 35px);
    height: clamp(25px, calc(35vw / 14), 35px);
    background-image: url("../_img/common/button_arrow.svg");
    position: absolute;
    right: clamp(15px, calc(30vw / 14), 30px);
  }

  &.button:hover {
    transform: translate(0);
    box-shadow: none;
  }

  &.button picture {
    position: absolute;
    bottom: 0;
    width: 40%;
  }
}

.button.contact {
  background-color: var(--color-red);
}

.button.shiryo {
  background-color: var(--color-purple);
}

.buttons:has(> .contact-wrapper) {
  margin-top: 14vw;
}
.contact-wrapper .button {
  padding: 20px 12% 20px 18%;
  max-width: 840px;
}

@media (max-width: 840px) {
  .buttons ul {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .contact.button {
    margin-top: 14vw;
  }
}

@media (max-width: 720px) {
  .contact,
  .shiryo {
    &.button {
      padding: 20px 12% 20px 30%;
      min-height: 100px;
    }
  }
}
@media (max-width: 520px) {
  .contents {
    margin-block: 40px;
  }
}
}