@charset "utf-8";

.live-schedule {
    display: flex;
    gap: 48px;
}

.live-schedule-nav {
    flex: 0 0 auto;

}

/* トップ：リード文との余白 */
.accordion-body > p + .live-schedule {
    margin-top: 72px;
}

.live-schedule-nav-list {
    width: 200px;
    position: sticky;
    top: calc(var(--header-height) * 1px);
    left: 0;
    max-height: calc(100dvh - (var(--header-height) * 1px));
    overflow: auto;
}

.live-schedule-nav-item:first-child {
    border-top: 1px solid var(--blue-border);
}

.live-schedule-nav-item {
    border-bottom: 1px solid var(--blue-border);
}

.live-schedule-nav-link {
    text-decoration: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 44px;
    padding: 12px;
    color: var(--blue-dark);
    line-height: var(--line-height-sm);
    font-weight: bold;

    span {
        vertical-align: text-bottom;
    }

    small {
        display: inline-block;
        font-size: 11px;
        font-weight: normal;
        vertical-align: text-bottom;
        margin-left: .3em;
    }
}

/* :where(.live-schedule-nav-item:first-child) .live-schedule-nav-link {
    color: var(--red);
} */

.live-timeline {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

:where(.live-timeline-date-section) + .live-timeline-date-section {
    border-top: 1px solid var(--blue-border);
    padding: 20px 0 0;
}

.live-timeline-date-section {
    display: flex;
    gap: 24px;
}

.live-timeline-date {
    flex: 0 0 auto;
    width: 172px;
    box-sizing: border-box;
    padding: 12px 0 0 16px;
    padding: 8px 0 0 12px;
    font-size: var(--font-size-lg);
    font-weight: bold;
    line-height: var(--line-height-sm);
    color: var(--blue-dark);

    small {
        display: inline-block;
        font-size: var(--font-size-sm);
        font-weight: normal;
        vertical-align: text-bottom;
        margin-left: .3em;
    }
}

.live-timeline-list {
    flex: 1 0 0;
}

:where(.live-timeline-item) + .live-timeline-item {
    margin: 8px 0 0;
}

.live-timeline-item {
    border: 1px solid var(--blue-border);
    border-radius: var(--border-radius);
    position: relative;
}

.live-timeline-item:where([aria-current="true"])::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 2px solid var(--blue-border);
    border-radius: var(--border-radius);
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.live-timeline-item:where([aria-current="true"])::after {
    content: '';
    display: block;
    width: 115px;
    aspect-ratio: 115 / 48;
    background: url(/assets/images/live-schedule/live-icon@2x.png) center no-repeat;
    background-size: contain;
    position: absolute;
    top: 0;
    left: 0;
    translate: 10% -57%;
    pointer-events: none;
}

.live-timeline-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 24px 40px 28px;
}

.live-timeline-item-header {
    border-bottom: 1px solid var(--blue-border);
    padding: 0 0 8px;
}

.live-timeline-item-title {
	font-size: var(--font-size-lg);
	font-weight: bold;
    line-height: var(--line-height-md);
	color: var(--black);
	position: relative;
	padding-left: 28px;
	margin: 0 0 0 4px;
    word-break: auto-phrase;
}

.live-timeline-item-title::before,
.live-timeline-item-title::after {
	content: '';
	display: block;
	aspect-ratio: 1;
	position: absolute;
	top: 0.8em;
}

.live-timeline-item-title::before {
	background: var(--red);
    width: 9px;
	left: 6px;
	translate: 0 -1px;
}

.live-timeline-item-title::after {
	background: var(--blue);
    width: 11px;
	left: 0;
	translate: 0 -6px;
}

.live-timeline-item-time {
    font-size: var(--font-size-md);
    font-weight: bold;
    line-height: var(--line-height-sm);
    color: var(--blue-dark);
    margin: 12px 0 0;
}

.live-timeline-item-time::before {
    content: attr(data-live-start)' 〜 'attr(data-live-end);
}

.live-timeline-item-speaker {
    font-size: var(--font-size-sm);
    font-weight: bold;
    line-height: var(--line-height-sm);
    color: var(--blue-highlight);
    margin: 8px 0 0;
}

:where(.live-timeline-item.closed) {
    --opacity: .35;

    filter: saturate(10%);

    .live-timeline-item-title {
        /* color: var(--black); */
        opacity: .3;
    }

    .live-timeline-item-title::before {
        /* background: var(--red); */
        opacity: var(--opacity);
    }

    .live-timeline-item-title::after {
        /* background: var(--blue); */
        opacity: var(--opacity);
    }

    .live-timeline-item-time {
        /* color: var(--blue-dark); */
        opacity: var(--opacity);
    }

    .live-timeline-item-speaker {
        /* color: var(--blue-highlight); */
        opacity: var(--opacity);
    }
}

.form-select {
    --form-font-size: 16px;
    appearance: none;
    box-sizing: border-box;

    display: inline-block;
    
    border: 1px solid var(--gray-input);
    background: #fff;
    border-radius: var(--border-radius-sm);
    min-height: calc(44 / var(--form-font-size) * 1em);
    padding: 0.4em 0.8em 0.425em;
    color: var(--black);
    
    font-size: var(--form-font-size);
    line-height: 1;
    
    max-width: 100%;

    padding-right: 30px;
    background-image: url(/assets/images/form-select-arrow.png);
    background-position: right 10px center;
    background-size: 0.8em;
    background-repeat: no-repeat;
}

@media (width > 768px){

    .live-schedule-nav-select {
        display: none;
    }

}

@media (width <= 768px){

    .live-schedule-nav-list {
        display: none;
    }

    .live-schedule-nav-select {
        width: 100%;
        min-height: 48px;
    }

    .live-schedule {
        display: block;
    }

	.live-schedule-nav {
        margin-bottom: 16px;
    }

    .live-timeline {
        display: block;
    }

    .live-timeline-date-section {
        display: block;
        border-top: none;
        padding: 0;
    }

    .live-timeline-date {
        padding: 0;
        margin: 20px 0;
        margin-left: 4px;
        font-size: var(--font-size-xl);
    }

    .live-timeline-item-link {
        padding: 24px;
    }

    .live-timeline-item-title {
        line-height: var(--line-height-sm);
    }

}