/* 基本スタイル */
body {
  font-family: "Noto Sans", "Noto Sans JP", serif;
	color: #2e2e2e;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, p {
  margin: 0;
  padding: 0;
}

/* ヘッダー・フッター・メニューの固定設定 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 2;
  padding: 10px 20px;
  box-sizing: border-box;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

footer {
  padding: 20px 5% 50px;
}
footer small, footer small a{
  color: #2e2e2e;
  text-decoration: none;
  margin: 10px;
}
footer a{
  text-decoration: underline;
  color: #2b8ccc;
  margin: 0 10px;
}
.footer-link{
  margin: 10px 0;
  font-size: 0.9em;
  border-top: 1px solid #eee;
  padding: 20px 0 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.header-title{
  display: flex;
  align-items: flex-start;
  font-size: 26px;
  font-weight: bold;
  color: #2e2e2e;
}
.header-title img{
  margin-right: 10px;
}

/* ハンバーガーメニューアイコン */
.hamburger {
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  padding: 7px;
  box-sizing: border-box;
  border-radius: 8px;
}

.hamburger .bar {
  width: 100%;
  height: 4px;
  background-color: #666;
  margin: 2px 0;
  transition: all 0.3s ease;
}

/* メニュー */
.menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;
  max-width: 360px;
  height: 100%;
  background-color: #fff;
  box-shadow: 0px 0 8px rgba(0,0,0,0.1);
  transition: transform 0.5s ease;
  transform: translateX(150%);
  z-index: 5;
  box-sizing: border-box;
}

.menu.open {
  transform: translateX(0);
}
.menu-bg-mask{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3;
  transition: all 2s linear;
}
.menu-bg-mask.on{
  display: block;
  background-color: rgba(0,0,0,0.4);
}

.menu-header {
  padding: 20px 0 10px;
  border-bottom: double #ddd;
  font-size: 16px;
  text-align: center;
  margin: 0 20px;
  color: #666;
}

.menu-section {
  padding: 12px 20px;
  border-bottom: 1px solid #ddd;
  margin: 0 20px;
}

.menu-section h3 {
  font-size: 15px;
  margin-bottom: 4px;
  font-weight: normal;
  color: #666;
}

#menu-final-type {
  font-size: 16px;
  color: #555;
  text-align: center;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #666;
}

.menu ul li {
  padding: 18px 20px;
  margin: 0 20px;
  text-align: center;
}
.menu ul li:hover{
  background-color: #f8f8f8;
}
.menu-close-container {
  text-align: center;
  padding: 12px 0;
}
.menu_current{
  background-color: #f8f8f8;
  color: #3498db;
}
/* Mainコンテンツ：ヘッダー分の余白 */
main {
  padding-top: 80px;
  margin: 20px;
}
/* index.html 用ページ */
#top-page, #quiz-page, #result-page {
  margin-top: 20px;
}
#quiz-form{
  max-width: 700px;
  margin: 0 auto;
}
#result{
  max-width: 700px;
  margin: 0 auto;
}

#top-page{
  text-align: center;
}

/* 教師タイプページ用 */
.teacher-types-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.teacher-type-block {
  position: relative;
  padding: 10px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}
.background-block{
  position: absolute;
  width: 1000%;
  height: 100px;
  top: 40%;
  left: -500%;
  transform: rotate(-15deg);
  z-index: -1;
}

.teacher-type-block h3{
  margin: 10px 0;
}

.teacher-type-block img {
  width: 50%;
  height: auto;
}

.type-explanation {
  margin-top: 10px;
  text-align: left;
}

.type-explanation h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.type-explanation p {
  text-align: center;
  font-size: 14px;
  margin-bottom: 0px;
  color: gray;
}

/* 画面幅600px以上の場合は2列レイアウト */
@media (min-width: 900px) {
  .teacher-types-container {
    justify-content: space-between;
    max-width: 850px;
  }
  .teacher-type-block {
    flex: 0 0 calc(50% - 40px);
  }
  .teacher-type-wrapper{
    display: flex;
    justify-content: center;
  }
}

