@charset "utf-8";

/* サイトCSS */
html {
  font-size: 62.5%;
}

.ddmenu a,.footer-col a,.footer-left ul li a,.site-footer,.footer-col h4 {
  font-family: "Noto Serif JP", serif;
  font-weight: 300;
  font-style: normal;
}
.carousel-text h3{
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-style: normal;  
}

.primary,.calendar-table td,.calendar-subsection ul,.season-events,.month-content,.form-box label{
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.5rem;
  padding: 0.7rem 2rem;
}
.carousel-text a,.memorial-message-2,p .p-bold,.calendar-table td.month,.calendar-subsection h3,.month-content p span,.activity-text p span,.overlay p span,.lead,.highlight,.annual-activities li span:first-child,button {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.white_button{
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-style: normal;
  background:#F5F5F5;
  color: #721D03;
  border: 1px solid #721D03;
}
h2,h2.farst,h3.second,.mv-title,.vertical-title,.memorial-title,.spring-mainvisual,.summer-mainvisual,.autumn-mainvisual,.winter-mainvisual,.month-label,.month-content strong,.month-content,.activity-text h3,.other-activities .block h3  {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-style: normal;
}

h2{
  font-size: 2.5rem;
}

p{
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.6rem;
  line-height: 1.9;
}

/* ------------------------------
  始まり
------------------------------*/
/* 共通レイアウト */
.wrapper{
  color: #2F2F2F;
  background-image: url("../images/washi.jpg");
 background-repeat: repeat;
  background-size: auto;
  background-position: top center;
}

.wrapper {
  margin: 0 auto;
}

/* ベース設定 */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(26, 26, 26, 0.95);;
  padding: 1rem 2rem;
  position: relative;
  z-index: 1001;
}
.nav-container.cream{
  background-color: rgba(238, 231, 225, 0.95);;
}
.logo img {
  height: 64px;
  margin-left: 30px;
}

.global {
  display: flex;
  justify-content: center;
}

.global .ddmenu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin-right: 40px;
  padding: 0;
}
.global .ddmenu li a {
  color: #F5F5F5;
  text-decoration: none;
  font-size: 1.6rem;
}
.global .ddmenu.cream-p li a{
  color: #2F2F2F;
}
/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  position: relative;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 24px;
  background: #F5F5F5;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.cream-b span {
  background: #2F2F2F;
}
/* 通常の三本線配置 */
.hamburger span:nth-child(1) {
  top: 10px;
}
.hamburger span:nth-child(2) {
  top: 18px;
}
.hamburger span:nth-child(3) {
  top: 26px;
}

/* アクティブ状態でバッテンに変形 */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 18px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 18px;
}


/* スマホサイズ対応 */
@media (max-width: 800px) {
  .global {
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
  }
    .global.cream-bg {
    background-color:  rgba(238, 231, 225, 0.95);;
  }
  .global.active {
    display: flex;
  }
  .global .ddmenu {
    flex-direction: column;
    width: 100%;
    padding-top: 3rem;
    text-align: center;
  }
  .global .ddmenu li {
    border-bottom: 1px solid #F5F5F5;
    padding: 1rem 0;
  }
    .global .ddmenu.cream-p li {
    border-bottom: 1px solid #2F2F2F;
  }
  .global .ddmenu li a {
    font-size: 1.6rem;
  }
  .hamburger {
    display: flex;
  }
}
/* メインビジュアル */
#top_mv {
  position: relative;
  text-align: center;
}

#top_mv h1 img {
  width: 100%;
  height: auto;
  display: block;
}

.main-visual-p {
  text-align: center;
}

.farst {
  font-size: 3.5rem;
  font-weight: normal;
  margin-top: 30px;
}

.second {
  font-size: 2.5rem;
  color: #721D03;
  font-weight: normal;
  margin: 0 auto;
}
.tb-br {
  display: none;
}
.sp-br {
  display: none;
}
.spp-br{
  display: none;
}
@media (max-width: 880px) {
  .second{
    margin: 0 30px;
    padding-top: 10px;
    line-height: 1.6;
  }

  .logo img {
  height: 55px;
  width: auto;
  margin-left: 20px;
}
.tb-br {
    display: inline;
  }
}
@media (max-width: 541px) {
.farst {
  font-size: 2.5rem;
  font-weight: normal;
  margin-top: 30px;
}

.second {
  font-size: 1.8rem;
  color: #721D03;
  font-weight: normal;
  margin: 0 auto;
}
}
@media (max-width: 419px) {
.sp-br {
    display: inline;
  }
}
@media (max-width: 460px) {
.spp-br {
    display: inline;
  }
}

/* 縦ラインのアニメーション（固定範囲内で内部が動く） */
.visual-line {
  width: 1.5px;
  height: 35px;
  margin: 0 auto;
  background-color: transparent;
  overflow: hidden;
  position: relative;
}

.line-inner {
  width: 1.5px;
  height: 100%;
  background-color: #721D03;
  position: absolute;
  top: -100%;
  left: 0;
  animation: line-scroll 1.8s ease-in-out infinite;
}

@keyframes line-scroll {
  0% { top: -100%; }
  100% { top: 100%; }
}

#top_memorial,#top_event,#top_about,#access,#top_contact{
  margin-top: 60px;
}
.text{
  margin-left: 30px;
}

/* /////////////topご供養のcss ///////////*/
#top_memorial  {
  margin-top: 100px;
  position: relative;
  max-width: 1400px;
  margin: 100px auto 0;
}
#top_memorial .top_memorial-inner {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  background-color: #2f2f2f;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.388);
  color: #F5F5F5;
  padding: 5rem 2rem;
  gap: 3rem;
  flex-wrap: wrap;
}

#top_memorial h2,#top_about h2,#access h2 {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  margin-top: 30px;
}

#top_memorial h2::after,#top_about h2::after {
  content: '';
  display: inline-block;
  height: 1px;
  background: #F5F5F5;
  width: 120px;
  margin-left: 1rem;
  vertical-align: middle;
}

#top_memorial h2 a,#top_about h2 a {
  color: #F5F5F5;
  text-decoration: none;
}

#top_memorial p,.about-text p {
  max-width: 435px;
  margin-bottom: 10px;
  font-weight: 300;
}

#top_memorial .buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.buttons a {
  display: inline-block;
  text-decoration: none;
}

.buttons .primary {
  background-color: #666;
  color: #F5F5F5;
  margin-bottom: 20px;
}
.buttons .primary:hover  {
    background-color: #F5F5F5;
    color: #666;
    margin-bottom: 20px;
}
#top_memorial .buttons .white_button {
  font-size: 1.7rem;
  padding: 1.5rem 2.6rem;
}

#top_memorial img {
  max-width: 100%;
  height: auto;
  margin-right: 30px;
}

/* レスポンシブ対応 */
@media (max-width: 1136px) {
  #top_memorial {
    flex-direction: column;
    align-items: center;
  }
  #top_memorial img {
  max-width: 435px;
  height: auto;
  margin-right: 0px;
  margin-top: 50px;
}
.text{
  margin-left: 0px;
}
#top_memorial .top_memorial-inner{
  padding-bottom: 10rem;
}
}

