/* 全体フォントと背景 */
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;
}

/* ナビゲーション（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;
}

/* ハンバーガーアイコン */
.hamburger {
  position: fixed;
  top: 110px;
  right: 20px;
  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);
}

/* モバイルナビ */
#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-left: 24px;
  padding-right: 24px;
  text-align: left;
}
#mobile-nav li {
  margin: 20px 0;
  text-align: left;
}
#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;
}

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

/* レスポンシブ対応 */
@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);
  }
}

/* スマホ表示（600px以下）で全体縮小 */
@media screen and (max-width: 600px) {
  body {
    transform: scale(0.9);
    transform-origin: top center;
    overflow-x: hidden;
  }

  .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: relative;
    left: -15px;
    top: -5px;
    margin-bottom: 9px;
    transform: scale(0.9);
  }
}


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

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