@charset "utf-8";

/* =========================================================
   講師一覧 (staff_list) リスタイル
   トップページ(before-login)のトーンに合わせたモダンデザイン
   - 既存の style.css のクラスを .staff-page スコープで上書き
   - パレット: 背景 #f6f4f2 / CTA #5fbcf1 / アクセント #ffd166
   ========================================================= */

.staff-page {
  --sl-primary: #5fbcf1;
  --sl-primary-hover: #3aa5e0;
  --sl-accent: #ffd166;
  --sl-pink: #ff7aa2;
  --sl-text: #333333;
  --sl-subtle: #6b7280;
  --sl-border: #e7e3df;
  --sl-card: #ffffff;
  --sl-chip: #f3f4f6;
  --sl-radius: 14px;
  --sl-shadow: 0 6px 24px -8px rgba(60, 50, 40, 0.16);

  font-family: "Noto Sans JP", "Nunito Sans", sans-serif;
  color: var(--sl-text);
}

/* コンテンツ幅（サイドバー無し・中央寄せ） */
.staff-page .staff-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}
@media (min-width: 640px) {
  .staff-page .staff-container { padding: 2.5rem 1.5rem 3.5rem; }
}

/* ページ見出し */
.staff-page h1.page-title {
  font-family: "Noto Sans JP", "Nunito Sans", sans-serif;
  background-color: transparent !important;
  border-left: 0 !important;
  box-shadow: none !important;
  font-size: 1.75rem;
  font-weight: 800;
  color: #2b2b2b;
  margin: 0 0 1.5rem;
  padding: 0 0 0.75rem;
  border-bottom: 3px solid var(--sl-accent);
  display: inline-block;
}

/* 汎用パネル → カード */
.staff-page .panel,
.staff-page .panel-default {
  background: var(--sl-card);
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius);
  box-shadow: var(--sl-shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
}
.staff-page .panel-body { padding: 1.5rem; }
@media (min-width: 768px) {
  .staff-page .panel-body { padding: 1.75rem; }
}

.staff-page .panel > a.panel-link,
.staff-page .panel-default a.panel-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.staff-page .panel a,
.staff-page .panel-default a {
  position: relative;
  z-index: 2;
}

/* =========================================================
   検索パネル
   ========================================================= */
.staff-page #teach-search .panel-body { padding: 1.5rem; margin: 0 !important; }
@media (min-width: 768px) {
  .staff-page #teach-search .panel-body { padding: 1.75rem; margin: 0 !important; }
}

/* コンパクトな主要フィルタ（flex折返し・適切な間隔） */
.staff-page .ts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 0.9rem;
}
.staff-page .ts-grid .ts-box { flex: 1 1 200px; min-width: 0; }
.staff-page .ts-grid .ts-box--wide { flex: 1 1 100%; }
/* セレクト（性別・性格・ポイント・年代・血液型）は細めに */
.staff-page .ts-grid .ts-box:has(select) { flex: 0 1 150px; min-width: 130px; }

.staff-page .ts-box {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0 0 0.9rem;
}
.staff-page .ts-grid .ts-box { margin: 0; }
.staff-page .ts-box > label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--sl-subtle);
  margin: 0;
  text-align: left;
}
/* 入力＋接尾辞（「先生」）を横並びに */
.staff-page .ts-inline { display: flex; align-items: center; gap: 0.5rem; }
.staff-page .ts-inline .form-control { flex: 1; min-width: 0; }
.staff-page .ts-suffix { font-size: 0.9rem; color: var(--sl-subtle); white-space: nowrap; }

/* 入力・セレクト */
.staff-page #teach-search input[type="text"],
.staff-page #teach-search select,
.staff-page #teach-search .form-control {
  -webkit-appearance: none;
  appearance: none;
  height: auto !important;
  min-height: 2.6rem;
  background: #f8fafc;
  border: 1px solid var(--sl-border);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.5 !important;
  color: var(--sl-text);
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}
.staff-page #teach-search select { padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center; background-size: 1.1em;
}
.staff-page #teach-search input[type="text"]:focus,
.staff-page #teach-search select:focus {
  outline: none;
  background: #fff;
  border-color: var(--sl-primary);
  box-shadow: 0 0 0 3px rgba(95, 188, 241, 0.25);
}
.staff-page #teach-search .st-att {
  font-size: 0.8rem;
  color: var(--sl-subtle);
  line-height: 1.5;
}

/* チェックボックスをチップ風に */
.staff-page #teach-search .checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}
.staff-page #teach-search .checkbox-inline {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0 !important;
  padding: 0.45rem 0.85rem;
  background: var(--sl-chip);
  border: 1px solid var(--sl-border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--sl-text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.staff-page #teach-search .checkbox-inline:hover { border-color: var(--sl-primary); }
.staff-page #teach-search .checkbox-inline input[type="checkbox"] {
  -webkit-appearance: none; appearance: none;
  width: 1rem; height: 1rem; margin: 0.18em 0 0 0;
  border: 1.5px solid #c7c2bc; border-radius: 4px; background: #fff;
  flex-shrink: 0; cursor: pointer;
  display: inline-block !important;
  position: static !important;
  left: auto !important; top: auto !important; opacity: 1 !important;
}
/* 旧 style.css のカスタムチェック装飾（疑似要素）を無効化（2行折返し時のズレ・余分な表示を解消） */
.staff-page #teach-search .checkbox-inline::before,
.staff-page #teach-search .checkbox-inline::after {
  content: none !important;
  display: none !important;
}
.staff-page #teach-search .checkbox-inline input[type="checkbox"]:checked {
  background: var(--sl-primary); border-color: var(--sl-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M12.2 4.8a1 1 0 010 1.4l-5 5a1 1 0 01-1.4 0l-2.5-2.5a1 1 0 011.4-1.4L6.5 9l4.3-4.2a1 1 0 011.4 0z'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.staff-page #teach-search .checkbox-inline.checked,
.staff-page #teach-search .checkbox-inline:has(input:checked) {
  background: #e8f5fd; border-color: var(--sl-primary); color: var(--sl-primary-hover);
}

/* 特徴などチェック群（全幅・下マージン） */
.staff-page .ts-box--chips { margin: 0 0 1rem; }

/* 詳細検索トグル ＋ 動画リンク */
.staff-page .ts-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem;
  margin: 0.25rem 0 1rem;
}
.staff-page #open-detail-search {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--sl-primary-hover); text-decoration: none;
}
.staff-page #open-detail-search::before {
  content: ""; display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.18em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233aa5e0'%3E%3Cpath d='M3 5h18v2H3zm3 6h12v2H6zm3 6h6v2H9z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.staff-page #open-detail-search:hover { text-decoration: underline; }
.staff-page #teach-search a[href] { color: var(--sl-primary-hover); }
/* 「講師の動画一覧を見る」リンクに動画アイコン */
.staff-page .ts-video-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.staff-page .ts-video-link::before {
  content: ""; display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='5' width='20' height='14' rx='3' fill='%233aa5e0'/%3E%3Cpath d='M10 9l5 3-5 3z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
}
.staff-page #detail-search { margin-top: 0.25rem; }

