html{
    height: 100%; /* HTMLとBODYの高さを100%にする */
    margin: 0; /* 余白をなくす */
    padding: 0; /* パディングもなくす */
}

body{
	width:100%;
	height:100%;
	padding:0;
	margin:0;
    line-height: 1.3em;
    font-size: 0.7em;
    font-weight: 500;
	background:url(img/background.png)center center / cover no-repeat fixed;
    height: 100vh;
    background-position:center bottom;
    font-family:A-OTF UD新ゴ Pro,Verdana, sans-serif;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%; /* Safari */
}

img{
	vertical-align: bottom;
}

/*------------------------------------------------------------
	表示領域
------------------------------------------------------------*/

header{
    position: fixed;

    height:50px;
    background-color: rgb(255, 255, 255,0.9);
    left: 0;
    top: 0;
    width: 100%;
    border-bottom: solid 3px black;
    z-index: 100;
}

.scroll-down header {
    margin-top: -90px;
}
.scroll-up header {
    margin-top: 0px;
}

footer{
    display:flex;

    height:50px;
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;

    display:flex;
    border-top:solid 3px white;
    z-index: 100;
}

.wrapper {
    display: flex;
}
main {
    flex: 1;

    max-width: 960px;
    min-width: 480px;
    min-height: 100vh; /* ビューポート全体に広げる */
    background-color: rgba(255, 255, 255, 0.8);
    margin: 0 auto;
    padding: 8px;
    box-shadow: 0 0 20px black;
    box-sizing: border-box;
}
aside {
    width: 220px;
    max-height:590px;
    min-width: 0;
    background-color: rgba(78, 78, 78, 0);
    margin-left: 20px;
    position: sticky;
    top:50px;
}

div.Jadge{
    background-color: #000000;
    border-radius: 10px;

    font-size: 0.9rem;
    line-height: 1.5rem;
    padding-left: 10px;
    padding-right:10px;
    margin-bottom: 5px;
    
    font-weight: 700;
    color:rgb(251, 255, 39);
    width: fit-content;
}

div.SerifLeft {
    display: flex; /*横並び*/
    background-color: #ffffff80;
    border-radius: 100px;
    margin: 5px 0 5px 0;
    width: fit-content;
    box-shadow: 0 0 2px black;
}

div.SerifRight {
    display: flex; /*横並び*/
    justify-content: flex-end;
    background-color: #ffffff80;
    border-radius: 100px;
    margin: 5px 0 5px auto;
    width: fit-content;
    box-shadow: 0 0 2px black;
}

div.SerifPL {
    display:flex;
    background-color: #00000062;
    border-radius: 100px;
    margin: 10px 40px 0 0;
    padding:3px 10px 2px 5px;
    width: fit-content;
}

div.character {
    display: flex; /*横並び*/
    align-items: center;
}

div.lucky {
    display: flex; /*横並び*/
    align-items: center;
}


img.lucky {
    max-width: 100%; /* 親要素であるasideの幅に収める */
    object-fit: contain;
    height: auto;
}

img.lucky2 {
    margin: auto 20px auto 0;
    max-width: 200px;
    object-fit: contain;
    height: auto;
}

img.serif{
    max-width: 75px;
}

img.character{
    margin:auto 20px auto 0;
    height:300px;
    max-width: 200px;
    object-fit: cover;
}

img.title{
    width:100%;
}

img.map{
    width:75%;
    margin: auto;
    display: block;
    cursor:  pointer;
}

figure.SerifLeft {
    max-width: 100px;
    margin: auto 0 auto 0;
    padding: 0 0 0 5px;
    position: relative;
  }

figure.SerifRight {
    max-width: 100px;
    margin: auto 0 auto 0;
    padding: 0 5px 0 0;
    position: relative;
}

p.SerifLeft {
    margin: auto 35px auto 5px;
    padding: 5px 0 5px 0;
}

p.SerifRight {
    margin: auto 5px auto 20px;
    padding: 5px 0 5px 0;
}

