html, body { 
    margin: 0px;
    padding: 0px;
   }
  
body{
    background-color: #597CBE;
    font-size: 1rem;
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.05em;
  
}
a{
  text-decoration: none;
  display: block;
  color: white;
}
img{display: block;}
a:link {color: white;} 
h2 {
    font-family: "RocknRoll One", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5rem;
    text-align: center;
  }

.header{
  height: 40px;
  margin: 20px 30px 10px 20px;
}

.header a{
  display: flex;
  gap: 10px;
}
.header img{
  height: 25px;
}
#title_area{
  padding: 20px;
  color: #597CBE;
  padding-top: 75%;
  text-align: center;
  background-image: url(img/nidoochiebukuro.svg);
  background-position: center;
  background-size: 100% auto;
  max-width: 1000px;
  

}
#title_area h2{
  margin-bottom: 10px;
}
#title_area .text_box{
  margin: 20px auto;
  max-width: 400px;
} 
.form_he{
  margin: 20px auto;
  background-image: url(img/formbutton.svg);
  height: 50px;
  color: white;
  background-size: contain;
  background-position: center;
}
.form_he a{
  line-height: 50px;  
  font-weight: 700;
}

#question {
  margin-top: 5vh;
}
#question h2{
  color: white;
}
#question-list {
  width: 100%;
  margin: 2rem 0;
  border-radius: 8px;
  display: block;
  max-width: 1000px;
}
.question-box {
  width: 90%;            
  aspect-ratio: 123 / 100; 
  margin: 20px 0;        
  background-size: cover;
  background-position: center;
  padding: 18% 40px;
  padding-bottom: 10%;
  color: #313131;
  max-width: 450px;
}
.question-box p{
  padding-top: 3%; 
}

 /* 以下で左右の位置を決める */
.question-box.left {
  margin-right: auto;     /* 右の余白自動で左寄せ */
  margin-left: 0;
}

.question-box.right {
  margin-left: auto;      /* 左の余白自動で右寄せ */
  margin-right: 0;
}

.author {
  text-align: left;
  margin-bottom: 0;
  font-weight: 700;
}

.question-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

#long-question .header{
  margin-top: 0;
  padding-top: 30px;
  color: #313131;
}
.question-text {
  margin: auto;
  padding: 50px;
  width: 90%;
  margin-bottom: 40px;
  background-image: url(img/paper.png);
  background-size: 100% 100%;
}

#answers h2 {
  color: white;
}

.arrow {
  height: 23px;
  width: 100%;
  padding-left: 80%;
  padding-top: 5px;
}

.attention_p {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #ffffff;
    text-align: center;
    font-size: 0.7rem;
}

#attention {
    margin-top: 10px;
    margin-bottom: 50px;
    color: #ffffff;
    text-align: center;
    font-size: 0.7rem;
}

footer {
  height: 120px;
}
footer a {
  height: 30px;
  margin: 20vw;
  display: flex;
  justify-content: space-around;
  gap: 10px;
}
footer img {
  display: block;
}

.yori {
  padding-top: 1rem;
  text-align: right;
}

.answer-text{
  height: 100px;
}

.answer-box {
  background-image: url(img/answerpaper.png);
  background-size: 100% 100%;
  width: 90%;
  padding: 60px 50px 90px 50px;
  margin: 20px;
  margin-top: 60px;
  position: relative;
}

.container{
  position: relative;
}

.top-img{
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: auto;
  max-width: 350px;
}

.back-box{
  padding: 20px;
  height: 60px;
}
.back-box a, img {
  display: block;
}
.back-box a {
  display: flex;
  gap: 15px;
}
.back-box img {
  height: 25px;
  object-fit: contain;
  padding-left: 5%;
}
.tape {
  padding-top: -30px;
  height: 70px;
  position: absolute;
  mix-blend-mode: multiply;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%)
}

@media (min-width: 768px) {
  #title_area{
    background-image: url(img/backpaperl.svg);
    width: 760px;
    background-position: center;
    margin: auto;
    aspect-ratio: 187 / 167;
    padding-top: 440px;
}
#title_area .text_box{
  width: 50%;
  margin: auto;
} 

/* グリッドで2列に */
#question-list {
  width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列・幅を均等に */
  gap: auto; /* 要素間の隙間 */
  padding: 30px;
  gap: 20px;
}
.question-box {
  aspect-ratio: 1.3 / 1;
  padding: auto;
  margin: 10px 10px;
  width: auto;
}
.question-box p{
  padding-top: 4%; 
}
.arrow {
  margin-top: 5%;
  padding-top: 5px;
}
footer a {
  justify-content: center;
}

/* 引き伸ばされる対策 */
.question-text {
  margin: auto;
  padding: 60px;
  width: 80%;
  margin-top: 40px;
  padding-bottom: 80px;
  background-image: url(img/paperl.png);
}
.answer-box {
  background-image: url(img/answer.png);
  width: 80%;
  margin: auto;
  margin-top: 60px;
  padding: auto 60px;
}
#answers {
  margin-top: 60px;
}
.top-img{
 width: 500px;
 min-width: 30%;
}
}
/* パソコン用 */
@media (min-width: 1024px) {
  #question-list {
    width: 80%;
  }
}

 .mono {
    filter: grayscale(100%);
  }
  
.disabled {
  pointer-events: none;  /* クリックを無効化 */
}