:root {
    --dark: #010000;
    --yellow: #fed000;
    --dark-yellow: #cca700;
    --accent-color: var(--yellow);
	--text-color: #ffffff;
    --bg-color: var(--dark);

    --link-color: var(--accent-color);
    --link-hover-color: var(--dark-yellow);

    --btn-color: var(--dark);
    --btn-bg-color: var(--accent-color);
    --btn-arrow-color: var(--btn-color);
    
    --btn-hover-color: var(--dark);
    --btn-hover-bg-color: var(--dark-yellow);
    --btn-hover-arrow-color: var(--btn-hover-color); 
}    

*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

body {
    font-weight: normal;
    font-size: 1rem;
    font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;    
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    color: inherit;
}

h1, h2, h3, h4 {
    font-weight: 600;
}

h5, h6 {
    font-weight: 500;
}

h1 {
	font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.4rem);
	line-height: 1.25;
}

h2 {
	font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem);
	line-height: 1.25;
}

h3 {
	font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
	line-height: 1.35;
}

h4 {
	font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem);
	line-height: 1.35;
}

h5 {
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
	line-height: 1.5;
}

h6 {
	font-size: clamp(0.875rem, 0.85rem + 0.2vw, 1rem);
	line-height: 1.6;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

a {
    color: var(--link-color);
    transition: all .3s ease;
}

a:hover,
a:focus {
    color: var(--link-hover-color);
}

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

.layout {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    width: 100%;
    min-width: 320px;
    min-height: 100dvh;
    margin-inline: auto;
}

.layout__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.layout__footer {
    margin-top: auto;
    padding: 2rem 1rem;
}

.section {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;    
}

.section__header {
    width: 100%;
    margin-bottom: 2rem;
}

.section__img {
    width: clamp(280px, 70vw, 760px);
    margin-inline: auto;
}

.section__title {
    font-size: clamp(2.8rem, 2.2rem + 3.2vw, 4.2rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 0.15em;    
    text-align: center;
    color: var(--accent-color);
    margin: 0;
}

.section__content {
    padding: 0 2rem;
    margin-inline: auto;
    text-align: center;
    border-radius: 4px;
    width: 100%;
    max-width: 800px;
}

.section__content *:last-child {
    margin-bottom: 0;
}

.section__footer {
    margin-top: 2rem;
}

.section__past-events {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.section__past-events a {
    position: relative;
    padding: 0.85rem 3.5rem 0.85rem 2rem;
    text-align: center;
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--bg-color);
    background: var(--btn-bg-color);
    border-radius: 4px;
    text-decoration: none;
    transition: all .3s ease;
}

.section__past-events a:after {
    position: absolute;
    display: block;
    content: '';
    top: 50%;
    right: 2rem;
    width: 12px;
    height: 12px;
	border-top: 1px solid var(--btn-arrow-color);
	border-right: 1px solid var(--btn-arrow-color);
	-webkit-transform: rotate(45deg);
	transform: translateY(-50%) rotate(45deg);    
}

.section__past-events a:hover,
.section__past-events a:focus {
    color: var(--btn-hover-color);
    background: var(--btn-hover-bg-color);
}

.section__past-events a:hover:after,
.section__past-events a:focus:after {
    border-color: var(--btn-hover-arrow-color);
}

.copyright {
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
}

@media screen and (max-width: 767px){
    .layout {
        min-height: 100svh;
    }

    .section__img {
        width: 100%;
    }

    .section__title {
        font-size: clamp(2rem, 1.7rem + 2.2vw, 3rem);
        line-height: 1.2;
    }

    .section__past-events a {
        padding: 0.5rem 2.5rem 0.5rem 1rem;
        font-size: 1rem;
    }

    .section__past-events a:after {
        right: 1rem;
        width: 8px;
        height: 8px;
    }
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;    
}