@charset "utf-8";

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

  .grave_item {
    width: 33%;
    padding: 0 30px 50px;
    margin: 0 auto;
  }
  
}



/* タブレット */
@media screen and (max-width: 768px) {
  
  .wrapper {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
  }
  
  .floating_menu {
    position: fixed;
    z-index: 99999;
    bottom: 0;
    left: 0;
    width: 100%;
  }

  .banner_flex {
    display: flex;
    flex-direction: row;
    height: 70px;

  }

  .banner_item:first-child {
    width: 50%;
    background-color: #6CBB5A;
    text-align: center;
    color: #fff;
    padding-top: 25px;
    display: block;
    font-size: 1.4rem;
  }

  .banner_item {
    width: 50%;
    background-color: #4c903d;
    text-align: center;
    color: #fff;
    padding-top: 25px;
    font-size: 1.4rem;
  }

  .grave_item {
    width: 50%;
    padding: 0 30px 50px;
    margin: 0 auto;
  }

  .footer_flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
  }
  
  .footer_flex_item {
    width: 48%;
  }

  #cta_tel {
    font-weight: 800;
    width: 100%;
    font-size: 2rem;
    color: #6CBB5A;
  }
  
  /* 下層ページ */

  .layer_header {
    width: 100%;
    height: 300px;
  }

  .header_flex {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    max-width: 768px;
    margin: 0 auto;
    height: 300px;
  }

  /* 施設の紹介 */

  .facility_flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 40px;
  } 

  .facility_flex:nth-child(2n+1) {
    flex-direction: column;
  }

  .facility_item1 {
    width: 100%;
    height: auto;
    padding: 10px 20px ;
  } 

  .facility_item1 h3 {
    font-size: 3rem;
    letter-spacing: 0.8rem;
    writing-mode:horizontal-tb ;
    font-weight: 100;
    height: auto;
    text-align: center;
    color: #7ed16a;
  }
  
  .facility_item2 {
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 10px 20px ;
   text-align: center;
  } 
  
  .facility_item2 p {
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: 0.08rem;
     text-align: center;
  }

  .facility_item3 {
    width: 100%;
    height: auto;
    padding: 40px 0px 50px;
  } 

  /* privacy: 「・」の下に折返しが潜らないようハンギングインデント */
  .privacy_section ul {
    padding-left: 1.2em;
  }
  .privacy_section li {
    padding-left: 1.2em;
    text-indent: -1.2em;
    line-height: 1.7;
  }

  /* FAQ: Qアイコン下に改行が潜らないよう余白を付与 */
  .faq_flex_item h3 {
    position: relative;
    padding-left: calc(2rem + 10px);
    line-height: 1.5;
  }

  .faq_flex_item h3::before {
    position: absolute;
    left: 0;
    top: 0;
    margin-right: 0;
  }
  
  .after_flex li {
  width: 33%;
  align-items: center;
  margin: 20px;
}

/* 一般墓  */

.usual_suggest ul {
  max-width: 700px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 20px 0 0;
  font-size: 1.2rem;
  line-height: 2;
}

.price_flex {
  max-width: 700px;
  margin: 40px auto 0;
}

.price_flex ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px;
}

.kanri {
  text-align: right;
  margin-top: 40px;
  padding-right: 30px;
}

.usual_set h5 {
  font-size: 1.4rem;
  text-align: center;
  margin-top: 60px;
  line-height: 1.5;
  padding: 0px 30px;
  margin-bottom: 60px;
}

/* 永代供養墓 */

.eidai_suggest ul {
  max-width: 750px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 20px 0 0;
  font-size: 1.2rem;
  line-height: 2;
}

.eidai_set .price_flex {
  max-width: 700x;
  margin: 40px auto 0;
}

.eidai_set .price_flex ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px;
}

.eidai_set h5 {
  font-size: 1.4rem;
  text-align: center;
  margin-top: 60px;
  line-height: 1.5;
  padding: 0 30px;
  margin-bottom: 60px;
}

.jumoku_suggest ul {
  max-width: 750px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 20px 0 0;
  font-size: 1.2rem;
  line-height: 2;
}

.jumoku_set h5 {
  font-size: 1.4rem;
  text-align: center;
  margin-top: 60px;
  line-height: 1.5;
  padding: 0 30px;;
  margin-bottom: 60px;
}

/* 合祀墓 */

