/**
 * Open Campus dedicated sections
 */

/* ==========================================================================
   Open Campus ページ専用セクション Figma PC 972-8637
   無料体験 / 開催内容 / 年間スケジュール
   ========================================================================== */

/* --- 無料体験クラス 972-8641 --- */
.senmon-school-section-open-campus-trial {
  padding: 120px 0;
  box-sizing: border-box;
  background-color: var(--senmon-color-white);
}

.senmon-school-section-open-campus-trial__inner {
  max-width: var(--senmon-content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.senmon-school-section-open-campus-trial__header {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}

.senmon-school-section-open-campus-trial__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.senmon-school-section-open-campus-trial__badge-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 100px;
  background-color: var(--senmon-color-primary);
}

.senmon-school-section-open-campus-trial__badge-label {
  font-family: var(--senmon-font-badge);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--senmon-color-primary);
}

.senmon-school-section-open-campus-trial__title {
  margin: 0;
  font-family: var(--senmon-font-nav);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--senmon-color-primary);
}

.senmon-school-section-open-campus-trial__image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 960 / 300;
  max-height: 300px;
}

.senmon-school-section-open-campus-trial__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.senmon-school-section-open-campus-trial__lead {
  margin: 0;
  font-family: var(--senmon-font-hero);
  font-weight: 500;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: var(--senmon-color-gray-90);
}

@media (max-width: 959px) {
  .senmon-school-section-open-campus-trial {
    padding: 40px 0;
  }

  .senmon-school-section-open-campus-trial__inner {
    padding: 0 var(--senmon-page-gutter-x);
    gap: 8px;
  }

  .senmon-school-section-open-campus-trial__badge-dot {
    width: 4px;
    height: 4px;
  }

  .senmon-school-section-open-campus-trial__badge-label {
    font-size: 14px;
  }

  .senmon-school-section-open-campus-trial__title {
    font-size: 32px;
  }

  .senmon-school-section-open-campus-trial__image {
    height: 200px;
    aspect-ratio: unset;
  }

  .senmon-school-section-open-campus-trial__lead {
    font-size: 14px;
  }
}

@media (max-width: 600px) { 
  .senmon-school-section-open-campus-trial__title {
    font-size: 26px;
    letter-spacing: 0.1em;
  }
}


/* --- 開催内容（Event Details）980-11438 --- */
/* TB・PC: カードを Grid にし 1 行目を「日付 | 予約ボタン」、2 行目を本文。SP は縦 flex のまま（ボタンは DOM 最後でカード最下段） */
.senmon-school-section-open-campus-events {
  position: relative;
  padding: 80px 0;
  box-sizing: border-box;

  background-image:
    url("../../images/common/方眼背景.svg"),
    var(--senmon-courses-section-gradient);

  background-size: 60px 60px, cover;
  background-repeat: repeat, no-repeat;
}

.senmon-school-section-open-campus-events__inner {
  max-width: var(--senmon-content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.senmon-school-section-open-campus-events__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.senmon-school-section-open-campus-events__badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.senmon-school-section-open-campus-events__badge-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 100px;
  background-color: var(--senmon-color-primary);
}

.senmon-school-section-open-campus-events__badge-label {
  font-family: var(--senmon-font-badge);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--senmon-color-primary);
}

.senmon-school-section-open-campus-events__title {
  margin: 0;
  font-family: var(--senmon-font-nav);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--senmon-color-primary);
}

.senmon-school-section-open-campus-events__cards {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.senmon-school-section-open-campus-events__card {
  text-decoration: none;
  gap: 16px;
  padding: 24px;
  border: 2px solid var(--senmon-color-primary);
  border-radius: 16px;
  background-color: var(--senmon-color-white);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 16px;
  align-items: end;
  position: relative;
  scroll-margin-top: 120px;
}

.senmon-school-section-open-campus-events__card > * {
  position: relative;
  z-index: 1;
}

.senmon-school-section-open-campus-events__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--senmon-career-card-hover-bg);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--senmon-transition);
  z-index: 0;
  pointer-events: none;
}

.senmon-school-section-open-campus-events__card:hover::before,
.senmon-school-section-open-campus-events__card:focus-visible::before {
  opacity: 1;
}

/* #oc-event-* で遷移した直後、:target の <a> に :focus-visible が付くことがありホバーと同じ見た目になる。通常表示のままにし、ホバー時のみオーバーレイを出す */
.senmon-school-section-open-campus-events__card:target::before {
  opacity: 0;
}

.senmon-school-section-open-campus-events__card:target:hover::before,
.senmon-school-section-open-campus-events__card:target:focus-visible:hover::before {
  opacity: 1;
}