/* 質問表示用スタイル（index.html 用） */
.question {
  margin: 20px 0;
  padding: 20px 20px 10px;
  transition: opacity 0.3s, transform 0.3s;
  background-color: #fff;
  border-radius: 30px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.question p {
  font-weight: bold;
  color: #666;
}
.dimmed {
  opacity: 0.5;
}

.current-question {
  opacity: 1;
  transform: scale(1.02);
}

.answer-group {
  margin-top: 10px;
}

.options-wrapper {
  position: relative;
  padding-top: 25px;
}

/* オプションラベル（絶対配置） */
.option-labels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.option-labels .left-label,
.option-labels .right-label {
  font-weight: bold;
  font-size: 16px;
  padding: 0 5px;
}
@media screen and (max-width:600px){
  .option-labels .left-label,
  .option-labels .right-label {
    font-size: 13px;
}
}

.option-labels .left-label {
  color: #adf;
}

.option-labels .right-label {
  color: #fab;
}

/* オプション行 */
.options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ラジオボタンのサイズ */
.options .option-label:nth-child(1) .custom-radio {
  width: 50px;
  height: 50px;
}
.options .option-label:nth-child(2) .custom-radio {
  width: 45px;
  height: 45px;
}
.options .option-label:nth-child(3) .custom-radio {
  width: 40px;
  height: 40px;
}
.options .option-label:nth-child(4) .custom-radio {
  width: 45px;
  height: 45px;
}
.options .option-label:nth-child(5) .custom-radio {
  width: 50px;
  height: 50px;
}

/* オプション基本設定 */
.option-label {
  display: inline-block;
  margin: 0 5px;
  cursor: pointer;
  position: relative;
}

.option-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-radio {
  display: inline-block;
  border-radius: 50%;
  border: 2px solid;
  background-color: transparent;
  transition: background-color 0.3s, transform 0.3s;
}

/* オプションの色 */
.options .option-label:nth-child(1) .custom-radio,
.options .option-label:nth-child(2) .custom-radio {
  border-color: #adf;
}

.options .option-label:nth-child(3) .custom-radio {
  border-color: #d3d3d3;
}

.options .option-label:nth-child(4) .custom-radio,
.options .option-label:nth-child(5) .custom-radio {
  border-color: #fab;
}

/* ホバー効果 */
.options .option-label:hover .custom-radio {
  transform: scale(1.1);
}

.options .option-label:nth-child(1):hover .custom-radio,
.options .option-label:nth-child(2):hover .custom-radio {
  background-color: #adf;
}

.options .option-label:nth-child(3):hover .custom-radio {
  background-color: #d3d3d3;
}

.options .option-label:nth-child(4):hover .custom-radio,
.options .option-label:nth-child(5):hover .custom-radio {
  background-color: #fab;
}

/* 選択時 */
.options .option-label input:checked + .custom-radio {
  transform: scale(1.1);
}

.options .option-label:nth-child(1) input:checked + .custom-radio,
.options .option-label:nth-child(2) input:checked + .custom-radio {
  background-color: #adf;
}

.options .option-label:nth-child(3) input:checked + .custom-radio {
  background-color: #d3d3d3;
}

.options .option-label:nth-child(4) input:checked + .custom-radio,
.options .option-label:nth-child(5) input:checked + .custom-radio {
  background-color: #fab;
}

/* チェックマーク表示（top:55%に調整） */
.options .option-label:hover .custom-radio::after,
.options .option-label input:checked + .custom-radio::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 18px;
  pointer-events: none;
}

/* ローディング表示 */
.load_wrapper{
  width:200px;
  height:60px;
  position: absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
}
.circle{
  width:20px;
  height:20px;
  position: absolute;
  border-radius: 50%;
  background-color: #fff;
  left:15%;
  transform-origin: 50%;
  animation: circle .5s alternate infinite ease;
}

@keyframes circle{
  0%{
      top:60px;
      height:5px;
      border-radius: 50px 50px 25px 25px;
      transform: scaleX(1.7);
  }
  40%{
      height:20px;
      border-radius: 50%;
      transform: scaleX(1);
  }
  100%{
      top:0%;
  }
}
.circle:nth-child(2){
  left:45%;
  animation-delay: .2s;
}
.circle:nth-child(3){
  left:auto;
  right:15%;
  animation-delay: .3s;
}
.shadow{
  width:20px;
  height:4px;
  border-radius: 50%;
  background-color: rgba(0,0,0,.3);
  position: absolute;
  top:62px;
  transform-origin: 50%;
  z-index: -1;
  left:15%;
  filter: blur(1px);
  animation: shadow .5s alternate infinite ease;
}