@media (max-width: 500px) {
  #top_memorial {
  max-width: 100%;
  height: auto;
}
#top_memorial img,#top_about img {
  max-width: 100%!important;
  height: auto!important;
}
.logo img {
  margin-left: 10px;
}
}

/* /////////////top年間行事のcss ///////////*/

#top_event{
  padding: 5rem 2rem;
  text-align: center;
}
.event-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}
#top_event h2,#top_contact h2 {
  margin-bottom: 0.5rem;
}
#top_event h2 a,#top_contact h2 a {
  text-decoration: none;
  color: #721D03;
}
.heading-line {
  width: 160px; /* ← 必要に応じて調整 */
  height: 1px;
  background-color: #721D03;
  margin: 0.5rem auto 3rem; /* ← 中央寄せ＆下に余白 */
}
.event-lead {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto ;
  flex-wrap: wrap;
}
.event-lead p {
  max-width: 720px;
  text-align: left;
  margin: 0;
  color: #2F2F2F;
  margin-bottom: 10px;
}
#top_event .buttons{
  display: flex;
  justify-content: flex-end;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.carousel-container {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  position: relative;
  padding: 2rem 0;
}
.carousel-track {
  display: flex;
  animation: scrollLeft 30s linear infinite;
  gap: 2rem;
}
.carousel-item {
  background: #F5F5F5;
  border: 1px solid #ccc;
  display: inline-block;
  width: 300px;
  white-space: normal;
  flex-shrink: 0;
}
.carousel-item img {
  width: 100%;
  height: auto;
}
.carousel-text {
  padding: 2rem;
  text-align: left;
}
.carousel-text h3 {
  color: #721D03;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.carousel-text p {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.carousel-text a {
  font-size: 1.3rem;
  color: #2F2F2F;
  text-decoration: none;
}
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .carousel-track {
    animation: none;
  }
}

/* /////////////top定福院についてのcss ///////////*/
#top_about {
  margin-top: 100px;
  position: relative;
  max-width: 1400px;
  margin: 100px auto 0;
}
.top-about-inner {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start; /* ここを stretch → flex-start に修正 */
  background-color: #2f2f2f;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.388);
  color: #f5f5f5;
  flex-wrap: wrap;
  position: relative;
  gap: 3rem;
}
.about-image {
  flex-shrink: 0;
  height: auto;
  position: relative;
  margin-top: -35px;  /* 飛び出し調整 */
  z-index: 2;
  margin-left: 50px;
}
.about-text {
  margin-top: 30px;
  margin-right: 50px;
  display: flex;
  flex-direction: column;
  max-width: 720px;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

#top_about .white_button{
  font-size: 1.6rem;
  padding: 1.5rem 5rem;
  margin: 0;
}

#top_about .top-about-primary {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

#top_about .white_button{
  margin-top: 30px;
}
#top_about .top-about-primary a{
  background-color: #666;
  color: #F5F5F5;
  margin-bottom: 20px;
  display: inline-block;
  text-decoration: none;
}

.top-about-white_button {
  display: flex;
  justify-content: center;
  gap: 8rem;
  margin-bottom: 4rem;
}

@media (max-width:1119px) {
  .top-about-white_button{
  gap: 2rem;
}
 #top_about {
    flex-direction: column;
    align-items: center;
  }
  .about-image {
  max-width: 435px;
  height: auto;
  margin-top: 30px;
}
.about-image {
  margin-left: 0;
}
.about-text{
  margin-right: 0;
  margin-left: 0;
  margin-top: 0;
  }
.top-about-inner{
    padding: 5rem 2rem;
}
}

@media (max-width: 939px) {
#top_about .white_button{
  font-size: 1.6rem;
  padding: 1.5rem 2rem;
  margin: 0;
}
.about-image{
  width: 100%;
}
}
@media (max-width: 770px) {
.top-about-white_button{
  display: flex; /* ←これが必要 */
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
    gap: 4rem;
}
}

/* /////////////top定アクセスのcss ///////////*/
#access {
  padding: 8rem 2rem;
  border-bottom: 1px solid #666;
  padding-bottom: 100px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 全体中央寄せの枠 */
.access-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* アクセス見出し */
#access h2,#about-history h2,.main-hall-section h2,.message-inner h2,.about-history-title,.activity-text h3 {
  color: #721D03;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  display: inline-block;
  position: relative;
  padding-left: 0;  /* ←不要なズレ防止 */
  margin-left: 0;
}

#access h2::after,#about-history h2::after,.main-hall-section h2::after,.message-inner h2::after,.about-history-title::after,h2.type3::after,.activity-text h3::after {
  content: '';
  display: inline-block;
  height: 1px;
  background: #721D03;
  width: 100px;
  margin-left: 1rem;
  vertical-align: middle;
}
.about-history-title,h2.type3::after,.activity-text h3,.activity-text h3::after,.activity-text h3 span{
  color: #2F2F2F;
}
.about-history-title::after,h2.type3::after,.activity-text h3::after{
  background: #2F2F2F;
  width: 200px;
}
#access h2 a,#about-history h2 a {
  color: #721D03;
  text-decoration: none;
}

/* 地図とテキストの横並び */
.access-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.access-map {
  flex: 1 1 55%;
  min-width: 300px;
}

.access-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.access-info p {
  font-size: 1.5rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.access-info .white_button {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
}

.white_button {
  font-size: 1.6rem;
  padding: 1.5rem 4rem;
  border: 1px solid #721D03;
  background: #F5F5F5;
  color: #721D03;
  text-decoration: none;
  display: inline-block;
}
@media (max-width: 340px) {
.access-map {
  min-width: 100%;
}
}

/* /////////////topお問い合わせのcss ///////////*/
#top_contact {
  text-align: center;
  padding: 5rem 2rem;
}
#top_contact p {
  margin-bottom: 20px;
}
#top_contact .buttons{
  display: flex;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.about-memorial-inner p span,.about-memorial-textblock p span,.memorial-message-4,#top_contact .event-lead a,.about-memorial-content.privacy-policy .about-memorial-inner a{
  color: #d20e0e;
  text-decoration: none;
}
#top_contact .event-lead a:hover,.memorial-message-2 a:hover,.about-memorial-content.privacy-policy .about-memorial-inner a:hover {
    color: #721D03;
}
/* /////////////topフッターのcss ///////////*/
.site-footer {
  background-color: #2f2f2f;
  color: #f5f5f5;
  padding: 4rem 2rem 2rem;
  font-size: 1.4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

/* 左ブロック：メニュー＋住所 */
.footer-left {
  flex: 1 1 100px;
  min-width: 180px;
}

.footer-left ul {
  list-style: none;
  padding: 0;
  margin-bottom: 8rem;
}

.footer-left ul li {
  margin-bottom: 0.8rem;
}
.footer-left ul li a{
  text-decoration: none;
  color: #f5f5f5;
}
.footer-left address {
  line-height: 1.8;
  font-style: normal;
}

.footer-left .tel-link {
  color: inherit;
  text-decoration: none;
}

/* 右ブロック：6カラムを2段に */
.footer-right {
  flex: 2 1 500px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4  {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  border-bottom: 0.5px solid #f5f5f5;
  padding-bottom: 0.3rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #f5f5f5;
  text-decoration: none;
}

/* ロゴ中央配置 */
.footer-logo {
  text-align: center;
  margin-bottom: 3rem;
}

.footer-logo img {
  width: 146px;
  height: auto;
}

/* コピーライト */
.footer-copy {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 4rem;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    gap: 3rem;
  }

  .footer-right {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    margin-bottom: 2rem;
  }

  .footer-left ul {
  margin-bottom: 2rem;
}
}

/* /////////////定福院についてのcss ///////////*/
/* メインビジュアル */
.top_mv .mv-inner {
  position: relative;
}

.top_mv{
    background-color: #E8E5DB;
}
.mv-inner picture img {
  width: 100%;
  height: auto;
  display: block;
}

.mv-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #f5f5f5;
  font-size: 3rem;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  z-index: 2;
  letter-spacing: 0.1em;
}
@media (max-width: 460px){
  .mv-title{
      font-size: 2.5rem;
      max-width: 200px;
  }
}

