/*ジムメニュー
---------------------------------------------------------------------------*/

#gym-menu {
  margin: 0 0 4rem;
  padding: 10px;
  position: relative;
  background-color: transparent;
}

/* =====================
   GYM LABEL (STORE NAME)
===================== */
.gym-label {
  text-align: center;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.gym-label .en {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--primary-color);
  font-weight: 800;
}

.gym-label .jp {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-top: 2px;
}

/* =====================
   MODERN GYM NAV
===================== */
#gym-menu ul {
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center; /* 中央寄せで密度を上げる */
  gap: 8px; /* ボタン同士の隙間 */
  list-style: none;
}

#gym-menu li {
  flex: 1;
  max-width: 120px; /* 広がりすぎないように制限 */
}

#gym-menu a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gray-6); /* 通常時は少し薄めに */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* アイコンを円で囲む */
#gym-menu i {
  font-size: 1.1rem; /* 少し小さめに */
  color: var(--gray-4);
  background-color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 8px;
  border: 1px solid var(--gray-1); /* 繊細なボーダー */
  transition: all 0.3s ease;
}

#gym-menu .text {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gray-6);
}

/* --- Hover / Active State --- */

#gym-menu a:hover i,
#gym-menu a.active i {
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px); /* 軽く浮かせる */
  box-shadow: 0 4px 12px rgba(255, 160, 122, 0.3);
}

#gym-menu a:hover .text,
#gym-menu a.active .text {
  color: var(--black);
}

/* アクティブな時の下線バー（吹き出しの代わり） */
#gym-menu a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

@media (max-width: 480px) {
  #gym-menu .text {
    font-size: 0.6rem;
    white-space: nowrap;
  }
}

/* =====================
   FIXED STATE ADJUSTMENT
===================== */
/* 固定時のスタイル */
#gym-menu.fixed i {
  display: none; /* 文字を非表示 */
  margin-bottom: 0;
}

/* 固定時のスタイルを強化 */
#gym-menu.fixed {
  position: fixed; /* これが効くためには top/left が必要 */
  top: 0; 
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 60px; /* JSから上書きされますが予備として */
  width: 100%;
  z-index: 999; /* 他の要素より手前に */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin: 0;

  /* アニメーションを発動させる */
  animation: slideBack 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

/* アニメーションの内容（少し微調整しました） */
@keyframes slideBack {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  70% {
    transform: translateY(10px); /* ぷるんとする動き */
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 固定時のラベル：左側に小さく配置 */
#gym-menu.fixed .gym-label {
  padding:0;
  line-height: 0.8rem;
  margin-bottom: 0;
  margin-right: auto; /* メニューを中央に寄せるため */
  text-align: left;
  border-right: 1px solid var(--gray-1);
  padding-right: 10px;
}

#gym-menu.fixed .gym-label .en {
  font-size: 0.55rem;
}

#gym-menu.fixed .gym-label .nodisp {
  display: none;
}

#gym-menu.fixed .gym-label .jp {
  font-size: 0.75rem;
  white-space: nowrap;
  letter-spacing: 0.4em;
}

/* 固定時のリスト：アイコンが消えるので横幅を調整 */
#gym-menu.fixed ul {
  flex: 2; /* メニュー部分を広く取る */
  gap: 0;
}

#gym-menu.fixed li {
  max-width: none;
}

#gym-menu.fixed a {
  padding: 15px 5px;
}


/* 固定が外れる時の自然なフェードアウト（任意） */
#gym-menu:not(.fixed) {
  transition: opacity 0.3s ease;
}

/* 初心者マーク描画 */
.icon-beginner {
	position: relative;
	display: inline-block;
	width: 1rem;
	height: 1em;
	vertical-align: middle;
	margin-right: .4em;
}
.icon-beginner::before,
.icon-beginner::after {
	position: absolute;
	top: 0;
	content: "";
	display: block;
	width: 50%;
	height: 100%;
	border: .1em solid var(--primary-color);
	border-bottom-width: .15em;
	box-sizing: border-box;
}
.icon-beginner::before {
	left: 0;
	background: transparent;
	transform: skewY(45deg);
	border-radius: .3em 0 0 .1em;
	border-right: none;
}
.icon-beginner::after {
	right: 0;
	background: var(--primary-color);
	transform: skewY(-45deg);
	border-radius: 0 .3em .1em 0;
	border-left: none
}


