/* =========================================================
   Base
========================================================= */
:root {
  --bottom-bar-height: 70px;   /* スマホ下部バーの高さ */
  --backtotop-offset: 20px;    /* 余白（現状はJS制御なので未使用） */
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

/* =========================================================
   Global
========================================================= */
body {
  background-color: #000;
  color: #fff;
  font-family: "Noto Sans JP", "Noto Serif JP", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#container.gym {
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

p {
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.7;
  margin: 0 0 1rem 0;
}

h1, h2, h3, h4 {
  margin: 0 0 1rem 0;
  line-height: 1.4;
  font-weight: 700;
  color: #fff;
}

a { color: #4caf50; text-decoration: none; }
a:hover { opacity: 0.8; }

/* layout helpers */
.top.clearfix::after { content: ""; display: block; clear: both; }
.line { width: 100%; margin: 0 auto; display: flex; flex-wrap: wrap; }
.vCenter { align-items: center; }

.lineBox100,
.lineBox50 {
  width: 100%;
  padding: 1.5rem;
  background-color: #111;
  border: 1px solid #222;
  border-radius: 4px;
  color: #fff;
}

.lineBox100 { margin-bottom: 2rem; }

.lineBox50 {
  max-width: 700px;
  margin: 0 auto 2rem;
}

section { padding: 2rem 1rem; }

@media (min-width: 768px) {
  section { padding: 3rem 1.5rem; }
}

/* =========================================================
   Header / Hero
========================================================= */
.hero-header {
  background-color: #000;
  background-size: cover;
  background-position: center center;
  padding: 3rem 1rem 2rem;
  border-bottom: 1px solid #222;
}
@media (min-width: 768px) {
  .hero-header { padding: 4rem 1.5rem 3rem; }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.hero-copy { flex: 1 1 360px; min-width: 280px; }

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .hero-title { font-size: 2.4rem; }
}

.hero-lead { font-size: 1rem; color: #ccc; line-height: 1.8; margin: 0 0 1rem 0; }
.hero-locations { font-size: 0.9rem; color: #9f9; margin: 0 0 1.5rem 0; line-height: 1.6; }

.hero-cta {
  display: inline-block;
  background-color: #4caf50;
  color: #000;
  font-weight: 700;
  padding: 0.8em 1.2em;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
}
.hero-cta:hover { opacity: 0.9; }

.hero-image {
  flex: 1 1 360px;
  min-width: 280px;
  min-height: 200px;
  background-color: #111;
  border: 1px solid #222;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.hero-image img {
  width: 100%; height: auto; display: block; object-fit: cover;
}

/* Global nav */
.main-nav {
  background-color: #000;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 999;
}
.main-nav ul {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}
.main-nav li { margin: 0; padding: 0; }
.main-nav a { color: #fff; font-size: 0.9rem; line-height: 1.4; font-weight: 500; }
.main-nav a:hover { color: #4caf50; }

@media (max-width: 480px) {
  .main-nav ul { gap: 0.5rem 1rem; }
  .main-nav a { font-size: 0.8rem; }
}

/* Section title */
.titlebg1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  background-color: #111;
  padding: 0.8em 1em;
  border-left: 4px solid #4caf50;
  margin: 0 0 1.5rem 0;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .titlebg1 { font-size: 1.4rem; }
}

.bgimg.about {
  width: 100%;
  margin: 0 auto 2rem;
  background-color: transparent;
}

/* =========================================================
   Side / Bottom Bar
========================================================= */
.side nav.pushy { background-color: #000; color: #fff; }
.side nav.pushy ul { list-style: none; margin: 0; padding: 2rem 1rem; }
.side nav.pushy li { margin: 0 0 1rem 0; }
.side nav.pushy a {
  display: block;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.6rem 0.8rem;
  border: 1px solid #222;
  border-radius: 4px;
  background-color: #111;
}
.side nav.pushy a:hover { background-color: #1a1a1a; color: #4caf50; }

/* bottom fixed bar */
.sidebsh {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--bottom-bar-height);
  background-color: rgba(0,0,0,0.9);
  border-top: 1px solid #222;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;        /* 縦は0で高さブレ防止 */
  font-size: 1rem;
  line-height: 1.2;
}
.sidebsh i { font-size: 1.5rem; margin-right: 0.3rem; }
.sidebsh a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
}

.menu-bsh,
.tel-bsh a,
.reserve-bsh a { font-size: 0.8rem; }

.site-overlay { background: rgba(0,0,0,0.6); }

/* =========================================================
   Content blocks
========================================================= */
/* ABOUT gallery */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.about-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #222;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.about-gallery img:hover { transform: scale(1.03); opacity: 0.9; }

@media (min-width: 768px) {
  .about-gallery { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .about-gallery img { height: 220px; }
}
@media (min-width: 1024px) {
  .about-gallery img { height: 240px; }
}

/* lists */
.lineBox100 ul,
.lineBox50 ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}
.lineBox100 li,
.lineBox50 li {
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.6;
  margin: 0 0 0.5rem 0;
}

/* headings/text inside sections */
#classes h3,
#instructor h3,
#faq h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #4caf50;
  margin: 1.5rem 0 0.5rem 0;
  line-height: 1.4;
}
#classes p,
#instructor p,
#faq p {
  font-size: 0.9rem;
  color: #ddd;
  line-height: 1.7;
  margin: 0 0 1rem 0;
}

/* =========================================================
   #instructor セクション（インストラクター紹介）
========================================================= */

/* 全体のラッパー */
#instructor {
  background-color: #000;
  color: #fff;
  padding: 2rem 1rem;
}

#instructor .lineBox100 {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;  /* 中央に整列 */
  background-color: #111;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 2rem 1rem;
}

/* 各トレーナーカード */
#instructor .trainer {
  width: 100%;
  max-width: 720px;
  background-color: #111;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 1.5rem;
  text-align: left;      /* 全文左寄せ */
  color: #ddd;
}

/* 名前 */
#instructor .trainer h3 {
  color: #4caf50;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

/* 紹介文 */
#instructor .trainer p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

/* 経歴リスト（箇条書きマークなし・段落風） */
#instructor .career {
  list-style: none;       /* ← マークを消す */
  padding-left: 0;
  margin: 0.4rem 0 1.2rem;
}

