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

/* 固定ヘッダー */
.fixed-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  padding: 10px 0;
}


/* ハンバーガーアイコン */
.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;
}
.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 ul li {
  margin: 5px 10px;
}
.desktop-nav ul li 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;
}
.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;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  .desktop-nav {
    display: none;
  }
  #mobile-nav {
    display: block;
  }
  .main2 {
    transform: scale(0.9);
    transform-origin: top center;
  }
  .scale-wrapper {
    transform: scale(0.6);
    transform-origin: top center;
  }
}
@media screen and (max-width: 480px) {
  .main2 {
    transform: scale(0.9);
    transform-origin: top center;
  }
}

@media screen and (max-width: 600px) {
  .hamburger {
    top: 60px;     /* 例：上から70pxに変更 */
    right: 10px;   /* 例：右から10pxに変更 */
    transform: scale(0.9);
  }
}


/* 電話リンク（スマホのみ表示） */
.mobile-call-only {
  display: none !important;
}

@media screen and (max-width: 768px) {
  .mobile-call-only {
    display: block !important;
  }
}