/* JSで切り替えるスタイル */
#gym-menu a.kichijoji-active {
  background-color: rgba(173, 216, 230, 1); /* 吉祥寺タブの色 */
  color: #333;
}

#gym-menu a.sagamihara-active {
  background-color: rgba(201, 228, 202, 1); /* 相模原タブの色 */
  color: #333;
}

.kichijoji-position {
  left: 0;
}

.sagamihara-position {
  left: 60%;
}


#gym-menu .span{
  display: none;
}

/*営業時間
---------------------------------------------------------------------------*/
section{
  width: 100%;
  padding: 0;
  margin: 0;
}
.eigyoujikan ul{
  padding: 0;
  margin: 0;
}

.timeTable{
  margin-top: 1rem;
  position: relative;
  list-style:none;
  padding-left: 0;
  width: 100%;
  text-align: center;
}

/*営業時間チャート*/
.openingTime{
  width: 100%;
  margin-bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
}
.openingTime li{
  padding: 5px 0;
  margin-bottom: 10px;
  line-height: 1rem;
  font-size: 0.8rem;
  text-align: center;
}
.openingTime .close{
  background-color: var(--gray-3);
  /*border: 1px solid #555;*/
}
.openingTime .mujin{
 background-color: var(--bg-blue);
 /*border: 1px solid #849efb;*/
}
.openingTime .yujin{
  background-color: var(--bg-pink);
  /*border: 1px solid #eb3498;*/
}

.openingTime .alltime{
  width: 100%;
}
.openingTime .ichi{
  width: calc(100% /18 * 1);
}
.openingTime .ni{
  width: calc(100% /18 * 2);
}
.openingTime .san{
  width: calc(100% /18 * 3);
}
.openingTime .yon{
  width: calc(100% /18 * 4);
}
.openingTime .go{
  width: calc(100% /18 * 5);
}
.openingTime .roku{
  width: calc(100% /18 * 6);
}
.openingTime .nana{
  width: calc(100% /18 * 7);
}
.openingTime .hachi{
  width: calc(100% /18 * 8);
}
.openingTime .kyu{
  width: calc(100% /18 * 9);
}
.openingTime .jyu{
  width: calc(100% /18 * 10);
}
.openingTime .jyuichi{
  width: calc(100% /18 * 11);
}
.openingTime .jyuhachi{
  width: calc(100% /18 * 18);
}



.highlite{
  background-color: #ff9;
}

.mujinNote{
  margin-top: 3rem;
}
.mujinNote dt{
  text-align: center;
}
.mujinNote dt::after,
.mujinNote dt::before{
  content: " ー ";
}
.mujinNote dd{
  text-align: left;
  margin-inline-start: 1rem;
  font-size: 0.8rem;
}
.mujinNote dd::before{
  content: " - ";
  margin-left: -1rem;
}

.nobochinote {
  font-size: 0.6rem;
  line-height: 1em;
  text-align: left;
  margin: 0;
  padding: 0;
  position: absolute;
  bottom: -2.5em;
  left: 0; /* .timeTable divと同じ幅 */
  width: 78%; /* .openingTimeと同じ幅 */
}

.overseas {
    margin:20px auto;
    padding:1em;
    background-color:rgba(233, 208, 247,0.8);
    color:#555;
    border-top:2px dashed #fff;
    border-bottom:2px dashed #fff;
    box-shadow:0 0 0 5px rgba(233, 208, 247,0.8);
  font-size: 0.9rem;
}
.overseas h4{
  font-size: 1.1rem;
}

/*リストの各要素に前要素として■を付ける*/
.legend {
  text-align: left;
  margin-top: 1rem 0 3rem 3rem;
}

.legend li:before {
		content: "";
		display: inline-block;
		height: 1.5rem;
		width: 3rem;
		margin-right: 5px;
	}
.legend li.leg1:before {
		background: var(--bg-pink);
		border-radius:10;
}
.legend li.leg2:before {
		background: var(--bg-blue);
		border-radius:10;
}
.legend li.leg3:before {
		background: var(--gray-3);
		border-radius:10;
}


