@charset "UTF-8";
/* ====================================
min-width
@media only screen and (min-width: 575px) {}
@media only screen and (min-width: 767px) {}
@media only screen and (min-width: 991px) {}
@media only screen and (min-width: 1199px) {}
@media only screen and (min-width: 1500px) {}
==================================== */

/* ====================================
max-width
@media only screen and (max-width: 320px) {}
@media only screen and (max-width: 576px) {}
@media only screen and (max-width: 599px) {}
@media only screen and (max-width: 768px) {}
@media only screen and (max-width: 992px) {}
@media only screen and (max-width: 1200px) {}
==================================== */

/* 【全ページ】オープンキャンパスイベント固定バナー */
.c-oc-banner {
  position: fixed;
  left: 0;
  bottom: 20px;
  inline-size: clamp(220px, 30vw, 255px);
  padding: 1.5em;
  background-color: #fff;
  border-radius: 0 10px 10px 0;
  z-index: 6;
}

@media only screen and (max-width: 768px) {
  .c-oc-banner {
    bottom: calc(20px + env(safe-area-inset-bottom));
    border-radius: 0 5px 5px 0;
  }
}

.c-oc-banner.is-hidden {
  display: none;
}

.c-oc-banner__close {
  position: absolute;
  top: 0;
  right: -1em;
  transform: translateY(-33.33%);
  aspect-ratio: 1 / 1;
  inline-size: 44px;
  block-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #8c959b;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

@media (hover: hover) {
  .c-oc-banner__close:hover {
    background-color: #e5e5e5;
  }
}

.c-oc-banner__close::before,
.c-oc-banner__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  inline-size: 40%;
  block-size: 1px;
  background-color: #fff;
}

.c-oc-banner__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.c-oc-banner__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.c-oc-banner__label {
  margin-block-end: 1em;
  color: #222;
  font-size: clamp(12px, 1.7vw, 14px);
  font-weight: 700;
  line-height: 1;
}

.c-oc-banner__image img {
  border-radius: 5px;
  transition: opacity 0.3s ease;
}

.c-oc-banner__title {
  margin-block: 0.5em 0;
  color: #222;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: bold;
  line-height: 1.5;
  /* 2行以上のテキストを省略 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s ease;
}

.c-oc-banner__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-block-start: 0.5em;
  margin-block-end: 0;
  color: #2d3636;
  font-size: clamp(10px, 1.6vw, 14px);
  line-height: 1.2;
}

.c-oc-banner__links {
  margin-block-start: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.c-oc-banner__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.33em;
  padding: 0 2em;
  background-color: #fff;
  border: 1px solid #8c959b;
  border-radius: 5px;
  color: #222;
  font-size: clamp(12px, 1.8vw, 15px);
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

@media (hover: hover) {
  .c-oc-banner__link:hover {
    background-color: #8c959b;
    border-color: #8c959b;
    color: #fff;
  }
}

.c-oc-banner__link .btn-icon {
  transition: all 0.3s ease;
}

.c-oc-banner__link.-apply {
  color: #fff;
  background-color: #ea3852;
  border: none;
}

@media (hover: hover) {
  .c-oc-banner__link.-apply:hover {
    background-color: #8c959b;
    color: #fff;
  }
}
