.seminar-box{
    background:#f5f5f5;
    padding:2% 2% 1px 2% ;
}
.seminar-item{
    background:#fff;
    padding:3%;
    margin-bottom: 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border:1px solid #fff;
}
/* .seminar-item:nth-child(even){
    background:#f3f3f3;
} */
.seminar-item:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    border:1px solid var(--colorLightBase);
}

.seminar-item__link{
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;

}

.seminar-item__info{
    width: 70%;
    padding-right: 3%;   
}
.seminar-item__author{
    width: 248px;
    background: url(../img/common/ico-arrow-right.svg) no-repeat 99% center;
    background-size: 9px 16px;
    display: flex;
    align-items: center;
    padding-right: 20px;
    transition: all 0.3s ease;
}
.seminar-item:hover .seminar-item__author {
    background-position: 100% center;
}

.seminar-item__author__info{
    display: flex;
    flex-direction: column;
    margin-left: 20px;
}

@media screen and (max-width: 500px) {
    .seminar-item__info{
        width: 85%;
    }
    .seminar-item__author {
        width: 220px;
    }
    .seminar-item__author__info{
        margin-left: 10px;
    }
   
}


.seminar-item__company{
    font-size: clamp(11px, 0.9vw, 12px);
    line-height: 1.4;
}
.seminar-item__person{
    font-size: clamp(11px, 0.9vw, 12px);
    line-height: 1.4;
}


.seminar-item__date{
    background-image: var(--tenant-icon-calendar, url("../img/common/icon-calendar.svg"));
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 15px 18px;
    font-weight: bold;
    color: var(--colorLightBase);
    padding-left: 23px;
    margin-right: 0px;
    font-size: clamp(16px, 2vw, 20px);
}
.seminar-item__week{
    font-weight: bold;
    color: var(--colorLightBase);
    margin-right: 10px;
    font-size: clamp(16px, 2vw, 20px);
}
.seminar-item__time{
    background-image: var(--tenant-icon-time, url("../img/common/icon-time.svg"));
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 17px 17px;
    font-weight: bold;
    color: var(--colorLightBase);
    padding-left: 20px;
    font-size: clamp(16px, 2vw, 20px);
}

.seminar-item__info-title{
    font-weight: bold;
    display: block;
    line-height: 1.6;
    padding-top: 10px;
    font-size: clamp(16px, 2vw, 18px);
}


/* benefit */
.type-benefit{
    .seminar-item:hover .seminar-item__info{
        background-position: 100% center;
    }
    /* .seminar-item{
        padding:1%;
    } */
    .seminar-item__project-img{
        border-radius: 5px;
    }
    .seminar-item__info-title{
        font-size: clamp(16px, 2vw, 20px);
        padding-top: 0;
    }
    
    .seminar-item__info{
        width: 76%;
    }
    .seminar-item__link{
        cursor: pointer;
    }
    .seminar-item__link.type-blank{
        cursor:default;
        color:#aaa;
        pointer-events: none;
        .seminar-item__info{
            background:none;
        }
        .seminar-item__author{
            background-image: none;
            opacity: 0.6;
        }

    }
    .seminar-item__author{
        width:18%;
        padding-top: 30px;
        /* background:none;
        display: flex;
        align-items: center;
        padding-right: 20px; */
    }   
}

.seminar-box.type-benefit .seminar-item{
    padding: 0;
}
.seminar-box.type-benefit .seminar-item__link {
    display: flex;
    align-items: center;
    padding: 20px;
}

.seminar-box.type-benefit .seminar-item__info {
    flex: 1;
}

.seminar-box.type-benefit .seminar-item__author {
    width: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 30px 0 0;
}

