
/* 全体の設定 */
body {
/* PCでは中央寄せ、モバイルでは100%幅に */
  max-width: 900px;
  margin: 0 auto;
}

a {
  color: #017acd;
}

/* ヘッダー */
header {
  padding: 5px;
}

header h1 {
  margin: 0;
}

header p {
  color: #ffffff;
  font-size: 0.75em;
  margin: 0;
}

/* メインコンテンツとサイドバーの配置 */
.content-wrapper {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  margin: 5px 0;
}
.signature {
  text-align: right; /* テキストを右寄せに設定 */
}

/* メインコンテンツ */
main {
  width: 590px;
  margin:  5px 15px;

}

.post h2 {
  background-color: #ffffff;
  background-image: url(bar-blue.png);
  background-repeat: no-repeat;
  font-size: 1.35em; /* フォントサイズを大きく */
  color: #027c5e;
  line-height: normal; /* 行の高さを読みやすく修正 */
  padding-left: 6px;
  margin: 10px; /* マージンに単位を追加 */
}

.posttext {
  font-size: 0.475em;
  color: #027c5e;
  background-color: #FFFFFF;
  padding-left: 0;
  line-height: 1.5; /* 短すぎる可能性があるので調整が必要かもしれません */
}
.posttext h2 {
  margin-bottom: normal; /* ここで下側の余白を設定 */
  font-size: 2.5em; /* フォントサイズを大きくする */
}

.posttext h3 {
  background-color: #c4f5d0;
  font-size: 2em;
  color: #027c5e;
  padding-left: 6px;
  /* 、上下と左右をまとめて設定 */
  padding: 3px 6px;
  margin: 0;
  line-height: normal;
 
}


.posttext p {
  background-color: #ffffff;
  font-size: 1.5em;
  color: #000000;
  padding: 3px 2px;
  margin-bottom: 2px;
  font-weight: bold;
}    

.posttext li {
  font-size: 1.8em; /* お好みのサイズに変更してください */
}

table {
  border-collapse: collapse; /* 隣接するセルの境界線を重ねて表示 */
  width: 100%; /* 必要に応じてテーブルの幅を指定 */
  font-size: 14px; /* テーブル全体のテキストサイズを変更 */
}

th, td {
  border: 1px solid rgb(132, 132, 132); /* 罫線の種類、太さ、色を指定 */
  color: #000000; /* テキスト色*/
  padding: 5px; /* セル内の余白 */
  text-align: left; /* テキストの配置 */
    width: 35px; /* 最初の列の幅を200pxに設定 */
}

th {
  background-color: #FFFFFF; /* ヘッダーセルの背景色（任意） */
    font-weight: normal;/* セル内のフォント太字（任意） */
}
h3 {
  background-color: #c4f5d0;
  font-size: 1.15em; /* フォントサイズを大きく */
  color: #027c5e;
  line-height: normal; /* 行の高さを読みやすく修正 */
  padding-left: 6px;
  margin: 15px; /* マージンに単位を追加 */
}
details > summary {
  display: flex;
  align-items: center; /* 垂直方向の中央揃え */
  cursor: pointer; /* クリック可能であることを示す */
}

/* サイドバー */
aside {
  width: 240px;
  margin: 11px 10px 15px;
}

