/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: auto;
  scroll-behavior: auto;
}

body {
  background: #fff;
  color: #000;
  font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
  font-weight: 500;
}

/* アクセシビリティ：見出しを画面外へ */
h1, h2, h3, h4, h5 {
  text-indent: -999999px;
  position: absolute;
}

/* フェードインアニメーション */
#wrap {
  width: 100%;
  position: relative;
  animation: fadeanm 0.5s linear 0.5s forwards;
  opacity: 0;
  user-select: none;
  -webkit-user-select: none; /* Safari, Chrome */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
}

@keyframes fadeanm {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ==========================================================================
   Questionnaire Components (Common)
   ========================================================================== */
#Qall {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
}

.q-header,
.q-footer {
  width: 100%;
  overflow: hidden;
  text-indent: -99999px;
  background-repeat: no-repeat;
  background-position: center;
}

.q-grid {
  display: grid;
}

.q-box {
  border: 2px solid #000;
  user-select: none;
}

.q-title {
  line-height: 1.5em;
  border-bottom: 1px solid #000;
  padding-bottom: 5px;
}

/* Options / Custom Radio */
.q-options {
  display: flex;
  gap: 40px;
}

.q-options input {
  display: none;
}

.q-options label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.q-options label::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #000;
  margin-right: 8px;
  flex-shrink: 0;
}

.q-options input:checked + label::before {
  background: #000;
}

/* Footer & Close Button */
.q-footer:before {
  content: "";
  display: block;
  padding-top: 3.8%;
}

#QCloseBtn {
  background: url("../images/btn_menu02.png") no-repeat center;
  background-size: cover;
  cursor: pointer;
}

#QCloseBtn a {
  width: 100%;
  height: 100%;
  display: block;
}

#Qbg {
  background: url("../images/question_bg.jpg") no-repeat center;
  background-size: cover;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

#Qcolor {
  background-image: linear-gradient(164deg, #000000, #000000 42%, #ec0000);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ==========================================================================
   Desktop Styles (min-width: 961px)
   ========================================================================== */
@media screen and (min-width: 961px) {
  #QTxtall {
    width: 86%;
    height: 650px;
    max-width: 1300px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -325px;
    transform: translateX(-50%);
    z-index: 2;
  }

  .q-header {
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
    margin-bottom: 40px;
    letter-spacing: 2px;
	position: relative;
  }

  .q-header:before {
    content: "";
    display: block;
    padding-top: 6%;
  }
  
  .q-header h2{
    background: url("../images/q_title.png") no-repeat center;
    background-size: 550px auto;
	width: 100%; height: 100%;
	position: absolute;
	top: 0; left: 0;
	z-index: 1;
  }

  .q-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px 30px;
  }

  .q-box {
    padding: 15px 20px;
  }

  .q-title {
    font-size: 15px;
    margin-bottom: 15px;
  }

  .q-options label {
    font-size: 13px;
  }

  .q-footer {
    margin-top: 40px;
	width: 100%; height: 30px;
	position: relative;
  }
  
  .q-footerTxt {
    background: url("../images/q_endtxt.png") no-repeat center;
    background-size: auto 100%;
    width: 100%; height: 100%;
	top: 0; left: 0;
	position: absolute;
	z-index: 1;
	transition: opacity 1.5s ease;
	opacity: 0;
    visibility: hidden;
  }
  
  .q-footerTxt.is-show {
  opacity: 1;
  visibility: visible;
}

  #QCloseBtn {
    width: 60px;
    height: 60px;
    margin: 50px auto 0;
  }
}

/* ==========================================================================
   Mobile Styles (max-width: 960px)
   ========================================================================== */
@media screen and (max-width: 960px) {
  #Qall {
    overflow-y: auto;
  }

  #QTxtall {
    width: 90%;
    padding-bottom: 40px;
	position: absolute;
	top: 0; left: 5%;
	z-index: 1;
  }

  .q-header {
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    margin: 30px 0;
    letter-spacing: 2px;
	position: relative;
  }

  .q-header:before {
    content: "";
    display: block;
    padding-top: 15%;
  }
  
  .q-header h2{
    background: url("../images/q_title.png") no-repeat center;
    background-size: 90% auto;
	width: 100%; height: 100%;
	position: absolute;
	top: 0; left: 0;
	z-index: 1;
  }

  .q-grid {
    grid-template-columns: 1fr; /* 1列に変更 */
    gap: 15px 0;
  }

  .q-box {
    padding: 10px;
  }

  .q-title {
    font-size: 12px;
    margin-bottom: 1em;
  }

  .q-options label {
    font-size: 11px;
    line-height: 14px;
  }

  .q-footer {
    margin-top: 20px;
	width: 100%; height: 30px;
	position: relative;
  }
  
  .q-footerTxt {
    background: url("../images/q_endtxt.png") no-repeat center;
    background-size: contain;
    width: 100%; height: 100%;
	top: 0; left: 0;
	position: absolute;
	z-index: 1;
	transition: opacity 1.5s ease;
	opacity: 0;
    visibility: hidden;
  }
  
  .q-footerTxt.is-show {
  opacity: 1;
  visibility: visible;
}
  

  #QCloseBtn {
    width: 50px;
    height: 50px;
    margin: 30px auto 0;
  }
}

.bururi { animation: bururi 1.5s infinite;}

@keyframes bururi {
10% {transform: scale(1, 1);filter: blur(0);}
12% {transform: scale(0.99, 1.01);filter: blur(2px);}
14% {transform: scale(1, 1);filter: blur(0);}
30% {transform: scale(1.01, 1.01);filter: blur(0);}
32% {transform: scale(0.98, 1);filter: blur(2px);}
34% {transform: scale(1, 0.99);filter: blur(0);}
54% {transform: scale(1.02, 1);filter: blur(3px);}
56% {transform: scale(0.99, 0.99);filter: blur(1px);}
58% {transform: scale(1, 1.01);filter: blur(0);}
60% {transform: scale(0.98, 0.98);filter: blur(2px);}
54% {transform: scale(1, 1);filter: blur(0);}
86% {transform: scale(0.98, 0.99);filter: blur(1px);}
88% {transform: scale(1, 1.01);filter: blur(0);}
90% {transform: scale(0.99, 1);filter: blur(2px);}
}

