html, body {
 margin: 0;
 padding: 0;
 height: 100%; /* 全体の高さを固定 */
}

.yellow {
 background-color: rgb(253, 219, 147);
}

.yellow-dot {
 background-color: rgb(253, 219, 147);
 background-image: radial-gradient(white 2px, transparent 2px);
 background-size: 50px 50px;
}

.blue {
 background-color: rgb(140, 224, 241);
 background-image: repeating-linear-gradient(45deg, /* 斜め45度 */
      rgb(180, 224, 241), /* 白い線の色 */
      rgb(180, 224, 241) 1px, /* 白い線の太さ */
      transparent 1px, /* 線の終わり */
      transparent 5px /* 間隔 */
    );
}

.green {
 background-color: rgb(141, 215, 149);
 background-image: repeating-linear-gradient(135deg, /* 斜め45度 */
      rgb(141, 245, 149), /* 白い線の色 */
      rgb(141, 245, 149) 1px, /* 白い線の太さ */
      transparent 1px, /* 線の終わり */
      transparent 5px /* 間隔 */
    );
}

.floating-box {
 background-color: rgba(255, 255, 255, 0.6); /* 半透明の白で背景を透かす */
 box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 影で浮いてる感 */
 padding: 1rem; /* 余白 */
}

summary {
 text-align: left;
 margin-left: 1vw;
}

:focus {
 outline: none !important;
 box-shadow: none !important;
}

.wrap {
 overflow-x: hidden; /* wrap内でオーバーフローを処理することで、bodyからはみ出る余白を消す ←scroll-margin-topが利かなくなるため消す*/
 overflow-y: auto;
 display: flex;
 flex-direction: column; /* flexコンテナー内の向きを決めて並び順を縦にする */
 min-height: 100vh; /* ビューポートの高さを確保 */
}

.main_content {
 flex: 1; /* コンテンツ部分を拡張（stickyの下の余白防止） */
}

.panel {
 margin-top: 2vh;
 font-size: 3vh;
}

.hometext{
 padding: 1vh;
 white-space: pre-line;
}

.explanation {
 font-size: 4vh;
 text-align: left;
 margin: 1vh 1vw;
}

header>div {
 line-height: 0;
 opacity: 90%;
}

.header_a {
 display: inline-block;
}

.header_img {
 margin: 1vh 2vw;
 min-width: 90px;
 width: 10vw;
 height: 5vh;
}

footer>div {
 margin-top: 3vh;
 line-height: 0;
 opacity: 90%;
}

.footer_a {
 display: inline-block;
}

.footer_img {
 margin: 1vh 1vw;
 min-width: 90px;
 width: 10vw;
 height: 5vh;
}

#error-message{
 color: red;
 font-size: 2vh;
 white-space: pre-line;
}

.form {
 margin: 2vh 5vw;
}

.small-sss {
 font-size: 2.5vh;
}

.questionContainer {
 display: flex;
 flex-flow: wrap;
 border-radius: 10px;
 padding: 1vh 1vw;
}

.questionLinkDiv {
 width: calc(100%/ 3);
}

.questionLinkDiv * {
 display: flex;
}

.questionLinkDiv>form {
 position: relative;
}

.questionLinkMark {
 font-weight: bold;
 position: absolute;
 right: 0;
}

.answer_group {
 display: flex;
 margin: 0 2vw;
 justify-content: space-between;
 flex-wrap: wrap;
}

.img-fluid {
 max-width: 70%;
 min-width: 50%;
}

.details {
 margin: 2vh 0;
}

.button_group {
 display: flex;
 margin: 3vh 2vw;
 justify-content: center;
 flex-wrap: wrap;
}

.choice_button {
 border: none;
 width: 10vw;
 margin: 1vh 1vw;
 --bs-bg-opacity: .5;
}

.star-btn {
 margin: 0 1vw 2vh;
 border: none;
}

.image-container {
 display: flex;
 flex-direction: row; /* デフォルトは横並び */
 flex-wrap: wrap; /* はみ出す場合は折り返す */
 margin: 1vh 0.5vw;
}

.image-container img {
 width: 100%;
 max-width: 300px;
 object-fit: cover;
 margin: 0 3vw 3vh 0;
}

.delete_button {
 width: 10vw;
 margin: 1vh 1vw;
}

textarea {
 min-height: 25vh; /* 画面高の1/4 */
 height: auto;
 box-sizing: border-box;
 border-radius: 10px;
 --bs-bg-opacity: .5;
 margin: 0.5vh 0 0
}

.tooltip {
 display: none;
 position: absolute;
 background: #f9f9f9;
 color: #333;
 padding: 5px;
 border: 1px solid #ccc;
 border-radius: 5px;
 font-size: 12px;
 white-space: nowrap;
 z-index: 10;
}