.goshibo_cost_item {
  background-color: #fff;
  padding: 20px;
  width: 30%;
  height: 350px;
  background-color: #eb9a7a;
  border-radius: 5%;
}

.goshibo_suggest ul {
  max-width: 750px;
  margin: 0 auto 60px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 20px 0 0;
  font-size: 1.2rem;
  line-height: 2;
}

.goshibo_set h5 {
  font-size: 1.4rem;
  text-align: center;
  margin-top: 60px;
  padding: 0 30px;
  line-height: 1.5;
  margin-bottom: 60px;
}

.map_text {
  line-height: 1.7;
  padding: 0 20px;
}

.footer_flex_item ul {
  padding: 20px;
}


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

  .wrapper {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
  }

  .about_text {
    writing-mode: horizontal-tb;
    margin: 80px auto;
    text-align: center;
  }

  .about_text h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    margin-left: 0;
  }
  
}



/* スマホ */
@media screen and (max-width: 480px) {

  .wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
  .floating_menu {
    position: fixed;
    z-index: 99999;
    bottom: 0;
    left: 0;
    width: 100%;
  }

  .banner_flex {
    display: flex;
    flex-direction: row;
    height: auto;

  }
  

  
  .banner_item:first-child {
    width: 50%;
    background-color: #6CBB5A;
    text-align: center;
    color: #fff;
    padding-top: 20px;
    display: block;
    font-size: 1rem;
    padding-bottom: 20px;
  }

  .banner_item {
    width: 50%;
    background-color: #4c903d;
    text-align: center;
    color: #fff;
    padding-top: 20px;
    font-size: 1rem;
    padding-bottom: 20px;
  }

  .header-content {
    text-align: center;
      padding-top: 20vh;
  }

  .header-content h1 {
    writing-mode: vertical-rl;
    font-size: 3rem;
    display: inline-block;

  }

   .header-content p {
    width: 50%;
    font-size: 1.2rem;
    text-align: center;
    margin: 0 auto;
   }

  .news-list .item a{
    flex-flow: column;

  }

  .item li p{
    padding: 10px;
  }


.news-list .item .date {
  font-size: 1rem;
  margin-bottom: 10px;
}

.news-list .title {
  text-align: center;
}

.reason_flex {
  display: flex;
  flex-flow: column;
  margin-top: 60px;
}

.reason_item {
  width: 100%;
  padding: 0 30px 50px;
}

.reason_item .item_text {
  padding: 0 20px;
}

.grave_flex {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
}

.grave_item {
  width: 100%;
  padding: 0 30px 50px;
  margin: 0 auto;
}

.grave_btn {
  text-align: center;
}

.grave_btn .btn {
  display: inline-block;
  width: 250px;
  text-align: center;
  text-decoration: none;
  line-height: 60px;
  outline: none;
  color: #6CBB5A;
  background-color: #fff;
  position: relative;
  border: 1px solid #6CBB5A;
  transition: color 0.5s ease;
  margin: 0 auto;
}
.btn:hover {
  color: #fff;
}
.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}
.btn::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #6CBB5A;
  transform: scaleX(0);
  transform-origin: right;
  transition: all 0.5s ease;
  transition-property: transform;
}

.towa_link_flex {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column ;
  align-items: center;
  justify-content: center;
}

.towa_item {
  width: 100%;
  padding: 20px;
  font-size: 1.2rem;
  line-height: 1.5;
}

.towa_item img {
  width: 100%;
}

/* ツアー */
.top_tour {
    background-color: #60a751;
}

.top_tour_flex {
  flex-flow: column;
}

.top_tour_item {
  width: 100%;
}

.footer_flex {
  flex-flow: column;
  text-align: center;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

.towa {
  text-align: center;
  margin: 50px 0;
  width: 100%;
}

.towa img {
  width: 100%;
}

#cta_tel {
  font-weight: 800;
  width: 100%;
  font-size: 1.5rem;
  color: #6CBB5A;
  margin-top: 5px;
}

 .footer_flex_item {
    width: 100%;
  }

  .footer_flex_item ul {
  margin-top: 30px;
  width: 300px;
  margin: 0 auto;
}

/* 下層ページ */

.layer_header {
  width: 100%;
  height: auto;
}

.header_flex {
  display: flex;
  flex-direction:column;
  justify-content: space-between;
  align-items: center;
  max-width: 480px;
  margin: 0 auto;
  height: auto;
}

