html {
  scroll-behavior: smooth;
  touch-action: manipulation;
}



.kanzi_mozi{
 padding-bottom: 15px;
  font-size: 30px;
  border-bottom: #000 solid 1px;
}

.mozi_area {
  display: grid;
  grid-template-columns: 2fr 2fr; /* 2列 */
  gap: 20px; /* 列や行の間隔 */

}
.kanzi_mozi {
  margin: 0; /* <p>の余白をリセット */
}



.kanzi_mozi2{

  font-size: 25px;
}

.kanzi_mozi3{

  font-size: 15px;
}

#link_area{

 font-size: 20px; 
 padding: 20px;

}



#link_area {
  display: flex;
  flex-wrap: wrap;       /* 複数行に折り返し */
  gap: 10px;             /* リンク同士の間隔 */
  justify-content: center;
  margin-top: 20px;
}

#link_area a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;           /* 円の直径 */
  height: 50px;
  border-radius: 50%;    /* 円形にする */
  background: linear-gradient(135deg, #a8c0ff, #cce0ff); /* 淡いブルー系 */
  color: #fff;           /* 文字色 */
  font-weight: bold;
  text-decoration: none; /* 下線を消す */
  box-shadow: 0 4px 6px rgba(0,0,0,0.2); /* 影を付ける */
  transition: transform 0.2s, background 0.3s;
}

#link_area a.disabled {
  background: #ccc;          /* 灰色背景 */
  color: #666;               /* 文字も薄く */
  pointer-events: none;      /* クリック不可 */
  box-shadow: none;          /* 影を消す */
  cursor: default;           /* カーソルを通常に */
}


.reading_header{

  text-align: center;
}


#link_area a:hover {
  transform: scale(1.1); /* ホバー時に拡大 */
  background: linear-gradient(135deg, #ff7f50, #ff69b4); /* ホバー時の色 */
}

.mozi_area{
  padding: 30px;
  padding-top: 40px;
  background-color: #ffffff;
  border-radius: 20px;
  margin-bottom: 40px;
  margin-top: 30px;
}

.pagetop {
  height: 50px;
  width: 50px;
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: #fff;
  border: solid 2px #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.pagetop__arrow {
  height: 10px;
  width: 10px;
  border-top: 3px solid #000;
  border-right: 3px solid #000;
  transform: translateY(20%) rotate(-45deg);
}


/* スマートフォン向けのスタイル */

@media screen and (max-width: 767px) {

#study_content{
  margin-top: 80px;
}

.kanzi_mozi{
 padding-bottom: 15px;
  font-size: 18px;
  border-bottom: #000 solid 1px;
}

.kanzi_mozi2{

  font-size: 18px;
}

.kanzi_mozi3{

  font-size: 18px;
}

}

