/* ベース設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body::before {
  content: "";
  position: fixed;
  top: 70px;    /* ヘッダーの高さ分だけ下げる */
  left: 0;
  width: 100vw;
  height: calc(100vh - 70px); /* ヘッダー分高さを減らす */
  background-image: url('karateka.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
  z-index: -1;
}


/* ヘッダー */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background-color: rgba(240, 240, 240, 0.95); /* 薄いグレー */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ロゴを円形にするスタイル */
.logo {
  width: 50px;           /* 必要に応じて調整可 */
  height: 50px;          /* 幅と高さを揃えて正円に */
  border-radius: 50%;    /* 円形にする */
  object-fit: cover;     /* ロゴ内で適切に切り取る */
  border: 2px solid #fff; /* 円を目立たせるための白い枠線（任意） */
  box-shadow: 0 0 5px rgba(0,0,0,0.2); /* 軽い影をつけて浮かせる */
}



.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 4px 0;
}

/* メインビジュアル */
.main-visual {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

.logo-animation img {
  width: 60vw;
  max-width: 400px;
  animation: zoomIn 2.5s ease-out forwards;
  transform: scale(0);
}

@keyframes zoomIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.dojo-name {
  font-size: 2.5rem;
  color: #444; /* 濃いグレー */
  margin-top: 20px;
  text-shadow:
    1px 1px 0 #faa,
    -1px -1px 0 #faa,
    1px -1px 0 #faa,
    -1px 1px 0 #faa; /* 赤の縁取り */
}

.join-button {
  margin-top: 15px;
  padding: 14px 28px;
  background: linear-gradient(45deg, #ff4d4d, #ff1a1a); /* 赤系グラデ */
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s, background 0.3s ease;
}

.join-button:hover {
  background: linear-gradient(45deg, #e60000, #cc0000);
  transform: scale(1.05);
}

/* 各セクション共通 */
section {
  padding: 80px 5% 60px;
  background-color: rgba(255, 255, 255, 0.92);
  margin: 40px 5%;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* 表 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

/* 指導者紹介セクションの画像スタイル */
#instructor img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* 指導者紹介セクション全体の余白調整（他セクションと同様） */
#instructor.content-box {
  padding: 40px 20px;
  margin-bottom: 40px;
  background-color: rgba(255, 255, 255, 0.9); /* 背景が見えにくい場合の対策 */
  border-radius: 12px;
}

/* ギャラリーセクション */
.gallery-images {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
}

.gallery-images img {
  width: calc(33.333% - 16px);
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* タブレット対応：2列 */
@media (max-width: 768px) {
  .gallery-images img {
    width: 100%;
  }
}

/* スマホ対応：1列（上と同じで十分ですが、念のため追加） */
@media (max-width: 480px) {
  .gallery-images img {
    width: 100%;
  }
}


/* フッター */
footer {
  text-align: center;
  padding: 20px;
  background-color: rgba(240, 240, 240, 0.95);
  margin-top: 40px;
  font-size: 0.9rem;
}

/* メディアクエリ */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 5%;
    flex-direction: column;
    background-color: white;
    width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .logo-animation img {
    width: 80vw;
  }

  .dojo-name {
    font-size: 1.8rem;
  }
}

.disclaimer {
  background-color: #fff7f7;
  border: 1px solid #f99;
  padding: 12px 15px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #b33;
  border-radius: 5px;
  line-height: 1.4;
}
.disclaimer a {
  color: #b33;
  text-decoration: underline;
}
/* 入会フォーム全体の幅を他セクションと同じに */
#join-form form {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px; /* 各フォーム要素の間にスペース */
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* ラベルは上に配置 */
#join-form label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/* テキスト入力、メール、select、textareaは幅100% */
#join-form input[type="text"],
#join-form input[type="email"],
#join-form select,
#join-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

#join-form input[type="text"]:focus,
#join-form input[type="email"]:focus,
#join-form select:focus,
#join-form textarea:focus {
  border-color: #f44;
  outline: none;
}

/* ボタンは目立つ色で */
#join-form button {
  width: 160px;
  padding: 12px 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  background-color: #e63946; /* 赤系で目立つ色 */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.3s;
}

#join-form button:hover {
  background-color: #b22232;
}

/* スマホ画面でもフォーム幅を調整 */
@media screen and (max-width: 600px) {
  #join-form form {
    padding: 15px;
  }

  #join-form button {
    width: 100%;
    align-self: stretch;
  }
}

/* 動画の親コンテナはcontent-box内で幅制限して中央寄せ */
.content-box video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