.senmon-school-section-open-campus-events__card:target {
  outline: none;
}

.senmon-school-section-open-campus-events__card-header {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.senmon-school-section-open-campus-events__card-date {
  margin: 0;
  font-family: var(--senmon-font-hero);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--senmon-color-primary);
  min-width: 0;
}

.senmon-school-section-open-campus-events__card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px 24px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: capitalize;
  color: var(--senmon-color-primary);
  background-color: transparent;
  border: 1px solid var(--senmon-color-primary);
  border-radius: 100px;
  box-sizing: border-box;
  flex-shrink: 0;
  max-width: 100%;
  transition:
    color var(--senmon-transition),
    background-color var(--senmon-transition),
    border-color var(--senmon-transition),
    box-shadow var(--senmon-transition);

  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: end;
}


.senmon-school-section-open-campus-events__card:hover 
.senmon-school-section-open-campus-events__card-btn {
  color: var(--senmon-color-white);
  background-color: var(--senmon-color-primary);
  border-color: var(--senmon-color-primary);
}

.senmon-school-section-open-campus-events__card-btn-text {
  font-family: var(--senmon-font-nav);
  font-weight: inherit;
  min-width: 0;
  text-align: center;
}

.senmon-school-section-open-campus-events__card-btn-icon {
  flex-shrink: 0;
  width: 6px;
  height: 9px;
  color: currentColor;
}

.senmon-school-section-open-campus-events__card-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  grid-column: 1 / -1;
  grid-row: 2;
}

/* PC・画像あり: 予約ボタンはカード Grid の 1 行目右上。本文は画像の右列のみ（Grid） */
.senmon-school-section-open-campus-events__card--has-image .senmon-school-section-open-campus-events__card-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-rows: auto;
  column-gap: 24px;
  align-items: start;
}

.senmon-school-section-open-campus-events__card--has-image .senmon-school-section-open-campus-events__card-image {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.senmon-school-section-open-campus-events__card--has-image .senmon-school-section-open-campus-events__card-content {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

/* PC・画像なし: 画像用 DOM を出さない前提で本文・リストを左から詰める */
.senmon-school-section-open-campus-events__card--no-image .senmon-school-section-open-campus-events__card-content {
  flex: 0 1 auto;
  width: 100%;
  align-self: stretch;
  text-align: left;
}

.senmon-school-section-open-campus-events__card-image {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 0;
  overflow: hidden;
  background-color: var(--senmon-color-gray-30);
}

.senmon-school-section-open-campus-events__card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.senmon-school-section-open-campus-events__card-content {
  flex: 1;
  min-width: 0;
  font-family: var(--senmon-font-hero);
  font-weight: 500;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: var(--senmon-color-gray-90);
}

.senmon-school-section-open-campus-events__card-content > p:first-child {
  margin-top: 0;
}

.senmon-school-section-open-campus-events__card-content p {
  margin: 0 0 16px;
  line-height: 2;
}

.senmon-school-section-open-campus-events__card-content p:last-child {
  margin-bottom: 0;
}

.senmon-school-section-open-campus-events__card-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.senmon-school-section-open-campus-events__card-content li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}

.senmon-school-section-open-campus-events__card-content li strong {
  flex: 0 0 140px;
  max-width: 140px;
  box-sizing: border-box;
  padding: 4px 0;
  border: 1px solid var(--senmon-color-primary);
  font-family: var(--senmon-font-hero);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--senmon-color-primary);
  text-align: center;
  background-color: var(--senmon-color-white);
}

