/*
 Theme Name: TKラボ
 Theme URI: https://tklabo-online.com/
 Author: takalabo
 Version: 1.0.0
 Description: 動画視聴サイト用のテーマ:最低限（重複整理版）
*/

/* =========================================================
   0) Base / Layout（sticky footer + 全面背景帯）
   ========================================================= */
html,
body {
  margin: 0;
  height: 100%;
}
.logout{
  color: #7a0000 !important;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Roboto, sans-serif;
  line-height: 1.7;
}

/* メイン領域：フッター以外の高さを受け持つ＋背景帯を一元管理 */
main,
.site-main {
  flex: 1 0 auto;
  display: block;
  background: rgb(0, 10, 23);
  /*background: #181818;*/
  /*background: var(--page-bg, transparent);*/
}

.site-footer {
  margin-top: auto;
}

/* コンテナ */
.l-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.course-index-page::before,
.news-page::before {
  content: none !important;
}

/* ===== 帯色の指定（必要なページにだけ与える） ================== */
/* 動画一覧（/ft_video, /futures_video のテンプレート） */
body.page-template-page-course-index {
  --page-bg: #EAF2F7;
}

body.page-template-page-news,
body.page-template-page-news-index {
  --page-bg: #EAF2F7;
}



/* =========================================================
   1) Header
   ========================================================= */
.site-header {
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  display: block;
  height: 32px;
  width: auto;
}

/* お問い合わせリンク（外部アイコン付き） */
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  font-weight: 600;
  color: #1e3881;
  font-size: 1rem;
  white-space: nowrap;
  margin-left:0.5rem;
}

.header-link:hover {
  text-decoration: underline;
}

.ext-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  vertical-align: middle;
}

/* =========================================================
   2) Common UI
   ========================================================= */
.c-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #1e3881;
}

.c-btn--primary {
  background: #1e3881;
  color: #fff;
  border-color: #1e3881;
}

/* 旧式レッスン一覧（互換用。新UIがある場合は未使用） */
.c-lesson-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 12px;
}

.c-lesson-item a {
  display: block;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
}

/* 動画プレイヤー汎用枠 */
.c-player-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  margin: 24px 0;
}

/* =========================================================
   3) Hero / FV
   ========================================================= */
.fv {
  width: 100%;
}

.fv picture,
.fv img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   4) Section Common
   ========================================================= */
h2.page_title{
	color: #ffffff;
	border-bottom: solid 1px #ffffff;
	padding: 0 2%;
}
.sec {
  margin: 56px 0 72px;
}

.sec__title {
  margin: 0 0 28px;
  text-align: center;
  font-size: 1.7rem;
  font-weight: 800;
  color: #1e3881;
  overflow: hidden;
}

.sec__title span {
  display: inline-block;
  position: relative;
  padding: 0 12px;
}

.sec__title span::before,
.sec__title span::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  background: #1e3881;
  width: clamp(40px, 22vw, 120px);
}

.sec__title span::before {
  right: 100%;
  margin-right: 12px;
}

.sec__title span::after {
  left: 100%;
  margin-left: 12px;
}

/* =========================================================
   5) Home – Courses Section（受講講座）
   ========================================================= */
.sec--courses {
  position: relative;
  margin: 0;
  padding: 56px 0;
}