/*利用料金
---------------------------------------------------------------------------*/
table.price {
  width: 100%;
  border-collapse: separate;  /* 表の線と線の間を空ける */
  border-spacing:  5px;       /* 表の線と線の間の幅 */
  margin-bottom: 5rem;
}
.price tr{
  font-size: 0.9rem
}
.price th,td {
  padding: 10px 5px;          /* 余白指定 */
  vertical-align:middle;
  font-size: 0.9rem
}

.price tr th:nth-of-type(1) {
  /*width: 35%;*/
  width: auto;
}

.price th {
  background-color:  #5f81fb; /* 背景色指定 */
  color:  var(--white);        /* 文字色指定 */
  font-weight:  normal;       /* 文字の太さ指定 */
  border-bottom: 3px solid #5f81fb;
}

.price td {
  background-color:  #f2f4ff; /* 背景色指定 */
  border-bottom: 3px solid #aaa;
  font-size: 1rem;
}
.price td[colspan],
.price th[colspan] {
  text-align: center;
}
.mainprice td{
  text-align: right;
}
.price th.reg{
  background-color: #B3C4FC;
  border-bottom: 3px solid #B3C4FC;
  color: var(--gray-6);
}
.price th.reg:nth-of-type(2){
  font-size: 1rem;
}
.price th.blankCell{
  background-color: transparent;
  border-bottom: transparent;
}
.price td.note{
  background-color: transparent;
  border-bottom: transparent;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1rem;
  padding: 0;
}
.price td.note2{
  background-color: transparent;
  border-bottom: transparent;
  text-align: center;
  padding: 10px;
}

.price th.day {
  width: 20px; /* 幅を狭くする */
  writing-mode: vertical-rl; /* 文字を縦に並べる */
  padding: 5px 0; /* 余白を調整 */
  text-align: center; /* 中央揃え */
}
.price .holiday {
  background-color: var(--sagamihara-color);
  color: var(--white); /* 文字色を白に */
  border-bottom: 3px solid var(--sagamihara-color);
}

.price caption{
  position: relative;
  padding: 0.5rem 0;
  margin-bottom: 1.8rem;
  border-bottom: 5px solid #ccc;
  font-weight: bold;
  font-size: 1rem;
  color: #333;
}

.price caption:before,
.price caption:after {
    position: absolute;
    top: 100%;
    left: 49%;
    content: "";
    height: 0;
    width: 0;
}

.price caption:before {
    border: 16px solid;
    border-color: transparent;
    border-top-color: #ccc;
    margin-left: -16px;
}

.price caption:after {
    border: 10px solid;
    border-color: transparent;
    border-top-color: white;
    margin-left: -10px;
}
.price th.otokuinfo{
  background-color: transparent;
  border-bottom: transparent;
  color: #555; 
  font-size: 1.1em;
   vertical-align: bottom;
  text-align: left;
  padding-bottom: 0;
}

