body {
    font-family: "Times New Roman", Times, serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    background-color: #2a51a0;
    color: white;
    padding: 10px 0;
    text-align: center;
    width: 100%;
}

h1 {
    text-align: center; /* 中央揃え */
    font-size: 1.5em; /* フォントサイズ */
    color: #3c3c3c; /* テキストカラー（ダークグレー） */
    margin: 20px auto; /* 上下のマージンと中央揃え */
    padding: 10px 0; /* 上下のパディング */
    max-width: 600px; /* 最大幅を指定 */
    width: 50%; /* 幅を50%に設定 */
    background-color: transparent; /* 背景を透明に */
    border-bottom: 3px solid #555; /* 下にボーダーを追加（ダークグレー） */
    transition: color 0.3s; /* ホバー時のアニメーション */
}

h1:hover {
    color: #000; /* ホバー時のテキストカラー（真っ黒） */
}

main {
    padding: 10px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.qa-container {
    width: 100%;
    max-width: 950px;
}

.qa-section {
    background-color: rgb(255, 255, 255);
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #ccc; /* 枠線を追加 */
    text-align: center;
}

h2 {
    margin-top: 0;
    font-size:  17px;    /* 文字サイズ指定 */
}

button.toggle-answer {
    background-color: #777d95;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

button.toggle-answer:hover {
    background-color: #555;
}

.answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    margin-top: 10px;
}

.answer.show {
    max-height: 200px; /* 表示するコンテンツの高さに応じて調整 */
    opacity: 1;
}


h3 {
    padding: 0.25em 0.5em;/*上下 左右の余白*/
    color: #494949;/*文字色*/
    background: transparent;/*背景透明に*/
    border-left: solid 5px #7db4e6;/*左線*/
  }


  header {
    background-color: #fff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative; /* 相対位置を設定 */
}

header h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
}


/*クリックで上に移動*/
html {
    scroll-behavior: smooth;
}
.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);
}









.footer {
  padding: 0.5em;
  font-size: 15px;
  color: #999;
  background: #dcdcdc;
  border-top: 1px solid #e5e7eb;
  text-align: center; /* テキストを中央揃え */
}
