/* CSS Document */

main [id]{
	scroll-margin-top: calc(var(--headerHeight) + 1em);
}

#top {
    overflow: hidden;
    height: calc(950px - var(--headerHeight));
    z-index: 1;
}

#top .top {
    display: flex;
    position: relative;
    height: 90%;
    align-items: center;
    padding: 0 12em;
}

#top .top .topimg_1 {
    max-width: 720px;
    width: 50%;
    position: relative;
}

#top .top .topimg_2 {
    position: absolute;
    right: -8%;
    top: 0;
    width: 75%;
    max-width: 1069px;
}

#top .top .topimg_3 {
    position: absolute;

}

#top .top .topimg_4 {
    position: absolute;
    right: 5px;
    bottom: 20%;
    width: 50%;

}

#top .top .topimg_5 {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;

}

@media screen and (max-width: 1280px) {
    #top {
        aspect-ratio: 2 / 3;
        height: auto;
    }

    #top .top {
        align-items: flex-start;
        padding: 0 2em;
        background-image: url(/miefair2025/Templates_miefair/img/top/top_BG_sp.png);
        background-position: 18% 187%;
        background-size: 189%;
        background-repeat: no-repeat;
    }

    #top .top .topimg_1 {
        width: 70%;
        margin-top: 30%;
    }
}

@media screen and (max-width: 720px) {

    #top {
        aspect-ratio: 9 / 16;

    }
}

.entryAndPlace {
    position: relative;
    margin-top: -3%;
    z-index: 10;
    margin-bottom: 11em;
    padding-bottom: 13em;
}


.entryAndPlace svg {
    transition: transform .3s;
    transform-origin: bottom;
}

/*map押して伸びた時用*/
.entryAndPlace:has([aria-expanded="true"]) svg {

    transform: scale(1.06) scaleX(2);
}

.entryAndPlace #entry {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1em;
    justify-content: center;
    max-width: fit-content;
    margin: auto;
    padding: 0em 1em;
}

.entryAndPlace #entry .free {
    position: absolute;
    left: -15%;
    top: -60%;
	z-index: 5;
}

.entryAndPlace #entry a {
    display: flex;
    max-width: fit-content;
    background: #3a8181;
    border-radius: 0.4em;
    border: 0.8em solid white;
    box-shadow: 5px 5px 5px rgb(0 0 0 / 50%);
    transition: background .2s;
    padding-top: 1em;
    padding-right: 0.3em;
}

.entryAndPlace #entry a img {
    width: 100%;
}
.entryAndPlace #entry a.btn1 {
    background: #E05773;
}

.entryAndPlace #entry a.btn2 {
    background: var(--fair);
}

.entryAndPlace #entry a.btn1:hover {
    background-color: #D12749;
}

.entryAndPlace #entry a.btn2:hover {
    background: var(--fair_gray);
}

.entryAndPlace #area {
    max-width: 1300px;
    margin: auto;
}


.entryAndPlace #area .area_text {
    display: flex;
    color: white;
    padding: var(--xPadding);
    padding-top: 1em;
    padding-bottom: 1em;
    margin-top: 5em;
    gap: 1em 3em;
    margin-bottom: 2em;
}

.entryAndPlace #area .area_text .at_1 {
    font-size: 2.24em;
    font-weight: bold;
	text-align: center;
}

.entryAndPlace #area .area_text .at_2 {
    line-height: 1.7;
	flex: 1;
}

.entryAndPlace #area .area_listItem {
    display: grid;
    grid-template-areas:
        "al_1 al_2 al_3"
        "al_1 al_2 al_4"
        "al_1 al_2 al_5";
    grid-template-columns: auto 17em 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 1em 1.5em;
    padding: var(--xPaddingHarf);
    padding-top: 1em;
    padding-bottom: 1em;
    border-bottom: 1px dotted white;
}



#area #area_list{
	padding: var(--xPaddingHarf);
}

.entryAndPlace #area .area_listItem:nth-child(1) {
    border-top: 1px dotted white;

}

