@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body.is-fixed {
  height: 100vh;
  overflow: hidden;
}

body {
  /*font-family: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;*/
  font-family: "Noto Serif JP", serif;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  background: url("../images/bg.png") no-repeat bottom left/100%, #efefef;
  background-attachment: fixed;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 150%;
  padding-top: 70px;
  transition: 0.4s;
  caret-color: transparent;
}
body.active {
  overflow: hidden;
}
body.active div#main_contents {
  position: relative;
}
body.active div#main_contents::before {
  content: "";
  display: block;
  width: 100%;
  max-width: 500px;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  position: absolute;
  top: 0;
  z-index: 90;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-bottom: 1em;
}

ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}
table th, table td {
  border: 1px solid #939393;
}
table th {
  background: #333;
  text-align: center;
  padding: 5px 0;
  color: #ffffff;
}
table td {
  padding: 10px 1em;
}

.box {
  background: #f8eded;
  margin: 0;
  padding: 10px;
  color: #000000;
}

.youtube {
  width: 100%;
  aspect-ratio: 16/9;
}
.youtube iframe {
  width: 100%;
  height: 100%;
}

.red-text {
  color: #CF1114;
}

.price {
  padding-left: 0.3em;
  font-size: 1.1em;
}
.price small {
  font-size: 0.8em;
}

#main_contents {
  max-width: 500px;
  margin: 0 auto;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}
#main_contents main {
  padding: 0 20px;
}
#main_contents main article {
  padding-top: 50px;
}
#main_contents main article h1 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 1.5em;
}
#main_contents main article h1 span {
  font-size: 50%;
  display: block;
}
#main_contents main article h2 {
  color: #ffffff;
  background: #000000;
  padding: 5px 0;
  margin: 20px 0;
  text-align: center;
}
#main_contents main article section {
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
}
#main_contents main article section h3 {
  margin-bottom: 1em;
}
#main_contents main article section p {
  font-size: 1.5rem;
  line-height: 1.4;
}

header {
  position: fixed;
  overflow: hidden;
  top: 0;
  width: 100%;
  max-width: 500px;
  z-index: 100;
  background: #ffffff;
  height: 70px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1 {
  max-width: 250px;
}
header h1 img {
  width: 100%;
}

a.sp_menu {
  display: block;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 200;
  /*position: fixed;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  margin-left: 200px;
  */
}
a.sp_menu span {
  display: block;
  width: 100%;
  height: 3px;
  background: #333333;
  position: absolute;
  transition: 0.4s;
  top: 50%;
  transform: translateY(-50%);
}
a.sp_menu span::before, a.sp_menu span::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: #333333;
  position: absolute;
  transition: 0.4s;
}
a.sp_menu span::before {
  margin-top: 15px;
}
a.sp_menu span::after {
  margin-top: -15px;
}
a.sp_menu.close span {
  background: transparent;
}
a.sp_menu.close span::before {
  margin-top: 0;
  transform: rotate(-45deg);
}
a.sp_menu.close span::after {
  margin-top: 0;
  transform: rotate(45deg);
}

nav.nav_menu {
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  position: absolute;
  top: 0;
  right: -100%;
  width: 50%;
  padding: 30px 2em;
  gap: 20px;
  transition: 0.4s;
  z-index: 90;
}
nav.nav_menu.active {
  right: 0;
}

#fv {
  position: relative;
}
#fv img {
  width: 100%;
}
#fv video {
  position: absolute;
  display: block;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  animation: top_movie 2s linear 17s normal forwards;
}
#fv div.btn {
  text-align: center;
  font-weight: bold;
  font-size: 2.2rem;
  padding: 0.3em;
  opacity: 0;
  transition: 0.5s;
  animation: top_click_text 1s linear 20s normal forwards;
}

@keyframes top_click_text {
  0% {
    opacity: 0;
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes top_movie {
  0% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  98% {
    opacity: 0;
    display: block;
  }
  100% {
    opacity: 0;
    display: none;
  }
}
div.temporary {
  padding: 1em 0;
}
div.temporary p.center {
  text-align: center;
}
div.temporary nav {
  margin-bottom: 30px;
}
div.temporary nav ul {
  display: flex;
  flex-wrap: wrap;
  width: 95%;
  gap: 2%;
  margin: 0 auto;
}
div.temporary nav ul li {
  width: 49%;
  background: #333333;
  margin-bottom: 2%;
}
div.temporary nav ul li a {
  display: block;
  color: #ffffff;
  padding: 0.5em 0 0.5em 1em;
  position: relative;
}
div.temporary nav ul li a::after {
  content: "\f0da";
  font-weight: bold;
  font-family: "Font Awesome 6 Free";
  padding-left: 0.5em;
  position: absolute;
  right: 10px;
}
div.temporary a.btn {
  text-align: center;
  background: #CF1114;
  display: block;
  width: 80%;
  margin: 0 auto;
  border-radius: 10px;
  color: #ffffff;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-size: 2.4rem;
  padding: 0.5em 0;
  box-shadow: 0 5px 0 #870000;
  position: relative;
  transition: 0.4s;
}
div.temporary a.btn::after {
  content: "\f35a";
  font-weight: 400;
  font-family: "Font Awesome 6 Free";
  padding-left: 1em;
}
div.temporary a.btn:hover {
  top: 5px;
  box-shadow: 0 0 0 #870000;
}

footer {
  padding: 3% 5% 2%;
  background: #4d4d4d;
  color: #fff;
}
footer section + section {
  margin-top: 50px;
}
footer section h2 {
  margin-bottom: 0.8em;
}
footer section h2 span {
  display: block;
  font-size: 50%;
}
footer section p {
  font-size: 1.4rem;
}
footer section p.access {
  margin-bottom: 0.5em;
}
footer div.map {
  max-width: 100%;
  width: 100%;
}
footer div.map iframe {
  width: 100%;
  height: 220px;
}
footer p.copyright {
  font-size: 1.2rem;
  text-align: center;
  margin: 0;
}

#footer_btn {
  background: #FF060A;
  padding: 0.3em 2em;
  position: fixed;
  bottom: 5%;
  right: 2%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transform: rotate(-10deg);
  animation: click_animation 14s infinite linear 0s normal forwards;
  transition: 0.4s;
}
#footer_btn:hover {
  scale: 1.1;
}
#footer_btn a {
  border-top: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  padding: 1em 0.5em;
  display: block;
  text-align: center;
  color: #ffffff;
  font-size: 1.8rem;
  position: relative;
  line-height: 1.5;
}
#footer_btn a::after {
  content: "\f08e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 40%;
  bottom: -40%;
}