.seminar-box.type-benefit .seminar-item__project {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seminar-box.type-benefit .seminar-item__project-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* YouTube thumbnail styles */
.youtube-thumbnail-container {
    margin-top: 10px;
}

.youtube-thumbnail-link {
    display: flex;
    flex-direction: column;
    max-width: 260px;
    text-decoration: none;
    transition: all 0.3s ease;
    @media screen and (max-width: 600px) {
        .youtube-thumbnail-container {
            margin-bottom: 20px;
        }
    }
}

.youtube-thumbnail-link:hover {
    opacity: 0.85;
}

.youtube-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.youtube-url {
    font-size: clamp(12px, 1.15vw, 14px);
    color: var(--colorLightBase);
    word-break: break-all;
    line-height: 1.4;
    text-align: center;
    padding-top: 5px;
}

@media screen and (max-width: 500px) {
    .youtube-thumbnail-link {
        max-width: 100%;
    }
}

.youtube-thumbnail-wrapper {
    position: relative;
    width: 100%;
}

.youtube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.youtube-play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 20px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 5px;
}

@media screen and (max-width: 500px) {
    .youtube-play-button {
        width: 40px;
        height: 40px;
    }
    
    .youtube-play-button::after {
        border-width: 8px 0 8px 16px;
        margin-left: 4px;
    }
}

/* セミナー詳細 2カラム構造 (cpriver) */
.seminar-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
}

.seminar-main {
  flex: 1 1 auto;
  min-width: 0;
}

.seminar-sidebar {
  flex: 0 0 29%;
  width: 29%;
  box-sizing: border-box;
  padding: 0 12px 24px;
  align-self: flex-start;
  font-family: var(--font-noto-sans-jp, 'Noto Sans JP'), sans-serif;
}

.seminar-sidebar__booking {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(11, 45, 122, 0.14);
  overflow: hidden;
}

/* グローバルの .main__wrapper { overflow: hidden } はスクロールコンテナを作り
   子孫の position: sticky を無効化する。セミナー詳細ページに限り clip へ
   上書きしてスティッキーを機能させる (cpriver tenant.css と同手法)。 */
.main__wrapper:has(.seminar-sidebar--sticky) {
  overflow: clip;
}

.seminar-sidebar--sticky {
  position: sticky;
  top: 96px;
  overflow: visible;
}

/* ヘッダー: 紺グラデーション */
.seminar-sidebar__header {
  background: linear-gradient(135deg, #1F4DBF 0%, #0B2D7A 100%);
  color: #fff;
  padding: 22px 24px 18px;
  text-align: center;
}

.seminar-sidebar__eyebrow {
  display: inline-block;
  font-family: var(--font-inter, 'Inter'), var(--font-noto-sans-jp, 'Noto Sans JP'), sans-serif;
  font-size: clamp(10px, 0.9vw, 11px);
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 8px;
}

.seminar-sidebar__title {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: #fff;
}

.seminar-sidebar__inner {
  padding: 22px 24px 26px;
  /* 内容が少ない時は中身の高さに収まり、溢れた時だけスクロールさせる。
     height 固定にすると要素が少なくても画面いっぱいの高さになる。 */
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 45, 122, 0.25) transparent;
}

.seminar-sidebar__inner::-webkit-scrollbar { width: 6px; }
.seminar-sidebar__inner::-webkit-scrollbar-track { background: transparent; }
.seminar-sidebar__inner::-webkit-scrollbar-thumb {
  background: rgba(11, 45, 122, 0.25);
  border-radius: 999px;
}

/* セミナータイトル */
.seminar-sidebar__seminar-title {
  font-size: clamp(12.5px, 1.15vw, 14.5px);
  font-weight: 800;
  color: #0B2D7A;
  line-height: 1.55;
  text-align: center;
  margin: 0 0 18px;
  padding: 14px 12px;
  background: linear-gradient(135deg, #F7FAFE 0%, #ECF2FB 100%);
  border-radius: 12px;
  border-left: 3px solid #1F4DBF;
  border-right: 3px solid #1F4DBF;
  font-feature-settings: 'palt';
  word-break: break-word;
}

/* 開催日時 */
.seminar-sidebar__date {
  border-bottom: 1px solid rgba(11, 45, 122, 0.1);
  padding-bottom: 18px;
  margin-bottom: 18px;
  text-align: center;
}

.seminar-sidebar__date-label {
  display: inline-block;
  font-size: clamp(9.5px, 0.9vw, 10.5px);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #1F4DBF;
  background: #EFF5FE;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  box-shadow: inset 0 0 0 1px rgba(31, 77, 191, 0.12);
}

.seminar-sidebar__date-value {
  display: block;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 800;
  color: #0B2D7A;
  line-height: 1.5;
  font-feature-settings: 'palt';
}

/* 登壇者 */
.seminar-sidebar__speakers {
  margin-bottom: 22px;
}

.seminar-sidebar__speakers-label {
  display: block;
  font-size: clamp(9.5px, 0.9vw, 10.5px);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #1F4DBF;
  margin-bottom: 10px;
  text-align: center;
}

.seminar-sidebar__speaker {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #F7FAFE 0%, #ECF2FB 100%);
  border-radius: 12px;
  margin-bottom: 8px;
}

.seminar-sidebar__speaker:last-child {
  margin-bottom: 0;
}

.seminar-sidebar__speaker-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #E5EAF1;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(31, 77, 191, 0.18);
}

