﻿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 !important;
  color: white !important;
  text-align: center !important;
  padding: 0.1px !important;
  height: 60px !important;
}
#header h1 {
  max-width: 1050px !important;
  margin: 0 auto !important; 
  padding: 15px 0px 0px 0px !important;
  /*position: relative !important; */
  height: 0px !important;
}
.vertical-text {
  color: white;
}
.vertical-text .top, 
.vertical-text .bottom {
  color: white;
}
#header h1 a span {
  color: white !important;
}

/* ■フッター*/
#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; /* 上下に10ピクセルずつ余白を追加 */
}

.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: 8px;
  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 {
  }
}

.menu {
  position: fixed;
  top: 0;
  right: 0px; /* ■■ここを修正。元は-300px */
  width: 320px;
  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: 258px; /* 左からの距離を指定 */
}

.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: 300px;
  }
}

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

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

.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;
}
}


/* ■iphone,ipad,androidで鬱陶しい規定の辞書などを表示させないため */
/* https://blog.universe-web.jp/6218/ */
/* https://developer.mozilla.org/ja/docs/Web/CSS/user-select */
/* iPhoneサファリ対策  */
_::-webkit-full-page-media, _:future, :root 
body {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
/* iPhoneサファリ対策  */
_::-webkit-full-page-media, _:future, :root 
img {
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
}
/* android端末対策 */
@media screen and (min-width: 1px) and (max-width: 979px) {
body {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
}


/* ■テストモードのヒント */
.additional-feedback {
    position: relative; 
    margin-top: 200px; 
    left: 50%; /* 水平方向の中央寄せ */
    transform: translateX(-50%); /* 中央揃えの調整 */
    font-size: 24px;
    text-align: center;
    width: 95%; /* ページ幅に合わせる */
    white-space: normal; /* 自動改行を許可 */
    overflow-wrap: break-word; /* 単語単位で改行される */
}
@media (min-width: 501px) and (max-width: 1200px) { 
    .additional-feedback {margin-top: 150px; }}
@media (min-width: 0px) and (max-width: 500px) { 
    .additional-feedback {margin-top: 20%; }}
@media (min-width: 0px) and (max-width: 768px) { 
    .additional-feedback {font-size: 18px;; }}

span.hint {
font-size: 20px;
font-weight: bold;
border: solid green;
border-width: 3px 10px;
border-radius: 10px;
background-color: green;
color:white;
white-space:nowrap;
padding: 0 2px 0 2px;
line-height: 2; /* スマホ時の行間 */
}
@media (max-width: 768px) { 
    span.hint {
        font-size: 14px; /* スマホ時のフォントサイズ */
    }
}


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

/* ■戻るボタン  */
#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);
    }
}















/* ■単語帳モード，テストモード　共通*/
h1.title{
font-size: 25px !important;
color: gray;
}

/* ■単語帳モード*/
/* の[] （上が品詞，下が覚え方）*/
div.text-large b {
color: #f5dda4;
}
div.text-small.show b {
color: #f5dda4;
}
/* 見出し英単語 */
td.word {
font-size: 25px !important;
}
@media (max-width: 768px) {
td.word {
font-size: 18px !important;
}
}
td.word, td.translation.show,td.anki-checkbox{
  background-color: #62C670;
}

/* ■テストモード*/
/* [] （品詞）*/
div.additional-feedback b {
color: red;
}
/* 見出し英単語 */
div.english-word {
color: #fad7d3;
}
p#question-counter{
color: red;
   margin-left: 10px;
}
.centered-box {
    background: #51c061 !important;
    background-size: 400% 400% !important;
    animation: wave-bg 5s ease infinite !important;
    color: white !important;
    font-size: 25px !important;
}
button.rounded-button {
  color: gray ;
}
div.additional-feedback {
  color: gray;
}
div#main p {
    margin-left: 10px !important;
    margin-right: 10px !important;
}
span.hint {
  position: relative;
  background-color: gray;
  border: solid gray;
  border-width: 3px 10px !important;
  border-radius: 5px;
  padding-bottom: px !important;
top: -10px !important;
}
/* スマホ */
@media (max-width: 768px) {
  div.additional-feedback {
    font-size: 14px !important;
  }
  div.feedback {
    font-size: 14px !important;
  }
  span.hint {
    font-size: 13px !important;
  }
  div.centered-box p{
    font-size: 18px !important;
  }
}
/* 小型スマホ（アイフォンSE等） ヒント全体を上げる */
@media (max-height: 699px) {
  div.additional-feedback {
    position: relative;
    top: -30px !important;
    
  }
}




