@charset "UTF-8";

/* common ======================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  /* overflow: hidden; */
}

body {
  line-height: 1.6;
  font-size: 16px;
  font-family: 'RocknRoll One';
}

select, input, button {
  font-family: 'RocknRoll One';
}

.bg {
  width: 100%;
  top: 0;
  left: 0;
  position: fixed;
  height: 100dvh;
  margin: 0;
  padding: 0;
  z-index: -1;

  background-image: url('../img/BackGround.jpeg');
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: cover;
}

#app {
  width: 100%;
  height: auto;
  min-height: 100%;
  overflow: clip;
}

a {
  color: #000;
  text-decoration: none;
}

/* a:hover {
  opacity: 0.8;
} */

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1 {
  margin: 0;
  font-size: 40px;
  color: #fff;
  /* text-shadow: -1.5px -1.5px 0 #fff, 0px -1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px 0px 0 #fff, 1.5px 0px 0 #fff, -1.5px 1.5px 0 #fff, 0px 1.5px 0 #fff, 1.5px 1.5px 0 #fff; */
  -webkit-text-stroke: 5px #000;
  paint-order: stroke;
  letter-spacing: -3px;
}

h2 {
  margin: 0;
}

img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
  padding: 0;
  margin: 0;
}

button {
  padding: 0;
  margin: 0;
}

.back {
  display: block;
  width: fit-content;
  text-align: center;
  padding: 5px 20px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.back a {
  color: #fff;
}

/* main ======================================================= */
/* header ====================== */
.header {
  padding: 0 20px;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .flex {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header .flex a {
  display: flex;
  align-items: center;
  font-size: 32px;
  width: 100%;
  height: 55px;
  padding: 10px 30px;
  background: #000;
  -webkit-text-stroke: 2px white;
  paint-order: stroke;
  /* text-shadow: -1.5px -1.5px 0 #fff, 0px -1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px 0px 0 #fff, 1.5px 0px 0 #fff, -1.5px 1.5px 0 #fff, 0px 1.5px 0 #fff, 1.5px 1.5px 0 #fff; */
}
/* /header ====================== */

/* login */
.login {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0009;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

::placeholder {
  text-align: center;
  color: #d9d9d9;
}

#username:focus,#password:focus {
  background: #fff;
  color: #000;
}

#username:focus::placeholder, 
#password:focus::placeholder {
  color: #000000;
}

.login-box img {
  display: block;
  max-width: 700px;
  width: 100%;
  height: auto;
  vertical-align: bottom;
  padding: 50px 5px 0;
  margin: 0 auto;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0 auto;
  padding: 5px;
}

#username {
  max-width: 800px;
  width: 95%;
  height: 60px;
  font-size: large;
  border: 1px solid #ccc;
  box-sizing: border-box;
  background: #000;
  color: #d9d9d9;
  margin: 35px auto 0;
  font-size: 25px;
}

#password {
  max-width: 800px;
  width: 95%;
  height: 60px;
  font-size: large;
  border: 1px solid #ccc;
  box-sizing: border-box;
  background: #000;
  color: #d9d9d9;
  margin: 20px auto 0;
  font-size: 25px;
  justify-content: center;
}

.login-box button {
  max-width: 600px;
  font-size: 15px;
  padding: 5px;
  background: #000;
  color: #d9d9d9;
  cursor: pointer;
  height: 50px;
  display: block;
  margin: 75px auto 20px;
  width: 70%;
  font-size: 25px;
  justify-content: center;
}

.err {
  display: block;
  margin: 10px auto;
  width: fit-content;
  padding: 10px 20px;
  background: #fff;
  color: #f00;
  text-align: center;
  border-radius: 3px;
}


/* top */
/* メインボタンのコンテンツを中央寄せ */
.button-container .main-button {
  display: flex;
  justify-content: flex-start; 
  align-items: center;
  gap: 20px;
  font-size: 1.5em; 
  padding: 20px 60px; 
  background: #000;
  color: #000;
  /* text-shadow: -3px -3px 0 #fff, 0px -3px 0 #fff, 3px -3px 0 #fff, -3px 0px 0 #fff, 3px 0px 0 #fff, -3px 3px 0 #fff, 0px 3px 0 #fff, 3px 3px 0 #fff; */
  transition: transform 0.3s ease; 
  
  width: 100%;
  height: auto;
  position: static;


}

