/* ======================
== header/slider ======== */

.swiper {
	width: 100%;
	--swiper-theme-color: #5C7D76;
}

.swiper-wrapper,
.swiper-slide {
	height: auto;
}

.swiper-slide img {
	width: 100%;
	height: 100%;
}

/* 画面が横長になった場合に縦にフィットさせる */
@media (min-width: 768px) and (min-aspect-ratio: 4/3){
	#home header {
        height: 100svh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .swiper {
        flex: 1; 
        width: 100%;
        position: relative;
    }
    
    .swiper-slide img {
        object-fit: cover;
		object-position: center 80%;
    }
}




/* ======================
== main =============== */

#home main{
	margin-top: 100px;
}


/* ======================
== Ichiiba =============== */

#ichiiba .intro-container {
	margin-bottom: 2em;
}

#ichiiba .intro-img {
    position: relative;
    width: 100%;
}

.frame-design {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.frame-inner-border {
    position: relative; /* テキストの基準位置 */
    width: 93%;
    height: 90%;
    border: 2px solid #ffffff;
    border-color: #D4E4D9;
    box-sizing: border-box;
}

.frame-inner-text {
    font-family: "Cabin Sketch", sans-serif;
    font-size: 2.5em;
    font-style: italic;
    line-height: 1.2em;
    white-space: nowrap;
    color: #5c7d76;
    opacity: 0.9;
    text-shadow: 2px 2px 3px rgba(92,125,118,0.5);
    position: absolute;
    top: 12%;
    left: 2%;
    transform: rotate(-10deg);
    transform-origin: center;
}

@media (max-width: 379px){
    .frame-inner-text {
		font-size: 1.8em;
	}
}

@media (min-width: 900px){
	#ichiiba .intro-container {
		margin-bottom: 1em;
		align-items: flex-start;
	}

	#ichiiba .intro-img{	
		top: 0;
        margin-top: 0.5em;
	}

	.frame-inner-text {
		font-size: 1.3em;
	}
}


/* ======================
=== top page link  ===== */

.top-link-area {
    margin-bottom: 150px;
}

@media (min-width: 768px){
	.top-link-area .general-form {
		margin-top: 130px;
	}
}



/* ======================
== page link =========== */

.page-link-nav {
    margin-bottom: 6em;
    display: flex;
    flex-direction: column;
	gap: 2em;
    counter-reset: number;
}

.page-link {
    counter-increment: number;
    color: #555;
    background-image: linear-gradient(to bottom, rgba(240, 233, 198, 0.2), rgba(239, 173, 154, 0.2));
    border: 1px solid rgba(158, 68, 43, 0.1);
    border-radius: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 2em 1em;
	height: 100%;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-link-text {
    font-size: 2em;
    display: flex;
	text-align: center;
    align-items: center;
    margin-top: 1.2em;
    margin-bottom: 1.2em;
}

.page-link:hover {
    background-color: rgba(253,242,242,0.8);
    box-shadow: 0 8px 15px rgba(216, 27, 96, 0.1);
}

.page-link::before {
    content: counter(number) ;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #e6ccc1;
    font-size: 3em;
    font-family: "Zen Maru Gothic", sans-serif;
    line-height: 1;
    margin-bottom: 0.2em;
    z-index: 2;
}

.page-link::after {
    content: "";
    position: absolute;
    top: 5.5em; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    /* 線のサイズ（カーブが深くなった分、高さを広げる） */
    width: 60px;
    height: 22px;
    /* SVGデータ */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 22'%3E%3Cpath d='M5 5C15 15 45 15 55 5' fill='none' stroke='%23e6ccc1' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center top;
}

/* 矢印基本設定 */
.double-chevron-icon {
    display: inline-block;
    position: relative; 
    width: 10px;
    height: 13px;
    top: 0px;
    margin-left: 0.5em;
}

/* 矢印の滑らかな調整 */
.double-chevron-icon::before,
.double-chevron-icon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border: 2px solid #777;
    border-left-color: transparent;
    border-top-color: transparent;
    transform: rotate(-45deg); 
    width: 18px;
    height: 18px;
    border-radius: 3px; 
    /* ぼかしをかけ、ギザギザを目立たなくする（アンチエイリアス効果） */
    filter: blur(0.3px); 
}

/* 2本目の矢印（内側、重ねて二重に見せる） */
.double-chevron-icon::after {
    top: 0px;
    left: 6px;
}

@media (max-width: 349px) {
    .top-link-area .page-link:nth-child(3) .page-link-text{
        text-align: left;
    }
    
    
    .double-chevron-icon {
        margin-left: 0em;
        top: 0.1em;
    }
    .double-chevron-icon::before,
    .double-chevron-icon::after {
        width: 12px;
        height: 12px;
    }  
}

