/* ----------------------------------------
   バナーエリア
---------------------------------------- */

.banner-area {
    padding: 0;
}

/* ----------------------------------------
   背景画像エリア
---------------------------------------- */

.banner-grid {
    position: relative;
    max-width: 1024px;
    margin: 0 auto;
}

/* 背景画像 */

.banner-bg {
    display: block;
    width: 100%;
    height:auto;
}

.banner-bg-pc {
	display:block;
}

.banner-bg-sp {
	display:none;
}

/* ----------------------------------------
   バナー配置
---------------------------------------- */

.banner-grid-inner {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 40px;

    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ----------------------------------------
   バナー
---------------------------------------- */

.banner-link {
    width: 177px;

    display: block;
    position: relative;
    overflow: hidden;

    border-radius: 8px;
    text-decoration: none;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

/* ----------------------------------------
   バナー画像
---------------------------------------- */

.banner-link img {
    display: block;
    width: 100%;
    height: auto;

    transition:
        transform .3s ease,
        filter .3s ease;
}

/* ----------------------------------------
   Hover
---------------------------------------- */

.banner-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
}

.banner-link:hover img {
    transform: scale(1.01);
    filter: brightness(1.05);
}

/* ----------------------------------------
   光エフェクト
---------------------------------------- */

.banner-link::before {
    content: "";

    position: absolute;
    top: 0;
    left: -130%;

    width: 50%;
    height: 100%;

    pointer-events: none;

    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, .45) 50%,
        rgba(255, 255, 255, 0) 100%
    );
}

.banner-link:hover::before,
.banner-link:focus-visible::before {
    animation: shine .8s ease;
}

@keyframes shine {

    from {
        left: -130%;
    }

    to {
        left: 150%;
    }

}

/* ----------------------------------------
   キーボード操作対応
---------------------------------------- */

.banner-link:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 4px;
}

/* ----------------------------------------
   タブレット
---------------------------------------- */

/* @media screen and (max-width: 768px) {

    .banner-grid-inner {
        bottom: 25px;
        gap: 15px;
    }

    .banner-link {
        width: 150px;
    }

}*/

/* ----------------------------------------
   スマホ
---------------------------------------- */

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

	.banner-area {
    	padding: 10px 0;
	}

	.banner-grid {
    	position: relative;
    	width: 100%;
    	margin: 0 auto;
	}
	
    .banner-grid-inner {
    	position: static;
    	display: flex;
        bottom: 15px;
        flex-direction: column;
        align-items: center;

        gap: 12px;
    }

	.banner-bg-pc {
		display:none;
	}

	.banner-bg-sp {
		display:block;
	}

    .banner-link {
        width: auto;
    }

}

/* ----------------------------------------
   モーション軽減
---------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .banner-link,
    .banner-link img {
        transition: none;
    }

    .banner-link:hover {
        transform: none;
    }

    .banner-link:hover img {
        transform: none;
        filter: brightness(1.05);
    }

    .banner-link::before {
        display: none;
    }

}


/* ---------------------------------------
    フッター用：バナー配置
---------------------------------------- */
.f_sns {
	text-align: center;
	font-size: 115%;
	font-weight: bold;
	padding: 20px 0 0;
}
.f_banner-grid {
    padding: 15px 0 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #888888;
}

.f_banner-item {
    position: relative;
    display: block;
    padding: 0 25px;
}

/* 1番目・2番目の右側に縦線 */
.f_banner-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 84px;
    background: #fff;
}

.f_banner-item img {
    display: block;
    width: 187px;
    height: 84px;
}

/* スマホ */
@media screen and (max-width: 767px) {

    .f_banner-grid {
        flex-wrap: nowrap;
        gap: 0;
    }

    .f_banner-item {
        padding: 0 10px;
    }

    .f_banner-item img {
        width: 100px;
        height: auto;
    }
    
    .f_banner-item:not(:last-child)::after {
    	height: 32px;
	}
}