@keyframes shadow{
  0%{
      transform: scaleX(1.5);
  }
  40%{
      transform: scaleX(1);
      opacity: .7;
  }
  100%{
      transform: scaleX(.2);
      opacity: .4;
  }
}
.shadow:nth-child(4){
  left: 45%;
  animation-delay: .2s
}
.shadow:nth-child(5){
  left:auto;
  right:15%;
  animation-delay: .3s;
}
.load_wrapper span{
  position: absolute;
  top:75px;
  font-family: 'Lato';
  font-weight: bold;
  font-size: 20px;
  letter-spacing: 12px;
  color: #fff;
  left:15%;
}

.load_mask.area{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background-color: #fff;
z-index: 1;
}

/* 結果表示 */
.result-main-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  padding: 30px 0;
  margin-top: 32px;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.result-main-bg{
  position: absolute;
  width: 1000%;
  height: 100px;
  top: 40%;
  left: -500%;
  transform: rotate(-15deg);
  z-index: 1;
}
#result p{
  color: #2e2e2e;
  margin: 10px 0;
  line-height: 1.6em;
}
@media screen and (max-width:600px) {
  .result-main-container {
    margin-top: 0;
  }
}
.result-title{
  color: #2e2e2e;
  text-align: center;
}
.result-main-box h3{
  margin: 10px 0 5px;
}
.result-main-box ul{
  padding-inline-start: 20px;
  list-style-type: square;
  font-size: 0.9em;
}
.result-main-image {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px;
  max-width: 100%;
}

.result-main-image img {
  width: 100%;
  height: auto;
}

.long-description {
  margin-top: 16px;
  font-size: 16px;
}

.result-second {
  margin-top: 32px;
  font-size: 16px;
  padding: 16px;
  border-left: 4px solid #fff;
  background-color: rgba(255, 255, 255, 0.3);
}
.result-second p{
  margin-top: 0;
}
#result h4{
  margin-top: 30px;
  color: #2e2e2e;
}
#result h5{
  font-size: 1.5em;
  margin: 20px 0;
}

/* toppageのボタン */
.top_btn_wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn{
  padding: 10px 20px;
  width: 200px;
  height: 26px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); 
  border-radius: 30px;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 10px 0;
  color: #2b8ccc;
  font-weight: bold;
}

/* 背景 */
.area{
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(140deg, #fff, 20%, #aaf);
  background: -webkit-linear-gradient(140deg, #fff, 20%, #aaf);  
  width: 100vw;
  height:100vh;
  background-size: cover;
  z-index: -2;
  overflow: hidden;
}

.area.quiz{
  background: linear-gradient(120deg, #bdf, 65%, #fcd);
  background: -webkit-linear-gradient(120deg, #adf, 65%, #fab);
}

.circles{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.circles li{
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  animation: animate 25s linear infinite;
  bottom: -150px;
}

.circles li:nth-child(1){
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.circles li:nth-child(2){
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.circles li:nth-child(3){
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.circles li:nth-child(4){
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.circles li:nth-child(5){
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.circles li:nth-child(6){
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.circles li:nth-child(7){
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.circles li:nth-child(8){
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.circles li:nth-child(9){
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.circles li:nth-child(10){
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}

@keyframes animate {
  0%{
      transform: translateY(0) rotate(0deg);
      opacity: 1;
      border-radius: 0;
  }

  100%{
      transform: translateY(-1000px) rotate(720deg);
      opacity: 0;
      border-radius: 50%;
  }
}

/* top-pageコンテンツ */
.top_text_wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 50px 0 100px;
  color: #fff;
}
.top_text_wrap p{
  margin: 20px 0;
}
.top_text_wrap div {
  width: 90%;
  text-align: left;
}
.top_text_wrap h2 {
  letter-spacing: 4px;
  margin-bottom: 40px;
}