/* ========== 全体の基本設定 ========== */
body {
  font-family: "Noto Sans JP", sans-serif;
  margin: 0;
  background-color: #fff;
  color: #111;
  line-height: 1.8;
}
a { color: #b30000; text-decoration: none; }
a:hover { opacity: 0.8; }

/* ========== ヘッダー ========== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  border-bottom: 2px solid #000;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header img.logo {
  height: 60px;
}
nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav ul li {
  margin-left: 25px;
  font-weight: bold;
}
.logo-area{
  display:flex;
  align-items:center;
  gap:10px;
}
.site-title{
  font-size:1.2rem;
  line-height:1;
}
/* ========== ハンバーガーメニュー ========== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;       /* ボタン全体の横幅 */
  height: 32px;      /* ボタン全体の縦幅 */
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 4px;       /* 線の太さ */
  width: 100%;       /* 線の長さ */
  background: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========== トグル開いた時（×） ========== */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(9px) scaleX(0.8); /* 横幅だけ縮小 */
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px) scaleX(0.8); /* 横幅だけ縮小 */
}

/* ========== ヒーローセクション ========== */
.hero {
  background: url('img/top.JPG') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 160px 20px;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.hero h1 {
  position: relative;
  transform: translateY(50px);
  font-size: 2.8rem;
  font-family: "Yu Mincho", "Hiragino Mincho Pro", serif;
  letter-spacing: 0.1em;
  z-index: 1;
}
.hero p {
  position: relative;
  transform: translateY(50px);
  font-size: 1.2rem;
  z-index: 1;
}
.hero .btn {
  position: relative;
  transform: translateY(50px);
  display: inline-block;
  margin-top: 20px;
  padding: 10px 30px;
  background: #b30000;
  color: #fff;
  border-radius: 3px;
  font-weight: bold;
  z-index: 1;
}

/* ========== セクション共通 ========== */
section {
  padding: 5px 5%;
  text-align: center;
  max-width: 1000px;
  margin: auto;
}
section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}
section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #b30000;
  margin: 10px auto 0;
}
section h3 {
  font-size: 4rem;
  margin-bottom: 20px;
  position: relative;
  display: block;
  background-color: rgb(211, 39, 39);
  color:wheat;
  padding-top: 20px;
  padding-bottom: 20px;
}
/* ========== About ========== */
.about p {
  max-width: 700px;
  margin: 20px auto;
  font-size: 1.1rem;
}

/* ========== 活動紹介 ========== */
.activities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.activity {
  width: 300px;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;
}
.activity img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.activity h3 {
  font-size: 1.2rem;
  margin: 10px 0;
}
.activity2 {
  width: 1000px;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;
}
.dojo-list{
  max-width: 900px;
  margin:0 auto;
  padding-top: 0px;
}
.dojo-box{
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 0px 5px 20px;
  margin-bottom: 24px;
  text-align: center;
  transition: transforn 0.2s,box-shadow 0.2s;
}
.dojo-box h4{
  font-size: 4rem;
  margin-bottom: 20px;
  position: relative;
  display: block;
  background-color: rgb(211, 39, 39);
  color:wheat;
  padding-top: 0px;
  padding-bottom: 10px;
  text-align: center;
  margin-top: 20px;
  
}
.dojo-box img{
  width:100%;
  height: 300px;
  object-fit: cover;
}
.dojo-box p{
  font-size: 25px;
  text-align: center;
  padding-left: 30px;
}
.enrollment p{
  font-size: 25px;
}

/* ========== お知らせ ========== */
.news ul {
  list-style: none;
  padding: 0;
}
.news li {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  text-align: left;
}

/* ========== フッター ========== */
footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 30px 10px;
  font-size: 0.9rem;
}

/* リストの●マークを消す */
ul {
  list-style: none; /* デフォルトのマーカーを無効化 */
  padding-left: 0;  /* 左の余白も消す */
}