@media (max-width: 500px) {
    .page-link-text {
        font-size: 1.4em;
    }
    
    .top-link-area .page-link:nth-child(1) img {
		width: 180px;
	}

	.top-link-area .page-link:nth-child(2) img,
	.top-link-area .page-link:nth-child(3) img {
		width: 200px;
	}
}

@media (max-width: 999px) {
	.top-link-area .page-link:nth-child(1) img {
		width: 200px;
	}

	.top-link-area .page-link:nth-child(2) img {
		width: 320px;
	}
    
    .top-link-area .page-link:nth-child(3) img{
        width: 250px;
    }
}

@media (min-width: 768px) and (max-width: 999px) {
	.page-link {
		width: 80%;
		margin-inline: auto;
	}
}

@media (min-width: 1000px){
	.page-link-nav {
		flex-direction: row;
		gap: 1em;
	}

	.page-link {
		flex: 1;
		padding-top: 1.5em;
		padding-bottom: 1.5em;
	}

	.page-link-text {
		font-size: 1.4em;
		flex-grow: 1;
		margin-top: 0.8em;
		margin-bottom: 0.8em;
	}

	.page-link img{
		height: 130px;
		width: auto;
	}

	.page-link::after {
		top: 4.8em;
		width: 45px;
		height: 18px;
	}

	.double-chevron-icon {
		height: 10px;
		margin-left: 0em;
	}

	.double-chevron-icon::before,
	.double-chevron-icon::after {
		width: 13px;
		height: 13px;
	}
}

/* ======================
== main support links === */

#support-list {
    counter-reset: support-counter;
}

#support-list h2 {
    counter-increment: support-counter;
    text-align: center;
    /* 縦並びにするための設定 */
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 2em;
    margin-bottom: 1em;
}

#support-list h2::before {
    content: counter(support-counter) ;
    color: #fff;
    background-color: #D4E4D9;
    border-radius: 100vmax;
    margin-bottom: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 1桁でも2桁でも綺麗な形を保つ設定 */
    min-width: 2em;
    height: 2em;
    padding: 0 0.2em 0.1em 0.2em; /* 微調整 */
}

#content1 section,
#content2 section,
#content3 section{
    margin-bottom: 6em;
}

.support-image {
    display: block;
    margin-inline: auto;
    width: fit-content;
    margin-bottom: 3em;
}

.support-image img{
    height: 180px;
    width: auto;
}

.support-list-text {
    margin-bottom: 4em;
}

@media (max-width: 374px){
    #support-list h2{
		font-size: 1.5em;
	}
}

@media (min-width: 1000px){
	#support-list h2 span{
		font-size: 1.3em;
	}

    .support-image img {
        height: 300px;
        width: auto;
    }
}


/* ======================
=== Instagram feed  ===== */

.instagram-feed .snapwidget-widget {
    aspect-ratio: 2 / 1;
    overflow:hidden;
    border: none;
    max-width: 100%;
}


/* ======================
== Content1 =========== */
.search-map iframe {
    width: 100%;
    height: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px){
	.search-map iframe {
        height: 500px;
    }
}

@media (min-width: 1000px){
	.search-map iframe {
        height: 600px;
    }
}


/* ======================
== Content3 =========== */

#content3 .stylish-link3 a {
    outline: 1px solid #5C7D76;
    display: block;
    position: relative;
    max-width: 300px;
    text-align: center; 
    padding: 16px 64px;
    margin-top: 3em;
    margin-inline: auto;
    z-index:999;
    transition: all 0.3s;
}

#content3 .stylish-link3 a::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 100%;
    height: 100%;
    background: rgba(212, 228, 217,0.8);
    z-index:-999;
    transition: all 0.3s ease;
}

#content3 .stylish-link3 a:hover::before {
    top: 0;
    left: 0;
    transition: all 0.3s;
}

@media (min-width: 768px){
    .table-stage-link {
        display: flex;
        gap: 5em;
    }

    .table-stage-link section{
        flex: 1;
    }
}


/* ======================
= about us/coordinator = */

#about-us img {
    margin-top: 1em;
    margin-bottom: 1.8em;
}


#about-us .img-frame2 {
    position: relative;
    display: inline-block;
    line-height: 0;
}

#about-us .img-frame2::after {
    content: "";
    position: absolute;
    top: 1em;
    left: 0;
    right: 0;
    bottom: 1.8em;

    /* 線の太さ（細くしたい場合はここを小さく：例 10px〜15px） */
    border: 12px solid;

    /* 斜線の細さと間隔の調整 */
    border-image: repeating-linear-gradient(
        45deg,
        #fff,             /* 線の色 */
        #fff 1.5px,       /* 線の太さ */
        transparent 1.5px, 
        transparent 5px   /* 線の間隔 */
    ) 12; /* borderの太さと数値を合わせる */

    opacity: 0.7;
}