.entryAndPlace #area .area_listItem .al_1 {
    grid-area: al_1;
    writing-mode: vertical-rl;
    background: #E8EC94;
    border-radius: 0.4em;
    padding: 1.2em 0.2em;
    display: flex;
    justify-content: center;
}

.entryAndPlace #area .area_listItem .al_2 {
    grid-area: al_2;
    color: yellow;
    font-size: 2.2em;
    font-weight: 300;

    display: grid;
    grid-template-areas: "al2_1 al2_1""al2_2 al2_3""al2_4 al2_4";

    grid-template-columns: auto auto;
    line-height: 1;
    min-height: 5.5em;
    margin-bottom: auto;
	align-content: center;
}

.entryAndPlace #area .area_listItem .al_2.chosei {
    grid-template-areas: none;
    grid-template-columns: none;
    align-items: center;
	gap: 0.5em;
	height: 100%;
}

.entryAndPlace #area .area_listItem .al_2 .al2_1 {
    grid-area: al2_1;
}

.entryAndPlace #area .area_listItem .al_2 .al2_2 {

    grid-area: al2_2;
    font-size: 2em;
    display: flex;

}

.entryAndPlace #area .area_listItem .al_2 .al2_2 .al2_2_1 {
    margin-bottom: auto;
}

.entryAndPlace #area .area_listItem .al_2 .al2_2 .al2_2_2 {
    font-size: 1.5em;
    font-weight: lighter;
}

.entryAndPlace #area .area_listItem .al_2 .al2_2 .al2_2_3 {
    margin-top: auto;
}

.entryAndPlace #area .area_listItem .al_2 .al2_3 {
    grid-area: al2_3;
    font-weight: bold;
    border-radius: 2000px;
    background: yellow;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.5em;
    padding: 0.2em;
    color: #32B288;
    margin-top: auto;

}

.entryAndPlace #area .area_listItem .al_2 .al2_4 {
    grid-area: al2_4;
    margin-top: 0.5em;
}

.entryAndPlace #area .area_listItem .al_3 {
    grid-area: al_3;
    color: white;
    font-size: 2.5em;
    font-weight: 300;
    line-height: 1;
}

.entryAndPlace #area .area_listItem .al_4 {
    grid-area: al_4;
    color: white;
}

.entryAndPlace #area .area_listItem .al_4 .gmap {
    border-radius: 0.4em;
    overflow: hidden;
    margin-top: 1em;
}

.entryAndPlace #area .area_listItem .al_4 .text {
    display: flex;
    gap: 0.5em 2em;
    align-items: center;
}

.entryAndPlace #area .area_listItem .al_4 .text .address {
    font-size: 1.5em;
    font-weight: 300;
}

.entryAndPlace #area .area_listItem .al_4 .text .area_button {
    border-radius: 2000px;
    background: black;
    padding: 0.2em 1.5em;
    min-width: 8em;
    display: inline-flex;
    color: white;
    text-decoration: none;
    border: none;
    justify-content: center;
}
.entryAndPlace #area .area_listItem .al_4 .text .area_button.map{
    background: black;
}
.entryAndPlace #area .area_listItem .al_4 .text .area_button.comp{
    background: #009843;
}
.entryAndPlace #area .area_listItem .al_4 .text .area_button.job{
    background: #A985A7;
}

.entryAndPlace #area .area_listItem .al_4 #gmap iframe {
    width: 100%;

}

.entryAndPlace #area .area_listItem .al_5 {
    grid-area: al_5;
    display: flex;
    font-weight: 300;
    color: white;
    align-items: center;
    gap: 1.2em;
    line-height: 1;
}

.entryAndPlace #area .area_listItem .al5_1 {
    color: black;
    font-size: 1.8em;
}

.entryAndPlace #area .area_listItem .al5_list {
    display: flex;
    gap: 1.2em;
    align-items: center;
    height: 100%;
    margin-left: 2em;
}

