/* ===============================
   共通設定
=============================== */
body {
  height: 100%;
  padding-top: 70px; /* ← 必ず slider の上を空ける！ */
  background-color: #000;
  color: #fff;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

html {
  height: 100% !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.container {
    flex: 1 0 auto;
	min-height: 300px; /* ← 最低高さを設定（必要ならもっと小さく） */
}

.logo-img {
  height: 45px;
}

.slider {
  display: block;
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  overflow: hidden;
  z-index: 1;
}

.slider img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.news-section {
  width: 100%;
  max-width: 750px;
  max-height: 500px;          /* ← 縦の最大値を指定 */
  overflow-y: auto;           /* ← 内容がはみ出したらスクロール */
  margin: 40px auto;
  background-color: #111;
  padding: 20px;
  border: 1px solid #333;
  box-sizing: border-box;
}

.news-section::-webkit-scrollbar {
  width: 8px;
}

.news-section::-webkit-scrollbar-track {
  background: #000; /* ← スクロールバーの背景（黒色） */
}

.news-section::-webkit-scrollbar-thumb {
  background: #fff; /* ← スクロールバー（白） */
  border-radius: 4px;}

footer {
  flex-shrink: 0;
  background-color: #111;
  padding: 20px;
  text-align: center;
  color: #ccc;
  font-size: 0.9em;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #000;
  border-bottom: 1px solid #333;
  padding: 10px 0;
}

.header-inner {
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-area {
  text-align: right;
  font-size: 13px;
  color: #fff;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

.news-item {
    text-align: center;
    margin-bottom: 60px;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-title {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.news-content {
    font-size: 1em;
    line-height: 1.6;
}

.cast-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.cast-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  margin: 30px auto;
  max-width: 1100px;
}

.cast-card img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.cast-card {
  width: 200px;
}

.page-title {
  font-size: 24px;
  font-weight: bold;
  margin: 40px auto 10px;
  display: block;
  width: 100%;
  padding-left: 30px;
  text-align: left;
}

.page-title span {
  display: inline-block;
  position: relative;
  padding-bottom: 5px;
}

.page-title span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background-color: gold;
}

.system-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 15px;
  color: #fff;
  background-color: #000;
}

.system-section {
  margin-bottom: 40px;
  border-top: 2px solid gold;
  padding-top: 20px;
}

.system-section h3 {
  font-size: 1.3em;
  color: gold;
  margin-bottom: 10px;
}

.system-section table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.system-section th,
.system-section td {
  border: 1px solid #888;
  padding: 10px;
  text-align: left;
  background-color: #111;
}

.system-section th {
  background-color: #222;
}

.course-note,
.rule-note {
  font-size: 0.9em;
  color: #ccc;
  line-height: 1.5;
}

.rules {
  padding-left: 1em;
  font-size: 0.95em;
  line-height: 1.5;
}

.rules li {
  margin-bottom: 6px;
}

.system-section.no-border {
  border-top: none;
}

.system-title {
  margin-top: 60px;     /* ヘッダーとの距離を広げる */
  margin-bottom: 5px;   /* 下との距離を詰める */
}

.recruit-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background-color: #111;
  border: 1px solid #333;
  color: #fff;
  box-sizing: border-box;
  line-height: 1.8;
}

.recruit-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.recruit-table th,
.recruit-table td {
  border: 1px solid #555;
  padding: 10px;
  text-align: left;
}

.recruit-table th {
  width: 30%;
  background-color: #222;
}

.recruit-features,
.recruit-requirements,
.recruit-suitable {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 20px 0;
}

.recruit-features li,
.recruit-requirements li,
.recruit-suitable li {
  padding: 4px 0;
}

.recruit-contact {
  margin-top: 30px;
  font-size: 1.1em;
  text-align: center;
}

.recruit-tel a.tel-link {
  text-decoration: underline;
  color: inherit;
  font-size: 1.3em;
}

.table-scroll {
    overflow-x: auto;
    overflow-y: scroll; /* ← 縦スクロールを許可 */
    max-height: 80vh; /* ← 高さ制限を明示すればスクロールバーが出る */
}

/* ===============================
   電話リンク切り替え設定
=============================== */
.tel-link {
  color: inherit;
  text-decoration: none;
}
.tel-link:hover {
  text-decoration: underline;
}
.tel-smart,
.tel-pc {
  display: none;
}

/* ===============================
   スマホ用設定
=============================== */

/* スマホ向け調整 */
@media screen and (max-width: 600px) {
    .container, .news-section, .news-list, .news-item {
        max-width: 100%;
        width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
		padding: 20px 15px;
    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}




@media screen and (max-width: 768px) {
  
  .site-header {
  padding-top: 1px !important;     /* ← デフォルトより詰める */
  padding-bottom: 1px !important;  /* ← 下も軽く詰める（必要なら） */
  margin-top: 0 !important;        /* 念のため */
}
  
  .header-inner {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* すべての要素に box-sizing を継承させる */
*, *::before, *::after {
    box-sizing: inherit;
}

.logo-img {
  height: auto;
  width: auto;
  max-height: 36px;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-area {
  text-align: center;
  margin: 0 auto;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.tel-smart {
  display: block;
  font-size: 0.95em;             /* ← 少しだけ小さく */
  font-weight: bold;
  text-decoration: underline;    /* ← 常にアンダーライン */
  text-underline-offset: 2px;
  color: inherit;                /* 色はそのまま白 */
}

.hours {
  display: block;
  font-size: 1em;                /* ← 通常サイズで維持 */
  color: #ccc;
}

.menu-toggle {
  display: block !important;
  font-size: 50px;              /* ← 特大サイズ */
  font-weight: bold;           /* ← 太字で視認性UP */
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  text-align: right;
  flex-shrink: 0;
  padding: 10px 10px;          /* ← タップしやすく */
}

  .tel-smart {
    display: block;
    font-size: 1.2em;
    margin-bottom: 3px;
  }

  .tel-pc {
    display: none;
  }

  .hours {
    display: block;
  }

  .cast-list {
    justify-content: center;
    max-width: 100%;
    padding: 0 10px;
    margin: 30px auto;
  }

  .cast-card img {
    object-fit: contain;
    height: auto;
    max-height: none;
  }
  
  .cast-name,
  .cast-profile,
  .cast-time {
    text-align: center;
  }

  h2.page-title {
    text-align: center;
    padding-left: 0;
    margin: 40px auto 10px;
  }

  .mobile-nav {
    display: none;
    background-color: #000;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
  }

  .mobile-nav.active {
    display: block;
  }

  .mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .mobile-nav li {
    padding: 12px;
    border-bottom: 1px solid #333;
  }

  .mobile-nav a {
    color: #fff;
    text-decoration: none;
    display: block;
  }

  .mobile-nav a.menu-close {
    color: gold;
  }

  .main-nav {
    display: none !important;
  }

  .close-btn {
    display: block;
    background: none;
    border: none;
    color: gold;


    font-size: 28px;
    text-align: right;
    padding: 10px 20px;
    cursor: pointer;
  }
  
}

/* ===============================
   PC用設定
=============================== */
@media screen and (min-width: 769px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .contact-area {
  font-size: 1em;               /* ← 通常サイズに戻す */
  text-align: right;
  white-space: nowrap;          /* ← 折り返し防止 */
  overflow: visible;            /* ← 切れ防止 */
  max-width: 300px;             /* ← 必要に応じて調整 */
  padding-left: 10px;           /* ← ロゴとの距離確保（任意） */
}

  .tel-smart {
    display: none;
  }

  .tel-pc {
    display: block;
    font-size: 1.1em;
    margin-bottom: 2px;
  }
  
  .tel-link {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
    color: inherit;
  }

  .hours {
    display: block;
    font-size: 0.95em;
  }

  .main-nav {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }

  .main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-nav a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 1px solid transparent;
  }

  .main-nav a:hover {
    border-bottom: 1px solid gold;
    color: gold;
  }

  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }

  h2.page-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 1100px;
    margin: 40px auto 10px;
    padding-left: 30px;
    text-align: left;
  }
  
  .system-title {
    margin-top: 0px;        /* ヘッダーとの距離を広げる */
    margin-bottom: 0px;      /* 下との距離を詰める */
    padding-left: 15px !important;      /* 左の余白を少し詰める（通常30px） */
    text-align: left;        /* 念のため明示 */
  }
  
}