@charset "UTF-8";
@media screen and (max-width: 768px){
  .pconly,
  textarea{
    display: none !important;
  }
  .sponly > p{
    width: 92%;
    max-width: 450px;
    text-align: center;
    margin: auto;
    padding: 23px 0 40px;
  }
}
@media screen and (min-width: 769px){
  .sponly{
    display: none !important;
  }
}
nav.breadcrumb{
  display: block;
  background: #f5fdff;
}
nav.breadcrumb ol{
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  width: 90%;
  max-width: 1200px;
  padding: 10px 0;
  list-style: none;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
}
nav.breadcrumb ol li{
  position: relative;
  padding-right: 1.5em;
}
nav.breadcrumb ol li::before{
  content: ">";
  position: absolute;
  right: 3px;
}
nav.breadcrumb ol li:last-child::before{
  content: none;
}
.breadcrumb a{
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
}

main{
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
}
h1{
  background:linear-gradient(90deg, #078ffb, #2db6d1);
  color: white;
  padding: 6px;
  font-size: 28px;
  margin-bottom: 20px;
}

.table-title {
  font-size: 40px;
  font-weight: bold;
  margin: 20px auto;
  padding: 10px;
  border-radius: 8px;
}

/* 表まわり（スクロール対応） */
.table-container {
  overflow-x: auto;
  width: 100%;
  max-width: 100vw;
  display: inline-block;
  background-color: #f9f9f9;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-top: 16px;
  padding: 4px; /* 不要な余白なしで */
}

/* F列の上の注意テキスト */
.table-note {
  display: block;
  width: 100%;
  margin: 0 auto 8px;
  font-size: 20px;
  color: red;
  font-weight: bold;
  white-space: nowrap;
}

table {
  width: 100%;
  max-width: none;
  font-size: 12px;
  margin: 0px auto;
  border-collapse: collapse;
  box-shadow: 0 0 10px lightgray;
}

table, td, th {
  border: 1px solid gray;
}

td, th {
  padding: 12px 16px;
  text-align: center;
  white-space: nowrap;
}

tr:nth-child(even) {
  background-color: whitesmoke;
}

/* 見出し・項目色とか */
.alphabet {
  background: linear-gradient(90deg, #078ffb, #2db6d1);
  color: white;
}

.result {
  background-color: peachpuff;
}

tr.items {
  background-color: #b4c6e7;
}

tr.items td.number {
  background-color: transparent;
}

/* 表内の記述欄（textarea） */
table textarea {
  width: 100%;
  height: 100%;
  border: none;
  border-bottom: 2px solid #000;
  resize: none;
  outline: none;
  padding: 8px;
}

/* ヒント表示ボタン */
#hintToggle {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  font-size: 18px;
  padding: 12px 16px;
  cursor: pointer;
  border: 1px solid black;
  background: linear-gradient(90deg, #078ffb, #2db6d1);
  color: white;
  text-align: center;
}

#hintToggle:hover {
  transform: scale(1.05);
}

/* ヒントの中身 */
#hintContent {
  font-size: 18px;
  width: 100%;                /* 親幅に合わせる */
  max-width: 944px;
  overflow-x: auto;           /* 横スクロールを許可 */
  background-color: #f9f9f9;  /* 背景色 */
  box-shadow: 0 0 10px rgba(0,0,0,0.1); /* 影 */
  margin: 20px auto;
  padding: 0;                 /* 内側の余白を消す */
  display:block;
  display: none;
}

#hintContent td {
  padding: 8px 12px;
  border: 1px solid #ccc;
  white-space: nowrap;
}

/* 名前欄 */
#userName {
  font-size: 20px;
  padding: 10px 15px;
  border: 2px solid #888;
  border-radius: 8px;
  box-sizing: border-box;
  resize: none;
}

/* 問題・選択肢のエリア */
.question-container {
  width: 90%;
  max-width: 1200px;
  margin: 20px auto 30px auto;
}
textarea {
  resize: none;   /* リサイズ禁止 */
  font-size: 16px;
  padding: 8px;
}
.quiz-answer {
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quiz-button {
  display: block;
  width: 100%;
  background-color: #7cd0f2;
  color: white;
  padding: 10px 16px;
  margin: 8px 0;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
}

.quiz-button:hover {
  background-color: #5bb9e5;
}

/* 答えのフィードバック */
.fb {
  font-size: 18px;
  padding: 16px 20px;
  margin-top: 20px;
  border-radius: 10px;
  display: inline-block;
  color: white;
}

.fb.correct {
  background-color: green;
}

.fb.incorrect {
  background-color: red;
}

/* 送信ボタン */
.button {
  display: block;
  margin: 40px auto;
  background: linear-gradient(90deg, #078ffb, #2db6d1);
  color: white;
  font-size: 24px;
  padding: 20px 40px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.button:hover {
  background-color: #5bb9e5;
  transform: scale(1.05);
}

#testscore,
#date {
  font-size: xx-large;
}

/* スマホ注意オーバーレイ */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

.mobile-note {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  white-space: nowrap;
  text-align: center;
  padding: 20px 30px;
  font-weight: bold;
  font-size: 18px;
  border-radius: 10px;
  z-index: 1000;
  max-width: 90%;
}
.answer{
  display: flex;
  align-items: center;
}

/* スマホ用：768px以下で注意を表示 */
@media screen and (max-width: 768px) {
  .overlay {
    display: block;
  }

  .mobile-note {
    display: block;
  }
}