@charset "utf-8";



.prayer_sec {
  width: 100%;
  max-width: 144rem;
  padding: 0 8%;
  margin: 0 auto;
  margin-bottom: 8rem;
}

.prayer_inner {
  display: flex;
  position: relative;
  justify-content: center;
  gap: 4rem;
  margin-top: 10rem;
}

.prayer_head {
  flex: 0 0 26%;
  display: flex;
  justify-content: center;
}

.p_head {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.16em;
  padding: 2.4rem 1rem 0 0;
  writing-mode: vertical-rl;
  position: relative;
}

.p_head::before {
  content: "";
  display: block;
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  top: 0.9rem;
  left: 0.6rem;
  background-color: #e94709;
}

.prayer_image {
  width: calc(50vw + 32.8%);
  overflow: hidden;
}

.prayer_image img {
  object-fit: cover;
}



/*ご祈禱について*/

.prayer_body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  margin-top: 15rem;
}

.prayer_about {
  width: 100%;
}

.prayer_about_body {
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: break-word;
}

.prayer_about_inner {
  max-width: 100%;
}

.prayer_about_head {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.prayer_about_img {
  width: 28rem;
  aspect-ratio: 4 / 2;
  overflow: hidden;
}

.prayer_about_img img {
  width: 100%;
  object-fit: cover;
}

.prayer_about_h {
  writing-mode: vertical-rl;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: 0.16em;
  padding: 1em 0.5em;
  position: relative;
}

.prayer_about_h::before {
  content: "";
  display: block;
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  top: 0.1rem;
  left: 1rem;
  background-color: #e94709;
}

.prayer_about_head img {
  width: 80%;
}

.prayer_about_1,
.prayer_about_2,
.prayer_about_3,
.prayer_about_4 {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1rem;
  max-width: 100%;
  border-top: 1px dashed #595857;
}

.prayer_about_4 {
  border-bottom: 1px dashed #595857;
}

.prayer_about_2_last {
  border-bottom: 1px dashed #595857;
}

.prayer_label {
  flex: 0 0 clamp(4em, 20%, 6em);
  font-weight: bold;
  white-space: nowrap;
}

.prayer_text {
  flex: 1;
  word-break: break-word;
  min-width: 0;
  line-height: 1.5;
}

.prayer_texts {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.prayer_ceremony {
  margin-top: 15rem;
}

.prayer_request {
  text-align: center;
  margin-top: 4rem;
}

.request_head {
  display: flex;
  justify-content: center;
  gap: 3rem;
  align-items: center;
}

.request_head h4 {
  font-size: 1.5rem;
}

.request_body {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 1rem 0;
}

.request_tel,
.request_time {
  display: flex;
  gap: 2rem;
  font-size: 1.2rem;
}

.request_btn {
  margin-top: 2em;
  display: flex;
  gap: 3rem;
  justify-content: center;
  font-size: 16px;
}

.request_btn a {
  padding: 10px 16px;
  border: 1px solid #595857;
  border-radius: 30px;
  background-color: transparent;
  color: #333;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color 0.2s ease;
}

.request_btn a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #595857;
  z-index: -1;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.request_btn a:hover::before {
  width: 100%;
}

.request_btn a:hover {
  color: #fff;
  transition-delay: 0.18s;
}

/*お守り*/

figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

figure figcaption {
  margin-top: 0.8rem;
  text-align: center;
}

.amulet_inner {
  margin-left: 10%;
}

.amulet_head {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 5rem;
  justify-items: center;
  align-items: center;
}

.amulet_h_text {
  line-height: 1.5;
  font-size: 1.2rem;
  margin-top: 1rem;
}

.amulet_h_image {
  width: 20rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.amulet_h_image_img img {
  width: 100%;
  object-fit: cover;
}

.amulet_body1 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 5rem;
}

.amulet_body1 figure {
  width: 20rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.amulet_body1 img {
  width: 100%;
  height: 10rem;
  object-fit: contain;
}

.amulet_line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-top: 5rem;
}

/*きまちゃんショップ*/

.shop {
  position: relative;
  margin-top: 20rem;
  margin-bottom: 10rem;
}

.shop_body {
  display: flex;
  margin-left: 30%;
}

.shop_image {
  width: 17rem;
  margin-top: -9rem;
  z-index: 1;
}

.shop_image img {
  width: 100%;
  object-fit: cover;
}

.shop_text {
  margin-left: 2rem;
}

.shop_btn {
  margin-top: 2em;
  display: flex;
  gap: 3rem;
  justify-content: center;
  font-size: 16px;
}

.shop_btn a {
  padding: 10px 16px;
  border: 1px solid #595857;
  border-radius: 30px;
  background-color: transparent;
  color: #333;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color 0.2s ease;
}

.shop_btn a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #595857;
  z-index: -1;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop_btn a:hover::before {
  width: 100%;
}

.shop_btn a:hover {
  color: #fff;
  transition-delay: 0.18s;
}


/*===========JS用==========*/
/* 共通スクロールアニメ */
.scroll-fade {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, filter 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade.is-show {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* 画像スライド用 */
.js-slide {
  position: relative;
  overflow: hidden;
}

.js-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f7f7f7;
  /* 覆いの色 */
  transform: translateX(0);
  transition: transform 1.2s ease;
  z-index: 2;
}

.js-slide img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.05);
  transition: transform 1.2s ease;
}

.js-slide.is-show::before {
  transform: translateX(100%);
}

.js-slide.is-show img {
  transform: scale(1);
}

/* 御祈祷説明用 */
.js-fade-block {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

.js-fade-block.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* 順番に出すための遅延 */
.js-fade-block:nth-child(1) {
  transition-delay: 0s;
}

.js-fade-block:nth-child(2) {
  transition-delay: 0.3s;
}

.js-fade-block:nth-child(3) {
  transition-delay: 0.6s;
}


/*===========レスポンシブ==========*/

@media screen and (max-width: 1024px) {

  .prayer_body {
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 4rem;
  }

  .prayer_ceremony {
    margin-top: 0;
  }

  .prayer_about_head {
    flex-direction: column;
    gap: 1rem;
  }

  .prayer_about_h {
    writing-mode: horizontal-tb;
    padding: 0;
  }

    .prayer_about_h::before {
    top: 50%;
    left: -1rem;
    transform: translateY(-50%);
  }

  .prayer_about_img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .prayer_about_body,
  .prayer_about_inner,
  .prayer_body {
    min-width: 0;
  }


}


@media screen and (max-width: 800px) {
  /* 共通レイアウト幅 */

  .prayer_inner {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 4rem;
  }

  .prayer_head {
    justify-content: flex-start;
  }

  .p_head {
    writing-mode: horizontal-tb;
    padding: 0;
    font-size: 1.6rem;
    letter-spacing: 0.12em;
  }

  .p_head::before {
    top: 50%;
    left: -1rem;
    transform: translateY(-50%);
  }

  .prayer_image {
    width: 100%;
  }

  /* ご祈祷について */

  .prayer_body {
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 4rem;
  }

  .prayer_ceremony {
    margin-top: 0;
  }

  .prayer_about_head {
    flex-direction: column;
    gap: 1rem;
  }

  .prayer_about_h {
    writing-mode: horizontal-tb;
    padding: 0;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
  }

  .prayer_about_h::before {
    top: 50%;
    left: -1rem;
    transform: translateY(-50%);
  }

  .prayer_about_img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .prayer_about_1,
  .prayer_about_2,
  .prayer_about_3,
  .prayer_about_4 {
    flex-direction: column;
    gap: 0.5rem;
  }

  .prayer_about_text,
  .prayer_text,
  .amulet_text,
  .shop_text {
    font-size: 0.95rem;
    line-height: 1.9;
    letter-spacing: 0.04em;
  }

  .prayer_label {
    flex: none;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }

  .request_head {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .request_body {
    flex-direction: column;
    gap: 0.8rem;
  }

  .request_tel,
  .request_time {
    justify-content: center;
  }

  .request_tel {
    font-size: 1.2rem;
    letter-spacing: 0.08em;
  }

  .request_time {
    font-size: 0.9rem;
  }

  /* お守り */

  .amulet_inner {
    margin-left: 0;
  }

  .amulet_head {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .amulet_name {
    font-size: 0.9rem;
  }

  .amulet_price {
    font-size: 0.85rem;
  }

  .amulet_h_image {
    width: 100%;
  }

  .amulet_body1 {
    grid-template-columns: 1fr;
  }

  .amulet_line {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* きまちゃんグッズ */

  .shop {
    margin-top: 6rem;
  }

  .shop_body {
    flex-direction: column;
    margin-left: 0;
    align-items: center;
  }

  .shop_image {
    margin-top: 0;
    width: 10rem;
  }

  .shop_text {
    margin: 1.5rem 0 0;
    text-align: center;
  }

}