/* =========================================
   オープンキャンパスページ - 共通
   ========================================= */

.oc-wrap {
  --oc-color-text: #2c364b;
  --oc-color-green: #5ebc88;
  --oc-color-border: #dfe5ea;
  --oc-color-week-sun: #c75661;
  --oc-color-week-sat: #5f9ed5;
  --oc-color-time-bg: #f0f2fb;
  --oc-content-width: 1100px;
  --oc-date-cell-min-height: 112px;
  --oc-date-cell-padding: 18px 8px;
  --oc-time-pill-height: 27px;
  color: var(--oc-color-text);
}

.oc-content {
  overflow: hidden;
}

.oc-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

.oc-hero-inner,
.oc-schedule-inner,
.oc-class-inner,
.oc-program-inner,
.oc-info-inner {
  max-width: var(--oc-content-width);
  margin: 0 auto;
}

/* =========================================
   オープンキャンパスページ - 見出し共通
   ========================================= */

.oc-heading {
  margin-bottom: 28px;
  text-align: center;
}

.oc-heading-main {
  margin: 0;
  font-size: 3.0rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.16em;
  color: var(--oc-color-text);
}

@media (min-width: 940px) {
  .oc-heading {
    margin-bottom: 36px;
  }

  .oc-heading-main {
    font-size: 4.0rem;
  }
}

/* =========================================
   日程セル共通
   ========================================= */

.oc-date-day {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--oc-color-text);
}

.oc-date-figure {
  display: inline-flex;
  align-items: flex-end;
  gap: 0;
  line-height: 1;
}

.oc-date-month {
  font-size: 0.68em;
  line-height: 1.4;
}

.oc-date-num {
  line-height: 1;
}

.oc-date-day > span:not(.oc-date-month):not(.oc-date-num):not(.oc-date-figure):not(.oc-date-week--sat) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--oc-color-week-sun);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
}

.oc-date-day .oc-date-week--sat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--oc-color-week-sat);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
}

.oc-date-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 118px;
  min-height: var(--oc-time-pill-height);
  padding: 4px 14px;
  border-radius: 999px;
  background-color: var(--oc-color-time-bg);
  color: var(--oc-color-text);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.oc-date-times {
  display: grid;
  gap: 9px;
  justify-items: center;
  width: 100%;
}

@media (min-width: 940px) {
  .oc-date-day {
    font-size: 3.8rem;
  }

  .oc-date-day > span:not(.oc-date-month):not(.oc-date-num):not(.oc-date-figure):not(.oc-date-week--sat),
  .oc-date-day .oc-date-week--sat {
    width: 24px;
    height: 24px;
    font-size: 1.3rem;
  }
}

/* =========================================
   オープンキャンパス・授業見学会
   ========================================= */

.oc-hero {
  padding: 40px 20px 44px;
  text-align: center;
  background-color: #fff;
}

.oc-hero-title {
  margin: 0 0 28px;
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.2em;
  color: var(--oc-color-text);
}

.oc-hero-link {
  display: block;
  width: min(100%, var(--oc-content-width));
  margin: 0 auto;
  transition: opacity 0.2s;
}

.oc-hero-link:hover {
  opacity: 0.85;
}

@media (min-width: 940px) {
  .oc-hero {
    padding: 60px 40px 62px;
  }

  .oc-hero-title {
    margin-bottom: 42px;
    font-size: 4.5rem;
  }
}

/* =========================================
   オープンキャンパス日程一覧
   ========================================= */

.oc-schedule {
  padding: 36px 20px 42px;
  background-color: #fff;
}

.oc-date-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.oc-date-item {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: var(--oc-date-cell-min-height);
  padding: var(--oc-date-cell-padding);
  border-right: 1px solid var(--oc-color-border);
  border-bottom: 1px solid var(--oc-color-border);
}

.oc-date-item:nth-child(2n) {
  border-right: none;
}

.oc-date-item:last-child {
  border-bottom: none;
}

.oc-date-item:last-child:nth-child(odd) {
  border-right: 1px solid var(--oc-color-border);
}

@media (min-width: 940px) {
  .oc-schedule {
    padding: 42px 40px 58px;
  }

  .oc-date-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .oc-date-item {
    min-height: 132px;
    padding: 24px 12px;
    border-right: 1px solid var(--oc-color-border);
    border-bottom: 1px solid var(--oc-color-border);
  }

  .oc-date-item:nth-child(2n) {
    border-right: 1px solid var(--oc-color-border);
  }

  .oc-date-item:nth-child(4n) {
    border-right: none;
  }

  .oc-date-item:last-child {
    border-bottom: none;
    border-right: 1px solid var(--oc-color-border);
  }

  .oc-date-item:nth-child(n+5) {
    border-bottom: none;
  }
}

/* =========================================
   授業見学会日程一覧
   ========================================= */

