body {
  background-color: white !important;
  scroll-behavior: smooth;/* 自動スクロール*/
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  font-size: 16px;
  line-height: 150%;
}
@media screen and (max-width:480px) {
  body {
    font-size: 15px;
  }
}

a {
  color: blue;
  text-decoration: none;
}
a:hover {
  color: red !important;
}
a:visited {
  color: blue;
}

/* ------------------------------------------ */
p {
  line-height: 1.5; /* 行間を1.5に設定 */
  margin-top: 0; /* 段落の上のマージンを0に設定 */
  margin-bottom: 0.0em; /* 段落の下のマージン */
}

h1 {
  font-size: 150%;
}
@media only screen and (max-width: 600px) {
  h1 {
    font-size: 130% !important;
  }
}

h2 {
  font-size: 120%;
  margin-top: 1em;
  margin-bottom: 1em;
}

h3 {
  font-size: 115%;
  margin-top: 0.8em;
  margin-bottom: 0.5em;
}

h4 {
  font-size: 100%;
  margin-top: 0.5em;
  margin-bottom: 0em;
}

h5 {
  font-size: 100%;
  margin-top: 0em;
  margin-bottom: 0em;
}

/* ------------------------------------------ */
/* ■ヘッダー*/
#header {
  background-color: #006DF0;
  color: white;
  text-align: center;
  padding: 0.1px;
  position: relative; 
}

#header h1 {
  max-width: 1050px;
  margin: 0 auto; 
  padding: 20px 0px;
  position: relative; 
}

@media screen and (max-width: 767px) {
  #header h1 {
    padding: 15px 0px 9px 0px;
    position: relative; 
  }
}

/* ■フッター*/
#footer {
  background-color: ;
  color: ;
  height: ;
}

#main {
  max-width: 1050px;
  min-height: 100%;
  margin: 0 auto;
  padding: 20px 5px;
}

@media screen and (max-width: 767px) {
  #header, #footer {
    width: 100%;
  }
}

img {
  width: 98%;
  max-width: 600px;
  display: block;
  margin: 0 auto; /* 水平方向にセンター配置 */
  border-radius: 5px; /* 丸い角の半径を指定 */
  margin: 0px auto; 
}

.container img {
  display: block;
  margin: 0 auto;
}

/* リストの中黒→白黒 */
li {
  list-style-type: circle;
}