.sec--courses::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100vw; min-width: 100vw;
  background-color: #f5fbff;
  opacity: 1;
  background-image:
    linear-gradient(#d5ebff 0.9px, transparent 0.9px),
    linear-gradient(to right, #d5ebff 0.9px, #f5fbff 0.9px);
  background-size: 18px 18px;
  z-index: -1;
  pointer-events: none;
}

.courses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .courses {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------------------------------------------------
   course-btn（navbtn と同等デザイン・挙動／独立定義）
   --------------------------------------------------------- */
.thumbnail_box{
	width: 100%;
	height: 180px;
	background:#cccccc;
	text-align: center;
	overflow: hidden;
}
.thumbnail_img{
	width: 100%;
	transition-duration: 0.5s;
}
.course-btn {
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  border: solid 1px rgba(255, 255, 255, 0.1);
  background: rgb(20, 30, 43);
  text-decoration: none;
}

.course-btn__label,
.course-btn__text{
	color: #cccccc;
	padding: 0 28px;
	width: calc(100% - 56px);
	line-height: 1.3;
	overflow: hidden;
	display: inline-block;
	margin: 0;
}
.course-btn__label{
	height: 25px;
	margin-top: 3%;
}
.course-btn__text{
	height: 60px;
	margin-bottom: 4%;
}
.course-btn:hover{
  color: #ff0000;
}


/* ラベル：色は currentColor に追随（反転時も自動で白） */
.course-btn__label {
  font-size: 1.2rem;
  font-weight: 800;
  text-align: left;
  margin-right: 16px;
}

/* ボタン右端の矢印（CSS描画／currentColor に追随） */
.course-btn__arrow {
  position: relative;
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  vertical-align: middle;
  color: currentColor;
  overflow: hidden;
  text-indent: -9999px;
  white-space: nowrap;
}

.course-btn__arrow::before {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0;
  border-top: 0.45rem solid transparent;
  border-bottom: 0.45rem solid transparent;
  border-left: 0.65rem solid currentColor;
  transform: translate(-50%, -50%);
}


/* =========================================================
   6) Home – Related Sites（関連サイト）
   ========================================================= */
.link-banners {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
}

@media (min-width: 1024px) {
  .link-banners {
    grid-template-columns: repeat(3, 1fr);
  }
}

.link-banners__item {
  display: block;
}

.link-banners__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* =========================================================
   7) Course Index Page（/ft_video, /futures_video 共通）
   ========================================================= */
.course-index-page {
  position: relative;
  padding: 24px 0 48px;
  overflow: hidden;
}

.course-index-page::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  background: #EAF2F7;
  z-index: -1;
}

.course-index__head {
  margin: 32px 0 20px;
}

.course-index__title {
  margin: 0 0 8px;
  font-size: 1.8rem;
  font-weight: 800;
}

.course-index__desc {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.lesson-list {
  list-style: none;
  margin: 24px 0 80px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.lesson-card {
  margin: 0;
}

.lesson-card__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  min-height: 56px;
  border: 2px solid #cfe0ff;
  border-radius: 10px;
  text-decoration: none;
  background: #fff;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
    will-change: transform;
	font-weight:bold;
}

.lesson-card__link:hover {
  background: #e0f6ff;
  border-color: #8fb6ff;
    box-shadow: 0 5px 0 0 #d7dce569;
  transform: translate(-4px, -4px);
}

.lesson-card__link:active {
  transform: translate(0, 0);
}
.lesson-card__link.no_link{
  background: #afafaf;
}
.lesson-card__link.no_link:hover {
  background: #afafaf;
  border-color: #cfe0ff;
  box-shadow: none;
  transform: none;
}

.lesson-card__no {
  display: inline-block;
  min-width: 84px;
  padding: 6px 10px;
  text-align: center;
  font-weight: 700;
  color: #0160ae;
  background: #eef4ff;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1;
}

.lesson-card__title {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #1a1a1a;
}

/* 一覧右端の矢印（CSS描画） */
.lesson-card__status {
  position: relative;
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  vertical-align: middle;
  color: #0060ae;
  overflow: hidden;
  text-indent: -9999px;
  white-space: nowrap;
}

.lesson-card__status::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 0.45rem solid transparent;
  border-bottom: 0.45rem solid transparent;
  border-left: 0.65rem solid currentColor;
  transform: translate(-40%, -50%);
}

@media (max-width: 767px) {
  .lesson-card__link {
    padding: 16px;
    gap: 12px;
  }

  .lesson-card__no {
    min-width: 78px;
    font-size: 0.9rem;
  }
}

/* ユーザー設定に配慮：アニメ最小化 */
@media (prefers-reduced-motion: reduce) {
  .lesson-card__link {
    transition:
      background 0.15s ease,
      border-color 0.15s ease,
      box-shadow 0.15s ease;
  }
  .lesson-card__link:hover,
  .lesson-card__link:active {
    transform: none;
  }
}

/* タッチ端末では hover 移動を抑制 */
@media (hover: none) {
  .lesson-card__link:hover,
  .lesson-card__link:active {
    transform: none;
  }
}


/* =========================================================
   8) Lesson Page（動画再生）
   ========================================================= */
/* SP時のタイトル調整 */
@media (max-width: 767px) {
  body.page-template-page-lesson .l-wrap > h1,
  body.page-template-lesson-page .l-wrap > h1 {
    font-size: 1.4rem;
    line-height: 1.4;
    margin: 25px 0 16px;
  }
}