.c {
  width: 100%;
  text-align: center;
  -webkit-text-stroke: 5px white;
  paint-order: stroke;
}

.button-container {
  display: flex; 
  flex-direction: column;
  gap: 25px; 
  width: 100%; 
  padding: 50px 20px 10px;
}

.menu-group {
  display: flex; 
  align-items: flex-start;
  position: relative; 
}

.sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 50px;
  
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.5s, opacity 0.5s ease;

  display: flex;
  flex-direction: column;
  backface-visibility: hidden; 
  width: fit-content; 
}

.main-button {
  backface-visibility: hidden; 
  transform-origin: top left;
}

/* .menu-group:hover > .main-button,
.button-container > .main-button:hover {
  transform: scale(1.1); 
  background: #000; 
  color: #fff;
  -webkit-text-stroke: 2px white;
  paint-order: stroke;
  /* text-shadow: -1px -1px 0 #000, 0px -1px 0 #000, 1px -1px 0 #000, -1px 0px 0 #000, 1px 0px 0 #000, -1px 1px 0 #000, 0px 1px 0 #000, 1px 1px 0 #000; */
/* } */

.fa-icon-space {
  margin-left: 0; 
  width: 1.25em; 
  /* margin-right: 25px; */
  text-align: left; 
  flex-shrink: 0; 
  color: #fff;
  text-shadow: #000 1px 1px 2px;
}

.logo {
  /* width: 180%; */
  height: auto;
  vertical-align: bottom;
  padding: 50px 5px 0;
}

/* 説明文のスタイル */
.description-text {
  position: absolute;
  top: 0; 
  left: 100%; 
  
  margin-left: 20px; 
  
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
  
  /* Flexboxで垂直・水平中央寄せ */
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
  
  /* デザインの調整 */
  font-size: 28px; 
  height: 90px; 
  width: 300px; 
  padding: 0 15px; 
  
  white-space: normal; 
  
  /* 背景を半透明の黒に */
  background: rgba(0, 0, 0, 0.5); 
  color: #fff;
  text-shadow: none;
}

/* メインボタン/サブボタンホバー時のみ表示する
.sub-menu a:hover .description-text,
.main-button:hover .description-text { 
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
} */

/* 謎解き画面 */
.riddle-wrap {
  padding: 10px 30px;
  margin: 0 auto;
  max-width: 600px;
  width: 100%;

  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.riddle {
  display: block;
  margin: 0 auto;
  width: 100%;
}

.riddle-wrap h2 {
  color: #fff;
  -webkit-text-stroke: 5px #000;
  paint-order: stroke;
}

.riddle-wrap form {
  display: flex;
  flex-direction: column;
  gap: 20px;

  margin: 20px auto 0;
  text-align: center;
}

.riddle-wrap form input {
  width: 80%;
  padding: 10px;
  margin: 0 auto;
}

.riddle-wrap form button {
  width: 60%;
  padding: 5px;
  margin: 0 auto;
  background: #ff9500;
  color: #fff;
  border: 1px solid #000;
  border-radius: 3px;
  cursor: pointer;
  color: #fff;
  -webkit-text-stroke: 3.5px #000;
  paint-order: stroke;
  font-size: 16px;
}

.riddle-wrap .back {
  width: 60%;
  padding: 5px;
  margin: 20px auto;
}

.hint-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  right: 30px;
  background: #ff0;
  border: 1px solid #000;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hint-btn i {
  margin: 0;
  scale: 1.3;
  width: auto;
}

/* 謎解き画面 - hint modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 52;
}
.modal-content {
  position: relative;
  background: white;
  padding: 3rem;
  border-radius: 10px;
  max-width: 400px;
  width: 80%;
  text-align: center;
}

.modal-content h2 {
  width: fit-content;
  border-bottom: 1px solid #000;
  padding-bottom: 5px;
  margin-bottom: 1em;
}

.gmarker {
  scale: .5;
}

.flex {
  display: flex;
  gap: 20px;
}

.modal-content .flex img {
  max-width: 100%;
  width: 50%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.modal-content .close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 5;
  cursor: pointer;
}

.modal-content .close img {
  width: 100%;
  height: 100%;
}


/* 謎解きリスト */
.riddle-list {
  padding: 0 30px;
}

.riddle-list dt {
  margin: 0;
  padding: 20px 0;

  /* 指カーソル */
  cursor: pointer;
}
.riddle-list dd {
  margin: 0;
  padding: 0;
  transition: all .4s ease-out;

  display: grid;
  grid-template-rows: 0fr;
}