.senmon-school-section-open-campus-events__card-content li {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.senmon-school-section-open-campus-events__empty {
  margin: 0;
  padding: 24px;
  text-align: center;
  font-family: var(--senmon-font-hero);
  font-size: 24px;
  color: var(--senmon-color-primary);
  border-radius: 8px;
  background-color: var(--senmon-color-white);
  font-weight: 500;
}

@media (max-width: 959px) {
  .senmon-school-section-open-campus-events {
    padding: 40px 0;
  }

  .senmon-school-section-open-campus-events__inner {
    padding: 0 var(--senmon-page-gutter-x);
    gap: 24px;
  }

  .senmon-school-section-open-campus-events__badge-dot {
    width: 4px;
    height: 4px;
  }

  .senmon-school-section-open-campus-events__badge-label {
    font-size: 14px;
  }

  .senmon-school-section-open-campus-events__title {
    font-size: 32px;
  }

  .senmon-school-section-open-campus-events__cards {
    gap: 24px;
  } 

  .senmon-school-section-open-campus-events__empty {
    font-size: 18px;
  }
}

/* SP のみ: ボタンはカード最下段・全幅＋塗り（601px 以上は article Grid で右上） */
@media (max-width: 600px) {
  .senmon-school-section-open-campus-events__title {
    font-size: 26px;
  }

  .senmon-school-section-open-campus-events__card {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .senmon-school-section-open-campus-events__card-date {
    font-size: 24px;
    text-align: center;
  }

  .senmon-school-section-open-campus-events__card-btn {
    display: inline-flex;
    width: 100%;
    margin-top: auto;
  }

  .senmon-school-section-open-campus-events__card--has-image .senmon-school-section-open-campus-events__card-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .senmon-school-section-open-campus-events__card--no-image .senmon-school-section-open-campus-events__card-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .senmon-school-section-open-campus-events__card-image {
    width: 140px;
    height: 140px;
    margin-left: auto;
    margin-right: auto;
  }

  .senmon-school-section-open-campus-events__card-content p {
    margin: 0 0 8px;
  }

  .senmon-school-section-open-campus-events__card-btn {
    width: 100%;
    max-width: 100%;
    flex-shrink: 1;
    min-width: 0;
    color: var(--senmon-color-white);
    background-color: var(--senmon-color-primary);
    border-color: var(--senmon-color-primary);
    justify-content: space-between;
  }
/* 
  .senmon-school-section-open-campus-events__card:hover .senmon-school-section-open-campus-events__card-btn,
  .senmon-school-section-open-campus-events__card:focus-visible .senmon-school-section-open-campus-events__card-btn {
    color: var(--senmon-color-primary);
    background-color: var(--senmon-color-white);
  } */

  .senmon-school-section-open-campus-events__card-content li {
    flex-wrap: wrap;
  }

  .senmon-school-section-open-campus-events__card-content li strong {
    flex: 1 1 100%;
    max-width: none;
  }
}


/* --- 年間スケジュール 980-11616 --- */
.senmon-school-section-open-campus-schedule {
  padding: 120px 0;
  box-sizing: border-box;
  background-color: var(--senmon-color-white);
}

.senmon-school-section-open-campus-schedule__inner {
  max-width: var(--senmon-content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 40px;
}

.senmon-school-section-open-campus-schedule__header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.senmon-school-section-open-campus-schedule__badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.senmon-school-section-open-campus-schedule__badge-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 100px;
  background-color: var(--senmon-color-primary);
}

.senmon-school-section-open-campus-schedule__badge-label {
  font-family: var(--senmon-font-badge);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--senmon-color-primary);
}

.senmon-school-section-open-campus-schedule__title {
  margin: 0;
  font-family: var(--senmon-font-nav);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--senmon-color-primary);
}

.senmon-school-section-open-campus-schedule__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.senmon-school-section-open-campus-schedule__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.senmon-school-section-open-campus-schedule__item-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}

.senmon-school-section-open-campus-schedule__item-date {
  flex: 0 0 180px;
  max-width: 180px;
  font-family: var(--senmon-font-hero);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--senmon-color-primary);
}

.senmon-school-section-open-campus-schedule__item-label {
  flex: 1;
  min-width: 0;
  font-family: var(--senmon-font-hero);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--senmon-color-gray-90);
}

.senmon-school-section-open-campus-schedule__item-divider {
  width: 100%;
  height: 1px;
  background-color: var(--senmon-color-primary);
}

.senmon-school-section-open-campus-schedule__empty {
  margin: 0;
  width: 100%;
  padding: 24px;
  text-align: center;
  font-family: var(--senmon-font-hero);
  font-size: 14px;
  line-height: 1.6;
  color: var(--senmon-color-gray-60);
  border: 1px dashed var(--senmon-color-gray-40);
  border-radius: 8px;
}

@media (max-width: 959px) {
  .senmon-school-section-open-campus-schedule {
    padding: 40px var(--senmon-page-gutter-x);
  }

  .senmon-school-section-open-campus-schedule__inner {
    gap: 24px;
  }

  .senmon-school-section-open-campus-schedule__badge-dot {
    width: 4px;
    height: 4px;
  }

  .senmon-school-section-open-campus-schedule__badge-label {
    font-size: 14px;
  }

  .senmon-school-section-open-campus-schedule__title {
    font-size: 32px;
  }

  .senmon-school-section-open-campus-schedule__list {
    gap: 8px;
  }

  .senmon-school-section-open-campus-schedule__item-row {
    gap: 8px;
  }

  .senmon-school-section-open-campus-schedule__item-date {
    flex: 1 1 100%;
    max-width: none;
    font-size: 18px;
  }

  .senmon-school-section-open-campus-schedule__item-label {
    font-size: 14px;
  }
}

