/*
 * 共通CSS - スマホ用（768px以下）
 *
 * 全ページで読み込まれます
 */

/* ここにスマホ用の共通スタイルを記述 */
.pc-only,
.pc_only,
.pcOnly {
  display: none;
}

/* ヘッダー（PC版は通常のナビゲーションメニュー） */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(30px) brightness(1.2);
  -webkit-backdrop-filter: blur(30px) brightness(1.2);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0px 20px 0px 10px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 左: ロゴ/アイコン */
.header-left {
  flex: 0 0 auto;
}

#site-logo {
  line-height: 0;
}

#site-logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* 真ん中: タイトル */
.header-center {
  flex: 1;
  text-align: center;
  padding: 0 0px;
}

#site-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

#site-title a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

/* 右: ハンバーガーメニュー */
.header-right {
  flex: 0 0 auto;
  z-index: 1002;
  position: relative;
}

.hamburger-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  width: 50px;
  height: 34px;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1002;
}

.hamburger-line {
  display: block !important;
  width: 28px;
  height: 1px;
  background-color: #333;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* ハンバーガーメニューがアクティブな時 */
.hamburger-menu[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
  background-color: #333;
}

.hamburger-menu[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
  background-color: #333;
}

/* ハンバーガーメニューが開いている時、ヘッダー背景とロゴとサイト説明を非表示 */
#header.menu-open {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

#header.menu-open .header-left,
#header.menu-open .header-center {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#header {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease,
    box-shadow 0.3s ease;
}

.header-left,
.header-center {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header-center #site-description {
  font-size: 18px;
}
/* PC版ナビゲーションメニュー - 全画面表示 */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  padding-top: 50px;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  z-index: 999;
  display: flex;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  margin: 10px 0;
}

.mobile-menu a {
  display: block;
  padding: 15px 30px;
  color: #333;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  opacity: 1;
  color: #a5745d;
}
.mobile-menu .sub-menu {
}
.mobile-menu .sub-menu li {
  margin: 4px 0;
}
.mobile-menu .sub-menu a {
  position: relative;
  display: block;
  padding: 8px 30px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.3s ease;
}
.mobile-menu .sub-menu a:hover {
  opacity: 1;
  color: #a5745d;
}

.mobile-menu .sub-menu a:before {
  content: "-";
  margin-right: 10px;
}

/* メインコンテンツの上部余白（ヘッダー分） */
body {
}

#container {
  padding-top: 0 !important;
}
main {
  padding-top: 0 !important;
  padding-bottom: 60px;
}

footer {
}
#copyright {
  padding-bottom: 10px;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  text-align: center;
  color: #999;
}

/* 追従バナー */
#enter-banner-btn {
  position: fixed;
  bottom: 66px;
  right: 2px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#enter-banner-btn.active {
  opacity: 1;
}
#enter-banner-btn .enter-banner {
  position: relative;
  z-index: 5;
  display: block;
  width: 84px;
  aspect-ratio: 1 / 1; /* 幅と高さの比率を設定 */
  margin: 0px auto 0 auto;
  color: #000;
  text-decoration: none;
  transition: filter 0.3s linear;
  border-radius: 50%;
  background: #ee9446;
  overflow: hidden;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
#enter-banner-btn .enter-banner:hover {
  opacity: 1;
}
.enter-banner .circle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  animation: anime_stripe_1 0.8s infinite linear;
}
.enter-banner .circle .text {
  display: block;
  margin-top: -4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 130%;
  letter-spacing: 0.06em;
  color: #fff;
}
.enter-banner .circle .text .f-strong-color {
  display: inline;
  font-weight: 800;
  color: #ff513d;
}
.enter-banner .circle .arrow {
  position: absolute;
  right: 32px;
  bottom: 13px;
  font-size: 20px;
  font-weight: 500;
  /* アニメーション追加: X方向に左右に動く */
  animation: arrowMoveX 1s infinite ease-in-out;
}
.enter-banner .circle .arrow::before {
  content: "";
  position: absolute;
  right: 1px;
  bottom: -3px;
  background: url(../imgs/top/arrow3.svg);
  background-size: 100% auto;
  width: 44px;
  height: 8px;
}
@keyframes arrowMoveX {
  0% {
    transform: translateX(4px);
  }
  50% {
    transform: translateX(-4px);
  }
  100% {
    transform: translateX(4px);
  }
}

/* スマホ版固定フッターメニュー */
.sp-fixed-footer-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #f7f7f7;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 998;
  padding: 0;
}

.sp-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  flex: 1;
  height: 100%;
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 5px 2px;
  justify-content: space-between;
}

.sp-menu-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 2px;
  flex-shrink: 0;
  transition: filter 0.2s ease;
}

.sp-menu-text {
  display: flex;
  align-items: center;
  height: 20px;
  font-size: 9px;
  line-height: 1.1;
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
}

/* メインコンテンツの下部余白を調整（固定フッターメニュー分） */
main {
  padding-bottom: 60px !important;
}

footer{
  padding-bottom: 70px;
}