/* /////////////定福院についての中定福院の歴史のcss ///////////*/
/* セクション全体 */
/* ボタン */
#about-history .buttons{
  align-self: flex-end;
}

.white_button:hover {
  background-color: #721D03;
  color: #fff;
}


#about-history {
  background-color: #E8E5DB;
  padding: 10rem 7rem;
  border-bottom: 1px solid #666;
}

.about-history-inner,.history-inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* 画像セクション */
.about-history-image img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 3rem;
}

/* テキスト＋ボタンを横並び */
.about-history-content {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-history-content p {
  flex: 1;
  margin: 0;
  max-width: 700px;
}

#about-history .buttons {
  align-self: flex-end;
}

@media (max-width: 891px) {
#about-history {
  padding: 5rem 7rem;
}
  .about-history-content {
    flex-direction: column;
    align-items: center;
  }
  #about-history .buttons {
    align-self: flex-start;
    margin-top: 2rem;
  }
}
.bg-decoration {
  position: absolute;
  width: 368px;
  height: 375px;
  background-image: url("../images/about_decoration.png");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
}

/* それぞれの位置指定 */
.deco1 {
  top: 1450px;
  right: 50px;
}

.deco2 {
  top: 2300px;
  left: 50px;
}

.deco3 {
  top: 3000px;
  right: 50px;
}
/* /////////////定福院について本堂のcss ///////////*/
/* 全体背景＋背面装飾 */

.main-hall-inner {
  max-width: 1050px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  margin-top: 100px;
}

.main-hall-textblock p{
    width: 460px;
}
.main-hall-section h2 {
  text-align: left;
  margin-bottom: 0;
  margin-left: 20px;
}

.main-hall-title::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 1px;
  width: 100px;
  margin-left: 1rem;
  background-color: #721D03;
}

.main-hall-wrapper {
  display: flex;
  align-items: center;
  gap: 4rem;
  background-color: #E8E5DB;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.388);
  margin-top: 50px;
  margin-left: 20px;
  padding-bottom: 30px;
  padding-right: 40px;
  position: relative;
  z-index: 1;
}
.main-hall-wrapper-type2 {
  display: flex;
  align-items: center;
  gap: 4rem;
  background-color: #E8E5DB;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.388);
  margin-top: 50px;
  padding-bottom: 30px;
  position: relative;
  z-index: 1;
  margin-right: 20px;
  padding-left: 40px;
}

.main-hall-image img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: -20px -20px 0 #2F2F2F;
}
.main-hall-wrapper-type2 .main-hall-image img{
    width: 100%;
  height: auto;
  display: block;
  box-shadow: 20px -20px 0 #2F2F2F;
}

.main-hall-textblock {
  flex: 1;
}

.vertical-title {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 2.4rem;
  margin-bottom: 20px;
  letter-spacing: 0.5rem;
  margin-left: 210px;
  padding-top: 30px;
}

@media (max-width: 1190px) {
  .bg-decoration {
  position: absolute;
  width: 268px;
  height: 275px;
  background-image: url("../images/about_decoration.png");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
}

/* それぞれの位置指定 */
.deco1 {
  top: 30px;
  right: 50px;
}

.deco2 {
  top: 700px;
  left: 50px;
}

.deco3 {
  top: 1500px;
  right: 50px;
}
.main-hall-image img {
  max-width: 435px;
  height: auto;
}
.main-hall-textblock p{
    width: 100%;
      display: flex;
    align-items: center;   
}
.main-hall-inner {
  max-width: 950px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  margin-bottom: 130px;
}
.type1{
    margin-bottom: 0;
}
.vertical-title {
  margin-top: 20px;
  margin-left: 0;
  writing-mode: horizontal-tb;
  padding-top: 0;
  margin-bottom: 10px;
}
.main-hall-section {
  position: relative;
  overflow: hidden; /* ← 背景装飾がセクションからはみ出ないように */
padding: 5rem;
padding-bottom: 0;
}
.main-hall-inner {
  position: relative;
  overflow: visible; /* ← ここを visible に */
}
.main-hall-title {
  margin-top: 10px;
  margin-bottom: 20px;
}
.pc-br{
  display: none;
}
}

@media (max-width: 939px) {
  /* それぞれの位置指定 */
.deco1 {
  top: 650px;
  right: 10px;
}

.deco2 {
  top: 1850px;
  left: 10px;
}

.deco3 {
  top: 2700px;
  right: 10px;
}
  .main-hall-section {
  position: relative;
  overflow: visible; 
}
.main-hall-wrapper {
    display: flex; /* ←これが必要 */
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 100px;
    margin-left: 0;
    margin-right: 20px;
  }
.type1{
      display: flex;
    align-items: center;   
    padding-bottom: 0;
}
  .main-hall-wrapper-type2 {
    display: flex; /* ←これが必要 */
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.5rem;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
  }

  .main-hall-textblock {
    background-color: #E8E5DB;
    padding: 2rem;
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.2); /* お好みで影 */
    margin-left: 100px;
    margin-right: 50px;
    margin-top: 20px;
    max-width: 500px;
    width: 100%;
    padding-bottom: 50px;
  }

}
@media (max-width: 389px) {
.type1{
    padding-bottom: 0;
}
}
/* 住職の想いセクション */
#message,#memorial-message {
    margin-top: 100px;
    margin-bottom: 100px;
}
.message-inner{
  margin: 0 auto;
  position: relative;
  padding: 8rem 2rem;
  padding-top: 10rem;
  border: 1px solid #721D03;
  border-radius: 30px;
  max-width: 980px;
}
#message h2 {
  position: absolute;
  top: 0;             /* 必要に応じて調整 */
  left: 0;            /* 画像と揃えるなら調整 */        /* デフォルト余白をリセット */
  padding-left: 0;    /* 念のためリセット */
  margin-top: 40px;
  margin-left: calc(50% - 440px); /* 画像と同じ左位置に寄せる */
  max-width: 980px;
}
.message-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  flex-wrap: wrap;
}