#instructor .career li {
  line-height: 1.8;
  margin-bottom: 0.4rem;
  color: #ccc;
  font-size: 0.9rem;
  text-indent: 0;         /* 左に余白を戻す */
}


/* 画像 */
#instructor .trainer img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  margin-top: 0.8rem;
  border: 1px solid #222;
}

/* 中～大型画面用調整 */
@media (min-width: 768px) {
  #instructor {
    padding: 3rem 2rem;
  }

  #instructor .trainer {
    padding: 2rem;
  }

  #instructor .trainer img {
    height: 260px;
  }

  #instructor .trainer h3 {
    font-size: 1.3rem;
  }

  #instructor .trainer p {
    font-size: 1rem;
  }

  #instructor .career li {
    font-size: 0.95rem;
  }
}

/* より大きい画面での中央寄せと幅制限 */
@media (min-width: 1024px) {
  #instructor .lineBox100 {
    max-width: 1000px;
    margin: 0 auto;
  }
}

/* PC版は“切らない表示”に切替（contain） */
@media (min-width: 768px){
  #instructor .trainer img{
    width: auto;            /* 画像の比率を優先 */
    max-width: 100%;        /* 枠からはみ出さない */
    height: auto;           /* 固定高さを解除 */
    max-height: 320px;      /* 高さの上限だけ与える（好みで調整） */
    object-fit: contain;    /* 切らずに全体表示 */
    display: block;
    margin: 0.5rem auto 0;  /* 中央寄せ */
    background: #000;       /* 余白が出る場合の背景（黒でなじませる） */
    border: 1px solid #222; /* 既存トーンを維持 */
    border-radius: 6px;
  }
}

/* =========================================================
   設備紹介セクション
========================================================= */
#facility p {
  color: #ddd;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