/* 本文内見出し（ショートコード[vimeo title="..."]想定） */
.c-lesson-subtitle {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 16px;
  padding: 8px 12px;
  background: #f0f4ff;
  border-left: 4px solid #1e3881;
  border-radius: 4px;
  color: #1e3881;
}

/* 資料ダウンロード（ボタン＋アイコン常時表示） */
.c-resources {
  margin: 32px 0;
}

.c-resources__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.c-resources__item a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #e68412;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.3s ease;
  margin-bottom:2.5rem;
}

.c-resources__item a:hover {
  background: #d46b09;
}

.c-resources__item a::before {
  content: "";
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  background-color: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 3c.55 0 1 .45 1 1v8h3l-4 4-4-4h3V4c0-.55.45-1 1-1zM5 17h14v2H5z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 3c.55 0 1 .45 1 1v8h3l-4 4-4-4h3V4c0-.55.45-1 1-1zM5 17h14v2H5z"/></svg>') no-repeat center / contain;
}

.c-resources__filename {
  margin-left: 6px;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* 戻る／前／次 ナビ */
.lesson-breadcrumb {
  margin: 8px 0 16px;
}

.c-lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
}

.navbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 2px solid #1e3881;
  margin-top:15px;
  border-radius: 10px;
  color: #1e3881;
  text-decoration: none;
  background: #fff;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.navbtn:hover {
  background: #1e3881;
  color: #fff;
  border-color: #1e3881;
  box-shadow: 0 2px 0 0 #dfe6ff;
}

.navbtn__label {
  font-weight: 700;
}

/* ナビ矢印（CSS描画） */
.navbtn__arrow {
  position: relative;
  display: inline-block;
  width: 1.05rem;
  height: 1.05rem;
  vertical-align: middle;
  color: currentColor;
  overflow: hidden;
}

.navbtn__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
}

.navbtn--next .navbtn__arrow::before {
  border-top: 0.42rem solid transparent;
  border-bottom: 0.42rem solid transparent;
  border-left: 0.60rem solid currentColor;
}

.navbtn--prev .navbtn__arrow::before,
.navbtn--back .navbtn__arrow::before {
  border-top: 0.42rem solid transparent;
  border-bottom: 0.42rem solid transparent;
  border-right: 0.60rem solid currentColor;
}

@media (max-width: 480px) {
  .navbtn {
    padding: 10px 14px;
  }
}

/* Lesson 見出し行（番号＋タイトル） */
.lesson-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 16px;
}

.lesson-no {
  display: inline-block;
  min-width: 74px;
  padding: 6px 10px;
  text-align: center;
  font-weight: 700;
  color: #1e3881;
  background: #eef4ff;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  font-size: .95rem;
  line-height: 1;
}

.lesson-title {
  margin: 0;
}

/* SP時：h1縮小（セレクタ不一致対策済み） */
@media (max-width: 767px) {
  body.page-template-page-lesson .lesson-title,
  .lesson-page .lesson-title {
    font-size: 1.3rem;
    line-height: 1.4;
  }
}


/* =========================================================
   9) Footer
   ========================================================= */
.site-footer {
  background: #000;
  color: #fff;
  padding: 5px 0 32px;
  text-align: center;
  font-size: 0.8rem;
}

.site-footer .menu-list{
	margin-bottom: 2%;
}
.site-footer .menu-list li{
	list-style: none;
	display: inline-block;
	margin: 0 1%;
}
.site-footer a {
  color: #fff;
  text-decoration: underline;
}

/* =========================================================
   10) News（お知らせ一覧・詳細）— 外枠なし／罫線で区切り
   ========================================================= */

/* ページ全体（背景は白のまま） */
.news-page {
  position: relative;
  padding: 40px 0 60px;
  background: #fff;
}