.entryAndPlace #area .area_listItem .al5_list *:nth-child(1) {
    font-size: 1.5em;
    border-radius: 0.4em;
    padding: 0.5em 0.4em;
    display: flex;
    align-items: center;
    height: 100%;
    font-weight: normal;
	white-space: nowrap;
}

.entryAndPlace #area .area_listItem .al5_list .comp {

    background: #009843;
}

.entryAndPlace #area .area_listItem .al5_list .job {
    background: #A985A7;
}

.entryAndPlace #area .area_listItem .al5_list *:nth-child(2) {
    font-size: 1.8em;
}

@media screen and (max-width: 1490px) {
    .entryAndPlace svg {
        width: 200%;
        left: -50%;
        top: 0;
        transform: scale(1.1);
    }

    .entryAndPlace #entry {
        width: max-content;
        font-size: var(--clamp10_16);
		margin-left: auto;
	    margin-right: 10%;
        max-width: 70%;
    }
	
    .entryAndPlace #entry .free {
       width: 21%;
    }

}

@media screen and (max-width: 1280px) {
	
	.entryAndPlace #area .area_text .at_1{
		font-size: 2em;
	}
	
	.entryAndPlace #area .area_listItem .al_2,
	.entryAndPlace #area .area_listItem .al_4 .text .address{
		font-weight: normal;
	}
	.entryAndPlace #area .area_listItem .al_4 .text{
		flex-wrap: wrap;
	}
	.entryAndPlace #area .area_listItem .al_4 .text .address{
		width: 100%;
	}
	
    .entryAndPlace {
        margin-bottom: 3em;
        padding-bottom: 5em;
        margin-top: -45%;
    }
	
    .entryAndPlace #entry {
        width: max-content;
        flex-direction: column;
		margin-left: auto;
	    margin-right: auto;
    }
	
    .entryAndPlace #entry .free {
        width: 100px;
        left: -17%;
        top: -26%;
        width: 34%;
    }
	
    .entryAndPlace #area .area_text {
        flex-direction: column;
        font-size: var(--clamp10_16);
        margin-top: 2em;
    }

    #area #area_list {
        font-size: var(--clamp8_16);
    }

    .entryAndPlace #area .area_listItem {
        grid-template-areas: "al_1 al_2 al_2"
            "al_3 al_3 al_3"
            "al_4 al_4 al_4""al_5 al_5 al_5";
        gap: 1.5em;
    }

    .entryAndPlace #area .area_listItem .al_2 {
        grid-template-areas:
            "al2_1 al2_1 al2_4"
            "al2_2 al2_3 al2_4";
        grid-template-columns: 5.5em auto 1fr;
        min-height: unset;
        gap: 0 .4em;
        padding: 0.2em 0 0.7em;
    }

    .entryAndPlace #area .area_listItem .al_2 .al2_2 {
		justify-content: center;
    }

    .entryAndPlace #area .area_listItem .al_2 .al2_4 {
        display: flex;
        margin-left: 1em;
        align-items: center;
    }

    .entryAndPlace #area .area_listItem .al_3 {
        font-size: 2em;
    }
	.entryAndPlace #area .area_listItem .al_5 {
		font-size: 0.8em;
	}
	.entryAndPlace #area .area_listItem .al5_list *:nth-child(2) {
		font-size: 1.6em;
	}
	.entryAndPlace #area .area_listItem .al_4 .text .area_button{
		font-size: 1.3em;
	}
}

#support {
    display: flex;
    max-width: 1520px;
    margin: auto;
    gap: 4em 2em;
    justify-content: space-between;
    margin-bottom: 10em;
    padding: var(--xPadding);
}

#support .subtitle {
    margin-bottom: 2.5em;
}

#support .spt_left {
    max-width: 500px;
}

#support .spt_left .spt_text {
    line-height: 1.8;
}

#support .spt_right {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    flex: 1;
}

