/* ============================================================
   kiji (動画詳細ページ) スタイル
   ============================================================ */

/* ===== PAGE WRAPPER ===== */
.kiji-page {
  background: linear-gradient(180deg, #EBF4FF 0%, var(--bg) 180px);
  min-height: 100vh;
  padding-bottom: 80px;
}
.kiji-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 28px 0;
}
.kiji-inner ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 1em;
}
/* ===== パンくず ===== */
.kiji-bread {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.kiji-bread a {
  color: var(--sky);
  text-decoration: none;
}
.kiji-bread a:hover { text-decoration: underline; }
.kiji-bread-sep { color: var(--text-3); }

/* ===== タイトル・講師 ===== */
.kiji-header {
  margin-bottom: 24px;
}
.kiji-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 14px;
}
/* 講師チップの並び（講師は最大3人。人数ぶんチップが並ぶ） */
.kiji-instructors {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.kiji-instructors-label {
  font-size: 13px;
  color: var(--text-3);
}
.kiji-instructor {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: var(--sh-sm);
}
.kiji-instructor-icon  { font-size: 14px; }
.kiji-instructor-name  { color: var(--text); }
/* 講師チップが講師ページへのリンクのとき */
a.kiji-instructor { text-decoration: none; cursor: pointer; }
a.kiji-instructor:hover {
  border-color: var(--sky-mid);
  background: var(--sky-lt);
  transform: translateY(-1px);
}
a.kiji-instructor:hover .kiji-instructor-name { color: var(--sky); }
.kiji-instructor-arrow { color: var(--sky); font-weight: 700; line-height: 1; }

/* ===== 動画埋め込み（16:9レスポンシブ） ===== */
.kiji-video-wrap {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--sh-lg);
  margin-bottom: 36px;
}
.kiji-video-wrap > * {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* ===== 詳細説明 ===== */
.kiji-section {
  margin-bottom: 36px;
}
.kiji-section-head {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.kiji-section-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--sky-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.kiji-contents {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 32px;
  box-shadow: var(--sh-sm);
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-2);
}
.kiji-contents p  { margin-bottom: 1em; }
.kiji-contents p:last-child { margin-bottom: 0; }

/* ===== 講師のご紹介（動画詳細の下のカード） ===== */
/* 「講師のご紹介」カードの並び（講師は最大3人。人数ぶん縦に積む） */
.kiji-inst-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kiji-inst-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 22px;
  box-shadow: var(--sh-sm);
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.kiji-inst-card:hover {
  border-color: var(--sky-mid);
  box-shadow: var(--sh-lg);
  transform: translateY(-2px);
}
.kiji-inst-card__photo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sky-lt);
}
.kiji-inst-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kiji-inst-card__photo--noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--sky);
}
.kiji-inst-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.kiji-inst-card__name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.kiji-inst-card__field {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.kiji-inst-card__arrow {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--sky);
  line-height: 1;
}
@media (max-width: 640px) {
  .kiji-inst-card { padding: 16px; gap: 14px; }
  .kiji-inst-card__photo { flex-basis: 56px; width: 56px; height: 56px; }
}

/* ===== CTAボタン ===== */
.kiji-cta-wrap {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 8px;
}
.btn-kiji-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--sky), var(--mint));
  color: white;
  border-radius: 28px;
  text-decoration: none;
  padding: 15px 32px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(91,155,213,.35);
  transition: all .25s;
}
.btn-kiji-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(91,155,213,.45);
  color: white;
}
.btn-kiji-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--sky);
  border: 2px solid var(--sky-mid);
  border-radius: 28px;
  text-decoration: none;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--sh-sm);
  transition: all .25s;
}
.btn-kiji-soft:hover {
  background: var(--sky-lt);
  transform: translateY(-2px);
}

/* ===== スマートフォン対応 ===== */
@media (max-width: 640px) {
  .kiji-inner { padding: 20px 16px 0; }
  .kiji-title { font-size: 20px; }
  .kiji-contents { padding: 20px; font-size: 14px; }
  .kiji-cta-wrap { flex-direction: column; }
  .btn-kiji-primary { order: -1; }
  .btn-kiji-primary,
  .btn-kiji-soft { width: 100%; justify-content: center; }
}

/* ============================================================
   講師詳細（instructor）：講師名（よみがな）＋ 写真 ＋ 経歴
   ============================================================ */
.inst-header { margin-bottom: 28px; }
.inst-yomi {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-bottom: 4px;
}
.inst-name { margin-bottom: 0; }
/* 専門（item_img02_txt）バッジ */
.inst-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 16px 6px 6px;
  background: var(--sky-lt);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}
.inst-field__label {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--sky);
  border-radius: 14px;
  padding: 3px 10px;
  letter-spacing: .06em;
}
.inst-field__value { color: var(--text-2); }

/* 写真（左）＋ 経歴（右）の2カラム */
.inst-profile {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 36px;
}
.inst-photo {
  flex: 0 0 260px;
  width: 260px;
}
.inst-photo img {
  display: block;
  width: 100%;
  height: auto;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}
.inst-bio {
  flex: 1 1 0;
  min-width: 0;
}

/* スマホは縦積み（写真→経歴） */
@media (max-width: 640px) {
  .inst-profile { flex-direction: column; gap: 20px; }
  .inst-photo {
    flex-basis: auto;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ===== この講師の動画一覧 ===== */
.inst-videos { margin-bottom: 36px; }
.inst-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.inst-video-card {
  display: block;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  text-decoration: none;
  color: var(--text);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.inst-video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
  border-color: var(--sky-mid);
}
.inst-video-thumb {
  position: relative;
  padding-top: 56.25%;     /* 16:9 */
  background: var(--sky-lt);
  overflow: hidden;
}
.inst-video-thumb img,
.inst-video-thumb .inst-video-noimg,
.inst-video-play {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.inst-video-thumb img { object-fit: cover; }
.inst-video-thumb .inst-video-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--sky);
}
.inst-video-play {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  opacity: .9;
  pointer-events: none;
}
.inst-video-title {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}
.inst-videos-empty {
  background: white;
  border: 1.5px dashed var(--border);
  border-radius: var(--r-md);
  padding: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
}