/* 検索ボタン */
.staff-page .btn-box { text-align: center; margin-top: 1.5rem; }
.staff-page .ts-submit { text-align: center; margin-top: 1.25rem; }
.staff-page a.btn-blue {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: var(--sl-primary) !important;
  color: #fff !important;
  font-weight: 700; font-size: 1rem;
  padding: 0.8rem 2.5rem !important;
  border-radius: 999px !important;
  border: 0 !important;
  box-shadow: 0 10px 20px -8px rgba(95, 188, 241, 0.8);
  text-decoration: none; transition: background 0.2s ease, transform 0.1s ease;
}
.staff-page a.btn-blue:hover { background: var(--sl-primary-hover) !important; color: #fff !important; }
.staff-page a.btn-blue:active { transform: translateY(1px); }

/* =========================================================
   並び替え & 空きマーク凡例
   ========================================================= */
.staff-page .sort-list {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  list-style: none; padding: 0; margin: 0 0 1rem;
}
.staff-page .sort-list li { margin: 0; }
.staff-page .sort-list .btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: #fff; border: 1px solid var(--sl-border); color: var(--sl-text);
  border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.875rem; font-weight: 600;
  text-decoration: none; transition: all 0.15s ease;
}
.staff-page .sort-list .btn:hover { border-color: var(--sl-primary); color: var(--sl-primary-hover); }
.staff-page .sort-list .btn.on { background: var(--sl-primary); border-color: var(--sl-primary); color: #fff; }

.staff-page .comment-box {
  margin: 0 0 1.25rem;
}
.staff-page .comment-box .aki {
  display: inline-flex; align-items: center;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px;
  padding: 0.5rem 0.9rem 0.5rem 2.4rem; font-size: 0.9rem; color: #9a3412; margin: 0;
}
.staff-page .comment-box .aki .small { color: #b45309; font-size: 0.8rem; }

/* 空きマーク：吹き出し風（円＋下向きの尻尾を密着）、「空」を少し大きく */
.staff-page .aki { padding-left: 36px; }
.staff-page .aki::before {
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  font-size: 0.95rem !important;
  line-height: 28px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
.staff-page .aki::after {
  left: 7px !important;
  top: 24px !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 5px solid transparent !important;
  border-right: 5px solid transparent !important;
  border-top: 9px solid #ff8000 !important;
  border-bottom: 0 !important;
  transform: none !important;
}
.staff-page .aki.off::after { border-top-color: #ccc !important; }
.staff-page .comment-box .aki { padding-left: 2.6rem; }

.photo.favorite:before {
      content: "\f005";
      font-family: "FontAwesome";
      font-size: 1.85714rem;
      color: #fdf681;
      position: absolute;
      left: 3px;
      bottom: 3px;
      z-index: 10;
      text-shadow: 0 0 5px #aaa;
}

/* =========================================================
   講師カード
   ========================================================= */
.staff-page .teach-box .panel-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .staff-page .teach-box .panel-body {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* 左：写真＋ボタン */
.staff-page .teach-box-L { width: 100%; }
@media (min-width: 768px) {
  .staff-page .teach-box-L { width: 160px; flex-shrink: 0; }
}
/* モバイル：写真とボタンを横並び（写真は約40%幅）にして写真が大きくなりすぎないように */
.staff-page .teach-box-L .row { display: flex; flex-wrap: nowrap; margin: 0; align-items: flex-start; }
.staff-page .teach-box-L .row > [class*="col-"] { padding: 0; }
.staff-page .teach-box-L .row > .col-xs-5 { flex: 0 0 38%; max-width: 150px; }
.staff-page .teach-box-L .row > .col-xs-7 { flex: 1 1 auto; min-width: 0; }
@media (min-width: 768px) {
  /* デスクトップ：左カラム内で写真→ボタンを縦積み */
  .staff-page .teach-box-L .row { flex-direction: column; flex-wrap: wrap; }
  .staff-page .teach-box-L .row > .col-xs-5,
  .staff-page .teach-box-L .row > .col-xs-7 { flex: none; max-width: 100%; width: 100%; }
}
.col-xs-5 {
    margin-bottom: 10px;
    margin-right: 10px;
}
.staff-page .teach-box-L .photo {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
  background: #f3f4f6; position: relative;
}
.staff-page .teach-box-L .photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.staff-page .teach-box-L .photo.favorite { box-shadow: 0 0 0 3px var(--sl-accent); }

.staff-page .btn-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.staff-page .btn-list li { margin: 0; }
.staff-page .btn-list .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%;
  background: #fff; border: 1px solid var(--sl-border); color: var(--sl-text);
  border-radius: 10px; padding: 0.5rem 0.7rem; font-size: 0.9rem; font-weight: 600;
  line-height: 1.3; white-space: normal !important; word-break: break-word; text-align: center;
  text-decoration: none; transition: all 0.15s ease;
}
.staff-page .btn-list .btn .fa { flex-shrink: 0; }
.staff-page .btn-list .btn:hover { border-color: var(--sl-primary); color: var(--sl-primary-hover); }
.staff-page .btn-list .btn .fa-calendar { color: var(--sl-primary); }
.staff-page .btn-list .btn .fa-star { color: var(--sl-accent); }

/* 右：情報 */
.staff-page .teach-box-R { flex: 1; min-width: 0; }
.staff-page .teach-box-R .teach-box-title { overflow: visible; margin-bottom: 0.75rem; }
.staff-page .teach-box-R .tb-title-L {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; overflow: visible; margin-bottom: 0.5rem;
}
.staff-page .teach-box h3 {
  float: none !important; margin: 0 !important; max-width: none !important;
  font-size: 1.25rem !important; font-weight: 800; line-height: 1.4 !important;
}
.staff-page .teach-box h3 a { color: var(--sl-primary-hover); text-decoration: none; }
.staff-page .teach-box h3 a:hover { color: var(--sl-primary); text-decoration: underline; }
.staff-page .teach-box .point {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: #eff6ff; border-radius: 999px;
  padding: 0.35rem 0.9rem; font-size: 0.95rem; font-weight: 700; white-space: nowrap;
  line-height: 1.2;
  margin-left: auto;
}
.staff-page .teach-box .point .num { font-size: 1.15rem; }
/* p.webp アイコンを文字と縦中央で揃える */
.staff-page .teach-box .point .point-icon {
  display: inline-block;
  height: 1.25em;
  width: auto;
  vertical-align: middle;
  flex-shrink: 0;
}

.staff-page .feature-list { list-style: none; padding: 0; margin: 0 0 0.6rem; }
.staff-page .feature-list .feature1 { font-size: 0.9rem; color: var(--sl-text); }
.staff-page .feature-list .feature1 span { font-weight: 700; color: var(--sl-subtle); }

.staff-page .tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.staff-page .tag-list li { margin: 0; }
.staff-page .tag-list li span,
.staff-page .tag-list li a {
  display: inline-block; background: var(--sl-chip); color: #4b5563;
  border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.95rem; font-weight: 600; text-decoration: none;
}
.staff-page .tag-list li a:hover { background: #e8f5fd; color: var(--sl-primary-hover); }

/* 自己紹介抜粋 */
.staff-page .teach-box-comment {
  margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px dashed var(--sl-border);
  font-size: 0.9rem; line-height: 1.7; color: #4b5563;
}
.staff-page .teach-box-comment .ellipsis {
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
  max-height: 8.5em;
}
.staff-page .teach-box-comment .ellipsis * { font-size: inherit !important; background: transparent !important; }

/* =========================================================
   ページネーション
   ========================================================= */
.staff-page .pagination {
  display: inline-flex; flex-wrap: wrap; gap: 0.3rem; padding: 0; margin: 1.5rem 0; list-style: none;
}
.staff-page .pagination > li > a,
.staff-page .pagination > li > span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; height: 2.2rem;
  padding: 0 0.6rem; border: 1px solid var(--sl-border); background: #fff; color: var(--sl-text);
  border-radius: 8px; text-decoration: none; font-size: 0.9rem;
}
.staff-page .pagination > li > a:hover { border-color: var(--sl-primary); color: var(--sl-primary-hover); }
.staff-page .pagination > li.active > a,
.staff-page .pagination > li.active > span {
  background: var(--sl-primary); border-color: var(--sl-primary); color: #fff;
}
.staff-page .pagination > li.disabled > a { opacity: 0.4; pointer-events: none; }

/* =========================================================
   無料登録 CTA / 該当なし
   ========================================================= */
.staff-page .btn-box.m50 { margin: 2.5rem 0; text-align: center; }
.staff-page a.btn-pink {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: var(--tw-bg-opacity); background-color:rgb(255 107 107 / var(--tw-bg-opacity, 1)) !important; color: #fff !important;
  font-weight: 800; font-size: 1.05rem; padding: 0.9rem 3rem !important;
  border-radius: 999px !important; border: 0 !important;
  box-shadow: 0 12px 24px -8px rgba(255, 122, 162, 0.8); text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}
.staff-page a.btn-pink:hover { background: #ff5c8c !important; color: #fff !important; }
.staff-page a.btn-pink:active { transform: translateY(1px); }

.staff-page .alert-danger {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: 10px; padding: 1rem 1.25rem; margin: 1.5rem 0; text-align: center;
}

.staff-page nav.text-center { text-align: center; }

/* =========================================================
   講師詳細ページ (staff_detail) — .staff-page スコープで共有
   ========================================================= */
.staff-page#main { padding-left: 1rem; padding-right: 1rem; }

/* --- プロフィールヘッダ (#teach-data) --- */
.staff-page #teach-data .panel-body { position: relative; }
.staff-page #teach-data #sns-list {
  list-style: none; margin: 0; padding: 0; position: absolute; top: 1rem; right: 1.25rem;
  display: flex; gap: 0.4rem; z-index: 2;
}
.staff-page #teach-data #sns-list li a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--sl-chip);
  color: var(--sl-text); font-size: 1rem; text-decoration: none;
}
.staff-page #teach-data #sns-list li a:hover { background: #e8f5fd; color: var(--sl-primary-hover); }

.staff-page #teach-data .panel-body { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; }
.staff-page #teach-data-L { flex: 0 0 100%; }
.staff-page #teach-data-R { flex: 1 1 100%; min-width: 0; }
@media (min-width: 768px) {
  .staff-page #teach-data-L { flex: 0 0 320px; }
  .staff-page #teach-data-R { flex: 1 1 320px; }
}
.staff-page #teach-data-L .row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; align-items: flex-start; }
.staff-page #teach-data-L .row > [class*="col-"] { padding: 0; width: auto; float: none; }
.staff-page #teach-data-L .row > .col-xs-7 { min-width: 0; }
.staff-page #teach-data-L .photo {
  width: 200px !important; height: 200px !important; border-radius: 14px; overflow: hidden; background: #f3f4f6;
}
.staff-page #teach-data-L .photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.staff-page #teach-data-L .photo.favorite { box-shadow: 0 0 0 3px var(--sl-accent); }
.staff-page #teach-data-L .name { margin: 0.6rem 0 0; font-size: 1.15rem; font-weight: 800; color: #2b2b2b; }
.staff-page #teach-data-L h4, .staff-page #teach-data-L .data-label { margin: 0 0 0.1rem; font-size: 0.85rem; font-weight: 700; color: var(--sl-subtle); }
.staff-page #teach-data-L > .row .col-xs-7 > p { margin: 0 0 0.75rem; color: #8291d2; font-weight: 700; }
.staff-page #teach-data-L #spendpoints, .staff-page #teach-data-L .num { font-size: 1.7rem; font-weight: 800; }
.staff-page #teach-data-L .btn-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.staff-page #teach-data-L .btn-list li { margin: 0; }
.staff-page #teach-data-L .btn-list .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%;
  background: #fff; border: 1px solid var(--sl-border); color: var(--sl-text);
  border-radius: 10px; padding: 0.5rem 0.7rem; font-size: 0.85rem; font-weight: 400;
  white-space: normal; text-decoration: none; transition: all 0.15s ease;
}
.staff-page #teach-data-L .btn-list .btn:hover { border-color: var(--sl-primary); color: var(--sl-primary-hover); }
.staff-page #teach-data-L .btn-list .fa-star { color: var(--sl-accent); }
.staff-page #teach-data-L .btn-list .fa-calendar { color: var(--sl-primary); }

/* 属性テーブル */
.staff-page .teach-table { width: 100%; border-collapse: collapse; margin: 0; }
.staff-page .teach-table tr { border-bottom: 1px solid var(--sl-border); }
.staff-page .teach-table tr:last-child { border-bottom: 0; }
.staff-page .teach-table th, .staff-page .teach-table td {
  padding: 0.7rem 0.5rem; text-align: left; vertical-align: top; border: 0;
}
.staff-page .teach-table th { width: 40%; color: var(--sl-subtle); font-weight: 700; }
.staff-page .teach-table .int-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.staff-page .teach-table .int-list li span {
  display: inline-block; background: var(--sl-chip); border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.95rem;
}
.staff-page #teach-data-R .news { display: block; margin-top: 0.75rem; font-size: 0.95rem; color: var(--sl-subtle); }

/* --- 自己紹介・コメント (#teach-comment) --- */
.staff-page .s-title {
  font-size: 1.15rem; font-weight: 800; color: #2b2b2b;
  margin: 1.75rem 0 0.85rem; padding: 0 0 0 0.7rem; border-left: 4px solid var(--sl-primary); line-height: 1.4;
}
.staff-page #teach-comment .panel-body > .s-title:first-child { margin-top: 0; }
.staff-page #teach-comment p { line-height: 1.85; margin: 0 0 1rem; }
.staff-page #teach-comment h4 { font-weight: 800; margin: 1.5rem 0 0.75rem; }
.staff-page .user-movie {
  position: relative; width: 100%; max-width: 720px;
  aspect-ratio: 16 / 9; height: auto !important; padding: 0 !important;
  margin: 0.5rem 0; overflow: hidden; border-radius: 12px;
}
.staff-page .user-movie iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.staff-page #teach-comment audio { width: 100%; max-width: 480px; }

/* --- セクション見出し共通 --- */
.staff-page h2.title {
  font-size: 1.3rem; font-weight: 800; color: #2b2b2b;
  background: transparent !important; border: 0 !important; border-left: 4px solid var(--sl-accent) !important;
  box-shadow: none !important; padding: 0.1rem 0 0.1rem 0.7rem !important; margin: 0;
}
.staff-page .section-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 2.25rem 0 1rem; flex-wrap: wrap; }
.staff-page .section-header .list-link {
  display: inline-flex; align-items: center; gap: 0.35rem; background: #fff; border: 1px solid var(--sl-border);
  color: var(--sl-text); border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.staff-page .section-header .list-link:hover { border-color: var(--sl-primary); color: var(--sl-primary-hover); }

/* --- コンテンツ (items) --- */
.staff-page .cnt-block { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.1rem; }
.staff-page .cnt-box { background: #fff; border: 1px solid var(--sl-border); border-radius: 12px; overflow: hidden; box-shadow: var(--sl-shadow); }
.staff-page .cnt-box .thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.staff-page .cnt-box ul { list-style: none; padding: 0.75rem 0.9rem; margin: 0; }
.staff-page .cnt-box .cnt-title a { font-weight: 700; color: #2b2b2b; text-decoration: none; }
.staff-page .cnt-box .cnt-title a:hover { color: var(--sl-primary-hover); }
.staff-page .cnt-box .cnt-copy { font-size: 0.82rem; color: var(--sl-subtle); margin-top: 0.35rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* --- スケジュール (#teacher-schedule) --- */
.staff-page .schedule { margin-top: 1rem; }
.staff-page .schedule .month { font-size: 1.1rem; font-weight: 800; margin: 0; }
.staff-page .schedule .clock { color: var(--sl-primary); }
.staff-page .cal-table-wrapper {
  background: #fff; border: 1px solid var(--sl-border); border-radius: 14px; box-shadow: var(--sl-shadow);
  padding: 1rem; margin-top: 1rem; overflow-x: auto;
}

#teacher-schedule { scroll-margin-top: 6rem; }

/* カレンダーの見た目を軽く整える（構造・クラスは既存のまま） */
.staff-page .cal-table { width: 100%; border-collapse: collapse; }
.staff-page .cal-table th { background: #f8fafc; color: var(--sl-subtle); font-weight: 700; padding: 0.4rem; border: 1px solid var(--sl-border); font-size: 0.85rem; }
.staff-page .cal-table th.sun, .staff-page .cal-table td.sun .date { color: #e0556b; }
.staff-page .cal-table th.sat, .staff-page .cal-table td.sat .date { color: #3aa5e0; }
.staff-page .cal-table td { border: 1px solid var(--sl-border); vertical-align: top; padding: 0.35rem; min-width: 88px; }
.staff-page .cal-table td.today { background: #fffaf0; }
.staff-page .cal-table td.off, .staff-page .cal-table td.next-month { background: #f8fafc; color: #c7c2bc; }
.staff-page .cal-table td .date { font-weight: 700; font-size: 0.85rem; display: block; margin-bottom: 0.2rem; }
.staff-page .cal-table .koma { font-size: 0.8rem; border-radius: 6px; padding: 0.15rem 0.3rem !important; margin-bottom: 0.2rem; }
.staff-page .cal-table .koma.open { background: #fff3e0; color: #c2410c; cursor: pointer; }
.staff-page .cal-table .koma.open:hover { background: #ffe2bb; }
.staff-page .cal-table .koma.non, .staff-page .cal-table .koma.end { background: #f1f1f1; color: #b6b1ab; }
.staff-page .cal-table .koma.lesson, .staff-page .cal-table .koma.past { background: #e8f5fd; color: #1d4ed8; }

/* 複数予約トグル＋予約ボタン */
.staff-page .block_booking_box { display: block; margin-top: 1rem; }
.staff-page .block_booking_box .inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.staff-page #block_booking {
  display: inline-flex; align-items: center; gap: 0.4rem; background: var(--sl-primary); color: #fff;
  font-weight: 700; padding: 0.7rem 2rem; border-radius: 999px; text-decoration: none;
  box-shadow: 0 10px 20px -8px rgba(95,188,241,.8);
}
.staff-page #block_booking:hover { background: var(--sl-primary-hover); }
.staff-page #block_booking.disabled { opacity: 0.5; pointer-events: none; box-shadow: none; }

/* --- 注意書きリスト --- */
.staff-page .check-list {
  list-style: none; padding: 1.1rem 1.7rem; margin: 1.75rem 0;
  background: #fff; border: 1px solid var(--sl-border); border-radius: 12px;
  font-size: 0.95rem; line-height: 1.75; color: #4b5563;
}
.staff-page .check-list > li { margin-bottom: 0.5rem; }
.staff-page .check-list > li:last-child { margin-bottom: 0; }
.staff-page .check-list .attention { color: #e11d48; font-weight: 700; }
.staff-page .check-list img { vertical-align: middle; }

/* --- 月送りボタン（Bootstrap btn-group）を軽く整える --- */
.staff-page .schedule .btn-group .btn {
  background: #fff; border: 1px solid var(--sl-border); color: var(--sl-text);
  border-radius: 8px; margin-left: 0.3rem; font-size: 0.85rem; font-weight: 600;
}
.staff-page .schedule .btn-group .btn:hover { border-color: var(--sl-primary); color: var(--sl-primary-hover); }

/* --- カレンダー：モバイルで全7曜日を収める（横切れ防止） ---
   table-layout:fixed で7列を等幅固定。文字は読みやすいサイズを維持し、
   はみ出さずに縦方向へ折り返す（style.css の #main .schedule に勝つ詳細度） */
@media (max-width: 640px) {
  .staff-page .cal-table-wrapper { padding: 0.4rem; overflow-x: auto; -webkit-overflow-scrolling: touch; box-sizing: border-box; }
  #main.staff-page .schedule .cal-table { table-layout: fixed; width: 100%; border-collapse: collapse; }
  #main.staff-page .schedule .cal-table th,
  #main.staff-page .schedule .cal-table td {
    width: 14.28%; padding: 3px 2px; box-sizing: border-box;
  }
  #main.staff-page .schedule .cal-table th { font-size: 0.85rem; }
  #main.staff-page .schedule .cal-table td span.date { font-size: 0.95rem; }
  #main.staff-page .schedule .cal-table .koma {
    font-size: 0.9rem; line-height: 1.4; padding: 2px 1px; margin-top: 2px;
    word-break: normal; overflow-wrap: anywhere;
  }
}

/* =========================================================
   料金プランページ (price) — order画面のデザインをログイン前共通で再現
   ========================================================= */
.staff-page .point-intro { margin-bottom: 1.5rem; }
.staff-page .point-intro p { line-height: 1.9; color: #4b5563; margin: 0; }

/* セクションカード */
.staff-page .point-container {
  background: #fff; border-top: 4px solid var(--sl-primary);
  border-radius: 0 0 22px 22px; box-shadow: var(--sl-shadow);
  padding: 1.75rem 1.1rem; margin-bottom: 2rem;
}
@media (min-width: 768px) { .staff-page .point-container { padding: 2.5rem; } }
.staff-page .point-title {
  text-align: center; font-weight: 800; font-size: 1.5rem; color: #2b2b2b; margin: 0 0 1.75rem;
}

/* プランカードのグリッド */
.staff-page .plans-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .staff-page .plans-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.staff-page .plans-grid-item {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--sl-border); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: box-shadow .2s ease, transform .2s ease;
}
.staff-page .plans-grid-item:hover { box-shadow: 0 10px 20px -10px rgba(0,0,0,.2); transform: translateY(-2px); }
.staff-page .plans-grid-item.on { border-color: var(--sl-primary); box-shadow: 0 0 0 2px var(--sl-primary) inset, 0 1px 2px rgba(0,0,0,.05); }
.staff-page .plan-img { padding: 0.75rem 0.75rem 0; display: flex; justify-content: center; }
.staff-page .plan-img img { height: 3.5rem; width: 3.5rem; border-radius: 0.5rem; object-fit: contain; }
.staff-page .plan-name {
  padding: 0.4rem 0.5rem; margin: 0.6rem 0 0; text-align: center; font-size: 0.95rem; font-weight: 700; line-height: 1.3;
}
/* ポイント追加カード：青ヘッダーを角丸の上部まで（先頭要素＝画像なし時はマージン0で天面に密着） */
.staff-page .plans-grid-item > .plan-name:first-child { margin-top: 0; padding: 0.7rem 0.5rem; font-size: 1.2rem; }
/* プラン名の色分け（order画面と同じ配色） */
.staff-page .plan-name.trial     { background: #c6f6d5; color: #2f855a; }
.staff-page .plan-name.light     { background: #90cdf4; color: #2c5282; }
.staff-page .plan-name.basic     { background: #4fc3f7; color: #fff; }
.staff-page .plan-name.popular   { background: #fbd38d; color: #7b341e; }
.staff-page .plan-name.gold      { background: #fefcbf; color: #744210; }
.staff-page .plan-name.diamond   { background: #c3dafe; color: #2a4365; }
.staff-page .plan-name.jplan     { background: #fed7d7; color: #822727; }
.staff-page .plan-name.intensive { background: #1a202c; color: #fff; }

/* 表内の文字サイズは order に合わせる */
.staff-page .plan-detail { flex-grow: 1; padding: 1.1rem; text-align: center; }
.staff-page .plan-detail .heading { color: #6b7280; font-size: 0.9rem; margin-bottom: 0.2rem; }
.staff-page .plan-detail .point { color: var(--sl-primary-hover); font-weight: 700; font-size: 1.3rem; margin-bottom: 0.5rem; }
.staff-page .plan-detail .price { color: #ef4444; font-weight: 700; font-size: 1.25rem; margin-bottom: 0.9rem; }
.staff-page .plan-detail .sub-heading { font-size: 0.9rem; color: #6b7280; margin-bottom: 0.15rem; }
.staff-page .plan-detail .number { font-weight: 700; color: #2b2b2b; }
.staff-page .plan-detail .number.mb { margin-bottom: 0.6rem; }

/* 全プラン共通の情報バー */
.staff-page .plan-common {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2.5rem;
  background: #f8fafc; border: 1px solid var(--sl-border); border-radius: 14px;
  padding: 0.9rem 1.2rem; margin-bottom: 1.25rem;
}
.staff-page .plan-common .ci { display: flex; align-items: baseline; gap: 0.5rem; }
.staff-page .plan-common .ci .lbl { font-size: 0.9rem; color: #6b7280; }
.staff-page .plan-common .ci .num { font-weight: 800; color: #2b2b2b; font-size: 1.1rem; }

/* 注意リスト（order と同じ：枠なし・チェックマーク・少し小さめ） */
.staff-page .points-list { margin: 1.25rem 0 0; font-size: 0.95rem; line-height: 1.45; color: #4b5563; }
.staff-page .point-list-item { display: flex; align-items: flex-start; gap: 0.5rem; }
.staff-page .point-list-item + .point-list-item { margin-top: 8px; }
.staff-page .point-list-item .icon { margin-top: 0.2rem; color: #4fc3f7; font-size: 0.9rem; flex-shrink: 0; }
.staff-page .point-list-item .attention,
.staff-page .attention { color: #e11d48; font-weight: 700; }

/* 支払い方法（1枠にまとめる） */
.staff-page .pay-block { padding: 1.25rem 0; border-bottom: 1px solid var(--sl-border); }
.staff-page .pay-block:first-of-type { padding-top: 0; }
.staff-page .pay-block:last-of-type { border-bottom: 0; }
.staff-page .pay-subtitle { margin: 0 0 0.75rem; font-size: 1.05rem; font-weight: 800; color: #2b2b2b; }
.staff-page .pay-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.staff-page .pay-head h4 { margin: 0; font-size: 0.95rem; font-weight: 700; }
.staff-page .pay-head img { max-height: 40px; width: auto; }
.staff-page .pay-block .points-list { margin-top: 0.75rem; }

/* =========================================================
   プライバシーポリシー等の文書ページ (.policy) — ログイン前共通
   ========================================================= */
.staff-page .policy { background: #fff; border: 1px solid var(--sl-border); border-radius: 16px; box-shadow: var(--sl-shadow); padding: 1.5rem 1.25rem; }
@media (min-width: 768px) { .staff-page .policy { padding: 2.25rem 2.5rem; } }
.staff-page .policy .lead { line-height: 1.9; color: #4b5563; margin: 0 0 0.5rem; }
.staff-page .policy .s-title { font-size: 1.1rem; margin: 1.9rem 0 0.75rem; }
.staff-page .policy > .s-title:first-of-type { margin-top: 1.25rem; }
.staff-page .policy p { line-height: 1.9; color: #374151; margin: 0 0 1rem; }
.staff-page .policy ul { margin: 0 0 1rem; padding-left: 1.3rem; list-style: disc; }
.staff-page .policy ul li { line-height: 1.8; color: #374151; margin-bottom: 0.3rem; }
.staff-page .policy ul li::marker { color: var(--sl-primary); }
.staff-page .policy strong { color: #2b2b2b; font-weight: 700; }
.staff-page .policy .policy-note { font-size: 0.9rem; color: #6b7280; }
.staff-page .policy .policy-address {
  margin-top: 0.5rem; padding: 1rem 1.2rem; background: #f8fafc;
  border: 1px solid var(--sl-border); border-radius: 12px; line-height: 1.8; color: #374151;
}
.staff-page .policy .policy-address .label { display: block; font-size: 1rem; color: #6b7280; padding: 0; text-align: left; margin-bottom: 0.2rem; }
.staff-page .policy .policy-address .company { font-weight: 700; color: #2b2b2b; }

/* =========================================================
   スペシャルレッスン一覧 (lesson_list) — .staff-page スコープで共有
   ・講師一覧(.teach-box)と同じトーン。カードは .plan-box 系マークアップを
     flex で再構成（旧 style.css の #main .teach-box .plan-box フロート版を置換）。
   ・ボタン(.btn-list)・ポイント(.point)・空きマーク(.aki)・並替(.sort-list)・
     凡例(.comment-box)・ページネーション(.pagination)・パネル(.panel)は
     上の既存定義をそのまま流用する。
   ========================================================= */

/* --- 検索パネル内の導入文・区切り線（#teach-search の説明 / hr） --- */
.staff-page #teach-search .ts-box > p {
  margin: 0 0 0.75rem; font-size: 0.95rem; line-height: 1.8; color: #4b5563;
}
.staff-page #teach-search .ts-box > p b { color: #2b2b2b; font-weight: 700; }
.staff-page #teach-search hr {
  border: 0; border-top: 1px solid var(--sl-border); margin: 0.9rem 0;
}

/* --- レッスンカード本体 --- */
.staff-page .teach-box .plan-box {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem 1.25rem;
}

/* レッスン画像（左・正方形） */
.staff-page .plan-box .plan-data-L {
  flex: 0 0 140px; width: 140px; float: none; margin: 0;
}
.staff-page .plan-box .plan-data-L .photo {
  width: 100%; aspect-ratio: 1 / 1; height: auto;
  border-radius: 12px; overflow: hidden; background: #f3f4f6;
  position: relative; margin: 0;
}
.staff-page .plan-box .plan-data-L .photo a { display: block; width: 100%; height: 100%; }
.staff-page .plan-box .plan-data-L .photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* 空きマーク（レッスン画像の左下にバッジ表示。形状は共通の .aki ::before/::after を流用） */
.staff-page .plan-box .plan-data-L .photo.aki { padding: 0; }
.staff-page .plan-box .plan-data-L .photo.aki::before {
  top: auto !important; bottom: 14px !important; left: 8px !important; z-index: 3;
}
.staff-page .plan-box .plan-data-L .photo.aki::after {
  top: auto !important; bottom: 5px !important; left: 17px !important; z-index: 3;
}

/* タイトル（画像の右・1行目） */
.staff-page .plan-box .plan-data-R1 {
  flex: 1 1 220px; float: none; width: auto; min-width: 0; margin: 0;
}
.staff-page .plan-box .plan-data-R1 .plan-title {
  height: auto; margin: 0; font-size: 20px; font-weight: 700; line-height: 1.4;
  color: var(--sl-primary-hover);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.staff-page .plan-box .plan-data-R1 .plan-title a { color: var(--sl-primary-hover); text-decoration: none; }
.staff-page .plan-box .plan-data-R1 .plan-title a:hover { color: var(--sl-primary); text-decoration: underline; }

/* メタ情報（先生 ＋ ポイント・ボタン）：画像＋タイトルの下に全幅 */
.staff-page .plan-box .plan-data-R2 {
  flex: 1 1 100%; float: none; width: auto; margin: 0.4rem 0 0;
  padding-top: 0.9rem; border-top: 1px dashed var(--sl-border);
}
.staff-page .plan-box .plan-meta .row {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem 1.25rem; margin: 0;
}
.staff-page .plan-box .plan-meta .col-sm-8,
.staff-page .plan-box .plan-meta .col-sm-4 { float: none; width: auto; padding: 0; }
.staff-page .plan-box .plan-meta .col-sm-8 {
  flex: 1 1 260px; min-width: 0; align-items: flex-start; gap: 0.75rem;
}
.staff-page .plan-box .plan-meta .col-sm-4 {
  flex: 0 0 auto; min-width: 160px; display: flex; flex-direction: column; gap: 0.5rem;
}
/* 先生の写真（丸・小） */
.staff-page .plan-box .plan-meta .col-sm-8 > .photo {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%;
  overflow: hidden; background: #f3f4f6; float: none; margin: 0;
}
.staff-page .plan-box .plan-meta .col-sm-8 > .photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.staff-page .plan-box .plan-meta-R {
  flex: 1 1 auto; min-width: 0; padding-left: 0; display: flex; flex-direction: column;
}
.staff-page .plan-box .plan-meta-R .name {
  order: -1;            /* 先生名をコメントより上に表示 */
  margin: 0 0 0.2rem; font-size: 1rem; font-weight: 800; line-height: 1.4;
}
.staff-page .plan-box .plan-meta-R .name a { color: var(--sl-primary-hover); text-decoration: none; }
.staff-page .plan-box .plan-meta-R .name a:hover { color: var(--sl-primary); text-decoration: underline; }
.staff-page .plan-box .plan-comment {
  margin: 0; height: auto; font-size: 0.9rem; line-height: 1.6; color: #4b5563;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

data-R2 .plan-meta-R, #main .teach-box .plan-box .plan-data-R2 .plan-meta-R {
    padding-left: 20px;
}



/* ポイント（既存 .point ピルを左寄せに上書き） */
.staff-page .plan-box .point { margin: 0; align-self: flex-start; }
.staff-page .plan-box .point .num { font-size: 1.15rem; }

/* スマホ */
@media (max-width: 600px) {
  .staff-page .plan-box .plan-data-L { flex-basis: 96px; width: 96px; }
  .staff-page .plan-box .plan-meta .col-sm-4 { min-width: 0; flex-basis: 100%; }
}


/* =========================================================
   スペシャルレッスン詳細 (lesson_detail) 用 追加スタイル
   ここから下が detail.blade.php（レッスン詳細ページ）専用の差分。
   共通パーツ（panel / plan-box基本形 / schedule / cal-table /
   check-list / btn-list基本形 / btn-box / btn-pink / page-title /
   h2.title / .s-title / #teach-comment 等）は上記の .staff-page
   共通スタイルをそのまま共用している。
   ========================================================= */
/* =========================================================
   スペシャルレッスン詳細 (lesson detail) リスタイル
   講師詳細 (staff_detail) と同じデザイントークンを使用。

   ▼ 共用（このファイルには書かない）
     - レイアウト土台 (.main-layout / .main) ・#sidebar → common/common-page.css
     - .staff-page スコープの共通デザイン
       （panel / plan-box(.plan-data-L/R1/R2) / schedule / cal-table /
         check-list / btn-list / btn-box / btn-pink / h1.page-title /
         h2.title / .s-title / #teach-comment / .teach-box）→ staff_list_2.css
     - 時計・予約確認ダイアログ内の調整 → souppot.css

   ▼ このファイル＝レッスン詳細ページ「固有」の差分のみ
     - #lesson-data（メインのレッスン情報カード）
     - .teacher-info（講師写真・名前・料金テーブルのバー）
     - .plan-table（料金・予約締切テーブル）
     - .btn-list-inline（横並びアクションボタン）
     - 余白ユーティリティ (.m15 / .m30 / .indent)
   ========================================================= */

/* ---------------------------------------------------------
   メインのレッスン情報カード（#lesson-data 内の .plan-box）
   staff_list_2.css の .plan-data-L / R1 / R2 単体スタイルは
   .staff-page .plan-box 配下で共用されるが、flex コンテナ指定は
   .teach-box .plan-box に限定されているためここで補う。
   --------------------------------------------------------- */
.staff-page #lesson-data .plan-box {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1.5rem;
}

/* レッスン画像：一覧（140px）よりメインビジュアルとして大きく */
.staff-page #lesson-data .plan-box .plan-data-L {
  flex: 0 0 220px;
  width: 220px;
}

/* 概要（digest）：h2 だがタイトルは h1.page-title にあるため
   本文寄りの見せ方に（共通の 20px 太字・2行クランプを解除） */
.staff-page #lesson-data .plan-data-R1 .plan-title {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sl-text);
  line-height: 1.8;
}

@media (max-width: 600px) {
  .staff-page #lesson-data .plan-box .plan-data-L {
    width: 100%;
  }
  .staff-page #lesson-data .plan-box .plan-data-L .photo {
    aspect-ratio: 16 / 10;
  }
}

/* ---------------------------------------------------------
   講師情報バー（写真・名前・料金テーブル）
   --------------------------------------------------------- */
.staff-page .teacher-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  width: 100%;
  margin: 0;
}
.staff-page .teacher-info .teacher-info-L .photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  margin: 0;
}
.staff-page .teacher-info .teacher-info-L .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.staff-page .teacher-info .teacher-info-C .name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
}
.staff-page .teacher-info .teacher-info-C .name a {
  color: var(--sl-primary-hover);
  text-decoration: none;
}
.staff-page .teacher-info .teacher-info-C .name a:hover {
  color: var(--sl-primary);
  text-decoration: underline;
}
.staff-page .teacher-info .teacher-info-R {
  flex: 1 1 260px;
  min-width: 240px;
}
@media (max-width: 600px) {
  .staff-page .teacher-info .teacher-info-R {
    flex-basis: 100%;
    min-width: 0;
  }
}

/* ---------------------------------------------------------
   料金・予約締切テーブル（講師詳細の .teach-table と同トーン）
   --------------------------------------------------------- */
.staff-page .plan-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}
.staff-page .plan-table tr {
  border-bottom: 1px dashed var(--sl-border);
}
.staff-page .plan-table tr:last-child {
  border-bottom: 0;
}
.staff-page .plan-table th,
.staff-page .plan-table td {
  border: 0 !important;
  padding: 0.45rem 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  vertical-align: middle;
  background: transparent;
  text-align: left;
}
.staff-page .plan-table th {
  width: 9em;
  font-weight: 700;
  color: var(--sl-subtle);
  white-space: nowrap;
}
.staff-page .plan-table .num,
.staff-page .plan-table #spendpoints {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sl-pink);
  margin-right: 2px;
}

/* ---------------------------------------------------------
   横並びアクションボタン（スケジュールを確認／元の画面に戻る）
   共通の .btn-list（縦積み・全幅）を横並び・可変幅に上書き
   --------------------------------------------------------- */
.staff-page .btn-list.btn-list-inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.staff-page .btn-list.btn-list-inline .btn {
  width: auto;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

/* ---------------------------------------------------------
   余白・字下げユーティリティ（本ページで使用する分のみ）
   --------------------------------------------------------- */
.staff-page .btn-list.m15 { margin-top: 1.25rem; }
.staff-page #teach-comment h4.m30 { margin-top: 1.75rem; }
.staff-page #teach-comment .indent { padding-left: 1em; }

/* ---------------------------------------------------------
   「先生の他のレッスン」カードのコンパクト表示（v2）
   レッスン詳細ページ（<div class="staff-page lesson-page" id="main">）限定。
   旧 style.css に #main .teach-box .plan-box 系の ID 付き高詳細度ルール
   （photo 150px/120px固定・plan-data-R1 幅180px・plan-title height 100px・
     .btn-list .btn width:100% 等）が残っているため、
   すべて #main.lesson-page（ID＋クラス）でスコープして確実に上書きする。
   レッスン一覧（lesson_list）の .teach-box には影響しない。
   レイアウト（grid）：
     PC : [画像][タイトル] / [画像][コメント] / [画像][ポイント＋ボタン横並び]
     SP : 同上、ただしメタ行のみ画像の下に全幅で回り込み
   --------------------------------------------------------- */

/* カード余白を圧縮（style.css の padding:15px / staff_list_2 の 1.75rem を上書き） */
#main.lesson-page .teach-box .panel,
#main.lesson-page .teach-box .panel-default {
  margin-bottom: 0.9rem;
}
#main.lesson-page .teach-box .panel-body {
  padding: 0.9rem 1rem;
  gap: 0;
  display: block;   /* .teach-box .panel-body の flex(row) 指定を解除 */
}
@media (min-width: 768px) {
  #main.lesson-page .teach-box .panel-body {
    padding: 1rem 1.25rem;
  }
}

/* flex/float → grid */
#main.lesson-page .teach-box .plan-box {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-areas:
    "img title"
    "img comment"
    "img meta";
  grid-template-rows: auto auto 1fr;
  gap: 0.25rem 0.9rem;
  align-items: start;
  overflow: visible;
}

/* 画像：150px/120px 固定＋float を解除し 96px 列に収める */
#main.lesson-page .teach-box .plan-box .plan-data-L {
  grid-area: img;
  float: none;
  flex: none;
  width: auto;
  margin: 0;
}
#main.lesson-page .teach-box .plan-box .plan-data-L .photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  margin: 0;
}
#main.lesson-page .teach-box .plan-box .plan-data-L .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* タイトル：width 490px/180px・float を解除。20px → 1rem・2行クランプ */
#main.lesson-page .teach-box .plan-box .plan-data-R1 {
  grid-area: title;
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
}
#main.lesson-page .teach-box .plan-box .plan-data-R1 .plan-title {
  height: auto;          /* style.css の height:48px/100px を解除 */
  max-height: none;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* コメント（digest）：.plan-box 直下の .col-sm-8 を右カラムへ */
#main.lesson-page .teach-box .plan-box > .col-sm-8 {
  grid-area: comment;
  float: none;
  width: auto;
  min-width: 0;
  padding: 0;
  margin: 0;
}
#main.lesson-page .teach-box .plan-box > .col-sm-8 .plan-meta-R {
  padding-left: 0;
  display: block;
}
#main.lesson-page .teach-box .plan-box .plan-comment {
  height: auto;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* メタ行（ポイント＋ボタン）：width 490px・float・破線区切りを解除して横一列 */
#main.lesson-page .teach-box .plan-box .plan-data-R2 {
  grid-area: meta;
  align-self: end;
  float: none;
  width: auto;
  margin: 0.35rem 0 0;
  padding-top: 0;
  border-top: 0;
}
#main.lesson-page .teach-box .plan-box .plan-meta .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
#main.lesson-page .teach-box .plan-box .plan-meta .col-sm-4 {
  float: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  width: 100%;
  min-width: 0;
  padding: 0;
}

/* ポイントピルを小型化（text-align:right も解除） */
#main.lesson-page .teach-box .plan-box .plan-data-R2 .point {
  margin: 0;
  text-align: left;
  padding: 0.2rem 0.7rem;
  font-size: 0.85rem;
}
#main.lesson-page .teach-box .plan-box .plan-data-R2 .point .num {
  font-size: 1rem;
}

/* ボタン：縦積み全幅 → 横並び・可変幅・小型
   （style.css の .btn width:100% / span width:6em / li 49% を解除） */
#main.lesson-page .teach-box .plan-box .plan-data-R2 .btn-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
#main.lesson-page .teach-box .plan-box .plan-data-R2 .btn-list li {
  width: auto;
  display: block;
  margin: 0;
}
#main.lesson-page .teach-box .plan-box .plan-data-R2 .btn-list li + li {
  margin-top: 0;
}
#main.lesson-page .teach-box .plan-box .plan-data-R2 .btn-list .btn {
  width: auto;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 8px;
  white-space: nowrap !important;
  line-height: 1.3;
}
#main.lesson-page .teach-box .plan-box .plan-data-R2 .btn-list .btn span {
  width: auto;
  display: inline;
}

/* スマホ（style.css の 680px ブレークポイントに合わせる）：
   画像 72px、メタ行のみ画像の下へ全幅で回り込み */
@media (max-width: 680px) {
  #main.lesson-page .teach-box .plan-box {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "img title"
      "img comment"
      "meta meta";
    grid-template-rows: auto auto auto;
    gap: 0.25rem 0.7rem;
  }
  #main.lesson-page .teach-box .plan-box .plan-data-R2 {
    align-self: auto;
  }
  #main.lesson-page .teach-box .plan-box .plan-data-R1 .plan-title {
    font-size: 0.95rem;
  }
}

/* =========================================================
   新人講師 追加のお知らせ（newface.blade.php）
   .newface-page : このページ専用デザイン。

   ▼ 共用（ここでは再定義しない / common/common-page.css）
     - レイアウト土台 : .main-layout / .main（サイドバー横並び）
     - 中央寄せ列     : .page-col（最大幅は --page-max で指定）
     - ヒーロー       : .page-hero / .page-hero-icon / .page-hero-title / .page-hero-lead
     - 白カード       : .page-card
     - 見出しバー     : .section-head / .section-bar / .section-title
     - ボタン         : .pill-btn（.is-blue）
     - トークン       : .main-layout の --ui-*
   ▼ ここで足すのは「講師カードのグリッド」「NEWバッジ」「注記」だけ。
     旧 jquery.matchHeight は grid の stretch、旧 dotdotdot は
     line-clamp で置き換え済み（JS 不要）。
   ========================================================= */

.newface-page {
  --page-max: 880px;   /* .page-col の最大幅（about と同じ） */
}

/* ===== ヒーロー下の注記バッジ（期間限定の最低単価） ===== */
.newface-page .newface-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 14px auto 0;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ui-amber-soft);
  border: 1px solid #ffe3c2;
  color: #b45309;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}
.newface-page .newface-hero-note svg { flex: 0 0 auto; color: var(--ui-amber); }

/* ===== 追加日ごとのグループ ===== */
/* 先頭グループの見出しは、ヒーロー直下の余白（.section-head 既定の上34px）を詰める */
.newface-page .newface-group:first-of-type > .section-head { margin-top: 0; }

.newface-page .newface-badge {
  margin-left: 2px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ui-coral);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

/* ===== 講師カードのグリッド（旧 .row / matchHeight を置き換え） ===== */
.newface-page .newface-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* カード全体が講師詳細へのリンク（<a>） */
.newface-page .newface-card,
.newface-page .newface-card:link,
.newface-page .newface-card:visited {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  padding: 16px;
  color: var(--ui-text);
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.newface-page .newface-card:hover,
.newface-page .newface-card:active,
.newface-page .newface-card:focus {
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.12);
  border-color: #dceefb;
  transform: translateY(-2px);
  color: var(--ui-text);
  text-decoration: none;
}

/* 写真 */
.newface-page .newface-photo { flex: 0 0 auto; display: block; }
.newface-page .newface-photo img {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--ui-border);
}

/* 本文（名前・プロフィール・詳細ボタン） */
.newface-page .newface-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.newface-page .newface-name {
  display: block;
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--ui-text);
  transition: color 0.15s;
}
.newface-page .newface-card:hover .newface-name { color: var(--ui-blue-hover); }
.newface-page .newface-name .newface-name-suffix {
  margin-left: 2px;
  font-size: 0.82em;
  font-weight: 700;
  color: var(--ui-muted2);
}

/* プロフィール（旧 .dot / dotdotdot → line-clamp で3行に省略。
   .main-layout p{margin:0}(0,1,1) に勝つよう (0,2,0) でスコープ） */
.newface-page .newface-profile {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ui-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* 詳細を見る（シンプルなテキスト表示。カード全体がリンクなので装飾は最小限） */
.newface-page .newface-more {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ui-blue);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
  transition: color 0.15s;
}
.newface-page .newface-more i { font-size: 0.95em; transition: transform 0.15s; }
.newface-page .newface-card:hover .newface-more { color: var(--ui-blue-hover); }
.newface-page .newface-card:hover .newface-more i { transform: translateX(2px); }

/* ===== ご案内（チェックリスト） ===== */
.newface-page .newface-notes { margin-top: 26px; }
.newface-page .newface-note-list { list-style: none; margin: 0; padding: 0; }
.newface-page .newface-note-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ui-muted);
}
.newface-page .newface-note-list li:last-child { margin-bottom: 0; }
.newface-page .newface-note-list li::before {
  content: "\f058";                   /* FontAwesome 6 Free Solid: circle-check */
  font-family: "Font Awesome 6 Free", "FontAwesome";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--ui-blue);
}
.newface-page .newface-note-list b { color: var(--ui-text); font-weight: 700; }

/* ===== 該当なし ===== */
.newface-page .newface-empty { text-align: center; }
.newface-page .newface-empty p {
  margin: 12px 0;
  font-size: 15px;
  color: var(--ui-muted2);
}

/* ===== ボタン行 ===== */
.newface-page .newface-btn-row { margin-top: 26px; text-align: center; }
/* ボタン内の矢印アイコン（fa-arrow-right）を白に。
   style.css 側の .fa への色指定に負けないよう !important で固定 */
.newface-page .newface-btn-row .pill-btn i { color: #fff !important; }
.newface-page .newface-signup { margin-top: 24px; text-align: center; }

/* ===== スマホ ===== */
@media (max-width: 680px) {
  .newface-page .newface-grid { grid-template-columns: 1fr; }
  .newface-page .newface-photo img { width: 76px; height: 76px; }
  .newface-page .newface-hero-note { text-align: left; }
}


/* =========================================================
   日本語講師の動画（movies.blade.php / movies2〜4 も共用可）
   .movies-page : このページ専用デザイン。

   ▼ 共用（ここでは再定義しない / common/common-page.css）
     - レイアウト土台 : .main-layout / .main（サイドバー横並び）
     - 中央寄せ列     : .page-col（最大幅は --page-max で指定）
     - ヒーロー       : .page-hero / .page-hero-icon / .page-hero-title / .page-hero-lead
     - 見出しバー     : .section-head / .section-bar / .section-title
     - ボタン         : .pill-btn（.is-blue）
     - トークン       : .main-layout の --ui-*
   ▼ ここで足すのは「ページャ」「動画カードのグリッド」「講師リンク」だけ。
   ========================================================= */

.movies-page {
  --page-max: 880px;   /* .page-col の最大幅（about と同じ） */
}

/* ===== ヒーロー内の注記（動画は一部の講師のみ） ===== */
.movies-page .movies-hero-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ui-faint);
}

/* ===== ページャ（1 2 3 4 →） ===== */
.movies-page .movies-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 2px 0 24px;
}
.movies-page .movies-pager-item,
.movies-page a.movies-pager-item:link,
.movies-page a.movies-pager-item:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--ui-border2);
  color: var(--ui-muted);
  transition: background .15s, color .15s, border-color .15s;
}
.movies-page a.movies-pager-item:hover,
.movies-page a.movies-pager-item:focus {
  background: var(--ui-blue-soft);
  border-color: var(--ui-blue);
  color: var(--ui-blue-hover);
  text-decoration: none;
}
.movies-page .movies-pager-item.is-current {
  background: var(--ui-blue);
  border-color: var(--ui-blue);
  color: #fff;
  cursor: default;
}
/* 矢印アイコンは親の色に追従（style.css の .fa 色指定に負けないよう固定） */
.movies-page .movies-pager-item i { color: inherit !important; font-size: 14px; }

