@charset "utf-8"; /* 文字コード指定 */

/* ===============================
   TOPページレイアウト
   =============================== */

/* wrapper-道場をPCのみで表示 */
@media screen and (min-width: 769px) {
  /* 共通スタイル */
  .wrapper-top {
    border-left: 2px solid #9abce4;
    border-right: 2px solid #9abce4;
    border-top: none;
    border-bottom: none;
    max-width: 900px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background-repeat: no-repeat;
    background-position: top;
    background-image: url(photo_top/title_top0.jpg);
    background-color: #fff; /* 下まで白で隠れる */
  }
}

/* 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;
}

/* ===============================
   TOPページスマホ対応　左サイドバーを下に
   TOPページのコンテナだけ別指定
   =============================== */

@media screen and (max-width: 768px) {
  .container-top {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    background-color: #fff;
    padding-bottom: 40px;
    margin-top: 60px; /* ← ナビの高さ分入れる必要あり */
  }

  .boxmain {
    order: 1; /* 右を上に */
  }

  .side-area {
    order: 2; /* 左を下に */
    width: 100%;
    background-color: #fff;
    text-align: center;
  }
}

/* ===============================
   TOPページレイアウト　PCでは左右横並び
   =============================== */

/* PC時は横並びにする */
@media screen and (min-width: 769px) {
  .container-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* ===============================
   左サイドバー
   =============================== */

/* 左エリア　メディアクエリはスマホ版で横幅解除 */
.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;
}
@media (max-width: 768px) {
  .side-area,
  .main-area {
    width: 100%;
  }
}
.boxmargin_twitter {
  display: block;
  width: 250px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .boxmargin_twitter {
    width: 100%;
  }
}

/* 表エリア　メディアクエリあとでいれること */
/* サイドボックス */
.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ページ 右メインエリア
   =============================== */
/* スマホ版ロゴPCでは非表示 */

.logo-top {
  display: none;
}

@media screen and (max-width: 768px) {
  /* スマホだけに表示される道場ロゴ囲み */
  .logo-top {
    margin: 0 auto; /* autoでセンター配置 */
    padding: 0;
    max-width: 500px;
    border: 0;
    display: block;
  }

  .logo-top img {
    max-width: 100%;
    height: auto;
    text-align: center;
    display: block;
  }
}

/* PCの時だけTOP画像のマージン変える */
/* ベース（スマホ） */
.photo-top {
  margin: 10px 0;
}
/* PC */
@media (min-width: 769px) {
  .photo-top {
    margin: 25px 0;
  }
}

/* =========================================
   TOPのランダム画像のレイアウト指定
   ========================================= */

/* スマホ基準：画面幅に合わせて可変 */
.photo-top img {
  width: 100%; /* 画面幅に合わせる */
  max-width: 500px; /* 画像の最大幅 */
  height: auto; /* 縦横比維持 */
  display: block;
  margin: 0 auto; /* 中央配置 */
}

/* =========================================
   右エリア（スマホ基準）
   ========================================= */

/* 右エリア　スマホでは横幅いっぱい */
.main-area {
  width: 100%; /* スマホでは可変 */
  background-color: #fff;
  border-left: 1px solid #fff;
  text-align: center;
}

/* 右メインエリアの写真の下のエリア */
.boxmain {
  margin: 25px auto 10px;
  width: 100%; /* スマホでは可変 */
  background-color: #fff;
}

/* =========================================
   右メインエリア内部（文章エリア）
   ========================================= */

/* メインエリアの中の文章エリア 内部は左寄せ */
.boxmain-inside {
  display: block;
  width: 90%; /* 少し左右に余白 */
  max-width: 540px; /* PCで広がりすぎない */
  margin: 0 auto; /* 中央寄せ */
  text-align: left;
  padding: 0;
}

/* .boxmain-inside 内の段落に余白 */
.boxmain-inside p {
  margin: 0.8em 0; /* 上下に余白、左右は0 */
  line-height: 1.5; /* 読みやすく */
}

/* =========================================
   PC版（769px以上で固定幅にする）
   ========================================= */

@media (min-width: 769px) {
  /* 右エリアを固定幅に戻す */
  .main-area {
    width: 590px;
  }

  /* 写真下エリアも固定幅 */
  .boxmain {
    width: 540px;
  }
}