.message-text {
  flex: 0 0 250px;
  text-align: center;
}

.message-text img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.message-text p {
  font-size: 1.6rem;
  color: #2f2f2f;
  line-height: 1.8;
}

.message-info {
  flex: 1;
  font-size: 1.6rem;
  line-height: 2;
  color: #2f2f2f;
  max-width: 600px;
}

.message-info p {
  margin-bottom: 2rem;
  text-align: justify;
}

.message-info p strong,
.message-info p b {
  font-weight: 700;
}
@media (max-width: 1190px){
  #message {
    margin-top: 0;
    margin-left: 20px;
    margin-right: 20px;
}
.message-info {
  max-width: 450px;
}
.message-inner{
  max-width: 850px;
}
#message h2 {
  margin-left: calc(50% - 370px); 
}
}
/* スマホ対応 */
@media (max-width: 939px) {
  .message-wrap {
    flex-direction: column;
    align-items: center;
  }

  .message-text {
    text-align: center;
  }

  .message-info {
    text-align: left;
  }
  #message h2 {
  margin-left: calc(50% - 160px); 
}
.message-info {
  max-width: 450px;
}
.message-inner{
  max-width: 500px;
}
}
@media (max-width:400px) {
    #message h2 {
  margin-left: calc(50% - 60px); 
}
}

.guidance{
  margin-bottom: 80px;
  margin-left: 20px;
  margin-right: 20px;
}




/* /////////////ご供養についてのcss ///////////*/
/* メインビジュアル */
.top_mv .memorial-button {
  position: absolute;
  bottom: 0;     /* 画像の下からの距離 */
  right: 0;      /* 画像の右からの距離 */
  z-index: 3;       /* 背景画像より前に */
}


/* /////////////ご供養についての説明css ///////////*/
/* セクション全体 */
/* ボタン */
.about-memorial-content{
  background-color: #E8E5DB;
  padding: 8rem 7rem;
}
.about-memorial-inner {
  max-width: 700px;
  margin: 0 auto;
}
.memorial-decoration-right {
  position: absolute;
  width: 693px;
  height: 499px;
  background-image: url("../images/memorial_decoration_right.png");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
}
.memorial-decoration-left {
  position: absolute;
  width: 693px;
  height: 499px;
  background-image: url("../images/memorial_decoration_left.png");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
}

/* それぞれの位置指定 */
.deco4 {
  top: 950px;
  right: 0;
}

.deco5 {
  top: 2300px;
  left: 0;
}

.deco6 {
  top: 3000px;
  right: 0;
}
/* /////////////ご供養についてのcss ///////////*/
/* 全体背景＋背面装飾 */

.memorial-inner {
  max-width: 1050px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  margin-top: 100px;
}
.about-memorial-textblock{
  margin-left: 70px;
  margin-right: 50px;
}
.about-memorial-textblock p{
    max-width: 400px;
}
.about-memorial-wrapper {
  display: flex;
  align-items: center;
  margin-top: 50px;
  margin-left: 20px;
  padding-bottom: 30px;
  position: relative;
  z-index: 1;
}
.about-memorial-wrapper-type2 {
  display: flex;
  align-items: center;
  margin-top: 50px;
  padding-bottom: 30px;
  position: relative;
  z-index: 1;
  margin-right: 20px;
}
.ather {
  max-width: 980px;
  display: flex;
  align-items: center;
  background-color: #E8E5DB;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.388);
  padding-top: 50px;
  padding-bottom: 50px;
  margin-left: 30px;
    margin-right: 20px;
  margin-bottom: 30px;
  z-index: 1;
  }
.about-memorial-image img {
  width: 474px;
  height: auto;
  display: block;
  z-index: 5;
}

.memorial-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  padding-top: 10px;
}
.about-memorial-wrapper-type2 {
  position: relative;
  z-index: 1;
  margin-left: 30px;
}
.about-memorial-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50px;
  width: 85%;
  height: 110%; /* 下半分 */
  background-color: #E8E5DB;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.388);
  z-index: -1;
}
.about-memorial-wrapper-type2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -10px;
  width: 85%;
  height: 110%; /* 下半分 */
  background-color: #E8E5DB;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.388);
  z-index: -1;
}
@media (max-width: 1190px) {
  .about-memorial-wrapper::after {
  right: 20px;
  margin-right: 0;
    width: 80%;
}
  .memorial-decoration-right {
  position: absolute;
  width: 493px;
  height: 299px;
  background-image: url("../images/memorial_decoration_right.png");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
}
  .memorial-decoration-left {
  position: absolute;
  width: 493px;
  background-image: url("../images/memorial_decoration_left.png");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
}
  .memorial-inner .ather {
  margin-left: 60px;
  }
/* それぞれの位置指定 */
.deco4 {
  top: 10px;
  right: -60px;
}

.deco5 {
  top: 810px;
  left: 0;
}

.deco6 {
  top: 1700px;
  right: -60px;
}
.about-memorial-image img {
  max-width: 435px;
  height: auto;
}
.about-memorial-textblock p{
    width: 100%;
    align-items: center;   
}
.main-hall-inner {
  max-width: 950px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  margin-bottom: 130px;
}
.type1{
    margin-bottom: 0;
}
.vertical-title {
  margin-top: 20px;
  margin-left: 0;
  writing-mode: horizontal-tb;
  padding-top: 0;
  margin-bottom: 10px;
}
.about-memorial-section {
  position: relative;
  overflow: hidden; /* ← 背景装飾がセクションからはみ出ないように */
padding: 5rem;
padding-bottom: 0;
}
.about-memorial-wrapper {
  margin-left: 50px;
}
.about-memorial-wrapper-type2 {
  margin-right: 50px;
}
}
@media (max-width: 1099px){
  .about-memorial-wrapper::after {
  right: 20px;
  margin-right: 0;
    width: 80%;
}
}
@media (max-width: 939px) {
  /* それぞれの位置指定 */
.deco4 {
  top: 580px;
  right: -100px;
}

.deco5 {
  top: 2100px;
  left: 0;
}

.deco6 {
  top: 3600px;
  right: -100px;
}
.about-memorial-wrapper {
    display: flex; /* ←これが必要 */
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background-color: transparent;
    box-shadow: none;
    padding: 8rem,2rem;
    margin-bottom: 160px;
    margin-left: 0;
    margin-right: 0;
    background-color: #E8E5DB;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.388);
    max-width: 500px;
    margin-left: 100px;
  }
.type1{
      display: flex;
    align-items: center;   
    padding-bottom: 0;
}
  .about-memorial-wrapper-type2 {
    display: flex; /* ←これが必要 */
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.5rem;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 160px;
    background-color: #E8E5DB;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.388);
    max-width: 500px;
    margin-left: 100px;
  }
.about-memorial-wrapper::after {
display: none;
}
.about-memorial-wrapper-type2::after {
display: none;
}
.about-memorial-image{
  padding-top: 30px;
}
.about-memorial-textblock{
  padding-bottom: 30px;
  margin-left: 25px;
  margin-right: 20px;
}

.memorial-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  margin-bottom: 130px;
}
  .about-memorial-image{
    padding-left: 30px;
    padding-right: 30px;
  }
  
  .memorial-inner .ather {
  max-width: 500px;
  margin-left: 95px;
    margin-right: 95px;
  }
}
@media (max-width: 799px) {
.about-memorial-wrapper,.about-memorial-wrapper-type2{
  margin-left: 90px;
  margin-right: 90px;
}
.about-memorial-section{
  padding: 0;
}
.about-memorial-image img {
  max-width: 100%;
  height: auto;
}
}
@media (max-width: 499px) {
.about-memorial-wrapper,.about-memorial-wrapper-type2{
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}
.about-memorial-textblock {
    margin-left: 40px;
    margin-right: 40px;
}
.about-memorial-content,    #about-history {
    background-color: #E8E5DB;
    padding: 8rem 3rem;
}
.memorial-inner .ather {
  max-width: 500px;
  margin-left: 0;
    margin-right: 0;
  }
}
#memorial-message{
  margin-left: 70px;
  margin-right: 70px;
}
.memorial-message-inner{
  margin: 0 auto;
  position: relative;
  padding: 3rem 3rem;
  padding-left: 80px;
  border: 1px solid #721D03;
  border-radius: 30px;
  max-width: 880px;
    align-items: center;
}
.memorial-message{
  margin-top: 0;
  max-width: 800px;
}
.memorial-message-1{
  margin-bottom: 20px;
}
.memorial-message-2 a{
  color: #2F2F2F;
  text-decoration: none;
}
.memorial-message-3{
  margin-top: 20px;
}
.guidance{
  margin-bottom: 80px;
  margin-left: 20px;
  margin-right: 20px;
}
@media (max-width: 1190px){
.memorial-message{
  max-width: 700px;
}
}
@media (max-width: 939px){
  .memorial-message-inner{
  padding-left: 40px;
  max-width: 500px;
}
#memorial-message,.about-memorial-wrapper-type2  {
    margin-top: 0;
    margin-bottom: 100px;
}
}
@media (max-width: 499px){
#memorial-message{
  margin-left: 10px;
  margin-right: 10px;
}
}