.oc-class {
  padding: 44px 20px 64px;
  background-color: #fff;
}

.oc-class-layout {
  display: grid;
  gap: 28px;
  align-items: center;
}

.oc-class-date-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oc-class-date-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: var(--oc-date-cell-min-height);
  padding: var(--oc-date-cell-padding);
  border-right: 1px solid var(--oc-color-border);
}

.oc-class-date-item:nth-child(2n) {
  border-right: none;
}

.oc-class-date-item .oc-date-time {
  width: min(100%, 168px);
  height: var(--oc-time-pill-height);
  min-height: var(--oc-time-pill-height);
}

.oc-class-img {
  width: min(100%, 360px);
  margin: 0 auto;
}

.oc-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.oc-btn-wrap--left {
  justify-content: center;
  margin-top: 22px;
}

.oc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 260px);
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  background-color: var(--oc-color-green);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: opacity 0.2s;
}

.oc-btn:hover {
  opacity: 0.75;
}

@media (min-width: 940px) {
  .oc-class {
    padding: 58px 40px 86px;
  }

  .oc-class-layout {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    align-items: center;
  }

  .oc-class-date-list {
    grid-column: 1 / 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oc-class-date-item {
    min-height: 132px;
    padding: 24px 12px;
    border-right: 1px solid var(--oc-color-border);
    border-bottom: none;
  }

  .oc-class-date-item:nth-child(2n) {
    border-right: none;
  }

  .oc-class-img {
    grid-column: 3 / 5;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 24px;
  }

  .oc-btn-wrap--left {
    justify-content: flex-start;
  }

  .oc-btn {
    min-height: 46px;
    font-size: 1.4rem;
  }
}

/* =========================================
   湊川短大のオープンキャンパス
   ========================================= */

.oc-program {
  padding: 62px 20px 74px;
  background: #edf8ef url('../images/oc/oc-bg.webp') no-repeat center top / cover;
}

.oc-program-heading {
  margin-bottom: 36px;
  text-align: center;
}

.oc-program-heading-en {
  width: min(100%, 180px);
  margin: 0 auto 10px;
}

.oc-program-lead,
.oc-info-lead {
  margin: 0;
  color: var(--oc-color-green);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.8;
}

.oc-program-lead {
  margin-top: 22px;
  line-height: 1.7;
}

.oc-program-text {
  margin: 10px 0 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.8;
}

.oc-card-list {
  display: grid;
  gap: 20px;
}

.oc-card {
  padding: 12px 12px 22px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 8px 24px rgba(44, 54, 75, 0.08);
}

.oc-card-img {
  width: 100%;
  aspect-ratio: 1.46 / 1;
  border-radius: 4px;
  object-fit: cover;
}

.oc-card-title {
  margin: 18px 0 0;
  color: var(--oc-color-green);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  letter-spacing: 0.04em;
}

.oc-card-text {
  margin: 12px 0 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.75;
}

@media (min-width: 940px) {
  .oc-program {
    padding: 78px 40px 90px;
  }

  .oc-program-heading {
    margin-bottom: 48px;
  }

  .oc-program-heading-en {
    width: 210px;
  }

  .oc-program-lead,
  .oc-info-lead {
    font-size: 1.55rem;
  }

  .oc-program-text {
    font-size: 1.35rem;
  }

  .oc-card-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    max-width: var(--oc-content-width);
    margin: 0 auto;
  }

  .oc-card-title {
    font-size: 1.6rem;
  }

  .oc-card-text {
    font-size: 1.3rem;
  }
}

/* =========================================
   その他の情報
   ========================================= */

.oc-info {
  padding: 70px 20px 86px;
  background-color: #fff;
}

.oc-info-inner {
  display: grid;
  gap: 62px;
  max-width: 820px;
}

.oc-info-block {
  display: grid;
  gap: 28px;
  align-items: center;
}

.oc-info-text {
  display: grid;
  gap: 14px;
}

.oc-info-title {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.08em;
  color: var(--oc-color-text);
}

.oc-info-copy {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.85;
}

.oc-info-copy-time {
  color: var(--oc-color-green);
}

.oc-info-img {
  width: min(100%, 360px);
  margin: 0 auto;
}

.oc-info-img img {
  border-radius: 4px;
}

@media (min-width: 940px) {
  .oc-info {
    padding: 94px 40px 118px;
  }

  .oc-info-inner {
    gap: 92px;
  }

  .oc-info-block {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 62px;
  }

  .oc-info-block--reverse {
    grid-template-columns: 360px minmax(0, 1fr);
  }

  .oc-info-block--reverse .oc-info-text {
    order: 2;
  }

  .oc-info-block--reverse .oc-info-img {
    order: 1;
  }

  .oc-info-title {
    font-size: 3.0rem;
  }

  .oc-info-copy {
    font-size: 1.35rem;
  }
}
