@charset "UTF-8";

/* event.html限定のCSS設定 */

/* ---------- 施設情報 ---------- */
.facility-info {
  position: relative;
  height: auto;
  max-height: 250px;
  overflow: hidden;
  transition: max-height 0.3s;
}

@media screen and (min-width: 720px) {
    .facility-info {
        max-height: 350px;
    }
}

.facility-info::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: 0.3s;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 50%, rgba(255,255,255,1) 100%);
  pointer-events: none;
}

.facility-info.open::after {
  opacity: 0;
}

.facility-info__table {
  width: 100%;
  margin-top: 24px;
  font-size: 3.6111111111vw;
  border-collapse: collapse;
}

@media screen and (min-width: 720px) {
    .facility-info__table {
        font-size: 18px;
    }
}

.facility-info__table th {
  width: 20%;
  background-color: #f0f0f0;
  white-space: nowrap;
  padding: 8px;
  border: 1px solid #ccc;
  vertical-align: top;
  text-align: left;
}

.facility-info__table td {
  padding: 8px;
  border: 1px solid #ccc;
  vertical-align: top;
  text-align: left;
}

.facility-info__map {
  margin-top: 16px;
  max-width: 800px;
}

.facility-info__map iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

@media screen and (min-width: 720px) {
    .facility-info__map iframe {
        height: 400px;
    }
}

.facility-info-show-more-button {
    text-align: center;
}

.facility-info-show-more-button__button {
  transition: margin-top 0.3s;
}

.facility-info p.narrow-top {
  margin-top: 8px;
}


/* ---------- カレンダー ---------- */
.calendar {
	margin-top: 5px;
	width: auto;
    height: auto;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.calendar__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 48px;
	margin-bottom: 8px;
}

.calendar__close-button {
	padding: 0;
	font-size: 20px;
	cursor: pointer;
}

.calendar__content {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 20px;
    overflow-y: auto;
}

@media screen and (min-width: 720px) {
    .calendar__content {
        flex-direction: row;
        justify-content: center;
    }
}

.calendar__month {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calendar__month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin: 5px 0;
}

.calendar__month-header--title {
    flex: 1;
    text-align: center;
    font-size: 3.6111111111vw;
}

@media screen and (min-width: 720px) {
    .calendar__month-header--title {
        font-size: 18px;
    }
}

.calendar__month-header--nav {
    border: 1px solid gray;
    border-radius: 4px;
    padding: 4px 16px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}

.calendar__table {
    width: 100%;
    font-size: 3.6111111111vw;
    border-collapse: collapse;
}

@media screen and (min-width: 720px) {
    .calendar__table {
        width: 300px;
        font-size: 18px;
    }
}

.calendar__table th,
.calendar__table td {
    width: 14.28%;
    text-align: center;
    padding: 6px 0;
    border: 1px solid #ddd;
}

.calendar__table th.sunday,
.calendar__table td.sunday {
	color: red;
}
.calendar__table th.saturday,
.calendar__table td.saturday {
	color: blue;
}

.calendar__table td.past {
	color: #bbb;
	pointer-events: none;
}

.calendar__table td.unselectable {
	pointer-events: none;
}

.calendar__table td.selectable {
	cursor: pointer;
}

.calendar__table .calendar__dot {
	font-size: 0.75em;
	line-height: 1;
	color: #1976d2;
	margin-top: 2px;
}

.calendar__table td.selected {
	background-color: #e0f0ff;
	transition: background-color 0.3s;
}

/* GF注意文言 */
.event-detail__texts .event-detail__text {
  padding: 0 3.4722222222vw;
  margin-top: 8px;
}

@media screen and (min-width: 720px) {
  .event-detail__texts .event-detail__text {
    padding: 0;
    margin-top: 8px;
  }
}

/* ---------- アクセス情報モーダル ---------- */
.event-detail td a.facility-info__access-info-link {
    display: inline-block;
    cursor: pointer;
    color: var(--accent02);
    font-weight: 400;
    padding-right: 5vw;
    position: relative;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media screen and (min-width: 720px) {
    .event-detail td a.facility-info__access-info-link {
        padding-right: 24px;
        font-size: 16px;
    }
}

.access-info-modal {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.3s ease 0s, visibility 0.3s ease 0s, z-index 0.3s ease 0s;
    transition: opacity 0.3s ease 0s, visibility 0.3s ease 0s, z-index 0.3s ease 0s;
}

@media screen and (min-width: 720px) {
    .access-info-modal {
        padding: 20px;
    }
}

.access-info-modal.open {
    opacity: 1;
    visibility: visible;
    z-index: 101;
}

.access-info-modal__container {
    width: 80%;
    max-width: 740px;
    height: 90%;
    background-color: white;
    overflow: auto;
    overscroll-behavior: contain;
}

.access-info-modal__container--wrap {
    width: 100%;
    min-height: calc(100% + 1px);
    padding: 3.3333333333333335vw;
}

@media screen and (min-width: 720px) {
    .access-info-modal__container--wrap {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

.access-info-modal__box {
    padding: 4.4444444444vw;
    background-color: #e8e8e8;
}

@media screen and (min-width: 720px) {
    .access-info-modal__box {
        margin-top: 40px;
        padding: 28px;
    }
}

.access-info-modal__box+.access-info-modal__box {
    margin-top: 6.6666666666666667vw;
}

@media screen and (min-width: 720px) {
    .access-info-modal__box+.access-info-modal__box {
        margin-top: 40px;
    }
}

p.access-info-modal__title {
    font-size: 5.5555555556vw;
    line-height: 1.35;
    letter-spacing: 0.04em;
    border-bottom: 0.5555555556vw solid #b0b0b0;
    padding-bottom: 1.1111111111vw;
    margin: 0
}

@media screen and (min-width: 720px) {
    p.access-info-modal__title {
        font-size: 32px;
        line-height: 1.5;
        border-bottom: 2px solid #b0b0b0;
        padding-bottom: 8px;
    }
}

p.access-info-modal__text {
    font-size: 3.6111111111vw;
    line-height: 1.5;
    margin: 0;
    display: block;
    font-weight: 700;

}

@media screen and (min-width: 720px) {
    p.access-info-modal__text {
        font-size: 18px;
        line-height: 1.5;
    }
}

.access-info-modal__close-button {
    position: absolute;
    bottom: 93vh;
    left: 90vw;
    width: 5vw;
    height: auto;
    aspect-ratio: 1/1;
}

@media screen and (min-width: 720px) {
    .access-info-modal__close-button {
        width: 33px;
    }
}