.sidemenu {
  font-size: 0.75em;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.sidemenu li {
  list-style-type: none;
}

.sidemenu li a {
  display: block;
  line-height: 30px;
  text-decoration: none;
  color: #027c5e;
  background-color: #d6f7de;
  border-bottom: solid 1px #ffffff;
  padding-left: 10px;
}

.sidemenu li a:hover {
  background-color: #23cfa4;
}

/* サイドバー下部 */
.monthly-message {
  font-size: 16px;
  font-family: 'AR P丸ゴシック体M', sans-serif;
  color: #ed7d31;
}

.monthly-coment {
  font-size: 14px;
  font-family: 'AR P丸ゴシック体M', sans-serif;
  color: #666666;
  line-height: 1.5em;
}

.feed {
  margin-bottom: 10px;
  width: 240px; 
   margin: 11px 10px 15px;/* ここを追加 */
}

.feed img {
  border: none;
  vertical-align: middle;
   max-width: 100%; /* これを追加して、画像が親要素の幅を超えないようにする */
  height: auto; /* これを追加して、アスペクト比を維持する */
}

/* フッター */
footer {
  background-image: url(line-blue.png);
  background-repeat: repeat-x;
  /* PCでは900px、モバイルでは100%幅に */  
  max-width: 900px;
  padding-top: 8px;
}

footer address {
  font-size: 0.75em;
  font-style: normal;
  text-align: left;
}

#scroll-to-top {
  position: fixed; /* 画面に固定する */
  right: 20px; /* 右端から20px */
  bottom: 20px; /* 下端から20px */
  display: #d6f7de;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background-color: #23cfa4;
  color: #fff;
  text-decoration: none;
  border-radius: 50%; /* ボタンを円形にする */
  opacity: 0; /* 最初は非表示 */
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s; /* 表示・非表示をスムーズに */
}

/* PCでは非表示にする要素 */
#hamburger-container, .menu-toggle {
  display: none;
}

/* スマートフォン表示時のスタイル（767px以下） */
@media (max-width: 767px) {
  /* ----------------------------------- */
  /* 基本レイアウトのモバイル対応 */
  /* ----------------------------------- */  
  body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0 10px;/* 必要であればパディングをここで設定 */
    box-sizing: border-box;
  }
  
  aside {
    display: none;
  }

  /* The hamburger menu's fixed position needs to be relative
    to the viewport. Ensure its right property is within bounds.
  */
  #hamburger-container, .menu-toggle {
    display: block;
    position: fixed;
    top: 10px;
    left: 10px; /* Adjust this value if needed */
    z-index: 1000;
  }
  
  .menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
  }

  .menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #027c5e;
    margin: 5px 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #d6f7de;
    z-index: 999;
    transition: left 0.3s ease-in-out;
    padding-top: 60px;
    overflow-y: auto;
  }

  .mobile-nav[aria-hidden="false"] {
    left: 0;
  }

  .mobile-nav-content > * {
    padding: 10px;
  }
  
  .content-wrapper {
    flex-direction: column;
    padding: 10px; /* Add padding here instead of on body */
  }
  
  main {
    width: 100%;
    margin: 0;
  }

    footer {
    width: 100%;
    margin: 0;
  }

  /* aside (サイドバー) はモバイルでは非表示 */
  aside {
    display: none;
  }

  /* 画像のレスポンシブ対応 */
  header img, .post img {
    max-width: 100%;
    height: auto;
  }



  /* ハンバーガーメニューを表示する */
  #hamburger-container, .menu-toggle {
    display: block;
    position: fixed;
    top: 15px;      /* 画面上部に固定 */
    right: 15px; /* 右端からの位置 */
    z-index: 1000;
  }
  
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* アイコンの棒を右側に揃える */
  }

  .menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #027c5e;
    margin: 5px 0;
    transition: transform 0.3s ease-in-out;
  }

  /* メニューが開いた時のアイコンアニメーション */
  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* モバイル用ナビゲーションメニュー */
  .mobile-nav {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 65vh;
    background-color: #d6f7de;
    z-index: 999;
    transition: right 0.3s ease-in-out;
    padding-top: 60px;
    overflow-y: auto;
  }

  .mobile-nav[aria-hidden="false"] {
    right: 0;
  }

  .mobile-nav-content > * {
    padding: 10px;
  }
  
  .content-wrapper {
    flex-direction: column;
  }
  
  main {
    width: 100%;
    margin: 0;
  }
  /* ----------------------------------- */
  /* 画像のレスポンシブ対応 */
  /* ----------------------------------- */
  header img, .post img {
    max-width: 100%;
    height: auto;
  }
}
a {
  color: #017acd;
  text-decoration: none; /* Add this line */
}