body {
  -webkit-text-size-adjust: 100%;
}


html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}



body {
        animation: fadeIn 1s ease-in;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }


body {
background-image:url(kabe0.gif);
    text-align:center;
    margin:0 0 0 0;
    padding: 0 0 0 0;
}

.ContentsFrame {
    background-image:url(kabe-diary12.gif);
    max-width:750px;
    margin-left:auto;
    margin-right:auto;
    text-align:left;
}



.fixed-header {
  position: sticky; /* ヘッダーを固定する */
  top: 0; /* 画面の上部に固定 */
  width: 100%; /* 画面の幅いっぱいに広げる */
background-image:url(kabe-top1.png); /* 背景色を設定 */
  color: white; /* テキストの色を設定 */
  padding: 10px; /* 内側の余白を設定 */
  z-index: 50; /* ヘッダーを他の要素の上に表示 */
}




.top-btn {
  background: #f5f5f5;
  color: #556b2f;
  border: 0.5px solid #000000;
  padding: 6px 8px;
  border-radius: 22px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
}

.top-btn:hover {
  background: #000000;
  color: #fff;
}



.menu {
  display: flex;
  flex-wrap: wrap; /* ←これ重要！ */
  justify-content: center;
  gap: 4px;
}



.menu-btn {
  font-family:"Yomogi",cursive  !important;
  font-style: nomal;
  font-size: 18px;
  font-weight: bolder;
  letter-spacing: 1px;




  width: 70px;
  text-align: center;
  padding: 3px 14px;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  border: 1px solid #666;


  background: linear-gradient(to bottom, #444, #000);
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);

  position: relative;
  overflow: hidden;
  transition: 0.3s;
}

/* 上の光 */
.menu-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(
to bottom, 
rgba(255,255,255,0.9), 
rgba(255,255,255,0.3), 
transparent);
  opacity: 0.1;
  transition: 0.3s;
}

.menu-btn:hover::before {
  opacity: 1;
}

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




.update-box {
  display: inline-block;
  background: #e6e6fa;
  box-shadow: 0 0 5px 2px #778899;
  margin: 8px;
  padding: 4px 10px;
  font-size: 22px;
  font-weight:bold;
  color: #191970; 
  text-align: right;
}

/* スマホ用 */
@media (max-width: 600px) {
  .update-box {
    font-size: 4vw;
    padding: 4px 7px;
  }
}




@media  (max-width: 768px) {

   body {
    font-size: 3.7vw;
}

 p {
  font-size:3.7vw;
}

b {
   font-size:3.7vw;
}


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




contents img { max-width:18vw; }
contents2 img { max-width:28vw; }






/* スマホ用 */
@media screen and (max-width: 600px){

.top-btn{
  font-size:3.5vw;
  height:8vw;
  line-height:6vw;
  padding:0 1vw;
}

}


/* スマホ用 */
@media screen and (max-width:600px){

.month-link{
  font-size:3.5vw;
}

.weather-icon {
   width: 6vw;
}
}




#pagetop,
#pagebottom {
     right:  12%;
}



/* スマホ用 */
@media screen and (max-width: 768px) {
  #pagetop i,
  #pagebottom i {
    font-size: 40px  !important; /* 好きなサイズに調整OK */
  }
}



@media screen and (max-width: 768px) {
  #pagetop,
  #pagebottom {
    right: 10%;
  }
}


@media screen and (max-width: 768px) {
.menu-btn {
  font-family:"Yomogi",cursive  !important;
  text-align: center;
  font-size: 3.5vw;
  font-weight: bolder;
  width: 16vw;
  padding: 1vw 1vw;
  border-radius: 2px;
  color: #fff;
  text-decoration: none;
  border: 1px solid #666;

-webkit-tap-highlight-color : transparent ;
}

}


@media screen and (max-width: 600px) {
.sp-br {
   display: block;
   width: 100%;
  }

}




@media screen and (max-width: 600px) {
.top-btn {

  transition: 0.3s;
  -webkit-tap-highlight-color : transparent ;
}


.top-btn:active {
  background: #000000;
  color : #fff ;
}


