@charset "utf-8"; /* 文字コード指定 */

/* ===============================
   スマホ対応BODY
   =============================== */
body {
  background-color: #e3e3e3;
  font-family:
    "Noto Sans JP",
    /* Google Fontsから読み込む */ "Hiragino Kaku Gothic Pro",
    /* Mac標準ゴシック */ "Yu Gothic",
    /* Windows 10以降 */ Meiryo,
    /* Windows Vista以降 */ "MS PGothic",
    /* 古いWindows用 */ system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 14px;
  color: #666;
  margin: 0;
  -webkit-text-size-adjust: 100%;
}

/* 横にうごいたりするの防止 */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

/* ===============================
   スマホ対応TOPページのタイトル(極真空手西湘支部）
   =============================== */
h1.title {
  font-family: "Zen Maru Gothic", sans-serif; /* フォント指定 */
  font-weight: 500; /* 太めのタイトル向き */
  font-size: 15px; /* スマホ表示向けサイズ調整 */
  letter-spacing: 0.05em; /* 少し文字間隔を広げてスタイリッシュに */
  color: #666; /* 好きな色に変更可能 */
  margin: 0; /* 余白リセット */
  line-height: 1.3; /* 高さを安定させる */
}

a.title:link,
a.title:visited {
  color: #666;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
}

a.title:hover {
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  color: #666;
}

/* ===============================
   お問合せ / 電話番号用
   =============================== */
.contact-ja {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  font-size: 12px;
}

.contact-tel {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 1.2rem;
  margin-top: 6px;
}

/* ===============================
   TOPページのメインBOX
   =============================== */
.wrapper-top {
  border-left-width: 2px;
  border-right-width: 2px;
  border-color: #9abce4;
  max-width: 900px;
  width: 100%;
  border-style: solid;
  border-top-style: none;
  border-bottom-style: none;
  margin-left: auto;
  margin-right: auto;
  background-image: url(photo_top/title_top0.jpg);
  background-repeat: no-repeat;
  background-position: top;
}

/* レイアウトで全ページに使っているboxspace */
.boxspace {
  border-style: none;
  width: 100%;
  height: 0%;
  position: relative;
}

/* 上記をPC版だけ高さを出す */
@media screen and (min-width: 769px) {
  .boxspace {
    height: 146px;
  }
}

/* 子要素絶対配置 */
.children {
  position: absolute;
  right: 0;
  bottom: 0;
}

/* ===============================
   ハンバーガー共通 / ナビ関連
   =============================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.hamburger {
  display: none; /* 初期非表示 */
  font-size: 28px;
  cursor: pointer;
}

/* ナビメニューPC版 */
nav {
  position: relative; /* ハンバーガーの位置指定 */
  width: 100%;
}

@media screen and (min-width: 769px) {
  nav {
    background-color: #000;
  }
}

a.menu:link,
a.menu:visited {
  display: block;
  height: 21px;
  width: 70px;
  color: #ffffff;
  font-size: 13px;
  text-decoration: none;
  font-weight: bolder;
}

a.menu:hover {
  color: #fff;
  background-color: #666;
}

/* ===============================
   プルダウンメニュー（チャッピー作成）
   =============================== */
td.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none !important;
  margin: 0;
  padding: 0;
  background: #000;
  border: 1px solid #666;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.25s ease,
    opacity 0.2s ease;
  z-index: 9999;
  display: block;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 10px;
  color: #fff;
  background: #000;
  text-decoration: none;
  font-size: 13px;
}

.dropdown-menu li a:hover {
  background: #666;
}

@media (hover: hover) {
  .dropdown:hover .dropdown-menu {
    max-height: 300px;
    opacity: 1;
  }
}

/* スマホ：JSで開く */
.dropdown-menu.open {
  max-height: 300px;
  opacity: 1;
}

