@charset "UTF-8";

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}

body {
	height: 100vh; /* 画面の高さちょうど */
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
}

h1 {
	margin-bottom: 0.5%;
}

/* スライド画像 */
.slide {
    width: 100%;
    height: auto;
    max-width: 1200px;
    max-height: 80vh; /* 画面の80%以内に収める */
    display: block;
    margin: 0 auto;
}

/* サムネイル一覧 */
.thumb-wrapper {
    display: flex;
    align-items: center;
	justify-content: center;
    gap: 5px;
    width: 100%;
    max-width: 700px;
}
.thumbnails {
    display: flex;
    gap: 15px;
    overflow: hidden; /* ← ここがポイント：見える範囲だけ表示 */
    width: 100%;
}
.thumbnails img {
    width: 50px;
    height: 30px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.thumbnails img.active {
    opacity: 1;
    border: 2px solid #333;
}

.thumb-arrow {
    font-size: 1.2rem;
    cursor: pointer;
    background: none;
    border: none;
    margin: 0;
    padding: 1% 0;
}

/* コンボボックス・ボタン */
.controls {
	width: 100%;
	max-width: 1200px;
	margin: 0;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px; /* ボタンの間隔 */
}
button {
	padding: 1%;
	white-space: nowrap; /* 文字の折り返し禁止 */
	font-size: 1rem;
	width: auto;
}
select {
	padding: 1%;
	white-space: nowrap; /* 文字の折り返し禁止 */
	font-size: 1rem;
	width: auto;
}

/* スマホサイズ設定 */
@media (max-width: 768px) {

	body {
		margin: 0 3%;
	}
	.thumb-wrapper {
		margin: 5% 0;
	}
	.thumbnails img {
	    width: 90px;
	    height: 50px;
	}
	button {
		padding: 3.5%;
	}
	select {
		padding: 3.5% 0 3.5% 3.5%;
	}
}