.seminar-sidebar__speaker-info {
  font-size: clamp(11px, 0.9vw, 12px);
  line-height: 1.5;
  min-width: 0;
}

.seminar-sidebar__speaker-company {
  color: #5b6675;
  font-size: clamp(10px, 0.9vw, 11px);
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
}

.seminar-sidebar__speaker-name {
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 700;
  color: #0B2D7A;
  white-space: normal;
  overflow-wrap: anywhere;
}

.seminar-sidebar__speaker-introduction {
  margin: 6px 0 0;
  color: #4b5563;
  font-size: clamp(10.5px, 0.82vw, 11.5px);
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* 講師プロフィール（左カラム） */
.seminar-speaker-profile,
.seminar-overview {
  margin-top: 42px;
}

.seminar-speaker-profile__list {
  display: grid;
  gap: 24px;
}

.seminar-speaker-profile__item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: #f7faff;
  border: 1px solid rgba(31, 77, 191, 0.12);
  border-radius: 16px;
}

.seminar-speaker-profile__image {
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
  border-radius: 14px;
  object-fit: cover;
  background: #e5eaf1;
}

.seminar-speaker-profile__body {
  min-width: 0;
}

.seminar-speaker-profile__company {
  margin: 0 0 4px;
  color: #5b6675;
  font-size: 13px;
}

.seminar-speaker-profile__name {
  margin: 0;
  color: #0b2d7a;
  font-size: 19px;
  line-height: 1.5;
}

.seminar-speaker-profile__introduction {
  margin: 14px 0 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-line;
}

@media (max-width: 600px) {
  .seminar-speaker-profile__item {
    gap: 16px;
    padding: 18px;
  }

  .seminar-speaker-profile__image {
    width: 80px;
    height: 80px;
    flex-basis: 80px;
  }
}

/* CTA */
.seminar-sidebar__cta {
  margin-top: 4px;
}

.seminar-sidebar__cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #fff;
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-sizing: border-box;
}

.seminar-sidebar__cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.42);
  opacity: 1;
}

.seminar-sidebar__cta-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #DC2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(11px, 0.9vw, 12px);
  font-weight: 800;
  flex-shrink: 0;
}

/* 終了表示は予約ボタン(.seminar-sidebar__cta-button)と同じ形状・サイズに揃え、
   「ボタンが無効化された状態」だと一目で分かるようにする。 */
.seminar-sidebar__ended {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  color: #4b5563;
  font-weight: 800;
  background: #EDEFF3;
  border: 1px solid #D3D8E0;
  padding: 16px 18px;
  border-radius: 999px;
  margin: 0;
  font-size: clamp(12px, 1.15vw, 14px);
}

.seminar-sidebar__ended::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) center / 9px 2px no-repeat;
  flex-shrink: 0;
  opacity: 0.85;
}