/* プルダウン内だけmenu上書き */
.dropdown-menu a.menu {
  width: auto;
  height: auto;
  display: block;
  padding: 8px 12px;
  color: #fff !important;
  background: #000;
  text-align: left;
}

/* 箇条書きの点を完全に殺す */
.dropdown-menu,
.dropdown-menu li {
  list-style: none !important;
}

/* ===============================
   TOPページ単独レイアウト
   =============================== */

.boxmargin_twitter {
  display: block;
  width: 250px;
  margin: 0 auto;
}

.boxmargin15 {
  margin-top: 15px;
  margin-bottom: 10px;
  border: 0;
}

.boxmargin25 {
  margin-top: 25px;
  margin-bottom: 10px;
  border: 0;
}

.boxmargin15w500 {
  margin: 15px auto 10px;
  width: 500px;
  border: 0;
  text-align: left;
}

.boxmain {
  margin: 25px auto 10px;
  width: 540px;
  background-color: #fff;
}

.container {
  display: flex;
  justify-content: space-around;
  background-color: #fff;
}

.side-area {
  width: 310px;
  background-color: #fff;
  text-align: center;
}

.main-area {
  width: 590px;
  background-color: #fff;
  border-left: 1px solid #fff;
  text-align: center;
}

footer {
  text-align: center;
  background-color: #fff;
  width: 100%;
  height: 140px;
  padding-top: 60px;
}
hr.style2 {
  height: 1px;
  background-color: #666;
  width: 100%;
  border: none;
  margin: 10px 0 20px;
}

/* バナーのタップ時の透過指定：デフォルト：透過なし */
a.banner img {
  opacity: 1;
}

/* PCなど hover があるデバイスだけ hover 透過 */
@media (hover: hover) and (pointer: fine) {
  a.banner:hover img {
    opacity: 0.5;
  }
}

/* サイドボックス */
.side_01 {
  width: 250px;
  border-collapse: collapse;
  font-size: x-small;
  font-weight: bolder;
  margin-bottom: 10px;
}

.side_01 th {
  padding: 3px;
  text-align: center;
  vertical-align: top;
  border: 2px solid #98bccc;
}
.side_01 td {
  padding: 3px;
  border: 2px solid #98bccc;
  text-align: left;
}

.side_02 {
  border-collapse: collapse;
  width: 250px;
  border: 1px solid #fff;
  vertical-align: top;
  font-size: 12px;
  margin-bottom: 10px;
}

.side_02 td:nth-child(1) {
  width: 29px;
  padding-top: 2px;
  text-align: right;
  vertical-align: top;
  border: 1px dashed #fff;
  border-bottom-color: #c4c4c4;
}
.side_02 td:nth-child(2) {
  width: 65px;
  padding-top: 2px;
  text-align: left;
  vertical-align: top;
  border: 1px dashed #fff;
  border-bottom-color: #c4c4c4;
}
.side_02 td:nth-child(3) {
  padding-top: 2px;
  text-align: left;
  vertical-align: top;
  border: 1px dashed #fff;
  border-bottom-color: #c4c4c4;
}

/* TOPページH1 */
.h1_top {
  font-family:
    "Helvetica Neue", "Arial", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Meiryo", "sans-serif";
  font-size: 10px;
  color: #fff;
  margin: 0;
  line-height: 20px;
  display: inline;
}

/* 見出し */
h4 {
  text-align: center;
  font-weight: bolder;
  margin-bottom: 1px;
}
h4::before,
h4::after {
  content: "\0025C6";
  color: #e44251;
}

h3 {
  background-color: #fff;
  width: 50%;
  border-bottom: 1px solid #b4b4b4;
  padding: 0.1em 30px 0.1em 0.75em;
  margin: 10px 0 5px;
}

p.side {
  text-align: center;
  margin: 2px;
  font-size: 11px;
}

hr.style1 {
  height: 4px;
  background-color: #3399cc;
  width: 250px;
  border: none;
}