/* /////////////歴史についてのcss ///////////*/
.br-space {
  display: block;
  height: 1em;
}
.history {
  padding: 30px 20px;
}

.history-inner {
    background-color: rgba(245, 245, 245, 0.5);
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 50px;
}
.history .type3{
background-color: transparent;
}
.history p{
  margin-top: 20px;
}

.about-history-title {
  position: relative; /* 装飾を内側で制御するため */
  background-color: transparent; /* 不要なら削除OK */
  z-index: 1; /* テキストを前面に */
}

.about-history-title::before {
  content: '';
  display: block;
  width: 100px;
  height: 100px;
  background: url(../images/line-circle-right.png) no-repeat center center;
  background-size: contain;
  position: absolute;
  top: -35px;
  left: 60%;
  transform: translateX(-50%);
  z-index: -1; /* テキストの下に行くように */
}
h2.type3::before{
  content: '';
  display: block;
  width: 100px;
  height: 100px;
  background: url(../images/line-circle-left.png) no-repeat center center;
  background-size: contain;
  position: absolute;
  top: -35px;
  left: 1%;
  transform: translateX(-50%);
  z-index: -1; /* テキストの下に行くように */
}
.about-history-block {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap; /* スマホ用に折り返し対応 */
}

.about-history-text-area {
  flex: 1;
  min-width: 300px;
}

.image-area {
  flex: 1;
  min-width: 300px;
}

.image-area img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
}


@media screen and (max-width: 779px) {
  .history {
    flex-direction: column;
  }
  .image-area img {
  width: 435px;
  height: auto;
}
}

@media (max-width:589px){
.about-history-title::after,h2.type3::after{
  display: none;
}
.about-history-title,h2.type3 {
    text-align: center !important;
    display: block !important;
  }
.about-history-title{
    display: inline-block;
    margin: 0 auto !important;
    width: auto;
  }
  .history-inner {
  padding: 40px 20px;
}
.about-history-block {
  gap: 0;
}
.image-area img {
  margin-top: 10px;
  width: 100%;
}
.about-history-title::before {
  content: '';
  display: block;
  width: 100px;
  height: 100px;
  background: url(../images/line-circle-right.png) no-repeat center center;
  background-size: contain;
  position: absolute;
  top: -45px;
  left: 70%;
  transform: translateX(-50%);
  z-index: -1; /* テキストの下に行くように */
}
h2.type3::before{
  content: '';
  display: block;
  width: 100px;
  height: 100px;
  background: url(../images/line-circle-left.png) no-repeat center center;
  background-size: contain;
  position: absolute;
  top: -40px;
  left: 30%;
  transform: translateX(-50%);
  z-index: -1; /* テキストの下に行くように */
}
}
/* /////////////年間行事のcss ///////////*/
.season-contents .text{
  margin-left: 0;
}
.about-annual-event-content p{
  margin-top: 30px;
  max-width: 700px;
}
.about-annual-event-content{
  padding: 0 7rem;
}
@media screen and (max-width: 499px){
  .about-annual-event-content{
  padding: 0 3rem;
}
} 

.calendar-section {
  background: url('../images/event-calendar.png') no-repeat center center / cover;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  margin-top: 60px;
}
.calendar-box {
  background-color:  rgba(245, 245, 245, 0.9);
  padding: 40px 30px;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.calendar-box h2 {
  text-align: center;
  margin-bottom: 20px;
}
.calendar-box hr {
  border: none;
  border-top: 1px solid #444;
  margin-bottom: 30px;
}
.calendar-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}
.calendar-table td.month{
  font-size: 1.6rem;
}
.calendar-table td {
  padding: 10px;
  vertical-align: top;
  border-bottom: 1px solid #ddd;
}
.calendar-table td:first-child {
  white-space: nowrap;
  width: 60px;
}
.calendar-subsection h3 {
  margin-top: 20px;
  font-size: 1.8rem;
}
.calendar-subsection ul {
  padding-left: 10px;
  margin-top: 10px;
}
.calendar-subsection li {
  margin-bottom: 8px;
}
.calendar-subsection  p{
  padding-left: 10px;
  margin-top: 5px;
  font-size: 1.5rem;
}

/* /////////////季節ごとのcss ///////////*/
.season-events {
  padding: 100px 20px;
}

.season-title,.regular-activities-title,.special-event-title,.gallery-title {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
  width: fit-content;
  margin: 0 auto 30px;
  padding-left: 30px;
  padding-right: 30px;
}

.spring-mainvisual,.summer-mainvisual,.autumn-mainvisual,.winter-mainvisual {
  height: 250px;
  position: relative;
  margin-bottom: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0;
  color: #F5F5F5;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.spring-mainvisual{
    background: url('../images/spring-mv.jpg') center center / cover;
}
.summer-mainvisual{
    background: url('../images/summer-mv.png') center center / cover;
}
.autumn-mainvisual{
    background: url('../images/autumn-mv.jpg') center center / cover;
}
.winter-mainvisual{
    background: url('../images/winter-mv.jpg') center center / cover;
}
.with-border3 .seven-month{
  white-space: nowrap;
}
.season-label {
  line-height: 1;
  margin-bottom: 30px;
}
.season-months{
  margin-bottom: 30px;
}
.season-label .season-kana,.season-months {
  font-size: 2.7rem;
  margin-left: 10px;
  vertical-align: middle;
}
.season-label .season-kanji {
  font-size: 16rem;
}

