@charset "utf-8";
@import url("global.css");

/*---------------------------------------------------------------------------------------
	トップページ
----------------------------------------------------------------------------------------*/
/*メイン固定*/
.top-main {
	position: relative;
}

.h1 {
    color: #fff;
    background: var(--accent);
    text-align: center;

    font-size: 5rem;
    font-weight: bold;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: .02em;

    margin-bottom: .5em;
    padding: .5em 1em;

        /* 左右を斜めに */
    clip-path: polygon(
        4% 0,
        100% 0,
        96% 100%,
        0 100%
    );

}
.h1-sub {
    font-size: 3rem;
    font-weight: 800;
}
.h1-sub span{
	font-size: 110%;
}
.txt-box {
	background: var(--bg);
	padding: 1em;
	border-radius: 10px;
	margin: 1em 0;
}
.h2 {
	text-align: center;
    font-size: 3rem;
    font-weight: 800;
}

.event-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.event-free,
.event-taiken {
    padding: 1.5em;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 10px;
}

.event-list h3 {
    margin: 0 0 .5em;
    color: var(--accent);
    font-size: 3.6rem;
    font-weight: bold;
    line-height: 1.35;
    text-align: center;
}

.event-list p:first-of-type {
    font-size: 2.8rem;
    font-weight: bold;
    text-align: center;
}

/* 「探す」ボタン */
.event-list p:nth-of-type(3) {
    margin-top: 1.5em;
    margin-bottom: .5em;
}

.event-list p:nth-of-type(3) a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6em;

    width: 100%;
    padding: .5em 1em;

    color: #fff;
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 6px;

    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;

    transition: .2s;
}

.event-list p:nth-of-type(3) a::before {
    content: "";
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;

    background: url("../images/icn-search-w.svg") no-repeat center / contain;
}

.event-list p:nth-of-type(3) a:hover {
    color: var(--accent);
    background: #fff;
}
.event-list p:nth-of-type(3) a:hover::before {
    background: url("../images/icn-search.svg") no-repeat center / contain;
}
/* PDFリンク */
.event-list p.dl {
    margin-bottom: 0;
    font-size: 1.6rem;
    line-height: 1.6;
}

.event-list p.dl a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.event-list p.dl a:hover {
    color: var(--accent);
}

.event-dl dt{
    color: var(--accent);
    font-weight: bold;
    font-size: var(--large);
}
.event-dl dd {
	margin-bottom: 1em;
}
/* SP */
@media screen and (max-width: 767px) {

	.h1 {
	    font-size: 2.4rem;
	}
	.h1-sub {
	    font-size: 1.8rem;
	}
	.h1-sub span{
		font-size: 110%;
	}

	.h2 {
	    font-size: 2.4rem;
	}


    .event-list {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 30px;
    }
	.event-free,
	.event-taiken {
	    padding: 1em;
	}
    .event-list h3 {
    	font-size: 3.2rem;
        margin-bottom: 16px;
    }
    .event-list p:first-of-type {
    font-size: 2.4rem;
	}
	.event-list p.dl {
	    font-size: 1.4rem;
	}
}