#facility .facility-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#facility .facility-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
  line-height: 1.7;
  color: #fff;
  font-size: 0.95rem;
}

/* 緑の装飾マーク */
#facility .facility-list li::before {
  content: "◼";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-size: 0.8rem;
  line-height: 1.2;
}

/* PCで余白広げて読みやすく */
@media (min-width: 768px) {
  #facility .facility-list li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
  }
}

/* =========================================================
   設備紹介ギャラリー
========================================================= */
.facility-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.facility-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #222;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.facility-gallery img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* PCでは3列 */
@media (min-width: 768px) {
  .facility-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .facility-gallery img {
    height: 220px;
  }
}




/* access */
.accessList { list-style: none; padding: 0; margin: 0 0 1.5rem 0; color: #fff; }
.accessList li { margin: 0 0 1rem 0; }
.accessList h4 { font-size: 1rem; font-weight: 700; color: #4caf50; margin: 0 0 0.3rem 0; line-height: 1.4; }
.accessList p { font-size: 0.9rem; color: #fff; line-height: 1.6; margin: 0; }

/* map */
.ggmap {
  width: 100%;
  max-width: 100%;
  background-color: #111;
  border: 1px solid #222;
  border-radius: 4px;
  overflow: hidden;
}
.ggmap iframe { display: block; width: 100%; height: 450px; border: 0; }

/* contact */
#contact p { font-size: 0.95rem; color: #ddd; line-height: 1.7; }
#contact a { color: #4caf50; text-decoration: none; word-break: break-all; }
#contact a:hover { opacity: 0.8; }

/* faq */
#faq p { margin-bottom: 1.2rem; }

/* policy */
#policy p { color: #aaa; font-size: 0.9rem; line-height: 1.6; }

/* LINEリンクボタン
.line-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #06C755; /* LINEの公式グリーン 
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.6em 1em;
  border-radius: 6px;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.line-link:hover {
  background-color: #05b24f;
  opacity: 0.9;
}

/* LINEアイコン画像
.line-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}


/* =========================================================
   Footer
========================================================= */
footer {
  background-color: #000;
  border-top: 1px solid #222;
  color: #666;
  text-align: center;
  padding: 2rem 1rem 6rem; /* スマホ固定バー干渉回避の余白は維持 */
}
.footerContents { max-width: 1200px; margin: 0 auto; }
.footerLogo img { max-width: 140px; height: auto; display: block; margin: 0 auto 1rem; }

.footerNav ul { list-style: none; padding: 0; margin: 1rem 0; }
.footerNav li { margin: 0 0 0.5rem 0; }
.footerNav a { color: #888; text-decoration: none; font-size: 0.8rem; }
.footerNav a:hover { color: #4caf50; }

.copyright { font-size: 0.7rem; color: #444; margin-top: 1rem; }

/* =========================================================
   Back to top
========================================================= */
#backtotop {
  position: fixed;
  right: 1rem;
  bottom: -400px;   /* JSでアニメーションする前提を維持 */
  z-index: 9999;
}
#backtotop a {
  display: inline-block;
  background-color: #4caf50;
  color: #000;
  font-weight: 700;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1;
}
#backtotop a .material-icons { font-size: 1.2rem; vertical-align: middle; line-height: 1; }

/* =========================================================
   Responsive tweaks
========================================================= */
@media (min-width: 768px) {
  .lineBox100, .lineBox50 { padding: 2rem; }
  p { font-size: 1rem; }
  #classes p, #instructor p, #faq p { font-size: 1rem; }
  .hero-lead { font-size: 1.1rem; }
  .hero-cta { font-size: 1rem; }
  #contact p { font-size: 1rem; }
}

@media (min-width: 1024px) {
  section { padding-left: 2rem; padding-right: 2rem; }
  .lineBox50, .lineBox100 { max-width: 1000px; margin-left: auto; margin-right: auto; }
  .bgimg.about { max-width: 1200px; }
}

/* 旧サイドナビは現状非表示で維持 */
.side-nav { display: none; }