h1.Info{
    line-height:2.0rem;
	margin:5px 0px 15px 0px;
	padding:2px 0px 0px 10px;
	
	background:linear-gradient(left,rgba(0, 0, 0, 1.0),rgba(0,0,0,0));
	background:-webkit-linear-gradient(left,rgba(0, 0, 0, 1.0),rgba(0,0,0,0));
	background:-moz-linear-gradient(left,rgba(0, 0, 0, 1.0),rgba(0,0,0,0));
	
	font-size:1.4rem;
	font-weight:900;
	color:white;

	text-align:left;
	border-left: 6px solid #4e4e4e;
}

h2.Info{
    line-height:1.0rem;
	font-size:1.2rem;
	font-weight:900;
	
	padding: 0.2em 0 0.2em 0.2em;
	margin:0px 0px -2px 0px;
	
	border-left: 6px solid #000000;
}

h3.Info{
    line-height:1.0rem;
	font-size:1.0rem;
	font-weight:900;
    min-width: 150px;
    margin: 2px;
    padding: 3px 20px 3px 3px;

    background:rgb(120, 120, 120);
    display: inline-block;
}

h3.B{
    line-height:0.8rem;
	font-size:0.7rem;
	font-weight:900;
    margin: 3px 0 5px 0;
    padding:3px 10px 3px 5px;

    color:white;
    background:rgba(0, 0, 0, 0.7);
    display: inline-block;
    border-radius: 100px;
}

h3.BB{
    line-height:1.0rem;
	font-size:0.9rem;
	font-weight:900;
    margin: 3px 0 5px 0;
    padding:3px 10px 3px 5px;

    color:white;
    background:rgba(0, 0, 0, 0.7);
    display: inline-block;
    border-radius: 100px;
}

h3.Y{
    line-height:0.8rem;
	font-size:0.7rem;
	font-weight:900;
    margin: 3px 0 5px 0;
    padding:3px 10px 3px 5px;

    color:rgb(255, 230, 0);
    background:rgba(75, 64, 0, 0.856);
    display: inline-block;
    border-radius: 100px;
}

h3.W{
    line-height:0.8rem;
	font-size:0.7rem;
	font-weight:900;
    margin: 3px 0 5px 0;
    padding:1px 5px 1px 5px;

    color:Black;
    background:rgba(255, 255, 255, 0.7);
    display: inline-block;
    border-radius: 100px;
}

hr.min{
    border: 0;
    height: 1px;
    background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:    -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:     -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:      -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
}

hr.Info{
	height:4px;
	border:0;
	background:linear-gradient(left, rgb(54, 54, 54), rgba(54,54,54), rgba(167,214,248,0));
	background:-webkit-linear-gradient(left, rgb(54, 54, 54), rgba(54,54,54), rgba(167,214,248,0));
	background:-moz-linear-gradient(left, rgb(54, 54, 54), rgba(54,54,54), rgba(167,214,248,0));
	margin:0px 0px 10px 0px;
}

hr.DotW{
	border-width: 3px 0 0 0;
	border-style: dashed;
	border-color: #ffffff;
}
hr.DotB{
	border-width: 3px 0 0 0;
	border-style: dashed;
	border-color: #000000;
}

hr.Gra{
	position: relative;
	height: 3px;
	border-width: 0;
	background-image: -webkit-linear-gradient(left, rgb(54, 54, 54,0),rgb(54, 54, 54,0.2), rgba(54,54,54,1),rgb(54, 54, 54,0.2), rgba(54,54,54,0));
	background-image:         linear-gradient(left, rgb(54, 54, 54,0),rgb(54, 54, 54,0.2), rgba(54,54,54,1),rgb(54, 54, 54,0.2), rgba(54,54,54,0));
}

details.Success{
    margin-bottom: 5px;
    margin-left: 10px;
    width: fit-content;
}

details.Success[open]{
    background-color: rgba(0, 32, 90, 0.3);
    border-radius: 10px;
}

summary.SuccessSummary{
    background-color: rgb(0, 32, 90);
    padding:5px;
    color:white;
    font-weight: 700;
    border-radius: 10px;        /* 角丸指定 */
}

summary.CSuccessSummary{
    background-color: rgb(0, 38, 255);
    padding:5px;
    color:white;
    font-weight: 700;
    border-radius: 10px;        /* 角丸指定 */
}

div.SuccessContent{
    border-top: 7px solid rgb(0, 32, 90);
    margin-top: -7px;
    margin-bottom: 0px;
    padding: 10px;
}