/* 中央ラッパー：外枠・影・角丸を廃止してフラットに */
.news-container {
  max-width: 1000px;
  margin: 0 auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* 一覧ヘッダー（見出し＋説明） */
.news-index__head {
  margin: 0 0 16px;
}
.news-index__title {
  margin: 0 0 8px;
  font-size: 1.8rem;
  font-weight: 800;
}
.news-index__desc {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

/* 一覧リスト：太めの罫線で区切る */
.news-list {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  border-top: 2px solid #e5e7eb;
}
.news-card {
  margin: 0;
  border-bottom: 2px solid #e5e7eb;
}

/* 行（カード）本体：左右パディング無しでシンプルに */
.news-card__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  text-decoration: none;
  background: transparent;
  transition: background 0.2s ease;
}
.news-card__link:hover {
  background: #f9fbff;
}

/* 日付・タイトル・矢印 */
.news-card__date {
  min-width: 110px;
  font-weight: 700;
  color: #1e3881;
}
.news-card__title {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #1a1a1a;
  font-weight:bold;
}
.news-card__status {
  position: relative;
  width: 1.2rem;
  height: 1.2rem;
  color: #0060ae;
}
.news-card__status::before {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0;
  border-top: 0.45rem solid transparent;
  border-bottom: 0.45rem solid transparent;
  border-left: 0.65rem solid currentColor;
  transform: translate(-50%, -50%);
}

/* ページネーション（そのまま流用） */
.pagination { text-align: center; margin: 8px 0 0; }
.pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 12px;
  border: 1px solid #cfe0ff;
  border-radius: 6px;
  text-decoration: none;
}
.pagination .page-numbers.current {
  background: #1e3881;
  color: #fff;
  border-color: #1e3881;
}
.pagination a.page-numbers:hover {
  background: #f7fbff;
}

/* 詳細ページ（既存のまま軽く整え） */
.news-single__head { margin: 8px 0 16px; }
.news-single__date {
  display: inline-block;
  font-weight: 700;
  color: #1e3881;
  margin-right: 12px;
}
.news-single__title {
  margin: 6px 0 0;
  font-size: 1.6rem;
  font-weight: 800;
}
.news-single__content { margin: 20px 0 24px; }
.news-single__nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
}

/* レスポンシブ（モバイルで少し詰める） */
@media (max-width: 767px) {
  .news-index__head { margin-bottom: 12px; }
  .news-card__link { padding: 14px 0; gap: 12px; }
  .news-card__date { min-width: 90px; font-size: 0.95rem; }
  .news-card__title { font-size: 1.0rem; }
}

/* 動き最小化の配慮 */
@media (prefers-reduced-motion: reduce) {
  .news-card__link { transition: none; }
}
@media (hover: none) {
  .news-card__link:hover { background: transparent; }
}


/* =========================================================
   11) プレイヤー調整
   ========================================================= */

/* ラッパーは固定比率＋相対配置、はみ出しは隠す */
.c-player-wrap{
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  line-height: 0;
}

/* iframe を“面いっぱい”にフィット（インライン→ブロック） */
.c-player-wrap > iframe,
.c-player-wrap > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  transform: translateZ(0);
}

/* Safari等でごく稀に出る1px線の再保険（必要時のみ効く） */
@supports (-webkit-touch-callout: none) {
  .c-player-wrap { outline: 1px solid transparent; }
}

/* =========================================================
   12) エラーページ(404)
   ========================================================= */

/* ===== 404 Not Found（共通） ===== */
.error-page{
  --page-bg:#fff;
  position: relative;
  padding: 56px 0 96px;
  background: var(--page-bg);
  text-align: center;
}

.error-page__title{
  margin: 12px 0 16px;
  font-weight: 800;
  color: #111;
  font-size: clamp(1.3rem, 3.2vw, 2.0rem);
  line-height: 1.5;
}

.error-page__illust img{
  display: block;
  margin: 20px auto 28px;
  width: min(220px, 70%);
  height: auto;
}

.c-404-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  border: 2px solid #1e3881;
  border-radius: 12px;
  background: #fff;
  color: #1e3881;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 0 0 #dfe6ff;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.c-404-btn:hover{
  background: #1e3881;
  color: #fff;
  border-color: #1e3881;
}
.c-404-btn__arrow{
  position: relative;
  width: 1.2rem; height: 1.2rem;
}
.c-404-btn__arrow::before{
  content: "";
  position: absolute; inset: 0;
  margin: auto;
  width: 0; height: 0;
  border-top: 0.45rem solid transparent;
  border-bottom: 0.45rem solid transparent;
  border-left: 0.65rem solid currentColor; 
}

.error-page__note{
  margin-top: 18px;
  color: #666;
  font-size: .95rem;
}

@media (max-width: 767px){
  .c-404-btn{ padding: 16px 28px; }
}