@charset "UTF-8";
/*---------------------------reset*/
* {
  padding: 0;
  position: 0;
}
html {
  height: 100%;
  font-size: 62.5%;
}
/* 基礎設定 */
body {
  font-family: "Sawarabi Gothic", sans-serif;
  font-size: 1.6rem;
  color: #444444;
  height: 100%;
  margin: 0;
  padding: 0;
}
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
  color: inherit; /* 親要素の色を継承 */
}
img {
  vertical-align: bottom; /* 画像の不要な下部の隙間をなくす */
  max-width: 100%; /* 親要素からはみ出さないように */
  height: auto; /* 縦横比を維持 */
}

/*----------------------ローディングアニメーション*/
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* アニメーション本体 */
#loader {
    width: 300px;
    height: 300px;
}

/* 読み込み完了後にローディング画面を非表示にする */
.loaded #loader-wrapper {
    display: none;
}
/*--------------------------- header*/
header {
	top: 0;          
    left: 0; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    background-color: #fff;
	position: fixed; /* ウィンドウに固定 */        
    width: 100%; 
	height:70px;
	padding: 0px auto;
    z-index: 100;  
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header h1 img {
  width: 40px;
  height: auto;
	margin: 10px;
}

nav {
    display: flex; 
    align-items: center;
    gap: 30px; 
}

.BoxPage {
    display: flex; 
    gap: 30px; 
    justify-content: space-between;
	
}

.BoxPage li a {
    padding: 0 10px;
    color: #4a914d;
    font-weight: bold;
    font-size: 2rem;
	padding-right: 15px;
 	border-right: 1px solid #4a914d;
}
.BoxPage li a:hover {
    color: #517fd3; /* 選択時のカラー変更 */
}

/* ----- アイコンスタイル ----- */
.BoxIcon {
  display: flex;
	margin-right: 20px;
}
.BoxIcon li img {
  width: 40px;
  height: auto;
	margin: 10px;
}

/* ベルが揺れるアニメーション */
@keyframes bell-shake {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(15deg); }
    40% { transform: rotate(-15deg); }
    50% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.bell-shake-animation {
    animation: bell-shake 1.5s ease-in-out  infinite;
	transform-origin: top center;
}
/*--------------------------- main*/
main {
	background-color: #F4F4F4;	
	background-size: cover;
	padding-bottom: 50px;
}

/* パンくずリスト */
.BreadCrumb {
    margin-top: 60px; 
	margin-bottom: 30px;
    padding: 20px; 
    background-color: #F4F4F4; 
    border-bottom: 1px solid #ddd; 
    font-size: 1.4rem; 
}

/* リストリセット */
.BreadCrumb ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; 
}

/* リスト */
.BreadCrumb li {
    display: flex; 
}

/* リンク */
.BreadCrumb li a {
    text-decoration: none;
    color: #4a914d; 
    white-space: nowrap;
}

/* ホバー */
.BreadCrumb li a:hover {
    text-decoration: underline; 
    color: #2e3eb2;
}

/* 矢印（'>'） */
.BreadCrumb li:not(:last-child)::after { /* 最後の項目以外に適用 */
    content: '>'; /* 矢印の文字 */
    margin: 0 8px; /* 矢印の左右の余白 */
    color: #4A914D; 
}

/* 現在ページ */
.BreadCrumb li:last-child {
    color: #4A914D; /* 現在ページの文字色を少し濃くする */
    font-weight: bold; /* 現在ページの文字を太くする */
}

/* ----- TRPG関連 ----- */
/* 紹介画像 */
.ImgTrpg{
	width: 90%;
	height: auto;
	margin: 0 auto;
}

/* シナリオ3個格納 */
.BoxTrpg {
  display: flex; 
  justify-content: center;
  flex-wrap: wrap; 
  gap: 50px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 30px;
	
    /* ★ フェードイン最初*/
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
    background-image: url(../img/sabpage-game/background-star.png);
}

	/* ★ フェードイン後*/
.BoxTrpg.is-visible {
		opacity: 1;
		transform: translateY(0);
	}

/* シナリオ単体 */
.BlockTrpg {
  width: 270px;
	margin: 0 auto;
}

.BlockTrpg:hover{
	opacity: 0.9;
}

/* バッジ付き画像 */
.BadgeContainer {
    position: relative;
    display: inline-block; 
}

/* トレーラー画像  */
.BadgeContainer img:first-child {
	width: 90%;
	height: auto;
	box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
    display: block;
	margin: 0 auto;
    max-width: 100%;

}


/* バッジ */
.BadgeIconTop {
    position: absolute;
    z-index: 10;
    width: 70px; 
    height: auto; 
	top: -10px; /* absoluteで負の値ははみ出る */
    right: -10px; 
}
.BadgeIconTop:hover{
	transform: scale(1.1);
}

.BadgeIconFree {
    position: absolute;
    z-index: 10;
    width: 70px; 
    height: auto; 
	top: -10px;
    right: -10px; 
}
.BadgeIconFree:hover{
	transform: scale(1.1)
}


.BlockTrpg dl{
    width: 260px;
    margin: 0;
    border-radius: 30px;
    background-color: #FFF;
    padding:5px;
}
.BlockTrpg dl dt {
    font-weight: bold;
    font-size: 2rem;
    width: 250px;
    height: 70px;
    border-bottom: 1px dotted #404040;
    display: flex;
    align-items: center;
    justify-content: center;
	margin: 0 auto;
	margin-bottom: 10px;
}

.CatchCopy {
	width: 250px;
  text-align: center;
	margin: 0 auto;
	margin-bottom: 10px;
}
.Explanation {
	width: 200px;
  text-align: left;
	margin: 0 auto;
	margin-bottom: 10px;
}

/*-------------------------footer*/
footer {
    width: 100%;
	height: 300px;
    background-color: #fff;
    padding: 80px auto;
	text-align: center;
	
}
.BoxNav{
	display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
}
.BoxNav nav {
  height: 200px;
  display: block;
}
.BoxNav nav a {
  display: flex;
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  align-items: center;
}
.BoxNav nav a:hover {
    color: #517fd3;
    text-decoration: underline;
}
.BoxNav nav a img {
  width: 30px;
  height: 30px;
  justify-content: flex-end;
  margin: 5px;
}

/*-------------------------jump*/
.ATop {
    position: fixed;
	padding: auto;
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255,255,255,0.50);
    border-radius: 50%;
    border: 2px solid #4A914D;
    font-size: 3rem;
    text-decoration: none;
    text-align: center;
    color: #4a914d;
}

.ATop:hover{
	transform: scale(1.1)
}

/*----------------------950px変更*/
@media (max-width: 992px) {
	body{
		min-width: 550px;
	}
	
	
	/*header*/
	header{
		width: 100%;
		padding: 0px auto;
	}
	
	header h1 img { 
    min-width: 40px;
	margin: 10px;
}
	
	.BoxIcon li img {
	width: 0;
    display: none;
}
	
	.BoxPage li a {
		padding: 0 10px;
		color: #4a914d;
		font-weight: bold;
		font-size: 2rem;
		padding-right: 15px;
		border-right: 1px solid #4a914d;
	}
}