@import url('https://fonts.googleapis.com/css2?family=RocknRoll+One&family=Shippori+Antique+B1&display=swap');
html {
	font-size: 16px;
	height: 100%;
	font-family: "Shippori Antique B1", sans-serif;
  font-weight: 400;
  font-style: normal;
}

footer {
	text-align: center;
}

/* section2 のリストを中央表示にしつつ、バレットを文字の左側に表示する */
.section2 ul {
	display: inline-block; /* ブロック全体を中央に寄せるため */
	margin: 0 auto;        /* 横中央配置 */
	padding-left: 1.5rem;  /* バレットとテキストの隙間 */
	text-align: left;      /* アイテム内は左揃え（バレットがテキストの左に来る） */
}

/* section3 のリストを中央表示にしつつ、バレットを文字の左側に表示する */
.section3 ul {
	display: inline-block; /* ブロック全体を中央に寄せるため */
	margin: 0 auto;        /* 横中央配置 */
	padding-left: 1.5rem;  /* バレットとテキストの隙間 */
	text-align: left;      /* アイテム内は左揃え（バレットがテキストの左に来る） */
}

.section3-title {
	margin-bottom: 50px;
}

.section3-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem; /* カード間のスペース */
}

.section3-card {
	background: #ffebeb;
	border: 2px solid #050505;
	border-radius: 8px;
	padding: 2rem;
  width: 500px;
	box-sizing: border-box;
	text-align: left; /* テキストを左揃えに */
}

/* ! スクロールスナップ：縦方向（Y）でヘッダー（カルーセル）→section1→section2 を 1 スクロールごとに移動 */
body {
    min-height: 100vh;
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

header {
	scroll-snap-align: start;
	height: 100vh;
	min-height: 100vh;
	box-sizing: border-box;
	overflow: hidden;
}

nav {
	height: 100%;
}

.header-title {
  position: absolute;
  top: 20px;
	left: 50%;
  transform: translateX(-50%);
  text-align: center;
	margin: 0;
	background-color: #050505;
  color: rgb(255, 255, 255);
	padding: 8px 20px;
	border-radius: 50px;
  z-index: 2;
  white-space: nowrap;
}

.section1 {
	scroll-snap-align: start;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	background-image: url(../img/1.jpg);
	background-size: cover;
	background-position: center;
}

.section1 h2 {
  margin-top: 0;
	margin-bottom: 1rem;
}

.section1-div {
  color: rgb(0, 0, 0);
	background-color: rgba(255, 255, 255, 0.8); /* 半透明の白背景 */
	padding: 20px;
	border-radius: 10px;
	font-size: 1.5rem;
}

.section2 {
	scroll-snap-align: start;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	background-image: url(../img/2.jpg);
	background-size: cover;
	background-position: center;
}

.section2 h2 {
  margin-top: 0;
	margin-bottom: 1rem;
}

.section2-div {
  color: rgb(0, 0, 0);
	background-color: rgba(253, 253, 253, 0.8); /* 半透明の白背景 */
	padding: 20px;
	border-radius: 10px;
	font-size: 1.5rem;
}

.section3 {
	height:auto;
	box-sizing: border-box;
	padding: 2rem;
}

.section3-card-image {
	width: 10%;
}

.salearea {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px; /* 要素間のスペース */
	margin: 0 auto 50px auto;
	flex-wrap: nowrap; /* 改行させない */
	background-color: #fff;
	border-radius: 50px;
	padding: 20px;
}

.salearea p {
	margin: 0;
	font-weight: bold;
	color: #333;
	white-space: nowrap; /* テキストも改行させない */
}

.salearea .section3-card-image {
	flex-shrink: 0; /* 画像の縮小を防ぐ */
	width: 80px;
	height: 80px;
	object-fit: cover;
}

.section3-card-title {
  margin: 0 0 50px 0;
	text-align: center;
	background-color: #050505;
	color: #fff;
	border-radius: 50px;
}

.section3 h3 {
  margin-top: 0;
	margin-bottom: 1rem;
}

/* ! スクロールスナップ：縦方向（Y）でヘッダー（カルーセル）→section1→section2 を 1 スクロールごとに移動 */

/* ! カルーセル用スタイルここから */
.carousel {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	overflow: hidden;
}

.carousel-inner {
	width: 100%;
	height: 100%;
	position: relative;
}

/* 画像をレスポンシブ*/
.carousel-item {
	max-width: 100vw;
	max-height: 100vh;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.carousel-item {
	display: none;
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
	transition: opacity 1s;
	opacity: 0;
}

.carousel-item.active {
	display: block;
	opacity: 1;
	z-index: 1;
}

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: tomato;
	color: #fff;
	border: none;
	font-size: 2rem;
	padding: 12px;
	font-weight: bold;
	cursor: pointer;
	z-index: 2;
	border-radius: 50%;
	user-select: none;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 0;
}

.carousel-btn.prev {
	left: 10px;
}

.carousel-btn.next {
	right: 10px;
}

.carousel-btn:focus {
	outline: none;
}

/* アニメーションを嫌うユーザー向けの配慮 */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.carousel-item {
		transition: none !important;
	}
}
/* ! カルーセル用スタイルここまで */

@media (max-width: 1440px){
	.section3-inner {
	display: flex;
	flex-direction: column; /* 縦に並べる */
	align-items: center; /* 中央揃え */
	gap: 1.5rem; /* カード間のスペース */
  }
	.section3-card {
	background: #ffebeb;
  width: 100%; /* 画面幅いっぱいに */
	box-sizing: border-box;
	text-align: center; /* テキストを中央揃えに */
  }
}

@media (max-width: 768px) {
	.carousel-btn {
		font-size: 1rem;
		width: 24px;
		height: 24px;
	}
	.section3 {
		padding: 8px;
	}
	.section1-div {
		font-size: 1rem;
		padding: 8px;
  }
	.section2-div {
		font-size: 1rem;
		padding: 10px;
  }
	.section3-card h2 {
		font-size: 1rem;
		text-align: center;
	}
	.salearea {
		flex-direction: row; /* スマホサイズでも横並びを維持 */
		gap: 10px;
		flex-wrap: nowrap; /* 改行させない */
	}
}