div.CSuccessContent{
    border-top: 7px solid rgb(0, 38, 255);
    margin-top: -7px;
    margin-bottom: 0px;
    padding: 10px;
}

details.Failure{
    margin-bottom: 5px;
    margin-left: 10px;
    width: fit-content;
}

details.Failure[open]{
    background-color: rgba(66, 66, 66, 0.3);
    border-radius: 10px;
}

summary.FailureSummary{
    background-color: rgb(66, 66, 66);
    padding:5px;
    color:white;
    font-weight: 700;
    border-radius: 10px;        /* 角丸指定 */
}

div.FailureContent{
    border-top: 7px solid rgb(66, 66, 66);;
    margin-top: -7px;
    margin-bottom: 0px;
    padding: 10px;
}

p.side{
    padding:0;
    margin: 10px 0px 5px 0px;
    text-align: center;
    font-weight: 900;
    color:#fff;
}

p.head{
    text-align: center;
    font-weight: 900;
    font-size: 0.7rem;
    color:rgb(0, 0, 0);
}

p.L{
    text-align: left;
    margin:0;
}

p.R{
    text-align: right;
    margin:0;
}

div.backB{
    background-color: rgba(54, 54, 54, 0.4);
    padding:10px;
    margin:10px 10px 10px 10px;
    border-radius: 5px;
    box-shadow: 0 0 3px black;
}

div.backW{
    background-color: rgba(255, 255, 255, 0.288);
    padding:10px;
    margin:10px 10px 10px 10px;
    border-radius: 5px;
    box-shadow: 0 0 3px black;
}

div.backR{
    background-color: rgba(255, 159, 159, 0.288);
    padding:5px;
    margin:10px 0 10px 0;
    border-radius: 5px;
}

div.backY{
    background-color: rgba(255, 245, 159, 0.527);
    padding:5px;
    margin:10px 10px 10px 10px;
    border-radius: 5px;
    box-shadow: 0 0 3px black;
}

a{
    text-decoration: none;   /*下線削除*/
}

a.head{
    line-height: 50px;
    padding:auto;
    text-align: center;
    font-weight: 900;
    font-size: 0.7rem;
    width: 20%;
    color:rgb(0, 0, 0);
}

a.headN{
    line-height: 50px;
    padding:auto;
    text-align: center;
    font-weight: 900;
    font-size: 0.7rem;
    width: 20%;
    background-color: #333333;
    color:rgb(255, 255, 255);
    cursor: default;
}


a.foot{
    padding: 15px;
    text-align: center;
    color:white;
    font-weight: 900;
    font-size: 1.0rem;
    width: 20%;
    color:white;
}

a.footN{
    background-color: rgb(228, 228, 228);
    padding: 15px;
    text-align: center;
    color:white;
    font-weight: 900;
    font-size: 1.0rem;
    width: 20%;
    color:#333333;
}

a.side{
    color:white;
}

.active {
    color: rgb(229, 255, 0); /* 現在地を示す色を変更 */
    background-color:rgb(255, 242, 56);
}

a.current{
    background-color: #fff;
    color: #000;
  }

a.next{
    font-size: 1.5rem;
    font-weight: 900;
    text-align: center;
    color: #000;
}

a.temp{
    text-align: center;
    font-weight: 900;
}

nav{
    width:100%;
    margin:0 auto 0 auto;
}

nav ul.headfoot{
    display:flex;
    margin:0;
    list-style:none;

    width:100%;    
    padding:0;
}

nav ul.side{
    display:flex;
    flex-flow: column;
    list-style:none;

    margin:0;
    padding:0;
}

nav ul li.side{
    margin: 2px 4px 2px 4px;
    padding: 9px;
    background-color: #252525;

    text-align: left;
    color:white;
    font-weight: 900;
    font-size: 0.75rem;
    box-shadow: 0 0 2px black;
}

nav ul li.sideB{
    margin: 2px 4px 2px 4px;
    padding: 9px;
    background-color: #3b3b3b;

    text-align: left;
    color:white;
    font-weight: 900;
    font-size: 0.75rem;
    box-shadow: 0 0 2px black;
}