/* 道場リンク */
a.dojo:link,
a.dojo:visited {
  color: #028cae;
  text-decoration: underline;
}
a.dojo:hover {
  color: #62bff7;
  text-decoration: underline;
}

/* ===============================
   スマホ対応 / ハンバーガー
   =============================== */

/* デフォルトナビ非表示 */
.nav-inner {
  display: none;
}
/* PCナビ非表示　強制的に効かせた */
@media screen and (min-width: 769px) {
  #spMenu {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  #pcMenu {
    display: none;
  }
  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 10000;
    box-sizing: border-box;
  }
  #spMenu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 9999;
  }
  #spMenu.active {
    transform: translateX(0);
  }
  #overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.4s ease,
      visibility 0.4s ease;
    z-index: 9000;
  }
  #overlay.active {
    opacity: 1;
    visibility: visible;
  }
  #hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
  }
  #hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #666;
    border-radius: 2px;
    transform-origin: center;
    transition:
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.3s ease;
  }
  #hamburger.active span:nth-child(1) {
    transform: translateY(9.1px) rotate(45deg);
  }
  #hamburger.active span:nth-child(2) {
    transform: scaleX(0);
  }
  #hamburger.active span:nth-child(3) {
    transform: translateY(-9.1px) rotate(-45deg);
  }
}

#closeBtn {
  text-align: right;
  padding: 2px;
  font-size: 28px;
  cursor: pointer;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 2px;
}
.tel-btn {
  display: block;
  font-size: 13px;
  color: #666;
  text-decoration: none;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 5px;
}
.contact-area {
  display: flex;
  flex-direction: column;
  text-align: right;
  margin-left: auto;
  line-height: 1.4;
}
.box {
  flex-direction: column;
}

nav ul {
  flex-direction: column;
  padding: 20px;
}
.hamburger {
  display: block;
}

/* ここから下はHTMLに積んでたCSSを全部持ってきてる。少しずつ直す */

/* テーブルナビ構造 */
#table1 {
  border-collapse: collapse;
  border: 1px solid #fff;
  border-bottom: none;
  border-top: none;
}
#table1 TD {
  text-align: center;
  border: 1px solid #fff;
  border-bottom: none;
  border-top: none;
  background-color: #000;
  padding-top: 3px;
  padding-left: 4px;
  width: 75px;
}
#table1 TD:hover {
  background-color: #666;
}
/* テーブルナビ構造 おわり*/

#hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  text-align: right;
  padding: 10px;
}
#spMenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
}
#spMenu li {
  border-bottom: 1px solid #333;
}
#spMenu a {
  display: block;
  color: #000;
  text-decoration: none;
  padding: 6px;
}

@media screen and (max-width: 768px) {
  #pcMenu {
    display: none;
  }
  #hamburger {
    display: flex;
  }
  #spMenu.active {
    display: block;
  }
}
/* 以上、HTMLにあったCSSもってきたの おわり*/

/* アコーディオン設定　#spMenu liの指定のあとに置く　 */

.accordion-title {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  padding: 6px;
  color: #000;
  font-weight: normal; /* 他と同じ太さに */
}

.accordion-content {
  max-height: 0; /* 初期は閉じる */
  overflow: hidden; /* 中身は隠す */
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  list-style: none;
  padding: 0 0; /* 閉じた状態ではpaddingなし */
  margin: 0;
}

/* 開いたときも閉じたときも li に左インデント */
.accordion-content li {
  padding-left: 15px;
  list-style: none;
  margin: 0;
}

/* li 内のリンクに破線 */
.accordion-content li a {
  display: block; /* li 全体をリンクとして認識 */
  border-bottom: 1px dashed #666; /* 破線 */
  text-decoration: none; /* 下線消す */
  padding: 5px 0; /* 高さ確保 */
}

/* 最後のリンクの線を消す */
#spMenu .accordion-content li {
  border-bottom: none;
}

/* アコーディオンおわり */
