html {
	scroll-behavior: smooth;
}
body {
	text-align: center;
}

.yokohaba {
		  margin-left:8%;
		  margin-right:8%;
		  padding-top: 30px;
		  padding-bottom: 10px;
		  text-align:center;
}

.mozi {
	font-size:  20px;
	font-weight: 700;
}

.center {
	display: flex;
  	flex-direction: column;
}

#ookisa1 {
		margin-top:0px;
		margin-bottom:0px;
		font-size: 50px;
		font-weight: 1000px;
}

#ookisa2 {
		margin-top:0px;
		margin-bottom:0px;
		font-size: 15px;
}

.midashi {
  position: relative;
  padding: 1rem .5rem;
  font-size: 40px;
  display: inline-block; /* アニメーションを適用するために必要 */
}

.midashi:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%; /* 初期状態では幅を0に */
  height: 6px;
  content: '';
  border-radius: 3px;
  background-image: -webkit-gradient(linear, right top, left top, from(#2af598), to(#009efd));
  background-image: -webkit-linear-gradient(right, #2af598 0%, #009efd 100%);
  background-image: linear-gradient(to left, #2af598 0%, #009efd 100%);
  transition: width 1s ease-out; /* アニメーションの設定 */
}

/* ページ読み込み時にアニメーションを適用 */
.midashi.loaded:after {
  width: 100%; /* アニメーション後、幅が100%に */
}

mark {
	background-color:gold;
}

h2 {
	margin-top: 3%;
	margin-bottom:0%;
	margin-left:8%;
	margin-right:8%;
	background-color:khaki;
	padding: 1rem 2rem;
 	border-bottom: 3px solid #dcdcdc;
	border-left: 5px solid #000;
	background: #f4f4f4;
 	border-radius: 3px;
 	box-shadow: 0 0 8px rgba(0,0,0,.4);
 	text-align:center;
}

.modoru {
	margin-top: 70px;
	margin-bottom:40px;
}
#back-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	border: none;
	border-radius: 50%;
	background-color: #0078ff;
	color: white;
	font-size: 20px;
	font-weight: bold;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s ease;
	z-index: 1000;
}

#back-top:hover {
	background-color: #005fcc;
	transform: scale(1.1);
}

#back-top::after {
	content: "上に戻る";
	position: absolute;
	bottom: 60px; /* ボタンの上に表示 */
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.5);
	color: #ADE8E6;
	font-size: 12px;
	padding: 4px 8px;
	border-radius: 6px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-top:hover::after {
	opacity: 1;
	transform: translateX(-50%) translateY(-5px);
}

#back-top.show {
	opacity: 1;
	visibility: visible;
}

.hyou {
	padding-top:35px;
	padding-bottom:40px;
	display:flex;
	justify-content: center;
}

.pc{
  display: block;
}

.sp{
  display: none;
}

.botann{
		  display: inline-block;
		  padding: 0.5em 1em;
		  text-decoration: none;
		  background: #668ad8;/*ボタン色*/
		  color: #FFF;
		  border-bottom: solid 4px #627295;
		  border-radius: 3px;
}

.botann:active {
  /*ボタンを押したとき*/
  -webkit-transform: translateY(4px);
  transform: translateY(4px);/*下に動く*/
  border-bottom: none;/*線を消す*/
}

/* スマホ向け（1200px以下） */
@media screen and (max-width: 1200px) {
	
	.pc{
    display: none;
  }
  .sp{
    display: block;
  }
	
}

/*レスポン*/
video.douga {
    width: 100%;
    height: 100%;
    text-align: center;
    max-width: 520px; /* PC版での最大幅 */
}