/* ===== 動画カードのグリッド ===== */
.movies-page .movies-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 6px;
}
.movies-page .movie-card {
  background: #fff;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  overflow: hidden;                    /* 角丸から iframe がはみ出さないように */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.movies-page .movie-card:hover {
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.14);
  border-color: #dceefb;
  transform: translateY(-2px);
}

/* 16:9 の動画枠（staff_list の .user-movie と同じ aspect-ratio 方式） */
.movies-page .movie-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;                 /* 読み込み中の下地 */
}
.movies-page .movie-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 講師名リンク（カード下部） */
.movies-page a.movie-teacher,
.movies-page a.movie-teacher:link,
.movies-page a.movie-teacher:visited {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  text-decoration: none;
  color: var(--ui-text);
}
.movies-page a.movie-teacher:hover,
.movies-page a.movie-teacher:focus { text-decoration: none; }
.movies-page .movie-teacher-name {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.4;
}
.movies-page .movie-teacher-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ui-faint);
  transition: color .15s;
}
.movies-page a.movie-teacher:hover .movie-teacher-cta { color: var(--ui-blue-hover); }
.movies-page .movie-teacher-cta i { color: inherit !important; font-size: 11px; }

/* ===== レッスンサンプル（単体・中央寄せ） ===== */
.movies-page .movies-note {
  margin: 0 0 14px;                    /* .main-layout p{margin:0} に勝つ (0,2,0) */
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ui-muted);
}
.movies-page .movie-card.is-sample {
  max-width: 640px;
  margin: 0 auto;
}

/* ===== ボタン行・無料登録 ===== */
.movies-page .movies-btn-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
/* ボタン内の矢印アイコンの色。style.css 側の .fa への色指定に負けないよう !important で固定
   （青ボタンは白、ghost ボタンは文字色に追従） */
.movies-page .movies-btn-row .pill-btn.is-blue i { color: #fff !important; }
.movies-page .movies-btn-row .pill-btn.is-ghost i { color: inherit !important; }
.movies-page .movies-signup { margin-top: 24px; text-align: center; }

/* ===== スマホ ===== */
@media (max-width: 680px) {
  .movies-page .movies-grid { grid-template-columns: 1fr; }
  .movies-page .movies-pager-item,
  .movies-page a.movies-pager-item:link,
  .movies-page a.movies-pager-item:visited { min-width: 38px; height: 38px; }
}