/* 記事末尾の目立つ予約バンド */
.seminar-book-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  margin-top: 48px;
  padding: clamp(28px, 4vw, 52px) 24px;
  background: linear-gradient(135deg, #FFF5F5 0%, #FDECEC 100%);
  border: 1px solid #F6D5D5;
  border-radius: 16px;
}
.seminar-book-band__lead {
  margin: 0;
  font-size: clamp(15px, 1.7vw, 21px);
  font-weight: 800;
  color: #1F2A37;
}
.seminar-book-band__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 48px;
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #fff;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.34);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.seminar-book-band__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.44);
}
.seminar-book-band__arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: #DC2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
/* 終了済みはバンド全体を無彩色にして、予約を促すトーン(赤系)と区別する */
.seminar-book-band--ended {
  background: linear-gradient(135deg, #F7F8FA 0%, #EFF1F5 100%);
  border-color: #DDE1E8;
}

.seminar-book-band__ended {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 16px 32px;
  color: #4b5563;
  font-weight: 800;
  font-size: clamp(13px, 1.2vw, 16px);
  background: #EDEFF3;
  border: 1px solid #D3D8E0;
  border-radius: 999px;
}

.seminar-book-band__ended::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat;
  flex-shrink: 0;
  opacity: 0.85;
}

/* セミナー一覧(.seminar-index)・セミナー詳細(.seminar-content)では左サイドバーを非表示にする。
   以前は <head> の inline script が付ける body.seminar_detail クラスに依存していたが、
   ソフト遷移(Next.js Link)で再実行されず「出たり隠れたり」し、一覧では一瞬チラついたため、
   実際に描画される要素を :has() でルート正確に判定する(SSR HTMLへ初回描画前に適用される)。 */
.flex-container:has(.seminar-index) > .aside,
.flex-container:has(.seminar-content) > .aside {
  display: none;
}

.flex-container:has(.seminar-index) > .primary-content,
.flex-container:has(.seminar-content) > .primary-content {
  width: 100%;
  padding-left: 0;
}

.seminar-sidebar__latest {
  margin-top: 34px;
  padding: 20px 24px 24px;
  border: 1px solid rgba(11, 45, 122, 0.1);
  border-radius: 18px;
  background: #FAFCFF;
  box-shadow: 0 10px 24px rgba(11, 45, 122, 0.08);
}

.seminar-sidebar__latest-title {
  margin: 0 0 14px;
  color: #0B2D7A;
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 800;
  line-height: 1.45;
}

.seminar-sidebar__latest-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seminar-sidebar__latest-item {
  margin: 0;
}

.seminar-sidebar__latest-link {
  display: block;
  padding: 12px 13px;
  color: #1f2937;
  background: #fff;
  border: 1px solid rgba(31, 77, 191, 0.14);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.seminar-sidebar__latest-link:hover {
  border-color: rgba(31, 77, 191, 0.36);
  box-shadow: 0 8px 18px rgba(11, 45, 122, 0.08);
  transform: translateY(-1px);
  opacity: 1;
}

.seminar-sidebar__latest-date {
  display: block;
  margin-bottom: 5px;
  color: #1F4DBF;
  font-size: clamp(10.5px, 0.9vw, 12px);
  font-weight: 800;
  line-height: 1.45;
}

.seminar-sidebar__latest-name {
  display: block;
  color: #0B2D7A;
  font-size: clamp(11.5px, 0.95vw, 13px);
  font-weight: 700;
  line-height: 1.55;
}

.seminar-sidebar__list-link-wrap {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(11, 45, 122, 0.1);
}

.seminar-sidebar__list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  color: #0B2D7A;
  background: #fff;
  border: 1px solid rgba(31, 77, 191, 0.22);
  border-radius: 12px;
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 800;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.seminar-sidebar__list-link:hover {
  background: #F7FAFE;
  border-color: rgba(31, 77, 191, 0.42);
  transform: translateY(-1px);
  opacity: 1;
}

.seminar-sidebar__list-link-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #EFF5FE;
  color: #1F4DBF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(11px, 0.9vw, 12px);
  font-weight: 800;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .seminar-content {
    flex-direction: column;
    gap: 24px;
  }
  .seminar-main {
    width: 100%;
  }
  .seminar-sidebar {
    flex: 1 1 auto;
    width: 100%;
    order: -1;
  }
  .seminar-sidebar--sticky {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .seminar-sidebar__inner {
    height: auto;
    max-height: none;
    overflow: visible;
  }
}
