/* ==================================================
   全体フォントと背景
   ================================================== */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  background-color: #000;
  color: white;
}

/* ==================================================
   固定ヘッダー（法事ページ用）
   ================================================== */
.fixed-header2 {
  position: fixed;
  top: 0;
  width: 100%;
  height: 120px;
  z-index: 1000;
  background-color: #000;
}

/* ==================================================
   ハンバーガーアイコン（PC・スマホ共通）
   ================================================== */
.hamburger {
  position: fixed;
  top: 100px;
  right: 16px;
  width: 30px;
  height: 19px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 10001;
  transform: none;
}
.hamburger span {
  display: block;
  height: 2px;
  background-color: white;
  border-radius: 2px;
}
.hamburger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ==================================================
   ナビゲーション（PC用）
   ================================================== */
.desktop-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.desktop-nav li {
  margin: 5px 10px;
}
.desktop-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* ==================================================
   モバイルナビゲーション
   ================================================== */
#mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 240px;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  padding-top: 60px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}
#mobile-nav.open {
  transform: translateX(0);
}
#mobile-nav ul {
  list-style-type: none;
  padding: 0 24px;
  text-align: left;
}
#mobile-nav li {
  margin: 20px 0;
}
#mobile-nav a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  color: white;
  text-decoration: none;
  font-size: 18px;
  transition: opacity 0.3s ease;
}
#mobile-nav a:hover {
  opacity: 0.7;
}

/* ==================================================
   メインコンテンツ（法事ページ）
   ================================================== */
.main2 {
  padding-top: 140px;
  color: #ffffff;
  background-color: #000000;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  transform-origin: top center;
}

/* ==================================================
   テキスト・表セクション
   ================================================== */
.centered-section2 {
  text-align: center;
  margin: 0 auto;
  color: #ffffff;
}
.centered-section2 table {
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
  max-width: 400px;
}
.centered-section2 td {
  text-align: center;
  padding: 6px;
}
.centered-text2 {
  text-align: center;
  max-width: 50em;
  margin: 0 auto;
}
.centered-text2 p {
  font-size: 1.5em;
  line-height: 1.1;
  margin: 0;
}
.text-large2 {
  font-size: 1.8em;
  line-height: 1.6;
  text-align: center;
}
.nowrap-text2 {
  white-space: nowrap;
  font-size: 1.3em;
  text-align: center;
}

/* ==================================================
   フッター
   ================================================== */
footer {
  text-align: center;
  padding: 20px;
  background-color: #111;
}

/* ==================================================
   共通画像調整
   ================================================== */
img {
  max-width: 100%;
  height: auto;
}

/* ==================================================
   スケール調整ラッパー
   ================================================== */
.scale-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  transform-origin: top center;
}

/* ==================================================
   レスポンシブ対応（スマートフォン・タブレット）
   ================================================== */
@media screen and (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  .desktop-nav {
    display: none;
  }
  #mobile-nav {
    display: block;
  }
  .main2 {
    transform: scale(0.9);
  }
  .scale-wrapper {
    transform: scale(0.6);
  }
}

@media screen and (max-width: 600px) {
  .main2 {
    padding-top: 30px !important;
    transform: none !important;
  }

  .centered-section2 {
    margin-top: 0 !important;
  }

  div[align="center"] {
    margin-top: 60px !important;
    padding: 0 12px;
  }

  .fixed-header {
    display: flex;
    justify-content: space-between; /* 左右に分ける */
    align-items: flex-end;          /* 下端を揃える */
    padding: 8px 12px;
    height: auto;
  }

  .fixed-header img {
    width: auto;
    max-width: 350px;
    height: auto;
    margin: 0;
  }

  .hamburger {
    position: static;               /* 固定解除で自然な並びに */
    margin-bottom: 9px;             /* 下端微調整 */
    transform: scale(0.9);
  }
}

/* 初期状態では非表示 */
.mobile-call-only {
  display: none;
}

/* スマホ・タブレット（768px以下）でのみ表示 */
@media screen and (max-width: 768px) {
  .mobile-call-only {
    display: block;
  }
}