html{
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Helvetica Neue", HelveticaNeue, YuGothic, "Yu Gothic Medium", "Yu Gothic", Verdana, Meiryo, sans-serif;
    font-size: 15px;
    font-family: 'Kaisei Opti', 'Signika', 'メイリオ',  sans-serif, serif; 
}
img{
    image-rendering: -webkit-optimize-contrast;
}
.content{
    width: 70%;
    margin: 0 auto;
    border-radius: 20px;
    background: white;
}

.text-center{
    text-align: center;
}
.text-small{
    font-size: 0.8rem;
}
.flex{
    display: flex;
}

.box{
    border-radius: 1rem;
    padding: 10px;
    box-sizing: border-box;
}
.box.gray{
    background-color: #dedede ;
}
.box.white{
    background-color: white ;
}

ion-icon{
    color: #accecc;
}

#index, #menu, #main{
   font-family: 'Kaisei Opti', serif;      
   background: -webkit-repeating-linear-gradient(-45deg, #fff5e7, #fff5e7 3px, #fdfeff 3px, #fdfeff 6px);/*ストライプ*/
   background: repeating-linear-gradient(-45deg, #fff5e7, #fff5e7 3px, #fdfeff 3px, #fdfeff 6px);/*ストライプ*/  
}

/*index*/
#index .box{
    margin: 100px auto 0;
    max-width: 400px;
    padding-bottom: 20px;
}
#index .title{
    font-size: 1.2em;
    font-weight: bold;
}

/*menu*/
#menu .menu-box{
    display: flex;
    justify-content: center;
}

#menu .box{
    margin: 10px auto 0;
}

#menu .menu{
    padding:20px;
    margin: 10px;
}

a.btn{
 font-family: 'Signika', serif;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 3rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  border-radius: 0.5rem;
}

a.btn-svg {
  font-weight: 700;
  line-height: 54px;
  width: 204px;
  height: 54px;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  background-color: rgba(255,255,255,0.4);
}

a.btn-svg svg {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;
}

a.btn-svg svg rect {
  -webkit-transition: all 400ms ease;
  transition: all 400ms ease;
  stroke: #accecc;
  stroke-width: 2;
  stroke-dasharray: 200px, 16px;
  stroke-dashoffset: 70px;
}

a.btn-svg:hover svg rect {
  stroke-dashoffset: 284px;
}

a.btn-svg span {
  color: #ffc273;
}

#menu .title{
   font-size: 1.2rem;
   font-weight: bold;
   margin-top: 20px;
   padding-top: 30px;
   margin-bottom: 40px;
}
#menu .update-title{
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 15px;
}

#menu .update{
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
    border-top: 2px solid #ffdfb5;
    border-bottom: 2px solid #ffdfb5;
    width: 200px;
    
}

#menu a{
    color: #accecc;
    text-decoration: none;
}

.update-item{
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.update-item:not(:last-child){
    border-bottom: 2px solid #ffdfb5;
}

/*main*/
#main .content{
    margin-bottom: 20px;
    padding :10px;
}
#main .title{
    color: #ffc273;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 5px;
}
#main .subtitle{
    width: 100%;
    color: #6fbbb6;
    font-weight: normal;
    margin-bottom: 10px;
    word-break:break-all;
}

#main .log-list {
    width: 50%;
    margin: 0 auto;
    font-size: 1.2rem;
    flex-wrap: wrap;
}
#main .log-list div{
    margin-left: 3px;
}

/*link*/
.link{
    flex-wrap: wrap;
    width: 70%;
    max-width: 700px; 
    margin: 0 auto;
    justify-content: center;
}

.link a{
    margin: 3px;
}

.link .nolink{
    width: 200px;
    margin: 3px;
}

/*setting*/
body#setting {
    width: 100%;
    margin: 0 auto;
    padding: 2em 2em 4em;
    font-family: "メイリオ", sans-serif;
    font-size: 15px;
    color: #545454;
    background-color: #ffffff;
}

#setting img{
    border:none;
    width:100px;
}

#setting .stbox{
    width: 100%;
    max-width: 800px;
    margin: 20px 20px 20px 0;
    border-radius: 10px;
    display: flex;
	flex-direction: row;
	-moz-flex-direction: row;
	-o-flex-direction: row;
	-webkit-flex-direction: row;
	-ms-flex-direction: row;
}

#setting .stleft{
    margin: 3px;
    width: auto;    
    position: relative;
}

#setting .stbox, #setting .stleft{
    background-color: #f9f9f9;
}

#setting.ninethroad .stleft {
    background-color: white;
    margin: 0;
}

#setting .stleft img{
    width: 100px;
    height: 100px;
    object-fit: cover;
	position: relative;
    top: 50%;  
    transform: translate(0,-50%);
    border-radius: 10px;
    margin-left: 5px;
}

#setting.ninethroad .stleft img{
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
}

#setting .stright{
    margin: 3px;
    padding: 3px;
    font-size: 13px;
    
    max-width:600px;
    border-radius: 10px;		/* CSS3草案 */
	-webkit-border-radius: 10px;	/* Safari,Google Chrome用 */
	-moz-border-radius: 10px;	/* Firefox用 */    
}