#support .spt_grid {
    display: grid;
    grid-template-areas:
        "spt_1 spt_2"
        "spt_1 spt_3"
        "spt_1 spt_4";
    grid-template-rows: auto auto auto;
    grid-template-columns: 6em auto;
    border-radius: 1em;
    border: 4px solid var(--fair2);
    padding: 2em 1em;
    align-items: center;
    gap: 0.85em 2em;
}

#support .spt_grid .spt_img {
    grid-area: spt_1;
}

#support .spt_title {
    grid-area: spt_2;
    font-weight: 800;
    font-size: 2em;
    color: var(--fair);
    margin: 0;
}

#support .spt_grid .spt_text {
    grid-area: spt_3;
    padding: 0.35em 1em;
    background: var(--fair);
    border-radius: 2000px;
    color: white;
    font-size: 1.5em;
}

#support .spt_list {
    grid-area: spt_4;
    font-size: 1.15em;
    display: flex;
    justify-content: space-between;
    padding-right: 1em;
    width: 100%;
	gap: 1em 0.5em;
}

#support .spt_list ul {
    padding-left: 2em;
}

#support .spt_list li {
    list-style: disc;
}

#support .spt_list .grid{
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    margin-left: auto;
    white-space: nowrap;
}

@media screen and (max-width: 1280px) {
    #support {
        font-size: var(--clamp10_16);
        flex-direction: column;
        margin-bottom: 6em;
    }

    #support .spt_left {
        max-width: 100%;
    }

    #support .spt_grid {
        grid-template-areas:
            "spt_1"
            "spt_2"
            "spt_3"
            "spt_4";
        grid-template-columns: auto;
        justify-items: center;
        font-size: var(--clamp8_16);
		border-radius: 1.5em;
    }

    #support .spt_grid .spt_text {
        width: 100%;
    }

    #support .spt_grid .spt_img {
        max-width: 60px;
    }
}
@media screen and (max-width: 720px){
	#support .spt_list {
		flex-direction: column;
		padding-right: 1em;
	}
}

#present {
    text-align: center;
    margin-bottom: 12em;
    padding: var(--xPadding);
}

#present img {
    max-width: 100%;
}

@media screen and (max-width: 1280px) {
    #present {
        font-size: var(--clamp12_16);
        margin-bottom: 6em;
    }
}

#company {
    max-width: 1300px;
    margin: auto;
    margin-bottom: 10em;
    padding: var(--xPadding);
}

#company .company_grid{
	display: grid;
	gap: 6em;
	margin-top: 1.5em;
}
#company .company_text {
    padding: 1em 0;
    gap: 0.5em;
	margin-bottom: 3em;
	.company_color{
        color: var(--fair);
        font-size: 1.57em;
        font-weight: bold;
	}
}

#company .company_h {
    font-size: 2.5em;
    font-weight: 400;
    text-align: center;
}

#company .company_h span {
    color: #1A7FBA;
    padding: 0 0.2em;
}

#company .company_list {

    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 5em 0em;
    margin-top: 1em;
}

#company .company_list > * {
    display: flex;
    align-items: center;
    justify-content: center;
}

#company .company_img{
	width: 65%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
}
#company .company_alt{
	font-size: 0.95em;
    word-break: keep-all;
    text-align: center;
}

@media screen and (max-width: 1280px) {
    #company {
        font-size: var(--clamp12_16);
    }
	#company .company_list{
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}
	#company .company_alt{
		word-break: normal;
	}
}

@media screen and (max-width: 720px) {
	#company .company_list{
		grid-template-columns: 1fr 1fr;
	}
}

#sns {
    margin: auto;
    margin-bottom: 10em;
    max-width: 670px;
    padding: var(--xPadding);
}

.sns_list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    margin-top: 2em;
}

.sns_list > * {
    width: 9em;
    height: 9em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 4em;
    transition: transform .4s;
}

.sns_list > *:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 1280px) {
    #sns {
        font-size: var(--clamp12_16);
    }

    #sns .sns_list {
        justify-content: center;
        font-size: 1.1em;
    }
}
