*{
  font-family:'WD-XLLubrifontJPN-Regular',Sans-serif;
  box-sizing: border-box;
}

.device-font p{
  font-family: sans-serif;
}

@font-face {
    font-family:'WD-XLLubrifontJPN-Regular';
    src:url(WD-XLLubrifontJPN-Regular.otf) format("opentype"); 
}

@font-face{
    font-family:'Sango-JA-SVG';
    src:url(Sango-JA-SVG.ttf) format("truetype");}

a:link{color:#d8dc1c;}
a:visited{color:#a9c208;}

p{line-height:1.2;}

.sub{
  color:#7a7a7a;
  font-size:15px;
}

/* 余白リセット */
body{
  margin:0;
  font-family:sans-serif;
  background:#E0E0E0;
  background-image:url("IMG_1620.gif");
  background-repeat:repeat;
}

/* ヘッダー（丸めない） */
header{
  background-color:#7a7a7a;
  color:white;
  padding:0;
  height:60px;
}

/* wrapper */
.wrapper{
  width:1100px;
  min-height:100vh;
  margin:0 auto 0 auto;
  box-shadow:0 0 8px rgba(0,0,0,0.5);
  background:
  linear-gradient(
      to bottom,
      #7a7a7a 0px,
      #7a7a7a 160px,   /* ← ここが上からの高さ */
      white 160px,
      white 100%
    );
}

/* layout縦並び */
.layout{
  display:flex;
  flex-direction:column;
}

/* トップバー */
.topbar{
  height:50px;
  background:#7a7a7a;
  position:relative;
}


.topbar::after{
  content:"";
  position:absolute;
  bottom:0;
  left:180px;          /* ← 左カラムの幅と同じ */
  width:calc(100% - 180px);
  height:1px;
  background:#7a7a7a;
}

.loop-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 30px;
  margin:10px 10px 10px 10px;
  box-shadow:0 0 10px rgba(0,0,0,0.4),inset 0 0 5px rgba(0,0,0,0.4);
  border:solid 1px #ddd;
  background:white;
}
.loop-area {
  display:flex;
  animation: loop-slide 10s infinite linear 1s both;
  list-style: none;
  margin: 0;
  padding: 0;
}


.loop-area .content{
  font-family:'Sango-JA-SVG',Sans-serif;
  width:150px;}
  
@keyframes loop-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* カラム横並び */
.columns{
  display:flex;
  gap:0;
}

  .container{
  flex:1;
  padding:0;
  flex-direction:column;   
  display:flex;
  border-radius:50px 0 0 0;
  background:white;
  position:relative;
  }


/* 左カラム */
.left{
  width:180px;
  min-height:500px;
  background:#7a7a7a;
  padding:10px;
  border-radius:0 0 150px 0;
  box-shadow:0 8px 8px -6px rgba(0,0,0,0.8);

}

.sitemap{
  padding:5px;
  background-color:white;
  width:120px;
  box-shadow:0 0 10px rgba(0,0,0,0.4),inset 0 0 10px rgba(0,0,0,0.4);
  border-radius:5px 25px 25px 25px;
  margin: 0 auto;
  }  
  
  .sitemap h3{
  margin-top:0;
  }
  
 

.status{
  padding:10px;
  background-color:white;
  width:120px;
  box-shadow:0 0 10px rgba(0,0,0,0.4),inset 0 0 10px rgba(0,0,0,0.4);
  border-radius:25px 25px 25px 25px;
  margin: 10px auto;
  max-height:150px;        /* ← 高さを固定 */
  overflow-y:scroll;     /* ← 縦スクロール */
  } 
  
.status h3{
  margin-top:0;
}
  

#fontToggle{
  display:block;
  margin:20px auto;
}

/* content */
.content{
  gap:0;
  flex:1;
  display:flex;
}


/* 中央 */
.center{
  flex:4;
  padding:20px;
  border-radius:8px;

  
}

/* 右カラム */
.right{
  flex:1;
  padding:15px;
  border-radius:8px;
}

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

/* フッター */
.footer{
  width:1100px;
  padding:20px;
  background:white;
  margin:0 auto 20px auto;
  color:#545454;
  border-radius:0 0 50px 50px;
  border-top:solid 2px #ddd;
  box-shadow:0 0 10px rgba(0,0,0,0.8);
  }

/* カード共通 */
.card{
  background:white;
  padding:10px;
  border-radius:15px;
  margin-bottom:20px;
  box-shadow:0 3px 5px rgba(0,0,0,0.5);
  border:solid 1px #ddd;
  overflow-y:scroll;     /* ← 縦スクロール */
}


.card h3{
    margin-top:0;
}

#linkme img{
  border:4px double #7a7a7a;
}

#linkme{
  min-height:300px;
}
 

/* 大きいカード */
.card large{
  max-height:120px;
  overflow-y:scroll;

}

.card large h2{
  margin-top:0;
}

/* グリッド */
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;

  }
  
/* 小説部分 */
#novelcontent{
  height:500px;
  overflow-y:scroll;
}

#hosoku{
  height:500px;
  overflow-y:scroll;
  }
  
  
 /* h2関連 */
 
 h3 span::first-letter,h3::first-letter,h2::first-letter,h2 span::first-letter{font-size:1.5em;}
 
 
 h2,h3{
  display:block;}

 .reflect{
  display:inline-block;
  -webkit-box-reflect: below -5px
    linear-gradient(transparent, rgba(0,0,0,0.4));
  }
  
  .reflect{
  --reflect-pos: -5px;
  display:inline-block;
  -webkit-box-reflect: below var(--reflect-pos)
    linear-gradient(transparent, rgba(0,0,0,0.4));
}

h2 .reflect{
  --reflect-pos: -15px;
}

h3 .reflect{
 --reflect-pos: -10px;
}

h2,h3{
  font-weight:bold;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.6),
    0 2px 2px rgba(0,0,0,0.5);
}

  
 

/* ツルツルしたボタン */

.glossy-btn{
  display:inline-block;
  position:relative;
  padding:8px 20px;

  font-weight:bold;
  color:white;
  text-align:center;

  border-radius:20px;
  border:1px solid #5f8a2a;

  background: linear-gradient(
    to bottom,
    #aae95d 0%,
    #a6e640 50%,
    #5a8517 100%
  );

  box-shadow:
    0 3px 6px rgba(0,0,0,0.3),

    inset 0 1px 0 rgba(255,255,255,0.6),

    inset 0 -2px 4px rgba(0,0,0,0.3);

  cursor:pointer;
  transition:all 0.2s ease;
}

.glossy-btn:active{
  transform: translateY(2px);

  box-shadow:
    0 1px 3px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(0,0,0,0.4);
} 

.glossy-btn::before{
  content:"";
  position:absolute;
  left:5%;
  top:5%;
  width:90%;
  height:50%;

  border-radius:20px;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.7),
    rgba(255,255,255,0.1)
  );

  pointer-events:none;
}

  
  
  
  
  
  
  
  