.template-page{
    background-image: linear-gradient(to bottom, #f8fafd 0, #eef3f8 100%);
    padding-bottom: 50px;
}

/*---------------------------------------------
	ヒーローセクション
---------------------------------------------*/
.hero-section{
    width: 100%;
}
.hero-section .section-title{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.hero-section .section-title:after{
    content: "TEMPLATE";
    display: inline-block;
    background-image: linear-gradient(0deg, #e4ebf4 0, transparent 100%);
    font-family: 'Montserrat', sans-serif;
    font-size: 200px;
    font-weight: 900;
    line-height: 1.05em;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateX(-50%);
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: -1;
}

@media screen and ( max-width: 810px ){
    .hero-section .section-title{
        min-height: 150px;
    }
    .hero-section .section-title:after{
        font-size: 150px;
        letter-spacing: -0.08em;
    }
}
@media screen and ( max-width: 480px ){
    .hero-section .section-title{
        min-height: 100px;
    }
    .hero-section .section-title:after{
        font-size: 80px;
    }
}



/* ===================================================
   検索エリア
=================================================== */
.template-search{
	max-width: 1080px;
	margin: 0 auto 50px;
}
.template-search dl{
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.template-search dl > div{
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.template-search dl dt{
	color: var(--color-primary);
	font-size: 16px;
	font-weight: 900;
}


.items-index input,
.items-index select,
.items-index textarea{
	padding: 5px 8px;
	border-radius: 5px;
}
.items-index input{
	text-align: center;
}
.items-index input:focus,
.items-index select:focus,
.items-index textarea:focus{
	background-color: #f3fbff;
	border-color: #78dcf0;
	box-shadow: 0 0 0 1px #78dcf0;
}

.template-search .item-search{
	flex: 1;
	display: flex;
	align-items: center;
	width: 100%;
	height: 50px;
	color: var(--color-text-light);
	padding: 5px 15px;
	margin: 0 0 10px;
	outline: none;
	position: relative;
}
.template-search .item-search:before {
	content: "";
	display: block;
	width: 22px;
	height: 22px;
	background: url(../../_images/common/icon-search.webp) no-repeat center;
	background-size: 100% auto;
	filter: brightness(0) saturate(100%) invert(64%) sepia(3%) saturate(980%) hue-rotate(166deg) brightness(89%) contrast(92%);
	z-index: 5;
}
.template-search .item-search .search-input{
	width: 100%;
	background-color: var(--color-white);
	padding: 12px 110px 12px 50px;
	font-size: 16px;
	text-align: left;
    border: 1px solid #e9ecef;
	border-radius: 30px;
	transform: translateY(-50%);
	position: absolute;
	right: 0;
	top: 50%;
}
.template-search .item-search .search-btn{
	width: 80px;
	background-color: var(--color-primary);
	color: var(--color-white);
	margin: 0 0 10px;
	padding: 5px 5px;
	font-size: 14px;
    text-align: center;
	letter-spacing: 0.15em;
	border-radius: 30px;
	outline: none;
	cursor: pointer;
	transform: translateY(-50%);
	position: absolute;
	top: 50%;
	right: 15px;
}

.template-search ul::-webkit-scrollbar {
	display: none;
}
.template-search ul{
	-ms-overflow-style: none; /* IE, Edge 対応 */
	scrollbar-width: none; /* Firefox 対応 */
}

/* フィルターボタン */
.filter-btn-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 8px;
}
.filter-btn {
	background-color: var(--color-white);
	color: var(--color-primary);
	padding: 6px 15px;
	font-size: 15px;
	border: 1px solid #afc2d2;
	border-radius: 20px;
	transition: background-color .2s, color .2s, border-color .2s;
	cursor: pointer;
}
.filter-btn:hover{
	border-color: var(--color-primary);
}
.filter-btn.is-active {
	background-color: var(--color-primary);
	color: var(--color-white);
	border-color: var(--color-primary);
}

@media screen and ( max-width: 810px ) {
	.template-search{
		margin: 0 20px 35px;
	}
	.template-search .item-search .search-input{
		padding: 12px 100px 12px 50px;
		font-size: 16px;
	}
	.template-search .item-search .search-btn{
		right: 10px;
	}

	/* フィルターボタン */
	.filter-btn-list > li{
		flex-shrink: 0;
	}
	.filter-btn {
		padding: 3px 15px;
		font-size: 15px;
	}
}

@media screen and ( max-width: 480px ) {
	.template-search dl{
		gap: 20px;
	}
	.template-search .item-search{
		padding: 5px 10px;
	}
	.template-search .item-search:before {
		width: 20px;
		height: 20px;
	}
	.template-search .item-search .search-input{
		padding: 10px 75px 10px 40px;
		font-size: 15px;
	}
	.template-search .item-search .search-btn{
		width: 65px;
		letter-spacing: 0;
		right: 7px;
	}
	.template-search .item-search .search-icon{
		left: 15px;
	}

	/* フィルターボタン */
	.filter-btn-list {
		gap: 8px 5px;
	}
	.filter-btn {
		padding: 3px 10px;
		font-size: 14px;
		letter-spacing: -0.05em;
	}
}



/* ===================================================
   下部エリア
=================================================== */
/**/
.template-box{
    max-width: 1080px;
    background-color: #fff;
    margin: auto;
    padding: 50px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    transition: opacity 0.3s ease;
    opacity: 1;
}
.template-box:not(:last-child){
    margin: 30px auto;
}

/**/
.template-box table{
    width: 100%;
}
.template-box table tr{
    border-bottom: 1px solid var(--color-border);
    transition: opacity 0.3s ease;
}
.template-box table td{
    padding: 20px 10px;
    vertical-align: middle;
}
.template-box table th:nth-of-type(2),
.template-box table td:nth-of-type(2){
    width: 180px;
}
.template-box table th:nth-of-type(3),
.template-box table td:nth-of-type(3){
    width: 250px;
}
.template-box table td a{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
    color: var(--color-accent);
    padding: 8px 5px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    border: 2px solid var(--color-accent);
    border-radius: 5px;
    transition: all .3s ease;
    position: relative;
}
.template-box table td a:before{
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url(../../_images/common/icon-upload.webp) no-repeat center;
    background-size: 100% auto;
    filter: brightness(0) saturate(100%) invert(58%) sepia(95%) saturate(1331%) hue-rotate(164deg) brightness(115%) contrast(83%);
    transform: rotate(180deg);
}

.template-box table td a:hover{
    background-color: var(--color-accent);
    color: var(--color-white);
}
.template-box table td a:hover:before{
    filter: brightness(0) saturate(100%) invert(100%) sepia(1%) saturate(1304%) hue-rotate(258deg) brightness(120%) contrast(100%);
}

.template-box table tr:first-of-type th{
    color: var(--color-primary);
    padding: 0 5px 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8em;
}
.template-box table tr:first-of-type{
    border-bottom: 1px solid #c3d1dd;
}


@media screen and ( max-width: 810px ){
    /**/
    .template-box{
        margin: 0 20px;
        padding: 3%;
    }
    .template-box:not(:last-child){
        margin: 30px 20px;
    }
    .template-box{
        padding-bottom: 10px;
    }

    /**/
    .template-box table{
        width: 100%;
    }
    .template-box table td{
        padding: 20px 5px;
    }
	.template-box table th:nth-of-type(2),
	.template-box table td:nth-of-type(2){
		width: 160px;
        font-size: 15px;
	}
}
@media screen and ( max-width: 480px ){
    .template-box{
        overflow-x: visible;
    }
    .template-box table,
    .template-box table tbody,
    .template-box table tr,
    .template-box table td{
        display: block;
        width: 100%;
    }
    .template-box table tr.title{
        display: none;
    }
    .template-box table tr{
        padding: 16px 0;
    }
    .template-box table td{
        padding: 0;
    }
    .template-box table td:first-of-type{
        margin-bottom: 12px;
    }
    .template-box table td:last-of-type{
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
    .template-box table td a{
        width: auto;
        padding: 10px 18px;
    }
}