.season-contents {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.month-group {
  display: flex;
  flex-direction: column;
  gap: 60px;
  position: relative;
}
.month-group.winter-pic{
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
}
.month-block {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  position: relative;
}

.month-label {
  font-size: 2.5rem;
  white-space: nowrap;
}

.month-content {
  max-width: 1080px;
  font-size: 1.8rem;
  margin-top: 5px;
}
.month-content strong{
  font-size: 2.5rem;
}
.month-content p{
  padding: 0;
  padding-top: 10px;
  max-width: 380px;
}
.with-border1::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -160px;
  height: 150px;
  width: 1px;
  background: #444;
}
.with-border2::before {
  content: "";
  position: absolute;
  left: 17px;      /* ラベル位置と合わせる */
  top: -260px;      /* 上方向に伸ばして調整 */
  height: 250px;    /* 必要に応じて長さ調整（表示が途切れてたら伸ばす） */
  width: 1px;
  background: #444;
}
.with-border3::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -65px;
  height: 55px;
  width: 1px;
  background: #444;
}
.with-border4::before {
  content: "";
  position: absolute;
  left: 17px;      /* ラベル位置と合わせる */
  top: -175px;      /* 上方向に伸ばして調整 */
  height: 170px;    /* 必要に応じて長さ調整（表示が途切れてたら伸ばす） */
  width: 1px;
  background: #444;
}
.with-border5::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -220px;
  height: 190px;
  width: 1px;
  background: #444;
}
.with-border6::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -220px;
  height: 210px;
  width: 1px;
  background: #444;
}
.with-border7::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -660px;
  height: 580px;
  width: 1px;
  background: #444;
}
.with-border8::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  height: 560px;
  width: 1px;
  background: #444;
}
.with-border9::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50px;
  height: 840px;
  width: 1px;
  background: #444;
}
.with-border10::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50px;
  height: 200px;
  width: 1px;
  background: #444;
}
.month-block .with-border11{
  padding-left: 30px;
}
.month-content-with-image.spring-1 {
  display: flex;
  align-items: flex-start; /* 上揃え */
  gap: 300px;
}
.month-content-with-image.spring-2 {
  display: flex;
  align-items: flex-start; /* 上揃え */
  gap: 30px;
}
.month-content-with-image.summer-1 {
  display: flex;
  align-items: flex-start; /* 上揃え */
  margin-left: 185px;
  margin-top: 10px;
    gap: 30px;
}
.month-content-with-image.summer-2 {
  display: flex;
  align-items: flex-start; /* 上揃え */
  gap: 30px;
  margin-top: 0;
}
.month-content-with-image.autumn-1 {
  display: flex;
  align-items: flex-start; /* 上揃え */
  gap: 370px;
}
.month-content-with-image.autumn-2 {
  display: flex;
  align-items: flex-start; /* 上揃え */
  gap: 30px;
}
.month-content-with-image.winter-1 {
  display: flex;
  align-items: flex-start; /* 上揃え */
  gap: 30px;
}
.month-content-with-image.winter-2 {
  display: flex;
  align-items: flex-start; /* 上揃え */
  margin-left: 490px;
  margin-top: -250px;
}
.month-content-with-image.winter-3 {
  display: flex;
  align-items: flex-start; /* 上揃え */

}
.month-content-with-image.spring-2 img,.month-content-with-image.summer-2 img,.month-content-with-image.autumn-1 img,.month-content-with-image.autumn-2 img,.month-content-with-image.winter-2 img,.month-content-with-image.winter-3 img{
  width: 300px;
  height: auto;
}
.month-content-with-image.spring-2 img{
  margin-top: 20px;
}
.month-content-with-image.winter-3{
  margin-left: 35px;
}
.month-content-with-image.winter-3 img{
  margin-left: 40px;
}
.month-content-with-image img {
  width: 200px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  margin-left: 10px;
}

.month-content-with-image .text {
  max-width: 500px; /* 好みに応じて調整 */
}

.autumn-button{
  margin-bottom: 0;
}
/* 初期状態：PC用は表示、SP用は非表示 */
.show-pc {
  display: block;
}
.show-sp {
  display: none;
}