/*画像をフェードイン*/
.fadeIn {
  animation-name: fadeInAnime;
  animation-duration: 10s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes fadeInAnime {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ------------------------------------------ */
/*■学習方法のメニュー*/
.accordion {
  margin: auto;
}

.toggle {
  display: none;
}

.title,
.content {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: all 0.3s;
  background-color: #cccccc;
  border-radius: 5px;
}

.title {
  border: s;
  padding: 0.2em 0.0em;
  display: block;
  color: ;
  font-weight: bold;
  color: blue;
  background-color: white;
}

.title::after,
.title::before {
  content: "";
  position: absolute;
  right: 1.25em;
  top: 0.5em;
  width: 0;
  height: 0.75em;
  background-color: blue;
  transition: all 0.3s;
}
.title:hover {
  color:  !important;
}
.title::after {
  transform: rotate(90deg);
}

.content {
  max-height: 0;
  overflow: hidden;
}

.content p {
}

.toggle:checked + .title + .content {
  max-height: 20000000000000000px;
  transition: all 1.5s;
  padding: 1em;
}

.toggle:checked + .title::before {
  transform: rotate(90deg) !important;
}

/* ------------------------------------------ */
/* ■リンクメニュー */
.menu-button {
  position: fixed;
  top: 10px;
  right: 20px;
  background-color: blue;
  color: white;
  padding: 10px;
  cursor: pointer;
  z-index: 1000;
  border-radius: 5px;
}

@media screen and (max-width: 767px) {
  .menu-button {
    top: 3px;
  }
}

.menu {
  position: fixed;
  top: 0;
  right: 0px; /* ■■ここを修正。元は-300px */
  width: 300px;
  height: 100vh;
  background-color: gray;
  color: white;
  transition: right 0.3s;
  z-index: 999;
  /*overflow: hidden;  メニュー全体のスクロールを防止 */
}

.menu-header {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
}

.menu-close {
  cursor: pointer;
  font-size: 50px;
  position: absolute; /* 絶対位置指定を追加 */
  top: 85px; /* 上からの距離を指定 */
  left: 243px; /* 左からの距離を指定 */
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 80px;
  height: calc(100vh - 110px); /* ヘッダーの高さ分を差し引いた高さを指定 */
  overflow-y: auto; /* 縦方向のスクロールを有効にする */
  text-align: left; 
}
@media screen and (max-width: 480px) {
.menu-list {
  margin-top: 50px;
  }
}
.menu-list li {
  padding: 15px;
  border-bottom: 1px solid #555;
  list-style-type: none; /* マーカーを非表示にする */
}

.menu-list li a {
  color: white;
  text-decoration: none;
}

.menu-list li a:hover {
  text-decoration: ;
}

/* Media Queries */
@media (max-width: 480px) {
  .menu {
    width: 280px;
  }
}

body.menu-open .menu {
  right: 0;
}

/* スマホ用（リンクメニューを閉じるバツ印） */
@media screen and (max-width: 480px) {
  .menu-close {
      top: 70px; /* 上からの距離を指定 */
    left: 222px; /* 左からの距離を指定 */
  }
}

.menu2 {
font-size: 12px;
line-height: 1.0;
padding: 10px 10px;
}

/* 【重要】以下の２つ（ないとメニューが常時表示されることがある） */
.menu {
  display: none; /* 初期状態で非表示 */
}
/* メニューが表示される時のスタイル */
.menu.show {
  display: block;
}


/* ------------------------------------------ */

/* ■リンクの前の三角マーク */
.arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 3px solid transparent; /* 三角形の高さを設定 */
  border-bottom: 3px solid transparent; /* 三角形の高さを設定 */
  border-left: 6px solid blue; /* 三角形の色と幅を設定 */
  margin-right: 5px; /* 矢印と隣接要素の間にスペースを追加 */
  vertical-align: middle; /* 縦方向の位置を中央揃えに設定 */
}

/* ■h1のタイトル */
h1.title {
  all: unset; /* すべてのスタイルを無効にする */
  display: block; /* ブロック要素として表示 (reset後に再設定が必要) */
  font-size: 25px; /* 必要なスタイルを再設定 */
  color: #4d4d4d; /* テキストの色を指定 */
  font-weight: bold; /* 太字に設定 */
  text-align: center; /* 中央揃えに設定 */
  margin-top: 20px; /* 下部のマージンを指定 */
  margin-bottom: 40px; /* 下部のマージンを指定 */
}

/* ■破線リンク */
.hasen {
  text-decoration: none; /* 既存の下線を削除 */
  border-bottom: 1px dotted; /* 小さな丸の下線を追加 */
  padding-bottom: 0px; /* 文字との間隔を狭くする */
}

/* ■メールアドレス，パスワード　入力フォーム */
form > label {
  display: inline-block;
  width: 150px;
  font-weight: bold;
  margin-right: 10px;
}

form > input[type="email"],
form > input[type="password"],
form > input[type="text"] {
  width: 250px;
  padding: 5px;
  margin-bottom: 10px;
  border: 2px solid #ccc; /* ここで枠のスタイルを変更 */
  border-radius: 4px; /* 角を丸くする */
  box-sizing: border-box; /* パディングと枠の内側のサイズを調整 */
}

form > input[type="email"]:focus,
form > input[type="password"]:focus,
form > input[type="text"]:focus {
  border-color: #66afe9; /* フォーカス時の枠の色 */
  outline: none; /* デフォルトのフォーカスアウトラインを無効化 */
  box-shadow: 0 0 8px rgba(102, 175, 233, 0.6); /* フォーカス時のシャドウ */
}

form > input[type="checkbox"] {
  margin-right: 5px;
}

form > button {
  display: inline-block; /* 修正: ボタンで改行しない */
  padding: 10px 20px;
  background-color: blue;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

form > button:hover {
  background-color: red;
}

/* ------------------------------------------ */
/*■アイフォン等対策（チェックボックス，ラジオボタン）*/
input[type="radio"] {
  -webkit-appearance: radio; /* Safari用 */
  margin-left: 5px; /* 左の余白 */
  margin-right: 2px; /* 右の余白 */
  padding: 0; /* 内側の余白をリセット */
}
input[type="radio"]:checked {
  background-color: blue; /* チェックされたときの背景色 */
  border-color: blue; /* チェックされたときの枠線色 */
}
/* チェックボックスのスタイル */
input[type="checkbox"] {
  -webkit-appearance: checkbox; /* Safari用 */
  margin-left: 5px; /* 左の余白 */
  margin-right: 2px; /* 右の余白 */
  padding: 0; /* 内側の余白をリセット */
  vertical-align: middle; /* 縦方向の位置を中央に */
  line-height: normal; /* 行の高さを通常に */
  position: relative; /* 位置を相対的に */
  top: -2px; /* 少し上げる */
}
/* チェックボックスがチェックされたときのスタイル */
input[type="checkbox"]:checked {
  background-color: blue; /* チェックされたときの背景色 */
  border-color: blue; /* チェックされたときの枠線色 */
}
/* チェックボックスのラベルのスタイル */
label {
  display: inline-block;
  line-height: 1.5; /* ラベルの行の高さを調整 */
  vertical-align: middle; /* ラベルの縦方向の位置を中央に */
}


/* ------------------------------------------ */
/* 大項目下の<hr> */
hr.dai-koumoku {
  border: 0;
  height: 1px;
  background: gray; /* 線の色を指定 */
  margin-top: -15px; /* 上部の余白を指定 */
  margin-bottom: 20px; /* 下部の余白を指定 */
  position: relative;
}


/* ------------------------------------------ */
/* 学習進行状況のバー */
.progress-bar {
  width: calc(100% - 65px); /* 100px小さく */
  background-color: white; /* 他はwhiteで表示 */
  height: 10px; 
  border: 1px solid #4caf50;
  border-radius: 5px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  max-width: 300px !important;
  margin-left: 0px;
  position: relative; /* 内部の要素の配置を相対的に設定 */
}
.progress-bar-fill {
  display: block; /* ブロック要素として表示 */
  height: 100%;
  text-align: center;
  color: white;
  line-height: 10px; /* バーの高さに合わせる */
  position: absolute; /* 絶対位置に設定 */
  top: 0;
  left: 0;
  transition: width 0.2s; /* 幅の変更にアニメーションを追加 */
}
.progress-bar-fill.cc {
  background-color: #4caf50 !important; /* ccは#4caf50 */
  z-index: 3; /* 最前面に表示 */
}
.progress-bar-fill.bb {
  background-color: #9cf590 !important; /* bbは#9cf590 */
  z-index: 2; /* ccの後ろに表示 */
}








.progress-text {
  color: #4caf50;
  font-size: 12px;
  display: inline-block;
  margin-left: 0px;
  vertical-align: middle;
}




/* 基本スタイル */
.list-box {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 0; /* 各項目間の間隔 */
}
.list-item {
    flex: 1 1 calc(25% - 20px); /* 横幅の計算式 - 20pxはgapの影響を考慮 */
    box-sizing: border-box;
    margin: 0 0;
}
@media (max-width: 880px) {
    .list-item {
        flex: 1 1 calc(33.3% - 20px); /* 870px未満では2列 */
    }
}
@media (max-width: 580px) {
    .list-item {
        flex: 1 1 calc(50% - 20px); /* 870px未満では2列 */
    }
}
@media (max-width: 300px) {
    .list-item {
        flex: 1 1 100%; /* 580px未満では1列 */
    }
}
.list-item input[type="checkbox"] {
    margin: 0 3px 0 0; 
}


/* トップページのリストの文字 */
@media (max-width: 980px) {
.list-item label {
    letter-spacing: -0.8px;
      font-size: 14px;
}
}

/* ------------------------------------ */
.image-container {
  display: flex;
  justify-content: center; /* 水平方向のセンター配置 */
  gap: 5px; /* 画像間の余白 */
}

.image-wrapper {
  position: relative; /* 親要素を基準に子要素を配置 */
  max-width: 300px;
  margin: 0px;
}
@media (max-width: 768px) {
.image-wrapper {
  max-width: 50%;
}
}


.image-wrapper img {
  width: 100%; /* 画像を親要素に合わせてリサイズ */
  display: block;
  border-radius: 5px;
  margin-top:5px;"
}


.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 文字を中央に配置 */
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap; /* テキストを改行させない */
  pointer-events: none; /* 文字の上でもリンクがクリックできるようにする */
}

/* ワードのようにきれいに表示  */
body {
  text-align: justify !important;
}
body p{
  text-align: justify !important;
}












/* ■ログイン状態のボタン */
#backButton2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 30px;
    background-color: red;
    color: white !important;      
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}
#backButton2:hover,
#backButton2:focus,
#backButton2:active,
#backButton2:visited,
#backButton2:link {
    color: white !important;       
    opacity: 0.8;                   
}
.button-container2 {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    margin-top: 20px;
}
#loginNotice {
    margin-top: 10px;  
    color: red;
    font-size: 0.9em;
}


/* ■戻るボタン  */
#fixed-panel {
    position: fixed;
    bottom: 10px;
    left: calc(100% - 110px);
    transform: translateX(0%);
    width: 100px;
    height: 50px !important;
    background-color: blue;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 9999; /* すべての要素の上に表示 */
}
#fixed-panel a {
    width: 55px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: blue;
}
#returnButton img {
    width: 40px;
    height: 35px;
    background-color: blue;
}
@media (min-width: 1300px) {
    #fixed-panel {
        left: calc(50% + 525px);
    }
}



/* ■パンくずリストリンク */
div#main p.breadcrumbs {
    padding: 0;
    margin: 0 !important;
    margin-top: -15px !important;
    margin-left: 2px !important;
    color: #666;
    font-size: 0.8em;
}
div#main p.breadcrumbs a,
div#main p.breadcrumbs a:visited,
div#main p.breadcrumbs a:hover,
div#main p.breadcrumbs a:active {
    color: #666;
    text-decoration: underline;
}



/* ■トップページ収録単語熟語数左右２段 */
.word-box {
  display: flex;
  gap: 5px;
}
.word-box > div {
  flex: 1;
}
/* 760px未満は縦並び */
@media (max-width: 760px) {
  .word-box {
    display: block;
  }
}