nav ul li.lucky{
    margin-bottom: 60px;
    position: fixed;
    bottom: 0;
    width:220px;
    z-index: -100;
}

nav ul li:hover{
    color:darkgoldenrod;
}

li.kome{
    list-style-type: "※";
    margin-left: 1.1em;
	text-indent: -1.1em;
    margin-top: 3px;
}

li.ten{
    list-style-type: "・";
    margin-left: 1.0em;
	text-indent: -1.0em;
    margin-top: 3px;
}

table.daily{
    border-collapse:separate;
    border-spacing: 3px;
}

table.SanSim{
    width: 100%; /* これでテーブルが親要素の幅に合わせて広がる */
    max-width: 100%; /* 親要素の幅を超えないようにする */
    table-layout: fixed; /* 自動的に列の幅を調整する */
    border-collapse:separate;
    border-spacing: 3px;
    box-sizing: border-box;
}

th.W{
    width:100%;
}

tr.B{
    background-color: #00000083;
    color: #fff;
}

tr.W{
    background-color: #ffffff83;
}

tr.Y{
    background-color: #fffd8b83;
}

tr.R{
    background-color: #ff8b8b83;
}

td.C{
    text-align: center;
    font-weight: 900;
}

textarea.temp{
    width: 70%;
    height:250px;
    margin-left:15%;
    white-space: pre-wrap;
    text-indent: 0;
}

span.PL{
    background-color: rgba(0, 0, 0, 0.541);
    color:#fff;
    font-weight: 900;
    padding:0 5px 0 5px;
    border-radius: 100px;
    margin: auto 5px auto 0;
}

span.yellow{
    color:rgb(255, 183, 0);
}

span.yellowB{
    color:rgb(242, 255, 63);
    font-weight: 900;
}

span.gray{
    color:#4e4e4e;
}

span.white{
    color:#ffffff;
}

span.whiteB{
    color:#ffffff;
    font-weight: 900;
}

span.whiteBB{
    color:#ffffff;
    font-weight: 900;
    font-size: 0.9rem;
    border:2px solid #fff;
    padding:0 5px 0 5px;
    border-radius: 100px;
    margin:5px 0px 5px 0px;
}

span.redB{
    color:rgb(168, 0, 0);
    font-weight: 900;
}

span.B{
    font-weight: 900;
}

span.SAN{
    color:rgb(255, 255, 255);
    font-weight: 900;
    background-color: rgb(139, 0, 0);
}

span.SANR{
    color:rgb(255, 255, 255);
    font-weight: 900;
    background-color: rgb(5, 139, 0);
}

.modal {
    display: none; /* デフォルトで非表示 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* 背景の半透明黒 */
    display: grid;
    place-items: center;
    visibility: hidden; /* visibilityを初期状態でhiddenに */
}

.modal.show {
    visibility: visible; /* 表示される時だけvisibleにする */
    display: grid;
}

.modal-content {
    max-width: 100%; /* 横幅を画面に合わせる */
    max-height: 100%; /* 縦幅も画面に収まるように */
    object-fit: contain; /* アスペクト比を保つ */
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


.fixed-buttons {
    position: fixed;
    bottom: 10px;
    left: -60px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 10px 60px 10px;
    transition: transform 0.3s ease;
    transform: translateX(0);
    z-index: 100;
}

.fixed-buttons.hidden {
    transform: translateX(-100%);
}

.fixed-buttons.slide-in {
    transform: translateX(60px);
}

.button-image {
    width: 75px;
    height: auto;
    cursor: pointer;
    border-radius: 100%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.6); /* 黒影を追加 */
    animation: smoothRotate 2s infinite ease-in-out; /* スムーズなアニメーションを追加 */
}

@keyframes smoothRotate {
    0% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(0deg);
    }
    40% {
        transform: rotate(4deg);
    }
    80% {
        transform: rotate(-4deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@media screen and (max-width: 720px) {
    .wrapper {
     display: block;
     margin: 0;
     padding: 0;
     max-width: 100%;
     min-width: initial;
    }
    main {
        margin: 0;
        min-width: 100%;
    }
    aside {
        display: none !important;
    }
    a.head{
        font-size: 0.5rem !important;
    }
    a.headN{
        font-size: 0.5rem !important;
    }
}