.section .arrow {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.section .arrow::before {
  animation: arrow 2.5s infinite;
  border: solid #B3C4FC;
  border-width: 0 0 4px 4px;
  content: "";
  margin: auto;
  position: absolute;
  top: -1rem;
  transform: rotate(-45deg);
  width: 20px;
  height: 20px;
}


/*イマココ*/
.relative-container {
  position: relative;
  width: 100%;
  height: 100%;
}


.imakoko {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 3px;
}
.imakoko::before {
  content: "";
  width: 20px;
  height: 1px;
  transform: rotate(60deg);
  box-sizing: border-box;
  background-color: #fff;
}
.imakoko::after {
  content: "";
  width: 20px;
  height: 1px;
  transform: rotate(-60deg);
  box-sizing: border-box;
  background-color: #fff;
}
.imakoko > div{
  line-height: 0.7rem;
  color: deeppink;
  font-size: 0.7rem;
  animation: blink 1s ease-in-out infinite alternate;
}

@-webkit-keyframes blink {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-moz-keyframes blink {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-o-keyframes blink {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes blink {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}



/*レンタルアイテムを並べる*/
.rental-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

/*お支払い方法*/
.payment-main .pc {
  display: none;
}
.payment-main .sp {
  display: block;
  width: 80%;
	margin:0px auto;
}
.payment-logos{
	display: flex;
	width: 80%;
	justify-content:space-between;
	margin:0px auto;
	align-items: center;
}
.payment-logos>img{
  width:3rem;
}



/*施設紹介(スライドショー)
---------------------------------------------------------------------------*/
:root {
	--gallery-space: 120px;	/*上と下の波打った画像の高さ。お好みで調整してもらってもOKですし、下で数箇所使っている所を直接数字入力に変更されてもOKです。*/
}

/*スライドショーブロック全てを囲むブロック*/
.slide-thumbnail-box {
	overflow-x: hidden;
}

/*画像たちを囲むブロック*/
.slide-thumbnail1 .img {
	display: flex;
  width: max-content;

  /* iPhone / Safari 用：長押しメニューを禁止 */
  -webkit-touch-callout: none;
  
  /* Android / Chrome 用：テキスト選択や長押しを禁止 */
  -webkit-user-select: none;
  user-select: none;
  
  /* タップした時の青いハイライトを消す（任意） */
  -webkit-tap-highlight-color: transparent;
}

.slide-thumbnail1 .img div {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;

  /* ポインターイベントを制御して画像そのものへのドラッグなどを防ぐ */
  user-drag: none;
  -webkit-user-drag: none;
}

/* PCでマウスを乗せた時、およびスマホでタップし続けている間 */
.slide-thumbnail1:hover .img,
.slide-thumbnail1:active .img {
  animation-play-state: paused;
  cursor: pointer; /* PCで「触れる」ことを視覚的に伝える */
}


/*画像*/
.slide-thumbnail1 .img img {
  height: 220px;
  width: auto;
  object-fit: cover; /* 念のため */
	padding: 5px;	/*画像の余白*/
}

/*右から左へ、左から右へ、のアニメーション*/
.slide-thumbnail1 .rtl, .slide-thumbnail1 .ltr {
	animation-timing-function: linear;
	animation-iteration-count: infinite;
  animation-duration: 40s;
}

.slide-thumbnail1 .rtl {animation-name: slide-rtl;}
.slide-thumbnail1 .ltr {animation-name: slide-ltr;}

@keyframes slide-rtl {
0% {transform: translateX(0);}
100% {transform: translateX(-50%);}
}

@keyframes slide-ltr {
0% {transform: translateX(-50%);}
100% {transform: translateX(0);}
}



/*スタッフ
---------------------------------------------------------------------------*/
.box{
  margin: 0 0 15px 0;
}

.box .text{
  width: 60%;
  padding: 5px;
  font-size: 0.9rem;
  background: var(--bg-blue);
}

.box .img{
  width: 40%;
  overflow: hidden;
}

.box .img img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 偶数・奇数で左右を入れ替え */
.box:nth-child(even){
  display: flex;
  flex-direction: row-reverse;
}

.box:nth-child(odd){
  display: flex;
}

@media (min-width: 768px) {
  .box {
    align-items: stretch;
    gap: 0;
    margin-bottom: 12px;
  }

  .box .text {
    width: 60%;
    padding: 1.2rem 1.4rem;
    font-size: 0.95rem;
    line-height: 1.7;
    background: var(--bg-blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .box .text h3 {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
    line-height: 1.3;
    text-align: left;
  }

  .box .text p {
    margin: 0;
  }

  .box .img {
    width: 40%;
    overflow: hidden;
  }

  .box .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}


/*アクセス
---------------------------------------------------------------------------*/
.info-container {
  display: flex;
  justify-content: space-between;
}

.info-block {
  flex-basis: 45%;
}

.info-block p, .info-block address, .info-block ul{
  font-size: 0.8rem;
  line-height: 1rem;
}
.info-block li::before{
  content:"▶︎";
  font-size: 0.8rem;
}

.highlight {
  background-color: var(--bg-blue);
  padding: 5px;
  border-radius: 5px;
}


/* タブレット以上
---------------------------------------------------------------------------*/

@media (min-width: 768px) {
  .rental-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* お支払い方法 */
  .payment-main .sp {
    display: none;
  }
  .payment-main .pc {
    display: block;
    width: 100%;
  }
  .payment-logos{
    width: 100%;
    display: flex;
    gap: 0.3rem;
    justify-content:left;
    margin: 0 1rem;
  }
  .payment-logos>img{
    width:2rem;
  }


  img.parkingmap{
    width: 40%;
  }
}