input:focus+.tooltip {
 display: inline-block;
}

.input>#username, .input>#email, .input>#password, .input>#rePassword {
 line-height: 50px;
 vertical-align: middle;
 font-size: 4vh;
 width: 100%;
}

.verify-otp>#otp {
 line-height: 30px;
 vertical-align: middle;
 font-size: 5vh;
 width: 30vw;
 margin: 0 1vw;
}

.login-label {
 width: 15vw;
 text-align: right
}

.form-check-label {
 font-size: 3vh;
 vertical-align: middle;
}

.form-check-input {
 float: none !important;
 font-size: 3vh;
 margin: unset !important;
 vertical-align: middle;
}

.loginLink>div {
 text-align: left;
 margin: 0.5vh 1vw;
 line-height: 1;
}

.loginLink>div>a {
 font-size: 3.5vh;
}

.dropdown-item {
 color: white;
}

.new-reg-label {
 width: 25vw;
 text-align: right
}

.profile>div {
 font-size: 5vh;
 margin-top: 2vh;
}

.profile>input {
 font-size: 4vh;
 margin: 1vh 0;
 width: 100%;
 --bs-bg-opacity: .25;
}

.desidebtn {
 width: 20vw !important;
 margin-bottom: 3vh;
}

.link-fontsize {
 font-size: 2.5vh !important;
}

.sub-section{
	margin: 0.5vh 0 0 1vw;
	font-size: 2.2vh;
 }

@media only screen and (max-width: 480px) {
 summary {
  text-align: left;
  margin-left: 2vw;
 }
 .home-questionslist {
  display: flex;
  flex-direction: column;
 }
 .small-lll {
  font-size: 7vh !important;
 }
 .small-l {
  font-size: 5vh !important;
 }
 .small-m {
  font-size: 3vh !important;
 }
 .small-s {
  font-size: 2.5vh !important;
 }
 .small-ss {
  font-size: 2.3vh !important;
 }
 .small-sss {
  font-size: 2vh !important;
 }
 .link-fontsize {
  font-size: 1.7vh !important;
 }
 .small-imp {
  text-align: left !important;
 }
 .img-fluid {
  max-width: 90%;
  min-width: 70%;
 }
 .explanation {
  font-size: 2vh;
  margin-top: 1vh;
  text-align: left;
 }
 .form {
  margin: 1vh 3vw !important;
 }
 .questionContainer {
  flex-flow: column nowrap !important;
  border-radius: 10px !important;
  padding: 1vh 1vw !important;
 }
 .questionLinkDiv {
  width: 100% !important;
 }
 .choice_s {
  display: inline-block !important;
 }
 .details {
  font-size: 2.3vh !important;
 }
 .image-container {
  flex-direction: column;
 }
 .answer_group {
  display: block !important;
 }
 .button_group {
  justify-content: space-between !important;
 }
 .input>#username, .input>#password, .input>#rePassword {
  line-height: 30px;
  vertical-align: middle;
  font-size: 1.8vh;
  width: 100%;
 }
 .input>#email {
  line-height: 30px;
  vertical-align: middle;
  font-size: 1.5vh;
  width: 100%;
 }
 .verify-otp>#otp {
  line-height: 30px;
  vertical-align: middle;
  font-size: 2vh;
  width: 40vw;
  margin: 0 1vw;
 }
 .login-label {
  width: 25vw;
  text-align: right
 }
 .star-btn {
  margin: 0 1vw 1vh;
 }
 .form-check-label {
  font-size: 1.8vh !important;
 }
 .form-check-input {
  float: none !important;
  font-size: 1.8vh;
  margin: unset !important;
 }
 .profile>div {
  font-size: 3vh;
  margin-top: 2vh;
 }
 .profile>input {
  font-size: 2vh;
  margin: 1vh 0;
  width: 100%;
 }
 .new-reg-label {
  width: 25vw;
  text-align: right
 }
 .new-reg-label-repass {
  font-size: 1.2vh !important;
  margin-top: 1vh
 }
 .desidebtn {
  width: 45vw !important;
  margin-bottom: 3vh;
 }
 .sub-section{
	margin: 0.5vh 0 0 3vw;
	font-size: 1.7vh;
 }
}

@media only screen and (min-width: 481px) and (max-width: 1000px) {
 .home-questionslist {
  display: flex;
  flex-direction: column;
 }
 .login-label {
  width: 20vw;
  text-align: right
 }
 .new-reg-label-repass {
  font-size: 2.8vh !important;
  margin-top: 2vh
 }
 .questionLinkDiv {
  width: calc(100%/ 2) !important;
 }
 .sub-section{
 	margin: 0.5vh 0 0 3vw;
 	font-size: 1.7vh;
  }
}