@media screen and (max-width: 838px) {
  .month-content-with-image {
    flex-direction: column;
    align-items: flex-start; /* 左揃え（中央にしたければ center） */
  }

  .month-content-with-image img {
    width: 100%; /* 横幅いっぱいにして見やすく */
    max-width: 300px; /* 大きすぎるのを防ぐ */
  }

  .month-content-with-image .text {
    max-width: 100%;
  }
.month-content-with-image.summer-1 img,.month-content-with-image.spring-1 img,.month-content-with-image.autumn-1 img,.month-content-with-image.winter-2 img {
    display: none;
  }
    .show-pc {
    display: none;
  }
  .show-sp {
    display: block;
  }
  .with-border1::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -65px;
  height: 55px;
  width: 1px;
  background: #444;
}
.with-border2::before {
  content: "";
  position: absolute;
  left: 17px;      /* ラベル位置と合わせる */
  top: -460px;      /* 上方向に伸ばして調整 */
  height: 450px;    /* 必要に応じて長さ調整（表示が途切れてたら伸ばす） */
  width: 1px;
  background: #444;
}
.with-border3::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -65px;
  height: 55px;
  width: 1px;
  background: #444;
}
.with-border4::before {
  content: "";
  position: absolute;
  left: 17px;      /* ラベル位置と合わせる */
  top: -65px;      /* 上方向に伸ばして調整 */
  height: 55px;    /* 必要に応じて長さ調整（表示が途切れてたら伸ばす） */
  width: 1px;
  background: #444;
}
.with-border5::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -420px;
  height: 370px;
  width: 1px;
  background: #444;
}
.with-border6::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -65px;
  height: 55px;
  width: 1px;
  background: #444;
}
.with-border7::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -860px;
  height: 840px;
  width: 1px;
  background: #444;
}
.with-border8::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50px;
  height: 790px;
  width: 1px;
  background: #444;
}
.with-border9::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50px;
  height: 1250px;
  width: 1px;
  background: #444;
}
.with-border10::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50px;
  height: 380px;
  width: 1px;
  background: #444;
}
.month-content-with-image.winter-3 img{
  margin-left: 10px;
  margin-top: 50px;
}
.month-content-with-image.spring-2,.month-content-with-image.summer-2,.month-content-with-image.autumn-1,.month-content-with-image.autumn-2,.month-content-with-image.winter-1,.month-content-with-image.winter-2,.month-content-with-image.winter-3{
  gap: 0;
}
.month-content-with-image.winter-3 img{
  margin-top: 0;
}
.month-content-with-image.spring-2 img {
    margin-top: 0;
}
}
@media screen and (max-width: 563px) {
  .month-group,.month-block,.month-content-with-image.spring-2,.month-content p {
    width: 100%;
  }
  .month-content p{
    max-width: 300px;
  }
  .season-label .season-kana,.season-months{
    display: none;
  }
  .spring-mainvisual,.summer-mainvisual,.autumn-mainvisual,.winter-mainvisual {
  justify-content: flex-start;
}
.with-border2::before {
  content: "";
  position: absolute;
  left: 17px;      /* ラベル位置と合わせる */
  top: -520px;      /* 上方向に伸ばして調整 */
  height: 510px;    /* 必要に応じて長さ調整（表示が途切れてたら伸ばす） */
  width: 1px;
  background: #444;
}
.with-border7::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -980px;
  height: 900px;
  width: 1px;
  background: #444;
}
.with-border8::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50px;
  height: 810px;
  width: 1px;
  background: #444;
}
.with-border9::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50px;
  height: 1400px;
  width: 1px;
  background: #444;
}
.with-border10::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50px;
  height: 380px;
  width: 1px;
  background: #444;
}

}
@media screen and (max-width: 445px) {
  .month-content-with-image.spring-2 img,.month-content-with-image.summer-2 img,.month-content-with-image.autumn-1 img,.month-content-with-image.autumn-2 img,.month-content-with-image.winter-2 img,    .month-content-with-image img,.month-content-with-image.winter-3 img{
  width: 230px;
  height: auto;
}
.with-border2::before {
  content: "";
  position: absolute;
  left: 17px;      /* ラベル位置と合わせる */
  top: -470px;      /* 上方向に伸ばして調整 */
  height: 460px;    /* 必要に応じて長さ調整（表示が途切れてたら伸ばす） */
  width: 1px;
  background: #444;
}
.with-border7::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -970px;
  height: 910px;
  width: 1px;
  background: #444;
}
.with-border8::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  height: 870px;
  width: 1px;
  background: #444;
}
.with-border9::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50px;
  height: 1330px;
  width: 1px;
  background: #444;
}
.with-border10::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50px;
  height: 380px;
  width: 1px;
  background: #444;
}
}
@media screen and (max-width: 418px) {
.with-border2::before {
  content: "";
  position: absolute;
  left: 17px;      /* ラベル位置と合わせる */
  top: -500px;      /* 上方向に伸ばして調整 */
  height: 490px;    /* 必要に応じて長さ調整（表示が途切れてたら伸ばす） */
  width: 1px;
  background: #444;
}
.with-border5::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -430px;
  height: 380px;
  width: 1px;
  background: #444;
}
.with-border7::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -1140px;
  height: 1100px;
  width: 1px;
  background: #444;
}
.with-border8::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50px;
  height: 960px;
  width: 1px;
  background: #444;
}
.with-border9::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50px;
  height: 1460px;
  width: 1px;
  background: #444;
}
.with-border10::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50px;
  height: 340px;
  width: 1px;
  background: #444;
}
.month-content-with-image .text {
    max-width: 220px;
}
.month-content-with-image.spring-2 img, .month-content-with-image.summer-2 img, .month-content-with-image.autumn-1 img, .month-content-with-image.autumn-2 img, .month-content-with-image.winter-2 img, .month-content-with-image img, .month-content-with-image.winter-3 img{
        width: 220px;
        height: auto;
        margin: 0;
    }
}

/* /////////////その他の活動のcss ///////////*/
.regular-activities {
  background-color: #E8E5DB;
  padding: 60px 20px;
}
.container {
  max-width: 1080px;
  margin: 0 auto;
}
.activity-card {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  margin-top: 60px;
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.activity-text {
  flex: 1;
  font-size: 1.6rem;
  line-height: 1.8;
  max-width: 500px;
}

.activity-text h3 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.activity-text h3 span {
  font-size: 1.8rem;
}

.activity-button {
  display: inline-block;
  margin-top: 16px;

  text-decoration: none;
  border-radius: 6px;
  font-size: 1.4rem;
  transition: all 0.3s;
}

.activity-image {
  flex-shrink: 0;
}

.activity-image img {
  border-radius: 10px;
  object-fit: cover;
}

/* スマホ対応 */
@media screen and (max-width: 1050px) {
  .container {
  max-width: 600px;
  margin: 0 auto;
}
  .activity-card {
    flex-direction: column;
    align-items: center;
  }

  .activity-image img {
    width: 100%;
    height: auto;
  }

  .activity-text {
    text-align: left;
  }
}

/* /////////////特別行事のお知らせのcss ///////////*/
.special-event {
  background-image: url('../images/special-bg.png'); /* ←画像のパスに合わせて変更 */
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  position: relative;
}
.special-event-title,.gallery-title {
  border-bottom:1px solid #721D03;
  color: #721D03;
}
.overlay {
  max-width: 460px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.8); /* 白背景 + 半透明 */
  border-radius: 20px;
  padding: 40px 100px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.lead {
  font-size: 2.5rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.highlight {
  color: #C42E00;
  font-size: 22px;
}

p {
  margin-bottom: 25px;
  text-align: justify;
}

@media screen and (max-width: 639px) {
.overlay{
    max-width: 550px;
    padding: 40px 35px;
}
}

/* /////////////特別行事の写真のcss ///////////*/
.special-event-gallery {
  background-color: #eae6dc; /* 背景色はスクショに合わせたトーン */
  padding: 100px 20px;
  text-align: center;
  margin-bottom: 60px;
}

.special-event-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.special-event-gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.special-event-gallery-grid img:hover {
  transform: scale(1.03);
}
@media screen and (max-width: 569px) {
.special-event-gallery-grid img{
  max-width: 328px;
  height: auto;
}
.special-event-gallery-grid{
  justify-items: center;
}
}
/* /////////////特別行事の写真のcss ///////////*/
.about-memorial-content.privacy-policy{
  background-color: #FFFEFC;
  padding: 8rem 7rem;
}
.about-memorial-content.privacy-policy p{
margin-bottom: 80px;
}
.about-memorial-content.privacy-policy a{
color: #2F2F2F;
}
@media (max-width: 499px){
  .about-memorial-content.privacy-policy{
  padding: 8rem 3rem;
}
}

/* /////////////お問い合わせのcss ///////////*/
.about-memorial-content.privacy-policy .form-box p,.about-memorial-content.privacy-policy .form-footer p{
  margin-bottom: 30px;
}
    form {
      background: #e8e4d9;
      padding: 40px;
      max-width: 600px;
      margin: auto;
      border-radius: 8px;
      margin-bottom: 70px;
    }
    label {
      display: block;
      margin-top: 20px;
      font-size: 1.6rem;
    }
    input[type="text"],
    input[type="email"],
    textarea {
      width: 100%;
      padding: 8px;
      border: 1px solid #ccc;
      border-radius: 4px;
        cursor: pointer;
    }
    .required {
      color: red;
    }

.form-footer {
  max-width: 650px;
  margin: 40px auto 0;
  text-align: center;
  margin-bottom: 120px;
}

.form-footer p {
  margin-bottom: 20px;
}

.consent {
  display: inline-block;
  margin-bottom: 20px;
}

button.sosin {
  background: #FFFEFC;
  color: #2F2F2F;
  padding: 12px 30px;
  border: 1px solid #999;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}
button.sosin:hover{
  background-color: #721D03;
  color: #e8e4d9;
}
/* /////////////羅漢のcss ///////////*/
.rakan-title,.goeika-title{
  white-space: nowrap;
}
.about-history-text-area p span{
  font-size: 2rem;
  color: #721D03;
}
@media (max-width:460px){
.rakan-title,.goeika-title{
  white-space: normal;
  min-width: 200px;
}
}
.rakan-activity-section {
  padding: 0rem 2rem;
  padding-bottom: 20px;
}

.activities-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1080px;
  margin: 0 auto;
  justify-content: center;
}

.annual-activities {
  background: #fff;
  padding: 2rem 3rem;
  border-radius: 2rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.annual-activities ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.annual-activities li {
  display: flex;
  gap: 2rem;
  font-size: 1.1rem;
  line-height: 2.4rem;
  border-bottom: 1px dotted #ddd;
  padding: 0.2rem 0;
  font-size: 1.6rem;
}

.annual-activities li span:first-child {
  min-width: 3rem;
}

.other-activities .block h3 {
  font-size: 2rem;
  margin-bottom: 10px
}

.other-activities .block {
  margin-bottom: 2rem;
}

.other-activities p {
  font-size: 1.6rem;
  line-height: 2rem;
  margin: 0.4rem 0;
}
.rakan h2.type3::before,.rakan .about-history-title::before{
  display: none;
}

.goeika-title{
  text-shadow: 0 0 5px rgb(0, 0, 0);
}

/* /////////////羅漢のcss ///////////*/
.column-birds{
  margin: 5rem;
  align-items: center;
}
.column-birds p{
  font-size: 1.6rem;
}





@media (max-width:599px){
  .activity-text h3::after{
    display: none;
  }
}
@media (max-width:400px) {
  #access h2::after,#about-history h2::after,.main-hall-section h2::after,#top_memorial h2::after,#top_about h2::after,.heading-line,.message-inner h2::after
{
    display: none;
  }

  #about-history h2,.main-hall-section h2 {
    text-align: center !important;
    display: block;
  }

  #about-history h2 a,.main-hall-section h2{
    display: inline-block;
    margin: 0 auto !important;
    text-align: center;
    width: auto;
  }
  
#about-history h2,.main-hall-section h2,#top_memorial h2,#top_about h2{
      text-align: center;
  }
  section#access .access-inner h2 {
    text-align: center !important;
       display: block;
  }
  #top_event h2, #top_contact h2{
    margin-bottom: 2rem;
  }
}

