@charset "UTF-8";/*%が多いのでremに変える*/
html{
	scroll-behavior: smooth;
}

body {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 400;
  font-style: normal;
}



#p {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  pointer-events: none;

  z-index: -1;
}
/*styleここから*/
/* シンプルモード */
body.simple {
  background: #fff;
  animation: none;
}



/* パステル */
body.pastel {
  background: linear-gradient(
    120deg,
    #fffab9,
    #ffe4f1,
    #ceffce,
    #fffab9,
    #ffe4f1,
    #ceffce
  );
  background-size: 300% 300%;
  animation: bgMove 30s linear infinite;
}

/* 阿〇寛 */
body.hiroshi {
   min-height: 100vh;
  background-image: url(../img/阿部寛風背景2.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

/* ユニコーン */
body.unicorn {
  background: #b5ffb5; /* 黄緑 */
  animation: none;
}

@keyframes bgMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
/*ここまで*/
#push{
	display: none;
}
.name{
    text-align: center;
	position: relative;
	top:1.5rem;
}

.controls{
    position: absolute;
    left: 3%;
    top:7rem;/*画面幅に合わせてもう少し細かく設定すると見やすくなるかも。*/

	justify-content: flex-start;
}

.link4{
	position: relative;
    text-align: right;
	top: 0.5rem
}

.swiper-wrapper{
	transform: translate3d(0, 0, 0);
}

.swiper-slide{
	backface-visibility: hidden;
	padding-bottom: 10px;
}
.slider{
	width: 65%; /*ここでトップの画像のスライド幅変えられる*/
	margin: 0 auto;
	
}

.slider img{
	width:610px; /*ここでトップの画像の大きさ変えられる(%で指定すると特定の横幅でブレる可能性があるので注意)*/
	object-fit: cover;
}

.sub-slider{
	width:600px;
	margin: 0 auto;
	
}

.sub-slider .swiper-wrapper{
	justify-content: center;
	padding-left: 77px;
}

.sub-slider .swiper-slide{
	width: 100px;
	opacity: 0.5;
	cursor: default;
	flex-shrink: 0;
}

.sub-slider .swiper-slide img{
	cursor: pointer;
	opacity: 0.5;
	
}

.sub-slider .swiper-slide-thumb-active{
	opacity: 1 !important;
}

.sub-slider .swiper-slide-thumb-active img{
	opacity: 1 ;
	border: solid 1px;
}

.sub-slider img{
	width:100%;
	object-fit: cover;
}



.jump li{
	list-style: none;
	line-height: 2rem;
	text-align: right;
}

.jump a{
	text-decoration: none;
	color: #277dff;
	font-weight:bold;
}

.jump a:hover{
	color: #83ecff;
	font-size: 1.1rem;
}

.push{
	display: none;
}

.swiper{
    text-align:center;
}

.select{
    text-align: center;
}

details.abc h3::after, details.abc h3::before{
    content: none;
}

.prof{
text-align: center;
}

.prof summary{
	font-size:180%;
}
.prof p{
	font-size:200%;
}
.box{
width: 46.3%;
margin: 0 auto;
border: 2px solid #333;
border-radius: 5px;
padding: 30px;
position: relative;
}

.box::before{
background: #fff;
color: #333;
content: "好きなアニメのセリフ";
font-weight: bold;/*css レイアウト 崩れ 縮小、とかで検索*/
padding: 3px 10px;
position:absolute;
/*left: 38.5%;*/
left:50%;
transform: translateX(-50%);
bottom: 7.8rem;
}/*参考：https://www.webtan.cc/wp/htmlcssjquery-%E3%82%B3%E3%83%BC%E3%83%87%E3%82%A3%E3%83%B3%E3%82%B0/%E3%80%90css%E3%80%91%E7%B7%9A%E3%81%AB%E9%87%8D%E3%81%AA%E3%82%8B%E8%A6%8B%E5%87%BA%E3%81%97%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E4%BB%98%E3%81%8D%E3%81%AE%E6%9E%A0%E7%B7%9A%E3%81%A7%E5%9B%B2/*/

.like{
	text-align: center;
}

.like a{
	text-decoration: none;
	font-size: 1.7rem;
	color: #000;
}

.like a:hover{
	color: #999898;
}

.link ul{
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
	text-align: center;
}

.link li{
	flex: auto;
}

.link p{
    text-align: center;
    font-weight: bold;
    font-size:1.3rem;
}

.link a{
	font-size: 1.5rem;
	color: #000;
}

.link a:hover{
	color: #999898;
}

.Link{
    text-decoration: none;
    color: #000;
}

summary{
	font-size: 1.5rem;
	font-weight: bold;
	margin: 0 auto;
	width: 13rem;
}

.top{
	opacity: 0;
	position: fixed;
	left: 90%;
	bottom:2%;
	background: transparent;
	cursor: pointer;
	visibility: hidden;
}

.top img{
	width: 3.5rem;
}

.top.is-active{
	opacity: 1;
	background: none;
	border: none;
	pointer-events: auto;
	visibility: visible;

	z-index: 1000;
}

.top.is-active img{
	opacity: 1;
}

.space{
	display: none;
}
footer{
    text-align: center;
}

.dragons{
	text-align: center;
}

.dragons h2{
	width: 40rem;
	font-size: 2rem;
	margin:0 auto;
	margin-top: 1rem;
	margin-bottom: 1rem;
	background-color: #277dff;
	color: #fff;
}

#opponent,#score,#winner,#homerun{
	font-size: 1.7rem;
}


#scoreboard{
    border-collapse:collapse;
    margin-bottom:20px;
	margin: 15px auto;
}