p {
    letter-spacing: -1px; /* 文字間*/
}

/* チェックボックスとラジオボタンを青くする */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #007BFF; /* 青色 */
    cursor: pointer;       /* ホバーでカーソルを変える */
}
/* ラベルに少し余白を入れる */
label {
    margin-right: 10px;
    cursor: pointer;
}


















/* ■設定パネルの表 */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0px;
}
.section-title {
  padding: 0;
  /* 初期状態ではボーダーなし */
  border-left: none;
}
.section-title + .section-title {
  border-left: 1px solid white; /* 左側にだけボーダーを追加 */
}

.section-title {
  background-color: #4682B4;
  color: #fff;
  text-indent: 6px;

}
.section-content {
  background-color: #fff;
  display: flex;
  align-items: center;
  gap: 0px;
}
.section-content input[type=radio],
.section-content input[type=checkbox] {
  display: none;
}
.section-content input[type=radio]:checked + label,
.section-content input[type=checkbox]:checked + label {
  background-color: #c2d4f2;
  color: #4d4d4d;
}



.section-content label {
  flex: 1;
  display: flex;
    flex-direction: column;   /* ← 重要 */
   line-height: 0.9;
  text-align: center;          /* テキスト中央 */
  justify-content: center;
  padding:13px 0px;
  border: 1px solid #4682B4;
  cursor: pointer;
  margin: 0px !important;
    color: #4d4d4d;
    border-right: none;   /* 右側を消す */
  cursor: pointer;
  margin: 0;
  color: #4d4d4d;
}


.setting-mini {
  font-size: 12px;   /* 好きなサイズに */
}


@media (max-width: 599px) {
.setting-mini {
  font-size: 9px;   /* 好きなサイズに */
}
}


















.setting-mini {
  font-size: 12px;   /* 好きなサイズに */
}
@media (max-width: 599px) {
.setting-mini {
  font-size: 9px;   /* 好きなサイズに */

}
}
























/* 最後のラベルだけ右ボーダーを戻す */
.section-content label:last-child {
  border-right: 1px solid #4682B4;
}

.section-title {
  font-size: 14px;
}
.section-content label {
  font-size: 16px;
}


@media (min-width: 601px) and (max-width: 1024px) {
  .section-title {
  font-size: 13px;
  }
  .section-content label {
  font-size: 15px;
  }
}

@media (max-width: 600px) {
  .section-title {
  font-size: 12px;
  }
  .section-content label {
  font-size: 14px;
  }
#settings-container {
    padding: 10px !important;
    width: 95% !important;
    border-radius: 0px !important;; /* 角を丸く */
}
}










.settings-footer {
  display: flex;
  justify-content: space-between; /* 左右に分離 */
  align-items: center;            /* 縦中央 */
  margin-top: 10px;
}



.settings-buttons {
  display: flex;
  gap: 5px;   /* ボタン間の隙間 */
}

@media (max-width: 599px) {
  .btn-apply,
  .btn-cancel {
    padding: 5px 5px !important;
    font-size: 12px !important; /* スマホだけ適用 */
  }
}






.setting-mini2 {
  font-size: 14px;  
  color: red; 
}
@media (max-width: 499px) {
  .setting-mini2 {
    font-size: 11px;   
  }





/* 設定の文字サイズ(スマホ) */
@media screen and (max-width: 499px) {
  #settings-container h5 {
    font-size: 3.5vw !important;/* 表外の文字 */
  }
  #settings-container label, span.label-like {
    font-size: 3vw !important;/* 表外＋表内の項目 */
  }
  #settings-container .section-title {
    font-size: 3vw !important;/* 表内の見出し */
  }
  #settings-container .setting-mini {
    font-size: 2.5vw !important;/* ※上記３で「下で設定」の選択時も有効 */
  }
  #settings-container .setting-mini2 {
    font-size: 3vw !important;/* ページの全ての単語を習得済に */
  }
button.btn-apply, button.btn-cancel {
    font-size: 3.5vw  !important;/* ボタン */
  }
label {
    margin-right: 1px !important;
}
input[type="radio"],
input[type="checkbox"] {
    transform: scale(0.8) !important;
}

p {
    font-size: 3.5vw !important;/* 表外の文字 */
  }
button {
    font-size: 4vw !important;/* 表外の文字 */
  }
}




/* ■パンくずリストリンク */
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;
}



