﻿	*, *::before, *::after
	{
		box-sizing: border-box;
	}

	.header-slider
	{

		margin: auto;
		display: block;
		position: relative;
		width: 100%;
		height: 500px;
		overflow: hidden;
	}

	.header-slider .slides
	{
		position: relative;
		width: 100%;
		height: 100%;
	}

	.header-slider .slide
	{
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		opacity: 0;
		transition: opacity 1s ease;
	}

	.header-slider .slide img
	{
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.header-slider .slide.active
	{
		opacity: 1;
	}

	.caption
	{
		position: absolute;
		top: 50%;
		left: 50%;
		width: 80%;
		height: auto;
		transform: translate(-50%, -50%); /* 中央寄せ */
		color: #fff;
		background: rgba(0, 0, 0, 0.5); /* 半透明背景 */
		padding: 30px 35px;
		border-radius: 15px;
		font-size: 40px;
		font-weight: bold;
		font-family: "Meiryo", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "sans-serif";
		text-align: center;
	}

	@media screen and (max-width: 768px)
	{
		.caption
		{
			width: 95%;
			font-size: 16px;
			line-height: 1.4;
			padding: 15px;
			border-radius: 10px;
		}
	}	/* 左右ナビボタン */

	.header-slider .nav
	{
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		background: rgba(0,0,0,0.4);
		color: white;
		border: none;
		font-size: 40px;
		padding: 8px 16px;
		cursor: pointer;
		z-index: 10;
	}

	.header-slider .nav.prev
	{
		left: 10px;
	}
	.header-slider .nav.next
	{
		right: 10px;
	}

	.header-slider .nav:hover
	{
		background: rgba(0,0,0,0.6);
	}

	/* ドット */
	.header-slider .dots
	{
		position: absolute;
		bottom: 20px;
		width: 100%;
		text-align: center;
	}

	.header-slider .dot
	{
		display: inline-block;
		width: 12px;
		height: 12px;
		margin: 0 5px;
		background: rgba(255,255,255,0.6);
		border-radius: 50%;
		cursor: pointer;
	}

	.header-slider .dot.active
	{
		background: white;
		width: 14px;
		height: 14px;
	}