#scoreboard th,
#scoreboard td{
    border:1px solid #ccc;
    padding:6px 10px;
    text-align:center;
}

#scoreboard tr:nth-child(2){
	background-color: #fff;
}

#scoreboard tr:last-child{
    font-weight:bold;
    background:#e8f4ff;
}
/*{border:1px solid}*/
@media (max-width:1400px){
	
}

@media (max-width:1200px){
	.box{
		width:70%;
	}
}

@media (max-width:1000px){/*ここでラジオボタン2×2に変更する*/
	.slider{
	width: 75%; /*ここでトップの画像のスライド幅変えられる*/
	margin: 0 auto;
	}
	
	.slider img{
	width:540px; /*ここでトップの画像の大きさ変えられる(%で指定すると特定の横幅でブレる可能性があるので注意)*/
	object-fit: cover;
	}

	.prof p{
		font-size:170%;
	}
	.box{
		width:70%;
	}

	.controls{
    position: absolute;
    display: flex;
    flex-wrap: wrap;
	justify-content: center;
    left:50%;
	width: 300px;
	transform: translateX(-50%);
    /*画面幅に合わせてもう少し細かく設定すると見やすくなるかも。*/
}
    .controls label{
        display: flex;
        width:50%;
        box-sizing: border-box;

		justify-content: flex-start;
    }/*6/22：1000px以下になったときに真ん中に寄っていないので、寄せる*/

    .controls input[type="radio"]{
        margin-right: 6px;
        margin-top: 2px; /* 微調整 */
    }

	.space{
		display: inline;
	}
}
/*styleここまで*/

/*スマホサイズここから*/
@media (max-width:850px){

	.jump{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1500;
  display: block;
	}

	.jump ul{
		display: block;
		padding-right: 1rem;
	}
	
	.JUMP{
		/*display: none;
		background-color: #aef0ea;*/
		
  position: absolute;
  top: 0;
  right: -300px;   /* ← ここ重要 */
  width: 250px;
  height: 100%;
  background-color: #fff;
  padding-top: 80px;
  transition: 0.3s;
  z-index: 1502;

  /*display: block; /* ← noneはやめる */
	}
/*ここから(仮)*/
.jump.active{
  pointer-events: auto;
}

.jump.active .overlay {
  opacity: 1;
}

.jump.active .JUMP {
  right: 0;
}

/*ここまで(仮)*/

	/*.JUMP.is-show{
		display: block;
		position: absolute;
		top:15%;

		z-index: 1000;
	}*/

	.swiper{
		position: relative;
		z-index: 0;
	}

	.slider{
	width: 100%; /*ここでトップの画像のスライド幅変えられる*/
	margin: 0 auto;
	z-index: 0;
	}

	.slider img{
	width:450px; /*ここでトップの画像の大きさ変えられる(%で指定すると特定の横幅でブレる可能性があるので注意)*/
	object-fit: cover;
	z-index: 0;
	}
	
	.sub-slider .swiper-wrapper{
		display: none;
	}
	#push{
	display: block;
	
	width: 44px;
	height: 34px;
	top: 20px;
  	right: 20px;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 0;
	cursor: pointer;

	position: fixed;
	z-index: 2000;
	/*position: fixed;
 
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;*/
	}

	#push span{
		 display: block;
  height: 3px;
  background: #000;
  margin: 5px 0;
  transition: 0.3s;
	}

	.overlay{
		position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* 薄いグレー */
  opacity: 0;
  transition: 0.3s;
  z-index:1501;
	}
	
#push.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6.1px);
}
#push.active span:nth-child(2) {
  opacity: 0;
}
#push.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}
	
	.main_img img{
		width:90%;
	}
	
	.prof summary{
		font-size: 180%;
	}

	.prof p{
		font-size: 150%;
	}

	.box{
		width: 65%;
	}

	.box::before{
		left:50%;
		transform: translateX(-50%);
		bottom: 6.2rem;/*box内部で改行されると「好きなアニメのセリフ」の位置がずれるので、画面幅ごとに文字サイズを踏まえて調整*/
	}

	.word{
		display: none;
	}

	.like a{
		font-size: 1.19rem;
	}

	.dragons h2{
	width: 80%;
	font-size: 2rem;
	
	}

	.link ul{
		flex-direction: column;
		text-align: center;
		padding: 0;
	}

	.link li{
		padding-bottom: 15px;
	}

	.link a{
		font-size: 150%;
	}	
}

@media (max-width:650px){
	.top{
		left: 88%;
	}
}

@media (max-width:535px){
	.top{
		left:83%;
	}
}

@media (max-width:499px){
    .box::before{
		bottom: 7.5rem;
	}

	.slider img{
	width:350px; /*ここでトップの画像の大きさ変えられる(%で指定すると特定の横幅でブレる可能性があるので注意)*/
	object-fit: cover;
	z-index: 0;
	}

	.prof{
		padding-bottom: 2rem;
	}

	#dragons{
		font-size: 1.7rem;
	}

	#scoreboard{
		width: 20%;
	}
}

@media (max-width:385px){
	.slider img{
	width:250px; /*ここでトップの画像の大きさ変えられる(%で指定すると特定の横幅でブレる可能性があるので注意)*/
	object-fit: cover;
	z-index: 0;
	}
}

@media (max-width:370px){
	h1{
		font-size: 1.5rem;
		padding-top: 1rem;
	}

	.controls{
		padding-top: 1rem;
	}

	.swiper-slide{
		padding-top: 2rem;
	}
}

@media (max-width:353px){
	.box::before{
		bottom: 9.5rem;
	}
}
/*{border:solid 1px}
/*https://qiita.com/access3151fq/items/a057c9b6398afae43670←テーマを切り替える際、役に立ちそう*/