.riddle-list dd div {
  overflow: hidden;
}

.riddle-list .inner + .inner {
  border-top: 1px solid #fff;
}

.riddle-list .inner.open dd {
  padding: 0 0 20px;
  grid-template-rows: 1fr;
}

.riddle-list dt {
  width: 100%;

  font-size: 32px; 
  height: 90px;
  padding: 20px 1em; 
  background: #000;
  color: #fff;
  transition: transform 0.3s ease; 

  display: flex;
  align-items: center;
  gap: 30px;
}

.riddles li {
  padding: 15px 10px;
  background: #ddd;
  border: 1px solid #000;
}

.riddles li a {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-evenly;
  align-items: baseline;
}

.riddles li .point {
  font-size: 0.8em;
}

.riddles li.clear {
  background: #a33;
}

.riddles li.clear a {
  color: #fff;
}

.inner .arrow {
  display: inline-block;
  vertical-align: middle;
  color: #fff;
  line-height: 1;
  width: 1em;
  height: 1em;
  border: 0.1em solid currentColor;
  border-left: 0;
  border-bottom: 0;
  box-sizing: border-box;
  transform: translateY(25%) rotate(-45deg);
  transition: all .4s ease-out;
}

.inner.open .arrow {
  transform: translateY(-25%) rotate(135deg);
}


/* student */

.h-flex {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: 0 10px;
  gap: 5px;
}

.h-flex + .h-flex {
  padding-top: 10px;
}

.select-sort {
  position: relative;
  display: flex;
  height: auto;
}

/* ソート：ラベル */
.select-sort .sort-label {
  position:absolute;
  pointer-events: none;
  top:0;
  left:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.5em;
  width:auto;
  height:100%;
  aspect-ratio:1/1;
  background:#fff;
  cursor:pointer;
}

select {
  min-width: 200px;
  width: 100%;
  font-weight: bold;
  background: #979797;
  appearance: none;
  font-size: 20px;
  padding: 10px 20px;
  text-align: right;
  cursor: pointer;
  padding-right: 1.5em;
}


/* studentList 学生一覧 */
.students-list {
  display:flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 150px 30px 30px;
  gap: 30px;
}

.students-list .student {
  max-width: 80px;
  width: 100%;
  background: #fff;
  font-size: 13px;
  text-align: center;
  transition:all 0s ease-in-out;
  cursor:pointer;
}

.students-list .student figure {
  width: 80px;
  height: 100px;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.stu-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 125px;
  /* background: #03b0ec; */
  background: #7AD5F4;
}

.det-student h1 {
  text-align: center;
  /* height: 80px; */
  /* font-size: 55px; */
  font-size: 45px;
}

.det-student h2 {
  width: 80%;
  text-align: center;
  margin: 0 auto;
  color: #fff;
  background: #000b;
}

.det-student .wrap {
  position: absolute;
  width: 100%;
  bottom: 60px;
  padding-left: 20px;
}

.det-student .con {
  display: flex;
}

.det-student .con * {
  flex: 1;
}

.det-student .student  {
  padding-top: 30px;
  width: 100%;
  height: calc(100dvh - 80px);
  background-size: 80% auto;
  background-position: center 110px;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease-in-out;
}

.det-student .student-info li {
  width: fit-content;
  min-width: 50%;
  font-size: 18px;
  padding-left: 10px;
  margin: 20px 0;
  color: #fff;
  background: #000b;
}

.wrap p {
  font-size: 18px;
  padding-left: 10px;
  width: 90%;
  margin: 0 0 20px;
  color: #fff;
  background: #000b;
}



/* ロード */
.load {
  position: fixed;
  width: 100%;
  height: 100dvh;
  top: 0;
  left: 0;
  background: #000a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.load-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 10px solid #ddd;
  border-top-color: #00f;
  animation: rotation 1s 0s linear infinite;
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.load p {
  font-size: 18px;
}

@media (max-width: 370px) {
  /* StudentList */
  .stu-header h1 {
    font-size: 30px;
  }

  /* ProfileEdit */
  .h-flex h1 {
    font-size: 36px;
    display: flex;
    align-items: center;
  }

}

@media (max-width: 360px) {
  /* StudentList */
  .students-list .student{
    max-width: 60px;
    font-size: 10px;
  }
}