#setting.ninethroad .stright{
    padding-left: 10px;
}

#setting .name{
    margin: 5px;
}


.stbox-detail{
    padding: 1em 1.5em;
    margin: 2em auto;
    background: -webkit-repeating-linear-gradient(-45deg, #f4f9ff, #f4f9ff 3px, #eaf4ff 3px, #eaf4ff 6px);/*ストライプ*/
    background: repeating-linear-gradient(-45deg, #f4f9ff, #f4f9ff 3px, #eaf4ff 3px, #eaf4ff 6px);/*ストライプ*/  
    color: rgba(0,0,0,0.8);
    border-radius: 20px;
    font-family:'メイリオ', Meiryo, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', sans-serif;
    display: flex;
    width: 70vw;
    max-width: 1000px;
    font-size:0.9em;
    line-height: 1.6
}

.stbox-detail.poni{
    background: -webkit-repeating-linear-gradient(-45deg, #e6edf7, #e6edf7 3px, #ebf0f5 3px, #ebf0f5 6px);/*ストライプ*/
    background: repeating-linear-gradient(-45deg, #e6edf7, #e6edf7 3px, #ebf0f5 3px, #ebf0f5 6px);/*ストライプ*/  
}
.stbox-detail.karosu{
    background: -webkit-repeating-linear-gradient(-45deg, #fff1f0, #fff1f0 3px, #fff6f6 3px, #fff6f6 6px);/*ストライプ*/
    background: repeating-linear-gradient(-45deg, #fff1f0, #fff1f0 3px, #fff6f6 3px, #fff6f6 6px);/*ストライプ*/  
}
.stleft-detail{
    display: flex;
    align-items: center;
    width: 40vw;
    max-width:250px;
}

.stleft-detail img{ 
    max-width : 250px;
    height: auto;
    margin: 0 auto;
}

.stbox-detail .set{
    margin:0 1em;
    padding:0 1em;
    border-radius: 20px;
}
.stbox-detail .karami{
    background-color:rgba(10, 165, 255, 0.2);
    box-shadow:  0 0 0 3px rgba(10, 165, 255, 0.2);
    margin:1.5em 0 0 1em;
    padding:1em;
    border: 2px dashed white;
    border-radius: 20px;
}

.stbox-detail.poni .karami{
    background-color:rgba(152, 158, 161, 0.2);
    box-shadow:  0 0 0 3px rgba(152, 158, 161, 0.2);
}
.stbox-detail.karosu .karami{
    background-color:rgba(255, 135, 119, 0.2);
    box-shadow:  0 0 0 3px rgba(255, 196, 188, 0.2);
}

.stbox-detail .set >.name{
    margin:0;
    font-size: 1.2em;
    font-weight: bold;
}

details img{
    width: auto;
    max-width: 100%;
}

/*個別設定ページ用*/
.stdbox{
    font-size: 0.9em;
    width: 60%;
    margin:  0 auto 20px;
}
.stdbox>div{
    padding :10px;
    border: 1px solid #fdeebb;
}
.stdbox>div:last-child{
    border-radius: 0 0 20px 20px ;
}
.stdbox .name{
    background-color: #fdeebb;
    text-align: center;
    border-radius: 20px 20px 0 0 ;
}
.stdbox.karami>div{
    border-radius: 20px;
    background-color: #fffbec;
    border: none;
}

/*ログ*/
.log-icon{
    width: 20px;
    height: 20px;
    background-color: #ffc273;
    margin: 3px;
}

 /*個別ログ*/   
 .logpage{
    box-sizing: border-box;
 }
.logpage .title{
    text-align: center;
    margin-top: 50px;
}
.logpage .log{
    margin-top: 50px;
    text-align: center;
    margin-bottom: 10px;
}
.logpage .logtext{
    text-align: center;
    word-wrap: break-word;
}
.logpage .name{  
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}
.comic img{
    max-width:610px;
}

@media screen and (max-width:768px){
    body{
        padding: 20px 5%;
    }
    .content{
        width: 90%;
    }
    .box.mini{
        width: 100%;
    }
    #menu .box{
        margin: 0;
    }
    #menu .menu-box{
        display: block;
    }
    #menu .content{   
        padding: 30px 5px;
    }
    #main .log-list {
        width: 80%;
    }
    body#setting {
        padding: 10px;
        box-sizing: border-box;
    }
    #setting .stleft {
        background-color: white;
        margin: 0;
    }
    #setting .stleft img{
        top:0;  
        transform:none;
        margin: 0 auto;
    }

    #setting .stbox{
        display: block;
    }
    
    .stbox-detail{
        display: block;
    }

    .stleft-detail {
        width:100%;
        max-width:100%;
        text-align: center;
    }
    .stleft-detail img{
        margin: 0 auto 20px;
    }
    .stdbox{
        width: 90%;
    }
    .stdimg img{
        max-width: 90%;
    }
    .fitimg img{
        max-width: 90%;
    }
}