.about .top_p{
  font-size:30px;
}
.enrollment .dojo_p{
  font-size:20px;
}
.desc{
  text-align: left;
}
.dojo-box2{
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 0px 15px 0px 15px;
  margin-bottom: 24px;
  text-align: left;
  transition: transforn 0.2s,box-shadow 0.2s;
}
.dojo-box2 h4{
  font-size: 4rem;
  margin-bottom: 20px;
  position: relative;
  display: block;
  background-color: rgb(211, 39, 39);
  color:wheat;
  padding-top: 0px;
  padding-bottom: 10px;
  text-align: center;
  margin-top: 20px;
  
}
.dojo-box2 img{
  width:100%;
  height: 300px;
  object-fit: cover;
}
.dojo-box2 p{
  font-size: 25px;
  text-align: left;
  padding-left: 0px;
}
.dojo-box3{
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 0px 15px 0px 15px;
  margin-bottom: 24px;
  text-align: left;
  transition: transforn 0.2s,box-shadow 0.2s;
}
.dojo-box3 h4{
  font-size: 40px;
  margin-bottom: 20px;
  position: relative;
  display: block;
  background-color: rgb(39, 156, 211);
  color:wheat;
  padding-top: 0px;
  padding-bottom: 5px;
  text-align: center;
  margin-top: 20px;
  
}
.dojo-box3 img{
  width:45%;
  object-fit: cover;
  margin-left: 30px;
}
.dojo-box3 p img{
  width:93.5%;
  object-fit: cover;
  margin-left: 30px;
}

.dojo-box3 p{
  font-size: 25px;
  text-align: left;
  padding-left: 0px;
}
/* ===== パネル切り替え ===== */
.dojo-panel {
  max-width: 1000px;
  margin: 40px auto;
}

.tab-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid #999;
  background: #eee;
  cursor: pointer;
  font-size: 16px;
}

.tab-btn.active {
  background: #333;
  color: #fff;
  font-weight: bold;
}

.box {
  border: 1px solid #ccc;
  background: #fafafa;
  padding: 20px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}


/* ========== スマホ対応（トグル） ========== */
@media (max-width: 900px) {

  /* ナビメニュー非表示 */
  nav ul {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    border-top: 1px solid #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  /* 開いた時表示 */
  nav.open ul {
    display: flex;
  }

  /* ハンバーガーメニュー表示 */
  .menu-toggle {
    display: flex;
  }

  /* メニュー項目（行全体クリック可能） */
  nav ul li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eee;
  }
  nav ul li a {
    display: block;
    width: 100%;
    padding: 14px 20px;  /* 左右余白 */
    color: #111;
    text-decoration: none;
    font-size: 1.1rem;
  }
  nav ul li a:hover {
    background: #f5f5f5;
  }

  /* Hero文字サイズ調整 */
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  /* 活動内容縦並び */
  .activities {
    flex-direction: column;
    align-items: center;
  }

.dojo-box img{
  width:100%;
  height: 200px;
  object-fit: cover;
}
.dojo-box h4{
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
  display: block;
  background-color: rgb(211, 39, 39);
  color:wheat;
  padding-top: 0px;
  padding-bottom: 10px;
  text-align: center;
  margin-top: 20px;
  
}
.dojo-box p{
  font-size: 18px;
}
.dojo-box{
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 0px 0px 10px;
  margin-bottom: 24px;
  text-align: center;
  transition: transforn 0.2s,box-shadow 0.2s;
}
.enrollment p{
  font-size: 18px;
}
section h3 {
  font-size: 2rem;
  margin-bottom: 5px;
  position: relative;
  display: block;
  background-color: rgb(211, 39, 39);
  color:wheat;
  padding-top: 5px;
  padding-bottom: 5px;
}
/* ========== About ========== */
.about .top_p{
  font-size:18px;
}
.about p {
  margin: 20px auto;
}
.dojo-box2 img{
  width:100%;
  height: 200px;
  object-fit: cover;
}
.dojo-box2 h4{
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
  display: block;
  background-color: rgb(211, 39, 39);
  color:wheat;
  padding-top: 0px;
  padding-bottom: 10px;
  text-align: center;
  margin-top: 20px;
  
}
.dojo-box2 p{
  font-size: 18px;
  padding-left: 0px;
}
.dojo-box2{
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 0px 15px 0px 15px;
  margin-bottom: 24px;
  text-align: center;
  transition: transforn 0.2s,box-shadow 0.2s;
}
.dojo-box3 img{
  width:100%;
  height: px;
  object-fit: cover;
  margin-left: 0px;
}
.dojo-box3 h4{
  font-size: 25px;
  margin-bottom: 20px;
  position: relative;
  display: block;
  background-color: rgb(39, 156, 211);
  color:wheat;
  padding-top: 0px;
  padding-bottom: 10px;
  text-align: center;
  margin-top: 20px;
  
}
.dojo-box3 p{
  font-size: 18px;
  padding-left: 0px;
}
.dojo-box3{
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 0px 15px 0px 15px;
  margin-bottom: 24px;
  text-align: center;
  transition: transforn 0.2s,box-shadow 0.2s;
}


}