/* ===== 基本配色・共通 ===== */
:root{
  --bg:#FBF9F6;
  --text:#2b2b2b;
  --muted:#6f6f6f;
  --card:#fff;
  --line:#e9e5e2;
  --accent:#8B4E3B; /* 茶アクセント */
  --shadow:0 6px 18px rgba(25,25,25,.08);
}

*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,
  "Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Arial,sans-serif;}
img{max-width:100%;display:block}
.wrap{max-width:1040px;margin:0 auto;padding:28px 22px 40px}
h1{margin:0 0 10px;font-size:28px;color:var(--accent);letter-spacing:.02em;font-family: "Zen Kaku Gothic New", sans-serif;font-weight: 400;}


/* ===== グリッド ===== */
.grid{display:grid;gap:22px;grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:980px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.grid{grid-template-columns:1fr}}

/* ===== カード ===== */
.card{background:var(--card);border-radius:16px;overflow:hidden;box-shadow:var(--shadow);
  transition:transform .12s ease,box-shadow .12s ease}
.card:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(25,25,25,.12)}

.thumb-wrap{aspect-ratio:4/3;background:#f2f2f2;overflow:hidden}
.thumb{width:100%;height:100%;object-fit:cover}
.body{padding:12px 12px 14px;background:#fff;border-top:1px solid #f4f1ee}
.date{font-size:12px;color:var(--muted);margin-bottom:8px}

.balloon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 29px;
  height: 36px;
  margin-right: 5px;
}

/* 吹き出し本体 */
.bubble {
  position: relative;
  margin: 0;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #999;    /* 枠色（グレー） */
  border-radius: 18px;
  line-height: 1.7;
  font-size: 1.5rem;
  color: #2F2F2F;

  word-break: break-word;
}
.detail{
  padding: 20px 20px;
    line-height: 1.8;
}
.bubble::before {
  content: "";
  position: absolute;
  top: 50%;                     /* 親の高さの中央に */
  left: -19.5px;                  /* 横位置：外に出す距離 */
  transform: translateY(-50%);  /* 上下中央揃え */
  border: 10px solid transparent;
  border-right-color: #999;     /* 枠の色 */
}

.bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -17px;                  /* ::beforeより3pxだけ内側 */
  transform: translateY(-50%);
  border: 9px solid transparent;
  border-right-color: #fff;     /* 背景色 */
}

/* ===== ページャ ===== */
.pager{display:flex;gap:14px;justify-content:center;align-items:center;margin:28px 0 6px;color:var(--accent)}
.pager a{display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;border-radius:999px;text-decoration:none;border:1px solid #d8cfc9;background:#fff;color:#6a4a3f}
.pager a[aria-label]{width:auto;padding:0 10px;border-color:transparent;background:transparent}
.pager a.current{background:var(--accent);border-color:var(--accent);color:#fff}





:root{
  --bg:#FBF9F6; --text:#222; --muted:#6f6f6f; --accent:#8B4E3B;
  --line:#e9e5e2; --shadow:0 6px 18px rgba(25,25,25,.08);
}

/* セクション余白 */
.post{ max-width:1040px; margin:0 auto 56px; padding:0 22px; }
.post + .post{ padding-top:40px; border-top:1px solid #d7cfc8; }
.post-date{ color:var(--accent); margin:0 0 12px; font-size: 2.5rem; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 400;}

/* viewer（1投稿＝1スライダー） */
.viewer{ position:relative; border-radius:18px; overflow:hidden; box-shadow:var(--shadow); background:#000; }
.viewer::before{ content:""; display:block; aspect-ratio:16/9; } /* 高さ安定 */
.viewer .slide{ position:absolute; inset:0; opacity:0; transition:opacity .25s ease; }
.viewer .slide.active{ opacity:1; }
.viewer .slide img{ width:100%; height:100%; object-fit:cover; display:block; }

/* ←→ボタン */
.navbtn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:42px; border-radius:999px; border:none;
  background:rgba(0,0,0,.35); color:#fff; display:grid; place-items:center; cursor:pointer;
}
.navbtn:hover{ background:rgba(0,0,0,.5); }
.prev{ left:14px; } .next{ right:14px; }

/* ドット */
.dots{ display:flex; gap:8px; justify-content:center; margin:10px 0 18px; }
.dots .dot{ width:8px; height:8px; border-radius:999px; border:none; background:#c9bdb6; }
.dots .dot.active{ background:var(--accent); }



/* アンカーで飛んだ時に見出しが隠れないようオフセット */
.post:target{ scroll-margin-top: 80px; }