.header_flex_right_item{
  display: flex;
  align-items: flex-end; /* 右画像：高さ下揃え */
  width: 100%;
  padding-left: 0;
  margin-top: 20px;
}

.header_flex_right {
  width: 100%;
  height: 100%;
  object-fit: cover; /* アスペクト比維持して切り取り */
}




/* 京都西山霊園について */

.about_text h1 {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 20px;
  padding-top: 40px;
}


.slide {
  /* white-space: nowrap; */
  width: 100%;
  height: 250px;
  overflow: hidden;
}

/* 施設の紹介 */

.facility {
  padding-top: 30px;
  padding-bottom: 30px;
}

.facility_item3 {
  width: 100%;
  height: auto;
  padding: 10px 0px;
} 
.view {
  padding-top: 30px;
  padding-bottom: 30px;
}

.view_map {
  text-align: center;
  margin-top: 30px;
  width: 100%;
}

.view_map img {
  width: 100%;
} 

/* 西山霊園のお墓 */

.after_flex {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.after_flex li {
  width: 70%;
}

.moving_main_flex {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  flex-direction: column;
  margin-top: 30px;
  align-items: center;
}

.moving_main_flex li {
  width: 80%;
  position: relative;
  height: 250px;
  margin-bottom: 20px;
}

.moving_main_text_read {
  margin-top: 60px;
  font-size: 1.4rem;
  line-height: 1.5;
  text-align: center;
  padding: 0 20px;
}

.usual_cost_flex {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* 一般墓 */

.usual_text {
  font-size: 1.2rem;
  line-height: 1.7;
  letter-spacing: 0.08rem;
  text-align: center;
  margin-top: 30px;
  padding: 0 20px;
}

.usual_cost_item {
  background-color: #fff;
  padding: 20px;
  width: 70%;
  height: 300px;
  background-color: #448137;
  border-radius: 5%;
}

.cost_img {
  text-align: center;
  height: 100px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.price h4 {
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #448137;
  margin: 0 auto;
}

.price_flex {
  max-width: 460px;
  margin: 40px auto 0;
}

.price_flex ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 30px;
}

.price_flex ul li {
  list-style: none;
  flex: 0 1 calc(50% - 20px);
  color: #448137;
  border: 2px solid #448137;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.6;
  padding: 10px;
  background-color: #fff;
}



/* 永代供養 */

.eidai_text {
  font-size: 1.2rem;
  line-height: 1.7;
  letter-spacing: 0.08rem;
  text-align: center;
  margin-top: 30px;
  padding: 0 20px;
}

.eidai_set .price h4 {
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #017DA6;
  margin: 0 auto;
}

.eidai_set .price_flex {
  max-width: 460px;
  margin: 40px auto 0;
}

.eidai_set .price_flex ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 30px;
}
.eidai_set .price_flex ul li {
  list-style: none;
  flex: 0 1 calc(50% - 20px);
  color: #017DA6;
  border: 2px solid #017DA6;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.6;
  padding: 10px;
  background-color: #fff;
}

/* 樹木葬 */

.jumoku_text {
  font-size: 1.2rem;
  line-height: 1.7;
  letter-spacing: 0.08rem;
  text-align: center;
  margin-top: 30px;
  padding: 0 20px;
}

.jumoku_set .price h4 {
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #af8313;
  margin: 0 auto;
}

.jumoku_set .price img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 合祀墓 */

.goshibo_text {
  font-size: 1.2rem;
  line-height: 1.7;
  letter-spacing: 0.08rem;
  text-align: center;
  margin-top: 30px;
  padding: 0 20px;
}

.goshibo_cost_item {
  background-color: #fff;
  padding: 20px;
  width: 70%;
  height: 300px;
  background-color: #eb9a7a;
  border-radius: 5%;
}

.goshibo_cost_item .cost_img {
  text-align: center;
  height: 100px;
  margin: 10px 0;
}

.goshibo_set .price h4 {
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #eb9a7a;
  margin: 0 auto;
}

.goshibo_set .price h4 span {
  font-size:2rem;
}

.goshibo_set .price img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* アクセス */
.map_main_text p {
  font-size: 1.2rem;
  line-height: 1.7;
  letter-spacing: 0.08rem;
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.news p {
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.08rem;
  margin: 0 auto;
  padding: 20px;
}

.page {
  margin-top: 80px;
  margin-bottom: 80px;
}

.news h1 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 80px;
  line-height: 1.4;
  position: relative;
  padding: 0 20px;
}


}