@keyframes click_animation {
  0% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(10deg);
  }
  100% {
    transform: rotate(-10deg);
  }
}
@media screen and (max-width: 768px) {
  body {
    padding-bottom: 80px;
  }
  #footer_btn {
    padding: 0.3em 1em;
    position: fixed;
    right: auto;
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 0;
    animation: none;
    transform: rotate(0deg);
    bottom: 0;
  }
  #footer_btn:hover {
    scale: 1;
  }
  #footer_btn a {
    padding: 1em 0;
    font-size: 2.2rem;
    width: 100%;
  }
  #footer_btn a::after {
    right: 1em;
    bottom: auto;
  }
}
/* === 共通：ページ下部のナビボタン =================== */
.bottom-nav{
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 1.5rem 1rem 0;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.bottom-nav a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: .7em 1.6em;
  border-radius: 999px;
  background: #ff6b6b;
  border: 1px solid #e15454;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(0,0,0,.15);
  transition: transform .1s ease, box-shadow .1s ease, opacity .15s ease;
}

.bottom-nav a.sub{
  background: #fff;
  color: #e15454;
}

.bottom-nav a:hover{
  opacity: .92;
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0,0,0,.12);
}

@media (max-width: 600px){
  .bottom-nav{
    flex-direction: column;
    align-items: stretch;
  }
  .bottom-nav a{
    width: 100%;
  }
}
/* === ここまで：共通ボタン =========================== */
/*==================================================
  写真＋タイトル横並び（統一レイアウト）
==================================================*/

.img-title-box {
    display: flex;
    align-items: center;     /* 画像とテキストの縦位置揃え */
    gap: 15px;               /* 画像との間隔 */
    margin: 10px 0;          /* 上下余白 */
}

/* 画像（必要なら可変OK） */
.img-title-box img {
    width: 146px;            /* お好きに変更OK */
    height: auto;
    flex-shrink: 0;          /* 画像が縮まないようにする */
    display: block;
}

/* タイトル文字 */
.img-title-box .title-text {
    font-size: 2.6rem;       /* ←ドラが大きくしたいならここを変える */
    font-weight: bold;       /* 太字 */
    line-height: 1.0;        /* 行間 */
    color: #b22222;             /* ←色を変えたい時はここ（例：#cc0000） */
}
/* コース一覧テーブル：スマホ用レイアウト調整（最終版） */
@media screen and (max-width: 600px) {

  /* ScrollHint が付けてくる横スクロールを無効化 */
  .js-scrollable {
    overflow-x: visible !important;
  }

  /* ScrollHint がラップする要素もまとめて幅リセット */
  .js-scrollable * {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  table.course_table {
    width: 100% !important;
    min-width: 0 !important;           /* ← これが一番大事 */
    table-layout: fixed !important;    /* 列幅を割合で固定 */
    font-size: 0.78rem;                /* さっきより少し小さく */
    border-collapse: collapse;
  }

  table.course_table th,
  table.course_table td {
    padding: 3px 2px !important;
    word-wrap: break-word;
    white-space: normal !important;
  }

  /* 1列目：コース名（ちょい広め） */
  table.course_table th:nth-child(1),
  table.course_table td:nth-child(1) {
    width: 38% !important;
  }

  /* 2列目：曜日時間（細め） */
  table.course_table th:nth-child(2),
  table.course_table td:nth-child(2) {
    width: 24% !important;
    text-align: center;
  }

  /* 3列目：対象学年（残り） */
  table.course_table th:nth-child(3),
  table.course_table td:nth-child(3) {
    width: 38% !important;
  }
}
/* 画像の横にテキストを回り込ませる共通クラス */
.float_img {
  float: right;
  margin: 0 0 10px 20px; /* 上 右 下 左 */
  max-width: 40%;
  height: auto;
}

/* スマホ対策（横並びにすると窮屈なので解除） */
@media (max-width: 600px) {
  .float_img {
    float: none;
    display: block;
    margin: 0 auto 20px;
    max-width: 80%;
  }
}
article#course .group_section img {
  float: right;
  max-width: 45%;
  height: auto;
  margin: 0 0 1em 1.5em;
  display: block;
}

.full_img {
  float: none !important;
  max-width: 100% !important;
  height: auto;
  display: block;
  margin: 0 auto 1.5em;
}